rt: Add more stack-switching commentary

This commit is contained in:
Brian Anderson 2012-02-09 12:26:11 -08:00
parent 5d2442d89c
commit 8ad9cf8087

View File

@ -732,6 +732,11 @@ rust_task::config_notify(chan_handle chan) {
notify_chan = chan;
}
// This is the function that switches stacks by calling another function with
// a single void* argument while changing the stack pointer. It has a funny
// name because gdb doesn't normally like to backtrace through split stacks
// (thinks it indicates a bug), but has a special case to allow functions
// named __morestack to move the stack pointer around.
extern "C" void __morestack(void *args, void *fn_ptr, uintptr_t stack_ptr);
static uintptr_t