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

From: Keith Owens <kaos_at_sgi.com>
Date: 2004-03-05 10:41:10
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);

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
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