Re: [PATCH] 2.4.25: BUG(): Use guard page instead of page 0

Keith Owens
2004-03-04T23:41:10Z

On Thu, 4 Mar 2004 16:25:00 -0700,
Bjorn Helgaas <bjorn.helgaas@hp.com> wrote:
>How about the following? I like the idea of using the guard page
>instead of address 0, but I sort of hate to add another magic number
>(though I guess you could argue that "0" is almost as magic as
>"0xa000000000000000").

Why not use 'break 0' for gcc < 3.1? No need to worry about which
pages are protected.

switch (break_num) {
case 0: /* unknown error (used by GCC for __builtin_abort()) */
die_if_kernel("bugcheck!", regs, break_num);