Commit 7bd4f8b4 authored by David Mosberger's avatar David Mosberger

ia64: Make it easier to set a breakpoint in the Ski simulator right before

	starting the kernel (based on patch by Peter Chubb).
parent 4a39048c
...@@ -53,6 +53,15 @@ struct disk_stat { ...@@ -53,6 +53,15 @@ struct disk_stat {
#include "../kernel/fw-emu.c" #include "../kernel/fw-emu.c"
/*
* Set a break point on this function so that symbols are available to set breakpoints in
* the kernel being debugged.
*/
static void
debug_break (void)
{
}
static void static void
cons_write (const char *buf) cons_write (const char *buf)
{ {
...@@ -187,6 +196,7 @@ _start (void) ...@@ -187,6 +196,7 @@ _start (void)
ssc(0, (long) kpath, 0, 0, SSC_LOAD_SYMBOLS); ssc(0, (long) kpath, 0, 0, SSC_LOAD_SYMBOLS);
debug_break();
asm volatile ("mov sp=%2; mov r28=%1; br.sptk.few %0" asm volatile ("mov sp=%2; mov r28=%1; br.sptk.few %0"
:: "b"(e_entry), "r"(bp), "r"(__pa(&stack))); :: "b"(e_entry), "r"(bp), "r"(__pa(&stack)));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment