[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] SLB slb_init() question



Hi,

What's the cleanest way for an SLB to retrieve its own basepage in slb_init? I can't use the information supplied in slb_open(), because the *basepage passed to that function is the basepage of the client application, not the shared library.

Is it...

	slb_bp = __text_section_begin - sizeof(BASEPAGE);

... or....
	
	Checking the _sysbase variable, and checking ->p_run

Both feels really really ugly.

-- PeP