X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/2803826a2373620dbfce8a5bff1e6a01dd594953..a80afdf94c94a6d1f92e11ff6add42f45ee277aa:/lunaix-os/includes/lunaix/mm/dmm.h diff --git a/lunaix-os/includes/lunaix/mm/dmm.h b/lunaix-os/includes/lunaix/mm/dmm.h index 0a79cdc..346c479 100644 --- a/lunaix-os/includes/lunaix/mm/dmm.h +++ b/lunaix-os/includes/lunaix/mm/dmm.h @@ -18,12 +18,12 @@ #define PACK(size, flags) (((size) & ~0x3) | (flags)) -#define SW(p, w) (*((uint32_t*)(p)) = w) -#define LW(p) (*((uint32_t*)(p))) +#define SW(p, w) (*((u32_t*)(p)) = w) +#define LW(p) (*((u32_t*)(p))) -#define HPTR(bp) ((uint32_t*)(bp)-1) +#define HPTR(bp) ((u32_t*)(bp)-1) #define BPTR(bp) ((uint8_t*)(bp) + WSIZE) -#define FPTR(hp, size) ((uint32_t*)(hp + size - WSIZE)) +#define FPTR(hp, size) ((u32_t*)(hp + size - WSIZE)) #define NEXT_CHK(hp) ((uint8_t*)(hp) + CHUNK_S(LW(hp))) #define BOUNDARY 4