Skip to content

Commit a3ffd7d

Browse files
committed
rsp: disable ASAN on RSP crash to avoid triggering while debugging
1 parent adb7073 commit a3ffd7d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/rsp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "rsp.h"
1717
#include "rdp.h"
1818
#include "debug.h"
19+
#include "emux.h"
1920
#include "console.h"
2021
#include "regsinternal.h"
2122
#include "n64sys.h"
@@ -220,6 +221,8 @@ void __rsp_crash(const char *file, int line, const char *func, const char *msg,
220221
// avoid being preempted for any reason.
221222
disable_interrupts();
222223

224+
emux_xasan_disable();
225+
223226
// Read the status registers right away. Its value can mutate at any time
224227
// so the earlier the better.
225228
uint32_t sp_status = *SP_STATUS;

0 commit comments

Comments
 (0)