mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
POSIX now uses libmem/malloc instead of the built-in one.
(cherry picked from commit 48adbffa6514755385af842f1fe8ca5068229eea)
This commit is contained in:
committed by
Bahadir Balban
parent
2c53feedb1
commit
38cf7bc175
@@ -51,7 +51,7 @@ env = Environment(CC = 'arm-none-linux-gnueabi-gcc',
|
||||
ASFLAGS = ['-D__ASSEMBLY__'],
|
||||
PROGSUFFIX = '.elf',
|
||||
ENV = {'PATH' : os.environ['PATH']},
|
||||
LIBS = ['gcc', 'libl4', 'c-userspace', 'libmm', 'libmc', 'gcc'],
|
||||
LIBS = ['gcc', 'libl4', 'c-userspace', 'libmm', 'libmc', 'libmalloc', 'gcc'],
|
||||
CPPPATH = ['include', LIBC_INCLUDE, KERNEL_INCLUDE, LIBL4_INCLUDE, LIBMEM_INCLUDE],
|
||||
LIBPATH = [LIBC_LIBPATH, LIBL4_LIBPATH, LIBMEM_LIBPATH, LIBPOSIX_LIBPATH],
|
||||
CPPFLAGS = '-include l4/config.h -include l4/macros.h -include l4/types.h')
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <l4/lib/list.h>
|
||||
#include <l4/api/errno.h>
|
||||
#include <l4/macros.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <l4/lib/list.h>
|
||||
#include <l4/api/errno.h>
|
||||
#include <lib/pathstr.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <path.h>
|
||||
#include <stdio.h>
|
||||
#include <fs.h>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define __VFS_H__
|
||||
|
||||
#include <fs.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <l4/lib/list.h>
|
||||
#include <memfs/memfs.h>
|
||||
#include <l4/macros.h>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Copyright (C) 2007 Bahadir Balban
|
||||
*/
|
||||
#include <lib/idpool.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <l4/macros.h>
|
||||
#include INC_GLUE(memory.h)
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -10,5 +10,5 @@
|
||||
#include <l4/api/capability.h>
|
||||
#include <l4lib/arch/syscalls.h>
|
||||
#include <l4/generic/cap-types.h> /* TODO: Move this to API */
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
#include <l4/lib/list.h>
|
||||
#include <vm_area.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <fs.h>
|
||||
|
||||
/*
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <l4lib/types.h>
|
||||
#include <l4/macros.h>
|
||||
#include <l4/api/errno.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <vm_area.h>
|
||||
#include <syscalls.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
#include <l4lib/arch/syscalls.h>
|
||||
#include <l4lib/exregs.h>
|
||||
#include <l4lib/ipcdefs.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <l4/api/space.h>
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <vm_area.h>
|
||||
#include <task.h>
|
||||
#include <mm/alloc_page.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <l4lib/arch/syscalls.h>
|
||||
#include <l4lib/arch/syslib.h>
|
||||
#include INC_GLUE(memory.h)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
#include <init.h>
|
||||
#include <vm_area.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <mm/alloc_page.h>
|
||||
#include <l4/macros.h>
|
||||
#include <l4/api/errno.h>
|
||||
@@ -22,7 +22,7 @@
|
||||
#include <test.h>
|
||||
|
||||
#include <lib/pathstr.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <stdio.h>
|
||||
#include <task.h>
|
||||
#include <stat.h>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <mm/alloc_page.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <lib/bit.h>
|
||||
|
||||
#include <task.h>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
#include <l4/lib/math.h>
|
||||
#include <vm_area.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include INC_API(errno.h)
|
||||
#include <posix/sys/types.h>
|
||||
#include <l4lib/arch/syscalls.h>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <l4/lib/math.h>
|
||||
#include <l4lib/arch/syslib.h>
|
||||
#include <vm_area.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
|
||||
/* This splits a vma, splitter region must be in the *middle* of original vma */
|
||||
int vma_split(struct vm_area *vma, struct tcb *task,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <l4/lib/list.h>
|
||||
#include <l4lib/arch/syscalls.h>
|
||||
#include <l4lib/arch/syslib.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <mm/alloc_page.h>
|
||||
#include <vm_area.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <memory.h>
|
||||
#include <vm_area.h>
|
||||
#include <globals.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <l4lib/arch/syscalls.h>
|
||||
#include <l4lib/arch/syslib.h>
|
||||
#include <lib/idpool.h>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <l4lib/exregs.h>
|
||||
|
||||
#include <lib/addr.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
|
||||
#include <init.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include <task.h>
|
||||
#include <user.h>
|
||||
#include <l4/api/errno.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
|
||||
/*
|
||||
* Checks if the given user virtual address range is
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include INC_GLUE(memlayout.h)
|
||||
#include <mmap.h>
|
||||
#include <utcb.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <vm_area.h>
|
||||
#include <memory.h>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <vm_area.h>
|
||||
#include <l4/macros.h>
|
||||
#include <l4/api/errno.h>
|
||||
#include <lib/malloc.h>
|
||||
#include <malloc/malloc.h>
|
||||
#include <globals.h>
|
||||
|
||||
/* Global list of all in-memory files on the system */
|
||||
|
||||
Reference in New Issue
Block a user