kernel - Fix boot issues with > 512GB of ram
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 29 Oct 2017 21:37:32 +0000 (14:37 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 29 Oct 2017 21:37:32 +0000 (14:37 -0700)
commitf70051b1a0413d7f913de0fdf9609a0d1f1990f4
tree75f875e4ace7e449f5f249a14ed2398919d58231
parentd0dd92f61fc6d39c5d9e89cf8d72b2994961cdd4
kernel - Fix boot issues with > 512GB of ram

* Fix DMAP installation issues for kernels with > 512GB of ram.
  The page table was not being laid out properly for PML4e
  entries past the first one.

* Fix early panic reporting.  Conditionalize the lapic access as the
  lapic might not exist yet.

* Tested to 1TB of ram.  Theoretically DragonFlyBSD can support up
  to 32TB of ram (and slightly less than ~64TB with one #define
  change).

Reported-by: zrj
Testing-by: zrj
sys/platform/pc64/include/vmparam.h
sys/platform/pc64/x86_64/pmap.c
sys/platform/pc64/x86_64/trap.c