Re:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 15, 2001 at 05:24:11PM +0100, Mark Zealey wrote:
 > > Granted, it's x86-specific, but it works better, since gdb will halt the code 
 > > right at that spot rather than inside some trap hander.  And it's just more 
 > > elegant.
 > If you want to do it like that, I'd suggest ud2 for in-kernel use:
 > #define b0rk() asm volatile("ud2")

See include/asm/page.h
in particular the implementation of BUG()
Its a, cross-platform, and b, does exactly what you've all been
describing :)

Dave.

-- 
My monkey won't come back.

-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux