git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/AxWin4 - Debugging quirks in ARCH=native
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
drv
/
serial.c
diff --git
a/KernelLand/Kernel/drv/serial.c
b/KernelLand/Kernel/drv/serial.c
index
bc7597e
..
df13fc7
100644
(file)
--- a/
KernelLand/Kernel/drv/serial.c
+++ b/
KernelLand/Kernel/drv/serial.c
@@
-5,6
+5,7
@@
* drv/serial.c
* - Common serial port code
*/
* drv/serial.c
* - Common serial port code
*/
+#define DEBUG 0
#include <acess.h>
#include <modules.h>
#include <fs_devfs.h>
#include <acess.h>
#include <modules.h>
#include <fs_devfs.h>
@@
-65,6
+66,7
@@
tSerialPort *Serial_CreatePort(tSerial_OutFcn output, void *handle)
void Serial_ByteReceived(tSerialPort *Port, char Ch)
{
void Serial_ByteReceived(tSerialPort *Port, char Ch)
{
+ LOG("Port=%p,Ch=%i", Port, Ch);
if( !Port )
return ;
if( Port == gSerial_KernelDebugPort )
if( !Port )
return ;
if( Port == gSerial_KernelDebugPort )
@@
-109,6
+111,7
@@
void Serial_ByteReceived(tSerialPort *Port, char Ch)
}
if( Ch == '\r' )
Ch = '\n';
}
if( Ch == '\r' )
Ch = '\n';
+ LOG("Dispatch to PTY");
PTY_SendInput(Port->PTY, &Ch, 1);
}
PTY_SendInput(Port->PTY, &Ch, 1);
}
UCC
git Repository :: git.ucc.asn.au