svn commit: r243875 - head/sys/boot/i386/efi

Rui Paulo rpaulo at FreeBSD.org
Wed Dec 5 04:22:53 UTC 2012


Author: rpaulo
Date: Wed Dec  5 04:22:53 2012
New Revision: 243875
URL: http://svnweb.freebsd.org/changeset/base/243875

Log:
  Remove dead code that clang refuses to compile.

Modified:
  head/sys/boot/i386/efi/exec.c

Modified: head/sys/boot/i386/efi/exec.c
==============================================================================
--- head/sys/boot/i386/efi/exec.c	Wed Dec  5 02:47:06 2012	(r243874)
+++ head/sys/boot/i386/efi/exec.c	Wed Dec  5 04:22:53 2012	(r243875)
@@ -46,14 +46,4 @@ __v86int()
 void
 __exec(caddr_t addr, ...)
 {
-	/* XXX this is wrong */
-	__asm __volatile("movl %cr0, %eax");
-	__asm __volatile("andl $0x7fffffff, %eax");
-	__asm __volatile("mov %eax, %cr0");
-	__asm __volatile("xorl %eax, %eax");
-	__asm __volatile("mov %eax, %cr3");
-	__asm __volatile("movl %cr0, %eax");
-	__asm __volatile("andl $0xfffffffe, %eax");
-	__asm __volatile("movl %eax, %cr0");
-	__asm __volatile("jmp %0" :: "r" (addr));
 }


More information about the svn-src-all mailing list