Skip to content

Commit f60758d

Browse files
committed
Merge branch 'master' into stable
2 parents 3ccde21 + d6254a5 commit f60758d

7 files changed

Lines changed: 203 additions & 366 deletions

File tree

fpga_io.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,10 @@ static int make_env(const char *name, const char *cfg)
427427

428428
int fpga_load_rbf(const char *name, const char *cfg, const char *xml)
429429
{
430+
// Tear down the launcher frontend (and its HPS framebuffer mmaps) before any
431+
// FPGA reconfiguration. A live frontend scanning out /dev/fb0 over the f2sdram
432+
// bridge deadlocks the AXI bus when do_bridge(0) resets it during load.
433+
alt_launcher_shutdown();
430434
OsdDisable();
431435
static char path[1024];
432436
int ret = 0;

menu.cpp

Lines changed: 0 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
5151
#include "menu.h"
5252
#include "support/zaparoo/alt_launcher.h"
5353
#include "support/zaparoo/alt_launcher_menu.h"
54-
#include "support/zaparoo/launcher_pages.h"
5554
#include "support/zaparoo/menu_rbf.h"
5655
#include "user_io.h"
5756
#include "debug.h"
@@ -86,15 +85,6 @@ enum MENU
8685
MENU_MISC1,
8786
MENU_MISC2,
8887

89-
// Right-side companion to System Settings on the alt-launcher menu core.
90-
// Top "Zaparoo Frontend" page lists sub-pages (Video) and an exit row;
91-
// the Video sub-page hosts CRT mode + H/V centering offsets and binds
92-
// left/right arrows to value adjustment.
93-
MENU_ZAPAROO_LAUNCHER1,
94-
MENU_ZAPAROO_LAUNCHER2,
95-
MENU_ZAPAROO_VIDEO1,
96-
MENU_ZAPAROO_VIDEO2,
97-
9888
MENU_SELECT_INI1,
9989
MENU_SELECT_INI2,
10090

@@ -6913,100 +6903,10 @@ void HandleUI(void)
69136903
{
69146904
menustate = MENU_MISC1;
69156905
}
6916-
else if (right && alt_launcher_configured())
6917-
{
6918-
menustate = MENU_ZAPAROO_LAUNCHER1;
6919-
menusub = 0;
6920-
}
69216906

69226907
if (!hold_cnt && reboot_req) fpga_load_rbf(menu_rbf_name());
69236908
break;
69246909

6925-
/******************************************************************/
6926-
/* zaparoo frontend pages (right-side sibling of System) */
6927-
/******************************************************************/
6928-
case MENU_ZAPAROO_LAUNCHER1:
6929-
if (!alt_launcher_configured())
6930-
{
6931-
menustate = MENU_NONE1;
6932-
break;
6933-
}
6934-
helptext_idx = 0;
6935-
parentstate = menustate;
6936-
launcher_page_render(menusub, &menumask);
6937-
menustate = MENU_ZAPAROO_LAUNCHER2;
6938-
break;
6939-
6940-
case MENU_ZAPAROO_LAUNCHER2:
6941-
if (menu)
6942-
{
6943-
menustate = MENU_NONE1;
6944-
break;
6945-
}
6946-
if (left)
6947-
{
6948-
menustate = MENU_SYSTEM1;
6949-
menusub = 0;
6950-
break;
6951-
}
6952-
if (right && menusub == 0)
6953-
{
6954-
menustate = MENU_ZAPAROO_VIDEO1;
6955-
menusub = 0;
6956-
break;
6957-
}
6958-
if (select)
6959-
{
6960-
int act = launcher_page_handle_select(menusub);
6961-
if (act == 1)
6962-
{
6963-
menustate = MENU_ZAPAROO_VIDEO1;
6964-
menusub = 0;
6965-
}
6966-
else if (act == 0)
6967-
{
6968-
menustate = MENU_NONE1;
6969-
}
6970-
}
6971-
break;
6972-
6973-
case MENU_ZAPAROO_VIDEO1:
6974-
if (!alt_launcher_configured())
6975-
{
6976-
menustate = MENU_NONE1;
6977-
break;
6978-
}
6979-
helptext_idx = 0;
6980-
parentstate = menustate;
6981-
video_page_render(menusub, &menumask);
6982-
menustate = MENU_ZAPAROO_VIDEO2;
6983-
break;
6984-
6985-
case MENU_ZAPAROO_VIDEO2:
6986-
if (menu)
6987-
{
6988-
menustate = MENU_ZAPAROO_LAUNCHER1;
6989-
menusub = 0;
6990-
break;
6991-
}
6992-
if (left || right || plus || minus)
6993-
{
6994-
video_page_adjust(menusub, (right || plus) ? +1 : -1);
6995-
menustate = MENU_ZAPAROO_VIDEO1;
6996-
break;
6997-
}
6998-
if (select)
6999-
{
7000-
if (!video_page_handle_select(menusub))
7001-
{
7002-
menustate = MENU_ZAPAROO_LAUNCHER1;
7003-
menusub = 0;
7004-
break;
7005-
}
7006-
menustate = MENU_ZAPAROO_VIDEO1;
7007-
}
7008-
break;
7009-
70106910
case MENU_JOYSYSMAP:
70116911
strcpy(joy_bnames[SYS_BTN_A - DPAD_NAMES], "A");
70126912
strcpy(joy_bnames[SYS_BTN_B - DPAD_NAMES], "B");

0 commit comments

Comments
 (0)