Skip to content

Commit

Permalink
x86: segmentation.h: fix C++ build error
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information
Andrew Boie authored and Anas Nashif committed Sep 8, 2017
1 parent c2de83c commit b8e850b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/arch/x86/segmentation.h
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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));
Expand Down

0 comments on commit b8e850b

Please sign in to comment.