hw_x86_64: Add mapping for APIC MMIO to initial pt

Make the local APIC accessible via its MMIO region by adding a 2 MB
large page mapping at 0xfee00000 with memory type UC.

Note: The mapping is added to the initial page tables to make the APIC
      usable prior to the activation of core's page tables, e.g. in the
      constructor of the timer class.
This commit is contained in:
Adrian-Ken Rueegsegger 2015-03-17 16:46:41 +01:00 committed by Christian Helmuth
parent b75b1902f2
commit c06c21e472

View File

@ -128,7 +128,9 @@
.p2align MIN_PAGE_SIZE_LOG2
_kernel_pdp:
.quad _kernel_pd + 0xf
.fill 511, 8, 0x0
.fill 2, 8, 0x0
.quad _kernel_pd_503 + 0xf
.fill 508, 8, 0x0
/* PD */
.p2align MIN_PAGE_SIZE_LOG2
@ -136,3 +138,9 @@
.quad 0
.quad 0x20018f
.fill 510, 8, 0x0
.p2align MIN_PAGE_SIZE_LOG2
_kernel_pd_503:
.fill 503, 8, 0x0
.quad 0xfee0019f
.fill 8, 8, 0x0