diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2009-10-31 17:46:50 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2009-10-31 17:46:50 +0000 |
commit | 56fee338a9cb3d31c894a8164cfebca31cc0adaf (patch) | |
tree | f5484d523c24dbac225f377ffea19c304b5bd911 /sys | |
parent | b6a248b75a3a9d6da03ab21c9cee4d0cf11ee929 (diff) | |
download | FreeBSD-src-56fee338a9cb3d31c894a8164cfebca31cc0adaf.zip FreeBSD-src-56fee338a9cb3d31c894a8164cfebca31cc0adaf.tar.gz |
Garbage collect set_user_sr(), which is declared static inline and
never called.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/powerpc/aim/trap.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/powerpc/aim/trap.c b/sys/powerpc/aim/trap.c index 0ab58f3..ee9c7d3 100644 --- a/sys/powerpc/aim/trap.c +++ b/sys/powerpc/aim/trap.c @@ -85,8 +85,6 @@ static int fix_unaligned(struct thread *td, struct trapframe *frame); static int handle_onfault(struct trapframe *frame); static void syscall(struct trapframe *frame); -static __inline void setusr(u_int); - int setfault(faultbuf); /* defined in locore.S */ /* Why are these not defined in a header? */ @@ -558,13 +556,6 @@ trap_pfault(struct trapframe *frame, int user) return (SIGSEGV); } -static __inline void -setusr(u_int content) -{ - __asm __volatile ("isync; mtsr %0,%1; isync" - :: "n"(USER_SR), "r"(content)); -} - int badaddr(void *addr, size_t size) { |