A little more clean-up of poll() error handling

This commit is contained in:
Gregory Nutt
2014-09-26 08:25:00 -06:00
parent 083e808ad8
commit ba3ecd67ac
+13 -13
View File
@@ -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