forked from Imagelibrary/rtems
bsps: Add Cortex-A53 LP64 basic BSP
This adds an AArch64 basic BSP based on Qemu's Cortex-A53 emulation with interrupt support using GICv3 and clock support using the ARM GPT.
This commit is contained in:
committed by
Joel Sherrill
parent
8387c52e47
commit
db68ea1b9b
17
spec/build/bsps/aarch64/a53/abi.yml
Normal file
17
spec/build/bsps/aarch64/a53/abi.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
actions:
|
||||
- get-string: null
|
||||
- split: null
|
||||
- env-append: null
|
||||
build-type: option
|
||||
copyrights:
|
||||
- Copyright (C) 2020 On-Line Applications Research (OAR)
|
||||
default:
|
||||
- -mcpu=cortex-a53
|
||||
default-by-variant: []
|
||||
enabled-by: true
|
||||
links: []
|
||||
name: ABI_FLAGS
|
||||
description: |
|
||||
ABI flags
|
||||
type: build
|
||||
19
spec/build/bsps/aarch64/a53/bspa53lp64qemu.yml
Normal file
19
spec/build/bsps/aarch64/a53/bspa53lp64qemu.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
arch: aarch64
|
||||
bsp: a53_lp64_qemu
|
||||
build-type: bsp
|
||||
cflags: []
|
||||
copyrights:
|
||||
- Copyright (C) 2020 On-Line Applications Research (OAR)
|
||||
cppflags: []
|
||||
enabled-by: true
|
||||
family: a53
|
||||
includes: []
|
||||
install: []
|
||||
links:
|
||||
- role: build-dependency
|
||||
uid: grp
|
||||
- role: build-dependency
|
||||
uid: linkcmds_lp64
|
||||
source: []
|
||||
type: build
|
||||
42
spec/build/bsps/aarch64/a53/grp.yml
Normal file
42
spec/build/bsps/aarch64/a53/grp.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
build-type: group
|
||||
copyrights:
|
||||
- Copyright (C) 2020 On-Line Applications Research (OAR)
|
||||
enabled-by: true
|
||||
includes: []
|
||||
install: []
|
||||
ldflags: []
|
||||
links:
|
||||
- role: build-dependency
|
||||
uid: ../grp
|
||||
- role: build-dependency
|
||||
uid: ../start
|
||||
- role: build-dependency
|
||||
uid: abi
|
||||
- role: build-dependency
|
||||
uid: obj
|
||||
- role: build-dependency
|
||||
uid: optloadoff
|
||||
- role: build-dependency
|
||||
uid: optnocachelen
|
||||
- role: build-dependency
|
||||
uid: optramlen
|
||||
- role: build-dependency
|
||||
uid: optramori
|
||||
- role: build-dependency
|
||||
uid: tsta53
|
||||
- role: build-dependency
|
||||
uid: ../../obj
|
||||
- role: build-dependency
|
||||
uid: ../../objirq
|
||||
- role: build-dependency
|
||||
uid: ../../optcachedata
|
||||
- role: build-dependency
|
||||
uid: ../../optcacheinst
|
||||
- role: build-dependency
|
||||
uid: ../../opto2
|
||||
- role: build-dependency
|
||||
uid: ../../bspopts
|
||||
type: build
|
||||
use-after: []
|
||||
use-before: []
|
||||
71
spec/build/bsps/aarch64/a53/linkcmds_lp64.yml
Normal file
71
spec/build/bsps/aarch64/a53/linkcmds_lp64.yml
Normal file
@@ -0,0 +1,71 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
build-type: config-file
|
||||
content: |
|
||||
/*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*
|
||||
* Copyright (C) 2020 On-Line Applications Research Corporation (OAR)
|
||||
* Written by Kinsey Moore <kinsey.moore@oarcorp.com>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
MEMORY {
|
||||
RAM : ORIGIN = ${BSP_A53_RAM_BASE} + ${BSP_A53_LOAD_OFFSET}, LENGTH = ${BSP_A53_RAM_LENGTH} - ${BSP_A53_LOAD_OFFSET} - ${BSP_A53_NOCACHE_LENGTH}
|
||||
NOCACHE : ORIGIN = ${BSP_A53_RAM_BASE} + ${BSP_A53_RAM_LENGTH} - ${BSP_A53_NOCACHE_LENGTH}, LENGTH = ${BSP_A53_NOCACHE_LENGTH}
|
||||
}
|
||||
|
||||
REGION_ALIAS ("REGION_START", RAM);
|
||||
REGION_ALIAS ("REGION_VECTOR", RAM);
|
||||
REGION_ALIAS ("REGION_TEXT", RAM);
|
||||
REGION_ALIAS ("REGION_TEXT_LOAD", RAM);
|
||||
REGION_ALIAS ("REGION_RODATA", RAM);
|
||||
REGION_ALIAS ("REGION_RODATA_LOAD", RAM);
|
||||
REGION_ALIAS ("REGION_DATA", RAM);
|
||||
REGION_ALIAS ("REGION_DATA_LOAD", RAM);
|
||||
REGION_ALIAS ("REGION_FAST_TEXT", RAM);
|
||||
REGION_ALIAS ("REGION_FAST_TEXT_LOAD", RAM);
|
||||
REGION_ALIAS ("REGION_FAST_DATA", RAM);
|
||||
REGION_ALIAS ("REGION_FAST_DATA_LOAD", RAM);
|
||||
REGION_ALIAS ("REGION_BSS", RAM);
|
||||
REGION_ALIAS ("REGION_WORK", RAM);
|
||||
REGION_ALIAS ("REGION_STACK", RAM);
|
||||
REGION_ALIAS ("REGION_NOCACHE", NOCACHE);
|
||||
REGION_ALIAS ("REGION_NOCACHE_LOAD", NOCACHE);
|
||||
|
||||
bsp_stack_exception_size = DEFINED (bsp_stack_exception_size) ? bsp_stack_exception_size : 1024;
|
||||
|
||||
bsp_section_rwbarrier_align = DEFINED (bsp_section_rwbarrier_align) ? bsp_section_rwbarrier_align : 1M;
|
||||
|
||||
bsp_vector_table_in_start_section = 1;
|
||||
|
||||
OUTPUT_FORMAT ("elf64-littleaarch64")
|
||||
OUTPUT_ARCH (aarch64)
|
||||
|
||||
INCLUDE linkcmds.base
|
||||
copyrights:
|
||||
- Copyright (C) 2020 On-Line Applications Research (OAR)
|
||||
enabled-by: true
|
||||
install-path: ${BSP_LIBDIR}
|
||||
links: []
|
||||
target: linkcmds
|
||||
type: build
|
||||
37
spec/build/bsps/aarch64/a53/obj.yml
Normal file
37
spec/build/bsps/aarch64/a53/obj.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
build-type: objects
|
||||
cflags: []
|
||||
copyrights:
|
||||
- Copyright (C) 2020 On-Line Applications Research (OAR)
|
||||
cppflags: []
|
||||
cxxflags: []
|
||||
enabled-by: true
|
||||
includes: []
|
||||
install:
|
||||
- destination: ${BSP_INCLUDEDIR}
|
||||
source:
|
||||
- bsps/aarch64/a53/include/bsp.h
|
||||
- bsps/aarch64/a53/include/tm27.h
|
||||
- destination: ${BSP_INCLUDEDIR}/bsp
|
||||
source:
|
||||
- bsps/aarch64/a53/include/bsp/irq.h
|
||||
links: []
|
||||
source:
|
||||
- bsps/aarch64/shared/cache/cache.c
|
||||
- bsps/aarch64/a53/console/console.c
|
||||
- bsps/aarch64/a53/start/bspstart.c
|
||||
- bsps/aarch64/a53/start/bspstarthooks.c
|
||||
- bsps/shared/dev/getentropy/getentropy-cpucounter.c
|
||||
- bsps/shared/dev/serial/console-termios-init.c
|
||||
- bsps/shared/dev/serial/console-termios.c
|
||||
- bsps/shared/start/bspfatal-default.c
|
||||
- bsps/shared/start/bspgetworkarea-default.c
|
||||
- bsps/shared/start/bspreset-arm-psci.c
|
||||
- bsps/shared/start/sbrk.c
|
||||
- bsps/shared/dev/irq/arm-gicv3.c
|
||||
- bsps/shared/irq/irq-default-handler.c
|
||||
- bsps/aarch64/shared/irq/irq-arm-gicv3-aarch64.c
|
||||
- bsps/shared/dev/btimer/btimer-cpucounter.c
|
||||
- bsps/shared/dev/clock/arm-generic-timer.c
|
||||
- bsps/aarch64/shared/clock/arm-generic-timer-aarch64.c
|
||||
type: build
|
||||
18
spec/build/bsps/aarch64/a53/optloadoff.yml
Normal file
18
spec/build/bsps/aarch64/a53/optloadoff.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
actions:
|
||||
- get-integer: null
|
||||
- assert-uint32: null
|
||||
- env-assign: null
|
||||
- format-and-define: null
|
||||
build-type: option
|
||||
copyrights:
|
||||
- Copyright (C) 2020 On-Line Applications Research (OAR)
|
||||
default: 32768
|
||||
default-by-variant: []
|
||||
enabled-by: true
|
||||
format: '{:#010x}'
|
||||
links: []
|
||||
name: BSP_A53_LOAD_OFFSET
|
||||
description: |
|
||||
offset of RAM region from memory area base
|
||||
type: build
|
||||
18
spec/build/bsps/aarch64/a53/optnocachelen.yml
Normal file
18
spec/build/bsps/aarch64/a53/optnocachelen.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
actions:
|
||||
- get-integer: null
|
||||
- assert-uint32: null
|
||||
- env-assign: null
|
||||
- format-and-define: null
|
||||
build-type: option
|
||||
copyrights:
|
||||
- Copyright (C) 2020 On-Line Applications Research (OAR)
|
||||
default: 1048576
|
||||
default-by-variant: []
|
||||
enabled-by: true
|
||||
format: '{:#010x}'
|
||||
links: []
|
||||
name: BSP_A53_NOCACHE_LENGTH
|
||||
description: |
|
||||
length of nocache RAM region
|
||||
type: build
|
||||
18
spec/build/bsps/aarch64/a53/optramlen.yml
Normal file
18
spec/build/bsps/aarch64/a53/optramlen.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
actions:
|
||||
- get-integer: null
|
||||
- assert-uint32: null
|
||||
- env-assign: null
|
||||
- format-and-define: null
|
||||
build-type: option
|
||||
copyrights:
|
||||
- Copyright (C) 2020 On-Line Applications Research (OAR)
|
||||
default: 8388608
|
||||
default-by-variant: []
|
||||
enabled-by: true
|
||||
format: '{:#010x}'
|
||||
links: []
|
||||
name: BSP_A53_RAM_LENGTH
|
||||
description: |
|
||||
length of memory area available to the BSP
|
||||
type: build
|
||||
18
spec/build/bsps/aarch64/a53/optramori.yml
Normal file
18
spec/build/bsps/aarch64/a53/optramori.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
actions:
|
||||
- get-integer: null
|
||||
- assert-uint32: null
|
||||
- env-assign: null
|
||||
- format-and-define: null
|
||||
build-type: option
|
||||
copyrights:
|
||||
- Copyright (C) 2020 On-Line Applications Research (OAR)
|
||||
default: 1073741824
|
||||
default-by-variant: []
|
||||
enabled-by: true
|
||||
format: '{:#010x}'
|
||||
links: []
|
||||
name: BSP_A53_RAM_BASE
|
||||
description: |
|
||||
base address of memory area available to the BSP
|
||||
type: build
|
||||
45
spec/build/bsps/aarch64/a53/tsta53.yml
Normal file
45
spec/build/bsps/aarch64/a53/tsta53.yml
Normal file
@@ -0,0 +1,45 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
actions:
|
||||
- set-test-state:
|
||||
# expected to fail, don't compile these
|
||||
minimum: exclude
|
||||
|
||||
# test broken under 64bit due to SIZE_MAX differences
|
||||
validation-0: exclude
|
||||
|
||||
# don't compile due to toolchain issues
|
||||
spconfig01: exclude
|
||||
spmisc01: exclude
|
||||
|
||||
# tests that are passing intermittently
|
||||
spcpucounter01: exclude
|
||||
rtmonuse: exclude
|
||||
sp37: exclude
|
||||
sp68: exclude
|
||||
sp04: exclude
|
||||
sp20: exclude
|
||||
sp69: exclude
|
||||
rtmonusxtimes01: exclude
|
||||
spedfsched02: exclude
|
||||
psxtimes01: exclude
|
||||
sprmsched01: exclude
|
||||
sptimecounter02: exclude
|
||||
sptimecounter04: exclude
|
||||
ttest02: exclude
|
||||
copyrights:
|
||||
- Copyright (C) 2020 On-Line Applications Research (OAR)
|
||||
default: null
|
||||
default-by-variant: []
|
||||
enabled-by: true
|
||||
links:
|
||||
- role: build-dependency
|
||||
uid: ../../tstnoiconv
|
||||
- role: build-dependency
|
||||
uid: ../../tstnojffs2
|
||||
- role: build-dependency
|
||||
uid: ../../tstnolibdl
|
||||
- role: build-dependency
|
||||
uid: ../../tstnorfs
|
||||
description: ''
|
||||
type: build
|
||||
build-type: option
|
||||
24
spec/build/bsps/aarch64/grp.yml
Normal file
24
spec/build/bsps/aarch64/grp.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
build-type: group
|
||||
copyrights:
|
||||
- Copyright (C) 2020 On-Line Applications Research (OAR)
|
||||
enabled-by: true
|
||||
includes: []
|
||||
install:
|
||||
- destination: ${BSP_INCLUDEDIR}/dev/clock
|
||||
source:
|
||||
- bsps/include/dev/clock/arm-generic-timer.h
|
||||
- destination: ${BSP_INCLUDEDIR}/dev/irq
|
||||
source:
|
||||
- bsps/include/dev/irq/arm-gic-irq.h
|
||||
- bsps/include/dev/irq/arm-gic-regs.h
|
||||
- bsps/include/dev/irq/arm-gic-tm27.h
|
||||
- bsps/include/dev/irq/arm-gic.h
|
||||
- destination: ${BSP_LIBDIR}
|
||||
source:
|
||||
- bsps/aarch64/shared/start/linkcmds.base
|
||||
ldflags: []
|
||||
links: []
|
||||
type: build
|
||||
use-after: []
|
||||
use-before: []
|
||||
14
spec/build/bsps/aarch64/start.yml
Normal file
14
spec/build/bsps/aarch64/start.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||
asflags: []
|
||||
build-type: start-file
|
||||
copyrights:
|
||||
- Copyright (C) 2020 On-Line Applications Research (OAR)
|
||||
cppflags: []
|
||||
enabled-by: true
|
||||
includes: []
|
||||
install-path: ${BSP_LIBDIR}
|
||||
links: []
|
||||
source:
|
||||
- bsps/aarch64/shared/start/start.S
|
||||
target: start.o
|
||||
type: build
|
||||
Reference in New Issue
Block a user