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
|
|
@ -98,6 +98,7 @@ static void flush_window(void)
|
|||
void gunzip_setup(void)
|
||||
{
|
||||
/* common globals -- don't rely on init! */
|
||||
printk_debug(__FUNCTION__ "\n");
|
||||
outcnt = 0;
|
||||
bytes_out = 0;
|
||||
output_ptr = 0;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -79,6 +79,7 @@ void display(char *string)
|
|||
void error(char errmsg[])
|
||||
{
|
||||
display(errmsg);
|
||||
post_code(0xff);
|
||||
while (1); /* Halt */
|
||||
}
|
||||
|
||||
|
|
@ -89,7 +90,8 @@ void post_code(uint8_t value)
|
|||
{
|
||||
#ifdef SERIAL_POST
|
||||
unsigned long hi, lo;
|
||||
rdtsc(lo, hi);
|
||||
// DAMMIT! This just broke!
|
||||
//rdtsc(lo, hi);
|
||||
printk_info("POST: 0x%02x, TSC Lo: %d, Hi: %d\n",
|
||||
value, lo, hi);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue