#define SECTSIZE 512
-void readseg(uchar*, uint, uint);
+static void readseg(uchar*, uint, uint);
void
bootmain(void)
entry();
}
-void
+static void
waitdisk(void)
{
// Wait for disk ready.
}
// Read a single sector at offset into dst.
-void
+static void
readsect(void *dst, uint offset)
{
// Issue command.
// Read 'count' bytes at 'offset' from kernel into physical address 'pa'.
// Might copy more than asked.
-void
+static void
readseg(uchar* pa, uint count, uint offset)
{
uchar* epa;
for(; pa < epa; pa += SECTSIZE, offset++)
readsect(pa, offset);
}
+