From: Ben Pfaff Date: Sun, 29 Aug 2004 07:02:56 +0000 (+0000) Subject: Add .data, .text to output. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4c9aca807cfbe799e211f574eab051954e7fd8c;p=pintos-anon Add .data, .text to output. Pop intr_handler arg inside intr_entry, not intr_exit. --- diff --git a/src/threads/intr-stubs.pl b/src/threads/intr-stubs.pl index ea20e96..9725860 100755 --- a/src/threads/intr-stubs.pl +++ b/src/threads/intr-stubs.pl @@ -3,6 +3,7 @@ print <<'EOF'; #include "mmu.h" + .data .globl intr_stubs intr_stubs: EOF @@ -11,7 +12,11 @@ for $i (0...255) { $x = sprintf ("%02x", $i); print "\t.long intr${x}_stub\n"; } -print "\n"; + +print <<'EOF'; + + .text +EOF for $i (0...255) { $x = sprintf ("%02x", $i); @@ -42,10 +47,10 @@ intr_entry: pushl %esp .globl intr_handler call intr_handler + addl $4, %esp .globl intr_exit intr_exit: - addl $4, %esp # Restore caller's registers. popal