Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/multiboot/multiboot.c

    rba1ea40 rc8cbd39  
    100100}
    101101
    102 static void multiboot_cmdline(char *cmdline)
    103 {
    104         /*
    105          * GRUB passes the command line in an escaped form.
    106          */
    107         for (size_t i = 0, j = 0;
    108             cmdline[i] && j < CONFIG_BOOT_ARGUMENTS_BUFLEN;
    109             i++, j++) {
    110                 if (cmdline[i] == '\\') {
    111                         switch (cmdline[i + 1]) {
    112                         case '\\':
    113                         case '\'':
    114                         case '\"':
    115                                 i++;
    116                                 break;
    117                         }
    118                 }
    119                 bargs[j] = cmdline[i];
    120         }
    121 }
    122 
    123102static void multiboot_modules(uint32_t count, multiboot_module_t *mods)
    124103{
     
    174153        if (signature != MULTIBOOT_LOADER_MAGIC)
    175154                return;
    176 
    177         /* Copy command line. */
    178         if ((info->flags & MULTIBOOT_INFO_FLAGS_CMDLINE) != 0)
    179                 multiboot_cmdline((char *) MULTIBOOT_PTR(info->cmd_line));
    180 
     155       
    181156        /* Copy modules information. */
    182157        if ((info->flags & MULTIBOOT_INFO_FLAGS_MODS) != 0)
Note: See TracChangeset for help on using the changeset viewer.