Last change
on this file since 471 was 85, checked in by ecsg-okazaki, 10 years ago |
2014/09/26 ECS E.Okazaki Folder configuration change
|
File size:
491 bytes
|
Rev | Line | |
---|
[85] | 1 | /*
|
---|
| 2 | * start.c
|
---|
| 3 | *
|
---|
| 4 | * Created on: 2014/04/24
|
---|
| 5 | * Author: ECS
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | #include <kernel.h>
|
---|
| 9 | #include <kernel/kernel_impl.h>
|
---|
| 10 |
|
---|
| 11 | void (*volatile software_term_hook)(void) = 0;
|
---|
| 12 |
|
---|
| 13 | // Called on Reset, defined by vector table.
|
---|
| 14 | void _start(void)
|
---|
| 15 | {
|
---|
| 16 | __asm(" .global _c_int00\n"
|
---|
| 17 | " b.w _c_int00");
|
---|
| 18 | }
|
---|
| 19 |
|
---|
| 20 | // Called by _c_init00.
|
---|
| 21 | int main(void)
|
---|
| 22 | {
|
---|
| 23 | // CPU lock is required until the dispatch to task.
|
---|
| 24 | __asm(" cpsid f");
|
---|
| 25 |
|
---|
| 26 | // Starting kernel
|
---|
| 27 | sta_ker();
|
---|
| 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.