]> Devi Nivas Git - cs3210-lab1.git/commitdiff
nits
authorrsc <rsc>
Mon, 27 Aug 2007 12:48:20 +0000 (12:48 +0000)
committerrsc <rsc>
Mon, 27 Aug 2007 12:48:20 +0000 (12:48 +0000)
bootother.S
defs.h
x86.h

index 5e8348e51932ad78ad095604e8f52697a1ab5668..f243f41ffdeb6ecb3da4380bef63fe1d8234bc46 100644 (file)
@@ -15,8 +15,8 @@
 #
 # This code is identical to bootasm.S except:
 #   - it does not need to enable A20
-#   - it uses 0(start-4) for the %esp
-#   - it jumps to 0(start-8) instead of calling cmain
+#   - it uses the address at start-4 for the %esp
+#   - it jumps to the address at start-8 instead of calling cmain
 
 .set PROT_MODE_CSEG, 0x8         # kernel code segment selector
 .set PROT_MODE_DSEG, 0x10        # kernel data segment selector
diff --git a/defs.h b/defs.h
index cbacf6112af0208a834a986f36e94388b21bf908..af22433287662c93e67aa4ad42fcfd89f8b5f0ae 100644 (file)
--- a/defs.h
+++ b/defs.h
@@ -23,7 +23,7 @@ void            kbd_intr(void);
 void            panic(char*) __attribute__((noreturn));
 
 // exec.c
-int            exec(char*, char**);
+int             exec(char*, char**);
 
 // file.c
 struct file*    filealloc(void);
diff --git a/x86.h b/x86.h
index 009fa3306d7dd948f2260b3342cbbe9ff1661709..1ef79cbab17f11aee1f7b5536b0de5fb3ea1d6fe 100644 (file)
--- a/x86.h
+++ b/x86.h
@@ -5,6 +5,7 @@ static inline uchar
 inb(ushort port)
 {
   uchar data;
+
   asm volatile("in %1,%0" : "=a" (data) : "d" (port));
   return data;
 }
@@ -91,6 +92,7 @@ static inline void
 cpuid(uint info, uint *eaxp, uint *ebxp, uint *ecxp, uint *edxp)
 {
   uint eax, ebx, ecx, edx;
+
   asm volatile("cpuid" :
                "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) :
                "a" (info));