Commit f4f8609b authored by Stewart Brodie's avatar Stewart Brodie
Browse files

Oops - loaded R0 from the wrong word on the stack.

Detail:
  WritePSRc alters the flags in 26-bit builds - stuffs up the crafty CMP
    instruction.
  Loaded the wrong register from the stack when branching to the AddEntry
    routine - results in rubbish addresses being jumped to whenever the Free
    module wants to look up free space.
Admin:
  Tested in desktop build.  No longer causes spectacular crashes.

Version 0.35. Tagged as 'Free-0_35'
parent 05bf4c26
......@@ -6,9 +6,13 @@
GBLS Module_MinorVersion
GBLS Module_Date
GBLS Module_FullVersion
Module_MajorVersion SETS "0.34"
Module_Version SETA 34
GBLS Module_ApplicationDate2
GBLS Module_ApplicationDate4
Module_MajorVersion SETS "0.35"
Module_Version SETA 35
Module_MinorVersion SETS ""
Module_Date SETS "25 May 2000"
Module_FullVersion SETS "0.34"
Module_Date SETS "10 Jul 2000"
Module_ApplicationDate2 SETS "10-Jul-00"
Module_ApplicationDate4 SETS "10-Jul-2000"
Module_FullVersion SETS "0.35"
END
/* (0.34)
/* (0.35)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 0.34
#define Module_MajorVersion_CMHG 0.35
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 25 May 2000
#define Module_Date_CMHG 10 Jul 2000
#define Module_MajorVersion "0.34"
#define Module_Version 34
#define Module_MajorVersion "0.35"
#define Module_Version 35
#define Module_MinorVersion ""
#define Module_Date "25 May 2000"
#define Module_Date "10 Jul 2000"
#define Module_FullVersion "0.34"
#define Module_ApplicationDate2 "10-Jul-00"
#define Module_ApplicationDate4 "10-Jul-2000"
#define Module_FullVersion "0.35"
......@@ -22,6 +22,7 @@ Free_SWIdecode
BGT badswi
WritePSRc SVC_mode,R10,,R9 ; re-enable interrupts
CMP R11,#1
BNE SWIFree_Register
BL RemoveEntry
swireturn
......@@ -54,7 +55,7 @@ ErrorBlock_BadSWI
SWIFree_Register ROUT
MOV r1,r0
LDR r0,[sp,#2*4]
LDR r0,[sp,#1*4]
BL AddEntry
B swireturn
......
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