mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 00:22:36 +02: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:
Notes:
sideshowbarker
2024-07-19 18:46:13 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2d1d01661b0
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user