mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 05:59:28 +02:00
AROS: apparently, the NewStackSwap() function is just a half arsed copy of MorphOS/NewPPCStackSwap(), so it doesn't accept nil as its third argument. Therefore we pass a pointer to some area we won't use anyway. this fixes crashes in the stack swapping code on hosted systems.
git-svn-id: trunk@28636 -
This commit is contained in:
parent
c8e9d2cf6e
commit
fbfcda2926
@ -89,7 +89,8 @@ _allocStack:
|
||||
movl %eax,8(%ecx) /* Initial stackpointer */
|
||||
movl _ExecBase,%eax
|
||||
pushl %eax
|
||||
pushl $0
|
||||
lea StackSwapArgs,%ebx
|
||||
pushl %ebx
|
||||
lea _initProc,%ebx
|
||||
pushl %ebx
|
||||
pushl %ecx
|
||||
@ -158,3 +159,4 @@ _ExecBase: .skip 4
|
||||
|
||||
StackAreaPtr: .skip 4
|
||||
StackSwapStruct: .skip 12
|
||||
StackSwapArgs: .skip 32
|
||||
|
Loading…
Reference in New Issue
Block a user