Displaying 5 results from an estimated 5 matches for "malloc_tag_t".
2018 Feb 03
1
Mismatch between code comments and reality in malloc.h
...radation, but I doubt it. I thought to ask to get clarification.
In syslinux/core/mem/malloc.h, the comments and definition for arena_header, ARENA_PADDING and free_arena_header are:
/*
* This structure should be a power of two. This becomes the
* alignment unit.
*/
struct arena_header {
malloc_tag_t tag;
size_t attrs; /* Bits 0..1: Type
2..3: Heap,
4..31: MSB of the size */
struct free_arena_header *next, *prev;
#ifdef DEBUG_MALLOC
unsigned long _pad[3];
unsigned int magic;
#endif
};
/* Pad to 2*sizeof(struct arena_header) */
#define ARENA_PADDING ((2 * sizeof(stru...
2013 May 18
2
Latest firmware branch failing to compile with gnu-efi-3.0t
...e
'EFI_SERVICE_BINDING'
EFI_SERVICE_BINDING *binding;
^
/home/voltagex/src/syslinux/efi/mem.c: In function 'efi_malloc':
/home/voltagex/src/syslinux/efi/mem.c:4:41: warning: unused parameter
'heap' [-Wunused-parameter]
void *efi_malloc(size_t size, enum heap heap, malloc_tag_t tag)
^
/home/voltagex/src/syslinux/efi/mem.c:4:60: warning: unused parameter 'tag'
[-Wunused-parameter]
void *efi_malloc(size_t size, enum heap heap, malloc_tag_t tag)
^
/home/voltagex/src/...
2010 Jul 27
0
__free_tagged not freeing memory?
...0x000353e0
boot: mem
lowmem_buf: 0x000353e0
boot: mem
lowmem_buf: 0x000353e0
can be achieved with the following patch.
Sebastian
diff --git a/core/mem/free.c b/core/mem/free.c
index 0becb9e..384f10e 100644
--- a/core/mem/free.c
+++ b/core/mem/free.c
@@ -136,7 +136,7 @@ static void __free_tagged(malloc_tag_t tag) {
for (i = 0; i < NHEAP; i++) {
dprintf("__free_tagged(%u) heap %d\n", tag, i);
head = &__malloc_head[i];
- for (fp = head ; fp != head ; fp = fp->a.next) {
+ for (fp = head->a.next ; fp != head ; fp = fp->a.next) {
if (ARE...
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
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