]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/Include/AsmMacroIoLib.h
ArmPkg/AsmMacroIoLib: Fixed the global variables initialization
authorOlivier Martin <olivier.martin@arm.com>
Fri, 12 Dec 2014 19:32:50 +0000 (19:32 +0000)
committeroliviermartin <oliviermartin@Edk2>
Fri, 12 Dec 2014 19:32:50 +0000 (19:32 +0000)
commitd5daaa836f46a3f8fe57da37cad7841d2a9c4aca
treebc1033b5e70a0cbbfc062e69cdb28712e960ddce
parent85774874bcd13dba0ed8886ab5eb36b1ccdc44c1
ArmPkg/AsmMacroIoLib: Fixed the global variables initialization

The top of the stack always points to 'stack_base + stack_size'.
But the stack pointer is decremented before writing to the stack.
It means the top byte of the stack is actually 'stack_base + stack_size - 1'.

The initialization should also decrement the stack pointer before
zero'ing the memory (pre-indexed addressing).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16518 6f19259b-4bc3-4df7-8a09-765794883524
ArmPkg/Include/AsmMacroIoLib.h
ArmPkg/Include/AsmMacroIoLib.inc