On Sun, Mar 25, 2007 at 05:33:45PM +1000, Rusty Russell wrote:Patch below. cu Adrian <-- snip --> check_bug_kill() is no longer used. Signed-off-by: Adrian Bunk <bunk@stusta.de> --- arch/i386/lguest/interrupts_and_traps.c | 27 ------------------------ arch/i386/lguest/lg.h | 1 2 files changed, 28 deletions(-) --- linux-2.6.21-rc4-mm1/arch/i386/lguest/lg.h.old 2007-03-25 14:38:22.000000000 +0200 +++ linux-2.6.21-rc4-mm1/arch/i386/lguest/lg.h 2007-03-25 14:41:13.000000000 +0200 @@ -195,7 +195,6 @@ /* interrupts_and_traps.c: */ void maybe_do_interrupt(struct lguest *lg); int deliver_trap(struct lguest *lg, unsigned int num); -void check_bug_kill(struct lguest *lg); void load_guest_idt_entry(struct lguest *lg, unsigned int i, u32 low, u32 hi); void pin_stack_pages(struct lguest *lg); void pin_trap_pages(struct lguest *lg); --- linux-2.6.21-rc4-mm1/arch/i386/lguest/interrupts_and_traps.c.old 2007-03-25 14:38:46.000000000 +0200 +++ linux-2.6.21-rc4-mm1/arch/i386/lguest/interrupts_and_traps.c 2007-03-25 14:41:25.000000000 +0200 @@ -118,33 +118,6 @@ return 1; } -void check_bug_kill(struct lguest *lg) -{ -#ifdef CONFIG_BUG - u32 eip = lg->regs->eip - PAGE_OFFSET; - u16 insn; - - /* This only works for addresses in linear mapping... */ - if (lg->regs->eip < PAGE_OFFSET) - return; - lhread(lg, &insn, eip, sizeof(insn)); - if (insn == 0x0b0f) { -#ifdef CONFIG_DEBUG_BUGVERBOSE - u16 l; - u32 f; - char file[128]; - lhread(lg, &l, eip+sizeof(insn), sizeof(l)); - lhread(lg, &f, eip+sizeof(insn)+sizeof(l), sizeof(f)); - lhread(lg, file, f - PAGE_OFFSET, sizeof(file)); - file[sizeof(file)-1] = 0; - kill_guest(lg, "BUG() at %#x %s:%u", eip, file, l); -#else - kill_guest(lg, "BUG() at %#x", eip); -#endif /* CONFIG_DEBUG_BUGVERBOSE */ - } -#endif /* CONFIG_BUG */ -} - static int direct_trap(const struct lguest *lg, const struct desc_struct *trap, unsigned int num) -
| Mark Lord | 2.6.25-rc8: FTP transfer errors |
| Kamalesh Babulal | Re: 2.6.23-rc6-mm1 |
| Greg Kroah-Hartman | [PATCH 025/196] paride: Convert from class_device to device for block/paride |
| Stephen Rothwell | Announce: Linux-next (Or Andrew's dream :-)) |
git: | |
| Linus Torvalds | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
| David Miller | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 18/37] dccp: Support for Mandatory options |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
