Ignore:
Timestamp:
Jun 22, 2017, 3:13:14 PM (5 years ago)
Author:
max@…
Message:

Parse RSDP->RSDT->MADT, and get the LAPIC PA.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/hal_internal.h

    r35 r39  
    2020 */
    2121
     22#define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
     23#define rounddown(x,y) (((x)/(y))*(y))
     24
     25#define XASSERT(a)      \
     26        if (!(a)) { \
     27                x86_panic((char *)__func__); \
     28        }
     29
    2230/* hal_cpu.S */
    2331void invlpg(vaddr_t va);
     
    2735vaddr_t hal_gpt_bootstrap_valloc(size_t npages);
    2836void hal_gpt_enter(vaddr_t va, paddr_t pa);
     37void hal_gpt_enter_range(vaddr_t va, paddr_t pa, size_t n);
    2938void hal_gpt_init(paddr_t firstpa);
    3039
    3140/* x86_printf.c */
     41void x86_panic(char *msg);
    3242void x86_printf(char *s, ...);
    3343
Note: See TracChangeset for help on using the changeset viewer.