Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Dec 2012 04:22:53 +0000 (UTC)
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243875 - head/sys/boot/i386/efi
Message-ID:  <201212050422.qB54Mrsq060191@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212050422.qB54Mrsq060191>