Commit 18d2fc8c authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] remove BUG from m68knommu arch page.h

This removes the BUG and PAGE_BUG macros from asm-m68knommu/page.h.
All this is now moved into asm-m68knommu/bug.h.
parent dae33da6
...@@ -94,28 +94,6 @@ extern unsigned long memory_end; ...@@ -94,28 +94,6 @@ extern unsigned long memory_end;
#define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \ #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \
((void *)(kaddr) < (void *)memory_end)) ((void *)(kaddr) < (void *)memory_end))
#ifdef CONFIG_NO_KERNEL_MSG
#define BUG_PRINT()
#else
#define BUG_PRINT() printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__)
#endif
// #define BUG_PANIC() asm volatile ("halt") /* drop to debugger */
// #define BUG_PANIC() while(1)
#define BUG_PANIC() panic("BUG!")
#define BUG() do { \
BUG_PRINT(); \
BUG_PANIC(); \
} while (0)
#define PAGE_BUG(page) do { \
BUG(); \
} while (0)
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment