search for: kt_none

Displaying 8 results from an estimated 8 matches for "kt_none".

2012 Jul 01
1
[PATCH] elflink: fix return from execute()
Fix return from execute() if type == KT_NONE. Signed-off-by: Sebastian Herbszt <herbszt at gmx.de> --- com32/elflink/ldlinux/execute.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/com32/elflink/ldlinux/execute.c b/com32/elflink/ldlinux/execute.c index f713eb1..899154c 100644 --- a/com32/elflink/ldlinux/exe...
2011 Mar 09
14
[PATCH 00/12] elflink shrinkage
From: Matt Fleming <matt.fleming at linux.intel.com> This is a series of patches that, * shrink the core by moving things into an ldlinux ELF module * begin wiring up some of the C versions of various functions The core now only contains essential code and loads the ldlinux module to do everything else, like providing a command line interface and loading kernels. The config file parsing
2012 Mar 23
19
[PATCH 00/19][elflink] Improve compatibility with 4.x
From: Matt Fleming <matt.fleming at intel.com> The following patch series is available at, git://git.zytor.com/users/mfleming/syslinux.git elflink All patches are against the 'elflink' branch. This series fixes a few serious bugs and some behavioural incompatibilities with the 4.x series. Matt Fleming (19): ldlinux: Initialise 'p' before using it. ldlinux: Parse
2012 Jul 16
5
[PATCH 0/5] Deleting __intcall() from Syslinux
From: Matt Fleming <matt.fleming at intel.com> Since we can't use __intcall() for EFI, and since we can now have the ELF module code resolve all our symbols at runtime, we should delete as many references to __intcall() as possible and just access the symbols directly. The most interesting patch is the support for weak symbols. We need to be able to reference derivative-specific
2012 Aug 14
1
[GIT PULL] elflink fixes
...nst *pp; const char *kernel, *args; + const char *p; com32sys_t ireg; char *q; @@ -79,22 +79,31 @@ void execute(const char *cmdline, enum kernel_type type) dprintf("kernel is %s, args = %s type = %d \n", kernel, args, type); - if (kernel[0] == '.' && type == KT_NONE) { + if (kernel[0] == '.') { /* It might be a type specifier */ - enum kernel_type type = KT_NONE; - for (pp = kernel_types; *pp; pp++, type++) { - if (!strcmp(kernel + 1, *pp)) { + const struct image_types *t; + for (t = image_boot_types; t->name; t++) { + if (!strcmp(kernel...
2011 May 25
1
[GIT PULL] elflink ldlinux
...nst char *kernel) /* Virtual kernel? */ me = find_label(kernel); if (me) { - /* XXX we don't handle LOCALBOOT yet */ - execute(me->cmdline, KT_KERNEL); + enum kernel_type type = KT_KERNEL; + + /* cmdline contains type specifier */ + if (me->cmdline[0] == '.') + type = KT_NONE; + + execute(me->cmdline, type); /* We shouldn't return */ goto bad_kernel; } @@ -98,11 +104,43 @@ static void enter_cmdline(void) int main(int argc, char **argv) { + com32sys_t ireg, oreg; + uint8_t *adv; + int count = 0; + openconsole(&dev_rawcon_r, &dev_ansiserial_w...
2012 Apr 17
2
[GIT PULL] elflink warning fixes and auto extension support
...ile_extensions[] = { + { ".com", KT_COMBOOT }, + { ".cbt", KT_COMBOOT }, + { ".c32", KT_COM32 }, + { ".img", KT_FDIMAGE }, + { ".bss", KT_BSS }, + { ".bin", KT_BOOT }, + { ".bs", KT_BOOT }, + { ".0", KT_PXE }, + { NULL, KT_NONE }, +}; + +/* + * Return a pointer to one byte after the last character of the + * command. + */ +static inline const char *find_command(const char *str) +{ const char *p; - int len; - /* Find the end of the command */ - p = kernel; + p = str; while (*p && !my_isspace(*p)) p++; + re...
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com> This series fixes some bugs and switches the elflink branch to be entirely ELF modules. It applies on top of, http://syslinux.zytor.com/archives/2011-April/016369.html The deletions in the diff stat below are mainly from deleting com32/elflink/modules (finally!). Now there should be no duplicate code because we don't need COM32 and