Subversion Repositories HelenOS-historic

Rev

Rev 1448 | Rev 1579 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1448 Rev 1474
Line 44... Line 44...
44
#include <synch/futex.h>
44
#include <synch/futex.h>
45
#include <ddi/ddi.h>
45
#include <ddi/ddi.h>
46
#include <security/cap.h>
46
#include <security/cap.h>
47
#include <syscall/copy.h>
47
#include <syscall/copy.h>
48
#include <sysinfo/sysinfo.h>
48
#include <sysinfo/sysinfo.h>
-
 
49
#include <console/console.h>
49
 
50
 
50
/** Print using kernel facility
51
/** Print using kernel facility
51
 *
52
 *
52
 * Some simulators can print only through kernel. Userspace can use
53
 * Some simulators can print only through kernel. Userspace can use
53
 * this syscall to facilitate it.
54
 * this syscall to facilitate it.
Line 76... Line 77...
76
    free(data);
77
    free(data);
77
   
78
   
78
    return count;
79
    return count;
79
}
80
}
80
 
81
 
-
 
82
/** Tell kernel to get keyboard/console access again */
-
 
83
static __native sys_debug_enable_console(void)
-
 
84
{
-
 
85
    arch_grab_console();
-
 
86
    return 0;
-
 
87
}
-
 
88
 
81
/** Dispatch system call */
89
/** Dispatch system call */
82
__native syscall_handler(__native a1, __native a2, __native a3,
90
__native syscall_handler(__native a1, __native a2, __native a3,
83
             __native a4, __native id)
91
             __native a4, __native id)
84
{
92
{
85
    if (id < SYSCALL_END)
93
    if (id < SYSCALL_END)
Line 128... Line 136...
128
    sys_iospace_enable,
136
    sys_iospace_enable,
129
    sys_preempt_control,
137
    sys_preempt_control,
130
   
138
   
131
    /* Sysinfo syscalls */
139
    /* Sysinfo syscalls */
132
    sys_sysinfo_valid,
140
    sys_sysinfo_valid,
133
    sys_sysinfo_value
141
    sys_sysinfo_value,
-
 
142
   
-
 
143
    /* Debug calls */
-
 
144
    sys_debug_enable_console
134
};
145
};