[RFC][PATCH 1/2] x86_64: Preallocate the fixmap pud and pmd entries.
- From: ebiederm@xxxxxxxxxxxx (Eric W. Biederman)
- Date: Sun, 03 Dec 2006 22:13:57 -0700
To use the debug device I need to work through a port so I need
to call ioreamp or similar. Since we are doing this very early
I chose to use a fixmap (because we are unlikely to free the mapping)
and because it is simple. If we preallocate the fixmap pud and pmd
entries the existing fixmap codes works anytime from power up without
modifications or memory allocations. So we don't need a special case.
---
arch/x86_64/kernel/head.S | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/arch/x86_64/kernel/head.S b/arch/x86_64/kernel/head.S
index 2f65469..4004965 100644
--- a/arch/x86_64/kernel/head.S
+++ b/arch/x86_64/kernel/head.S
@@ -271,7 +271,16 @@ NEXT_PAGE(level3_kernel_pgt)
.fill 510,8,0
/* (2^48-(2*1024*1024*1024)-((2^39)*511))/(2^30) = 510 */
.quad phys_level2_kernel_pgt | 0x007
- .fill 1,8,0
+ .quad phys_level2_fixmap_pgt | 0x007
+
+NEXT_PAGE(level2_fixmap_pgt)
+ .fill 506,8,0
+ .quad phys_level1_fixmap_pgt | 0x007
+ /* 8MB reserved for vsyscalls + a 2MB hole = 4 + 1 entries */
+ .fill 5,8,0
+
+NEXT_PAGE(level1_fixmap_pgt)
+ .fill 512,8,0
NEXT_PAGE(level2_ident_pgt)
/* 40MB for bootup. */
--
1.4.2.rc3.g7e18e-dirty
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [RFC][PATCH 2/2] x86_64: earlyprintk usb debug device support.
- From: Eric W. Biederman
- [RFC][PATCH 2/2] x86_64: earlyprintk usb debug device support.
- References:
- RE: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device
- From: Lu, Yinghai
- Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device
- From: Greg KH
- Re: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device
- From: Eric W. Biederman
- [RFC][PATCH 0/2] x86_64 Early usb debug port support.
- From: Eric W. Biederman
- RE: [LinuxBIOS] #57: libusb host program for PLX NET20DC debug device
- Prev by Date: Re: la la la la ... swappiness
- Next by Date: [PATCH] Kexec / Kdump: Unify elf note code
- Previous by thread: [RFC][PATCH 0/2] x86_64 Early usb debug port support.
- Next by thread: [RFC][PATCH 2/2] x86_64: earlyprintk usb debug device support.
- Index(es):