From 3de11c4b37bc62fd742587148e2836f061bf623c Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Tue, 16 Jun 2020 13:36:55 -0400 Subject: [PATCH] Fix #170, set exception context size Store the size of the stored data into the exception record on mcp750-vxworks platform. --- fsw/mcp750-vxworks/src/cfe_psp_exception.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fsw/mcp750-vxworks/src/cfe_psp_exception.c b/fsw/mcp750-vxworks/src/cfe_psp_exception.c index aaf94800..d9f94224 100644 --- a/fsw/mcp750-vxworks/src/cfe_psp_exception.c +++ b/fsw/mcp750-vxworks/src/cfe_psp_exception.c @@ -142,6 +142,12 @@ void CFE_PSP_ExceptionHook (TASK_ID task_id, int vector, void* vpEsf ) */ fppSave(&Buffer->context_info.fp); + /* + * Save total size of context info. + * (This PSP always fills the entire structure) + */ + Buffer->context_size = sizeof(Buffer->context_info); + CFE_PSP_Exception_WriteComplete(); }