File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -662,8 +662,10 @@ pub const startup_logic = struct {
662
662
pub const _vector_table : VectorTable = blk : {
663
663
var tmp : VectorTable = .{
664
664
.initial_stack_pointer = microzig .config .end_of_stack ,
665
- // TODO: _ramimage_start if that target?
666
- .Reset = .{ .c = if (is_ramimage ()) microzig .cpu .startup_logic .ramimage_start else microzig .cpu .startup_logic ._start },
665
+ .Reset = .{ .c = if (is_ramimage ())
666
+ microzig .cpu .startup_logic .ramimage_start
667
+ else
668
+ microzig .cpu .startup_logic ._start },
667
669
};
668
670
669
671
for (@typeInfo (@TypeOf (microzig_options .interrupts )).@"struct" .fields ) | field | {
@@ -681,7 +683,7 @@ fn is_ramimage() bool {
681
683
// HACK
682
684
// TODO: Use microzig_options?
683
685
if (microzig .config .board_name ) | board_name |
684
- return ( std .mem .containsAtLeast (u8 , board_name , 1 , "ram image" ) );
686
+ return std .mem .containsAtLeast (u8 , board_name , 1 , "ram image" );
685
687
return false ;
686
688
}
687
689
You can’t perform that action at this time.
0 commit comments