VirtualBox

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

最後變更 在這個檔案從13295是 1,由 vboxsync 提交於 55 年 前

import

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 825 位元組
 
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 */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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