Fix fsdrv build
This commit is contained in:
parent
65821b63d3
commit
fb61bb2806
BIN
fsdrv/fsdrv
BIN
fsdrv/fsdrv
Binary file not shown.
25
fsdrv/main.c
25
fsdrv/main.c
@ -1,14 +1,25 @@
|
|||||||
#include "vga.h"
|
|
||||||
#include <grub/text_fb_info.h>
|
|
||||||
#include <tasking.h>
|
#include <tasking.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <mailboxes.h>
|
||||||
|
#include <ipc/vfs.h>
|
||||||
#include <memory.h>
|
#include <memory.h>
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
text_fb_info info;
|
uint32_t box=mailbox_new(16);
|
||||||
info.address=map_phys((void*)0xB8000,10);
|
for (;;) {
|
||||||
info.width=80;
|
|
||||||
info.height=25;
|
|
||||||
for(;;) {
|
|
||||||
yield();
|
yield();
|
||||||
|
Message msg;
|
||||||
|
msg.msg=malloc(sizeof(vfs_message));
|
||||||
|
mailbox_get_msg(box,&msg,sizeof(vfs_message));
|
||||||
|
if (msg.from==0) {
|
||||||
|
} else {
|
||||||
|
vfs_message* vfs_msg=(vfs_message*)msg.msg;
|
||||||
|
msg.to=msg.from;
|
||||||
|
msg.from=box;
|
||||||
|
vfs_msg->flags=13;
|
||||||
|
mailbox_send_msg(&msg);
|
||||||
|
yield();
|
||||||
|
}
|
||||||
|
free(msg.msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user