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

From: Keith Owens <>
Date: 2004-03-05 10:41:10
On Thu, 4 Mar 2004 16:25:00 -0700, 
Bjorn Helgaas <> 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

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);

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Thu Mar 4 18:41:50 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:24 EST