mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-08 05:49:17 +00:00
x32 still not working (TODO: do 1:1 page mapping, except for kernel)
This commit is contained in:
36
Kernel.cpp
36
Kernel.cpp
@ -91,39 +91,3 @@ EXTERNC void arm64Entry(uint64_t dtb_ptr32, uint64_t x1, uint64_t x2, uint64_t x
|
||||
while (1)
|
||||
CPU::Halt();
|
||||
}
|
||||
|
||||
struct multiboot_info
|
||||
{
|
||||
multiboot_uint32_t Size;
|
||||
multiboot_uint32_t Reserved;
|
||||
struct multiboot_tag *Tag;
|
||||
};
|
||||
|
||||
EXTERNC void x32Entry(multiboot_info *Info, unsigned int Magic)
|
||||
{
|
||||
trace("Hello, World!");
|
||||
|
||||
if (Info == NULL || Magic == NULL)
|
||||
{
|
||||
if (Magic == NULL)
|
||||
{
|
||||
error("Multiboot magic is NULL");
|
||||
}
|
||||
if (Info == NULL)
|
||||
{
|
||||
error("Multiboot info is NULL");
|
||||
}
|
||||
CPU::Stop();
|
||||
}
|
||||
else if (Magic != MULTIBOOT2_BOOTLOADER_MAGIC)
|
||||
{
|
||||
error("Multiboot magic is invalid (%#x != %#x)", Magic, MULTIBOOT2_BOOTLOADER_MAGIC);
|
||||
trace("Hello, World!");
|
||||
CPU::Stop();
|
||||
}
|
||||
|
||||
((unsigned char *)0xb8000)[2 * (80) * (25) - 2] = 'M';
|
||||
((unsigned char *)0xb8000)[2 * (80) * (25) - 1] = 4;
|
||||
|
||||
CPU::Stop();
|
||||
}
|
||||
|
Reference in New Issue
Block a user