summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2012-12-05 04:22:53 +0000
committerrpaulo <rpaulo@FreeBSD.org>2012-12-05 04:22:53 +0000
commitd0604243f84872a5dd39fc735ebcdb4fbe1b6bb5 (patch)
tree21b895f2728579fa8f5eb62a1ef0f1df777fe427 /sys
parent54d4ef7790ac3f2922675f0defbaf3b2f5a54d7a (diff)
downloadFreeBSD-src-d0604243f84872a5dd39fc735ebcdb4fbe1b6bb5.zip
FreeBSD-src-d0604243f84872a5dd39fc735ebcdb4fbe1b6bb5.tar.gz
Remove dead code that clang refuses to compile.
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/i386/efi/exec.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/boot/i386/efi/exec.c b/sys/boot/i386/efi/exec.c
index fefbf0b..579f559 100644
--- a/sys/boot/i386/efi/exec.c
+++ b/sys/boot/i386/efi/exec.c
@@ -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));
}
OpenPOWER on IntegriCloud