Skip to content

Commit b8e850b

Browse files
Andrew BoieAnas Nashif
authored andcommitted
x86: segmentation.h: fix C++ build error
Signed-off-by: Andrew Boie <[email protected]>
1 parent c2de83c commit b8e850b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/arch/x86/segmentation.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ static inline void _init_irq_gate(struct segment_descriptor *sd,
437437
static inline void _far_jump(u16_t sel, void *offset)
438438
{
439439
struct far_ptr ptr = {
440-
.sel = sel,
441-
.offset = offset
440+
.offset = offset,
441+
.sel = sel
442442
};
443443

444444
__asm__ __volatile__ ("ljmp *%0" :: "m" (ptr));
@@ -454,8 +454,8 @@ static inline void _far_jump(u16_t sel, void *offset)
454454
static inline void _far_call(u16_t sel, void *offset)
455455
{
456456
struct far_ptr ptr = {
457-
.sel = sel,
458-
.offset = offset
457+
.offset = offset,
458+
.sel = sel
459459
};
460460

461461
__asm__ __volatile__ ("lcall *%0" :: "m" (ptr));

0 commit comments

Comments
 (0)