Expose storedevs to the outside world via dev interface
This commit is contained in:
@ -107,7 +107,7 @@ int32_t SYSCALL5(sys_devctl, devh1, cmd1, buffer1, len1, extra1) {
|
||||
goto done;
|
||||
}
|
||||
spinlock_acquire(&dev->spinlock);
|
||||
ret = dev->fns[cmd]((uint8_t *)buffer1, (size_t)len1, (void *)extra1);
|
||||
ret = dev->fns[cmd](dev, (uint8_t *)buffer1, (size_t)len1, (void *)extra1);
|
||||
spinlock_release(&dev->spinlock);
|
||||
} break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user