aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | Use pxe_call() instead of COMBOOT APIMatt Fleming2012-07-203-34/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This involved some other changes, such as passing flags to unload_pxe() now that we only call it from C code, and hence don't need to update KeepPXE. We also needed to move some of the pxe function prototypes to com32/include/syslinux/pxe_api.h because they are now referenced outside of the core. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
| * | | | | | | Merge branch 'master' into elflinkMatt Fleming2012-07-191-3/+51
| |\ \ \ \ \ \ \ | | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reason for this merge is that we need the fix to core/fs/cache.c without which we can potentially dereference an invalid pointer. The below conflict is a result of the new setup_data blob code being merged from the master branch. Conflicts: com32/lib/Makefile
| | * | | | | | linux.c32: add missing break;syslinux-4.06-pre10H. Peter Anvin2012-06-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add missing break; for ENOMEM. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| | * | | | | | linux.c32: allow loading arbitrary setup_data blobsH. Peter Anvin2012-06-291-12/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow loading arbitrary setup_data blobs via the syntax blob.NN=filename where NN is a decimal number. This also allows loading multiple device tree blobs. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| | * | | | | | linux.c32: add support for a device tree blob (dtb)H. Peter Anvin2012-06-291-2/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on a patch by Thierry Reding, add support for loading a device tree blob using the generic setup_data framework. I used the name dtb= instead of fdt= since it looks like dtb= is the common acronym for the filenames and what is used in the kernel. Originally-by: Thierry Reding <thierry.reding@avionic-design.de> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
| | * | | | | | Change fdt-specific loader into a generic setup_data loaderH. Peter Anvin2012-06-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make it a generic setup_data loader keyed by type. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Cc: Thierry Reding <thierry.reding@avionic-design.de>
| * | | | | | | Merge branch 'elflink' of ssh://terminus.zytor.com/pub/git/syslinux/syslinux ↵H. Peter Anvin2012-06-275-40/+28
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | into elflink
| | * | | | | | | Revert "pxe: resolve names via DNS from protected-mode code"Matt Fleming2012-06-202-34/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 6aba981cd9310bae94587d3e51106261bf0e27b9. dns_resolv() is only implemented for PXELINUX, meaning that if we try to execute any module that references it under SYSLINUX, EXTLINUX or ISOLINUX it fails to run because it cannot resolve the symbol. We need a way to implement DNS resolution so that it works for PXELINUX but returns an error for SYSLINUX/EXTLINUX or ISOLINUX, without introducing undefined symbols. The old COMBOOT API method worked splendidly for this, so revert until someone provides a better solution. Conflicts: com32/lib/Makefile com32/modules/host.c mk/elf.mk Cc: Paulo Alcantara <pcacjr@zytor.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
| | * | | | | | | com32: Per-object file LDFLAGSMatt Fleming2012-06-201-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some object files need to link against the ELF libraries. Allow them to be specified with the following syntax in the Makefiles, LDFLAGS_$(object_file) = $(LIBS) By adding libraries in this way DT_NEEDED entries are created in the ELF modules and the required library dependencies are automatically loaded before running the module. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
| | * | | | | | | pxechn: Fix merge botch s/pxe_dns/pxe_dns_resolv/Matt Fleming2012-06-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pxe_dns() was deleted in commit 6aba981cd93 ("pxe: resolve names via DNS from protected-mode code"), so when pxechn was merged from 'master' we should really have updated pxechn.c to use pxe_dns_resolv(). Signed-off-by: Matt Fleming <matt.fleming@intel.com>
| | * | | | | | | Delete all references to __com32.cs_bounceMatt Fleming2012-06-083-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The COM32 cs_bounce buffer is not usable with ELF modules, as we're trying to move to an environment where memory is dynamically allocated. All users of __com32.cs_bounce have been converted to using lmalloc() to allocate low memory. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
| * | | | | | | | Merge remote-tracking branch 'origin/master' into elflinksyslinux-5.00-pre3H. Peter Anvin2012-06-121-7/+34
| |\ \ \ \ \ \ \ \ | | |/ / / / / / / | |/| / / / / / / | | |/ / / / / /
| | * | / / / / linux.c32: Make errors clearer for usersGene Cumm2012-06-091-7/+34
| | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| * | | | | | Merge remote-tracking branch 'zytor/master' into merge/elflink/masterMatt Fleming2012-05-315-1881/+1532
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A lot of development has gone on in the 'master' branch since the last time we merged; new features, bug fixes, etc, etc. Conflicts: Makefile com32/Makefile com32/lib/Makefile com32/lib/syslinux/load_linux.c com32/modules/Makefile com32/modules/chain.c core/bootsect.inc core/init.inc version
| | * | | | | Merge remote-tracking branch 'hdt/master'syslinux-4.06-pre4H. Peter Anvin2012-05-271-10/+15
| | |\ \ \ \ \
| | | * \ \ \ \ Merge remote-tracking branch 'hpa/master'Erwan Velu2012-05-252-1933/+1
| | | |\ \ \ \ \ | | | | | |_|_|/ | | | | |/| | |
| | | * | | | | ifcpu: Adding hypervisor supportErwan Velu2012-01-071-10/+15
| | | | |_|_|/ | | | |/| | | | | | | | | | | | | | | | | This simple hack add the ability to detect the hypervisor presence.
| | * | | | | pxechn.c32: PXE NBP chainloaderGene Cumm2012-05-272-1/+1124
| | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Designed as a more versatile COM32-based alternative to pxechain.com. It can use the PXE RESTART or chain to the new NBP without the PXE stack. It also enables a user to boot Microsoft Windows Server 2008R2 Windows Deployment Services's wdsnbp.com from PXELINUX. Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
| | * | | | Merge branch 'chaindev'H. Peter Anvin2012-03-262-1933/+1
| | |\ \ \ \ | | | |/ / / | | |/| | |
| | | * | | Merge remote-tracking branch 'origin/master' into chaindevMichal Soltys2011-08-024-34/+12
| | | |\ \ \ | | | | | |/ | | | | |/| | | | | | | | | | | | | Conflicts: com32/modules/chain.c
| | | * | | Merge branch 'master' into chaindevMichal Soltys2011-05-042-2/+104
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: com32/Makefile com32/modules/chain.c Note: add ReactOS' stuff introduced in old chain.c Signed-off-by: Michal Soltys <soltys@ziu.info>
| | | * \ \ \ Merge branch 'master' into chaindevMichal Soltys2011-03-071-8/+1
| | | |\ \ \ \
| | | * \ \ \ \ Merge branch 'master' into chaindevMichal Soltys2011-02-141-0/+6
| | | |\ \ \ \ \
| | | * | | | | | split chain into chain + iterator, expand iterators' codeMichal Soltys2010-08-162-1365/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch: - splits chain into chain and iterator parts and moves them into their own com32/chain directory - extensively updates iterators' code - adjusts chain.c to use new iterators - fixes mbr/sect/hand/file allocation Signed-off-by: Michal Soltys <soltys@ziu.info>
| | | * | | | | | Merge branch 'master' into chaindevMichal Soltys2010-08-141-0/+26
| | | |\ \ \ \ \ \
| | | * | | | | | | chain.c: fix public index value in mbr and gpt iteratorsMichal Soltys2010-07-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mbr and gpt iterators skip empty / non-data partitions properly, but don't update publicly visible index. With this patch, such partitions are counted as well. Signed-off-by: Michal Soltys <soltys@ziu.info> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | | * | | | | | | Merge remote branch 'sha0/com32lib_disk' into disklibH. Peter Anvin2010-07-211-559/+71
| | | |\ \ \ \ \ \ \
| | | | * | | | | | | chain.c32, libcom32: Move gpt_dump() as disk_gpt_header_dump()Shao Miller2010-07-101-37/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving portions of chain.c32 into libcom32. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move struct gpt as disk_gpt_headerShao Miller2010-07-101-33/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also moved gpt_sig_magic as disk_gpt_sig_magic. Moving portions of chain.c32 into libcom32. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move gpt_part_dump() as disk_gpt_part_dump()Shao Miller2010-07-101-27/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving portions of chain.c32 into libcom32. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move guid_to_str() and str_to_guid()Shao Miller2010-07-101-90/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving portions of chain.c32 into libcom32. There might be a better header for these to belong to. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move struct gpt_part as disk_gpt_part_entryShao Miller2010-07-101-18/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving portions of chain.c32 into libcom32. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move guid_le_walk_mapShao Miller2010-07-101-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving portions of chain.c32 into libcom32. There might be a better header for guid_le_walk_map to belong to. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move struct guidShao Miller2010-07-101-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving portions of chain.c32 into libcom32. There might be a better header for struct guid to belong to. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move struct mbr as disk_dos_mbrShao Miller2010-07-101-24/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also move mbr_sig_magic as disk_mbr_sig_magic macro. Moving portions of chain.c32 into libcom32. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move mbr_part_dump() as disk_dos_part_dump()Shao Miller2010-07-101-37/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving portions of chain.c32 into libcom32. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move struct part_entry as disk_dos_part_entryShao Miller2010-07-101-22/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving portions of chain.c32 into libcom32. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move chs macros and chs typedef as disk_chsShao Miller2010-07-101-13/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving portions of chain.c32 into libcom32. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move write_verify_sector() as disk_write_verify_sector()Shao Miller2010-07-101-17/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving portions of chain.c32 into libcom32. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move write_sector() as disk_write_sector()Shao Miller2010-07-101-58/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving portions of chain.c32 into libcom32. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move read_sectors() as disk_read_sectors()Shao Miller2010-07-101-80/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving portions of chain.c32 into libcom32. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move struct ebios_dapa as disk_ebios_dapaShao Miller2010-07-101-10/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving portions of chain.c32 into libcom32. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move get_disk_params() as disk_get_params()Shao Miller2010-07-101-73/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also moved struct diskinfo as disk_info. Moving portions of chain.c32 into libcom32. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32: Run Nindent on com32/modules/chain.cShao Miller2010-07-101-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | chain.c32, libcom32: Move int13_retry() as disk_int13_retry()Shao Miller2010-07-101-22/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moving portions of chain.c32 into libcom32. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | | | * | | | | | | libcom32: Introduce disk header and moduleShao Miller2010-07-101-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An effort to move significant portions out of chain.c32 and into library is underway. We begin by simply moving SECTOR into a header and building a disk module. Note that some of this work will essentially duplicate some of what's found in Pierre-Alexandre Meyer's fine work in com32/gpllib/disk/. A difference would be the licensing, of course. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | * | | | | | | | | ifmemdsk: remove spurious +x bitsyslinux-4.05-pre6H. Peter Anvin2011-08-251-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is not an executable... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | | | | | | | | ifmemdsk.c32: Allow boot options based on presence of MEMDISKShao Miller2011-08-081-0/+392
| | | |_|_|_|_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Like 'ifcpu.c32' and 'ifplop.c32', this COMBOOT32 module will check for the presence of MEMDISK(s) and choose one of two (optionally) specified commands. Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
| | * | | | | | | | com32: make syslinux_dump_*() pure debugging functionsH. Peter Anvin2011-06-272-22/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the syslinux_dump_*() functions pure debugging functions; that is the way that they are used anyway, and this way they log to the same place as dprintf. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
| | * | | | | | | | Use <dprintf.h> instead of an ad hoc definitionH. Peter Anvin2011-06-272-12/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of using ad hoc definitions of dprintf, dprintf2, vdprintf and vdprintf2, use <dprintf.h> everywhere possible. Signed-off-by: H. Peter Anvin <hpa@zytor.com>