Commit 6421563d authored by David S. Miller's avatar David S. Miller Committed by David S. Miller

Clean up sparc64 build

parent 1588b7ef
...@@ -30,12 +30,12 @@ ...@@ -30,12 +30,12 @@
#ifdef CONFIG_PREEMPT #ifdef CONFIG_PREEMPT
etrap_irq: ldsw [%g6 + TI_PRE_COUNT], %g1 etrap_irq: ldsw [%g6 + TI_PRE_COUNT], %g1
add %g1, 1, %g1 add %g1, 1, %g1
ba,pt etrap_irq2 ba,pt %xcc, etrap_irq2
stw %g1, [%g6 + TI_PRE_COUNT] stw %g1, [%g6 + TI_PRE_COUNT]
#endif #endif
etrap: rdpr %pil, %g2 ! Single Group etrap: rdpr %pil, %g2 ! Single Group
#ifndef CONFIG_PREEMPT #ifndef CONFIG_PREEMPT
etrap_irq etrap_irq:
#endif #endif
etrap_irq2: rdpr %tstate, %g1 ! Single Group etrap_irq2: rdpr %tstate, %g1 ! Single Group
sllx %g2, 20, %g3 ! IEU0 Group sllx %g2, 20, %g3 ! IEU0 Group
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
#include <linux/in.h> #include <linux/in.h>
#include <linux/icmpv6.h> #include <linux/icmpv6.h>
#include <linux/sysctl.h> #include <linux/sysctl.h>
#include <linux/binfmts.h>
#include <asm/types.h> #include <asm/types.h>
#include <asm/ipc.h> #include <asm/ipc.h>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* Copyright (C) 2000 David S. Miller (davem@redhat.com) * Copyright (C) 2000 David S. Miller (davem@redhat.com)
*/ */
#include <linux/config.h> #include <linux/config.h>
#include <asm/thread_info.h>
#ifndef CONFIG_DEBUG_SPINLOCK #ifndef CONFIG_DEBUG_SPINLOCK
.text .text
...@@ -40,6 +41,11 @@ out: ...@@ -40,6 +41,11 @@ out:
membar #StoreLoad | #StoreStore membar #StoreLoad | #StoreStore
retl retl
mov %g1, %o0 mov %g1, %o0
#ifdef CONFIG_PREEMPT
ldsw [%g6 + TI_PRE_COUNT], %g3
add %g3, 1, %g3
stw %g3, [%g6 + TI_PRE_COUNT]
#endif
to_zero: to_zero:
ldstub [%o1], %g3 ldstub [%o1], %g3
brnz,pn %g3, spin_on_lock brnz,pn %g3, spin_on_lock
...@@ -55,6 +61,11 @@ loop2: cas [%o0], %g5, %g7 /* ASSERT(g7 == 0) */ ...@@ -55,6 +61,11 @@ loop2: cas [%o0], %g5, %g7 /* ASSERT(g7 == 0) */
nop nop
membar #StoreStore | #LoadStore membar #StoreStore | #LoadStore
stb %g0, [%o1] stb %g0, [%o1]
#ifdef CONFIG_PREEMPT
ldsw [%g6 + TI_PRE_COUNT], %g3
sub %g3, 1, %g3
stw %g3, [%g6 + TI_PRE_COUNT]
#endif
b,pt %xcc, nzero b,pt %xcc, nzero
nop nop
......
...@@ -56,6 +56,8 @@ typedef struct { ...@@ -56,6 +56,8 @@ typedef struct {
#define synchronize_irq() barrier() #define synchronize_irq() barrier()
#define release_irqlock(cpu) do { } while (0)
#else /* (CONFIG_SMP) */ #else /* (CONFIG_SMP) */
static __inline__ int irqs_running(void) static __inline__ int irqs_running(void)
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <asm/types.h>
struct task_struct; struct task_struct;
struct exec_domain; struct exec_domain;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment