Linux IA64 platform development
 help / color / mirror / Atom feed
* Wrong NaTVal in unw_access_gr ?
@ 2012-06-12 17:07 Petr Tesarik
  2012-06-12 18:33 ` David Mosberger-Tang
  0 siblings, 1 reply; 2+ messages in thread
From: Petr Tesarik @ 2012-06-12 17:07 UTC (permalink / raw)
  To: linux-ia64

Hello,

I've been looking at the following code trying to understand what it does:

					/* simulate getf.sig/setf.sig */
					if (write) {
						if (*nat) {
							/* write NaTVal and be done with it */
							addr[0] = 0;
							addr[1] = 0x1fffe;
							return 0;
						}
						addr[1] = 0x1003e;
					} else {
						if (addr[0] = 0 && addr[1] = 0x1ffe) {
							/* return NaT and be done with it */
							*val = 0;
							*nat = 1;
							return 0;
						}
					}

In particular, I'm puzzled about the "0x1ffe" constant for the read case. 
Shouldn't that be 0x1fffe (with one more 'f'), i.e. the binary representation 
of NaTVal?

Petr Tesarik

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-12 18:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-12 17:07 Wrong NaTVal in unw_access_gr ? Petr Tesarik
2012-06-12 18:33 ` David Mosberger-Tang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox