mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-11 04:13:00 +00:00
Replace the existing Apache 2.0 boilerplate header with an SPDX tag throughout the zephyr code tree. This patch was generated via a script run over the master branch. Also updated doc/porting/application.rst that had a dependency on line numbers in a literal include. Manually updated subsys/logging/sys_log.c that had a malformed header in the original file. Also cleanup several cases that already had a SPDX tag and we either got a duplicate or missed updating. Jira: ZEP-1457 Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c Signed-off-by: David B. Kinder <david.b.kinder@intel.com> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
68 lines
1.6 KiB
C
68 lines
1.6 KiB
C
/*
|
|
* Copyright (c) 2014 Wind River Systems, Inc.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @file
|
|
* @brief Populated exception vector table
|
|
*
|
|
* Vector table with exceptions filled in. The reset vector is the system entry
|
|
* point, ie. the first instruction executed.
|
|
*
|
|
* The table is populated with all the system exception handlers. No exception
|
|
* should not be triggered until the kernel is ready to handle them.
|
|
*
|
|
* We are using a C file instead of an assembly file (like the ARM vector table)
|
|
* to work around an issue with the assembler where:
|
|
*
|
|
* .word <function>
|
|
*
|
|
* statements would end up with the two half-words of the functions' addresses
|
|
* swapped.
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
#include <toolchain.h>
|
|
#include "vector_table.h"
|
|
|
|
struct vector_table {
|
|
uint32_t reset;
|
|
uint32_t memory_error;
|
|
uint32_t instruction_error;
|
|
uint32_t ev_machine_check;
|
|
uint32_t ev_tlb_miss_i;
|
|
uint32_t ev_tlb_miss_d;
|
|
uint32_t ev_prot_v;
|
|
uint32_t ev_privilege_v;
|
|
uint32_t ev_swi;
|
|
uint32_t ev_trap;
|
|
uint32_t ev_extension;
|
|
uint32_t ev_div_zero;
|
|
uint32_t ev_dc_error;
|
|
uint32_t ev_maligned;
|
|
uint32_t unused_1;
|
|
uint32_t unused_2;
|
|
};
|
|
|
|
struct vector_table _VectorTable _GENERIC_SECTION(.exc_vector_table) = {
|
|
(uint32_t)__reset,
|
|
(uint32_t)__memory_error,
|
|
(uint32_t)__instruction_error,
|
|
(uint32_t)__ev_machine_check,
|
|
(uint32_t)__ev_tlb_miss_i,
|
|
(uint32_t)__ev_tlb_miss_d,
|
|
(uint32_t)__ev_prot_v,
|
|
(uint32_t)__ev_privilege_v,
|
|
(uint32_t)__ev_swi,
|
|
(uint32_t)__ev_trap,
|
|
(uint32_t)__ev_extension,
|
|
(uint32_t)__ev_div_zero,
|
|
(uint32_t)__ev_dc_error,
|
|
(uint32_t)__ev_maligned,
|
|
0,
|
|
0
|
|
};
|
|
|