]> Devi Nivas Git - cs3210-lab0.git/commitdiff
comment bochs nonsense
authorrsc <rsc>
Wed, 26 Sep 2007 23:32:47 +0000 (23:32 +0000)
committerrsc <rsc>
Wed, 26 Sep 2007 23:32:47 +0000 (23:32 +0000)
lapic.c

diff --git a/lapic.c b/lapic.c
index 2bf97fbbf9a3933e4ec1a78fb9c89d136f8e2ada..d62c8eaa09e1d1cb7f5dc21d3885a2127449bd8e 100644 (file)
--- a/lapic.c
+++ b/lapic.c
@@ -122,6 +122,8 @@ lapic_startap(uchar apicid, uint addr)
   microdelay(10);
   
   // Send startup IPI (twice!) to enter bootstrap code.
+  // Regular hardware wants it twice, but Bochs complains.
+  // Too bad for Bochs.
   for(i = 0; i < 2; i++){
     lapic[ICRHI] = apicid<<24;
     lapic[ICRLO] = STARTUP | (addr>>12);