Am 24.02.2014 um 22:02 schrieb Miro Kropáček <miro.kropacek@gmail.com>:
Hmmm. I don’t get it. The article talks about putting the stack into the very beginning of memory to trigger a fault on stack pointer underflow. This won’t work on m68k in my opinion. If you have a machine with VBR, you could move exception vectors out of the way which AFAIK wouldn’t help much since the stack pointer would just wrap around on m68k. You could of course use memory protection to protect the stack, but that probably would only need slight changes to your program, not necessarily to MiNT: just put the stack into a malloc’d region and make sure you don’t own adjacent memory below. |