All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Workaround for grub_ofdisk_read()
@ 2007-10-10 15:15 Marcin Kurek
  2007-10-10 15:26 ` help to understand grub steps myfreneticvisions-grub
  2007-10-10 19:27 ` [PATCH] Workaround for grub_ofdisk_read() Robert Millan
  0 siblings, 2 replies; 10+ messages in thread
From: Marcin Kurek @ 2007-10-10 15:15 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 296 bytes --]

Hell[o]

When testing grub on Pegasos 1 machine I was hit by quite weird
problem when reading partition table. It seems my friends firmware
version do not set status to 0 after grub_ieee1275_read() even if the
read was fine.

Attached patch fixed the problem.

-- 
--- Marcin 'Morgoth' Kurek ---

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: grub2-ieee1275-fix-read.patch --]
[-- Type: text/x-patch; name="grub2-ieee1275-fix-read.patch", Size: 459 bytes --]

diff -urN grub2.org/disk/ieee1275/ofdisk.c grub2/disk/ieee1275/ofdisk.c
--- grub2.org/disk/ieee1275/ofdisk.c	2007-07-22 01:32:20.000000000 +0200
+++ grub2/disk/ieee1275/ofdisk.c	2007-10-07 22:55:48.000000000 +0200
@@ -124,7 +124,7 @@
 grub_ofdisk_read (grub_disk_t disk, grub_disk_addr_t sector,
 		  grub_size_t size, char *buf)
 {
-  grub_ssize_t status, actual;
+  grub_ssize_t status = 0, actual = 0;
   unsigned long long pos;
 
   grub_dprintf ("disk",

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-10-23  8:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-10 15:15 [PATCH] Workaround for grub_ofdisk_read() Marcin Kurek
2007-10-10 15:26 ` help to understand grub steps myfreneticvisions-grub
2007-10-10 15:43   ` Pádraig Brady
2007-10-11  7:25     ` myfreneticvisions-grub
2007-10-10 19:27 ` [PATCH] Workaround for grub_ofdisk_read() Robert Millan
2007-10-10 21:35   ` Marcin Kurek
2007-10-22 20:09     ` Robert Millan
2007-10-22 21:33       ` Marcin Kurek
2007-10-23  5:29         ` Robert Millan
2007-10-23  8:30           ` Marcin Kurek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.