Fix formatting.
[pintos-anon] / src / threads / init.c
index 3eb45add76b9a74a4828648974a83fde4ae7f00a..8a2c4919008291e1f049c9694989991e235d7c9a 100644 (file)
@@ -32,7 +32,7 @@ void power_off (void);
 static void
 main_thread (void *aux UNUSED) 
 {
-  thread_execute ("a.out");
+  printk ("execute=%d\n", (int) thread_execute ("a.out"));
 }
 
 int
@@ -94,13 +94,13 @@ make_seg_desc (uint32_t base,
   uint32_t e0 = ((limit & 0xffff)             /* Limit 15:0. */
                  | (base << 16));             /* Base 15:0. */
   uint32_t e1 = (((base >> 16) & 0xff)        /* Base 23:16. */
-                 | ( system << 12)  /* 0=system, 1=code/data. */
-                 | ( type << 8)     /* Segment type. */
+                 | (system << 12)             /* 0=system, 1=code/data. */
+                 | (type << 8)                /* Segment type. */
                  | (dpl << 13)                /* Descriptor privilege. */
                  | (1 << 15)                  /* Present. */
                  | (limit & 0xf0000)          /* Limit 16:19. */
                  | (1 << 22)                  /* 32-bit segment. */
-                 | ( granularity << 23) /* Byte/page granularity. */
+                 | (granularity << 23)        /* Byte/page granularity. */
                  | (base & 0xff000000));      /* Base 31:24. */
   return e0 | ((uint64_t) e1 << 32);
 }