Displaying 7 results from an estimated 7 matches for "syslinux_adv_size".
Did you mean:
__syslinux_adv_size
2017 Jan 25
2
Possible to persist data across reboots from Lua?
I'd like to be able to save a boolean value across reboots. I believe
that being able to store to the auxiliary data vector would satisfy
this need, but I'm using syslinux and that doesn't seem to be
implemented. While I'm currently using a Lua script, I'm not tied to
it, so if there's a way to read and write any persistent filesystem or
disk, I'd be happy to switch.
2017 Jan 27
0
Possible to persist data across reboots from Lua?
...> While I'm currently using a Lua script, I'm not tied to it, so if
> there's a way to read and write any persistent filesystem or disk, I'd
> be happy to switch.
I think the best would be adding Lua bindings for syslinux_getadv(),
syslinux_setadv(), syslinux_adv_write(), syslinux_adv_size() and the
BOOTONCE and MENUSAVE tags. And define some policy for allocating new
tags... which is the hard part.
> Reading through the source code, it seems like most filesystem
> operations are read-only
Yes, the filesystem drivers in Syslinux are read-only.
--
Feri
2010 Oct 02
4
[PATCH 0/4] some fixes on elflink branch
This is a small set of patches for elflink branch based on
feng's elflink branch.
hpa, It seems that I can't log on terminus by ssh at home. So I can't push these
patches on my git tree.
Liu Aleaxander (4):
elflink: Cleanup some warnings
elflink: Fix the wrong malloc size in enter_cmdline
elflink: Do clear screen even if we have no pDraw_Menu method
elflink: Add Ctrl-p +
2011 Mar 16
0
[GIT PULL] elflink compiler warning fixes
...linux/getadv.c
index 456084b..5578313 100644
--- a/com32/elflink/ldlinux/getadv.c
+++ b/com32/elflink/ldlinux/getadv.c
@@ -39,7 +39,7 @@
const void *syslinux_getadv(int tag, size_t * size)
{
const uint8_t *p;
- size_t left, len;
+ size_t left;
p = syslinux_adv_ptr();
left = syslinux_adv_size();
diff --git a/com32/elflink/ldlinux/ldlinux.c b/com32/elflink/ldlinux/ldlinux.c
index b5a4409..31a457f 100644
--- a/com32/elflink/ldlinux/ldlinux.c
+++ b/com32/elflink/ldlinux/ldlinux.c
@@ -1,6 +1,7 @@
#include <linux/list.h>
#include <sys/times.h>
#include <stdbool.h>
+#incl...
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
...t void *data)
-{
- uint8_t *p, *advtmp;
- size_t rleft, left;
-
- if ((unsigned)tag - 1 > 254) {
- errno = EINVAL;
- return -1; /* Impossible tag value */
- }
-
- if (size > 255) {
- errno = ENOSPC; /* Max 255 bytes for a data item */
- return -1;
- }
-
- rleft = left = syslinux_adv_size();
- p = advtmp = alloca(left);
- memcpy(p, syslinux_adv_ptr(), left); /* Make working copy */
-
- while (rleft >= 2) {
- uint8_t ptag = p[0];
- size_t plen = p[1] + 2;
-
- if (ptag == ADV_END)
- break;
-
- if (ptag == tag) {
- /* Found our tag. Delete it. */
-
- if (plen &...
2011 May 25
1
[GIT PULL] elflink ldlinux
...ink/ldlinux/adv.c
index be38e89..7869547 100644
--- a/com32/elflink/ldlinux/adv.c
+++ b/com32/elflink/ldlinux/adv.c
@@ -33,15 +33,21 @@
#include <syslinux/adv.h>
#include <klibc/compiler.h>
+#include <inttypes.h>
#include <com32.h>
void *__syslinux_adv_ptr;
size_t __syslinux_adv_size;
-void __constructor __syslinux_get_adv(void)
+extern void adv_init(void);
+void __syslinux_init(void)
{
static com32sys_t reg;
+ /* Initialize the ADV structure */
+ reg.eax.w[0] = 0x0025;
+ __intcall(0x22, ®, NULL);
+
reg.eax.w[0] = 0x001c;
__intcall(0x22, &...