Device IRQs WIP
This commit is contained in:
@@ -9,7 +9,8 @@
|
||||
#include <status.h>
|
||||
#include <sys/debug.h>
|
||||
|
||||
bool ramdrv_init (struct device* device, void* arg) {
|
||||
bool ramdrv_init (struct device* device, void* arg, struct proc* proc, struct reschedule_ctx* rctx) {
|
||||
(void)proc, (void)rctx;
|
||||
struct ramdrv_init* init = arg;
|
||||
|
||||
struct ramdrv* ramdrv = malloc (sizeof (*ramdrv));
|
||||
@@ -37,7 +38,9 @@ bool ramdrv_init (struct device* device, void* arg) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void ramdrv_fini (struct device* device) {
|
||||
void ramdrv_fini (struct device* device, struct proc* proc, struct reschedule_ctx* rctx) {
|
||||
(void)proc, (void)rctx;
|
||||
|
||||
struct ramdrv* ramdrv = device->udata;
|
||||
|
||||
free (ramdrv->buffer);
|
||||
|
||||
Reference in New Issue
Block a user