Changeset 113
- Timestamp:
- Mar 26, 2010 12:55:18 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/filo/main/filo.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/filo/main/filo.c
r107 r113 46 46 void relocate(void); 47 47 48 void filo_reset_handler(void) 49 { 50 void __attribute__((weak)) platform_reboot(void); 51 52 if (platform_reboot) 53 platform_reboot(); 54 else 55 printf("Rebooting not supported.\n"); 56 57 } 58 59 48 60 static void init(void) 49 61 { 62 /* Gather system information, and implicitly sets up timers */ 63 lib_get_sysinfo(); 64 50 65 /* Set up the consoles. */ 51 66 console_init(); 52 53 /* Gather system information, and implicitly sets up timers */54 lib_get_sysinfo();55 67 56 68 printf("%s version %s\n", program_name, program_version); … … 69 81 #endif 70 82 #endif 71 72 83 #if defined(CONFIG_PC_KEYBOARD) || defined(CONFIG_USB_HID) 84 add_reset_handler(filo_reset_handler); 85 #endif 73 86 #ifdef CONFIG_SUPPORT_SOUND 74 87 sound_init(); … … 126 139 } 127 140 128 void reset_handler(void)129 {130 void __attribute__((weak)) platform_reboot(void);131 132 if (platform_reboot)133 platform_reboot();134 else135 printf("Rebooting not supported.\n");136 137 }138 139 141 #if CONFIG_USE_GRUB 140 142 /* The main routine */ … … 146 148 /* Initialize */ 147 149 init(); 148 #ifdef CONFIG_PC_KEYBOARD149 keyboard_add_reset_handler(reset_handler);150 #endif151 150 grub_menulst(); 152 151 grub_main();
Note: See TracChangeset
for help on using the changeset viewer.
