K7SEM is fixed. The problem was that you need
option USE_DOC_MIL=1 now, not just option USE_DOC_MIL The latter usage led to empty streams struct. This is a real problem, though: you can no streams for reading and the linker will happily create an empty streams structure. Which sucks, since you don't know why your system won't boot.
This commit is contained in:
parent
57eaa8b6f2
commit
e44595d970
6 changed files with 22 additions and 11 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#include <printk.h>
|
||||
#include <subr.h>
|
||||
|
||||
#if 1
|
||||
#if 0
|
||||
#define MALLOCDBG(x)
|
||||
#else
|
||||
#define MALLOCDBG(x) printk_spew x
|
||||
|
|
@ -28,6 +28,7 @@ void *malloc(size_t size)
|
|||
{
|
||||
void *p;
|
||||
|
||||
MALLOCDBG((__FUNCTION__ " Enter, size %d, free_mem_ptr %p\n", size, free_mem_ptr));
|
||||
if (size < 0)
|
||||
error("Error! malloc: Size < 0");
|
||||
if (free_mem_ptr <= 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue