Re: [osol-code] -fast option for kernel code with memset(9F)

2009-02-07 Thread Sherry Moore
The Sun Studio's equivalent of GCC's -ffreestanding -mcmodel=kernel -mno-red-zone is -xmodel=kernel Sherry On Sat, Feb 07, 2009 at 06:11:30PM -0800, Garrett D'Amore wrote: > Andrew C. Henle wrote: > >> Joachim Worringen wrote: > >> > >>> Greeting, > >>> > >>> using Sun cc (cc: Sun C

Re: [osol-code] -fast option for kernel code with memset(9F)

2009-02-07 Thread Garrett D'Amore
Andrew C. Henle wrote: >> Joachim Worringen wrote: >> >>> Greeting, >>> >>> using Sun cc (cc: Sun C 5.9 SunOS_i386 Patch >>> >> 124868-01 2007/07/12), I >> >>> compile my kernel module with -fast. This results >>> >> in memset(9F) calls >> >>> appearing as _memset cal

Re: [osol-code] -fast option for kernel code with memset(9F)

2009-02-07 Thread Andrew C. Henle
> Joachim Worringen wrote: > > Greeting, > > > > using Sun cc (cc: Sun C 5.9 SunOS_i386 Patch > 124868-01 2007/07/12), I > > compile my kernel module with -fast. This results > in memset(9F) calls > > appearing as _memset calls in the object file, > which can not be resolved > > on a SXCE 106 k

Re: [osol-code] Possible stack pointers

2009-02-07 Thread Piotr Jasiukajtis
Sherry Moore wrote: > Hi Piotr, > > We walk the stack from the base (thr.t_stkbase) to the top thr.t_stk > one frame at a time (a frame is a frame pointer and a pc). > struct rwindow { > uintptr_t rw_fp; > uintptr_t rw_pc; > }; > > If we can't reach the top