aboutsummaryrefslogtreecommitdiffstats
path: root/core/ldlinux-c.c
blob: 3d15cefb8c166ccd60b20516a693d6d8c6337896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <syslinux/config.h>
#include <com32.h>
#include <fs.h>

extern uint8_t DriveNumber;
extern far_ptr_t PartInfo;
extern far_ptr_t OrigESDI;
extern uint64_t Hidden;

void get_derivative_info(union syslinux_derivative_info *di)
{
	di->disk.filesystem = SYSLINUX_FS_SYSLINUX;
	di->disk.sector_shift = SectorShift;
	di->disk.drive_number = DriveNumber;

	di->disk.ptab_ptr = GET_PTR(PartInfo);
	di->disk.esdi_ptr = GET_PTR(OrigESDI);
	di->disk.partoffset = Hidden;
}