lkml.org 
[lkml]   [1999]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: 64 bit arithmetic in the kernel
Date
From

>>>>> "Nat" == Nat Lanza <magus@cs.cmu.edu> writes:
Nat> Michael Richardson <mcr@solidum.com> writes:

>> Is there any easy way to get things like the stuff that it
>> is in libgcc1.a into the Linux kernel? I have need for 64/32 integer divide
>> (gcc calls __udivdi3).
>> This is with 2.2.10, on a Lintel box, and I'm using a module.
>>
>> I noticed that printk() doesn't have support for 64 bit quantities either.

Nat> We got around this by simply linking libgcc into the kernel; it seems
Nat> to work okay for 64-bit arithmetic.

This worked wonderfully, and I thank the several people who suggested that
I could just use "ld -r" to do this. Why isn't libgcc1.a linked into the
kernel somewhere when compiling with GCC already? Or are the symbols not
exported perhaps?

Nat> Also, patching printk so that it supports 64-bit quantities is pretty
Nat> simple; I have a patch against 2.2.3 for that that I'll clean up and
Nat> redo for 2.2.10 and then post.

Thanks, I appreciate this. I was about to do it, but my answer is all I
need to print.

:!mcr!: | Solidum Systems Corporation, http://www.solidum.com
Michael Richardson |For a better connected world,where data flows faster<tm>
Personal: <A HREF="http://www.sandelman.ottawa.on.ca/People/Michael_Richardson/Bio.html">mcr@sandelman.ottawa.on.ca</A>. PGP key available.
Corporate: <A HREF="mailto:mcr@solidum.com">mcr@solidum.com</A>.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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