bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #21097] Grub hangs during boot with 3c905C NIC


From: David Chabal
Subject: [bug #21097] Grub hangs during boot with 3c905C NIC
Date: Mon, 17 Sep 2007 09:03:56 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

URL:
  <http://savannah.gnu.org/bugs/?21097>

                 Summary: Grub hangs during boot with 3c905C NIC
                 Project: GNU GRUB
            Submitted by: dchabal
            Submitted on: lundi 17.09.2007 à 09:03
                Category: Booting
                Severity: Major
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 0.97
         Reproducibility: Every Time
         Planned Release: 

    _______________________________________________________

Details:

Problem encountered :
---------------------
Grub hangs during the boot after NIC detection (after the message « MAC
Address = » ). The box is frozen.


Configuration :
---------------

Grub 0.97 + grub-0.97-nic_update-2.patch

Box for cross-compiling :
FedoraCore 2.6.15-1.2054_FC5smp i686 GNU/LINUX with gcc 4.1.0 20060304 (Red
Hat  4.1.0-3).

Box booting with grub : HP Kayak P3 866 MHz with a NIC 3com 509C-TX-M (MBA
v4.30)

Bug analysis :
--------------
In the file 3c90x.c, the 3c90x_poll() function uses empty loops for waiting.
A compiler optimization probably fires them.

Patch :
---------
Force the declaration of the loop counter as volatile :
--- 3c90x.c.ori 2007-09-17 10:30:35.174371000 +0200
+++ 3c90x.c.ok  2007-09-17 10:48:23.054370000 +0200
@@ -601,7 +601,8 @@
 static int
 a3c90x_poll(struct nic *nic, int retrieve)
     {
-    int i, errcode;
+    volatile int i;
+    int errcode;

David





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?21097>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]