Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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