Displaying 8 results from an estimated 8 matches for "__firmware_bios__".
2014 Mar 01
1
[syslinux:master] core, bios: Move __syslinux_shuffler_size to assembly
...; + dd __bcopyxx_len
> +
> bits 16
> section .text16
> diff --git a/core/shuffler.c b/core/shuffler.c
> deleted file mode 100644
> index eca1b4a..0000000
> --- a/core/shuffler.c
> +++ /dev/null
> @@ -1,8 +0,0 @@
> -#include "core.h"
> -
> -#ifdef __FIRMWARE_BIOS__
FWIW: it seems to me that the '#ifdef' is dropped ...
> -
> -extern const char __bcopyxx_len[]; /* Linker script absolute symbol */
> -const size_t __syslinux_shuffler_size = (size_t)__bcopyxx_len;
> -
> -#endif /* __FIRMWARE_BIOS__ */
> ________________________________...
2015 Sep 20
3
move firmware-specific code into a directory
On Sun, Sep 20, 2015 at 06:32:48AM +0200, Celelibi via Syslinux wrote:
> 2015-09-20 0:04 UTC+02:00, Gene Cumm via Syslinux <syslinux at zytor.com>:
> > On Sat, Sep 19, 2015 at 4:32 PM, BALATON Zoltan <balaton at eik.bme.hu> wrote:
> >> On Fri, 18 Sep 2015, Gene Cumm via Syslinux wrote:
> >>>
> >>> No. pxechn.c32 is BIOS only for now.
>
2015 Mar 14
0
[PATCH 0/1] EFI access from Com32 modules
...de <syslinux/bootrm.h>
+#include <syslinux/video.h>
+#include <com32.h>
+#include <stdint.h>
+#include <syslinux/pxe.h>
+#include <sys/gpxe.h>
+#include <unistd.h>
+#include <getkey.h>
+#include <dhcp.h>
+#include <limits.h>
+
+#ifndef __FIRMWARE_BIOS__
+
+#include <syslinux/firmware.h>
+#include "../../efi/efi.h"
+
+#endif
+
+
+
+#ifdef __FIRMWARE_BIOS__
+
+int pressanykey(void) {
+ int inc;
+
+ printf("Press any key to continue. ");
+ inc = KEY_NONE;
+ while (inc == KEY_NONE)
+ inc = get_key(stdin, 6000);...
2015 Sep 20
0
move firmware-specific code into a directory
...d a
patch some time ago that does exactly that (I really can't find it, surely Ady will help).
2) based on makefile variables it is very easy to define within the .c32 source code
"BIOS only sections" and "EFI only sections" i.e.
...
// BIOS and EFI code section
#ifdef __FIRMWARE_BIOS__
// BIOS only code section
#else
// EFI (32 or 64) only code section
#endif
// BIOS and EFI code section
...
There will be cases where the source is going to be split in just 2 big different sections
with no much common code but it doesn't matter; at the end the produced binaries w...
2015 Feb 20
6
[PATCH 0/1] EFI image booting capabilities
...{ "fdimage", IMAGE_TYPE_FDIMAGE },
{ "com32", IMAGE_TYPE_COM32 },
{ "config", IMAGE_TYPE_CONFIG },
+ { "efi", IMAGE_TYPE_EFI },
{ NULL, 0 },
};
@@ -89,6 +90,13 @@ __export void execute(const char *cmdlin
do_sysappend(q);
}
+#ifdef __FIRMWARE_BIOS__
+ if(type==IMAGE_TYPE_EFI) {
+ printf("Bios core cannot load efi image %s\n",kernel);
+ return;
+ }
+#endif
+
dprintf("kernel is %s, args = %s type = %d \n", kernel, args, type);
if (kernel[0] == '.') {
@@ -114,7 +122,9...
2015 Sep 20
1
move firmware-specific code into a directory
...t (I really can't find it, surely Ady will help).
>
> 2) based on makefile variables it is very easy to define within the .c32 source code
> "BIOS only sections" and "EFI only sections" i.e.
>
> ...
>
> // BIOS and EFI code section
>
> #ifdef __FIRMWARE_BIOS__
>
> // BIOS only code section
>
> #else
>
> // EFI (32 or 64) only code section
>
> #endif
>
> // BIOS and EFI code section
> ...
>
> There will be cases where the source is going to be split in just 2 big different sections
> with no much com...
2015 Sep 20
2
move firmware-specific code into a directory
...really can't find it, surely
> Ady will help).
>
> 2) based on makefile variables it is very easy to define within the .c32
> source code
> "BIOS only sections" and "EFI only sections" i.e.
>
> ...
>
> // BIOS and EFI code section
>
> #ifdef __FIRMWARE_BIOS__
>
> // BIOS only code section
>
> #else
>
> // EFI (32 or 64) only code section
>
> #endif
>
> // BIOS and EFI code section
> ...
>
> There will be cases where the source is going to be split in just 2 big
> different sections
> with no much common...
2016 Mar 20
0
[PATCH 0/1] EFI image booting capabilities
...quot;, IMAGE_TYPE_COM32 },
> { "config", IMAGE_TYPE_CONFIG },
> + { "efi", IMAGE_TYPE_EFI },
> { NULL, 0 },
> };
>
> @@ -89,6 +90,13 @@ __export void execute(const char *cmdlin
> do_sysappend(q);
> }
>
> +#ifdef __FIRMWARE_BIOS__
> + if(type==IMAGE_TYPE_EFI) {
> + printf("Bios core cannot load efi image %s\n",kernel);
> + return;
> + }
> +#endif
> +
> dprintf("kernel is %s, args = %s type = %d \n", kernel, args, type);
>
>...