Skip to content

Commit

Permalink
Disable forcing RX PSW user-mode unless RX_PSW_USER_MODE is defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed May 14, 2024
1 parent 4785bc1 commit 6bfceab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/boot_renesas_start.S
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ _PowerON_Reset :
2:
#endif

#ifdef RX_PSW_USER_MODE
/* check and skip PSW setup if already in "user mode" */
mvfc psw, r1
btst #20, r1 /* Processor Mode: 0=Supervisor, 1=User */
Expand All @@ -85,6 +86,7 @@ _PowerON_Reset :
nop
nop
skip_psw_setup:
#endif

/* start user program */
#ifdef NO_LEADING_UNDERSCORE
Expand Down

0 comments on commit 6bfceab

Please sign in to comment.