1 /* 2 * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 * Description: patch section header. 15 * 16 * Create: 2023-04-13 17 */ 18 #ifndef __PATCH_SECTION_H__ 19 #define __PATCH_SECTION_H__ 20 21 #define PATCH_T_I __attribute__((section(".patch.text.on.itcm"))) 22 #define PATCH_R_I __attribute__((section(".patch.rodata.on.itcm"))) 23 #define PATCH_D_I __attribute__((section(".patch.data.on.itcm"))) 24 #define PATCH_B_I __attribute__((section(".patch.bss.on.itcm"))) 25 26 #define PATCH_T_S __attribute__((section(".patch.text.on.sram"))) 27 #define PATCH_R_S __attribute__((section(".patch.rodata.on.sram"))) 28 #define PATCH_D_S __attribute__((section(".patch.data.on.sram"))) 29 #define PATCH_B_S __attribute__((section(".patch.bss.on.sram"))) 30 31 #define PATCH_T_F __attribute__((section(".patch.text.on.flash"))) 32 #define PATCH_R_F __attribute__((section(".patch.rodata.on.flash"))) 33 #define PATCH_D_F __attribute__((section(".patch.data.on.flash"))) 34 #define PATCH_B_F __attribute__((section(".patch.bss.on.flash"))) 35 36 #endif 37