diff options
author | Conrad Pankoff <deoxxa@fknsrs.biz> | 2019-06-02 18:58:59 +1000 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-02 12:37:29 +0200 |
commit | 6f43f81fb444b9c7e35ba4d8ae9f78d10238cb31 (patch) | |
tree | bf975875dcd446e646c1f415458a04bc97446412 /Kernel/Makefile | |
parent | 5e1c7cb32c98dfb568dcd7d935a222bda9c42fda (diff) | |
download | serenity-6f43f81fb444b9c7e35ba4d8ae9f78d10238cb31.zip |
Kernel: Implement OffsetDiskDevice to prepare for partition support
This implements a passthrough disk driver that translates the read/write
block addresses by a fixed offset. This could form the basis of MBR
partition support if we were to parse the MBR table at boot and create that
OffsetDiskDevice dynamically, rather than seeking to a fixed offset.
This also introduces a dependency in the form of grub. You'll need to have
32-bit grub binaries installed to build the project now.
As a bonus, divorcing Serenity from qemu's kernel loading means we can now
*technically* boot on real hardware. It just... doesn't get very far yet.
If you write the `_disk_image` file to an IDE hard drive and boot it in a
machine that supports all the basic PC hardware, it *will* start loading
the kernel.
Diffstat (limited to 'Kernel/Makefile')
-rw-r--r-- | Kernel/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Makefile b/Kernel/Makefile index 1593bfc41c..d79761bfeb 100644 --- a/Kernel/Makefile +++ b/Kernel/Makefile @@ -65,6 +65,7 @@ VFS_OBJS = \ Devices/ZeroDevice.o \ Devices/RandomDevice.o \ Devices/DebugLogDevice.o \ + Devices/OffsetDiskDevice.o \ FileSystem/FileSystem.o \ FileSystem/DiskBackedFileSystem.o \ FileSystem/Ext2FileSystem.o \ |