Skip to content

Commit 0e9376f

Browse files
authored
Fix bug in set_handler (#559)
1 parent 701a7f0 commit 0e9376f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

port/raspberrypi/rp2xxx/src/cpus/hazard3.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ pub const interrupt = struct {
143143

144144
const old_handler = ram_vectors[@intFromEnum(int)];
145145
ram_vectors[@intFromEnum(int)] = handler orelse microzig.interrupt.unhandled;
146-
return if (old_handler == microzig.interrupt.unhandled) null else old_handler;
146+
return if (old_handler.naked == microzig.interrupt.unhandled.naked) null else old_handler;
147147
}
148148
};
149149

0 commit comments

Comments
 (0)