mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
This fetches GRUB1 sources, applies the {graphical, print function,
save default, and ext3_256byte} patches from debian, and applies a
patch to make it work on x86_64 and port it to Mini-OS. By using
libxc, PV-GRUB can then "kexec" the loaded kernel from inside the
domain itself, hence permitting to avoid the security-concerned
pygrub.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
31 lines
517 B
C
31 lines
517 B
C
#ifndef __OSDEP_H__
|
|
#define __OSDEP_H__
|
|
|
|
#include <byteswap.h>
|
|
#define swap32(x) bswap_32(x)
|
|
#define swap16(x) bswap_16(x)
|
|
|
|
#include <machine/endian.h>
|
|
#if BYTE_ORDER == BIG_ENDIAN
|
|
#define htons(x) (x)
|
|
#define ntohs(x) (x)
|
|
#define htonl(x) (x)
|
|
#define ntohl(x) (x)
|
|
#else
|
|
#define htons(x) swap16(x)
|
|
#define ntohs(x) swap16(x)
|
|
#define htonl(x) swap32(x)
|
|
#define ntohl(x) swap32(x)
|
|
#endif
|
|
|
|
typedef unsigned long Address;
|
|
|
|
/* ANSI prototyping macro */
|
|
#ifdef __STDC__
|
|
#define P(x) x
|
|
#else
|
|
#define P(x) ()
|
|
#endif
|
|
|
|
#endif
|