|
From: Carl E. L. <ce...@us...> - 2015-09-16 20:22:02
|
On Wed, 2015-09-16 at 21:48 +0200, Matthias Schwarzott wrote:
> > + case Iop_I64StoD64: {
> > + int rc;
> > + /* IROps require a processor that supports ISA 2.06 or
> newer */
> > + rc = system(MIN_POWER_ISA " 2.06 ");
> > + rc /= 256;
>
> I have an additional finding: Is dividing here really correct?
Matthias:
Actually yes. The system call return value consists of the return
value, the signal that ended the process and if a core dump was saved.
rc[6:0] is the signal id
rc[7] indicates if a core dump was saved
rc[31:8] return value.
That is my understanding of the bit fields. I did check that an exit
value of 1 from the program resulted in rc being set to 256.
Carl Love
|