Date: Sat, 31 Oct 2009 17:46:50 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r198722 - head/sys/powerpc/aim Message-ID: <200910311746.n9VHkofi097773@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910311746.n9VHkofi097773>