Added custom log function for CBM machines.
The log function writes directly to the screen. Combined with the usage of PFS this means that the POSIX layer of the C library isn't referenced anymore thus reducing the memory requirements.
This commit is contained in:
parent
d864e73579
commit
fb4c42a357
8 changed files with 60 additions and 8 deletions
|
@ -74,6 +74,12 @@ typedef unsigned short uip_stats_t;
|
|||
|
||||
#define LOADER_CONF_ARCH "lib/unload.h"
|
||||
|
||||
#ifdef HAVE_LOGSCR
|
||||
void logscr(const void *msg, unsigned len);
|
||||
#else
|
||||
#define logscr(msg, len) write(STDERR_FILENO, msg, len)
|
||||
#endif
|
||||
|
||||
#if MTU_SIZE
|
||||
#define UIP_CONF_BUFFER_SIZE (UIP_LLH_LEN + MTU_SIZE)
|
||||
#else /* MTU_SIZE */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue