aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/hvtramp.S
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-11-24 00:55:29 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-04 12:17:02 -0500
commitb4f4372f96e0573d752d9e45beda02fabf716cc8 (patch)
tree641798dfe78c1407908c68b64427cd55cdc18b34 /arch/sparc64/kernel/hvtramp.S
parentc6afec5e4d323e7b88a7d6e291a5aa021a8fcb7d (diff)
sparc64: Make %pil level 15 a pseudo-NMI.
So that we can profile code even in a local_irq_disable() section, only write 14 (instead of 15) into the %pil register to disable IRQs. This allows PIL level 15 to serve as a pseudo NMI. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/hvtramp.S')
-rw-r--r--arch/sparc64/kernel/hvtramp.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/hvtramp.S b/arch/sparc64/kernel/hvtramp.S
index 0236c43772f..9365432904d 100644
--- a/arch/sparc64/kernel/hvtramp.S
+++ b/arch/sparc64/kernel/hvtramp.S
@@ -1,6 +1,6 @@
1/* hvtramp.S: Hypervisor start-cpu trampoline code. 1/* hvtramp.S: Hypervisor start-cpu trampoline code.
2 * 2 *
3 * Copyright (C) 2007 David S. Miller <davem@davemloft.net> 3 * Copyright (C) 2007, 2008 David S. Miller <davem@davemloft.net>
4 */ 4 */
5 5
6#include <linux/init.h> 6#include <linux/init.h>
@@ -14,6 +14,7 @@
14#include <asm/ptrace.h> 14#include <asm/ptrace.h>
15#include <asm/head.h> 15#include <asm/head.h>
16#include <asm/asi.h> 16#include <asm/asi.h>
17#include <asm/pil.h>
17 18
18 __CPUINIT 19 __CPUINIT
19 .align 8 20 .align 8
@@ -32,7 +33,7 @@
32 */ 33 */
33hv_cpu_startup: 34hv_cpu_startup:
34 SET_GL(0) 35 SET_GL(0)
35 wrpr %g0, 15, %pil 36 wrpr %g0, PIL_NORMAL_MAX, %pil
36 wrpr %g0, 0, %canrestore 37 wrpr %g0, 0, %canrestore
37 wrpr %g0, 0, %otherwin 38 wrpr %g0, 0, %otherwin
38 wrpr %g0, 6, %cansave 39 wrpr %g0, 6, %cansave