Module-is-32-bit test code?
Rick Murray (539) 13840 posts |
Hi, I was looking at the 32 bit testing performed during module load for a reply to DavidS and…
…Sources.Kernel.s.ModHand lines 2206 to 2226. Shouldn’t the MakeErrorBlock RMNot32bit come before the instruction to Pull PC? |
Jeffrey Lee (213) 6048 posts |
You think executing an error block is a good idea? :) If you look a little closer: ADR R0, ErrorBlock_RMNot32bit BL TranslateError_UseR4 Pull "R3, PC" TranslateError will look up the error message using MessageTrans and set the V flag, returning an updated error block pointer in R0. The Pull will then return to the caller. |
Rick Murray (539) 13840 posts |
<rummage> <rummage> Damn these macros! ;-) I thought MakeErrorBlock was code, not data. |