Fix some whitespace changes that shouldn't have been changed (for cleaner
authorDavid Given <dg@cowlark.com>
Mon, 19 Oct 2015 17:50:44 +0000 (19:50 +0200)
committerDavid Given <dg@cowlark.com>
Mon, 19 Oct 2015 17:50:44 +0000 (19:50 +0200)
diffs with upstream).

Kernel/dev/blkdev.c
Kernel/devio.c
Kernel/start.c

index 2bbc247..8791ecf 100644 (file)
@@ -126,8 +126,8 @@ static int blkdev_transfer(uint8_t minor, uint8_t rawflag)
             goto xferfail;
         blk_op.nblock -= n;
         count += n;
-               blk_op.addr += n * BLKSIZE;
-               blk_op.lba += n;
+       blk_op.addr += n * BLKSIZE;
+       blk_op.lba += n;
     }
 
     return count; /* 10/10, would transfer sectors again */
index e4b1975..4d77b22 100644 (file)
@@ -498,10 +498,10 @@ void kputhex(unsigned int v)
 void kputunum(unsigned int v)
 {
        unsigned char n = 0;
-       putdigit((v / 10000) % 10, &n); 
-       putdigit((v / 1000) % 10, &n);  
-       putdigit((v / 100) % 10, &n);   
-       putdigit((v / 10) % 10, &n);    
+       putdigit((v / 10000) % 10, &n);
+       putdigit((v / 1000) % 10, &n);
+       putdigit((v / 100) % 10, &n);
+       putdigit((v / 10) % 10, &n);
        putdigit0(v % 10);
 }
 
index 429962d..9ee09b4 100644 (file)
@@ -55,7 +55,14 @@ void fstabinit(void)
        }
 }
 
-/* FIXME: pass remainder of boot argument to init, also word align */
+/* FIXME: pass remainder of boot argument to init */
+/* Remember two things when modifying this code
+   1. Some processors need 2 byte alignment or better of arguments. We
+      lay it out for 4
+   2. We are going to end up with cases where user and kernel pointer
+      size differ due to memory models etc. We use uputp and we allow
+      room for the pointers to be bigger than kernel */
+
 void create_init(void)
 {
        uint8_t *j;