mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-01 22:21:16 +02:00
Add MS-DOS crosscompilation support
Tested, works fine. Part 1: Code changes. Corresponding to flashrom svn r944. Signed-off-by: Rudolf Marek <r.marek@assembler.cz> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
This commit is contained in:

committed by
Carl-Daniel Hailfinger

parent
ccf7a2a231
commit
03ae5c117a
18
hwaccess.h
18
hwaccess.h
@ -68,12 +68,30 @@
|
||||
#define INW inw
|
||||
#define INL inl
|
||||
#else
|
||||
|
||||
#ifdef __DJGPP__
|
||||
|
||||
#include <pc.h>
|
||||
|
||||
#define OUTB(x,y) outportb(y, x)
|
||||
#define OUTW(x,y) outportw(y, x)
|
||||
#define OUTL(x,y) outportl(y, x)
|
||||
|
||||
#define INB inportb
|
||||
#define INW inportw
|
||||
#define INL inportl
|
||||
|
||||
#else
|
||||
|
||||
#define OUTB outb
|
||||
#define OUTW outw
|
||||
#define OUTL outl
|
||||
#define INB inb
|
||||
#define INW inw
|
||||
#define INL inl
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user