From 088bbdff6f34cd0bd3b0de5cedf9c5285605c119 Mon Sep 17 00:00:00 2001 From: marcan Date: Fri, 10 Apr 2009 18:15:10 +0200 Subject: [PATCH] Add more copyright headers, plz add yourself where relevant --- boot2.c | 2 +- boot2.h | 22 ++++++++++++++++++++++ crypto.h | 22 ++++++++++++++++++++++ elf.h | 21 +++++++++++++++++++++ exception.c | 22 ++++++++++++++++++++++ exception.h | 22 ++++++++++++++++++++++ exception_asm.S | 21 +++++++++++++++++++++ gecko.c | 22 ++++++++++++++++++++++ gecko.h | 22 ++++++++++++++++++++++ gpio.h | 21 +++++++++++++++++++++ hollywood.h | 23 +++++++++++++++++++++++ ipc.c | 23 +++++++++++++++++++++++ ipc.h | 23 +++++++++++++++++++++++ irq.c | 21 +++++++++++++++++++++ irq.h | 21 +++++++++++++++++++++ main.c | 1 + memory.c | 22 ++++++++++++++++++++++ memory.h | 21 +++++++++++++++++++++ memory_asm.S | 21 +++++++++++++++++++++ nand.c | 22 ++++++++++++++++++++++ nand.h | 21 +++++++++++++++++++++ panic.c | 21 +++++++++++++++++++++ panic.h | 21 +++++++++++++++++++++ powerpc.h | 21 +++++++++++++++++++++ powerpc_elf.c | 21 +++++++++++++++++++++ powerpc_elf.h | 21 +++++++++++++++++++++ sdhc.h | 27 +++++++++++++++++++++++++++ seeprom.h | 21 +++++++++++++++++++++ start.S | 21 +++++++++++++++++++++ start.h | 21 +++++++++++++++++++++ types.h | 22 +++++++++++++++++++++- utils.c | 21 +++++++++++++++++++++ utils.h | 21 +++++++++++++++++++++ utils_asm.S | 33 +++++++++++++++++++++++++++------ vsprintf.c | 2 +- 35 files changed, 701 insertions(+), 9 deletions(-) diff --git a/boot2.c b/boot2.c index 32b6a71..b53b298 100644 --- a/boot2.c +++ b/boot2.c @@ -3,7 +3,7 @@ boot2 chainloader -Copyright (C) 2008, 2009 marcan (TODO: change name?, add email?,...) +Copyright (C) 2008, 2009 Hector Martin "marcan" Copyright (C) 2008, 2009 Sven Peter This program is free software; you can redistribute it and/or modify diff --git a/boot2.h b/boot2.h index 586a185..8cc0a9d 100644 --- a/boot2.h +++ b/boot2.h @@ -1,3 +1,25 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + boot2 chainloader + +Copyright (C) 2008, 2009 Hector Martin "marcan" +Copyright (C) 2008, 2009 Sven Peter + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __BOOT2_H__ #define __BOOT2_H__ diff --git a/crypto.h b/crypto.h index 19e38a8..f710a19 100644 --- a/crypto.h +++ b/crypto.h @@ -1,3 +1,25 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + crypto support + +Copyright (C) 2008, 2009 Haxx Enterprises +Copyright (C) 2008, 2009 Sven Peter + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __CRYPTO_H__ #define __CRYPTO_H__ 1 diff --git a/elf.h b/elf.h index 877232c..116fe20 100644 --- a/elf.h +++ b/elf.h @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + ELF structures + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __ELF_H__ #define __ELF_H__ diff --git a/exception.c b/exception.c index e7c60f8..783c4fc 100644 --- a/exception.c +++ b/exception.c @@ -1,3 +1,25 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + exception handling + +Copyright (C) 2008, 2009 Hector Martin "marcan" +Copyright (C) 2008, 2009 Haxx Enterprises + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #include "irq.h" #include "hollywood.h" #include "gecko.h" diff --git a/exception.h b/exception.h index 0d7628d..ff19857 100644 --- a/exception.h +++ b/exception.h @@ -1,3 +1,25 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + exception handling + +Copyright (C) 2008, 2009 Hector Martin "marcan" +Copyright (C) 2008, 2009 Haxx Enterprises + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __EXCEPTION_H__ #define __EXCEPTION_H__ diff --git a/exception_asm.S b/exception_asm.S index fb3a046..2122d6d 100644 --- a/exception_asm.S +++ b/exception_asm.S @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + exception handling + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ .globl v_undf .globl v_swi .globl v_instr_abrt diff --git a/gecko.c b/gecko.c index be68c56..e23349a 100644 --- a/gecko.c +++ b/gecko.c @@ -1,3 +1,25 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + boot2 chainloader + +Copyright (C) 2008, 2009 Hector Martin "marcan" +Copyright (C) 2008, 2009 Sven Peter + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #include "types.h" #include "irq.h" #include "start.h" diff --git a/gecko.h b/gecko.h index 9544d05..76bac98 100644 --- a/gecko.h +++ b/gecko.h @@ -1,3 +1,25 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + boot2 chainloader + +Copyright (C) 2008, 2009 Hector Martin "marcan" +Copyright (C) 2008, 2009 Sven Peter + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __GECKO_H__ #define __GECKO_H__ diff --git a/gpio.h b/gpio.h index 3e10d44..41b18b3 100644 --- a/gpio.h +++ b/gpio.h @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + GPIO pin-out constants + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __GPIO_H__ #define __GPIO_H__ diff --git a/hollywood.h b/hollywood.h index b555cd6..1be2ba9 100644 --- a/hollywood.h +++ b/hollywood.h @@ -1,3 +1,26 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + Hollywood register definitions + +Copyright (C) 2008, 2009 Haxx Enterprises +Copyright (C) 2008, 2009 Sven Peter +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __HOLLYWOOD_H__ #define __HOLLYWOOD_H__ diff --git a/ipc.c b/ipc.c index 8ecc4ef..146c535 100644 --- a/ipc.c +++ b/ipc.c @@ -1,3 +1,26 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + inter-processor communications + +Copyright (C) 2008, 2009 Hector Martin "marcan" +Copyright (C) 2008, 2009 Haxx Enterprises +Copyright (C) 2008, 2009 Sven Peter + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #include #include "types.h" #include "irq.h" diff --git a/ipc.h b/ipc.h index 97cb38f..fd84717 100644 --- a/ipc.h +++ b/ipc.h @@ -1,3 +1,26 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + inter-processor communications + +Copyright (C) 2008, 2009 Hector Martin "marcan" +Copyright (C) 2008, 2009 Haxx Enterprises +Copyright (C) 2008, 2009 Sven Peter + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __IPC_H__ #define __IPC_H__ diff --git a/irq.c b/irq.c index de87e61..bf7156c 100644 --- a/irq.c +++ b/irq.c @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + IRQ support + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #include "irq.h" #include "hollywood.h" #include "gecko.h" diff --git a/irq.h b/irq.h index c144264..33ec460 100644 --- a/irq.h +++ b/irq.h @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + IRQ support + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __IRQ_H__ #define __IRQ_H__ diff --git a/main.c b/main.c index c474ab1..f538c94 100644 --- a/main.c +++ b/main.c @@ -3,6 +3,7 @@ Copyright (C) 2008, 2009 Haxx Enterprises Copyright (C) 2008, 2009 Sven Peter +Copyright (C) 2008, 2009 Hector Martin "marcan" TODO add yourself here, kthx This program is free software; you can redistribute it and/or modify diff --git a/memory.c b/memory.c index 9bff321..f729350 100644 --- a/memory.c +++ b/memory.c @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + memory management, MMU, caches, and flushing + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #include "types.h" #include "start.h" #include "memory.h" @@ -62,6 +83,7 @@ u32 _mc_read32(u32 addr) return data; } +// this is ripped from IOS, because no one can figure out just WTF this thing is doing void _ahb_flush_to(enum AHBDEV dev) { u32 mask = 10; switch(dev) { diff --git a/memory.h b/memory.h index 4446e09..ae0a19c 100644 --- a/memory.h +++ b/memory.h @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + memory management, MMU, caches, and flushing + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __MEMORY_H__ #define __MEMORY_H__ diff --git a/memory_asm.S b/memory_asm.S index f0b79e7..facf897 100644 --- a/memory_asm.S +++ b/memory_asm.S @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + memory management, MMU, caches, and flushing + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ .arm .globl _dc_inval_entries diff --git a/nand.c b/nand.c index 268fcd2..a405d7a 100644 --- a/nand.c +++ b/nand.c @@ -1,3 +1,25 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + NAND support + +Copyright (C) 2008, 2009 Sven Peter +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #include "hollywood.h" #include "nand.h" #include "utils.h" diff --git a/nand.h b/nand.h index 6f009a8..58fee12 100644 --- a/nand.h +++ b/nand.h @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + memory management, MMU, caches, and flushing + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __NAND_H__ #define __NAND_H__ diff --git a/panic.c b/panic.c index 26e6918..62d7f7b 100644 --- a/panic.c +++ b/panic.c @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + panic flash codes + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #include "types.h" #include "utils.h" #include "start.h" diff --git a/panic.h b/panic.h index 497009d..a11ab3b 100644 --- a/panic.h +++ b/panic.h @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + panic flash codes + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __PANIC_H__ #define __PANIC_H__ diff --git a/powerpc.h b/powerpc.h index 2683a74..306f209 100644 --- a/powerpc.h +++ b/powerpc.h @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + PowerPC support code + +Copyright (C) 2008, 2009 Sven Peter + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __POWERPC_H__ #define __POWERPC_H__ 1 diff --git a/powerpc_elf.c b/powerpc_elf.c index 82b22a1..b83f9a6 100644 --- a/powerpc_elf.c +++ b/powerpc_elf.c @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + PowerPC ELF file loading + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #include "types.h" #include "powerpc.h" #include "hollywood.h" diff --git a/powerpc_elf.h b/powerpc_elf.h index 8af6925..e163e0d 100644 --- a/powerpc_elf.h +++ b/powerpc_elf.h @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + PowerPC ELF file loading + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __POWERPC_ELF_H__ #define __POWERPC_ELF_H__ 1 diff --git a/sdhc.h b/sdhc.h index 3cc7c59..03d2311 100644 --- a/sdhc.h +++ b/sdhc.h @@ -1,3 +1,30 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + sd host controller driver + +Copyright (C) 2008, 2009 Sven Peter + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ + +/* parts based on: + * * "SD Host Controller driver based on the SD Host Controller Standard" copyright (c) 2006 Uwe Stuehler + * * Simplified SD Host Controller Standard + */ + #ifndef __SDHC_H__ #define __SDHC_H__ diff --git a/seeprom.h b/seeprom.h index b8f63a5..bb72921 100644 --- a/seeprom.h +++ b/seeprom.h @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + SEEPROM support + +Copyright (C) 2008, 2009 Sven Peter + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __SEEPROM_H__ #define __SEEPROM_H__ 1 diff --git a/start.S b/start.S index 91a47ad..de1b026 100644 --- a/start.S +++ b/start.S @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + system startup + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ .arm .extern _main diff --git a/start.h b/start.h index 9d37304..a8cf956 100644 --- a/start.h +++ b/start.h @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + system startup + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __START_H__ #define __START_H__ diff --git a/types.h b/types.h index b971571..0456270 100644 --- a/types.h +++ b/types.h @@ -1,4 +1,24 @@ -#ifndef __TYPES_H__ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + types, memory areas, etc + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/#ifndef __TYPES_H__ #define __TYPES_H__ typedef unsigned char u8; diff --git a/utils.c b/utils.c index ad9b07c..26c81a0 100644 --- a/utils.c +++ b/utils.c @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + random utilities + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #include "types.h" #include "utils.h" #include "gecko.h" diff --git a/utils.h b/utils.h index ee439cd..cf517e2 100644 --- a/utils.h +++ b/utils.h @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + random utilities + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ #ifndef __UTILS_H__ #define __UTILS_H__ diff --git a/utils_asm.S b/utils_asm.S index e403100..fa0a39f 100644 --- a/utils_asm.S +++ b/utils_asm.S @@ -1,3 +1,24 @@ +/* + mini - a Free Software replacement for the Nintendo/BroadOn IOS. + + random utilities + +Copyright (C) 2008, 2009 Hector Martin "marcan" + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, version 2. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +*/ .arm .globl memcpy32 @@ -29,8 +50,8 @@ memset32: memcpy16: bics r2, #1 bxeq lr -1: ldr r3, [r1],#2 - str r3, [r0],#2 +1: ldrh r3, [r1],#2 + strh r3, [r0],#2 subs r2, #2 bne 1b bx lr @@ -38,7 +59,7 @@ memcpy16: memset16: bics r2, #1 bxeq lr -1: str r1, [r0],#2 +1: strh r1, [r0],#2 subs r2, #2 bne 1b bx lr @@ -46,8 +67,8 @@ memset16: memcpy8: cmp r2, #0 bxeq lr -1: ldr r3, [r1],#1 - str r3, [r0],#1 +1: ldrb r3, [r1],#1 + strb r3, [r0],#1 subs r2, #1 bne 1b bx lr @@ -55,7 +76,7 @@ memcpy8: memset8: cmp r2, #0 bxeq lr -1: str r1, [r0],#1 +1: strb r1, [r0],#1 subs r2, #1 bne 1b bx lr diff --git a/vsprintf.c b/vsprintf.c index 8d09a41..a90e032 100644 --- a/vsprintf.c +++ b/vsprintf.c @@ -21,7 +21,7 @@ /* * History * - * 2009-03-05 Hector Martin + * 2009-03-05 Hector Martin "marcan" * * Hacked up and removed a lot of stuff including floating-point support, * a bunch of ifs and defines, locales, and tests