Ignore:
Timestamp:
2017-07-21T19:21:59Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3009164
Parents:
9f64c1e
Message:

Support boot_args also for multiboot2 boots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/genarch/multiboot/multiboot2.h

    r9f64c1e r9ef1fade  
    5252#define MULTIBOOT2_TAG_MODULE_ALIGN   6
    5353
     54#define MULTIBOOT2_TAG_CMDLINE 1
    5455#define MULTIBOOT2_TAG_MODULE  3
    5556#define MULTIBOOT2_TAG_MEMMAP  6
     
    7374        uint32_t reserved;
    7475} __attribute__((packed)) multiboot2_info_t;
     76
     77/** Multiboot2 cmdline structure */
     78typedef struct {
     79        char string[0];
     80} __attribute__((packed)) multiboot2_cmdline_t;
    7581
    7682/** Multiboot2 modules structure */
     
    138144        uint32_t size;
    139145        union {
     146                multiboot2_cmdline_t cmdline;
    140147                multiboot2_module_t module;
    141148                multiboot2_memmap_t memmap;
Note: See TracChangeset for help on using the changeset viewer.