mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 23:04:59 +00:00
Add a way to initialize VFS globals.
This is needed since the kernel loader doesn't even zero out bss, much less call any static constructors.
This commit is contained in:
parent
97e0d75bcb
commit
2d1d01661b
4 changed files with 16 additions and 2 deletions
|
@ -7,6 +7,11 @@
|
|||
|
||||
//#define VFS_DEBUG
|
||||
|
||||
void VirtualFileSystem::initializeGlobals()
|
||||
{
|
||||
FileSystem::initializeGlobals();
|
||||
}
|
||||
|
||||
static dword encodedDevice(unsigned major, unsigned minor)
|
||||
{
|
||||
return (minor & 0xff) | (major << 8) | ((minor & ~0xff) << 12);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue