Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-02-2008, 05:01 AM
Frank Goenninger
 
Posts: n/a
Default Linux: sc_iaoq -> HP-UX: ? struct sigcontext


Hi all:

I am trying to port an application to HP-UX 11.11 coming from Linux.

The source from Linux (just snipped the one line):

return &(((struct sigcontext *) &(context->uc_mcontext))->sc_gr[offset]);

On HP-UX 11.11 I find:

/usr/include/machine/sys/sigcontext.h

#ifndef _SIGCONTEXT_INCLUDE
#define _SIGCONTEXT_INCLUDE


struct sigcontext {
union {
struct siglocal sl;
struct siglocalx sx;
} sc_ctxt; /* context information */

#ifdef __LP64__
long sc_pad[7];
long sc_sigreturn_gp;
#endif

long sc_args[NUMARGREGS]; /* arguments to handler */

#if defined(_KERNEL) && defined(__LP64__)
struct frame_marker64 sc_sfm;
#else
struct frame_marker sc_sfm;
#endif
};

#endif /* _SIGCONTEXT_INCLUDE */

Hmmmm - obvious question:

What is the equivalent of sc_iaoq on HP-UX? (I also need "sc_gr" ...)

Thanks much in advance!!!

Best,
Frank

--

Frank Goenninger

frgo(at)mac(dot)com

"Don't ask me! I haven't been reading comp.lang.lisp long enough to
really know ..."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-02-2008, 05:01 AM
Dennis Handly
 
Posts: n/a
Default Re: Linux: sc_iaoq -> HP-UX: ? struct sigcontext

Frank Goenninger wrote:
> I am trying to port an application to HP-UX 11.11 coming from Linux.
> return &(((struct sigcontext *) &(context->uc_mcontext))->sc_gr[offset]);


You want a general register?

> What is the equivalent of sc_iaoq on HP-UX?


You have to say what it does? Is this the PC?
You may have to use something like:
pinfo.hw_regs.ss_wide.ss_32.ss_pcoq_head_lo;

> (I also need "sc_gr" ...)


There is no array, each has a separate name:
pinfo.hw_regs.ss_narrow.ss_gr19;

There are union members for narrow and for wide.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-05-2008, 05:47 AM
Frank \frgo\ a.k.a DG1SBG
 
Posts: n/a
Default Re: Linux: sc_iaoq -> HP-UX: ? struct sigcontext

Dennis Handly <dhandly@convex.hp.com> writes:

> Frank Goenninger wrote:
>> I am trying to port an application to HP-UX 11.11 coming from Linux.
>> return &(((struct sigcontext *)
>> &(context->uc_mcontext))->sc_gr[offset]);

>
> You want a general register ?
>
>> What is the equivalent of sc_iaoq on HP-UX?

>
> You have to say what it does? Is this the PC?
> You may have to use something like:
> pinfo.hw_regs.ss_wide.ss_32.ss_pcoq_head_lo;
>
>> (I also need "sc_gr" ...)

>
> There is no array, each has a separate name:
> pinfo.hw_regs.ss_narrow.ss_gr19;
>
> There are union members for narrow and for wide.


Partly solved. Thanks for the input.
I did use the GetSSReg macro to overcome direct structure search.

I do have another question, though.

See my other post, please...

Best,
Frank

--

Frank Goenninger

frgo(at)mac(dot)com

"Don't ask me! I haven't been reading comp.lang.lisp long enough to
really know ..."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:27 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62