From b3d4b68e43e92a9d90a614d2b001ea96df52156f Mon Sep 17 00:00:00 2001 From: Braiden Vasco Date: Wed, 1 Nov 2017 13:54:53 +0000 Subject: [PATCH] Print additional info --- arch/multiboot.c | 14 ++++++++++++++ iso/rootfs/boot/grub/grub.cfg | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/arch/multiboot.c b/arch/multiboot.c index 9f5c409..72e9e6e 100644 --- a/arch/multiboot.c +++ b/arch/multiboot.c @@ -25,6 +25,20 @@ void print_multiboot_info(unsigned long addr) { switch (tag->type) { + case MULTIBOOT_TAG_TYPE_CMDLINE: + printf( + "Command line = %s\n", + ((struct multiboot_tag_string *) tag)->string + ); + break; + + case MULTIBOOT_TAG_TYPE_BOOT_LOADER_NAME: + printf( + "Boot loader name = %s\n", + ((struct multiboot_tag_string *) tag)->string + ); + break; + case MULTIBOOT_TAG_TYPE_MODULE: printf( "Module at 0x%x-0x%x. Command line %s\n", diff --git a/iso/rootfs/boot/grub/grub.cfg b/iso/rootfs/boot/grub/grub.cfg index 67787c9..4993a0e 100644 --- a/iso/rootfs/boot/grub/grub.cfg +++ b/iso/rootfs/boot/grub/grub.cfg @@ -1,5 +1,5 @@ menuentry "KernelMQ" { - multiboot2 /boot/kernelmq + multiboot2 /boot/kernelmq hello kernel module2 /boot/grub/grub.cfg qwe rty module2 /boot/kernelmq foo bar }