aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/machine_kexec.c
diff options
context:
space:
mode:
authorZachary Amsden <zach@vmware.com>2005-09-03 18:56:42 -0400
committerLinus Torvalds <torvalds@evo.osdl.org>2005-09-05 03:06:12 -0400
commitf2ab4461249df85b20930a7a57b54f39c5ae291a (patch)
tree17fbe46fdc6e95bf24faccb6001d89c989442f6f /arch/i386/kernel/machine_kexec.c
parent4f0cb8d978ab4b6e3b40147f619f48316d9d7f63 (diff)
[PATCH] x86: more asm cleanups
Some more assembler cleanups I noticed along the way. Signed-off-by: Zachary Amsden <zach@vmware.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386/kernel/machine_kexec.c')
-rw-r--r--arch/i386/kernel/machine_kexec.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/arch/i386/kernel/machine_kexec.c b/arch/i386/kernel/machine_kexec.c
index f19f6d34bcbf..a912fed48482 100644
--- a/arch/i386/kernel/machine_kexec.c
+++ b/arch/i386/kernel/machine_kexec.c
@@ -93,10 +93,7 @@ static void set_idt(void *newidt, __u16 limit)
93 curidt.size = limit; 93 curidt.size = limit;
94 curidt.address = (unsigned long)newidt; 94 curidt.address = (unsigned long)newidt;
95 95
96 __asm__ __volatile__ ( 96 load_idt(&curidt);
97 "lidtl %0\n"
98 : : "m" (curidt)
99 );
100}; 97};
101 98
102 99
@@ -108,10 +105,7 @@ static void set_gdt(void *newgdt, __u16 limit)
108 curgdt.size = limit; 105 curgdt.size = limit;
109 curgdt.address = (unsigned long)newgdt; 106 curgdt.address = (unsigned long)newgdt;
110 107
111 __asm__ __volatile__ ( 108 load_gdt(&curgdt);
112 "lgdtl %0\n"
113 : : "m" (curgdt)
114 );
115}; 109};
116 110
117static void load_segments(void) 111static void load_segments(void)