SayoriOS 0.3.3

mbr.h
1 //
2 // Created by ndraey on 2/12/24.
3 //
4
5 #pragma once
6
7 #include "common.h"
8
9 struct mbr_parition {
10 uint8_t activity;
11 uint8_t start_head;
12 uint8_t start_sector : 5;
13 uint16_t start_cylinder : 10;
14 uint8_t type;
15 uint8_t end_head;
16 uint8_t end_sector : 5;
17 uint16_t end_cylinder : 10;
18 uint32_t start_sector_lba;
19 uint32_t num_sectors;
20 } __attribute__((packed));
21
22 void ebr_recursive_dump(char disk, uint64_t abs_lba, uint64_t lba, int depth);
23 void mbr_dump(char disk, uint64_t i);
common.h
Основные определения ядра
__attribute__
struct registers __attribute__((packed))
Структура данных пакета от мыши
Definition: psf.h:19
mbr_parition
Definition: mbr.h:9