[En-Nut-Discussion] context_gcc:1.8 paddr
Moritz Struebe
morty at gmx.net
Wed May 21 14:41:18 CEST 2008
Hi there,
in context_gcc:1.8 the following code was added:
const u_short *paddr;
paddr = (const u_short *) fn; // *KU* fn doesn't contain the
entry address
// of the thread!
I can't find any further use of paddr. Therefore to me it seems to be
dead code, right?
I'd also sugest to do
#define LONG_PTR_P(lp, mem_p) \
__asm__ __volatile__("ldi %A0, lo8("#mem_p ")" "\n\t" \
"ldi %B0, hi8("#mem_p ")" "\n\t" \
"ldi %C0, hlo8("#mem_p ")" "\n\t" \
"ldi %D0, hhi8("#mem_p ")" "\n\t" \
:"=d" (lp))
This does not cost anything but makes you 32bit compatible.
Cheers
Morty
More information about the En-Nut-Discussion
mailing list