svn commit: r198722 - head/sys/powerpc/aim

Nathan Whitehorn nwhitehorn at FreeBSD.org
Sat Oct 31 17:46:50 UTC 2009


Author: nwhitehorn
Date: Sat Oct 31 17:46:50 2009
New Revision: 198722
URL: http://svn.freebsd.org/changeset/base/198722

Log:
  Garbage collect set_user_sr(), which is declared static inline and
  never called.

Modified:
  head/sys/powerpc/aim/trap.c

Modified: head/sys/powerpc/aim/trap.c
==============================================================================
--- head/sys/powerpc/aim/trap.c	Sat Oct 31 17:39:56 2009	(r198721)
+++ head/sys/powerpc/aim/trap.c	Sat Oct 31 17:46:50 2009	(r198722)
@@ -85,8 +85,6 @@ static int	fix_unaligned(struct thread *
 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
 	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)
 {


More information about the svn-src-head mailing list