瀏覽代碼

fix typos in asm calls

Ales Katona 5 年之前
父節點
當前提交
30555e4d79
共有 7 個文件被更改,包括 12 次插入12 次删除
  1. 1 1
      src/register/ucause.rs
  2. 2 2
      src/register/uepc.rs
  3. 3 3
      src/register/uie.rs
  4. 1 1
      src/register/uip.rs
  5. 2 2
      src/register/uscratch.rs
  6. 1 1
      src/register/utval.rs
  7. 2 2
      src/register/utvec.rs

+ 1 - 1
src/register/ucause.rs

@@ -57,4 +57,4 @@ impl Ucause {
     }
 }
 
-read_csr_as!(Ucause, 0x042, __read_mcause);
+read_csr_as!(Ucause, 0x042, __read_ucause);

+ 2 - 2
src/register/uepc.rs

@@ -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);

+ 3 - 3
src/register/uie.rs

@@ -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

+ 1 - 1
src/register/uip.rs

@@ -34,4 +34,4 @@ impl Uip {
     }
 }
 
-read_csr_as!(Uip, 0x044, __read_mip);
+read_csr_as!(Uip, 0x044, __read_uip);

+ 2 - 2
src/register/uscratch.rs

@@ -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 - 1
src/register/utval.rs

@@ -1,3 +1,3 @@
 //! utval register
 
-read_csr_as_usize!(0x043, __read_mtval);
+read_csr_as_usize!(0x043, __read_utval);

+ 2 - 2
src/register/utvec.rs

@@ -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]