mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-01 12:07:04 +00:00
Basic build framework for Nios2. Everything is stubbed out, we just want to have a build going so that we can start to parallelize implementation tasks. This patch is not intended to be functional, but should be able to produce a binary for all the nanokernel-based sanity checks. Change-Id: I12dd8ca4a2273f7662bee46175822c9bbd99202a Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
45 lines
1.1 KiB
C
45 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2016 Intel Corporation
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#include <nano_private.h>
|
|
|
|
void __reset_handler(void)
|
|
{
|
|
/* stub */
|
|
}
|
|
|
|
void __exception_handler(void)
|
|
{
|
|
/* stub */
|
|
}
|
|
|
|
|
|
struct vector_table {
|
|
uint32_t reset;
|
|
uint32_t exception;
|
|
};
|
|
|
|
/* FIXME not using CONFIG_RESET_VECTOR or CONFIG_EXCEPTION_VECTOR like we
|
|
* should
|
|
*/
|
|
struct vector_table _vector_table _GENERIC_SECTION(.exc_vector_table) = {
|
|
(uint32_t)__reset_handler,
|
|
(uint32_t)__exception_handler
|
|
};
|
|
|
|
extern struct vector_table __start _ALIAS_OF(_vector_table);
|
|
|