summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/ddcprobe/Makefile2
-rw-r--r--tools/ddcprobe/ddcxinfos.c9
2 files changed, 10 insertions, 1 deletions
diff --git a/tools/ddcprobe/Makefile b/tools/ddcprobe/Makefile
index 00e43ce68..6f2f3f4e9 100644
--- a/tools/ddcprobe/Makefile
+++ b/tools/ddcprobe/Makefile
@@ -19,7 +19,7 @@ OBJS = ddcxinfos.o vesamode.o vbe.o
LIBS = libint10.a libx86emu.a
endif
ifeq (ppc,$(ARCH))
-OBJS = ddcxinfos.o vesamode.o of.o minifind.o
+OBJS = ddcxinfos.o of.o minifind.o
endif
ifeq (,$(OBJS))
OBJS = not_handled.o
diff --git a/tools/ddcprobe/ddcxinfos.c b/tools/ddcprobe/ddcxinfos.c
index 93352d846..7807ebf16 100644
--- a/tools/ddcprobe/ddcxinfos.c
+++ b/tools/ddcprobe/ddcxinfos.c
@@ -9,7 +9,14 @@
#include <stdarg.h>
#include "vbe.h"
#include "vesamode.h"
+
+#if defined(__i386__) || defined(__x86_64__)
#include "int10/vbios.h"
+#else
+#define InitInt10(PCI_CONFIG) 0
+#define FreeInt10() /**/
+#endif
+
#ident "$Id$"
#define SQR(x) ((x) * (x))
@@ -47,6 +54,7 @@ int main(void)
printf("%dKB of video ram\n", vbe_info->memory_size / 1024);
/* List supported standard modes */
+#if defined(__i386__) || defined(__x86_64__)
for (j = 0; j < vbe_info->modes; j++)
for (i = 0; known_vesa_modes[i].x; i++)
if (known_vesa_modes[i].number == vbe_info->mode_list[j])
@@ -56,6 +64,7 @@ int main(void)
known_vesa_modes[i].y
);
printf("\n");
+#endif
/* Get EDID information */
if (vbe_get_edid_info(edid) == 0) {