Ignore:
Timestamp:
Jul 5, 2017, 11:19:36 AM (7 years ago)
Author:
max@…
Message:

less magic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_gpt.c

    r145 r147  
    3535#include <ppm.h>
    3636#include <page.h>
    37 
    38 #define VA_SIGN_MASK            0xffff000000000000
    39 #define VA_SIGN_POS(va)         ((va) & ~VA_SIGN_MASK)
    40 
    41 #define pl1_i(VA)       (((VA_SIGN_POS(VA)) & L1_FRAME) >> L1_SHIFT)
    42 #define pl2_i(VA)       (((VA_SIGN_POS(VA)) & L2_FRAME) >> L2_SHIFT)
    43 #define pl3_i(VA)       (((VA_SIGN_POS(VA)) & L3_FRAME) >> L3_SHIFT)
    44 #define pl4_i(VA)       (((VA_SIGN_POS(VA)) & L4_FRAME) >> L4_SHIFT)
    4537
    4638extern vaddr_t __kernel_end;
Note: See TracChangeset for help on using the changeset viewer.