Commit graph

39 commits

Author SHA1 Message Date
vinz6751 ff8a19b0e5 Implement logging to the COM port of our choice.
Also disable __NOINLINE__ for VBCC for the A2560/GENX 68k family as it causes problems.
2023-12-05 23:55:11 +01:00
Vincent Barrilliot 10cc43fb09 Work around problems with vsnprintf. logmsg should go away then because it's not working (I'm suspecting a problem with VBCC's vaargs).
Logging can now be enabled and doesn't crash MCP anymore.
2023-11-13 00:48:12 +01:00
Vincent Barrilliot 8952c193c3 Try make logging more stable 2023-11-12 18:30:11 +01:00
Vincent Barrilliot d1530dbbb6 Avoid warning 2023-11-11 23:54:11 +01:00
Vincent Barrilliot a3386b4e41 Avoid possible collision between our "log" function and the math function. Disabling all logging now seems to make the "backspace" bug disappear. 2023-11-11 14:46:32 +01:00
Vincent Barrilliot dd91bf5566 Tidy up the logging code 2023-11-03 23:22:54 +01:00
Vincent Barrilliot ad3795147a Merge Peter's stuff. Rework the Makefile so it takes care of everything.
This is work in progress.
Some stuff from Peter's C256 branch was commented and I uncommented it because I didn't want things disabled for the A2560 but they seem to cause problems with Calypsi 65816.
2023-11-03 00:25:05 +01:00
Vincent Barrilliot 3563bcf539 Tighten up logging stuff 2023-10-31 23:56:57 +01:00
Vincent Barrilliot 954dae8ced For the K/X, allow logging to channel A (text screen) without going through the console stuff. This is so we can start logging earlier, and also use that for debugging the console stuff itself. 2023-05-29 14:41:13 +02:00
Vincent Barrilliot e84eeaec39 Log on first UART by default. Long only errors by default 2023-04-16 16:10:46 +02:00
Vincent Barrilliot 48df968b98 Struggle to make things work. They dont. 2023-03-12 21:16:20 +01:00
Vincent Barrilliot 8a99341723 Work in progress, trying to merge Stefany's A2560X code in . At the moment it's crashing when calling ___main from startup_m68040.s. 2023-02-26 14:04:43 +01:00
Vincent Barrilliot 8b9edccbc6 Return default log level to something less verbose for normal use. 2023-01-31 21:59:22 +01:00
Vincent Barrilliot 1ddd549bf6 Improve logging to serial, add a lot of traces. Logging has a problem. Backspace doesn't work properly, boot from device crashes still. 2023-01-30 17:19:40 +01:00
Vincent Barrilliot b784f5dd17 Address more compile warnings 2022-06-14 00:15:00 +02:00
Vincent Barrilliot 462b05d634 Adapt for A2560U, includes modification of logging so to be able to log to the COM1. 2022-06-11 22:20:44 +02:00
Peter Weingartner 5210dbaab4 Issue #37
Updated CLI so that it sets the console settings to its liking on getting control, but turns echo back on the console before giving control to a program. Also cleaned up how the COMMAND setting is handled so it should work when a program quits as well.
2022-05-19 20:47:35 -04:00
Peter Weingartner fcd89cc069 FDC Experimental Code 2022-05-05 13:40:24 -04:00
Peter Weingartner 86e475e0de UART Channels
UART driver added for channels.
2022-04-27 16:21:06 -04:00
Peter Weingartner 2581b754d6 DIR with wildcards
DIR updated to support wildcards. Directory system calls fixed.
2022-04-24 15:37:56 -04:00
Peter Weingartner 6bd9908531 Code Cleanup: Warnings
Cleaned up code to remove compiler warnings.
2022-04-18 21:42:23 -04:00
Peter Weingartner 730bb6b209 Adjusted logging to low-level txt device 2022-04-17 20:32:08 -04:00
Peter Weingartner b315be98b7 Channel Redirection
Added basic support for redirecting channel IDs to other channels (sys_chan_swap and sys_chan_dev).

Current flash version is not quite working... panics on running an external file.
2022-04-16 21:32:07 -04:00
Peter Weingartner 7256df53c9 New FONT settings
Changed FONT setting to support multiple screens, to adapt to the hardware, and to support both 8x8 and 8x16 fonts.
2022-04-10 19:53:31 -04:00
Peter Weingartner d8bf48e4d3 FIX: Layout issue with panic screen 2022-03-11 16:01:38 -05:00
Peter Weingartner 57a97aee2b Integrated new text code into kernel
Switched the console device to use the new text routine.
2022-03-09 16:56:53 -05:00
Peter Weingartner e0f8d03baa Merge branch 'main' into a2560k 2021-12-10 20:32:37 -05:00
Vincent Barrilliot f95099cf41 Remove warnings, fix bug in fsys_findnext 2021-12-09 20:44:54 +01:00
Vincent Barrilliot 4508526f77 Address warning messages in cli.c and dependencies. Made internal handlers's argv const as it' safe to do for internal purposes and helps the compiler's optimizations. 2021-12-08 23:09:44 +01:00
Peter Weingartner 0806677048 FDC: SEEK and RECALIBRATE
SEEK and RECALIBRATE are now functional
2021-11-17 13:29:42 -05:00
Peter Weingartner d2725d7d54 More SYSCALLS, improved error handling
Added system calls and improved error information in the CLI
2021-10-29 18:45:58 -04:00
Peter Weingartner 3509e83475 Interrupt & Sound Fixes
Fixes to issues with interrupts. Added more support for exceptions going to the panic screen. Test commands for PSG and OPL3 now work.
2021-10-26 15:46:40 -04:00
Peter Weingartner fa2cbf366d Post Merge Cleanup 2021-10-25 19:14:57 -04:00
Peter Weingartner 1db976edb5 Added PANIC and version info
Added a panic screen that should come up for various exceptions. Made a few other minor changes.
2021-10-19 20:35:41 -04:00
Peter Weingartner a3dab23bac SYS_EXIT, RUN command
Added ability to RUN a PGX file and the SYS_EXIT call.
2021-09-30 13:39:39 -04:00
Peter Weingartner 1a3e3d79f5 Some refactoring and FSYS
Some refactoring of debug/tracing code and additions to FSYS and system information routines.
2021-09-22 16:08:09 -04:00
Peter Weingartner 52f1882a25 More syscalls and CLI beginning
Added more syscalls. Started the command line utility.
2021-09-19 19:16:41 -04:00
Peter Weingartner ca23f971e7 Low level PATA and SDC drivers
Added low level code for PATA and SDC devices.
2021-09-13 20:39:41 -04:00
Peter Weingartner 1dbc50c7fe SYSCALL framework
Initial framework for system calls created.
2021-09-13 13:07:00 -04:00