X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Fintr-stubs.pl;h=c333260eef7a812e4262e783e968fa0a342fe99c;hb=f6580e9ad405b519dbe85027691bf3c66074b0a4;hp=d9e0dd35508fee62e9d3f8b758525bf4855c82c6;hpb=c9c283cb3e26a5b6d918ee47dcf8efe28522b18d;p=pintos-anon diff --git a/src/threads/intr-stubs.pl b/src/threads/intr-stubs.pl index d9e0dd3..c333260 100755 --- a/src/threads/intr-stubs.pl +++ b/src/threads/intr-stubs.pl @@ -1,7 +1,7 @@ #! /usr/bin/perl print <<'EOF'; -#include "gdt.h" +#include "threads/loader.h" .data .globl intr_stubs @@ -42,7 +42,7 @@ intr_entry: movl %eax, %ds movl %eax, %es - # Call handler. + # Call interrupt handler. pushl %esp .globl intr_handler call intr_handler @@ -55,5 +55,7 @@ intr_exit: popl %es popl %ds addl $8, %esp + + # Return to caller. iret EOF