refactor: unsafe only in adapter + libkos; forbid(unsafe_code) everywhere else; libkos Window (volatile, bounds-checked MMIO/DMA/shared mem), entry!, thread::spawn; MapRegion returns pages; kernel const-built (with_cores/install_platform); newtype addrs
This commit is contained in:
@@ -20,7 +20,7 @@ pub struct RiscVPlatform {
|
||||
}
|
||||
|
||||
impl RiscVPlatform {
|
||||
pub fn new(kernel_pt_addr: usize, num_cores: u8) -> Self {
|
||||
pub const fn new(kernel_pt_addr: usize, num_cores: u8) -> Self {
|
||||
Self {
|
||||
num_cores,
|
||||
kernel_pt: kernel_pt_addr,
|
||||
|
||||
Reference in New Issue
Block a user