Add support for address-aligned-mode
This commit is contained in:
8
pim-os/src/boot.rs
Normal file
8
pim-os/src/boot.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
use core::arch::global_asm;
|
||||
|
||||
global_asm!(include_str!("start.s"));
|
||||
|
||||
extern "C" {
|
||||
pub fn set_page_table_cache();
|
||||
pub fn set_page_table_non_cache();
|
||||
}
|
||||
@@ -3,20 +3,21 @@ use pim_isa::{File, Instruction, Kernel};
|
||||
pub const TEST_KERNEL: Kernel = Kernel([
|
||||
Instruction::MOV {
|
||||
src: File::Bank,
|
||||
dst: File::Grf { index: 0 },
|
||||
dst: File::GrfA { index: 0 },
|
||||
},
|
||||
Instruction::MOV {
|
||||
src: File::Bank,
|
||||
dst: File::Grf { index: 1 },
|
||||
dst: File::GrfA { index: 1 },
|
||||
},
|
||||
Instruction::MAC {
|
||||
src0: File::Grf { index: 0 },
|
||||
src1: File::Bank,
|
||||
src2: File::Grf { index: 1 },
|
||||
dst: File::Grf { index: 1 },
|
||||
src0: File::Bank,
|
||||
src1: File::GrfA { index: 0 },
|
||||
src2: File::GrfA { index: 1 },
|
||||
dst: File::GrfA { index: 1 },
|
||||
aam: false
|
||||
},
|
||||
Instruction::FILL {
|
||||
src: File::Grf { index: 1 },
|
||||
src: File::GrfA { index: 1 },
|
||||
dst: File::Bank,
|
||||
},
|
||||
Instruction::EXIT,
|
||||
|
||||
Reference in New Issue
Block a user