From 5fcf6418cf575bf48e1c839751298e905c56bf5a Mon Sep 17 00:00:00 2001 From: christiaans Date: Tue, 24 Oct 2006 09:10:26 +0000 Subject: [PATCH] Added warning about using mem_malloc in sys_arch.c, cold case bug #1913 . --- doc/sys_arch.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/sys_arch.txt b/doc/sys_arch.txt index 95d0add7..b2c45e03 100644 --- a/doc/sys_arch.txt +++ b/doc/sys_arch.txt @@ -143,6 +143,13 @@ to be implemented as well: more information. This function is only required if your port is supporting an operating system. +Note: + +Be carefull with using mem_malloc() in sys_arch. When malloc() refers to +mem_malloc() you can run into a circular function call problem. In mem.c +mem_init() tries to allcate a semaphore using mem_malloc, which of course +can't be performed when sys_arch uses mem_malloc. + ------------------------------------------------------------------------------- Additional files required for the "OS support" emulation layer: -------------------------------------------------------------------------------