Added an arch_get_caller() function that returns the caller of the calling function :-)

Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12810 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-05-25 13:58:32 +00:00
parent 14a578f640
commit 6d352d08b3
2 changed files with 48 additions and 9 deletions
+22 -4
View File
@@ -1,11 +1,29 @@
/*
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
* Copyright 2005, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License.
*
* Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
* Distributed under the terms of the NewOS License.
*/
#ifndef _KERNEL_ARCH_DEBUG_H
#define _KERNEL_ARCH_DEBUG_H
int arch_dbg_init(kernel_args *ka);
#include <SupportDefs.h>
struct kernel_args;
#ifdef __cplusplus
extern "C" {
#endif
status_t arch_dbg_init(kernel_args *args);
void *arch_get_caller(void);
void arch_dbg_save_registers(int *);
#ifdef __cplusplus
}
#endif
#endif /* _KERNEL_ARCH_DEBUG_H */