cvs commit: src/sys/dev/syscons scgfbrndr.c scvgarndr.c

Xin LI delphij at delphij.net
Tue Jun 14 06:22:47 GMT 2005


> peter       2005-06-14 02:43:45 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/dev/syscons      scgfbrndr.c scvgarndr.c 
>   Log:
>   Fix syscons on amd64.  The SC_PIXEL_MODE commit from May 29th added a new
>   function pointer to the vga render dispatch table and initialized it with
>   vga_nop.  The problem is that vga_nop() is a varargs function, and the
>   table declares a non-varargs function pointer.  On amd64 (and I think ppc),
>   mixing varargs and non-varargs function pointers is fatal.
>   
>   Change vga_nop() and gfb_nop() from varargs to non-varargs do-nothing
>   functions.  This stops the stack corruption that only happened on amd64.

Thanks!

-- 
Xin LI <delphij delphij net>  http://www.delphij.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20050614/9ac48113/attachment.bin


More information about the cvs-src mailing list