diff options
Diffstat (limited to 'src/kernel/arch/amd64/driver/video.c')
-rw-r--r-- | src/kernel/arch/amd64/driver/video.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kernel/arch/amd64/driver/video.c b/src/kernel/arch/amd64/driver/video.c index 5ce9a30..4ce1657 100644 --- a/src/kernel/arch/amd64/driver/video.c +++ b/src/kernel/arch/amd64/driver/video.c @@ -20,10 +20,10 @@ enum { static int handle(VfsReq *req) { switch (req->type) { case VFSOP_OPEN: - if (!req->input.kern) panic_invalid_state(); - if (req->input.len == 0) { + assert(req->kin != NULL); + if (req->kinlen == 0) { return H_ROOT; - } else if (req->input.len == namelen && !memcmp(req->input.buf_kern, namebuf, namelen)) { + } else if (req->kinlen == namelen && !memcmp(req->kin, namebuf, namelen)) { return H_FB; } else { return -1; @@ -40,10 +40,10 @@ static int handle(VfsReq *req) { if ((long __force)req->id != H_FB) { return -1; } - fs_normslice(&req->offset, &req->input.len, fb.size, false); - /* parial writes ignored */ - pcpy_from(req->caller, fb.b + req->offset, req->input.buf, req->input.len); - return req->input.len; + fs_normslice(&req->offset, &req->uinlen, fb.size, false); + /* partial writes ignored */ + pcpy_from(req->caller, fb.b + req->offset, req->uin, req->uinlen); + return req->uinlen; case VFSOP_GETSIZE: return fb.size; |