[Milkymist-devel] DOpE port to Milkymist

Sébastien Bourdeauducq sebastien.bourdeauducq at lekernel.net
Sat Aug 22 04:45:37 PDT 2009


Hi,

Attached is a patch that ports DOpE (http://www.genode-
labs.com/products/graphical-user-interfaces) to the Milkymist open-source 
system-on-chip platform (http://www.milkymist.org).

Random info:

* see photo at http://lekernel.net/blog/?p=496

* there is no support for input devices, all it does for now is display the 
main screen. Is anyone interested in developing a PS/2 core for Milkymist and 
its driver for DOpE?

* crashes when the data cache is enabled, but this looks like an hardware 
problem (people working on the Linux port reported the same issue)

* I modified your code by adding a NO_DOUBLE define which passes float
arguments as pointers to printf(). This is needed because of the stupid type
promotion feature of the C standard which converts all single precision floats
to double precision when they are passed as arguments to variadic functions,
and the Milkymist floating point implementation is unable to deal with
doubles. As far as I know, there is no option in GCC to disable this feature,
so the workaround I use is to pass pointers to single precision floats.

* I replaced strtod() calls to atof() calls for a similar reason. Since you
don't check if the conversion was successful, the functionality is equivalent.

* you need a source distribution of Milkymist to compile DOpE (for the
hardware and libc headers), and set the MMDIR environment variable to the
location of the core source distribution, e.g.
export MMDIR=~/milkymist/milkymist-core

* This patch is Copyright (c) 2009 Sébastien Bourdeauducq

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

(MIT License)

Regards,
 Sébastien

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mmdope_20090822.diff
Type: text/x-patch
Size: 29758 bytes
Desc: not available
URL: <http://lists.milkymist.org/pipermail/devel-milkymist.org/attachments/20090822/591bd0a2/attachment.bin>


More information about the Devel mailing list