patch-2.1.101 linux/arch/m68k/mac/debug.c

Next file: linux/arch/m68k/mac/macints.c
Previous file: linux/arch/m68k/mac/config.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/arch/m68k/mac/debug.c linux/arch/m68k/mac/debug.c
@@ -16,6 +16,7 @@
 
 #include <linux/config.h>
 #include <linux/types.h>
+#include <linux/sched.h>
 #include <linux/tty.h>
 #include <linux/console.h>
 #include <linux/init.h>
@@ -131,7 +132,7 @@
 	if (!MACH_IS_MAC) 
 		return;
 
-	if (compat_boot_info.bi_mac.videodepth ==1) 
+	if (mac_videodepth ==1) 
 		pengoffset=(unsigned char *)(mac_videobase+80*mac_rowbytes)
 			   +5*peng;
 	else
@@ -163,13 +164,13 @@
 	int i;
 	
 	if(!boomoffset)
-		if (compat_boot_info.bi_mac.videodepth == 1) {
+		if (mac_videodepth == 1) {
 			boomoffset=(unsigned char *)(mac_videobase+160*mac_rowbytes);
 		} else {
 			boomoffset=(unsigned char *)(mac_videobase+256*mac_rowbytes);
 		}
 	else
-		if (compat_boot_info.bi_mac.videodepth == 1)
+		if (mac_videodepth == 1)
 			boomoffset+=5;
 		else
 			boomoffset+=32;	

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov