summaryrefslogtreecommitdiff
path: root/core/getc.inc
Commit message (Collapse)AuthorAgeFilesLines
* core: fix "sector size" confusionsyslinux-4.00-pre45H. Peter Anvin2010-05-141-3/+2
| | | | | | | | | | | Fix the case where the "sector size" used by the pm filesystem driver isn't the same thing as the SECTOR_SIZE/SECTOR_SHIFT macros used in the assembly code. This is a per-device property, and in the particular case of isolinux hybrid, they are not even currently the same (for all others, they are the same for now, but not necessarily in the future.) Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* Add 32-bit versions of open file/close fileH. Peter Anvin2010-03-061-2/+2
| | | | | | Add 32-bit API calls for open file and close file. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* fs: move to a chdir()-based mechanism for managing cwdsyslinux-4.00-pre19H. Peter Anvin2010-02-131-1/+1
| | | | | | | | | | | | Introduce a chdir() system and a way to obtain absolute pathnames. This should allow us to set the current base directory (filename prefix for PXE) without breaking access to the configuration file. As a side benefit, for the "normal" filesystems we no longer need magic hacks to figure out where we should set our current working directory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: VFS cleanups: add a persistent generic struct fileH. Peter Anvin2009-08-111-15/+2
| | | | | | | | | | | Major cleanups to the VFS layer: - add a persistent generic "struct file" - pass "struct file *" to getfssec - add a close_file method - use VFS-assigned indicies instead of pointers as file handles. This allows the file structures to be allocated from high memory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Core: move close_file function in getc.incLiu Aleaxander2009-06-061-0/+13
| | | | because (I think) all the close_file are the same.
* Core:EXTLINUX: convert the getfssec function to CLiu Aleaxander2009-06-061-1/+1
| | | | | | the main file read function (getfssec) has been converted to C. Fow now, abort 90% stuff have been converted to C. The next is to clean the code and convert the rest.
* Core: Convert the searchdir function to CLiu Aleaxander2009-06-051-1/+1
| | | | | | | | | for now, almost all the stuff related to EXT have been converted to C, and fow my (limit) test, it works well. The getfssec function haven't converted to C, because it also be called from asm file, and I find it's a bit hard to convert it to C. But however, it's my next plan.
* Convert the config load part to CLiu Aleaxander2009-06-031-1/+2
| | | | | | | | | For now, I added a temporary file load_config.c that would be merged into extlinux.c file later, which would make my later work be much easier. And in order to get rid of the conflict noisy message from the open function in ui.inc and the open function defined in the unistd.h, I changed the open in core to core_open. It may be ugly, but it works :)
* core: rename .text, .data and .bss to .text16, .data16, .bss16unify-pmH. Peter Anvin2009-05-131-3/+3
| | | | | | | | Rename the .text, .data and .bss sections to .text16, .data16 and .bss16, in anticipation of being linked with compiler-generated 32-bit code, which presumably would like to use the standard section names. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* core: obsolete .bss1 and .bss2H. Peter Anvin2009-05-131-1/+1
| | | | | | | | | Remove the obsolete .bss1 and .bss2 segments; they represent segment balancing which is no longer useful. The current balance between .earlybss, .bss and .uibss seems to be sufficient; if we need more balancing in the future then we need to start over anyway. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Update copyright notices; add Intel notices where appropriateH. Peter Anvin2009-04-041-1/+2
| | | | | | | Update copyright notices. Per agreement with my new employer, Intel Corporation, add Intel copyright notices where appropriate. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* getc: move parseint_esdi out of the getint control flowH. Peter Anvin2009-03-201-15/+14
| | | | | parseint_esdi was located in the middle of the getint -> parseint fall through, with expectedly disastrous results.
* Refactor command line parsing; support "quiet" optionsyslinux-3.74-pre7H. Peter Anvin2009-03-181-0/+14
| | | | | | | | Refactor the command line parser to be more of a general parser instead of treating each option as an ad hoc feature. Suppress the Loading... prompt if "quiet" is specified on the command line. Some messed-up people want it this way.
* getc: add "readc" function to do block readsH. Peter Anvin2008-07-141-0/+20
| | | | | Add "readc" function to do block reads. Currently it just does a loop around "call getc/stosb".
* Move files out of root into core, dos, and utilsH. Peter Anvin2008-05-291-0/+381
Move source files out of the root directory; the root is a mess and has become virtually unmaintainable. The Syslinux core now lives in core/; the Linux and generic utilities has moved into utils/, and copybs.com has moved into dos/; it had to go somewhere, and it seemed as good a place as any.