Skip to contentSkip to conversation

- big patch that fixes bugs

PATCH New Tommy McCabe 3 participants 13 messages May 28, 2004 – May 31, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 - big patch that fixes bugs

This patch fixes so many bugs I can't remember them all. When applied, ELKS will compile, but not boot (sys_execve and sys_open return 2 and 8 errors- YES I CHECKED THE FLOPPY). 2 bugs I noticed-

1. How do you get ash on comb but not on root?
2. How do you fit everything on root?

__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

elks/elks/arch/i86/Makefile renamed from elks-stuff/elks/arch/i86/Makefile +2 -1
diff -ruN ./elks-stuff/elks/arch/i86/Makefile ./elks/elks/arch/i86/Makefile
@@ -105,9 +105,10 @@
 
 boot/system:	$(AARCHIVES) $(ADRIVERS) boot/crt1.o boot/crt0.o
 	(cd $(BASEDIR) ; $(LD) $(LDFLAGS) $(ARCH_LD) \
+		-t -M -o $(ARCH_DIR)/boot/system \
 		$(ARCH_DIR)/boot/crt0.o $(ARCH_DIR)/boot/crt1.o \
 		init/main.o $(ARCHIVES) $(DRIVERS) \
-		-t -M -o $(ARCH_DIR)/boot/system > System.tmp ; \
+		> System.tmp ; \
 		sort -k4 System.tmp > System.map ; rm -f System.tmp ) 
 
 #PC image build
elks/elks/arch/i86/boot/setup.S renamed from elks-stuff/elks/arch/i86/boot/setup.S +1 -1
diff -ruN ./elks-stuff/elks/arch/i86/boot/setup.S ./elks/elks/arch/i86/boot/setup.S
@@ -585,7 +585,7 @@
 	or	al,al
 	jnz	is486
 #endif
-#ifdef(CONFIG_CPU_80386)
+#ifdef CONFIG_CPU_80386
         mov cl,#7
 	lea	si,p80386
 	br	getfpu
elks/elks/init/main.c renamed from elks-stuff/elks/init/main.c +1 -1
diff -ruN ./elks-stuff/elks/init/main.c ./elks/elks/init/main.c
@@ -106,7 +106,7 @@
 #ifdef CONFIG_CONSOLE_SERIAL
 	num = sys_open("/dev/ttyS0", 2, 0);
 #else
-	num = sys_open("/dev/tty1", 2, 0);
+	num = sys_open("/dev/tty0", 2, 0);
 #endif
 
 	if (num < 0)
elks/elks/kernel/printk.c renamed from elks-stuff/elks/kernel/printk.c +1 -1
diff -ruN ./elks-stuff/elks/kernel/printk.c ./elks/elks/kernel/printk.c
@@ -136,7 +136,7 @@
 		continue;
 	    }
 
-	    width = zero = '0';
+	    width = zero = 0;
 	    if (c == '0')
 		zero++;
 	    while (c >= '0' && c <= '9') {
elks/elkscmd/MAKEDEV renamed from elks-stuff/elkscmd/MAKEDEV +266 -0

266 lines not on this page · raw message

elks/elkscmd/MAKESET renamed from elks-stuff/elkscmd/MAKESET +48 -0

48 lines not on this page · raw message

elks/elkscmd/Make.defs renamed from elks-stuff/elkscmd/Make.defs +2 -2
diff -ruN ./elks-stuff/elkscmd/Make.defs ./elks/elkscmd/Make.defs
@@ -147,7 +147,7 @@
 MKFS=/sbin/mkfs.minix
 MKFS_OPTS=-n14
 
-MINIX_BOOT=$(DEV86_DIR)/bootblocks
+MINIX_BOOT=./bootblocks
 
 ##############################################################################
 #
@@ -159,7 +159,7 @@
 endif
 
 ifeq ($(TARGET_MODE),LOOP)
-TARGET_MNT=/mnt/elks
+TARGET_MNT=/mnt/test
 LOOP=-o loop
 endif
 
elks/elkscmd/Makefile renamed from elks-stuff/elkscmd/Makefile +37 -26

136 lines not on this page · raw message

elks/elkscmd/ash/Makefile renamed from elks-stuff/elkscmd/ash/Makefile +3 -3
diff -ruN ./elks-stuff/elkscmd/ash/Makefile ./elks/elkscmd/ash/Makefile
@@ -1,6 +1,6 @@
 # Makefile for ash.
 #
-# 19980209 Claudio Matsuoka <[email protected]>
+# 19980209 Claudio Matsuoka <[email protected]>
 # Modified for ELKS and bcc
 
 BASEDIR=..
@@ -70,13 +70,13 @@
 
 rfs: install
 
-min_rfs: install
+min_rfs:
 
 net_rfs: install
 
 smin_rfs:
 
-install: ash
+install: ash 
 	cp -p ash $(TARGET_MNT)/bin/ash
 	rm -f $(TARGET_MNT)/bin/sh
 	ln $(TARGET_MNT)/bin/ash $(TARGET_MNT)/bin/sh
elks/elkscmd/ash/README.elks renamed from elks-stuff/elkscmd/ash/README.elks +2 -2
diff -ruN ./elks-stuff/elkscmd/ash/README.elks ./elks/elkscmd/ash/README.elks
@@ -13,7 +13,7 @@
 Change log:
 
 --------------------------------------------------------------
-19980209 Claudio Matsuoka <[email protected]>
+19980209 Claudio Matsuoka <[email protected]>
 
 (*) Initial port (quite trivial).
     Adjusted makefiles for bcc, defined sig_t as int, kicked out some
@@ -59,7 +59,7 @@
     Very important for some powerful but easy to use IPC.
 
 --------------------------------------------------------------
-19980218 Claudio Matsuoka <[email protected]>
+19980218 Claudio Matsuoka <[email protected]>
 
 (*) Workaround for bcc miscompilation in bltin/expr.c.
     bcc complained about "invalid indirect to indirect" and "invalid label"
elks/elkscmd/ash/bltin/expr.c renamed from elks-stuff/elkscmd/ash/bltin/expr.c +2 -2
diff -ruN ./elks-stuff/elkscmd/ash/bltin/expr.c ./elks/elkscmd/ash/bltin/expr.c
@@ -173,7 +173,7 @@
 		  binary = opsp->op;
 		  for (;;) {
 			/*
-			 * 19980218 Claudio Matsuoka <[email protected]>
+			 * 19980218 Claudio Matsuoka <[email protected]>
 			 * Oh my, this is a nasty one! Once again, bcc
 			 * complains about invalid indirect to indirect
 			 * (mov byte ptr -9[bp],#_op_argflag[bx]).
@@ -280,7 +280,7 @@
  */
 
 /*
- * 19980218 Claudio Matsuoka <[email protected]>
+ * 19980218 Claudio Matsuoka <[email protected]>
  * So, here's one more workaround for a bcc problem. This time bcc
  * complains about an illegal label when using `goto filetype'.
  */
elks/elkscmd/ash/bltin/regexp.c renamed from elks-stuff/elkscmd/ash/bltin/regexp.c +2 -2
diff -ruN ./elks-stuff/elkscmd/ash/bltin/regexp.c ./elks/elkscmd/ash/bltin/regexp.c
@@ -260,7 +260,7 @@
 			break;
 		case RE_MATCHED:
 			/*
-			 * 19980218 Claudio Matsuoka <[email protected]>
+			 * 19980218 Claudio Matsuoka <[email protected]>
 			 * Workaround for bcc compilation problem
 			 */
 			
@@ -310,7 +310,7 @@
 	len = 1;
 	if (*curpat == RE_MATCHED) {
 		/*
-		 * 19980218 Claudio Matsuoka <[email protected]>
+		 * 19980218 Claudio Matsuoka <[email protected]>
 		 * Yet another workaround for a bcc problem.
 		 */
 #if 0
elks/elkscmd/ash/expand.c renamed from elks-stuff/elkscmd/ash/expand.c +1 -1
diff -ruN ./elks-stuff/elkscmd/ash/expand.c ./elks/elkscmd/ash/expand.c
@@ -491,7 +491,7 @@
 		break;
 #if 0
 	/*
-	 * 19980209 Claudio Matsuoka <[email protected]>
+	 * 19980209 Claudio Matsuoka <[email protected]>
 	 * FIXME: Commented out due to problems with bcc (illegal
 	 * indirect to indirect: mov byte ptr -1[si],#_optchar[bx]).
 	 */
elks/elkscmd/ash/parser.c renamed from elks-stuff/elkscmd/ash/parser.c +1 -1
diff -ruN ./elks-stuff/elkscmd/ash/parser.c ./elks/elkscmd/ash/parser.c
@@ -692,7 +692,7 @@
  */
 
 /*
- * 19980209 Claudio Matsuoka <[email protected]>
+ * 19980209 Claudio Matsuoka <[email protected]>
  * bcc fails with `return lasttoken = token', returning an invalid value.
  */
 #define RETURN(token)	{ lasttoken = token; return token; }
elks/elkscmd/bc/Makefile renamed from elks-stuff/elkscmd/bc/Makefile +1 -1
diff -ruN ./elks-stuff/elkscmd/bc/Makefile ./elks/elkscmd/bc/Makefile
@@ -90,7 +90,7 @@
 	install -c -o bin $? $@
 
 rfs: all
-	cp -p bc $(TARGET_MNT)/bin
+	cp -p fbc $(TARGET_MNT)/bin
 
 min_rfs: all
 
elks/elkscmd/bootblocks/minix.c renamed from elks-stuff/elkscmd/bootblocks/minix.c +943 -0

943 lines not on this page · raw message

elks/elkscmd/bootblocks/minix.h renamed from elks-stuff/elkscmd/bootblocks/minix.h +104 -0

104 lines not on this page · raw message

elks/elkscmd/bootblocks/minix.sym renamed from elks-stuff/elkscmd/bootblocks/minix.sym +137 -0

137 lines not on this page · raw message

elks/elkscmd/bootblocks/minix_elks.c renamed from elks-stuff/elkscmd/bootblocks/minix_elks.c +152 -0

152 lines not on this page · raw message

elks/elkscmd/bootblocks/minix_elks.sym renamed from elks-stuff/elkscmd/bootblocks/minix_elks.sym +26 -0
diff -ruN ./elks-stuff/elkscmd/bootblocks/minix_elks.sym ./elks/elkscmd/bootblocks/minix_elks.sym
@@ -0,0 +1,26 @@
++ 00000B00 ----- $start
++ 00000C19 ----- $end
+0 00000B72 ---A- EOS
+0 00000B42 ---A- aint_elks
+0 00000BBE ---A- boot_it
+0 00000B73 ---A- code
+0 00000BF8 ---A- copy_sect
+0 00000B64 ---A- dispmsg
+0 00000B55 ---A- elks_name
+0 00000C10 ---A- kill_motor
+0 00000BD6 ---A- looping
+0 00000BE1 ---A- looping2
+0 00000700 ---A- minix__loadprog
+0 000006FE ---A- minix_bootblock_magic
+0 00000542 ---A- minix_bootfile
+0 0000053E ---A- minix_codestart
+0 00000540 ---A- minix_dinode
+0 0000050B ---A- minix_dosfs_stat
+0 00000B00 ---A- minix_helper
+0 00000F00 ---A- minix_helper_end
+0 0000053E ---A- minix_inode
+0 00000400 ---A- minix_size
+0 00000500 ---A- minix_start
+0 00000B1B ---A- msg_p2
+0 00000B33 ---A- msg_p3
+0 00000BAB ---A- not_elks
elks/elkscmd/disk_utils/Makefile renamed from elks-stuff/elkscmd/disk_utils/Makefile +1 -0
diff -ruN ./elks-stuff/elkscmd/disk_utils/Makefile ./elks/elkscmd/disk_utils/Makefile
@@ -39,6 +39,7 @@
 SPROGS=mkfs
 
 all:		$(PROGS)
+	mkdir $(TARGET_MNT)/sbin
 
 rfs:		install
 
elks/elkscmd/disk_utils/mkfs.c renamed from elks-stuff/elkscmd/disk_utils/mkfs.c +1 -1
diff -ruN ./elks-stuff/elkscmd/disk_utils/mkfs.c ./elks/elkscmd/disk_utils/mkfs.c
@@ -162,7 +162,7 @@
 	exit(status);
 }
 
-#define usage() fatal_error("Usage: mkfs /dev/name blocks # Max blocks=65535\n",16)
+#define usage() fatal_error("Usage: mkfs /dev/name blocks number of Max blocks=65535\n",16)
 #define die(str) fatal_error("mkfs: " str "\n",8)
 
 void write_tables(void)
elks/elkscmd/errors renamed from elks-stuff/elkscmd/errors +1 -0
diff -ruN ./elks-stuff/elkscmd/errors ./elks/elkscmd/errors
@@ -0,0 +1 @@
+as: error opening input file
elks/elkscmd/file_utils/Makefile renamed from elks-stuff/elkscmd/file_utils/Makefile +1 -1
diff -ruN ./elks-stuff/elkscmd/file_utils/Makefile ./elks/elkscmd/file_utils/Makefile
@@ -39,7 +39,7 @@
 PRGS=cat chgrp chmod chown cmp cp dd grep ln ls mkdir mkfifo mknod \
 	more mv rm rmdir sync touch 
 
-MIN_PRGS=cat chgrp chmod chown cmp cp l ls mknod mkdir mv rm rmdir \
+MIN_PRGS=cat chgrp chmod chown cmp cp ln ls mknod mkdir mv rm rmdir \
 	sync touch
 
 SMIN_PRGS=cat cp ls mkdir sync 
elks/elkscmd/file_utils/l.c renamed from elks-stuff/elkscmd/file_utils/l.c +1 -1
diff -ruN ./elks-stuff/elkscmd/file_utils/l.c ./elks/elkscmd/file_utils/l.c
@@ -1,5 +1,5 @@
 /* l.c - A short version of `ls'
- * Sun Feb  8 16:28:03 EST 1998 - [email protected] (Claudio Matsuoka)
+ * Sun Feb  8 16:28:03 EST 1998 - [email protected] (Claudio Matsuoka)
  *
  * Based on the ls.c sources Copyright (c) 1993 by David I. Bell
  */
elks/elkscmd/file_utils/ls.c renamed from elks-stuff/elkscmd/file_utils/ls.c +5 -6
diff -ruN ./elks-stuff/elkscmd/file_utils/ls.c ./elks/elkscmd/file_utils/ls.c
@@ -9,7 +9,7 @@
  *		- Added -C option to print 5 across screen.
  * 30-Jan-1998 [email protected] (Al Riddoch)
  *		- Made -C default behavoir.
- * 02-Feb-1998 [email protected] (Claudio Matsuoka)
+ * 02-Feb-1998 [email protected] (Claudio Matsuoka)
  *		- Options -a, -F and simple multicolumn output added
  * 28-Nov-1999 [email protected] (Mario Frasca)
  *		- Options -R -r added
@@ -18,9 +18,6 @@
  * 13-Jan-2002 [email protected] (Riley Williams)
  *		- Reformatted source consistently.
  *		- Added -A option: -a excluding . and ..
- * 28-May-2004 [email protected] (Claudio Matsuoka)
- *		- Fixed sort direction, keeps qsort and strcmp consistent
- *		- Removed alias to 'dir' (doesn't seem to belong here)
  */
 
 #if !defined(DEBUG)
@@ -74,7 +71,7 @@
 			( (c=name[1]) && (c!='.') ) || (name[2]&&c)
 
 
-static int cols = 0, col = 0, reverse = 1;
+static int cols = 0, col = 0, reverse=-1;
 static char fmt[16] = "%s";
 
 
@@ -84,7 +81,7 @@
 int namesort(a, b)
 const char **a, **b;
 {
-    return reverse * strcmp(*a, *b);
+    return reverse*strcmp(*a, *b);
 }
 
 struct Stack
@@ -468,6 +465,8 @@
 /*
  * Set relevant flags for command name
  */
+    if (!strcmp(*argv,"dir"))
+	flags |= LSF_LONG;
 
     while ( --argc && ((cp = * ++argv)[0]=='-') ) {
 	while (*++cp) {
elks/elkscmd/inet/telnet/ttn.c renamed from elks-stuff/elkscmd/inet/telnet/ttn.c +2 -2
diff -ruN ./elks-stuff/elkscmd/inet/telnet/ttn.c ./elks/elkscmd/inet/telnet/ttn.c
@@ -27,14 +27,14 @@
 #include <linuxmt/time.h>
 #include "../httpd/mylib.h"
 
-#define assert(a)
+/* #define assert(a)- Huh? */
 #else
 #include <sys/time.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #endif
 
-#include <netdb.h>
+/* #include <netdb.h> And where is this file supposed to come from? */
 
 #include "ttn.h"
 
elks/elkscmd/levee/editcor.c renamed from elks-stuff/elkscmd/levee/editcor.c +6 -4
diff -ruN ./elks-stuff/elkscmd/levee/editcor.c ./elks/elkscmd/levee/editcor.c
@@ -444,14 +444,16 @@
 	    strcat(gcb,"c$"); break;
 	case 'Y':			/* yank ... */
 	    strcat(gcb,"y$"); break;
+/*
 	case '':			/* scroll up one page */
-	    strcpy(gcb,"22"); break;
+/*		strcpy(gcb,"22"); break;
 	case '':			/* ... down one page */
-	    strcpy(gcb,"22"); break;
+/*		strcpy(gcb,"22"); break;
 	case '':			/* scroll up one line */
-	    strcpy(gcb,"1"); break;
+/*		strcpy(gcb,"1"); break;
 	case '':			/* ... down one line */
-	    strcpy(gcb,"1"); break;
+/*		strcpy(gcb,"1"); break;
+*/
 	default:
             error();
             return 0;
elks/elkscmd/levee/insert.c renamed from elks-stuff/elkscmd/levee/insert.c +2 -2
diff -ruN ./elks-stuff/elkscmd/levee/insert.c ./elks/elkscmd/levee/insert.c
@@ -85,8 +85,8 @@
 	Dflag = (cp==0 || core[cp-1]==EOL);
 	do {
 	    if (Dflag)
-		while ((cmd=peekc()) == '' || cmd == '') {
-		    if (readchar() == '')
+		while ((cmd=peekc()) == 'b' /* This needs fixing*/ || cmd == 'b'/* This needs fixing */) {
+		    if (readchar() == 'h'/*This need sfixing*/)
 			currDLE = min(COLS,currDLE+shiftwidth);
 		    else
 			currDLE = max(0,currDLE-shiftwidth);
elks/elkscmd/levee/misc.c renamed from elks-stuff/elkscmd/levee/misc.c +2 -2
diff -ruN ./elks-stuff/elkscmd/levee/misc.c ./elks/elkscmd/levee/misc.c
@@ -392,10 +392,10 @@
 	    *size = (ip-start);
             return (c==ESC) ? ESC : EOL;
 	}
-	else if ((!beautify) || c == TAB || c == ''
+	else if ((!beautify) || c == TAB || c == 'h' /*This needs fixing*/
 			     || (c >= ' ' && c <= '~')) {
 	    if (ip < endd) {
-		if (c == '')
+		if (c == 'f'/*This needs fixing*/) 
 		    c = readchar();
 		switch (cclass(c)) {
 		    case 0 : ixp++; break;
elks/elkscmd/rootfs_template/dev/MAKEDEV renamed from elks-stuff/elkscmd/rootfs_template/dev/MAKEDEV +0 -264

264 lines not on this page · raw message

elks/elkscmd/rootfs_template/dev/MAKESET renamed from elks-stuff/elkscmd/rootfs_template/dev/MAKESET +0 -48

48 lines not on this page · raw message

elks/elkscmd/rootfs_template/etc/rc.d/rc.sysinit renamed from elks-stuff/elkscmd/rootfs_template/etc/rc.d/rc.sysinit +5 -4
diff -ruN ./elks-stuff/elkscmd/rootfs_template/etc/rc.d/rc.sysinit ./elks/elkscmd/rootfs_template/etc/rc.d/rc.sysinit
@@ -18,19 +18,20 @@
 	stty $ttybaud < $sliptty
 	echo -n ' stty'
 	ktcp $localip $sliptty &
-	echo ' ktcp'
+	echo -n ' ktcp'
+
+	echo ''
 	
 	echo -n "Starting network daemons: "
 	for daemon in ftpd httpd
 	do
 		if test -f /bin/$daemon 
 		then
-			echo -n " $daemon"
 			$daemon &
+			echo -n " $daemon"
 		fi
 	done
-	echo .
-
+	echo ''
 fi
 
 # 

Binary files ./elks-stuff/elkscmd/rootfs_template.tar and ./elks/elkscmd/rootfs_template.tar differ Binary files ./elks-stuff/elkscmd/rootfs_template.tar.gz and ./elks/elkscmd/rootfs_template.tar.gz differ

elks/elkscmd/sys_utils/Makefile renamed from elks-stuff/elkscmd/sys_utils/Makefile +7 -7
diff -ruN ./elks-stuff/elkscmd/sys_utils/Makefile ./elks/elkscmd/sys_utils/Makefile
@@ -6,7 +6,7 @@
 #
 # Include standard packaging commands.
 
-MIN_BIN 	= getty init kill login mount passwd ps swapon meminfo reboot umount
+MIN_BIN 	= getty init kill login mount passwd ps meminfo reboot umount
 MIN_LIB 	= 
 MIN_SBIN	= clock exitemu getty init reboot
 MIN_USR_BIN	= meminfo passwd
@@ -36,26 +36,29 @@
 ###############################################################################
 
 PRGS		= getty kill man mount reboot umount clock exitemu who ps \
-		  init login passwd knl
+		  init login passwd knl meminfo
 
-NETPRGS=init getty login kill mount umount passwd reboot ps swapon meminfo who
+NETPRGS=init getty login kill mount umount passwd reboot ps meminfo who
 
-MIN_PRGS=init getty login kill mount reboot umount clock exitemu ps swapon meminfo
+MIN_PRGS=init getty login kill mount reboot umount clock exitemu ps meminfo
 
 SMIN_PRGS	= init mount umount
 
 all: $(PRGS)
 
 rfs: all
+	mkdir $(TARGET_MNT)/bin
 	cp -p $(PRGS) $(TARGET_MNT)/bin
 	
 net_rfs: all
 	cp -p $(NETPRGS) $(TARGET_MNT)/bin
 
 min_rfs: all
+	mkdir $(TARGET_MNT)/bin
 	cp -p $(MIN_PRGS) $(TARGET_MNT)/bin
 
 smin_rfs: all
+	mkdir $(TARGET_MNT)/bin
 	cp -p $(SMIN_PRGS) $(TARGET_MNT)/bin
 
 clean:
@@ -80,9 +83,6 @@
 meminfo: meminfo.c
 	$(CC) $(CFLAGS) $(LDFLAGS) meminfo.c -o meminfo -H 100
 
-swapon: swapon.c
-	$(CC) $(CFLAGS) $(LDFLAGS) swapon.c -o swapon -H 100
-
 new_init: init.c utent.o
 	$(CC) $(CFLAGS) $(LDFLAGS) init.c utent.o -o init
 
elks/elkscmd/sys_utils/qsort.c renamed from elks-stuff/elkscmd/sys_utils/qsort.c +1 -1
diff -ruN ./elks-stuff/elkscmd/sys_utils/qsort.c ./elks/elkscmd/sys_utils/qsort.c
@@ -9,7 +9,7 @@
  */
 
 /*
- * Sun Feb  8 21:02:15 EST 1998 [email protected] (Claudio Matsuoka)
+ * Sun Feb  8 21:02:15 EST 1998 [email protected] (Claudio Matsuoka)
  * Changed sort direction
  */
 
elks/elkscmd/sysboot.s renamed from elks-stuff/elkscmd/sysboot.s +82 -0

82 lines not on this page · raw message

elks/elksnet/ktcp/vjhc.c renamed from elks-stuff/elksnet/ktcp/vjhc.c +70 -73

207 lines not on this page · raw message

elks/elksnet/screen/screen.h renamed from elks-stuff/elksnet/screen/screen.h +3 -4
diff -ruN ./elks-stuff/elksnet/screen/screen.h ./elks/elksnet/screen/screen.h
@@ -28,10 +28,9 @@
     PM,          /* Privacy message */
 };
 
-#define MAXSTR       128
-#define	MAXARGS      64
-
-#define IOSIZE       80
+#define MAXSTR 128
+#define MAXARGS 64
+#define IOSIZE 80
 
 struct win {
     int wpid;
#1 lore raw

PATCH 1/5 Splitting Tommy's big patch

Use #ifdef rightly on setup.S

arch/i86/boot/setup.S +1 -1
@@ -585,7 +585,7 @@
 	or	al,al
 	jnz	is486
 #endif
-#ifdef(CONFIG_CPU_80386)
+#ifdef CONFIG_CPU_80386
         mov cl,#7
 	lea	si,p80386
 	br	getfpu
#2 lore raw

Re: [PATCH 1/5] Splitting Tommy's big patch

Applied. Thanks.

Mike

Quoted 18 lines · Eduardo Pereira Habkost

Use #ifdef rightly on setup.S

arch/i86/boot/setup.S +1 -2
@@ -585,7 +585,7 @@
 	or	al,al
 	jnz	is486
 #endif
-#ifdef(CONFIG_CPU_80386)
+#ifdef CONFIG_CPU_80386
         mov cl,#7
 	lea	si,p80386
 	br	getfpu
-

To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

PATCH 2/5 Splitting Tommy's big patch

In reply to Tommy McCabe

Fix order of LD parameters on arch/i86/Makefile

arch/i86/Makefile +2 -1
@@ -105,9 +105,10 @@
 
 boot/system:	$(AARCHIVES) $(ADRIVERS) boot/crt1.o boot/crt0.o
 	(cd $(BASEDIR) ; $(LD) $(LDFLAGS) $(ARCH_LD) \
+		-t -M -o $(ARCH_DIR)/boot/system \
 		$(ARCH_DIR)/boot/crt0.o $(ARCH_DIR)/boot/crt1.o \
 		init/main.o $(ARCHIVES) $(DRIVERS) \
-		-t -M -o $(ARCH_DIR)/boot/system > System.tmp ; \
+		> System.tmp ; \
 		sort -k4 System.tmp > System.map ; rm -f System.tmp ) 
 
 #PC image build
#4 lore raw

Re: [PATCH 2/5] Splitting Tommy's big patch

Applied. Thanks

Mike

Quoted 21 lines · Eduardo Pereira Habkost

Fix order of LD parameters on arch/i86/Makefile

arch/i86/Makefile +2 -2
@@ -105,9 +105,10 @@
 
 boot/system:	$(AARCHIVES) $(ADRIVERS) boot/crt1.o boot/crt0.o
 	(cd $(BASEDIR) ; $(LD) $(LDFLAGS) $(ARCH_LD) \
+		-t -M -o $(ARCH_DIR)/boot/system \
 		$(ARCH_DIR)/boot/crt0.o $(ARCH_DIR)/boot/crt1.o \
 		init/main.o $(ARCHIVES) $(DRIVERS) \
-		-t -M -o $(ARCH_DIR)/boot/system > System.tmp ; \
+		> System.tmp ; \
 		sort -k4 System.tmp > System.map ; rm -f System.tmp ) 
 
 #PC image build
-

To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

PATCH 3/5 Splitting Tommy's big patch

In reply to Tommy McCabe

Fix wrong assignment (typo?) on printk.

kernel/printk.c +1 -1
@@ -136,7 +136,7 @@
 		continue;
 	    }
 
-	    width = zero = '0';
+	    width = zero = 0;
 	    if (c == '0')
 		zero++;
 	    while (c >= '0' && c <= '9') {
#6 lore raw

Re: [PATCH 3/5] Splitting Tommy's big patch

Applied. Thanks

Mike

Quoted 18 lines · Eduardo Pereira Habkost

Fix wrong assignment (typo?) on printk.

kernel/printk.c +1 -2
@@ -136,7 +136,7 @@
 		continue;
 	    }
 
-	    width = zero = '0';
+	    width = zero = 0;
 	    if (c == '0')
 		zero++;
 	    while (c >= '0' && c <= '9') {
-

To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw

PATCH 4/5 Splitting Tommy's big patch

In reply to Tommy McCabe

Use tty0, not tty1 as system console. Should check if that works and boot

init/main.c +1 -1
@@ -106,7 +106,7 @@
 #ifdef CONFIG_CONSOLE_SERIAL
 	num = sys_open("/dev/ttyS0", 2, 0);
 #else
-	num = sys_open("/dev/tty1", 2, 0);
+	num = sys_open("/dev/tty0", 2, 0);
 #endif
 
 	if (num < 0)
#8 lore raw

Re: [PATCH 4/5] Splitting Tommy's big patch

Applied. Thanks

Mike

Quoted 18 lines · Eduardo Pereira Habkost

Use tty0, not tty1 as system console. Should check if that works and boot

init/main.c +1 -2
@@ -106,7 +106,7 @@
 #ifdef CONFIG_CONSOLE_SERIAL
 	num = sys_open("/dev/ttyS0", 2, 0);
 #else
-	num = sys_open("/dev/tty1", 2, 0);
+	num = sys_open("/dev/tty0", 2, 0);
 #endif
 
 	if (num < 0)
-

To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#9 lore raw

PATCH 5/5 Remaining (not reviewed) parts of the big patch

In reply to Tommy McCabe

The attached file has the remaining parts of the patch that hadn't been reviewed. There are parts that reverted last fixes from Claudio that were removed.

--
Eduardo

#10 lore raw

Re: [PATCH 5/5] Remaining (not reviewed) parts of the big patch

--- Eduardo Pereira Habkost

Quoted 7 lines · <[email protected]> wrote:

The attached file has the remaining parts of the patch that hadn't been
reviewed. There are parts that reverted last fixes from Claudio that
were removed.

Hey, there's a lot of important stuff in there! In order to not revert Claudio's fixes, simply remove the part about elkscmd/file_utils/Makefile.

Quoted 4 lines

Eduardo

ATTACHMENT part 2 application/x-gzip

__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

#11 lore raw

Re: [PATCH 5/5] Remaining (not reviewed) parts of the big patch

In reply to Eduardo Pereira Habkost

--- Eduardo Pereira Habkost

Quoted 7 lines · <[email protected]> wrote:

The attached file has the remaining parts of the patch that hadn't been
reviewed. There are parts that reverted last fixes from Claudio that
were removed.

Hey, there's a lot of important stuff in there! In order to not revert Claudio's fixes, simply remove the part about elkscmd/file_utils.

Quoted 4 lines

Eduardo

ATTACHMENT part 2 application/x-gzip

__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

#12 lore raw

Re: [PATCH 5/5] Remaining (not reviewed) parts of the big patch

I mean: there *were* parts that removed Claudio's fixes. I already removed them. This 5th patch is the original patch from Tommy except the four parts that were put on separated patches, and the parts that reverted the fixes from Claudio.

Quoted 18 lines · Tommy McCabe

--- Eduardo Pereira Habkost

Quoted 7 lines · <[email protected]> wrote:

The attached file has the remaining parts of the patch that hadn't been
reviewed. There are parts that reverted last fixes from Claudio that
were removed.

Hey, there's a lot of important stuff in there! In order to not revert Claudio's fixes, simply remove the part about elkscmd/file_utils.

Quoted 4 lines

Eduardo

ATTACHMENT part 2 application/x-gzip

Signature · 1 line
Eduardo