fix typos in asm calls
This commit is contained in:
parent
49446ad869
commit
30555e4d79
@ -57,4 +57,4 @@ impl Ucause {
|
||||
}
|
||||
}
|
||||
|
||||
read_csr_as!(Ucause, 0x042, __read_mcause);
|
||||
read_csr_as!(Ucause, 0x042, __read_ucause);
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! uepc register
|
||||
|
||||
read_csr_as_usize!(0x041, __read_mepc);
|
||||
write_csr_as_usize!(0x041, __write_mepc);
|
||||
read_csr_as_usize!(0x041, __read_uepc);
|
||||
write_csr_as_usize!(0x041, __write_uepc);
|
||||
|
@ -34,9 +34,9 @@ impl Uie {
|
||||
}
|
||||
}
|
||||
|
||||
read_csr_as!(Uie, 0x004, __read_sie);
|
||||
set!(0x004, __set_sie);
|
||||
clear!(0x004, __clear_sie);
|
||||
read_csr_as!(Uie, 0x004, __read_uie);
|
||||
set!(0x004, __set_uie);
|
||||
clear!(0x004, __clear_uie);
|
||||
|
||||
set_clear_csr!(
|
||||
/// User Software Interrupt Enable
|
||||
|
@ -34,4 +34,4 @@ impl Uip {
|
||||
}
|
||||
}
|
||||
|
||||
read_csr_as!(Uip, 0x044, __read_mip);
|
||||
read_csr_as!(Uip, 0x044, __read_uip);
|
||||
|
@ -1,4 +1,4 @@
|
||||
//! uscratch register
|
||||
|
||||
read_csr_as_usize!(0x040, __read_mscratch);
|
||||
write_csr_as_usize!(0x040, __write_mscratch);
|
||||
read_csr_as_usize!(0x040, __read_uscratch);
|
||||
write_csr_as_usize!(0x040, __write_uscratch);
|
||||
|
@ -1,3 +1,3 @@
|
||||
//! utval register
|
||||
|
||||
read_csr_as_usize!(0x043, __read_mtval);
|
||||
read_csr_as_usize!(0x043, __read_utval);
|
||||
|
@ -30,8 +30,8 @@ impl Utvec {
|
||||
}
|
||||
}
|
||||
|
||||
read_csr_as!(Utvec, 0x005, __read_stvec);
|
||||
write_csr!(0x005, __write_stvec);
|
||||
read_csr_as!(Utvec, 0x005, __read_utvec);
|
||||
write_csr!(0x005, __write_utvec);
|
||||
|
||||
/// Writes the CSR
|
||||
#[inline]
|
||||
|
Loading…
Reference in New Issue
Block a user