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
3 changes: 3 additions & 0 deletions ch32fun/ch32fun.c
Original file line number Diff line number Diff line change
Expand Up @@ -1451,6 +1451,7 @@ void handle_reset( void )

__attribute__ ((naked)) int setjmp( jmp_buf env )
{
(void)env;
asm volatile(
// Common registers
" sw ra, 0*4(a0)\n"
Expand Down Expand Up @@ -1493,6 +1494,8 @@ __attribute__ ((naked)) int setjmp( jmp_buf env )

__attribute__ ((naked)) void longjmp( jmp_buf env, int val )
{
(void)env;
(void)val;
asm volatile(
// Common registers
" lw ra, 0*4(a0)\n"
Expand Down
Loading