2
0
mirror of https://github.com/xcat2/xNBA.git synced 2025-01-05 19:15:05 +00:00
xNBA/src/arch/i386/include/pxe_addr.h

18 lines
518 B
C
Raw Normal View History

2005-03-08 18:53:11 +00:00
/*
* Architecture-specific portion of pxe.h for Etherboot
*
* This file has to define the types SEGOFF16_t, SEGDESC_t and
* SEGSEL_t for use in other PXE structures. See pxe.h for details.
*/
2005-05-23 22:45:48 +00:00
#ifndef PXE_ADDR_H
#define PXE_ADDR_H
2005-03-08 18:53:11 +00:00
#define IS_NULL_SEGOFF16(x) ( ( (x).segment == 0 ) && ( (x).offset == 0 ) )
#define SEGOFF16_TO_PTR(x) ( VIRTUAL( (x).segment, (x).offset ) )
#define PTR_TO_SEGOFF16(ptr,segoff16) \
(segoff16).segment = SEGMENT(ptr); \
(segoff16).offset = OFFSET(ptr);
2005-05-23 22:45:48 +00:00
#endif /* PXE_ADDR_H */