[fb] Create fb driver
Create a new framebuffer driver. Also hackily passing frame buffer size in the list of init handles to all processes and mapping the framebuffer into all processes. Changed bootloader passing frame buffer as a module to its own struct.
This commit is contained in:
24
src/drivers/fb/main.s
Normal file
24
src/drivers/fb/main.s
Normal file
@@ -0,0 +1,24 @@
|
||||
section .bss
|
||||
mymessage:
|
||||
resq 1024
|
||||
|
||||
extern main
|
||||
extern _init_libc
|
||||
extern exit
|
||||
|
||||
section .text
|
||||
|
||||
global _start
|
||||
_start:
|
||||
mov rbp, rsp
|
||||
|
||||
mov rdi, rsp
|
||||
call _init_libc
|
||||
|
||||
mov rdi, 0
|
||||
mov rsi, 0
|
||||
|
||||
call main
|
||||
|
||||
mov rdi, rax
|
||||
call exit
|
||||
Reference in New Issue
Block a user