Skip to content

Commit d476c3a

Browse files
committed
Kernel 3.10 also appears to not have the store_gdt call either
The current #ifdef says for 3.11 and above but 3.10 also does not appear to have the store_gdt call. This fixes a build issue on CentOS 7 which includes the 3.10 kernel.
1 parent 563bcff commit d476c3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

driver/intr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#define store_idt(ptr) asm volatile("sidt %0":"=m" (*ptr))
4949
#endif
5050

51-
#if !defined(store_gdt) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)
51+
#if !defined(store_gdt) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 10, 0)
5252
/***********************************************/
5353
/* Xen removed this - oh, so nice of you. */
5454
/* Not! We want the GDT to debug dtrace, so */

0 commit comments

Comments
 (0)