feat: introduced tasking, added paging (no vm), moved malloc, added
syscalls, other stuff
This commit is contained in:
@@ -5,10 +5,11 @@
|
||||
#include "mbr.h"
|
||||
#include <types.h>
|
||||
#include <drivers/ide.h>
|
||||
#include <mem/mem.h>
|
||||
#include <libc/kprintf.h>
|
||||
#include <fs/blockdev.h>
|
||||
#include <libc/libc.h>
|
||||
#include <mem/malloc.h>
|
||||
#include <attributes.h>
|
||||
|
||||
typedef struct {
|
||||
uint8_t bootable;
|
||||
@@ -21,14 +22,14 @@ typedef struct {
|
||||
uint16_t ending_cylinder: 10;
|
||||
uint32_t start_lba;
|
||||
uint32_t num_lbas;
|
||||
} __attribute((packed)) mbr_partition_table_entry;
|
||||
} packed mbr_partition_table_entry;
|
||||
|
||||
typedef struct {
|
||||
uint32_t unique_id;
|
||||
uint16_t reserved;
|
||||
mbr_partition_table_entry entries[4];
|
||||
uint8_t signature[2];
|
||||
} __attribute((packed)) mbr_table;
|
||||
} packed mbr_table;
|
||||
|
||||
typedef struct {
|
||||
const block_device *device;
|
||||
|
||||
Reference in New Issue
Block a user