From fe0f23b47e73a3ded6f4bdf15c62fd3949eb0700 Mon Sep 17 00:00:00 2001 From: Al Cutter Date: Tue, 12 Mar 2024 09:42:47 +0000 Subject: [PATCH] Stop forensics from running for now (#210) --- trusted_os/debug.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/trusted_os/debug.go b/trusted_os/debug.go index 7ca329b..5489825 100644 --- a/trusted_os/debug.go +++ b/trusted_os/debug.go @@ -30,7 +30,7 @@ import ( usbarmory "github.com/usbarmory/tamago/board/usbarmory/mk2" "github.com/usbarmory/tamago/soc/nxp/usb" - "github.com/usbarmory/imx-usbserial" + usbserial "github.com/usbarmory/imx-usbserial" "github.com/usbarmory/GoTEE/monitor" ) @@ -177,13 +177,14 @@ func segfault(buf []byte, ctx *monitor.ExecCtx) (err error) { } func inspect(buf []byte, ctx *monitor.ExecCtx) (err error) { - // print caller - log.Printf("\t%s", fileLine(buf, ctx.R15)) // PC - log.Printf("\t%s", fileLine(buf, ctx.R14)) // LR + if false { + log.Printf("PC\t%s", fileLine(buf, ctx.R15)) // PC + log.Printf("LR\t%s", fileLine(buf, ctx.R14)) // LR - switch ctx.ExceptionVector { - case arm.UNDEFINED, arm.PREFETCH_ABORT, arm.DATA_ABORT: - return segfault(buf, ctx) + switch ctx.ExceptionVector { + case arm.UNDEFINED, arm.PREFETCH_ABORT, arm.DATA_ABORT: + return segfault(buf, ctx) + } } return