blob: 443bd24e815e5f0fbd35916a35c77b36ab78648a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include "project.h"
void
show (DISK * d)
{
MBR *m;
GPT_header *h;
GPT_entry *e;
uint8_t buf[512];
disk_read (d, buf, 0, 1);
m = (MBR *) buf;
mbr_show (m);
disk_read (d, buf, 1, 1);
h = (GPT_header *) buf;
header_show (d, h);
disk_read (d, buf, disk_lbas (d) - 1, 1);
h = (GPT_header *) buf;
header_show (d, h);
}
|