We don't need this mapping anymore. For some time now we have been mapping
the tramps later (and this code entered a mapping for PA 0x3000, a page
which we weren't even using anyway).
Part of the ongoing effort to clean up the tramps and low mem mappings.
Tested lightly on a couple of i386 SMP notebooks and qemu.
Tests appreciated. Failure symptoms would be failure to hatch APs and/or
failure to 'zzz' properly (and resume).
Index: i386/i386/machdep.c
===================================================================
RCS file: /cvs/src/sys/arch/i386/i386/machdep.c,v
retrieving revision 1.531
diff -a -u -r1.531 machdep.c
--- i386/i386/machdep.c 5 Jan 2014 20:23:57 -0000 1.531
+++ i386/i386/machdep.c 5 Jan 2014 23:09:07 -0000
@@ -3339,12 +3339,6 @@
printf("\n");
#endif
-#if defined(MULTIPROCESSOR) || \
- (NACPI > 0 && !defined(SMALL_KERNEL))
- /* install the lowmem ptp after boot args for 1:1 mappings */
- pmap_prealloc_lowmem_ptp(PTP0_PA);
-#endif
-
#ifdef MULTIPROCESSOR
pmap_kenter_pa((vaddr_t)MP_TRAMPOLINE, /* virtual */
(paddr_t)MP_TRAMPOLINE, /* physical */
Index: i386/include/biosvar.h
===================================================================
RCS file: /cvs/src/sys/arch/i386/include/biosvar.h,v
retrieving revision 1.61
diff -a -u -r1.61 biosvar.h
--- i386/include/biosvar.h 2 Nov 2013 15:02:27 -0000 1.61
+++ i386/include/biosvar.h 5 Jan 2014 23:07:26 -0000
@@ -35,9 +35,6 @@
#define BOOTBIOS_ADDR (0x7c00)
#define BOOTBIOS_MAXSEC ((1 << 28) - 1)
- /* physical page for ptp 0 need for various tramps */
-#define PTP0_PA (PAGE_SIZE * 3)
-
/* BIOS configure flags */
#define BIOSF_BIOS32 0x0001
#define BIOSF_PCIBIOS 0x0002