Commit e9486d1d authored by Simon Forrest's avatar Simon Forrest
Browse files

Alterations to fix bugs introduced in V0.27 when the word-aligned buffer support was added.

Detail:

  Added the missing "Buffer must be word aligned" error message to the
  German resources (although the sentence is in English).

  Non-internationalised version was missing the "Buffer must be word
  aligned" message; this has now been rectified.

  The buffer manager service routine "Return free space" (reason code
  number 7) was incorrectly calculating the free space.  Instead of
  using the size of the buffer and insertion point in the calculation
  it was using an uninitialised register and the reason code!  This
  was due to a change made in V0.27 to the stack environment which
  invalidated the usage of R0 and R1.  Registers R6 and R7 are now
  used in place of these.

Admin:

  Tested by softloading on an NC1 using the baseline Lazarus OS image.
  Fixes verified as being correct.


Version 0.29. Tagged as 'Buffers-0_29'
parent 38c45ae1
......@@ -5,3 +5,4 @@ E03:Der Puffer-Manager ist noch in Benutzung.
E04:Der aktuelle Besitzer dieses Puffers läßt sich nicht von ihm trennen.
E05:Diese Puffer-Referenz wird bereits benutzt.
E06:Der Puffer ist zu klein.
E07:Buffer must be word aligned. [German]
......@@ -6,9 +6,9 @@
GBLS Module_MinorVersion
GBLS Module_Date
GBLS Module_FullVersion
Module_MajorVersion SETS "0.28"
Module_Version SETA 28
Module_MajorVersion SETS "0.29"
Module_Version SETA 29
Module_MinorVersion SETS ""
Module_Date SETS "05 Aug 1999"
Module_FullVersion SETS "0.28"
Module_Date SETS "06 Aug 1999"
Module_FullVersion SETS "0.29"
END
/* (0.28)
/* (0.29)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 0.28
#define Module_MajorVersion_CMHG 0.29
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 05 Aug 1999
#define Module_Date_CMHG 06 Aug 1999
#define Module_MajorVersion "0.28"
#define Module_Version 28
#define Module_MajorVersion "0.29"
#define Module_Version 29
#define Module_MinorVersion ""
#define Module_Date "05 Aug 1999"
#define Module_Date "06 Aug 1999"
#define Module_FullVersion "0.28"
#define Module_FullVersion "0.29"
......@@ -2061,8 +2061,8 @@ s_FreeSpace ; r11 and return address already
21
CLC
SBCS r2, r2, r1 ; r2=rem-ins-1
ADDCC r2, r2, r0 ; if -ve then add size
SBCS r2, r2, r7 ; r2=rem-ins-1
ADDCC r2, r2, r6 ; if -ve then add size
Pull "r4-r8,r11,pc"
......
......@@ -47,6 +47,7 @@ $label ORR$cc.S pc, lr, #VFlag
AddError BufferManager_UnableToDetach, "Unable to detach current owner"
AddError BufferManager_HandleAlreadyUsed, "Buffer handle already in use"
AddError BufferManager_BufferTooSmall, "Buffer too small"
AddError BufferManager_BufferNotAligned, "Buffer must be word aligned"
AddError BufferManager_BadParm, "Bad parameters"
]
......
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