aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* elflink: add a load_default_config()HEADelflinkFeng Tang2010-08-261-24/+51
| | | | | | | | | | which will search and parse the default config files for extlinux/isolinux, not including pxelinux yet. With that, we can remove each fs's load_config hook, just using global parsing code Signed-off-by: Feng Tang <feng.tang@intel.com>
* elflink: modify isolinux.asm to make it go to elf flowFeng Tang2010-08-261-2/+3
| | | | | | | | Just add a "pm_call load_env32" after calling fs_init(), now the isolinux installer can use elf code to parse config, enter menu, loading kernel too Signed-off-by: Feng Tang <feng.tang@intel.com>
* elflink: remove all __com32.cs_pm from com32/Feng Tang2010-08-269-57/+11
| | | | | We don't need these wrappers any more, as we can directly call those APIs from core lib
* version: This branch is now officially the 5.00 devel branchH. Peter Anvin2010-08-121-1/+1
| | | | | | Make it official this is the 5.00 development branch. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Merge branch 'elflink' into elflink-mergeH. Peter Anvin2010-08-120-0/+0
|\
| * core: add .stack16 to layout.incH. Peter Anvin2009-09-141-0/+1
| | | | | | | | | | | | | | It seems to get the right flags by default, but since .stack needed it we might as well put in .stack16 too... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * core: add .stack to layout.inc so it gets the proper flagsH. Peter Anvin2009-09-141-0/+3
| | | | | | | | | | | | | | Add the .stack segment to layout.inc even as just a dummy, so that we end up with the correct flags in the output. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * core: get rid of .rel.dyn properlyH. Peter Anvin2009-09-142-10/+2
| | | | | | | | | | | | | | | | | | | | Get rid of the .rel.dyn section properly. .rel.dyn isn't actually an input section name -- it is an output section name, so we need to specify the correct input sections, which all match *(.rel.*). Huge thanks to H.J. Lu for this tip. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * Merge branch 'fsc' into elflinkH. Peter Anvin2009-09-043-0/+82
| |\
| * \ Merge branch 'fsc' into elflinkH. Peter Anvin2009-09-031-5/+6
| |\ \
| * \ \ Merge branch 'fsc' into elflinkH. Peter Anvin2009-09-023-3/+17
| |\ \ \
| * \ \ \ Merge branch 'fsc' into elflinkH. Peter Anvin2009-09-021-0/+1
| |\ \ \ \
| * | | | | Use jiffies() to implement times(); create <core/*.h> namespaceH. Peter Anvin2009-09-025-57/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the core function jiffies() to implement times(), instead of poking at the BIOS variable. This creates a new need for a include file namespace for items exported from the core for the purpose of the library (not intended for direct use by applications). Use the <core/*.h> namespace for that. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | | | | Merge branch 'fsc' into elflinkH. Peter Anvin2009-09-0215-110/+181
| |\ \ \ \ \
| * | | | | | elflink: clean up formatting in com32/elflinkH. Peter Anvin2009-09-0221-298/+295
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up the formatting in com32/elflink, mostly by using Nindent. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | | | | | core: elflink: clean up formattingH. Peter Anvin2009-09-028-254/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clean up formatting of the core/elflink code, mostly using Nindent. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | | | | | Merge branch 'fsc' into elflinkH. Peter Anvin2009-09-02143-11069/+12829
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: MCONFIG.embedded com32/MCONFIG com32/lib/Makefile core/Makefile core/extern.inc core/extlinux.asm core/isolinux.asm core/syslinux.ld Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * \ \ \ \ \ \ Merge branch 'dynamic' into elflinkH. Peter Anvin2009-08-259-10/+122
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/lib/Makefile Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | | | | | | read: handle the case of partial data from unreadH. Peter Anvin2009-08-102-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Correctly handle the case of partial data from the unread buffer, and partial data via the device read mechanism. We need to advance the buffer pointer. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | | | | | | lib: add unread() syscall; use it to implement ungetc()H. Peter Anvin2009-08-099-7/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an unread() syscall, which allows some read bytes to be pushed back into the read buffer. This allows us to read a header from a file and then push it back. This also makes ungetc() implementable. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | | | | | | | Merge commit 'klausm/klausm' into elflinkH. Peter Anvin2009-08-2527-1909/+1110
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/elflink/Makefile Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | | | | | | | Functional .c32 loading with modules dependency fileprofkhaos2009-08-217-6/+94
| | | | | | | | | |
| | * | | | | | | | CLI with history and c32 smart loadingprofkhaos2009-08-2012-1650/+241
| | | | | | | | | |
| | * | | | | | | | Initial cli with historyprofkhaos2009-08-174-5/+82
| | | | | | | | | |
| | * | | | | | | | Merge commit 'for-klausm/klausm' into elflinkprofkhaos2009-08-1511-73/+167
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: core/elflink/cli.c
| | | * | | | | | | | cli: edit_cmdline() that actually worksH. Peter Anvin2009-08-131-14/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a number of issues with edit_cmdline when used in a scrolling-screen context. Here we are forced to keep track of coordinates within our chunk of the screen; unfortunately this is not generic w.r.t. window width on the serial console, but it should at least behave properly within the given width. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | | * | | | | | | | menu: fix Ctrl-W (word erase) when editing a command lineH. Peter Anvin2009-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Ctrl-W (word erase) key was broken: it would think the command line got longer, not shorter, resulting in havoc. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | | * | | | | | | | ansi: add support for no-wrap mode, cleanupsH. Peter Anvin2009-08-132-40/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for nowrap mode CSI ? 7 l (unfortunately, on ANSI.SYS it is CSI = 7 l; which means that the only way to support both is to print both sequences and then erase the resulting garbage.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | | * | | | | | | | stdio: uncomment putchar()H. Peter Anvin2009-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need putchar, for real... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | | | | | | | | Before merge with for-klausmprofkhaos2009-08-141-2/+2
| | |/ / / / / / / /
| | * | | | | | | | Integrated command line into coreprofkhaos2009-08-1312-224/+499
| | | | | | | | | |
| | * | | | | | | | Checkpoint cli portingprofkhaos2009-08-106-21/+98
| | | | | | | | | |
| * | | | | | | | | Merge branch 'dynamic' into elflinkH. Peter Anvin2009-08-091-1/+1
| |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: core/Makefile
| | * | | | | | | | Merge branch 'core32' into dynamicH. Peter Anvin2009-08-091-1/+1
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: core/Makefile Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | | | | | | | | | Merge branch 'dynamic' into elflinkH. Peter Anvin2009-08-0816-93/+385
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolved Conflicts: com32/MCONFIG core/Makefile core/syslinux.ld Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | | | | | | | | Merge branch 'core32' into dynamicH. Peter Anvin2009-08-089-80/+331
| | |\ \ \ \ \ \ \ \ \
| | * | | | | | | | | | Add --hash-style=gnu to the relevant LDFLAGSH. Peter Anvin2009-08-022-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GNU hash style is the only one that matters to us. No need to bloat up the code with additional formats. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | | | | | | | | | file: clear fp->i.buf when the buffer is freedH. Peter Anvin2009-08-022-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To make debugging easier, when we free fp->i.buf, we also want to clear it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | | | | | | | | | file: use malloc/free to allocate and free buffersH. Peter Anvin2009-08-025-12/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of statically allocating huge buffers, use malloc/free to dynamically allocate them from the heap as needed. It really doesn't make any sense to create a half-megabyte .bss little of which will actually get used... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | | | | | | | | | prepcore: print compression statisticsH. Peter Anvin2009-08-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Print some basic compression statistics, so we know what we are dealing with. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | | | | | | | | | core: cleaner way to remove .rel.dyn; mark bss segments (NOLOAD)H. Peter Anvin2009-07-242-13/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A cleaner way to remove .rel.dyn without bloating the output: put it at the end, and then remove it in objcopy at the same time we convert to binary. Also, mark bss segments (NOLOAD) explicitly, to guard against linker bugs. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | | | | | | | | | MCONFIG: add a rule for STRIPH. Peter Anvin2009-07-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We don't use strip(1) from binutils at this point, but we might in the future. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | | | | | | | | | syslinux.ld: fix definition of __dynstr_lenH. Peter Anvin2009-07-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __dynstr_len was really computing __dynsym_len, oops... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | | | | | | | | | Merge branch 'core32' into dynamicH. Peter Anvin2009-07-162-5/+27
| | |\ \ \ \ \ \ \ \ \ \
| | * | | | | | | | | | | core: add the -E option to the ld command lineH. Peter Anvin2009-07-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We need to add the -E (--export-dynamic) options to the ld command line, otherwise we don't necessarily export global symbols to modules. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | | | | | | | | | | | elflink/Makefile: don't generate _root_.c32H. Peter Anvin2009-08-081-1/+0
| | |_|_|_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _root_.c32 is an obsolete development artifact; remove it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| * | | | | | | | | | | Functional config file parser and menuprofkhaos2009-08-063-10/+9
| | | | | | | | | | | |
| * | | | | | | | | | | Process entry and exit pacthes appliedprofkhaos2009-08-0626-269/+246
| | | | | | | | | | | |
| * | | | | | | | | | | Fixed undefined symbols problem and added config file parser to coreprofkhaos2009-08-0335-16/+6125
| | | | | | | | | | | |
| * | | | | | | | | | | Issue concerning entry.oprofkhaos2009-07-278-64/+36
| | | | | | | | | | | |