mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 08:39:28 +00:00
heavily rewrite the netboot support.
This commit is contained in:
1 parent
a2018f29ff
commit
9fe0449a36
36 files changed
+5132
-2080
No files matched your search
@@ -0,0 +1,69 @@
|
||||
#ifndef __OSDEP_H__
|
||||
#define __OSDEP_H__
|
||||
|
||||
#if 1
|
||||
# define ETHERBOOT32
|
||||
# include <byteorder.h>
|
||||
# if 0
|
||||
# include <linux-asm-string.h>
|
||||
# endif
|
||||
# include <linux-asm-io.h>
|
||||
#else
|
||||
#ifdef __linux__
|
||||
#define ETHERBOOT32
|
||||
#include <asm/byteorder.h>
|
||||
#include "linux-asm-string.h"
|
||||
#include "linux-asm-io.h"
|
||||
#define _edata edata /* ELF does not prepend a _ */
|
||||
#define _end end
|
||||
#endif
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
#define ETHERBOOT32
|
||||
#include <sys/types.h>
|
||||
#include "linux-asm-string.h"
|
||||
#include "linux-asm-io.h"
|
||||
#define _edata edata /* ELF does not prepend a _ */
|
||||
#define _end end
|
||||
#endif
|
||||
|
||||
#ifdef __BCC__
|
||||
#define ETHERBOOT16
|
||||
#define inline
|
||||
#define const
|
||||
#define volatile
|
||||
#define setjmp _setjmp /* they are that way in libc.a */
|
||||
#define longjmp _longjmp
|
||||
|
||||
/* BCC include files are missing these. */
|
||||
typedef unsigned char u_char;
|
||||
typedef unsigned short u_short;
|
||||
typedef unsigned int u_int;
|
||||
typedef unsigned long u_long;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(ETHERBOOT16) && !defined(ETHERBOOT32)
|
||||
Error, neither ETHERBOOT16 nor ETHERBOOT32 defined
|
||||
#endif
|
||||
|
||||
#if defined(ETHERBOOT16) && defined(ETHERBOOT32)
|
||||
Error, both ETHERBOOT16 and ETHERBOOT32 defined
|
||||
#endif
|
||||
|
||||
typedef unsigned long Address;
|
||||
|
||||
/* ANSI prototyping macro */
|
||||
#ifdef __STDC__
|
||||
#define P(x) x
|
||||
#else
|
||||
#define P(x) ()
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* c-basic-offset: 8
|
||||
* End:
|
||||
*/
|
||||
Reference in new issue
Block a user