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:28:03 +05:30
parent 8e434c1385
commit c37130a3c1

View file

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