From 56fee338a9cb3d31c894a8164cfebca31cc0adaf Mon Sep 17 00:00:00 2001 From: nwhitehorn Date: Sat, 31 Oct 2009 17:46:50 +0000 Subject: Garbage collect set_user_sr(), which is declared static inline and never called. --- sys/powerpc/aim/trap.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'sys/powerpc') 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) { -- cgit v1.1