NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/45781: syscall_establish can't add a new syscall



>Number:         45781
>Category:       kern
>Synopsis:       syscall_establish can't add a new syscall
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 05 02:20:00 +0000 2012
>Originator:     Jared D. McNeill
>Release:        5.99.59
>Organization:
>Environment:
NetBSD nbhead 5.99.59 NetBSD 5.99.59 (GENERIC) #12: Wed Dec 28 06:24:11 EST 
2011  
jmcneill@nbhead:/home/jmcneill/branches/HEAD/src/sys/arch/i386/compile/obj/GENERIC
 i386
>Description:
syscall_establish doesn't work for allocating a new sys call, it fails and 
prints "syscall <n> is busy". How are you supposed to register new syscalls?
>How-To-Repeat:
static const struct syscall_package my_syscalls[] = {
    { 511, 0, (sy_call_t *)sys_mysyscall },
    { 0, 0, NULL },
};

error = syscall_establish(NULL, syscallemu_syscalls);
if (error)
    printf("couldn't establish syscall\n");


>Fix:



Home | Main Index | Thread Index | Old Index