Skip to content
Snippets Groups Projects
Commit a1d5bbf5 authored by wlott's avatar wlott
Browse files

There is no need to flush the number stack from the cache when restoring,

cause we use bcopy to copy the old stack into place.
parent 399189fe
No related branches found
No related tags found
No related merge requests found
......@@ -275,7 +275,6 @@ struct sigcontext *old_context;
vm_size_t len;
vm_address_t nsp;
kern_return_t res;
vm_machine_attribute_val_t flush;
/* We have to move the number stack into place. */
......@@ -288,14 +287,6 @@ struct sigcontext *old_context;
vm_deallocate(task_self(), number_stack, round_page(len));
/* Flush the old number stack from the cache. */
flush = MATTR_VAL_CACHE_FLUSH;
res = vm_machine_attribute(task_self(), nsp, len,
MATTR_CACHE, &flush);
if (res != KERN_SUCCESS)
mach_error("Could not flush the number stack from the cache: ", res);
sigreturn(&context);
/* We should not get here. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment