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

* Re: Wrong NaTVal in unw_access_gr ?
  2012-06-12 17:07 Wrong NaTVal in unw_access_gr ? Petr Tesarik
@ 2012-06-12 18:33 ` David Mosberger-Tang
  0 siblings, 0 replies; 2+ messages in thread
From: David Mosberger-Tang @ 2012-06-12 18:33 UTC (permalink / raw)
  To: linux-ia64

UGV0ciwKClRoYXQgZG9lcyBsb29rIGxpa2UgYSB0eXBvIHRvIG1lLCB3aGljaCB3YXMgcHJvYmFi
bHkgbXkgYmFkLgoKbGlidW53aW5kIGxvb2tzIGZpbmU6IEdyZWdzLmM6YWNjZXNzX25hdCgpIGNv
bXBhcmVzIGFnYWluc3QKR2dsb2JhbC5jOm5hdF92YWxfYnl0ZXMsIHdoaWNoIGhhcyB0aGUgcHJv
cGVyIHZhbHVlcyAoMHgxLCAweGZmLAoweGZlKS4KCkdDQyB1c2VkIHRvIGhhdmUgdGhlIHNhbWUg
YnVnZ3kgYml0cyBpbiB1bndpbmQtaWE2NC5jIGJ1dCBJIGJlbGlldmUKdGhhdCB3YXMgcmVtb3Zl
ZCB3aGVuI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ciBUZXNhcmlrCj4gLS0KPiBUbyB1bnN1YnNjcmliZSBmcm9tIHRoaXMgbGlzdDogc2Vu
ZCB0aGUgbGluZSAidW5zdWJzY3JpYmUgbGludXgtaWE2NCIgaW4KPiB0aGUgYm9keSBvZiBhIG1l
c3NhZ2UgdG8gbWFqb3Jkb21vQHZnZXIua2VybmVsLm9yZwo+IE1vcmUgbWFqb3Jkb21vIGluZm8g
YXQgoGh0dHA6Ly92Z2VyLmtlcm5lbC5vcmcvbWFqb3Jkb21vLWluZm8uaHRtbAoKCgoKLS0KZUdh
dWdlIFN5c3RlbXMgTExDLCBodHRwOi8vZWdhdWdlLm5ldC8sIDEuODc3LUVHQVVHRTEsIGZheCA3
MjAuNTQ1Ljk3NjgK

^ 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