1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-23 08:26:17 +04:00

Merge branch 'mipsel' of github.com:oscourse-tsinghua/rcore_plus into mipsel

This commit is contained in:
Yuhao Zhou 2019-04-06 02:11:21 +08:00
commit 26a5847a0a
3 changed files with 8 additions and 2 deletions

View File

@ -127,7 +127,7 @@ else ifeq ($(arch), mipsel)
ifeq ($(board), malta)
qemu_opts += \
-machine $(board) \
-serial none -serial none -serial mon:stdio \
-serial mon:stdio \
-kernel $(kernel_img)
endif
endif

View File

@ -24,6 +24,12 @@
reg = <0x00000000 0x10000000>;
};
uart0: serial@b80003f8 {
compatible = "ns16550a";
reg = <0xb80003f8 0x8>;
clock-frequency = <1843200>;
};
uart2: serial@bf000900 {
compatible = "ns16550a";
reg = <0xbf000900 0x40>;

View File

@ -10,7 +10,7 @@ pub mod console;
/// Initialize serial port first
pub fn init_serial_early() {
assert_has_not_been_called!("board::init must be called only once");
serial::init(0xbf000900);
serial::init(0xb80003f8);
println!("Hello QEMU Malta!");
}