From ea7bbacc56f62db6c03ded4f47ca6f850d599ddc Mon Sep 17 00:00:00 2001 From: Erin Date: Thu, 19 Jan 2023 23:30:45 +0100 Subject: [PATCH] Changed console resolution --- kernel/data/⑨. バカ | 33 +++++++++++++++++++++++++++++++++ kernel/src/kmain.rs | 6 ++++++ repbuild/limine.cfg | 4 ++-- 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 kernel/data/⑨. バカ diff --git a/kernel/data/⑨. バカ b/kernel/data/⑨. バカ new file mode 100644 index 0000000..c9058b9 --- /dev/null +++ b/kernel/data/⑨. バカ @@ -0,0 +1,33 @@ + + .//// *(#### + (####((/, (########, + (##%##(###(( ,(#########%# + #%%%%###(###((. *((####%%&%%%%# + .#####%%%%%####((. *(####%&&&&&%%%%# + #(((((((##%%&&%#((/ /#(##%&&%########## + /######%%%%%%%(..........(#%%%%%%#####%%# + ,#%%%%%%#/...... ..............,&&&%%###. + ,%%#(#(...........................(#&&%%# + .###%...............................%%#(#. + #%&.................................%# + ,%&&*.................................&&%( + %%#//........./............*/..,......&&&%# + .......,..............*,*.,,,,,,. + ......./....,.........*,,,,.,,,,,, + ,...../..(###%,.....&*&%###/..,.,,. + ,,..../%(((#(,.....,%%%%###,..,..,. + .,,*.../..,#,.........,(&(,,**.,,,,, + ,/((..,*..........,,.,,,,,**.,##(( + /(((%%%,,,,,.,,,,,,,,,,,#/##(,(/ + .***..(,.#%%%&&#/%,,(%*,,**# + **,...,(#%%%%&#%%%#%%%%,,.,,***. + .....,*,*#%%%%%###%##%%%&,,*,,.... + ......,*/. (############%%%&&&&#*,,.... + ...,*,..,(((((((((((#((((((((((((&&&#*, + ,##///////(((((((((((((#///#///(##/. + /*/**//... ...**(((((((,. .,*...... + ....... ......,,/*,. ........... + ,..,,,,...... .. .... ,,....... ..,,, + ........,.,.,*//////*,......,. + ...,,,, ,,,,,, + diff --git a/kernel/src/kmain.rs b/kernel/src/kmain.rs index 99e318e..cb427af 100644 --- a/kernel/src/kmain.rs +++ b/kernel/src/kmain.rs @@ -2,6 +2,12 @@ pub fn kmain(cmdline: &str, initrd: Option<&'static [u8]>) -> ! { log::debug!("Entered kmain"); + + // TODO: Actual cmdline parsing (Serde?) + if cmdline.contains("baka=9") { + let _ = crate::arch::log(format_args!(include_str!("../data/⑨. バカ"))); + } + log::info!("Cmdline: \"{cmdline}\""); let initrd = initrd.expect("no initrd found"); diff --git a/repbuild/limine.cfg b/repbuild/limine.cfg index 19a9fa6..bfbe0b4 100644 --- a/repbuild/limine.cfg +++ b/repbuild/limine.cfg @@ -4,7 +4,7 @@ ${ABLEOS_KERNEL}=boot:///kernel DEFAULT_ENTRY=1 TIMEOUT=3 VERBOSE=yes -INTERFACE_RESOLUTION=800x600 +INTERFACE_RESOLUTION=1024x768 # Terminal related settings TERM_WALLPAPER=boot:///background.bmp TERM_BACKDROP=008080 @@ -15,7 +15,7 @@ TERM_BACKDROP=008080 KERNEL_PATH=${ABLEOS_KERNEL} KERNEL_CMDLINE= # Setting a default resolution for the framebuffer - RESOLUTION=800x600x24 + RESOLUTION=1024x768x24 # MODULE_PATH=boot:///boot/initrd.tar # MODULE_CMDLINE=This is the first module.