2013-03-06 10:29:49 +01:00
|
|
|
/**
|
|
|
|
* Native CPU entry code
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013 Ludwig Ortmann
|
|
|
|
*
|
2013-06-18 17:21:38 +02:00
|
|
|
* This file subject to the terms and conditions of the GNU Lesser General
|
|
|
|
* Public License. See the file LICENSE in the top level directory for more
|
|
|
|
* details.
|
2013-03-06 10:29:49 +01:00
|
|
|
*
|
|
|
|
* @ingroup arch
|
|
|
|
* @{
|
|
|
|
* @file
|
|
|
|
* @author Ludwig Ortmann <ludwig.ortmann@fu-berlin.de>
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
2013-03-06 01:08:15 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <kernel_intern.h>
|
2013-03-07 13:53:14 +01:00
|
|
|
#include <cpu.h>
|
2013-03-06 01:08:15 +01:00
|
|
|
|
|
|
|
extern void board_init(void);
|
2013-03-07 13:53:14 +01:00
|
|
|
extern void native_cpu_init(void);
|
|
|
|
extern void native_interrupt_init(void);
|
2013-03-06 01:08:15 +01:00
|
|
|
|
|
|
|
__attribute__ ((constructor)) static void startup(void)
|
|
|
|
{
|
|
|
|
native_cpu_init();
|
|
|
|
native_interrupt_init();
|
|
|
|
|
|
|
|
board_init();
|
|
|
|
|
|
|
|
puts("RIOT native hardware initialization complete.\n");
|
|
|
|
kernel_init();
|
|
|
|
}
|