phys.h 461 B

1234567891011
  1. /* Physical address ceiling shared by the 32-bit kernel and the UEFI loader. */
  2. #ifndef PHYS_H
  3. #define PHYS_H
  4. /* 1 GB: the kernel identity-maps [0, MM_MAX_PHYS) with 4 MB pages, and ring-3
  5. * address space starts at USER_BASE (0x40000000), so the identity map cannot
  6. * grow past 1 GB without a highmem zone. The frame bitmap (32 KB at 1 GB)
  7. * is placed in RAM by mm_init(), not in the kernel's BSS. */
  8. #define MM_MAX_PHYS (1024u * 1024 * 1024)
  9. #endif