RE: accessing Alpha CPU registers from panic()

Jakma, Paul (Paul.Jakma@compaq.com)
Wed, 15 Dec 1999 09:23:17 -0000


hi brian,

Richard Henderson has already written some stuff to do this. Do a grep for
dik_* functions in arch/alpha.

regards,

Paul Jakma
Compaq EOMC

> -----Original Message-----
> From: Hall, Brian
> Sent: Wednesday, December 15, 1999 4:56 PM
> To: comp.os.linux.alpha@list.deja.com; x-linux-kernel@vger.rutgers.edu
> Subject: accessing Alpha CPU registers from panic()
>
>
> I am working on porting the SGI crash tools to Alpha. Since
> the CPU registers
> aren't available from within the panic() call, I need to grab
> them directly.
> How do I do this? The equivalent i386 code is:
>
> /* save the dump specific esp/eip */
> /* For Alpha, save PC (Program Counter) and RA */
> __asm__ __volatile__("
> pushl %%eax\n
> movl %%esp, %%eax\n
> movl %%eax, %0\n
> popl %%eax\n"
> : "=g" (dump_header.dh_esp)
> );
> __asm__ __volatile__("pushl %eax\n");
> __dump_save_panic_regs();
> __asm__ __volatile__("popl %eax\n");
>
> Pointers to online resources are greatly welcomed also.
>
> --
> Brian Hall <brianw.hall@compaq.com>
> Linux Consultant
>
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/