[coreboot] XMM stack

Joseph Smith joe at settoplinux.org
Fri Oct 2 00:54:45 CEST 2009




On Fri, 02 Oct 2009 00:36:06 +0200, Rudolf Marek <r.marek at assembler.cz>
wrote:
> -----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.
> 
Cool, thanks Rudolf.
Stefan, do you plan a svn repo for SerialICE?

-- 
Thanks,
Joseph Smith
Set-Top-Linux
www.settoplinux.org





More information about the coreboot mailing list