mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10:32 +00:00
Testing getting and printing a ZXE struct member variable of loaded kernel module.
This commit is contained in:
parent
e5c33074e2
commit
3f83de8219
1 changed files with 12 additions and 2 deletions
|
@ -49,8 +49,18 @@ void _start(void) {
|
|||
struct limine_terminal *terminal = terminal_request.response->terminals[0];
|
||||
terminal_request.response->write(terminal, "Hello World", 11);
|
||||
|
||||
struct limine_file *kernel = module_request.response->modules[0];
|
||||
struct CKernel *CKernel = kernel->address;
|
||||
struct limine_file *kernel_module = module_request.response->modules[0];
|
||||
struct CKernel *kernel = kernel_module->address;
|
||||
|
||||
char str[128];
|
||||
str[0] = ' ';
|
||||
str[1] = kernel->zxe.signature;
|
||||
str[2] = kernel->zxe.signature >> 8;
|
||||
str[3] = kernel->zxe.signature >> 16;
|
||||
str[4] = kernel->zxe.signature >> 24;
|
||||
str[5] = 0;
|
||||
|
||||
terminal_request.response->write(terminal, str, 5);
|
||||
|
||||
// We're done, just hang...
|
||||
done();
|
||||
|
|
Loading…
Reference in a new issue