Skip to content

Commit

Permalink
move default handlers to libmips for backward compat.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiffie committed Jul 16, 2023
1 parent 1ca027f commit 74f31e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mips-rt/link.x
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ INCLUDE memory.x
/* The entry point is the reset handler */
ENTRY(_reset);

/* default handlers for general exception and NMI */
PROVIDE(_general_exception_handler = _default_isr_fn);
PROVIDE(_nmi_handler = _default_isr_fn);

/* stack */
PROVIDE(_stack = ORIGIN(data_mem) + LENGTH(data_mem));

Expand Down
6 changes: 6 additions & 0 deletions mips-rt/native_lib/exception_table.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ _default_isr_fn:
nop
.end _default_isr_fn

.weak _general_exception_handler
_general_exception_handler = _default_isr_fn

.weak _nmi_handler
_nmi_handler = _default_isr_fn

# General Exception
.section .gen_handler, "ax"
.ent _gen_exception
Expand Down
Binary file modified mips-rt/native_lib/libmips-rt.a
Binary file not shown.

0 comments on commit 74f31e8

Please sign in to comment.