lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 1 Nov 2011 22:44:51 +0530
From:	Santosh Kumar <santoshkumar.a@...il.com>
To:	Peter Bergner <bergner@...t.ibm.com>
Cc:	Benjamin Herrenschmidt <benh@...nel.crashing.org>,
	linuxppc-dev@...abs.org, Michael Neuling <mikey@...ling.org>,
	Ian Munsie <ianmunsi@....ibm.com>, linux-kernel@...r.kernel.org
Subject: Re: powerpc 476, Little-endian, pte fault

> The relevant options are -mcpu=476 (no FP unit) and -mcpu=476fp> (with FP unit).  Basically, -mcpu=476 is equivalent to> -mcpu=476fp -msoft-float.
Yes what you have mentioned is right.

I had a problem configuring the GCC for 476 in little endian mode,
therefore I am using 440 compiler. As this compiler doesn't accept
-mcpu=476 i am using -mcpu=440.

So is this PTE fault related to the compiler options?

Thanks,
Santosh Kumar .A

On 1 November 2011 19:14, Peter Bergner <bergner@...t.ibm.com> wrote:
> On Tue, 2011-11-01 at 08:32 +0530, Santosh Kumar wrote:
>> I am using the same compiler as 476 & 440 instruction is almost the same.
>
> Well the 476 implements ISA 2.05, which I think has added a fair amount
> over the 440.  Not to mention the 476 core that has been released has
> a FP unit.  I'll note that GCC has support for a 476 with and without
> a FP unit, even though AFAIK, we only ship one with a FP unit.
> The relevant options are -mcpu=476 (no FP unit) and -mcpu=476fp
> (with FP unit).  Basically, -mcpu=476 is equivalent to
> -mcpu=476fp -msoft-float.
>
>
>
>> @@ -53,7 +58,12 @@
>>         mullw   r10,r0,r4       # and get the remainder
>>         add     r8,r8,r0
>>         subf    r6,r10,r6
>> +#ifdef CONFIG_INVADER
>>  4:     stw     r7,0(r3)        # return the quotient in *r3
>>         stw     r8,4(r3)
>> +#else
>> +4:     stw     r7,0(r3)        # return the quotient in *r3
>> +       stw     r8,4(r3)
>> +#endif
>>         mr      r3,r6           # return the remainder in r3
>>         blr
>
> This looks like a typo, since you didn't actually swap the offsets
> on the stw's like you did in all of the other patch hunks.
>
>
> Peter
>
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ