From 2218b39210ed11750ceed14c70f2a7a0522c8b0f Mon Sep 17 00:00:00 2001 From: Vincent Barrilliot Date: Mon, 13 Feb 2023 18:22:16 +0100 Subject: [PATCH] Fix warning, lower trace level --- flash.sh | 3 +++ src/dev/fsys.c | 2 +- src/dev/sdc.c | 2 +- src/m68k/bios_m68k.c | 9 +++++++-- src/version.h | 2 +- 5 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 flash.sh diff --git a/flash.sh b/flash.sh new file mode 100644 index 0000000..29ee048 --- /dev/null +++ b/flash.sh @@ -0,0 +1,3 @@ +#!/bin/sh +# This script will help you flash the Foenix from linux. Tested for A2560U only. +python3 C256Mgr/c256mgr.py --flash src/foenixmcp.bin --address 0x00000 diff --git a/src/dev/fsys.c b/src/dev/fsys.c index 8996415..f28c641 100644 --- a/src/dev/fsys.c +++ b/src/dev/fsys.c @@ -660,7 +660,7 @@ short fchan_read_b(t_channel * chan) { short total_read; char buffer[2]; - log(LOG_TRACE, "fchan_read"); + log(LOG_TRACE, "fchan_read_b"); file = fchan_to_file(chan); if (file) { diff --git a/src/dev/sdc.c b/src/dev/sdc.c index 5279d60..7da6520 100644 --- a/src/dev/sdc.c +++ b/src/dev/sdc.c @@ -4,7 +4,7 @@ #include "log_level.h" #ifndef DEFAULT_LOG_LEVEL - #define DEFAULT_LOG_LEVEL LOG_TRACE + #define DEFAULT_LOG_LEVEL LOG_INFO #endif #include "log.h" diff --git a/src/m68k/bios_m68k.c b/src/m68k/bios_m68k.c index 21921a2..66ac8c3 100644 --- a/src/m68k/bios_m68k.c +++ b/src/m68k/bios_m68k.c @@ -4,7 +4,11 @@ * NOTE: these routines are not called directly but are instead called through TRAP#15 */ -// #define KDEBUG + +#include "log_level.h" +#ifndef DEFAULT_LOG_LEVEL + #define DEFAULT_LOG_LEVEL INFO +#endif #include "log.h" #include "types.h" @@ -12,6 +16,7 @@ #include "interrupt.h" #include "memory.h" #include "proc.h" +#include "variables.h" #include "dev/channel.h" #include "dev/block.h" #include "dev/fsys.h" @@ -28,7 +33,7 @@ * Determine the correct system function implementation and call it. */ unsigned long syscall_dispatch(int32_t function, int32_t param0, int32_t param1, int32_t param2, int32_t param3, int32_t param4, int32_t param5) { - //TRACE7("DISPATCH(%lx,%ld,%ld,%ld,%ld,%ld,%ld)", function, param0, param1, param2, param3, param4, param5); + TRACE7("DISPATCH(%lx,%ld,%ld,%ld,%ld,%ld,%ld)", function, param0, param1, param2, param3, param4, param5); switch (function & 0x00f0) { case 0x00: /* Core System Calls */ diff --git a/src/version.h b/src/version.h index 7e94285..6f591dc 100644 --- a/src/version.h +++ b/src/version.h @@ -7,6 +7,6 @@ #define VER_MAJOR 1 #define VER_MINOR 0 -#define VER_BUILD 1 +#define VER_BUILD 2 #endif