c3b75bd7bb
This makes the setjmp/longjmp code used by xmon, generically available to other code. It also removes the requirement for debugger hooks to be only called on 0x300 (data storage) exception. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
18 lines
525 B
C
18 lines
525 B
C
/*
|
|
* Copyright © 2008 Michael Neuling IBM Corporation
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version
|
|
* 2 of the License, or (at your option) any later version.
|
|
*
|
|
*/
|
|
#ifndef _ASM_POWERPC_SETJMP_H
|
|
#define _ASM_POWERPC_SETJMP_H
|
|
|
|
#define JMP_BUF_LEN 23
|
|
|
|
extern long setjmp(long *);
|
|
extern void longjmp(long *, long);
|
|
|
|
#endif /* _ASM_POWERPC_SETJMP_H */
|