diff options
| author | rsc <rsc> | 2006-07-16 15:38:56 +0000 | 
|---|---|---|
| committer | rsc <rsc> | 2006-07-16 15:38:56 +0000 | 
| commit | 4763a042c8b1f773c7517a145c72f455bde78b7f (patch) | |
| tree | 372a30498c816c7feabc12dfe2b480cefb0cf935 | |
| parent | 679a977cb2d4df42ce1f144593716aeb855d7a92 (diff) | |
| download | xv6-labs-4763a042c8b1f773c7517a145c72f455bde78b7f.tar.gz xv6-labs-4763a042c8b1f773c7517a145c72f455bde78b7f.tar.bz2 xv6-labs-4763a042c8b1f773c7517a145c72f455bde78b7f.zip  | |
add minimal comments to generator vector table
| -rwxr-xr-x | vectors.pl | 9 | 
1 files changed, 6 insertions, 3 deletions
@@ -1,11 +1,12 @@  #!/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";  }  | 
