fat_io_lib finally works, implement virtual partition devices, manage devices via string keys
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m35s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 3m35s
This commit is contained in:
@@ -35,8 +35,8 @@ int mutex_unlock (int mutex_rid) { return do_syscall (SYS_MUTEX_UNLOCK, mutex_ri
|
||||
|
||||
void* argument_ptr (void) { return (void*)do_syscall (SYS_ARGUMENT_PTR, 0); }
|
||||
|
||||
int device_do (int device_id, int cmd, void* a1, void* a2, void* a3, void* a4) {
|
||||
return (int)do_syscall (SYS_DEVICE_DO, device_id, cmd, a1, a2, a3, a4);
|
||||
int device_do (const char* device_key, int cmd, void* a1, void* a2, void* a3, void* a4) {
|
||||
return (int)do_syscall (SYS_DEVICE_DO, device_key, cmd, a1, a2, a3, a4);
|
||||
}
|
||||
|
||||
int exec (const char* volume, const char* path) { return (int)do_syscall (SYS_EXEC, volume, path); }
|
||||
|
||||
@@ -49,7 +49,7 @@ int mutex_unlock (int mutex_rid);
|
||||
void* argument_ptr (void);
|
||||
|
||||
/* Call a device command */
|
||||
int device_do (int device_id, int cmd, void* a1, void* a2, void* a3, void* a4);
|
||||
int device_do (const char* device_key, int cmd, void* a1, void* a2, void* a3, void* a4);
|
||||
|
||||
/* Run external ELF program */
|
||||
int exec (const char* volume, const char* path);
|
||||
|
||||
Reference in New Issue
Block a user