mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
A little more clean-up of poll() error handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user