From: Paul Mackerras <paulus@samba.org>
To: Steve Boorman <steveb@baydel.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: Hangup booting Linux on PPC440GP
Date: Wed, 16 Jul 2003 08:41:52 +1000 (EST) [thread overview]
Message-ID: <16148.33584.75625.416464@nanango.paulus.ozlabs.org> (raw)
In-Reply-To: <3F13FA14.16183.5C9485B@localhost>
Steve Boorman writes:
> 2) I would not have thought my simple printf of some text
> would use floating point code.
Since printf can print floating point values, it (or one of its
subroutines) would be likely to have some floating point instructions
in it. Now, even if those instructions don't get executed with the
particular arguments you use, just the fact that they are present will
very likely cause gcc to put instructions to save some FP regs onto
the stack at the beginning of the function. It's those FP store
instructions which you would be hitting.
> 3) I expected the kernel to panic with some form of illegal
> instruction trap if floating point instructions were being
> attempted with no emulator code present.
There is a check in the kernel which only allows any given signal to
be delivered to the init process if it has established a handler for
that signal. That even applies to SIGILL (illegal instruction) and
SIGSEGV (segmentation violation). So, if init hits an illegal
instruction, it takes an exception, the kernel generates a SIGILL
which then gets dropped, and then we return to the init process at the
same instruction and the cycle repeats.
Yes we should do something more sensible.
Paul.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2003-07-15 22:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-15 11:56 Hangup booting Linux on PPC440GP Steve Boorman
2003-07-15 14:12 ` Matt Porter
2003-07-15 15:58 ` Chris Zimman
2003-07-15 22:41 ` Paul Mackerras [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-07-14 16:31 Steve Boorman
2003-07-14 17:38 ` Chris Zimman
2003-07-15 7:15 ` Juergen Beisert
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=16148.33584.75625.416464@nanango.paulus.ozlabs.org \
--to=paulus@samba.org \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=steveb@baydel.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;
as well as URLs for NNTP newsgroup(s).