Skip to content

AmigaGPT MorphOS needs a different directive to set default stacksize #28

@cyfm-morphos

Description

@cyfm-morphos

Currently, AmigaGTP has some directive to set the application stacksize:

CONST_STRPTR stack = "$STACK: 32768";

MorphOS libnix code uses

#ifdef __MORPHOS__
unsigned long __stack = 32768;
#endif

Actually, 32768 is the minimum default stacksize for any PowerPC task launched in MorphOS, so something like above wouldn't even be needed unless more stackspace is required.

When launching AmigaGPT MorphOS from shell, some warning requester opens:

Image

4096 Bytes is actually the "legacy" 68K stacksize as MorphOS maintains seperate stacks for (transparently) emulated 68K code and "real" PowerPC code (which is 32768 bytes minimum), so this requester would need to check the actual PPC stacksize to be of any use in MorphOS.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions