Update reserved function names starting with one underscore, replacing them as follows: '_k_' with 'z_' '_K_' with 'Z_' '_handler_' with 'z_handl_' '_Cstart' with 'z_cstart' '_Swap' with 'z_swap' This renaming is done on both global and those static function names in kernel/include and include/. Other static function names in kernel/ are renamed by removing the leading underscore. Other function names not starting with any prefix listed above are renamed starting with a 'z_' or 'Z_' prefix. Function names starting with two or three leading underscores are not automatcally renamed since these names will collide with the variants with two or three leading underscores. Various generator scripts have also been updated as well as perf, linker and usb files. These are drivers/serial/uart_handlers.c include/linker/kobject-text.ld kernel/include/syscall_handler.h scripts/gen_kobject_list.py scripts/gen_syscall_header.py Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
68 lines
1.5 KiB
C
68 lines
1.5 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 <zephyr/types.h>
|
|
#include <toolchain.h>
|
|
#include "vector_table.h"
|
|
|
|
struct vector_table {
|
|
u32_t reset;
|
|
u32_t memory_error;
|
|
u32_t instruction_error;
|
|
u32_t ev_machine_check;
|
|
u32_t ev_tlb_miss_i;
|
|
u32_t ev_tlb_miss_d;
|
|
u32_t ev_prot_v;
|
|
u32_t ev_privilege_v;
|
|
u32_t ev_swi;
|
|
u32_t ev_trap;
|
|
u32_t ev_extension;
|
|
u32_t ev_div_zero;
|
|
u32_t ev_dc_error;
|
|
u32_t ev_maligned;
|
|
u32_t unused_1;
|
|
u32_t unused_2;
|
|
};
|
|
|
|
struct vector_table _VectorTable Z_GENERIC_SECTION(.exc_vector_table) = {
|
|
(u32_t)__reset,
|
|
(u32_t)__memory_error,
|
|
(u32_t)__instruction_error,
|
|
(u32_t)__ev_machine_check,
|
|
(u32_t)__ev_tlb_miss_i,
|
|
(u32_t)__ev_tlb_miss_d,
|
|
(u32_t)__ev_prot_v,
|
|
(u32_t)__ev_privilege_v,
|
|
(u32_t)__ev_swi,
|
|
(u32_t)__ev_trap,
|
|
(u32_t)__ev_extension,
|
|
(u32_t)__ev_div_zero,
|
|
(u32_t)__ev_dc_error,
|
|
(u32_t)__ev_maligned,
|
|
0,
|
|
0
|
|
};
|
|
|