mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
fix offset of UART
This commit is contained in:
parent
5deeebae3b
commit
4cded404e3
1 changed files with 4 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ pub extern "C" fn init(arg_offset: *const u32, init_offset: *const u32, rpt_offs
|
|||
mem::MemoryManager::with_mut(|memory_manager| {
|
||||
memory_manager
|
||||
.map_range(
|
||||
0xF0002000 as *mut u8,
|
||||
0xF0004000 as *mut u8,
|
||||
((debug::SUPERVISOR_UART.base as u32) & !4095) as *mut u8,
|
||||
4096,
|
||||
PID::new(1).unwrap(),
|
||||
|
|
@ -133,6 +133,9 @@ pub extern "C" fn kmain() {
|
|||
// Start performing round-robin on all child processes.
|
||||
// Note that at this point, no new direct children of INIT may be created.
|
||||
let mut pid = None;
|
||||
for _ in 0..100 {
|
||||
println!("Hello world");
|
||||
}
|
||||
loop {
|
||||
arch::irq::disable_all_irqs();
|
||||
pid = next_pid_to_run(pid);
|
||||
|
|
|
|||
Loading…
Reference in a new issue