1
0
mirror of git://projects.qi-hardware.com/iris.git synced 2024-11-17 12:50:38 +02:00
iris/mips/nanonote/threadlist.S

98 lines
1.9 KiB
ArmAsm
Raw Normal View History

// 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
2010-10-10 11:46:12 +03:00
#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:
2010-06-07 00:03:25 +03:00
.incbin "fs/bootinit.elf"
.balign 0x1000
thread1:
2010-06-07 00:03:25 +03:00
.incbin "fs/sd+mmc.elf"
2009-10-04 20:47:20 +03:00
.balign 0x1000
thread2:
2010-06-07 00:03:25 +03:00
.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
2010-06-07 00:03:25 +03:00
.word thread3
2010-10-10 11:46:12 +03:00
#elif defined (UNBRICK)
.balign 0x1000
thread0:
.incbin "fs/bootinit.elf"
.balign 0x1000
thread1:
2011-01-15 03:10:46 +02:00
.incbin "fs/sd+mmc.elf"
2010-10-10 11:46:12 +03:00
.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