mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-11 07:19:20 +00:00
Compiles on x86 but everything is broken
This commit is contained in:
@ -6,7 +6,7 @@ class Bitmap
|
||||
public:
|
||||
size_t Size;
|
||||
uint8_t *Buffer;
|
||||
bool operator[](uintptr_t index);
|
||||
bool Set(uintptr_t index, bool value);
|
||||
bool Get(uintptr_t index);
|
||||
bool operator[](uint64_t index);
|
||||
bool Set(uint64_t index, bool value);
|
||||
bool Get(uint64_t index);
|
||||
};
|
||||
|
1546
include/cpu.hpp
1546
include/cpu.hpp
File diff suppressed because it is too large
Load Diff
@ -110,7 +110,7 @@ namespace Video
|
||||
size_t Size = this->framebuffer.Pitch * Height;
|
||||
if (!this->Buffers[Index])
|
||||
{
|
||||
if (this->Buffers[Index]->Checksum != 0xDEAD5C9EE7)
|
||||
if (this->Buffers[Index]->Checksum != 0xDEAD)
|
||||
{
|
||||
ScreenBuffer *buffer = new ScreenBuffer;
|
||||
buffer->Buffer = KernelAllocator.RequestPages(TO_PAGES(Size));
|
||||
@ -122,7 +122,7 @@ namespace Video
|
||||
buffer->CursorY = 0;
|
||||
this->Buffers[Index] = buffer;
|
||||
memset(this->Buffers[Index]->Buffer, 0, Size);
|
||||
this->Buffers[Index]->Checksum = 0xDEAD5C9EE7;
|
||||
this->Buffers[Index]->Checksum = 0xDEAD;
|
||||
}
|
||||
else
|
||||
warn("Buffer %d already exists, skipping creation", Index);
|
||||
|
@ -94,14 +94,13 @@ namespace Tasking
|
||||
#if defined(__amd64__)
|
||||
CPU::x64::TrapFrame Registers;
|
||||
uint64_t GSBase, FSBase;
|
||||
uint64_t RIPHistory[128];
|
||||
#elif defined(__i386__)
|
||||
uint32_t Registers; // TODO
|
||||
CPU::x32::TrapFrame Registers; // TODO
|
||||
uint64_t GSBase, FSBase;
|
||||
uint32_t EIPHistory[128];
|
||||
#elif defined(__aarch64__)
|
||||
uint64_t Registers; // TODO
|
||||
#endif
|
||||
uintptr_t IPHistory[128];
|
||||
TaskSecurity Security;
|
||||
TaskInfo Info;
|
||||
char FXRegion[512] __attribute__((aligned(16)));
|
||||
|
Reference in New Issue
Block a user