[coreboot] XMM stack

Rudolf Marek r.marek at assembler.cz
Fri Oct 2 00:36:06 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

I made some fix for xmmstack.c found in SerialICE.

leal (%esp), %ecx


Its simple:

- --- old.c	2009-05-14 15:43:45.000000000 +0200
+++ xmmstack.c	2009-10-02 00:19:52.755673296 +0200
@@ -547,9 +547,23 @@ getxmml:\n\
             continue;
         }
 #endif
+
+   fprintf(w,"#%s #ORIG\n", buf);
+
+	/* leal is tricky */
+        if (regexp("^leal\\s+(\\d*)\\(\\%esp\\)\\s*,\\s*(.*)$",buf,len,find))
+        {
+            fprintf(w,"movl %%dr2,%%esp #NOSTACK\n");
+            fprintf(w,"%s\n",buf);
+            fprintf(w,"movl %%esp,%%dr2 #NOSTACK\n");
+            continue;
+        }
+

It makes things compile. Maybe there are other issues don't know.

Rudolf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEUEARECAAYFAkrFLtYACgkQ3J9wPJqZRNUJoQCYpHICI6k4ZwECnwRrN/FDtEjm
1QCfUMWXts0lv7iH2W6n8dC7C9iNBKg=
=xgZx
-----END PGP SIGNATURE-----




More information about the coreboot mailing list