[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [Mint-cvs] [FreeMiNT CVS] freemint/sys



You've just enabled COOKIE_DB globally now.

Please explain why the compiler doesn't get this right with some objdump code for 68000 ?

Alan.

On 10/12/13 10:42, cvs@sparemint.org wrote:
Update of /mint/freemint/sys
In directory mail.sparemint.org:/tmp/cvs-serv19863

Modified Files:
	tosfs.c
Log Message:
don't assign to possible odd address for 68000 in tos_readdir


Index: freemint/sys/tosfs.c
diff -u freemint/sys/tosfs.c:1.12 freemint/sys/tosfs.c:1.13
--- freemint/sys/tosfs.c:1.12	Wed Jan 13 12:11:07 2010
+++ freemint/sys/tosfs.c	Sat Oct 12 05:42:51 2013
@@ -1,5 +1,5 @@
  /*
- * $Id: tosfs.c,v 1.12 2010/01/13 17:11:07 alanh Exp $
+ * $Id: tosfs.c,v 1.13 2013/10/12 09:42:51 hek Exp $
   *
   * This file has been modified as part of the FreeMiNT project. See
   * the file Changes.MH for details and dates.
@@ -83,7 +83,7 @@
   */
  #define NEWWAY
-#if 0
+#if 1
  #define COOKIE_DB(x) DEBUG(x)
  #else
  #define COOKIE_DB(x)
@@ -1122,7 +1122,12 @@
  		namelen -= (int) sizeof(long);
  		if (namelen <= 0)
  			return EBADARG;
+#ifdef M68000
+		memcpy( name, &index, 4);
+		index++;
+#else
  		*((long *)name) = index++;
+#endif
  		name += sizeof(long);
  	}
  	if (strlen(DIR_NAME(dirh)) < namelen) {

_______________________________________________
cz-bobek-lists-mint-cvs mailing list
mint-cvs@lists.bobek.cz
https://lists.bobek.cz/mailman/listinfo/cz-bobek-lists-mint-cvs