lkml.org 
[lkml]   [2013]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: SDIV / UDIV Question
On Wed, Oct 09, 2013 at 08:08:05AM +0100, Wang, Yalin wrote:
> I have a question about sdiv/ udiv instructions :
> In armv7 A/R TRM, it said sdiv/udiv will cause
> Divide by zero as undefined exception or just return zero
> (decided by implementation) .
>
> So in kernel , should we need register a undef hook to
> Get this undef exception and send SIGFPE to user space
> Process ?

As far as I can see, this can only happen for R-class cores,
based on SCTLR.DZ.

Will


\
 
 \ /
  Last update: 2013-10-09 13:21    [W:2.101 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site