patch-2.4.25 linux-2.4.25/arch/sparc64/kernel/setup.c
Next file: linux-2.4.25/arch/sparc64/kernel/sys_sparc32.c
Previous file: linux-2.4.25/arch/sparc64/kernel/pci_sabre.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/arch/sparc64/kernel/setup.c
- Orig date:
2003-11-28 10:26:19.000000000 -0800
diff -urN linux-2.4.24/arch/sparc64/kernel/setup.c linux-2.4.25/arch/sparc64/kernel/setup.c
@@ -40,6 +40,7 @@
#include <asm/head.h>
#include <asm/starfire.h>
#include <asm/hardirq.h>
+#include <asm/sections.h>
#ifdef CONFIG_IP_PNP
#include <net/ipconfig.h>
@@ -456,7 +457,7 @@
char saved_command_line[256];
char reboot_command[256];
-extern unsigned long phys_base;
+extern unsigned long phys_base, kern_base, kern_size;
static struct pt_regs fake_swapper_regs = { { 0, }, 0, 0, 0, 0 };
@@ -527,6 +528,22 @@
highest_paddr = top;
}
+ switch (tlb_type) {
+ default:
+ case spitfire:
+ kern_base = spitfire_get_itlb_data(sparc64_highest_locked_tlbent());
+ kern_base &= _PAGE_PADDR_SF;
+ break;
+
+ case cheetah:
+ case cheetah_plus:
+ kern_base = cheetah_get_litlb_data(sparc64_highest_locked_tlbent());
+ kern_base &= _PAGE_PADDR;
+ break;
+ };
+
+ kern_size = (unsigned long)&_end - (unsigned long)KERNBASE;
+
if (!root_flags)
root_mountflags &= ~MS_RDONLY;
ROOT_DEV = to_kdev_t(root_dev);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)