summaryrefslogtreecommitdiff
path: root/com32/include
Commit message (Collapse)AuthorAgeFilesLines
* Export the 64-bit partition offset and use it in chain.cH. Peter Anvin2010-06-271-0/+2
| | | | | | | | | | | | | When used with the "fs" option to chain.c32, we need to know our own filesystem offset. That means knowing if we used the MBR vs GPT partition information, as well as if we ended up using the passed-in information or not. Resolve this by providing an explicit pointer to the current partition offset. Eventually this should be replaced by some kind of statfs() call. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* PM getcwd(); Fix COM32 getcwdGene Cumm2010-06-261-0/+1
| | | | | | | | | Implement getcwd() in the core; Fix COM32 getcwd() to use the new function. This resolves the previous comment about COM32 getcwd() not working by not using INT 22h AX=001Fh. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Fix COM32 chdir()Gene Cumm2010-06-261-0/+2
| | | | | | | | Fix COM32 chdir() since it's implemented in the core. Forgot the core changes needed for this before. Signed-off-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* pmapi: make the pmapi vector include its own sizeH. Peter Anvin2010-06-261-0/+2
| | | | | | Future-proof the pmapi vector by making it include its own size. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* <syslinux/config.h> fix the order of struct syslinux_ipinfoH. Peter Anvin2010-06-211-2/+2
| | | | | | | Correct the order of the fields in struct syslinux_ipinfo to match reality. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* pxe: centralize all the IP information and export it to modulesH. Peter Anvin2010-06-181-0/+9
| | | | | | | | | It appears that there still are PXE stacks in the field which needs the crutch of being pointed to the default gateway. As such, put all the IP information into a single memory structure and allow modules to see it. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Unify instances of integer log2H. Peter Anvin2010-06-091-0/+48
| | | | | | Unify multiple open-coded instances of integer binary logarithm. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* com32: Unbreak <sys/cpu.h>H. Peter Anvin2010-05-111-32/+51
| | | | | | | CPUID functions were apparently broken when made PIC-safe; clean up and fix. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: move idle handling into protected modeH. Peter Anvin2010-03-303-1/+8
| | | | | | | | Do the actual idling in protected mode. This both allows PM code a more efficient interface, but also handles bugs in HVM implementations which don't handle HLT in real mode. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Merge branch 'master' into pathbasedH. Peter Anvin2010-03-291-3/+4
|\ | | | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: MCONFIG.embedded com32/MCONFIG com32/include/com32.h core/com32.inc core/pxelinux.asm doc/comboot.txt Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| * com32: export the filename of a com32 module to the module itselfH. Peter Anvin2010-03-291-3/+4
| | | | | | | | | | | | | | Export the filename of the com32 module to the module itself, setting argv[0]. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* | sys/dirent.h: conversion macros between d_type and st_modeH. Peter Anvin2010-03-081-1/+9
| | | | | | | | | | | | Conversion macros to change between d_type and st_mode values. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Changes missing from previous checkinH. Peter Anvin2010-03-071-0/+5
| | | | | | | | | | | | Add files missing from previous checkin... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | dirent.h: types for the d_type fieldH. Peter Anvin2010-03-061-2/+12
| | | | | | | | | | | | Add an enum for the DT_* constants for the d_type field. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Add 32-bit versions of open file/close fileH. Peter Anvin2010-03-061-0/+8
| | | | | | | | | | | | Add 32-bit API calls for open file and close file. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | readdir: replace opendir/readdir/closedir API with a 32-bit APIH. Peter Anvin2010-03-042-5/+9
| | | | | | | | | | | | | | | | The 16-bit API to opendir/readdir/closedir was confused, had a memory leak, and was incompatible with Syslinux 3.x anyway. Replace it with a pure 32-bit API. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | com32: replace hard-coded bounce buffer use in com32/libsyslinux-4.00-pre25H. Peter Anvin2010-02-241-1/+1
| | | | | | | | | | | | Replace hard-coded bounce buffer uses in com32/lib with lmalloc/lfree. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | com32: add lzalloc()H. Peter Anvin2010-02-241-0/+1
| | | | | | | | | | | | Add lzalloc(). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | com32: wrapper functions for lowmem allocationsH. Peter Anvin2010-02-241-0/+7
| | | | | | | | | | | | lmalloc(), lfree(), lstrdup() Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | core: use better malloc; add low memory malloc; fix com32 exitH. Peter Anvin2010-02-231-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Use a better malloc for the core. In particular, use the same core that we should eventually be able to use for the entire system in Syslinux 5 -- with module awareness, etc. This code can also accommodate multiple heaps. Set up a separate heap for lowmem; the intent is to use explicit lowmem allocations instead of the static bounce buffer. The lowmem allocation is also exported via the pmapi mechanism, so modules can safely allocate lowmem. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | core: add a direct 32-bit APIH. Peter Anvin2010-02-232-1/+49
| | | | | | | | | | | | Add a direct 32-bit API to some functions; initially read file only. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'master' into pathbasedsyslinux-4.00-pre20H. Peter Anvin2010-02-142-1/+2
|\ \ | |/ | | | | | | | | | | | | | | | | Resolved Conflicts: com32/Makefile com32/include/syslinux/pxe.h core/pxelinux.asm core/syslinux.ld Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * pxe: add missing prototype for pxe_dns()H. Peter Anvin2010-02-061-0/+1
| | | | | | | | | | | | All global functions should have a prototype... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * syslinux/pxe.h use the same type as <com32.h> for a far pointerH. Peter Anvin2010-02-061-4/+2
| | | | | | | | | | | | | | | | <syslinux/pxe.h> was using segoff16_t, <com32.h> was using far_ptr_t for the same thing -- use the same type so the macros are available for both. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * pxelinux: give our own IP address in the "derivate info" API callH. Peter Anvin2010-02-061-1/+1
| | | | | | | | | | | | Add our own IP address to the "get derivative-specific info" API call. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge commit 'origin/master' into fscH. Peter Anvin2009-12-221-1/+1
|\ \ | |/
| * com32: syslinux_report_video_mode returns voidH. Peter Anvin2009-12-221-1/+1
| | | | | | | | | | | | | | syslinux_report_video_mode() never gave a return value, to have it return void unless we need something else. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge commit 'syslinux-3.84'H. Peter Anvin2009-12-221-1/+1
|\ \ | |/ | | | | | | | | | | Resolved Conflicts: Makefile Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * video: implement long-promised video functions; use themH. Peter Anvin2009-12-181-1/+1
| | | | | | | | | | | | | | | | Implement long-since-promised video functions defined in <syslinux/video.h>. Use these functions in initvesa.c instead of open-coding the same functionality. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | Merge branch 'master' into fscH. Peter Anvin2009-12-224-2/+96
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: com32/Makefile com32/lib/sys/open.c com32/modules/Makefile dos/Makefile dos/com16.ld dos/syslinux.c version Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * vesacon: don't display the cursor when doing a quiet bootH. Peter Anvin2009-12-071-0/+3
| | | | | | | | | | | | | | | | | | Don't display the cursor on the graphical screen while doing a quiet boot. When doing a quiet boot we will probably show the graphical screen for a fair bit of time; as a result, we really don't want a completely bogus cursor blob on the bottom of the screen. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Merge branch 'softres'H. Peter Anvin2009-12-071-0/+1
| |\
| | * vesacon: make it possible to request nonstandard resolutionsH. Peter Anvin2009-12-071-0/+1
| | | | | | | | | | | | | | | | | | | | | Make it possible to request nonstandard resolutions when enabling vesacon. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | com32: Avoid gpxe detection code duplicationErwan Velu2009-12-041-0/+16
| | | | | | | | | | | | | | | | | | Impact: avoid code duplication This will make code more generic, hdt will need it ;)
| * | cpuid: Adding more flagsErwan Velu2009-12-041-2/+54
| | | | | | | | | | | | | | | | | | | | | Impact: sync with linux kernel cpu flags are now in sync with the linux kernel. Too many flags were missing.
| * | dprintf: fix uninitialized pointer; return voidH. Peter Anvin2009-11-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fix an uninitialized pointer bug; return void rather than returning int like normal printfs... if we're depending on the return value of a debugging function we're screwed when debugging is disabled. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | dprintf: a generic debug-to-serial infrastructureH. Peter Anvin2009-11-191-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | Actually provide real infrastructure for debug-to-serial. Very useful when debugging fullscreen applications, especially under an emulator like Qemu. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* | | Merge branch 'master' into fscH. Peter Anvin2009-11-062-0/+105
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/modules/Makefile core/pxelinux.asm core/serirq.inc Note: hardwired options will need to be re-implemented in PXELINUX. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | libansi: reset SGR parameters cache in cls()Pierre-Alexandre Meyer2009-11-021-12/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a bug in HDT when switching from the menu to the cli and back to the menu: the background wasn't redrawn. This was due to the fact that the cli bypasses the libansi library and calls printf() directly. Unfortunately, the SGR attributes were cached between menu initializations and the background wasn't properly redrawn. To fix it, invalidate the cache in the cls() routine. cls() does much more than just erasing the screen already (e.g. initialize G1) - we may want to rename the function at some point. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | Merge commit 'erwan/master' into hdt-0.3.5Pierre-Alexandre Meyer2009-10-271-0/+2
| |\ \
| | * | Adding VMX & SVM cpu flagsErwan Velu2009-09-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Impact: Hardware virtualization is now detected Minor update to detect vmx & svm cpu flags
| * | | libansi: add function to scroll up multiple linesPierre-Alexandre Meyer2009-09-051-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Impact: API change. scrollup() has been renamed scrollup_once(). Use scrollup(nb_of_lines) to specify the number of lines the window needs to scroll. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | | libansi: add reset_colors functionPierre-Alexandre Meyer2009-09-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Purpose of reset_colors is to reset the attribute to VGA 0x07. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | | libansi: fix compiler warningsPierre-Alexandre Meyer2009-09-011-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | Fix "warning: function declaration isn't a prototype" warnings. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | | libansi: add missing prototype in the headerPierre-Alexandre Meyer2009-09-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | clearwindow() was not presented in libansi.h. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
| * | | libansi: move to lib directory, as it is MIT, not GPL licensedPierre-Alexandre Meyer2009-09-011-0/+104
| |/ / | | | | | | | | | | | | | | | | | | gplinclude/gpllib should be used for external, GPL, libraries only. libansi has been developed for Syslinux and is MIT licensed. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
* | | Merge branch 'master' into fscH. Peter Anvin2009-08-313-1682/+1357
|\ \ \ | |/ /
| * | Merge branch 'master' of git://git.kernel.org/pub/scm/boot/syslinux/syslinux ↵erwan2009-08-192-1676/+1351
| |\ \ | | | | | | | | | | | | into origin/master
| | * | Revert "Run Nindent on com32/include/pngconf.h"H. Peter Anvin2009-08-131-60/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 6361b71f87466877f8fd1273240e8fa4460f8d05. <pngconf.h> is part of libpng, it should never have been Nindented. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | Revert "Run Nindent on com32/include/png.h"H. Peter Anvin2009-08-131-1616/+1290
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit ab7b6c3380cd9188edbc99693d5562dcca055317. <png.h> is part of libpng and hence externally maintained; it should not have been Nindented. Signed-off-by: H. Peter Anvin <hpa@zytor.com>