Skip to content

Commit

Permalink
A version that works both on k210 and qemu.
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomHeartCoder committed Mar 5, 2021
1 parent bdf8eb0 commit 9b0bf37
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# platform := k210
platform := qemu
mode := debug
#mode := release
platform := k210
# platform := qemu
# mode := debug
mode := release
K=kernel
U=xv6-user
T=target
Expand Down
Binary file removed kernel/.sdcard.c.swp
Binary file not shown.
5 changes: 1 addition & 4 deletions kernel/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ main(unsigned long hartid, unsigned long dtb_pa)
#endif

disk_init();
#ifndef QEMU
test_sdcard();
#endif

binit(); // buffer cache
fileinit(); // file table
Expand All @@ -72,7 +69,7 @@ main(unsigned long hartid, unsigned long dtb_pa)
#ifndef QEMU
device_init(dtb_pa, hartid);
#else
//plicinithart(); // ask PLIC for device interrupts
plicinithart(); // ask PLIC for device interrupts
#endif
printf("hart 1 init done\n");
}
Expand Down

0 comments on commit 9b0bf37

Please sign in to comment.