base-codezero: Add dummy functions to syscall library

Issue #1280
This commit is contained in:
Sebastian Sumpf 2014-10-28 14:21:44 +01:00 committed by Norman Feske
parent e0ed7c3cd0
commit 8738673625
2 changed files with 29 additions and 1 deletions

View File

@ -7,11 +7,17 @@ SRC_C += $(addprefix lib/,addr.c bit.c idpool.c)
SRC_C += $(addprefix lib/thread/,init.c thread.c)
SRC_C += $(addprefix lib/cap/,cap.c read.c)
#
# Dummies
#
SRC_C += dummy.c
INC_DIR += $(CODEZERO_DIR)/conts/userlibs/libc/include
INC_DIR += $(CODEZERO_DIR)/conts/userlibs/libmem/include
INC_DIR += $(CODEZERO_DIR)/conts/userlibs/libmem
vpath % $(LIBL4_DIR)/src
vpath % $(LIBL4_DIR)/src
vpath %.c $(REP_DIR)/src/lib/syscall
#
# The libl4 source files uses macros defined in macros.h but do not

View File

@ -0,0 +1,22 @@
/*
* \brief Dummies for Codezeros libmem (used by libl4)
* \author Sebastian Sumpf
* \date 2011-05-10
*/
/*
* Copyright (C) 2011-2013 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
void *mem_cache_zalloc(void *cache){ return 0; }
void *mem_cache_alloc(void *cache){ return 0; }
void *mem_cache_init(void *start, int cache_size, int struct_size,
unsigned int alignment) { return 0; }
int mem_cache_free(void *cache, void *addr) { return 0; }
void *kmalloc(int size) { return 0; }