1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:57:35 +00:00

Switch into 1024x768x32bpp VESA LFB mode at boot.

This is going to be pretty cool once I can hook up the Widgets/ code to it.
This commit is contained in:
Andreas Kling 2019-01-09 02:29:11 +01:00
parent 9963da9005
commit 659c54e32b
9 changed files with 172 additions and 2 deletions

View file

@ -32,6 +32,14 @@ struct SignalActionData {
LinearAddress restorer;
};
struct DisplayInfo {
unsigned width;
unsigned height;
unsigned bpp;
unsigned pitch;
byte* framebuffer;
};
class Process : public InlineLinkedListNode<Process> {
friend class InlineLinkedListNode<Process>;
public:
@ -175,6 +183,8 @@ public:
Unix::clock_t sys$times(Unix::tms*);
int sys$utime(const char* pathname, const struct Unix::utimbuf*);
DisplayInfo get_display_info();
static void initialize();
void crash() NORETURN;
@ -317,6 +327,8 @@ private:
Region* m_stack_region { nullptr };
Region* m_signal_stack_user_region { nullptr };
Region* m_signal_stack_kernel_region { nullptr };
RetainPtr<Region> m_display_framebuffer_region;
};
extern Process* current;