Wed 22 Jan 12:17:36 CET 2025
This commit is contained in:
parent
e50a8af6e9
commit
4116babb39
|
@ -551,6 +551,10 @@ int sys_device_driver_stats(const char * name, struct device_driver_stats * stat
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef KERNEL_SYSCALL_EXT
|
||||||
|
#include "kernel_syscall_ext.c"
|
||||||
|
#endif
|
||||||
|
|
||||||
int32_t syscall_handler(syscall_t n, uint32_t a, uint32_t b, uint32_t c, uint32_t d, uint32_t e)
|
int32_t syscall_handler(syscall_t n, uint32_t a, uint32_t b, uint32_t c, uint32_t d, uint32_t e)
|
||||||
{
|
{
|
||||||
if((n < MAX_SYSCALL) && current) {
|
if((n < MAX_SYSCALL) && current) {
|
||||||
|
@ -633,6 +637,9 @@ int32_t syscall_handler(syscall_t n, uint32_t a, uint32_t b, uint32_t c, uint32_
|
||||||
return sys_system_rtc((struct rtc_time *) a);
|
return sys_system_rtc((struct rtc_time *) a);
|
||||||
case SYSCALL_DEVICE_DRIVER_STATS:
|
case SYSCALL_DEVICE_DRIVER_STATS:
|
||||||
return sys_device_driver_stats((char *) a, (struct device_driver_stats *) b);
|
return sys_device_driver_stats((char *) a, (struct device_driver_stats *) b);
|
||||||
|
#ifdef KERNEL_SYSCALL_EXT
|
||||||
|
KERNEL_SYSCALL_EXT_SWITCH
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
return KERROR_INVALID_SYSCALL;
|
return KERROR_INVALID_SYSCALL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user