Skip to content
Snippets Groups Projects
Commit 5f722be7 authored by Avi Kivity's avatar Avi Kivity
Browse files

fs: add root filesystem global variable

parent 2004c701
No related branches found
No related tags found
No related merge requests found
#include "fs.hh"
filesystem* rootfs;
file::~file()
{
}
......
......@@ -17,4 +17,6 @@ public:
virtual file *open(std::string name) = 0;
};
extern filesystem* rootfs;
#endif
......@@ -48,6 +48,7 @@ int main(int ac, char **av)
idt.load_on_cpu();
bootfs fs;
rootfs = &fs;
file* f = fs.open("/usr/lib/libjvm.so");
char buf[100];
f->read(buf, 0, 100);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment