Fix fsdrv build

This commit is contained in:
pjht 2019-07-13 10:40:23 -05:00
parent 65821b63d3
commit fb61bb2806
2 changed files with 18 additions and 7 deletions

Binary file not shown.

View File

@ -1,14 +1,25 @@
#include "vga.h"
#include <grub/text_fb_info.h>
#include <tasking.h>
#include <stdlib.h>
#include <mailboxes.h>
#include <ipc/vfs.h>
#include <memory.h>
int main() {
text_fb_info info;
info.address=map_phys((void*)0xB8000,10);
info.width=80;
info.height=25;
for(;;) {
uint32_t box=mailbox_new(16);
for (;;) {
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);
}
}