psr rt bit
In head.S ipsr 'rt' bit along with other bits is set before rfi as the initialization
goes to virtual mode. As the 'rfi' implicitly updates the 'psr' will that cause
problems if 'rsc' is not in lazy mode? Is it assumed that 'rsc' is in lazy mode
by the time _start runs?
- mario.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Mario Smarduch
Mario> In head.S ipsr 'rt' bit along with other bits is set before Mario> rfi as the initialization goes to virtual mode. As the 'rfi' Mario> implicitly updates the 'psr' will that cause problems if Mario> 'rsc' is not in lazy mode?
Yes.
Mario> Is it assumed that 'rsc' is in lazy mode by the time _start Mario> runs?
Yes. SAL Section 3.2.5 guarantees that ar.rsc is set to "enforced lazy mode, little-endian".
--david