diff --git a/bootloader/rustsbi-k210.bin b/bootloader/rustsbi-k210.bin index 160e2439..d83a7a0e 100755 Binary files a/bootloader/rustsbi-k210.bin and b/bootloader/rustsbi-k210.bin differ diff --git a/bootloader/rustsbi-qemu.bin b/bootloader/rustsbi-qemu.bin index 54329fcb..514b37c8 100755 Binary files a/bootloader/rustsbi-qemu.bin and b/bootloader/rustsbi-qemu.bin differ diff --git a/os/Makefile b/os/Makefile index a7d26e75..510b0a63 100644 --- a/os/Makefile +++ b/os/Makefile @@ -10,13 +10,13 @@ SDCARD := /dev/sdb APPS := ../user/src/bin # BOARD -BOARD ?= qemu -SBI ?= rustsbi -BOOTLOADER := ../bootloader/$(SBI)-$(BOARD).bin +BOARD ?= qemu +SBI ?= rustsbi +BOOTLOADER := ../bootloader/$(SBI)-$(BOARD).bin # Run K210 K210-SERIALPORT = /dev/ttyUSB0 -K210-BURNER = ../tools/kflash.py +K210-BURNER = ../tools/kflash.py # Binutils OBJDUMP := rust-objdump --arch-name=riscv64 @@ -28,10 +28,17 @@ DISASM ?= -x build: env $(KERNEL_BIN) $(FS_IMG) env: +<<<<<<< HEAD (rustup component list | grep "rust-src") || rustup component add rust-src (rustup component list | grep "llvm-tools-preview") || rustup component add llvm-tools-preview (which rust-objdump) || cargo install cargo-binutils (rustup target list | grep "riscv64gc-unknown-none-elf") || rustup target add riscv64gc-unknown-none-elf +======= + (rustup target list | grep "riscv64gc-unknown-none-elf (installed)") || rustup target add $(TARGET) + cargo install cargo-binutils + rustup component add rust-src + rustup component add llvm-tools-preview +>>>>>>> dev sdcard: $(FS_IMG) @echo "Are you sure write to $(SDCARD) ? [y/N] " && read ans && [ $${ans:-N} = y ] diff --git a/os/src/mm/mod.rs b/os/src/mm/mod.rs index 7eedef2f..2242eecb 100644 --- a/os/src/mm/mod.rs +++ b/os/src/mm/mod.rs @@ -23,5 +23,5 @@ pub use memory_set::remap_test; pub fn init() { heap_allocator::init_heap(); frame_allocator::init_frame_allocator(); - KERNEL_SPACE.clone().lock().activate(); + KERNEL_SPACE.lock().activate(); } \ No newline at end of file diff --git a/rust-toolchain b/rust-toolchain index bf867e0a..a08f00d1 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly +nightly-2021-01-30