forked from mit-pdos/xv6-public
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rtm
committed
Jun 13, 2006
1 parent
70a895f
commit 0a70d04
Showing
7 changed files
with
790 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/perl -w | ||
|
||
# generate vectors.S, the trap/interrupt entry points. | ||
# there has to be one entry point per interrupt number | ||
# since otherwise there's no way to tell the interrupt | ||
# number. | ||
|
||
print "/* generated by vectors.pl */\n"; | ||
print ".text\n"; | ||
print ".globl alltraps\n"; | ||
for(my $i = 0; $i < 256; $i++){ | ||
print ".globl vector$i\n"; | ||
print "vector$i:\n"; | ||
if(($i < 8 || $i > 14) && $i != 17){ | ||
print "\tpushl \$0\n"; | ||
} | ||
print "\tpushl $i\n"; | ||
print "\tjmp alltraps\n"; | ||
} | ||
print ".data\n"; | ||
print ".globl vectors\n"; | ||
print "vectors:\n"; | ||
for(my $i = 0; $i < 256; $i++){ | ||
print ".long vector$i\n"; | ||
} |