mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: DragonK <dragon_krome@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Linux 2.4.x Kernel Bug - Problem NOT found, but found workaround
Date: Fri, 27 Sep 2002 14:58:02 -0700 (PDT)	[thread overview]
Message-ID: <20020927215802.19246.qmail@web20309.mail.yahoo.com> (raw)

Hello again,

    I followed your suggestion and tried to find where
exactly did the kernel
hang, by using an infinite loop and blinking floppy
LED (sorry, the kbd leds
didn't work, except in DOS).
    I ended up in protected mode, in
[arch/i386/kernel/head.S] where I managed
to find a SOLUTION for the problem (HAVEN'T FOUND THE
PROBLEM (I THINK)).

Here is the modification I've made (sorry for not
sending a diff, I've lost the
original file :P )

This is from KERNEL 2.4.18

-------------(
arch/i386/kernel/head.S)------------------------------------
        orl %eax,%eax                   # do we have
processor info as well?
        je is486

#       movl $1,%eax            # Use the CPUID
instruction to get CPU type
#       cpuid                   # <- This CPUID thing
hangs the machine
                                # With it, there's a
lock, without it, a reboot :(
# I've noticed that this code is the same in 2.2.20
kernel, which works perfectly!!!
#       movb %al,%cl            # save reg for future
use
#       andb $0x0f,%ah          # mask processor
family
#       movb %ah,X86
#       andb $0xf0,%al          # mask model
#       shrb $4,%al
#       movb %al,X86_MODEL
#       andb $0x0f,%cl          # mask mask revision
#       movb %cl,X86_MASK
#       movl %edx,X86_CAPABILITY

        movb    $4, %al         #
        movb    %al, X86_MODEL  #
        movb    $5, %al         # Hardcoded the CPUID
results (except edx...)
        movb    %al, X86        # and... the kernel
works fine!
        movb    $2, %al         #
        movb    %al, X86_MASK   #
is486:
-----------------------------------------------------------------------------

Why is this happening?

Thanks for your support.

__________________________________________________
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
http://sbc.yahoo.com

             reply	other threads:[~2002-09-27 21:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-27 21:58 DragonK [this message]
2002-09-30 12:33 ` Denis Vlasenko

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=20020927215802.19246.qmail@web20309.mail.yahoo.com \
    --to=dragon_krome@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /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®