diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-26 08:25:00 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-26 08:25:00 -0600 |
commit | f79721253eb1a0a043b8c59f9abba1e6e590ed3d (patch) | |
tree | 9852779f92f184e4d3a583e23ff0442ef0bf2561 /nuttx/arch/x86 | |
parent | fcb7bb2b984bc528191b39fb6a436e0af63e7170 (diff) | |
download | nuttx-f79721253eb1a0a043b8c59f9abba1e6e590ed3d.tar.gz nuttx-f79721253eb1a0a043b8c59f9abba1e6e590ed3d.tar.bz2 nuttx-f79721253eb1a0a043b8c59f9abba1e6e590ed3d.zip |
A little more clean-up of poll() error handling
Diffstat (limited to 'nuttx/arch/x86')
-rw-r--r-- | nuttx/arch/x86/src/i486/i486_utils.S | 26 |
1 files changed, 13 insertions, 13 deletions
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 |