Skip to content
Snippets Groups Projects
Commit 4763a042 authored by rsc's avatar rsc
Browse files

add minimal comments to generator vector table

parent 679a977c
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/perl -w
# generate vectors.S, the trap/interrupt entry points.
# there has to be one entry point per interrupt number
# 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 "/* handlers */\n";
print ".text\n";
print ".globl alltraps\n";
for(my $i = 0; $i < 256; $i++){
......@@ -17,9 +18,11 @@ for(my $i = 0; $i < 256; $i++){
print "\tpushl \$$i\n";
print "\tjmp alltraps\n";
}
print "\n/* vector table */\n";
print ".data\n";
print ".globl vectors\n";
print "vectors:\n";
for(my $i = 0; $i < 256; $i++){
print ".long vector$i\n";
print "\t.long vector$i\n";
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment