mirror of
https://github.com/rcore-os/rCore.git
synced 2024-11-23 00:16:17 +04:00
Init console on ThinPad, seems not wworking properly
Signed-off-by: Harry Chen <i@harrychen.xyz>
This commit is contained in:
parent
582268ec21
commit
e94fe1564e
@ -1,3 +1,3 @@
|
||||
/// board specific constants
|
||||
pub const MEMORY_END: usize = 0x8080_0000;
|
||||
pub const KERNEL_HEAP_SIZE: usize = 0x0038_0000;
|
||||
pub const KERNEL_HEAP_SIZE: usize = 0x0044_0000;
|
||||
|
@ -24,9 +24,6 @@ pub fn init_driver() {
|
||||
// TODO: add possibly more drivers
|
||||
// timer::init();
|
||||
fb::init();
|
||||
if let Some(fb) = fb::FRAME_BUFFER.lock().as_mut() {
|
||||
fb.clear();
|
||||
}
|
||||
}
|
||||
|
||||
pub fn probe_fb_info(width: u32, height: u32, depth: u32) -> FramebufferResult {
|
||||
|
@ -13,4 +13,7 @@ pub fn init() {
|
||||
assert_has_not_been_called!("driver::init must be called only once");
|
||||
board::init_driver();
|
||||
console::init();
|
||||
if let Some(con) = console::CONSOLE.lock().as_mut() {
|
||||
con.clear();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user