From 04355d44d70d6dace8b3464411b074fca5b44a65 Mon Sep 17 00:00:00 2001 From: Mathias Gottschlag Date: Tue, 14 Oct 2008 15:57:38 +0200 Subject: [PATCH] + Testprogramm fuer Grafikausgabe --- src/modules/c/gfxtest/Makefile.all | 8 + src/modules/c/gfxtest/gfxtest.c | 382 ++++++++++++++++++++++++++++++++++++ 2 files changed, 390 insertions(+), 0 deletions(-) create mode 100644 src/modules/c/gfxtest/Makefile.all create mode 100644 src/modules/c/gfxtest/gfxtest.c diff --git a/src/modules/c/gfxtest/Makefile.all b/src/modules/c/gfxtest/Makefile.all new file mode 100644 index 0000000..ad34934 --- /dev/null +++ b/src/modules/c/gfxtest/Makefile.all @@ -0,0 +1,8 @@ +shopt -s extglob +source $LOST_BUILDMK_ROOT/config.sh + +echo "LD $1/apps/gfxtest" +$LOST_TOOLS_LD -ogfxtest -Ttext=0x40000000 *.o --start-group $2 --end-group + + +mv gfxtest $1/apps/ diff --git a/src/modules/c/gfxtest/gfxtest.c b/src/modules/c/gfxtest/gfxtest.c new file mode 100644 index 0000000..1db4e32 --- /dev/null +++ b/src/modules/c/gfxtest/gfxtest.c @@ -0,0 +1,382 @@ +/* + * Copyright (c) 2007 The LOST Project. All rights reserved. + * + * This code is derived from software contributed to the LOST Project + * by Mathias Gottschlag. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. All advertising materials mentioning features or use of this software + * must display the following acknowledgement: + * This product includes software developed by the LOST Project + * and its contributors. + * 4. Neither the name of the LOST Project nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; + * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include + +#include "types.h" +#include "syscall.h" +#include "stdlib.h" +#include "stdio.h" +#include "unistd.h" +#include "string.h" +#include "rpc.h" +#include "io.h" +#include "dir.h" +#include "lostio.h" +#include