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

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

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

revision 1.16 by hollisb, Fri Apr 22 02:32:37 2005 UTC revision 1.17 by hollisb, Sun May 1 03:45:36 2005 UTC
# Line 29  Line 29 
29  #include <grub/setjmp.h>  #include <grub/setjmp.h>
30  #include <grub/env.h>  #include <grub/env.h>
31  #include <grub/misc.h>  #include <grub/misc.h>
 #include <grub/machine/init.h>  
32  #include <grub/machine/time.h>  #include <grub/machine/time.h>
33  #include <grub/machine/kernel.h>  #include <grub/machine/kernel.h>
34    #include <grub/machine/console.h>
35    #include <grub/machine/ofdisk.h>
36    
37  /* Apple OF 1.0.5 reserves 0x0 to 0x4000 for the exception handlers.  */  /* Apple OF 1.0.5 reserves 0x0 to 0x4000 for the exception handlers.  */
38  static const grub_addr_t grub_heap_start = 0x4000;  static const grub_addr_t grub_heap_start = 0x4000;
# Line 42  abort (void) Line 43  abort (void)
43  {  {
44    /* Trap to Open Firmware.  */    /* Trap to Open Firmware.  */
45    asm ("trap");    asm ("trap");
46      
47    for (;;);    for (;;);
48  }  }
49    
# Line 72  grub_set_prefix (void) Line 73  grub_set_prefix (void)
73    grub_ieee1275_finddevice ("/chosen", &chosen);    grub_ieee1275_finddevice ("/chosen", &chosen);
74    if (grub_ieee1275_get_property (chosen, "bootpath", &bootpath,    if (grub_ieee1275_get_property (chosen, "bootpath", &bootpath,
75                                    sizeof (bootpath), 0))                                    sizeof (bootpath), 0))
76      {      {
77        /* Should never happen.  */        /* Should never happen.  */
78        grub_printf ("/chosen/bootpath property missing!\n");        grub_printf ("/chosen/bootpath property missing!\n");
79        grub_env_set ("prefix", "");        grub_env_set ("prefix", "");
# Line 138  grub_machine_fini (void) Line 139  grub_machine_fini (void)
139  {  {
140    grub_ofdisk_fini ();    grub_ofdisk_fini ();
141    grub_console_fini ();    grub_console_fini ();
   
   grub_ieee1275_release (grub_heap_start, grub_heap_len);  
   /* XXX Release memory claimed for Old World firmware.  */  
142  }  }
143    
144  void  void

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

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