diff options
Diffstat (limited to 'include/asm-sparc64')
-rw-r--r-- | include/asm-sparc64/elf.h | 4 | ||||
-rw-r--r-- | include/asm-sparc64/namei.h | 2 | ||||
-rw-r--r-- | include/asm-sparc64/page.h | 4 | ||||
-rw-r--r-- | include/asm-sparc64/spinlock.h | 2 |
4 files changed, 9 insertions, 3 deletions
diff --git a/include/asm-sparc64/elf.h b/include/asm-sparc64/elf.h index 521bfb72a..e0db514fc 100644 --- a/include/asm-sparc64/elf.h +++ b/include/asm-sparc64/elf.h @@ -1,4 +1,4 @@ -/* $Id: elf.h,v 1.18 1998/09/09 05:36:08 davem Exp $ */ +/* $Id: elf.h,v 1.19 1999/06/11 13:26:04 jj Exp $ */ #ifndef __ASM_SPARC64_ELF_H #define __ASM_SPARC64_ELF_H @@ -7,7 +7,9 @@ */ #include <asm/ptrace.h> +#ifdef __KERNEL__ #include <asm/processor.h> +#endif /* * These are used to set parameters in the core dumps. diff --git a/include/asm-sparc64/namei.h b/include/asm-sparc64/namei.h index 2dbcdedf3..d3d57545c 100644 --- a/include/asm-sparc64/namei.h +++ b/include/asm-sparc64/namei.h @@ -1,4 +1,4 @@ -/* $Id: namei.h,v 1.14 1999/04/06 06:54:39 jj Exp $ +/* $Id: namei.h,v 1.15 1999/06/10 05:23:17 davem Exp $ * linux/include/asm-sparc64/namei.h * * Routines to handle famous /usr/gnemul/s*. diff --git a/include/asm-sparc64/page.h b/include/asm-sparc64/page.h index 0894bb90d..1a808c0ba 100644 --- a/include/asm-sparc64/page.h +++ b/include/asm-sparc64/page.h @@ -18,6 +18,10 @@ #ifndef __ASSEMBLY__ +#define BUG() do { printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); *(int *)0=0; } while (0) +#define PAGE_BUG(page) do { \ + BUG(); } while (0) + extern void clear_page(unsigned long page); extern void copy_page(unsigned long to, unsigned long from); diff --git a/include/asm-sparc64/spinlock.h b/include/asm-sparc64/spinlock.h index d0c25a965..b3311df9d 100644 --- a/include/asm-sparc64/spinlock.h +++ b/include/asm-sparc64/spinlock.h @@ -15,7 +15,7 @@ typedef unsigned char spinlock_t; #define spin_lock_init(lock) do { } while(0) #define spin_lock(lock) do { } while(0) -#define spin_trylock(lock) do { } while(0) +#define spin_trylock(lock) (1) #define spin_unlock_wait(lock) do { } while(0) #define spin_unlock(lock) do { } while(0) #define spin_lock_irq(lock) cli() |