File tree 5 files changed +7
-0
lines changed
5 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 5
5
//! AArch64.
6
6
7
7
use crate :: QEMUExit ;
8
+ use core:: arch:: asm;
8
9
9
10
const EXIT_SUCCESS : u32 = 0 ;
10
11
const EXIT_FAILURE : u32 = 1 ;
Original file line number Diff line number Diff line change 5
5
//! RISCV64.
6
6
7
7
use crate :: QEMUExit ;
8
+ use core:: arch:: asm;
8
9
9
10
const EXIT_SUCCESS : u32 = 0x5555 ; // Equals `exit(0)`.
10
11
Original file line number Diff line number Diff line change 5
5
//! x86.
6
6
7
7
use crate :: QEMUExit ;
8
+ use core:: arch:: asm;
8
9
9
10
const EXIT_FAILURE : u32 = 0 ; // since ((0 << 1) | 1) = 1.
10
11
Original file line number Diff line number Diff line change 4
4
5
5
//! AArch64 specific setup code.
6
6
7
+ use core:: arch:: asm;
8
+
7
9
#[ no_mangle]
8
10
unsafe fn _start ( ) -> ! {
9
11
asm ! ( "mov sp, #0x80000" ) ;
Original file line number Diff line number Diff line change 4
4
5
5
//! RISCV64 specific setup code.
6
6
7
+ use core:: arch:: asm;
8
+
7
9
#[ no_mangle]
8
10
unsafe fn _start ( ) -> ! {
9
11
asm ! ( "la sp, _stack" ) ;
You can’t perform that action at this time.
0 commit comments