]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
Added warning about using mem_malloc in sys_arch.c, cold case bug #1913 .
authorchristiaans <christiaans>
Tue, 24 Oct 2006 09:10:26 +0000 (09:10 +0000)
committerchristiaans <christiaans>
Tue, 24 Oct 2006 09:10:26 +0000 (09:10 +0000)
doc/sys_arch.txt

index 95d0add737a9c185549e5a9ed719cba88c99cd9e..b2c45e03ef27cb4aab73121e375ff6888e00a1b6 100644 (file)
@@ -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:
 -------------------------------------------------------------------------------