Displaying 2 results from an estimated 2 matches for "heap_lowmem".
2015 Jan 11
1
SysLinux Development Questions
...hen the 64bit uefi build pass runs there are multiple
warnings about forcing pointers into 32bit fields and I would also
assume that malloc is free to return storage above the 32bit
addressable range. Is lmalloc the solution to keeping allocated memory
in 32bit addressable storage? A grep gives me HEAP_LOWMEM parameter
for lmalloc but that is just an enum without explanation and I can't
see how/where this changes the memory allocation in malloc.c
Syslinux shared libraries:
As part of the PBA process the disk image presented to syslinux will
change completely. Once the drive is unlocked, the "...
2012 Apr 17
2
[GIT PULL] elflink warning fixes and auto extension support
...2);
ireg.esi.w[0] = OFFS(trackbuf);
ireg.edi.w[0] = 0x07C00;
diff --git a/core/mem/malloc.c b/core/mem/malloc.c
index d27fc27..fa1d26a 100644
--- a/core/mem/malloc.c
+++ b/core/mem/malloc.c
@@ -93,7 +93,12 @@ void *malloc(size_t size)
void *lmalloc(size_t size)
{
- return _malloc(size, HEAP_LOWMEM, MALLOC_CORE);
+ void *p;
+
+ p = _malloc(size, HEAP_LOWMEM, MALLOC_CORE);
+ if (!p)
+ errno = ENOMEM;
+ return p;
}
void *pmapi_lmalloc(size_t size)
diff --git a/core/serirq.c b/core/serirq.c
index 767099e..e0675c9 100644
--- a/core/serirq.c
+++ b/core/serirq.c
@@ -26,8 +26,8 @@
s...