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 */
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);
}
}
}
-/* 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;