VirtualBox

source: vbox/trunk/src/VBox/Devices/PC/Etherboot-src/include/osdep.h@ 15453

Last change on this file since 15453 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 825 bytes
Line 
1#ifndef ETHERBOOT_OSDEP_H
2#define ETHERBOOT_OSDEP_H
3
4#define __unused __attribute__((unused))
5#define __aligned __attribute__((aligned(16)))
6#define PACKED __attribute__((packed))
7
8/* Optimization barrier */
9/* The "volatile" is due to gcc bugs */
10#define barrier() __asm__ __volatile__("": : :"memory")
11
12#include "stdint.h"
13#include "limits.h"
14#include "string.h"
15#include "io.h"
16#include "endian.h"
17#include "byteswap.h"
18#include "setjmp.h"
19#include "latch.h"
20#include "callbacks.h"
21#include "hooks.h"
22
23/* within 1MB of 4GB is too close.
24 * MAX_ADDR is the maximum address we can easily do DMA to.
25 */
26#define MAX_ADDR (0xfff00000UL)
27
28typedef unsigned long Address;
29
30/* ANSI prototyping macro */
31#ifdef __STDC__
32#define P(x) x
33#else
34#define P(x) ()
35#endif
36
37#endif
38
39/*
40 * Local variables:
41 * c-basic-offset: 8
42 * End:
43 */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette