summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Allow MENU EXIT to specify a menu tagsyslinux-3.62-pre15H. Peter Anvin2008-02-223-6/+20
| | | | | Allow MENU EXIT to "exit" to an arbitrary menu. This is really just a variant of "MENU GOTO", but it allows displaying an exit marker.
* Fix the handling of hotkeys in MENU LABEL on submenussyslinux-3.62-pre14H. Peter Anvin2008-02-223-26/+59
| | | | | | | | | | | | Two bugs: - We didn't strip ^ symbols inheriting from MENU LABEL to MENU TITLE - We did consider_for_hotkey() with the wrong menu (the submenu itself, as opposed to the parent menu.) As part of these changes, make a function available to create an uninitialized, mutable refstring (that can be constructed and then used as a refstring, that is.)
* NEWS: Document Bruce Robson's Adaptec bug fixH. Peter Anvin2008-02-211-0/+2
|
* realloc(): try to protect a block in the path of a growing objectsyslinux-3.62-pre13H. Peter Anvin2008-02-211-4/+15
| | | | | | When we realloc() a block larger, try to protect the free block following it from being immediately allocated by something else by placing it at the end of the freelist instead of the beginning.
* realloc(): better implementation allowing in-place growthH. Peter Anvin2008-02-211-17/+55
| | | | | | Change the realloc() implementation to allow in-place growth. This is an important step in handling files without knowing their sizes a priori.
* "begin Ymodem download" is supposed to be an imperative...H. Peter Anvin2008-02-201-1/+1
|
* Fix MENU TITLE -> MENU LABEL inheritancesyslinux-3.62-pre12H. Peter Anvin2008-02-191-5/+5
| | | | | Correctly make it so MENU TITLE can be inherited upward as MENU TITLE unless one is provided.
* Make sure color directives get attached to the proper menu.H. Peter Anvin2008-02-194-4/+5
| | | | | Color directives would always end up attached to the root menu, no matter what menu declaration they where actually located in.
* simple menu: fix the handling of '+' and '-' given disabled entriesH. Peter Anvin2008-02-191-4/+8
| | | | | When encountering disabled entries, we want to keep going. Given that these particular keys have nonstandard scrolling, but the handling there.
* Fix the scrollbar handling for insanely huge menusH. Peter Anvin2008-02-191-3/+2
| | | | | The handling of the scrollbar for insanely huge menus was broken, causing it to disappear off the bottom of the menu window.
* simple menu: remember the cursor position on a per-menu basisH. Peter Anvin2008-02-193-6/+16
| | | | | For each menu, remember what the current position of the cursor and the scroll is.
* Add support for MENU EXIT; no marker for MENU GOTOH. Peter Anvin2008-02-194-4/+39
|
* When entering a new menu, go to the default entry for that menu.H. Peter Anvin2008-02-191-1/+2
|
* Document MENU STARTH. Peter Anvin2008-02-191-0/+8
|
* Whitespace cleanup...syslinux-3.62-pre11H. Peter Anvin2008-02-1929-72/+62
|
* com32: remove dependency files for "make tidy"H. Peter Anvin2008-02-193-6/+6
|
* Add dependency generation for com32 samples.H. Peter Anvin2008-02-191-2/+7
|
* Add dependency generation for com32 modules.H. Peter Anvin2008-02-191-2/+7
|
* Add dependency generation for the simple menu systemH. Peter Anvin2008-02-191-2/+7
|
* Set m->title for both root and submenusH. Peter Anvin2008-02-191-1/+1
|
* Allow MENU LABEL <-> MENU TITLE for submenus to work both waysH. Peter Anvin2008-02-193-8/+16
| | | | Allow either "MENU LABEL" or "MENU TITLE" to default for each other.
* Allow an included file to be treated as a submenu.H. Peter Anvin2008-02-192-6/+24
|
* Document hierarchial menus so far...H. Peter Anvin2008-02-192-2/+38
|
* simple menu: The use of realloc() requires indirect pointersH. Peter Anvin2008-02-193-29/+37
| | | | | | Since we store pointers to struct menu_entry, we can't put it in storage that is subject to realloc(). Accordingly, make menu_entries an indirect array instead.
* simple menu: first cut at working submenusH. Peter Anvin2008-02-193-83/+206
| | | | | With this edit, the submenu system seems to have minimal functionality.
* refstr: handle NULL in refstr[n]dup()H. Peter Anvin2008-02-191-0/+6
|
* Simple menu: use refstrings consistently; now works againH. Peter Anvin2008-02-193-113/+117
| | | | | Switch consistently to using refstrings; we now seem to have original functionality back.
* refstr_get(): handle NULL, force inlineH. Peter Anvin2008-02-191-3/+4
| | | | | Make refstr_get() handle NULL correctly; force it to be an inline since it seems to make no difference for code size.
* [v]rsprintf(): actually set the return pointer...H. Peter Anvin2008-02-191-0/+1
|
* submenu snapshot: it compiles now...H. Peter Anvin2008-02-199-339/+465
|
* Actually implement strnlen()H. Peter Anvin2008-02-192-0/+14
| | | | | Actually implement strnlen(), which was in the header files but not in the library.
* Actually implement syslinux_ipappend_strings()H. Peter Anvin2008-02-192-0/+59
| | | | | Actually implement the library function syslinux_ipappend_strings(), which had been in the header files but not in the actual library.
* Submenu support: development snapshotH. Peter Anvin2008-02-196-185/+345
| | | | Development snapshot before converting to refstrings
* memdump: fix typoH. Peter Anvin2008-02-181-1/+1
|
* VESA: work around bug in the Bochs VESA BIOSsyslinux-3.62-pre10H. Peter Anvin2008-02-162-5/+15
| | | | | | | The Bochs VESA BIOS returns a value other than 1 for the number of banks in unbanked modes. Ignore the number of banks if bank_size == 0 (the spec says that for unbanked modes, banks == 1 && bank_size == 0; for banked modes banks > 1 and bank_size != 0).
* rllback: improve compression by allowing two-byte run lengthsH. Peter Anvin2008-02-161-27/+37
| | | | | With the command line size being set to 2K, it's common to need longer runs. Allow runs up to 8K.
* ISOLINUX: Adaptec bug fix: handle the case of DL missing bit 7syslinux-3.62-pre9Bruce Robson2008-02-161-3/+11
| | | | | | Intel Classic R+ computer with Adaptec 1542CP BIOS 1.02 passes garbage in sp_drive, and the drive number originally passed in DL does not have 80h bit set. Check for this case and compensate if appropriate.
* Get rid of 4096-entry limit in the simple menu systemsyslinux-3.62-pre8H. Peter Anvin2008-02-163-10/+35
| | | | | | Use a dynamic array instead of a static array which we would simply crash on overflow. Always make it a power-of-two sized so we don't end up doing a realloc() and a full array copy on every extend.
* If we're showing a scrollbar, always show at least one unitH. Peter Anvin2008-02-161-1/+1
| | | | | In the simple menu system, if we're showing a scrollbar at all, always show at least one unit of it.
* Put virtual kernels (CLI labels) in high memorysyslinux-3.62-pre7H. Peter Anvin2008-02-1511-84/+97
| | | | | | | Support putting virtual kernels in high memory instead of using a dedicated segment for it. This both reduces the low memory footprint by 64K, and allows for functionally unlimited labels (tested with over a hundred thousand.)
* hello.c: print arguments, no input sectionH. Peter Anvin2008-02-151-9/+4
| | | | | Make "Hello, World!" a little bit more plain, but do print out its arguments, if any. Useful for testing.
* Don't close the A20 gate; leave it openH. Peter Anvin2008-02-153-1/+21
| | | | | | Don't close the A20 gate (restore to previous state); leave it open. This is good for performance, but also avoids a nasty race condition when leaving protected mode to then quickly re-enter protected mode.
* Slightly simpler to use interface to simple_pm_callH. Peter Anvin2008-02-151-10/+17
| | | | | Clean up the interface to simple_pm_call so we generally can avoid a bunch of push/call/pop/ret boilerplate.
* bcopy32: refactor the bcopy routine to be able to reuse the pm partH. Peter Anvin2008-02-151-46/+82
| | | | | | | | | Refactor the bcopy routine to be able to reuse the pm entry and exit portion to call other "simple" protected-mode routines ("simple" in the sense that no interrupt thunking support is present or expected.) Note: consider whether or not it would be preferrable to move the thunking support into low memory and have it be always present.
* VESA: suppress an unused arguments warningH. Peter Anvin2008-02-141-0/+1
| | | | Suppress a warning about unused arguments.
* VESA: align the row buffer to a multiple of 4 bytes.H. Peter Anvin2008-02-141-1/+1
| | | | We do dword accesses to the row buffer, so align it to 4 bytes.
* Add __aligned() and __alignas() macrosH. Peter Anvin2008-02-141-0/+4
| | | | | Add macros __aligned() (which takes a byte count), and __alignas() (which takes a type or expression whose type is used, same as sizeof).
* VESA: Minor cleanupssyslinux-3.62-pre6H. Peter Anvin2008-02-132-9/+12
| | | | Minor cleanups for clarity
* VESA: move debugging code to separate header fileH. Peter Anvin2008-02-132-25/+38
| | | | | Move the debugging function to a separate header file, so we can include it at will when convenient.
* Set the window size to 2 GB for linear framebufferH. Peter Anvin2008-02-131-1/+5
| | | | | | | | | Set the window size to 2 GB for linear framebuffer, lest the calculation: l = min(bytes, win_size-win_off); ... incorrectly returns zero when win_off == 0.