Kinsey Moore started a new discussion on testsuites/validation/tc-score-isr.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1452#note_158201

 > -  register uintptr_t sp __asm__( "1" );
 > -
 >    if ( interrupted_stack_at_multitasking_start == 0 ) {
 > -    interrupted_stack_at_multitasking_start = sp;
 > +    const Per_CPU_Control *cpu_self;
 > +    const uintptr_t       *frame;
 > +
 > +    /*
 > +     * The dispatch runs on the interrupt stack.  The switch to that stack
 > +     * stores the stack pointer of the interrupted context at the begin of 
 > the
 > +     * frame at the top of the interrupt stack.
 > +     */
 > +    cpu_self = _Per_CPU_Get();
 > +    frame = (const uintptr_t *) ( (uintptr_t) 
 > cpu_self->interrupt_stack_high -
 > +      CPU_INTERRUPT_FRAME_SIZE );
 > +    interrupted_stack_at_multitasking_start = *frame;

The previous code was trying to access r1, but the lowest address in the 
interrupt frame is marked r3. Is r3 actually the correct register to access 
instead of r1?

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1452#note_158201
You're receiving this email because of your account on gitlab.rtems.org. 
Unsubscribe from this thread: 
https://gitlab.rtems.org/-/sent_notifications/5-7vu7tmvp4j3xnpmkmzfcdzh35-1d/unsubscribe
 | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | 
Help: https://gitlab.rtems.org/help


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to