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 <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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user