search for: ldlinux_console_init

Displaying 4 results from an estimated 4 matches for "ldlinux_console_init".

2015 Oct 13
0
[PATCH 1/2] ldlinux: fix stack overflow when running COM32 modules
...0 }, }; +extern jmp_buf __return_to_command_prompt; extern int create_args_and_load(char *); __export void execute(const char *cmdline, uint32_t type, bool sysappend) @@ -136,7 +137,8 @@ __export void execute(const char *cmdline, uint32_t type, bool sysappend) /* Restore the console */ ldlinux_console_init(); - ldlinux_enter_command(); + /* Jump back to the main to call ldlinux_enter_command */ + longjmp(__return_to_command_prompt, 1); } else if (type == IMAGE_TYPE_CONFIG) { char *argv[] = { LDLINUX, NULL, NULL }; char *config; diff --git a/com32/elflink/ldlinux/ldlinux.c b/com32/elflink...
2015 Oct 13
5
[PATCH 0/2] Stack overflows when running commands
From: Sylvain Gault <sylvain.gault at gmail.com> Hello there, I propose 2 patches that fix two possible stack overflows either when running a COM32 module or when loading a new config file. I didn't find a better way to do this than to use the infamous setjmp/longjmp functions to restore the stack to a previous state. This makes the logic a bit more complex, but the behavior is not
2013 Oct 18
0
[RFC/PATCH 3/3] Wire up MultiFS support.
...32/elflink/ldlinux/ldlinux.c index 76d117c..bc63a5a 100644 --- a/com32/elflink/ldlinux/ldlinux.c +++ b/com32/elflink/ldlinux/ldlinux.c @@ -303,6 +303,8 @@ __export int main(int argc __unused, char **argv) const char *cmdline; size_t count = 0; + init_multifs(); /* Init MultiFS support */ + ldlinux_console_init(); parse_configs(&argv[1]); diff --git a/com32/include/syslinux/multifs_utils.h b/com32/include/syslinux/multifs_utils.h new file mode 100644 index 0000000..59ba85a --- /dev/null +++ b/com32/include/syslinux/multifs_utils.h @@ -0,0 +1,51 @@ +/* + * Copyright (C) 2012 Andre Ericson <de.er...
2015 Jul 22
13
[PULL 0/8] MultiFS suppport for BIOS and EFI
So last week I was wondering if XFS was still working -- even with its last on-disk structure changes -- and it _suprisingly_ worked as expected. Right, now I can finally get rid of GRUB and use Syslinux to boot my Linux on EFI from a rootfs with xfs. Shit, I have two partitions (the first one being the required ESP) so there is no way to access the other partitions since because Syslinux does not