_init _fini

Gerald Needell jerry.needell at unh.edu
Wed Mar 13 18:40:06 UTC 2002


What is the purpose of the code in boot_card:
#ifdef USE_INIT_FINI
	atexit(_fini);
		_init();
#endif

For the ERC32 USE_INIT_FINI is defined. It looks to have something to do 
with c++ constrictors, but I built the system with --disable_cxx. Any 
attempt to trace code throght _init causes the system to crash. If trace 
into _init, the stack pointer gets set to the rdb_mon area and the 
return causes the system to halt. If I set break point just after the 
return from _init, all seems fine. What is this code doing?

- Jerry
-- 
_______________________________________________________________________
Jerry Needell                     | Internet: jerry.needell at unh.edu
Space Science Center/Morse Hall   | Voice: (603) 862 2732
University Of New Hampshire       | FAX:   (603) 862 0311
Durham, NH 03824                  |




More information about the users mailing list