dumpstack: x86: add "end" parameter to valid_stack_ptr and print_context_stack