comparison packages/hal/common/current/src/hal_stub.c @ 130:eb9fd8c04db3 ecos-sw-2000-10-23

Merge from eCos master repository on 2000-10-23-17:01:37-BST
author jlarmour
date Mon, 23 Oct 2000 17:10:57 +0000
parents 6bd9d475ed4b
children a9ac27ec7abc
comparison
equal deleted inserted replaced
129:605a0fc6f385 130:eb9fd8c04db3
767 } 767 }
768 768
769 //----------------------------------------------------------------------------- 769 //-----------------------------------------------------------------------------
770 // Memory accessor functions. 770 // Memory accessor functions.
771 771
772 volatile void *__mem_fault_handler = (void *)0; 772 // The __mem_fault_handler pointer is volatile since it is only
773 // set/cleared by the function below - which does not rely on any
774 // other functions, so the compiler may decide to not bother updating
775 // the pointer at all. If any of the memory accesses cause an
776 // exception, the pointer must be set to ensure the exception handler
777 // can make use of it.
778
779 void* volatile __mem_fault_handler = (void *)0;
773 780
774 /* These are the "arguments" to __do_read_mem and __do_write_mem, 781 /* These are the "arguments" to __do_read_mem and __do_write_mem,
775 which are passed as globals to avoid squeezing them thru 782 which are passed as globals to avoid squeezing them thru
776 __set_mem_fault_trap. */ 783 __set_mem_fault_trap. */
777 784