Skip to content
Commit 5f6b5b97 authored by Paul Mackerras's avatar Paul Mackerras
Browse files

powerpc: Fix time setting bug on 32-bit



This fixes a bug where settimeofday would set the wrong parameters
in do_gtod, resulting in gettimeofday returning a value about 4
hours after the correct time.  The bug was that we divided a
negative 64-bit value with do_div, which treated it as unsigned
and gave us a result that was approximately 1.8e10 too large
(since the divisor was 1e9).

Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent eb66ce63
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment