user/lib/libsystem/src/x86/syscall_arch.c
/**
 * Updates a subset of the IO permission bitmap for the specified task.
 */
Updates a subset of the IO permission bitmap for the specified task.
Updates a subset of the IO permission bitmap for the specified task .
int X86UpdateIopbFor(const uintptr_t taskHandle, const void *bitmap,
        const uintptr_t numBits, const uintptr_t offset) {
    if(numBits > 65536 || (offset + numBits) > 65536) {
        return -1;
    }
    const uintptr_t off = (offset & 0xFFFF) | ((numBits << 16) & 0xFFFF0000);
    return __do_syscall3(taskHandle, (uintptr_t) bitmap, off, SYS_ARCH_X86_UPDATE_IOPB);
}
int X86UpdateIopbFor ( const uintptr_t taskHandle , const void * bitmap , const uintptr_t numBits , const uintptr_t offset ) { if ( numBits > 65536 || ( offset + numBits ) > 65536 ) { return -1 ; } const uintptr_t off = ( offset & 0xFFFF ) | ( ( numBits << 16 ) & 0xFFFF0000 ) ; return __do_syscall3 ( taskHandle , ( uintptr_t ) bitmap , off , SYS_ARCH_X86_UPDATE_IOPB ) ; }
Updates a subset of the IO permission bitmap for the specified task.
Updates a subset of the IO permission bitmap for the specified task .
// build the offset/length arg // perform call