From d0604243f84872a5dd39fc735ebcdb4fbe1b6bb5 Mon Sep 17 00:00:00 2001 From: rpaulo Date: Wed, 5 Dec 2012 04:22:53 +0000 Subject: Remove dead code that clang refuses to compile. --- sys/boot/i386/efi/exec.c | 10 ---------- 1 file changed, 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)); } -- cgit v1.1