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
|
.type gdt_flush, @function
|
||||||
gdt_flush:
|
gdt_flush:
|
||||||
movl %eax, 4(%esp) /* Get the pointer to the GDT, passed as a parameter */
|
movl %eax, 4(%esp) /* Get the pointer to the GDT, passed as a parameter */
|
||||||
lgdt (%eax) /* Load the new GDT pointer */
|
lgdt (%eax) /* Load the new GDT pointer */
|
||||||
|
|
||||||
mov $KSEG, %ax /* KSEG is the offset in the GDT to our data segment */
|
mov $KSEG, %ax /* KSEG is the offset in the GDT to our data segment */
|
||||||
mov %ax, %ds /* Load all data segment selectors */
|
mov %ax, %ds /* Load all data segment selectors */
|
||||||
mov %ax, %es
|
mov %ax, %es
|
||||||
mov %ax, %fs
|
mov %ax, %fs
|
||||||
mov %ax, %gs
|
mov %ax, %gs
|
||||||
mov %ax, %ss
|
mov %ax, %ss
|
||||||
jmp $0x08, $.Lgflush /* 0x08 is the offset to our code segment: Far jump! */
|
jmp $0x08, $.Lgflush /* 0x08 is the offset to our code segment: Far jump! */
|
||||||
.Lgflush:
|
.Lgflush:
|
||||||
ret
|
ret
|
||||||
.size gdt_flush, . - gdt_flush
|
.size gdt_flush, . - gdt_flush
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@@ -89,8 +89,8 @@ gdt_flush:
|
|||||||
|
|
||||||
.type idt_flush, @function
|
.type idt_flush, @function
|
||||||
idt_flush:
|
idt_flush:
|
||||||
movl %eax, 4(%esp) /* Get the pointer to the IDT, passed as a parameter */
|
movl %eax, 4(%esp) /* Get the pointer to the IDT, passed as a parameter */
|
||||||
lidt (%eax) /* Load the IDT pointer */
|
lidt (%eax) /* Load the IDT pointer */
|
||||||
ret
|
ret
|
||||||
.size idt_flush, . - idt_flush
|
.size idt_flush, . - idt_flush
|
||||||
.end
|
.end
|
||||||
|
|||||||
Reference in New Issue
Block a user