github.com/f-secure-foundry/tamago@v0.0.0-20220307101044-d73fcdd7f11b/arm/debug.go (about) 1 // ARM processor support 2 // https://github.com/f-secure-foundry/tamago 3 // 4 // Copyright (c) F-Secure Corporation 5 // https://foundry.f-secure.com 6 // 7 // Use of this source code is governed by the license 8 // that can be found in the LICENSE file. 9 10 package arm 11 12 // defined in debug.s 13 func read_dbgauthstatus() uint32 14 15 // DebugStatus returns the contents of the ARM DBGAUTHSTATUS register, useful 16 // to get the current state of the processor debug permissions 17 // (C11.11.1, ARM Architecture Reference Manual ARMv7-A and ARMv7-R edition). 18 func (cpu *CPU) DebugStatus() uint32 { 19 return read_dbgauthstatus() 20 }