|
| From: | Richard Henderson |
| Subject: | Re: [PATCH 13/24] bsd-user/arm/target_arch_thread.h: Routines to create and switch to a thread |
| Date: | Thu, 28 Oct 2021 08:57:39 -0700 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 10/19/21 9:44 AM, Warner Losh wrote:
+ regs->spsr = ARM_CPU_MODE_USR;
+ if (entry & 0x1) {
+ regs->spsr |= CPSR_T;
+ }
(1) Why are you setting SPSR not CPSR? (2) Changes to CPSR cannot be made manually; you need cpsr_write. r~
| [Prev in Thread] | Current Thread | [Next in Thread] |