From 2ee4a3d40f8fd1f2c8aa09b63df772ac57395384 Mon Sep 17 00:00:00 2001 From: Zhang Lihong Date: Wed, 8 Aug 2012 19:06:41 +0800 Subject: [PATCH] Fix the bug again at http://www.loongson.org/dev/bugzilla/show_bug.cgi?id=313 Delete the original patch and open "init_win_device()" function in "tgt_machdep.c" Target:Bonito3aserver --- Targets/Bonito3aserver/Bonito/tgt_machdep.c | 2 +- pmon/cmds/cmd_main/cmd_main.c | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Targets/Bonito3aserver/Bonito/tgt_machdep.c b/Targets/Bonito3aserver/Bonito/tgt_machdep.c index b79e979f..57db2a12 100644 --- a/Targets/Bonito3aserver/Bonito/tgt_machdep.c +++ b/Targets/Bonito3aserver/Bonito/tgt_machdep.c @@ -789,7 +789,7 @@ void tgt_devconfig() video_set_color(0xf); -// init_win_device(); + init_win_device(); vga_available = 0; //lwg close printf output diff --git a/pmon/cmds/cmd_main/cmd_main.c b/pmon/cmds/cmd_main/cmd_main.c index b079ce88..7a658952 100644 --- a/pmon/cmds/cmd_main/cmd_main.c +++ b/pmon/cmds/cmd_main/cmd_main.c @@ -1176,11 +1176,7 @@ int paint_childwindow(char **hint,char *diskdev_name[],char *netdev_name[],int e } while(diskdev_name[i]) i++; -#ifdef LOONGSON_3ASERVER - dip_diskdev[0] = malloc(11); - strcpy(dip_diskdev[0],"SATA DISK0"); - selnum_tmp = w_window4(20, 9, 14, 1,dip_diskdev, 1); -#endif + selnum_tmp = w_window4(20, 9, 14, 1,dip_diskdev, i); selnum = (selnum_tmp & 0xff) - 1; selcont = selnum;