File tree Expand file tree Collapse file tree 9 files changed +7
-11
lines changed Expand file tree Collapse file tree 9 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -338,8 +338,8 @@ use core::arch::asm;
338
338
use uefi :: prelude :: * ;
339
339
340
340
#[entry]
341
- fn efi_main (image : uefi :: Handle , mut system_table : SystemTable <Boot >) -> Status {
342
- uefi :: helpers :: init (& mut system_table ). expect (" Failed to initialize utilities" );
341
+ fn efi_main (image : uefi :: Handle , system_table : SystemTable <Boot >) -> Status {
342
+ uefi :: helpers :: init (). expect (" Failed to initialize utilities" );
343
343
log :: set_max_level (log :: LevelFilter :: Info );
344
344
345
345
let std_num = /* FIXME */ ;
Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ println!("{}", record.args());
501
501
502
502
### Panic 处理
503
503
504
- 在拥有了日志输出的能力之后可以对 panic 进行更好的处理,以便在 panic 时输出更加详细的信息。代码中已经为大家启用了 ` #![feature(panic_info_message)] ` 特性,并且默认给出了一个 ` error! ` 的输出。
504
+ 在拥有了日志输出的能力之后可以对 panic 进行更好的处理,以便在 panic 时输出更加详细的信息。代码中默认给出了一个 ` error! ` 的输出。
505
505
506
506
在 ` src/utils/macros.rs ` 中,你可以选择按照自己的预期修改 ` panic_handler ` 的实现。
507
507
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ wsl --install -d Ubuntu
88
88
89
89
` ` ` bash
90
90
$ rustc --version
91
- rustc 1.79.0 (129f3b996 2024-06-10 )
91
+ rustc 1.80.1 (3f5fd8dd4 2024-08-06 )
92
92
93
93
$ qemu-system-x86_64 --version
94
94
QEMU emulator version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1)
@@ -104,7 +104,7 @@ GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
104
104
105
105
` ` ` bash
106
106
$ rustc --version
107
- rustc 1.79.0 (129f3b996 2024-06-10 )
107
+ rustc 1.80.1 (3f5fd8dd4 2024-08-06 )
108
108
109
109
$ qemu-system-x86_64 --version
110
110
QEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.15)
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ edition = "2021"
5
5
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
6
6
7
7
[dependencies ]
8
- uefi = { version = " 0.28 " , default-features = false }
8
+ uefi = { version = " 0.31 " , default-features = false }
9
9
log = " 0.4"
10
10
11
11
[features ]
Original file line number Diff line number Diff line change 3
3
#![ feature( naked_functions) ]
4
4
#![ feature( abi_x86_interrupt) ]
5
5
#![ feature( type_alias_impl_trait) ]
6
- #![ feature( panic_info_message) ]
7
6
8
7
#[ macro_use]
9
8
extern crate log;
Original file line number Diff line number Diff line change 4
4
#![ feature( abi_x86_interrupt) ]
5
5
#![ feature( alloc_error_handler) ]
6
6
#![ feature( type_alias_impl_trait) ]
7
- #![ feature( panic_info_message) ]
8
7
#![ feature( map_try_insert) ]
9
8
#![ allow( clippy:: missing_safety_doc) ]
10
9
#![ allow( clippy:: result_unit_err) ]
Original file line number Diff line number Diff line change @@ -17,4 +17,4 @@ bitflags = "2.3"
17
17
bit_field = " 0.10"
18
18
libm = " 0.2"
19
19
linked_list_allocator = " 0.10"
20
- volatile = " 0.5 "
20
+ volatile = " 0.6 "
Original file line number Diff line number Diff line change 1
1
#![ cfg_attr( not( test) , no_std) ]
2
2
#![ allow( dead_code, unused_imports) ]
3
- #![ feature( panic_info_message) ]
4
3
#![ feature( alloc_error_handler) ]
5
4
6
5
#[ macro_use]
Original file line number Diff line number Diff line change 1
1
#![ allow( dead_code, unused_imports) ]
2
- #![ feature( panic_info_message) ]
3
2
#![ feature( alloc_error_handler) ]
4
3
#![ cfg_attr( not( test) , no_std) ]
5
4
You can’t perform that action at this time.
0 commit comments