File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change
1
+ ## Breaking
2
+
3
+ - Don't set the ` #[cfg(not(test))] ` attribute for the entry point function in the ` entry_point ` macro
4
+ - With custom test frameworks, it's possible to use the normal entry point also in test environments
5
+ - To get the old behavior, you can add the ` #[cfg(not(test))] ` attribute to the ` entry_point ` invocation
6
+
7
+ ## Other
8
+
1
9
- Additional assertions for the passed ` KERNEL ` executable
2
10
- check that the executable exists (for better error messages)
3
11
- check that the executable has a non-empty text section (an empty text section occurs when no entry point is set)
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ pub mod bootinfo;
22
22
#[ macro_export]
23
23
macro_rules! entry_point {
24
24
( $path: path) => {
25
- #[ cfg( not( test) ) ]
26
25
#[ export_name = "_start" ]
27
26
pub extern "C" fn __impl_start( boot_info: & ' static $crate:: bootinfo:: BootInfo ) -> ! {
28
27
// validate the signature of the program entry point
You can’t perform that action at this time.
0 commit comments