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 11# Unreleased
22
3+ - Use new ` asm! ` syntax instead of deprecated ` llvm_asm! ` ([ #148 ] ( https://github.com/rust-osdev/bootloader/154 ) )
4+
35# 0.10.1 – 2021-04-07
46
57- Fix docs.rs build: Don't enable any features
Original file line number Diff line number Diff line change 11#![ feature( lang_items) ]
22#![ feature( global_asm) ]
3- #![ feature( llvm_asm) ]
43#![ feature( asm) ]
54#![ no_std]
65#![ no_main]
@@ -51,8 +50,10 @@ extern "C" {
5150#[ no_mangle]
5251pub unsafe extern "C" fn stage_4 ( ) -> ! {
5352 // 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+ ) ;
5657
5758 let kernel_start = 0x400000 ;
5859 let kernel_size = & _kernel_size as * const _ as u64 ;
You can’t perform that action at this time.
0 commit comments