svn commit: r197666 - projects/ppc64/sys/powerpc/aim

Nathan Whitehorn nwhitehorn at FreeBSD.org
Thu Oct 1 13:03:17 UTC 2009


Author: nwhitehorn
Date: Thu Oct  1 13:03:17 2009
New Revision: 197666
URL: http://svn.freebsd.org/changeset/base/197666

Log:
  Remove unused static function set_user_sr().

Modified:
  projects/ppc64/sys/powerpc/aim/trap.c

Modified: projects/ppc64/sys/powerpc/aim/trap.c
==============================================================================
--- projects/ppc64/sys/powerpc/aim/trap.c	Thu Oct  1 13:02:34 2009	(r197665)
+++ projects/ppc64/sys/powerpc/aim/trap.c	Thu Oct  1 13:03:17 2009	(r197666)
@@ -86,8 +86,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? */
@@ -618,13 +616,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-projects mailing list