-
Notifications
You must be signed in to change notification settings - Fork 0
/
empty_rsc_table.c
41 lines (36 loc) · 1.11 KB
/
empty_rsc_table.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Copyright (c) 2014, Mentor Graphics Corporation
* All rights reserved.
* Copyright (c) 2015 Xilinx, Inc. All rights reserved.
* Copyright 2020 NXP.
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* This file provides the default empty resource table data structure
* placed in the .resource_table section of the ELF file. This facilitates
* basic support of remoteproc firmware loading from the Linux kernel.
*
* The .resource_table section has to be present in the ELF file in order
* for the remoteproc ELF parser to accept the binary.
*
* See other multicore examples such as those utilizing rpmsg for a examples
* of non-empty resource table.
*
*/
#include <stdint.h>
/* Place resource table in special ELF section */
#if defined(__ARMCC_VERSION) || defined(__GNUC__)
__attribute__((section(".resource_table")))
#elif defined(__ICCARM__)
#pragma location = ".resource_table"
#else
#error Compiler not supported!
#endif
const uint32_t resource_table[] = {
/* Version */
1,
/* Number of table entries - resource table empty */
0,
/* reserved fields */
0, 0};