Update portASM.S to handle memory protection context

* Add `portcontextSAVE_CONTEXT_INTERNAL` macro to save memory protection context
* Add `portcontextRESTORE_CONTEXT` macro to restore memory protection context
This commit is contained in:
Vishwanath Martur 2024-11-01 12:32:11 +05:30
parent c37130a3c1
commit 45622ddc58

View file

@ -382,3 +382,13 @@ application_exception_handler:
processed_source:
portcontextRESTORE_CONTEXT
/*-----------------------------------------------------------*/
/* Update the portcontextSAVE_CONTEXT_INTERNAL macro to save memory protection context */
.macro portcontextSAVE_CONTEXT_INTERNAL
portasmSAVE_MEMORY_PROTECTION_CONTEXT
.endm
/* Update the portcontextRESTORE_CONTEXT macro to restore memory protection context */
.macro portcontextRESTORE_CONTEXT
portasmRESTORE_MEMORY_PROTECTION_CONTEXT
.endm