mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
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:
committed by
Joel Sherrill
parent
750bde8c78
commit
a857a225d0
@@ -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 */
|
||||
|
||||
1884
cpukit/libdebugger/rtems-debugger-aarch64.c
Normal file
1884
cpukit/libdebugger/rtems-debugger-aarch64.c
Normal file
File diff suppressed because it is too large
Load Diff
@@ -10,6 +10,8 @@ includes: []
|
||||
install: []
|
||||
install-path: ${BSP_LIBDIR}
|
||||
links:
|
||||
- role: build-dependency
|
||||
uid: objdbgaarch64
|
||||
- role: build-dependency
|
||||
uid: objdbgarm
|
||||
- role: build-dependency
|
||||
|
||||
15
spec/build/cpukit/objdbgaarch64.yml
Normal file
15
spec/build/cpukit/objdbgaarch64.yml
Normal 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
|
||||
@@ -9,6 +9,7 @@ default: null
|
||||
default-by-variant: []
|
||||
description: ''
|
||||
enabled-by:
|
||||
- aarch64
|
||||
- arm
|
||||
- i386
|
||||
links: []
|
||||
|
||||
Reference in New Issue
Block a user