Bochs/bochs/gui
Benjamin David Lunt 8fda7423d3
Allow the boot usb option (#209)
This allows the `usb` option to be used in the `boot:` parameter. Of
course there is not support for booting from a USB, but this allows for
a (probably much) further down the road addition.

This will break the current bios when booting from a network. However,
the bios is already broken in this manner, especially when
`BX_ELTORITO_BOOT` is not defined. The current bios code assumes and
hard codes the BEV entry to 4. However, if the `BX_ELTORITO_BOOT` define
is missing, the BEV will be added to the third entry, not the fourth
entry.

For the BIOS to be updated correctly, things like the following will
need to be updated instead of hard coded to `[4]`.

54961f0326/bochs/bios/rombios.c (L2205)

The following will need to be not hard coded to 4.

54961f0326/bochs/bios/rombios.c (L2253-L2257)

The following will need "usb" added.

54961f0326/bochs/bios/rombios.c (L2102)

The following assumes the next entry will be the fourth entry, not
checking to see if `BX_ELTORITO_BOOT` was defined.

54961f0326/bochs/bios/rombios.c (L10851-L10857)

The following comment will need to be updated.

54961f0326/bochs/bios/rombios.c (L8365-L8371)

As well as a few other fixes and updates.

This PR simply allows the value of '4' (`BX_BOOT_USB`) to be placed in
the boot sequence options, moving the network (`BX_BOOT_NETWORK`) to the
next number.

The boot sequence option still only allows three parameters.
`boot: cdrom, floppy, disk`
or
`boot: cdrom, usb, disk`
I don't think it is necessary to add a fourth.

---------

Co-authored-by: Volker Ruppert <Volker.Ruppert@t-online.de>
2024-10-24 17:02:07 +02:00
..
bitmaps Fixed a warning. 2024-06-29 06:46:20 +02:00
font - moved vga font to gui/font 2011-07-10 14:00:58 +00:00
keymaps Some work on the USB keyboard / keypad emulation. 2020-12-15 11:29:36 +00:00
amigagui.h - removed x/y tile size parameters from specific_init() since the tile dimensions 2012-03-03 12:41:24 +00:00
amigaos.cc remove trailing whitespace from source files 2022-08-23 21:46:04 +03:00
carbon.cc Changed bx_bool to bool type in the gui component of Bochs. 2021-01-30 18:32:52 +00:00
enh_dbg.cc fix issue #363 (spurious physical memory read error message) 2024-10-18 18:17:59 +03:00
enh_dbg.h Fixed some issues related to the GTK version of the gui debugger. 2024-07-16 20:45:43 +02:00
gtk_enh_dbg_osdep.cc GTK debugger gui: fixed compilation error with GTK2. 2024-07-21 17:21:11 +02:00
gtk_usb_debug.cc Continued work on GTK USB debugger (tree now shown). 2024-10-13 10:08:35 +02:00
gui.cc Fixed some MSVC warnings. 2024-08-04 14:45:52 +02:00
gui.h USB debugger: Renamed configure option and config.h macro. 2024-07-06 18:48:14 +02:00
icon_bochs.h Adding Id and Rev property to all files 2011-02-24 22:05:47 +00:00
icon_bochs.xpm - fixed xpm-related warnings in 'x' and 'wx' 2011-02-10 23:00:56 +00:00
keymap.cc remove gui.h from bochs.h and include it only where required 2021-01-30 18:47:25 +00:00
keymap.h Changed bx_bool to bool type in the gui component of Bochs. 2021-01-30 18:32:52 +00:00
macintosh.cc Changed bx_bool to bool type in the gui component of Bochs. 2021-01-30 18:32:52 +00:00
Makefile.in Improved wxWidgets toolbar functionality. 2024-06-25 19:11:20 +02:00
nogui.cc Fixed nogui compilation. 2021-01-30 19:20:45 +00:00
paramtree.cc Allow setting disabled parameters in the bochsrc / command line stage. 2024-02-25 11:08:11 +01:00
paramtree.h Fixed some memory leaks in the paramtree code (discussion #144). 2023-11-25 13:28:51 +01:00
rfb.cc Implemented secondary VGA charmap support. 2023-12-29 17:47:44 +01:00
rfb.h Prepare the RFB sources for the implementation of a new gui based on the 2013-05-30 09:31:21 +00:00
rfbkeys.h Some work on the new 'vncsrv' gui 2013-05-31 16:46:15 +00:00
scrollwin.cc Converted the win32config module to a plugin (using PLUGTYPE_CORE for now). 2021-03-26 19:12:09 +00:00
scrollwin.h initial implementation of scrollable dialog items on WIN32 2013-03-18 19:08:26 +00:00
sdl2.cc Added stub for the GTK version of the USB debugger. 2024-07-07 18:05:24 +02:00
sdl.cc Fixed two legacy SDL key handling issues. 2024-06-02 19:28:08 +02:00
sdl.h Changing data type sdl fonts to "static const Bit8u" fixes conflict and 2017-01-01 19:37:26 +00:00
sdlkeys.h remove trailing whitespace from source files 2022-08-23 21:46:04 +03:00
siminterface.cc Allow the boot usb option (#209) 2024-10-24 17:02:07 +02:00
siminterface.h Preparing Bochs code for accepting USB boot option PR. 2024-10-24 16:48:43 +02:00
term.cc Changed bx_bool to bool type in the gui component of Bochs. 2021-01-30 18:32:52 +00:00
textconfig.cc Fixed some MSVC warnings. 2024-08-04 14:45:52 +02:00
usb_debug.cc Continued work on GTK USB debugger (First step to implement treeview). 2024-10-01 12:09:32 +02:00
usb_debug.h Continued work on GTK USB debugger (First step to implement treeview). 2024-10-01 12:09:32 +02:00
vncsrv.cc Fixed compilation of vncsrv gui in Cygwin. 2024-04-01 09:01:27 +02:00
wenhdbg_res.h Added capability to use the gui debugger output window as a log viewer 2014-01-13 21:31:14 +00:00
win32_enh_dbg_osdep.cc move debug.h from bochs.h and include it only where required 2021-01-31 15:22:58 +00:00
win32.cc win32 gui: fixed dimension_update() for 15 bpp modes. 2024-09-08 07:01:26 +02:00
win32config.cc Rewrite of the USB debugger code for wxWidgets support. 2024-06-17 23:03:29 +02:00
win32dialog.h Replaced deprecated function CreateStatusWindow() in win32.cc. 2024-06-30 19:02:38 +02:00
win32paramdlg.cc Converted the win32config module to a plugin (using PLUGTYPE_CORE for now). 2021-03-26 19:12:09 +00:00
win32paramdlg.h Added new symbol BX_USE_WIN32CONFIG in config.h and cleaned up related code 2014-06-20 09:31:56 +00:00
win32res.h Rewrite of the optional plugin control feature. 2021-01-21 18:10:40 +00:00
win32usb.cc Continued work on GTK USB debugger (First step to implement treeview). 2024-10-01 12:09:32 +02:00
win32usb.h Added register view dialog for the GTK USB debugger (UHCI only). 2024-08-04 10:02:30 +02:00
win32usbres.h Initial start of the USB Debugger (#165) 2024-03-10 13:05:41 +02:00
wx.cc USB debugger: Renamed configure option and config.h macro. 2024-07-06 18:48:14 +02:00
wxdialog.cc Added modeless message box support for the wxWidgets port. 2023-11-05 19:05:24 +01:00
wxdialog.h Added modeless message box support for the wxWidgets port. 2023-11-05 19:05:24 +01:00
wxmain.cc USB debugger: Renamed configure option and config.h macro. 2024-07-06 18:48:14 +02:00
wxmain.h Improved wxWidgets toolbar functionality. 2024-06-25 19:11:20 +02:00
x.cc Added stub for the GTK version of the USB debugger. 2024-07-07 18:05:24 +02:00