- Rename driver.intf.serial -> driver.io.serial (intf/ -> io/) - Move net protocols to driver.net.proto.* (net/ -> net/proto/) - arp, dhcp, eth2, icmp, ipv4, tcp, udp - Move netdev to driver.net.dev.* (netdev/ -> net/dev/) - e1000 - Move driver.net.pas into driver/net/ - Move driver.video.pas into driver/video/ - Rename arch.x86.faults -> arch.x86.fault, move to fault/ dir - Move driver.storage.ctl.ahci.pas into ctl/ahci/ - Move driver.storage.ctl.ide.pas into ctl/ide/ - Move linker.script and version to toolchain/ - Update all unit references and namespace doc 35 files changed, 237 insertions(+), 234 deletions(-)
This commit is contained in:
1 parent
6fa008ed79
commit
021aa0d82e
35 files changed
+237
-234
No files matched your search
+1
-1
@@ -110,7 +110,7 @@ procedure init;
|
||||
implementation
|
||||
|
||||
uses
|
||||
core.version, driver.timer.rtc, driver.intf.serial, driver.storage.vfs, io.syslog;
|
||||
core.version, driver.timer.rtc, driver.io.serial, driver.storage.vfs, io.syslog;
|
||||
|
||||
const
|
||||
INITIAL_CMD_CAP = 64;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Syslog - Kernel logging with multi-hook fan-out.
|
||||
|
||||
All core.version/driver logging goes through this unit. Output is dispatched
|
||||
to all registered hooks (driver.intf.serial, file, debug panel, etc.) simultaneously.
|
||||
to all registered hooks (driver.io.serial, file, debug panel, etc.) simultaneously.
|
||||
Replaces the logging portion of the old console.pas.
|
||||
|
||||
@author(Kieron Morris <[email protected]>)
|
||||
@@ -39,13 +39,13 @@ procedure writebin16ln(b: uint16);
|
||||
procedure writebin32(b: uint32);
|
||||
procedure writebin32ln(b: uint32);
|
||||
|
||||
{ Initialization — registers driver.intf.serial as default hook }
|
||||
{ Initialization — registers driver.io.serial as default hook }
|
||||
procedure init;
|
||||
|
||||
implementation
|
||||
|
||||
uses
|
||||
driver.intf.serial, core.strings;
|
||||
driver.io.serial, core.strings;
|
||||
|
||||
const
|
||||
MAX_HOOKS = 8;
|
||||
@@ -109,8 +109,8 @@ end;
|
||||
|
||||
procedure logChar(c: char);
|
||||
begin
|
||||
{ Also send each char to driver.intf.serial directly for immediate byte-level output }
|
||||
driver.intf.serial.send(COM1, uint8(c), 10000);
|
||||
{ Also send each char to driver.io.serial directly for immediate byte-level output }
|
||||
driver.io.serial.send(COM1, uint8(c), 10000);
|
||||
if c = #10 then begin
|
||||
dispatchLine;
|
||||
end else if c <> #13 then begin
|
||||
@@ -270,9 +270,9 @@ end;
|
||||
|
||||
procedure serialHook(msg: pchar);
|
||||
begin
|
||||
{ driver.intf.serial.sendString already sends CR+LF, but our dispatchLine sends
|
||||
{ driver.io.serial.sendString already sends CR+LF, but our dispatchLine sends
|
||||
the raw line without CR+LF, so sendString is appropriate here. }
|
||||
driver.intf.serial.sendString(msg);
|
||||
driver.io.serial.sendString(msg);
|
||||
end;
|
||||
|
||||
{ ---- Initialization ---- }
|
||||
@@ -286,9 +286,9 @@ begin
|
||||
HookCount := 0;
|
||||
LinePos := 0;
|
||||
{ Note: We don't register serialHook here because logChar already sends
|
||||
each character to driver.intf.serial directly. The hook system is for line-level
|
||||
each character to driver.io.serial directly. The hook system is for line-level
|
||||
consumers (file logging, debug panels, etc.) that want complete lines.
|
||||
If we registered serialHook, driver.intf.serial would get double output. }
|
||||
If we registered serialHook, driver.io.serial would get double output. }
|
||||
end;
|
||||
|
||||
end.
|
||||
Reference in new issue
Block a user