mirror of
git://projects.qi-hardware.com/iris.git
synced 2024-11-17 11:50:37 +02:00
98 lines
1.9 KiB
ArmAsm
98 lines
1.9 KiB
ArmAsm
// Iris: micro-kernel for a capability-based operating system.
|
|
// mips/nanonote/threadlist.S: List of initial threads.
|
|
// Copyright 2009 Bas Wijnen <wijnen@debian.org>
|
|
//
|
|
// 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, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// 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, see <http://www.gnu.org/licenses/>.
|
|
|
|
.globl init_start
|
|
.globl thread_start
|
|
.set noreorder
|
|
|
|
#if defined (UDCBOOT)
|
|
.balign 0x1000
|
|
thread0:
|
|
.incbin "fs/bootinit.elf"
|
|
|
|
.balign 0x1000
|
|
thread1:
|
|
.incbin "fs/udc.elf"
|
|
|
|
.balign 0x1000
|
|
thread2:
|
|
|
|
// Everything from here may be freed after kernel initialization.
|
|
init_start:
|
|
|
|
thread_start:
|
|
.word thread0
|
|
.word thread1
|
|
.word thread2
|
|
|
|
#elif defined (SDBOOT)
|
|
.balign 0x1000
|
|
thread0:
|
|
.incbin "fs/bootinit.elf"
|
|
|
|
.balign 0x1000
|
|
thread1:
|
|
.incbin "fs/sd+mmc.elf"
|
|
|
|
.balign 0x1000
|
|
thread2:
|
|
.incbin "fs/partition.elf"
|
|
|
|
.balign 0x1000
|
|
thread3:
|
|
.incbin "fs/fat.elf"
|
|
|
|
.balign 0x1000
|
|
thread4:
|
|
|
|
// Everything from here may be freed after kernel initialization.
|
|
init_start:
|
|
|
|
thread_start:
|
|
.word thread0
|
|
.word thread1
|
|
.word thread2
|
|
.word thread3
|
|
#elif defined (UNBRICK)
|
|
.balign 0x1000
|
|
thread0:
|
|
.incbin "fs/bootinit.elf"
|
|
|
|
.balign 0x1000
|
|
thread1:
|
|
.incbin "fs/nand.elf"
|
|
|
|
.balign 0x1000
|
|
thread2:
|
|
.incbin "fs/usb-mass-storage.elf"
|
|
|
|
.balign 0x1000
|
|
thread3:
|
|
|
|
// Everything from here may be freed after kernel initialization.
|
|
init_start:
|
|
|
|
thread_start:
|
|
.word thread0
|
|
.word thread1
|
|
.word thread2
|
|
.word thread3
|
|
|
|
#else
|
|
#error "boot method not defined"
|
|
#endif
|