mirror of
https://github.com/iceHtwoO/novaOS.git
synced 2026-04-17 20:52:27 +00:00
implement heap allocator tests
This commit is contained in:
committed by
GitHub
parent
82fa03d48e
commit
36bc1f3315
@@ -6,7 +6,6 @@ use core::{
|
||||
use crate::{
|
||||
mmio_read, mmio_write,
|
||||
peripherals::gpio::{blink_gpio, SpecificGpio},
|
||||
print,
|
||||
timer::sleep_s,
|
||||
};
|
||||
|
||||
@@ -54,7 +53,7 @@ fn esr_uart_dump() {
|
||||
let esr: u32;
|
||||
unsafe {
|
||||
asm!(
|
||||
"mrs {esr}, ESR_EL1",
|
||||
"mrs {esr:x}, ESR_EL1",
|
||||
esr = out(reg) esr
|
||||
);
|
||||
}
|
||||
@@ -80,6 +79,7 @@ fn handle_gpio_interrupt() {
|
||||
let val = read_gpio_event_detect_status(i);
|
||||
|
||||
if val {
|
||||
#[allow(clippy::single_match)]
|
||||
match i {
|
||||
26 => print!("Button Pressed"),
|
||||
_ => {}
|
||||
|
||||
Reference in New Issue
Block a user