Changeset 8 for trunk/hal/i386


Ignore:
Timestamp:
Apr 26, 2017, 2:20:47 PM (7 years ago)
Author:
alain
Message:

Various bugs.

Location:
trunk/hal/i386
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/i386/__do_interrupt.c

    r1 r8  
    2323#include <types.h>
    2424#include <kdmsg.h>
    25 #include <device.h>
     25#include <chdev.h>
    2626#include <interrupt.h>
    2727#include <thread.h>
  • trunk/hal/i386/boot.c

    r1 r8  
    2323#include <kdmsg.h>
    2424#include <hardware.h>
    25 #include <device.h>
     25#include <chdev.h>
    2626#include <cpu.h>
    2727#include <cpu-internal.h>
  • trunk/hal/i386/hal_types.h

    r1 r8  
    185185#define XPTR_NULL              0
    186186
    187 #define PTR_MASK               ((1ULL)<<47)
     187#define PTR_MASK               0x0000FFFFFFFFFFFFULL
    188188
    189189#define GET_CXY(xp)            ((cxy_t)((xp) >> 48))
     
    193193#define XPTR(cxy,ptr)          (((uint64_t)(cxy) << 48) | (((uint64_t)(ptr)) & PTR_MASK))
    194194
    195 #define LPA_MASK               ((1ULL)<<47)
     195#define LPA_MASK               0X0000FFFFFFFFFFFFULL
    196196
    197197#define CXY_FROM_PADDR(paddr)  ((cxy_t)((paddr) >> 48))
Note: See TracChangeset for help on using the changeset viewer.