mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
[metal] Export struct offsets from C code (#625)
Rather than computing them by hand.
This commit is contained in:
parent
cdf9e8c8a3
commit
c937fbb222
3 changed files with 37 additions and 17 deletions
|
@ -9,14 +9,15 @@ struct mman {
|
|||
int32_t pdpi; /* 0x0508 */
|
||||
int32_t e820n; /* 0x050c */
|
||||
struct SmapEntry e820[256]; /* 0x0510 */
|
||||
struct SmapEntry e820_end[0]; /* 0x1d10 */
|
||||
char pc_drive_base_table[11]; /* 0x1d10 */
|
||||
unsigned char pc_drive_type; /* 0x1d1b */
|
||||
unsigned char pc_drive_last_sector; /* 0x1d1c */
|
||||
unsigned short pc_drive_last_cylinder; /* 0x1d1d */
|
||||
unsigned char pc_drives_attached; /* 0x1d1f */
|
||||
unsigned char pc_drive_last_head; /* 0x1d20 */
|
||||
unsigned char pc_drive; /* 0x1d21 */
|
||||
char bad_idt[6]; /* 0x1d22 */
|
||||
unsigned short pc_drive_last_cylinder; /* 0x1d1e */
|
||||
unsigned char pc_drives_attached; /* 0x1d20 */
|
||||
unsigned char pc_drive_last_head; /* 0x1d21 */
|
||||
unsigned char pc_drive; /* 0x1d22 */
|
||||
char bad_idt[6]; /* 0x1d23 */
|
||||
};
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue