From 9f5c53744a9c0016aeb1bb5e8b1e1e763a049294 Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Thu, 7 Sep 2017 18:13:54 -0700 Subject: [PATCH] x86: segmentation.h: fix C++ build error Signed-off-by: Andrew Boie --- include/arch/x86/segmentation.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/arch/x86/segmentation.h b/include/arch/x86/segmentation.h index b3c858f89c3526..1ec9c7f3446c7b 100644 --- a/include/arch/x86/segmentation.h +++ b/include/arch/x86/segmentation.h @@ -437,8 +437,8 @@ static inline void _init_irq_gate(struct segment_descriptor *sd, static inline void _far_jump(u16_t sel, void *offset) { struct far_ptr ptr = { - .sel = sel, - .offset = offset + .offset = offset, + .sel = sel }; __asm__ __volatile__ ("ljmp *%0" :: "m" (ptr)); @@ -454,8 +454,8 @@ static inline void _far_jump(u16_t sel, void *offset) static inline void _far_call(u16_t sel, void *offset) { struct far_ptr ptr = { - .sel = sel, - .offset = offset + .offset = offset, + .sel = sel }; __asm__ __volatile__ ("lcall *%0" :: "m" (ptr));