![]() ![]() long mboot_header /* Pointer to this structure. long -(MBOOT_MAGIC + MBOOT_FLAGS) /* Checksum. #define MBOOT_FLAGS (MBOOT_PAGE_ALIGN | MBOOT_MEMORY_INFO | Here's all the beginning of my boot.S file: /* Multiboot flags. I have also correctly defined my flags: #define MBOOT_FLAGS (MBOOT_PAGE_ALIGN | MBOOT_MEMORY_INFO |Īny idea how can i get a parameter to be passed from menu.lst to boot.S? It doesn't work (I created a gdbserver in order to debug this specific boot file), but I'm sure I can access the stack correctly, because I'm accessing initrd like this: movl 24(%ebx), %eax ![]() So in my file boot.S I did like this to find my parameter in the stack: movl 16(%ebx), %ecxĪnd. In the stack created by GRUB, the command-line is available at offset 16, as stated here: So I did something like this in menu.lst: title os-debug In the GRUB manual, it's written that everything after kernel's address in the kernel command is passed verbatim to the kernel command line: In order to do this, I want to add an entry in menu.lst, pointing to the same kernel, but with an added argument. I'm working on an OS and I have to create a debug mode. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |