breakpoint: set up a stackframe so gdb doesn't get lost.

This commit is contained in:
ad 2008-01-17 15:01:05 +00:00
parent 0116b931c2
commit f5990f1bbb
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpufunc.S,v 1.5 2008/01/01 12:51:08 yamt Exp $ */
/* $NetBSD: cpufunc.S,v 1.6 2008/01/17 15:01:05 ad Exp $ */
/*-
* Copyright (c) 1998, 2007 The NetBSD Foundation, Inc.
@ -43,7 +43,7 @@
*/
#include <machine/asm.h>
__KERNEL_RCSID(0, "$NetBSD: cpufunc.S,v 1.5 2008/01/01 12:51:08 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: cpufunc.S,v 1.6 2008/01/17 15:01:05 ad Exp $");
#include "opt_xen.h"
@ -145,7 +145,10 @@ ENTRY(rdpmc)
ret
NENTRY(breakpoint)
pushl %ebp
movl %esp, %ebp
int $0x03 /* paranoid, not 'int3' */
popl %ebp
ret
NENTRY(x86_atomic_testset_ul)