/[grub]/grub2/kern/powerpc/ieee1275/openfw.c
ViewVC logotype

Diff of /grub2/kern/powerpc/ieee1275/openfw.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by hollisb, Fri Apr 22 02:32:37 2005 UTC revision 1.10 by hollisb, Sun May 1 03:45:36 2005 UTC
# Line 196  grub_claimmap (grub_addr_t addr, grub_si Line 196  grub_claimmap (grub_addr_t addr, grub_si
196    if (grub_ieee1275_claim (addr, size, 0, 0))    if (grub_ieee1275_claim (addr, size, 0, 0))
197      return -1;      return -1;
198    
199    if ((! grub_ieee1275_realmode) && grub_map (addr, addr, size, 0x00))    if (! grub_ieee1275_test_flag (GRUB_IEEE1275_FLAG_REAL_MODE)
200          && grub_map (addr, addr, size, 0x00))
201      {      {
202        grub_printf ("map failed: address 0x%x, size 0x%x\n", addr, size);        grub_printf ("map failed: address 0x%x, size 0x%x\n", addr, size);
203        grub_ieee1275_release (addr, size);        grub_ieee1275_release (addr, size);
# Line 338  grub_ieee1275_encode_devname (const char Line 339  grub_ieee1275_encode_devname (const char
339    if (partition)    if (partition)
340      {      {
341        unsigned int partno = grub_strtoul (partition, 0, 0);        unsigned int partno = grub_strtoul (partition, 0, 0);
342        partno--; /* GRUB partition numbering is 0-based.  */  
343          /* GRUB partition numbering is 0-based.  */
344          if (! grub_ieee1275_test_flag (GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS))
345            partno--;
346    
347        /* Assume partno will require less than five bytes to encode.  */        /* Assume partno will require less than five bytes to encode.  */
348        encoding = grub_malloc (grub_strlen (device) + 3 + 5);        encoding = grub_malloc (grub_strlen (device) + 3 + 5);

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26