Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* accessing Alpha CPU registers from panic()
@ 1999-12-13  5:00 Brian Hall
  0 siblings, 0 replies; 6+ messages in thread
From: Brian Hall @ 1999-12-13  5:00 UTC (permalink / raw)


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/



^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <15AD5D7936F8D21198240000F831776E3E7FF3@dboexc1.dbo.cpqcorp.net>]

end of thread, other threads:[~1999-12-17  5:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-13  5:00 accessing Alpha CPU registers from panic() Brian Hall
     [not found] <15AD5D7936F8D21198240000F831776E3E7FF3@dboexc1.dbo.cpqcorp.net>
1999-12-15  5:00 ` Brian Hall
1999-12-15  5:00   ` Chris
1999-12-16  5:00     ` brianw.hall
1999-12-16  5:00       ` Chris
1999-12-17  5:00         ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox