Skip to content

Change USER_FLAGS so it is compatible with NEC V25 microcontroller#2429

Merged
ghaerr merged 1 commit intoghaerr:masterfrom
swausd:master
Oct 31, 2025
Merged

Change USER_FLAGS so it is compatible with NEC V25 microcontroller#2429
ghaerr merged 1 commit intoghaerr:masterfrom
swausd:master

Conversation

@swausd
Copy link
Copy Markdown
Contributor

@swausd swausd commented Oct 31, 2025

USER_FLAGS is used in process.c/arch_setup_user_stack() to prepare the processor status word (PSW) for a context switch. Currently bits 15-14 are set to '0' which conflicts with the NEC V25 CPU (switches to undefined register bank on next contrext switch). As these bits are not used for other CPUs it can be set to '1'.

Refernce: #2424

USER_FLAGS is used in process.c/arch_setup_user_stack() to prepare the processor status word (PSW) for a context switch. Currently bits 15-14 are set to '0' which conflicts with the NEC V25 CPU (switches to undefined register bank on next contrext switch). As these bits are not used for other CPUs it can be set to '1'.
@ghaerr
Copy link
Copy Markdown
Owner

ghaerr commented Oct 31, 2025

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants