mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jes Sorensen <jes@sgi.com>
To: Carlos Munoz <carlos@kenati.com>
Cc: Lee Revell <rlrevell@joe-job.com>,
	Valdis.Kletnieks@vt.edu, linux-kernel@vger.kernel.org
Subject: Re: How can I link the kernel with libgcc ?
Date: 10 Mar 2006 05:18:41 -0500	[thread overview]
Message-ID: <yq0ek1a38n2.fsf@jaguar.mkp.net> (raw)
In-Reply-To: <4410F1BE.7000904@kenati.com>

>>>>> "Carlos" == Carlos Munoz <carlos@kenati.com> writes:

Carlos> I figured out how to get the driver to use floating point
Carlos> operations. I included source code (from an open source math
Carlos> library) for the log10 function in the driver. Then I added
Carlos> the following lines to the file arch/sh/kernel/sh_ksyms.c:

Bad bad bad!

You shouldn't be using floating point in the kernel at all! Most
architectures do not save the full floating point register set on
entry so if you start messing with the fp registers you may corrupt
user space applications.

You need to either write a customer user space app or use a table as
Arjan suggested.

Cheers,
Jes

  parent reply	other threads:[~2006-03-10 10:18 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-10  1:44 Carlos Munoz
2006-03-10  1:45 ` Valdis.Kletnieks
2006-03-10  2:06   ` Lee Revell
2006-03-10  3:01     ` Carlos Munoz
2006-03-10  3:22       ` Lee Revell
2006-03-10  3:25       ` Carlos Munoz
2006-03-10  3:25         ` Lee Revell
2006-03-10  3:47           ` Carlos Munoz
2006-03-10 10:37             ` Denis Vlasenko
2006-03-10 11:05               ` Bart Hartgers
2006-03-10 18:03               ` Carlos Munoz
2006-03-10 18:33                 ` linux-os (Dick Johnson)
2006-03-10 18:41                   ` Ben Slusky
2006-03-10 19:18                 ` Al Viro
2006-03-10 20:04                   ` Carlos Munoz
2006-03-10 10:18         ` Jes Sorensen [this message]
2006-03-10 18:07           ` Carlos Munoz
2006-03-10  8:01       ` Arjan van de Ven
2006-03-10  2:02 ` Lee Revell
     [not found] <5OEVB-3GX-15@gated-at.bofh.it>
2006-03-10  2:32 ` Robert Hancock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yq0ek1a38n2.fsf@jaguar.mkp.net \
    --to=jes@sgi.com \
    --cc=Valdis.Kletnieks@vt.edu \
    --cc=carlos@kenati.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rlrevell@joe-job.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®