cpukit/aarch64: Add libdebugger support

This adds support for libdebugger under AArch64 using software
breakpoints and the single-step execution mode present in all AArch64
CPUs.
This commit is contained in:
Kinsey Moore
2021-10-25 12:19:13 -05:00
committed by Joel Sherrill
parent 750bde8c78
commit a857a225d0
5 changed files with 1913 additions and 0 deletions

View File

@@ -371,6 +371,17 @@ aarch64_mmu_enable( void )
_AArch64_Write_sctlr_el1( sctlr );
}
BSP_START_TEXT_SECTION static inline void
aarch64_mmu_disable( void )
{
uint64_t sctlr;
/* Enable MMU and cache */
sctlr = _AArch64_Read_sctlr_el1();
sctlr &= ~(AARCH64_SCTLR_EL1_M);
_AArch64_Write_sctlr_el1( sctlr );
}
BSP_START_TEXT_SECTION static inline void aarch64_mmu_setup( void )
{
/* Set TCR */

File diff suppressed because it is too large Load Diff

View File

@@ -10,6 +10,8 @@ includes: []
install: []
install-path: ${BSP_LIBDIR}
links:
- role: build-dependency
uid: objdbgaarch64
- role: build-dependency
uid: objdbgarm
- role: build-dependency

View File

@@ -0,0 +1,15 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
build-type: objects
cflags: []
copyrights:
- Copyright (C) 2021 On-Line Applications Research (OAR)
cppflags: []
cxxflags: []
enabled-by:
- aarch64
includes: []
install: []
links: []
source:
- cpukit/libdebugger/rtems-debugger-aarch64.c
type: build

View File

@@ -9,6 +9,7 @@ default: null
default-by-variant: []
description: ''
enabled-by:
- aarch64
- arm
- i386
links: []