Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: banny52@yahoo.com (Ginny E. Kim)
Subject: BUG of Tru64UNIX V5.1
Date: 22 Aug 2001 19:27:56 -0700	[thread overview]
Message-ID: <2f6bec0a.0108221827.62166dda@posting.google.com> (raw)

I got following message while comiling my module with defined
"_KERNEL".

cc: Error: /sys/include/machine/pcb.h, line 179: In the declaration of
"x", the array bound "((int)(&((struct stack_layout
...)(0))->pcb)&127)?-1:1" is not a positive integer. (notposint)
struct _pcb_align_check { char x[((int)stack_to_pcb(0) & 127) ? -1 :
1]; };
-------------------------------^

The header file , /sys/include/machine/pcb.h has following contents..

#define stack_to_pcb(stack) (&((struct stack_layout *)(stack))->pcb)
#define pcb_to_stack(pcb)
((vm_offset_t)(((long)(pcb))&~(KERNEL_STACK_SIZE-1)))
struct _pcb_size_check { char x[(sizeof(struct pcb) == 0x300) ? 1 :
-1]; };
struct _pcb_align_check { char x[((int)stack_to_pcb(0) & 127) ? -1 :
1]; };

Isn't it a OS bug that"((int)(&((struct stack_layout
...)(0))->pcb)&127)?-1:1" can't be positive interger?


             reply	other threads:[~2001-08-23  2:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-23  2:27 Ginny E. Kim [this message]
2001-08-23 15:50 ` BUG of Tru64UNIX V5.1 Joe Mario
2001-08-24  5:42   ` Ginny E. Kim
read-only archive

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