From f79721253eb1a0a043b8c59f9abba1e6e590ed3d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 26 Sep 2014 08:25:00 -0600 Subject: A little more clean-up of poll() error handling --- nuttx/arch/x86/src/i486/i486_utils.S | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'nuttx/arch/x86') diff --git a/nuttx/arch/x86/src/i486/i486_utils.S b/nuttx/arch/x86/src/i486/i486_utils.S index f40528922..bcde27533 100644 --- a/nuttx/arch/x86/src/i486/i486_utils.S +++ b/nuttx/arch/x86/src/i486/i486_utils.S @@ -69,18 +69,18 @@ .type gdt_flush, @function gdt_flush: - movl %eax, 4(%esp) /* Get the pointer to the GDT, passed as a parameter */ - lgdt (%eax) /* Load the new GDT pointer */ + movl %eax, 4(%esp) /* Get the pointer to the GDT, passed as a parameter */ + lgdt (%eax) /* Load the new GDT pointer */ - mov $KSEG, %ax /* KSEG is the offset in the GDT to our data segment */ - mov %ax, %ds /* Load all data segment selectors */ - mov %ax, %es - mov %ax, %fs - mov %ax, %gs - mov %ax, %ss - jmp $0x08, $.Lgflush /* 0x08 is the offset to our code segment: Far jump! */ + mov $KSEG, %ax /* KSEG is the offset in the GDT to our data segment */ + mov %ax, %ds /* Load all data segment selectors */ + mov %ax, %es + mov %ax, %fs + mov %ax, %gs + mov %ax, %ss + jmp $0x08, $.Lgflush /* 0x08 is the offset to our code segment: Far jump! */ .Lgflush: - ret + ret .size gdt_flush, . - gdt_flush /**************************************************************************** @@ -89,8 +89,8 @@ gdt_flush: .type idt_flush, @function idt_flush: - movl %eax, 4(%esp) /* Get the pointer to the IDT, passed as a parameter */ - lidt (%eax) /* Load the IDT pointer */ - ret + movl %eax, 4(%esp) /* Get the pointer to the IDT, passed as a parameter */ + lidt (%eax) /* Load the IDT pointer */ + ret .size idt_flush, . - idt_flush .end -- cgit v1.2.3