Ignore:
Timestamp:
Jun 22, 2017, 8:10:37 AM (5 years ago)
Author:
max@…
Message:

Update:

  • Introduce a basic VM manager in hal_gpt.c, to create the initial page tree for cluster0.
  • Locate the ACPI RSDP table, which involves entering the PA into cluster0's VA space.

The definitions are still a bit messy, but they will be reorganized later.

File:
1 edited

Legend:

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

    r29 r35  
    122122#define PDIR_SLOT_PTE   L4_SLOT_PTE
    123123
     124#define PTE_BASE        ((pt_entry_t *)(L4_SLOT_PTE * NBPD_L4))
     125#define L1_BASE PTE_BASE
     126#define L2_BASE ((pt_entry_t *)((char *)L1_BASE + L4_SLOT_PTE * NBPD_L3))
     127#define L3_BASE ((pt_entry_t *)((char *)L2_BASE + L4_SLOT_PTE * NBPD_L2))
     128#define L4_BASE ((pt_entry_t *)((char *)L3_BASE + L4_SLOT_PTE * NBPD_L1))
     129
     130#define NPDPG   (PAGE_SIZE / sizeof (pt_entry_t))
     131
     132#define CLUSTER0_MIN_VA 0xffff800000000000
     133#define CLUSTER0_MAX_VA 0xffff800100000000 /* MIN + 4GB */
     134
Note: See TracChangeset for help on using the changeset viewer.