added origin program
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
typedef struct {
|
||||
uint32_t flags;
|
||||
uint32_t mem_lower;
|
||||
uint32_t mem_upper;
|
||||
@@ -17,13 +17,20 @@ typedef struct {
|
||||
uint32_t shndx;
|
||||
uint32_t mmap_length;
|
||||
uint32_t mmap_addr;
|
||||
} multiboot_info;
|
||||
} __attribute__((packed)) multiboot_info;
|
||||
|
||||
typedef struct __attribute__((packed)) {
|
||||
typedef struct {
|
||||
uint32_t size;
|
||||
uint64_t addr;
|
||||
uint64_t len;
|
||||
uint32_t type;
|
||||
} multiboot_mmap_entry;
|
||||
} __attribute__((packed)) multiboot_mmap_entry;
|
||||
|
||||
typedef struct {
|
||||
uint32_t mod_start; // Physical start address of user.elf in memory
|
||||
uint32_t mod_end; // Physical end address of user.elf
|
||||
uint32_t cmdline; // Pointer to a string (e.g., "/boot/user.elf")
|
||||
uint32_t pad;
|
||||
} __attribute__((packed)) multiboot_module_entry;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user