Last active
July 24, 2020 19:35
-
-
Save Forty-Bot/d7d6cebdc3ebd8c071117fa11b73a47b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0412]: cannot find type `Reg` in this scope | |
--> arch/rv32i/src/csr/mie.rs:5:21 | |
| | |
5 | register_bitfields![Reg, | |
| ^^^ not found in this scope | |
| | |
= note: consider importing this type alias: | |
crate::Reg | |
warning: unused import: `crate::Reg` | |
--> arch/rv32i/src/csr/mie.rs:1:5 | |
| | |
1 | use crate::Reg; | |
| ^^^^^^^^^^ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use crate::Reg; | |
use kernel::common::registers::register_bitfields; | |
// mtvec contains the address(es) of the trap handler | |
register_bitfields![Reg, | |
pub mie [ | |
usoft OFFSET(0) NUMBITS(1) [], | |
ssoft OFFSET(1) NUMBITS(1) [], | |
msoft OFFSET(3) NUMBITS(1) [], | |
utimer OFFSET(4) NUMBITS(1) [], | |
stimer OFFSET(5) NUMBITS(1) [], | |
mtimer OFFSET(7) NUMBITS(1) [], | |
uext OFFSET(8) NUMBITS(1) [], | |
sext OFFSET(9) NUMBITS(1) [], | |
mext OFFSET(11) NUMBITS(1) [] | |
] | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment