From: Ben Pfaff Date: Mon, 30 Aug 2004 17:46:07 +0000 (+0000) Subject: Test disk code slightly more thoroughly. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pintos-anon;a=commitdiff_plain;h=5c9e01777f46b56b671671ef3d305148f1aa0460 Test disk code slightly more thoroughly. --- diff --git a/src/threads/init.c b/src/threads/init.c index 8702da4..81188e9 100644 --- a/src/threads/init.c +++ b/src/threads/init.c @@ -35,12 +35,12 @@ main_thread (void *aux UNUSED) { struct disk *hda; disk_init (); - hda = disk_get (0); + hda = disk_get (1); if (hda != NULL) { char buf[DISK_SECTOR_SIZE]; disk_read (hda, 0, buf); - hex_dump (buf, sizeof buf); + //hex_dump (buf, sizeof buf); } else printk ("no hda\n"); @@ -65,7 +65,7 @@ main (void) the bootloader how much RAM this machine has. */ kernel_pages = (&_end - &_text + 4095) / 4096; ram_pages = *(uint32_t *) (0x7e00 - 6); - printk ("ram: detected %'d kB.\n", ram_pages * 4); + printk ("ram: detected %'d kB main memory.\n", ram_pages * 4); /* Memory from the end of the kernel through the end of memory is free. Give it to the page allocator. */