Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions port/wch/ch32v/src/cpus/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ pub const startup_logic = struct {
\\ addi a1, a1, 4
\\ blt a1, a2, clear_bss_loop
\\clear_bss_done:
);
::: .{ .x10 = true, .x11 = true, .x12 = true });

// Copy .data from FLASH to RAM.
asm volatile (
Expand All @@ -325,7 +325,7 @@ pub const startup_logic = struct {
\\ addi a1, a1, 4
\\ bne a1, a2, copy_data_loop
\\copy_done:
);
::: .{ .x10 = true, .x11 = true, .x12 = true, .x13 = true });
}

export fn _reset_vector() linksection("microzig_flash_start") callconv(.naked) void {
Expand Down
Loading