Begin Implementing Kernel Param loader oh and add some documentation for it

This commit is contained in:
Tyler McGurrin 2025-04-05 02:29:56 -04:00
parent 7df8c3f830
commit aaf65ff931
5 changed files with 33 additions and 0 deletions

10
doc/Kernel Params.md Normal file
View File

@ -0,0 +1,10 @@
# Kernel Parameters
Kernel Parameters are edited via editing the `kernelparams` file in the root of the git tree/hdd.
They should be seperated via commas **WITHOUT ANY SPACES!**
## List of Parameters
- `quietkb` : Makes Keyboard Driver NOT Auto Output pressed keys to Video
## NOTE: THIS IS NOT CURRENTLY FULLY IMPLEMENTED!

0
kernelparams Normal file
View File

View File

@ -11,6 +11,7 @@
#include <arch/i686/irq.h>
#include <arch/i686/basicfunc.h>
#include <dri/keyboard.h>
#include <util/param.h>
#include "../libs/version.h"
#include "../libs/boot/bootparams.h"

14
src/kernel/util/param.c Normal file
View File

@ -0,0 +1,14 @@
/*----------------*\
|Nanite OS |
|Copyright (C) 2024|
|Tyler McGurrin |
\*----------------*/
#include "param.h"
#include <stdio.h>
int paramloader(char filename) {
printf("Sorry! This is not currently implemented, Need to Make disk calls and kinda uhm... forgot? i didn't before soooooo YEP!");
printf("And heres yer filename: %s", filename);
return 0;
}

8
src/kernel/util/param.h Normal file
View File

@ -0,0 +1,8 @@
/*----------------*\
|Nanite OS |
|Copyright (C) 2024|
|Tyler McGurrin |
\*----------------*/
#pragma once
int paramloader(char filename);