summaryrefslogtreecommitdiff
path: root/com32/include/syslinux/pmapi.h
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* core: move idle handling into protected modeH. Peter Anvin2010-03-301-0/+3
| | | | | | | | 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>
* 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-041-0/+7
| | | | | | | | 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>
* 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-231-0/+45
Add a direct 32-bit API to some functions; initially read file only. Signed-off-by: H. Peter Anvin <hpa@zytor.com>