File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Unreleased
2
2
3
+ - Use new ` asm! ` syntax instead of deprecated ` llvm_asm! ` ([ #148 ] ( https://github.com/rust-osdev/bootloader/154 ) )
4
+
3
5
# 0.10.1 – 2021-04-07
4
6
5
7
- Fix docs.rs build: Don't enable any features
Original file line number Diff line number Diff line change 1
1
#![ feature( lang_items) ]
2
2
#![ feature( global_asm) ]
3
- #![ feature( llvm_asm) ]
4
3
#![ feature( asm) ]
5
4
#![ no_std]
6
5
#![ no_main]
@@ -51,8 +50,10 @@ extern "C" {
51
50
#[ no_mangle]
52
51
pub unsafe extern "C" fn stage_4 ( ) -> ! {
53
52
// Set stack segment
54
- llvm_asm ! ( "mov bx, 0x0
55
- mov ss, bx" :: : "bx" : "intel" ) ;
53
+ asm ! (
54
+ "mov bx, 0x0; mov ss, bx" ,
55
+ out( "bx" ) _,
56
+ ) ;
56
57
57
58
let kernel_start = 0x400000 ;
58
59
let kernel_size = & _kernel_size as * const _ as u64 ;
You can’t perform that action at this time.
0 commit comments