Commit 45287c9a authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Rename those constants like I said I would

Detail:
  s/Module, hdr/VFPSupport - VFPSupport_Create_LazyActivate & VFPSupport_Create_Activate now renamed to ..._CreateContext_... like they were meant to have been in my last checkin
Admin:
  Tested on rev A2 BB-xM


Version 0.02. Not tagged
parent 1355ea60
......@@ -51,10 +51,10 @@ VFPSupportSWICheckValue * @
VFPSupport_Context_UserMode * 1 :SHL: 0
VFPSupport_Context_AppSpace * 1 :SHL: 1
; Additional flags suitable for CreateContext
; Additional flags suitable for CreateContext/CheckContext
VFPSupport_Context_LazyActivate * 1 :SHL: 30
VFPSupport_Context_Activate * 1 :SHL: 31
VFPSupport_CreateContext_LazyActivate * 1 :SHL: 30
VFPSupport_CreateContext_Activate * 1 :SHL: 31
; Additional flags returned by ExamineContext
......
......@@ -352,8 +352,8 @@ SWI_CheckContext
CMP r1,#0
BLE %FT10
; Note that this next bit relies on C being set by the above CMP
ASSERT VFPSupport_Context_UserMode+VFPSupport_Context_AppSpace+VFPSupport_Context_LazyActivate+VFPSupport_Context_Activate >= &80000000 ; Must clear sign bit
BICS r0,r0,#VFPSupport_Context_UserMode+VFPSupport_Context_AppSpace+VFPSupport_Context_LazyActivate+VFPSupport_Context_Activate
ASSERT VFPSupport_Context_UserMode+VFPSupport_Context_AppSpace+VFPSupport_CreateContext_LazyActivate+VFPSupport_CreateContext_Activate >= &80000000 ; Must clear sign bit
BICS r0,r0,#VFPSupport_Context_UserMode+VFPSupport_Context_AppSpace+VFPSupport_CreateContext_LazyActivate+VFPSupport_CreateContext_Activate
LDRLSB r0,NumVFPRegs
CMPLS r1,r0
MOVLS r0,#Context_RegDump
......@@ -378,7 +378,7 @@ SWI_CreateContext
; R1 = previously active context ID/preserved
Push "r0-r3,lr"
CMP r2,#0
BIC r0,r0,#VFPSupport_Context_LazyActivate+VFPSupport_Context_Activate ; Clear unwanted flags
BIC r0,r0,#VFPSupport_CreateContext_LazyActivate+VFPSupport_CreateContext_Activate ; Clear unwanted flags
BNE %FT10
BL SWI_CheckContext
MOVVC r3,r0
......@@ -401,10 +401,10 @@ SWI_CreateContext
Pull "r1" ; Actually R0 on input
MOV r0,r2
CLRV
TST r1,#VFPSupport_Context_LazyActivate+VFPSupport_Context_Activate ; Check activation flags
TST r1,#VFPSupport_CreateContext_LazyActivate+VFPSupport_CreateContext_Activate ; Check activation flags
Pull "r1-r3,pc",EQ ; Exit if context doesn't need activating
STR r0,[sp]
ASSERT VFPSupport_Context_Activate = &80000000
ASSERT VFPSupport_CreateContext_Activate = &80000000
MOVMI r1,#0 ; Nonlazy activation
MOVPL r1,#VFPSupport_ChangeContext_Lazy ; Lazy activation
BL SWI_ChangeContext
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment