patch-2.1.97 linux/arch/sparc64/kernel/head.S
Next file: linux/arch/sparc64/kernel/init_task.c
Previous file: linux/arch/sparc64/kernel/ebus.c
Back to the patch index
Back to the overall index
- Lines: 55
- Date:
Tue Apr 14 17:44:20 1998
- Orig file:
v2.1.96/linux/arch/sparc64/kernel/head.S
- Orig date:
Sat Aug 16 09:51:08 1997
diff -u --recursive --new-file v2.1.96/linux/arch/sparc64/kernel/head.S linux/arch/sparc64/kernel/head.S
@@ -1,9 +1,9 @@
-/* $Id: head.S,v 1.46 1997/08/08 08:33:30 jj Exp $
+/* $Id: head.S,v 1.49 1998/03/03 12:31:17 jj Exp $
* head.S: Initial boot code for the Sparc64 port of Linux.
*
* Copyright (C) 1996,1997 David S. Miller (davem@caip.rutgers.edu)
* Copyright (C) 1996 David Sitsky (David.Sitsky@anu.edu.au)
- * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
+ * Copyright (C) 1997,1998 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
* Copyright (C) 1997 Miguel de Icaza (miguel@nuclecu.unam.mx)
*/
@@ -26,7 +26,7 @@
/* This section from from _start to sparc64_boot_end should fit into
* 0x0000.0000.0040.4000 to 0x0000.0000.0040.8000 and will be sharing space
* with bootup_user_stack, which is from 0x0000.0000.0040.4000 to
- * 0x0000.0000.0040.6000 and bootup_kernel_stack, which is from
+ * 0x0000.0000.0040.6000 and empty_bad_page, which is from
* 0x0000.0000.0040.6000 to 0x0000.0000.0040.8000.
*/
@@ -326,6 +326,8 @@
nop
/* Not reached... */
+/* IMPORTANT NOTE: Whenever making changes here, check
+ * trampoline.S as well. -jj */
.globl setup_tba
setup_tba:
save %sp, -160, %sp
@@ -346,9 +348,11 @@
/* Set up MMU globals */
wrpr %o1, (PSTATE_MG|PSTATE_IE), %pstate
- /* PGD/PMD offset mask, used by TLB miss handlers. */
- sethi %hi(0x1ff8), %g2
- or %g2, %lo(0x1ff8), %g2
+ /* Set KERN_HIGHBITS used by dTLB miss handler. */
+#define KERN_HIGHBITS ((_PAGE_VALID | _PAGE_SZ4MB) ^ 0xfffff80000000000)
+ sethi %uhi(KERN_HIGHBITS), %g2
+ sllx %g2, 32, %g2
+#undef KERN_HIGHBITS
/* Kernel PGDIR used by TLB miss handlers. */
mov %i0, %g6
@@ -391,7 +395,8 @@
.skip 0x2000 + _start - sparc64_boot_end
bootup_user_stack_end:
-bootup_kernel_stack:
+ .globl empty_bad_page
+empty_bad_page:
.skip 0x2000
! 0x0000000000408000
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov