File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
#[ cfg( not( feature = "binary" ) ) ]
2
- #[ allow( unreachable_code) ]
3
2
fn main ( ) {
4
- #[ cfg( target_arch = "x86" ) ]
5
- panic ! ( "This crate currently does not support 32-bit protected mode. \
6
- See https://github.com/rust-osdev/bootloader/issues/70 for more information.") ;
3
+ //#[cfg(target_arch = "x86")]
4
+ compile_error ! (
5
+ "This crate currently does not support 32-bit protected mode. \
6
+ See https://github.com/rust-osdev/bootloader/issues/70 for more information."
7
+ ) ;
7
8
8
- #[ cfg( not( target_arch = "x86_64" ) ) ]
9
- panic ! ( "This crate only supports the x86_64 architecture." ) ;
9
+ #[ cfg( not( any ( target_arch = "x86_64" , target_arch = "x86" ) ) ) ]
10
+ compile_error ! ( "This crate only supports the x86_64 architecture." ) ;
10
11
}
11
12
12
13
#[ cfg( feature = "binary" ) ]
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ use x86_64::ux::u9;
25
25
use x86_64:: { PhysAddr , VirtAddr } ;
26
26
27
27
// The bootloader_config.rs file contains some configuration constants set by the build script:
28
- // PHYSICAL_MEMORY_OFFSET: The offset into the virtual address space where the physical memory
28
+ // PHYSICAL_MEMORY_OFFSET: The offset into the virtual address space where the physical memory
29
29
// is mapped if the `map_physical_memory` feature is activated.
30
30
//
31
31
// KERNEL_STACK_ADDRESS: The virtual address of the kernel stack.
You can’t perform that action at this time.
0 commit comments