[lkml]   [1999]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Breakage in arch/i386/kernel/time.c
On Fri, 3 Dec 1999, Richard Gooch wrote:

> But do_gettimeofday() doesn't have any explicit asm code. Sure, it
> does locking, but those lock functions shouldn't affect the C code
> it's called from. If there's leakage from the lock functions, that
> should be fixed.

It's not from the lock functions, but from do_fast_gettimeoffset():

register unsigned long eax asm("ax");
register unsigned long edx asm("dx");

The locking functions use eax for passing args in/out when calling the
helper functions if the variable doesn't have a static address.
Unfortunately, gcc 2.7.2 isn't getting the optimization correct
(&time_lock is a constant). Remove the inline from do_fast_gettimeoffset
and it should compile.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:55    [W:0.056 / U:4.232 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site