projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] i386: inline assembler: cleanup and encapsulate descriptor and task register...
[firefly-linux-kernel-4.4.55.git]
/
arch
/
i386
/
kernel
/
cpu
/
common.c
diff --git
a/arch/i386/kernel/cpu/common.c
b/arch/i386/kernel/cpu/common.c
index 361f2e7ccb12274385902f12bb9cd7f159ffaee1..46ce9b248f5510088ca7fd1765fcfdd86ea44bd9 100644
(file)
--- a/
arch/i386/kernel/cpu/common.c
+++ b/
arch/i386/kernel/cpu/common.c
@@
-613,8
+613,8
@@
void __devinit cpu_init(void)
memcpy(thread->tls_array, &per_cpu(cpu_gdt_table, cpu),
GDT_ENTRY_TLS_ENTRIES * 8);
memcpy(thread->tls_array, &per_cpu(cpu_gdt_table, cpu),
GDT_ENTRY_TLS_ENTRIES * 8);
-
__asm__ __volatile__("lgdt %0" : : "m" (cpu_gdt_descr[cpu])
);
-
__asm__ __volatile__("lidt %0" : : "m" (idt_descr)
);
+
load_gdt(&cpu_gdt_descr[cpu]
);
+
load_idt(&idt_descr
);
/*
* Delete NT
/*
* Delete NT