Added _kern_debug_output() syscall.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5353 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
50d78f98e5
commit
9289abf0e4
@ -12,14 +12,6 @@
|
||||
struct kernel_args;
|
||||
|
||||
|
||||
extern int dbg_register_file[SMP_MAX_CPUS][14];
|
||||
/* XXXmpetit -- must be made generic */
|
||||
|
||||
int dbg_init(struct kernel_args *ka);
|
||||
int dbg_init2(struct kernel_args *ka);
|
||||
char dbg_putch(char c);
|
||||
void dbg_puts(const char *s);
|
||||
|
||||
#if DEBUG
|
||||
# define ASSERT(x) \
|
||||
if (x) {} else { panic("ASSERT FAILED (%s:%d): %s\n", __FILE__, __LINE__, #x); }
|
||||
@ -27,4 +19,22 @@ void dbg_puts(const char *s);
|
||||
# define ASSERT(x)
|
||||
#endif
|
||||
|
||||
extern int dbg_register_file[SMP_MAX_CPUS][14];
|
||||
/* XXXmpetit -- must be made generic */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern int dbg_init(struct kernel_args *ka);
|
||||
extern int dbg_init2(struct kernel_args *ka);
|
||||
extern char dbg_putch(char c);
|
||||
extern void dbg_puts(const char *s);
|
||||
|
||||
extern void _user_debug_output(const char *userString);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _KERNEL_DEBUG_H */
|
||||
|
@ -148,6 +148,7 @@ enum {
|
||||
SYSCALL_ATOMIC_OR64,
|
||||
SYSCALL_ATOMIC_GET64,
|
||||
SYSCALL_SET_REAL_TIME_CLOCK,
|
||||
SYSCALL_DEBUG_OUTPUT,
|
||||
};
|
||||
|
||||
int syscall_dispatcher(unsigned long call_num, void *arg_buffer, uint64 *call_ret);
|
||||
|
@ -134,6 +134,8 @@ int sys_getenv(const char *, char **);
|
||||
/* region prototypes */
|
||||
area_id sys_find_region_by_name(const char *);
|
||||
|
||||
void _kern_debug_output(const char *message);
|
||||
|
||||
/* This is a real BSD'ism :) Basically it returns the size of the
|
||||
* descriptor table for the current process as an integer.
|
||||
*/
|
||||
|
@ -164,6 +164,7 @@ SYSCALL6(sys_sysctl, 71)
|
||||
//SYSCALL3(sys_socket, 72)
|
||||
SYSCALL3(sys_setenv, 79)
|
||||
SYSCALL2(sys_getenv, 80)
|
||||
SYSCALL1(_kern_debug_output, 139)
|
||||
|
||||
/* atomic calls */
|
||||
SYSCALL2(_kern_atomic_set, 126)
|
||||
|
Loading…
Reference in New Issue
Block a user