1 /* 2 * Copyright 2004-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 7 #include "smp.h" 8 #include "video.h" 9 10 #include <boot/menu.h> 11 #include <boot/platform/generic/text_menu.h> 12 #include <safemode.h> 13 14 15 void 16 platform_add_menus(Menu *menu) 17 { 18 MenuItem *item; 19 20 switch (menu->Type()) { 21 case MAIN_MENU: 22 menu->AddItem(item = new MenuItem("Select fail-safe video mode", video_mode_menu())); 23 item->SetTarget(video_mode_hook); 24 break; 25 case SAFE_MODE_MENU: 26 smp_add_safemode_menus(menu); 27 28 menu->AddItem(item = new MenuItem("Don't call the BIOS")); 29 item->SetType(MENU_ITEM_MARKABLE); 30 31 menu->AddItem(item = new MenuItem("Disable APM")); 32 item->SetType(MENU_ITEM_MARKABLE); 33 item->SetData("disable_apm"); 34 item->SetHelpText("This overrides the APM setting in the kernel settings file"); 35 break; 36 default: 37 break; 38 } 39 } 40 41 42 void 43 platform_update_menu_item(Menu *menu, MenuItem *item) 44 { 45 platform_generic_update_text_menu_item(menu, item); 46 } 47 48 49 void 50 platform_run_menu(Menu *menu) 51 { 52 platform_generic_run_text_menu(menu); 53 } 54 55