Commit graph

550 commits

Author SHA1 Message Date
TomAwezome
7989d5fcaa Fix K.CC and DoDistro, automatically find ATA drive SATA port.
Fix illegal forward reference compiler error in DiskAddDev.CC.
Change 32BitDemo.CC to use a #define for the square draw delay.
Fixed Span game bottom mass location and cost report.
Fix CastleFrankenstein slowdown on bare-metal when turning.
Fix TreeCheckers move radius.
Implement palette swapping for some games.
2021-06-26 20:36:19 -04:00
TempleProgramming
1cbc72e57b Added CosmicGL. 2021-06-26 04:10:21 -04:00
Z3N1THM4N
9a30b7f1a0 Remove docs folder from repo root 2021-06-25 22:16:59 -05:00
TomAwezome
9461667bb0 Show drive model & serial number in SATARep.
Fix mounting bugs.
Change AHCI buffer allocation location from Fs to zenith_task code heap.
Implement DiscEject, DiscLoad.
Change installer to eject disc after installation.
2021-06-25 23:06:56 -04:00
TomAwezome
907b136cc1 Fix drive initialization type report.
Fix drive probe not halting boot process when no ATAPI drives are found. #7
2021-06-24 21:16:45 -04:00
TomAwezome
2d83a110c3 Implement PCI fall-back routines for when PCIBIOS is unsupported.
Abstract PCI functions out from PCIBIOS.CC into their own file, add calls to PCIBIOS from PCI functions.
Fix AHCI BIOS handoff bug.
Raise version number.
2021-06-24 01:19:46 -04:00
TomAwezome
59eba5a7de Fix AHCIBufferAlign causing crashes on bare-metal.
Update 32-bit color graphics demo.
Add global Boolean to toggle window manager framebuffer writes.
2021-06-22 14:44:19 -04:00
TomAwezome
413b73db76 Fix missing BlkDev locks in AHCI read/write methods. 2021-06-17 03:43:29 -04:00
TomAwezome
138e503ccd Fix DVDImageRead.
Implement functions for AHCI ATAPI Seek and Start/Stop.
2021-06-16 20:47:21 -04:00
TomAwezome
2bf3d229bc Fix bare-metal installer invalid port string. 2021-06-15 21:41:22 -04:00
TomAwezome
674ef844b8 Fix AHCI initialization on bare-metal. 2021-06-15 01:09:35 -04:00
TomAwezome
baa862b268 Remove redundancies in AHCI RBlks and WBlks functions.
Clean up and reformat AHCI code.
2021-06-06 01:11:36 -04:00
TomAwezome
9a0c955bea Implement bare-metal AHCI install wizard.
Fix InstallDrive DriveCheck bug.
2021-06-04 04:28:05 -04:00
TomAwezome
fad8608b87 Improve AHCI performance by removing checks for blkdev max_reads and max_writes limits.
Fix AHCI port and command waits hanging entire OS by using Yield.
Fix DVD boot hardcoded AHCI port number, correctly search ports for ATAPI drive.
Fix compiler unused variable warnings in Mount2.
2021-06-02 17:18:26 -04:00
TomAwezome
0f9d6b43f8 Integrate AHCI into entire OS. Remove IDE support. 2021-06-01 16:35:27 -04:00
VoidNV
b974147dbf Add DiskAHCI.CC to Kernel, add ATAPI capacity read
Export read/write and reset AHCI functions
Create SATARep()
2021-05-26 21:27:49 -05:00
VoidNV
1d1c564760 Prototype AHCI ATAPI reading 2021-05-26 03:19:03 -05:00
TomAwezome
24853fa765 Improve logs on AHCI boot prototyping, update IDE DVD boot function order documentation. 2021-05-25 16:20:40 -04:00
TomAwezome
6dbaae46f5 Fix Chess crashing when run on one CPU core. 2021-05-24 05:16:29 -04:00
TomAwezome
e54dd6544a Fix Titanium crashing. 2021-05-24 04:34:51 -04:00
TomAwezome
3fa559706f Implement TCPSocketSendAll and TCPSocketSendString.
Update TCP Chat client and server programs to use new methods.
2021-05-24 01:03:16 -04:00
TomAwezome
239a5cdf87 Implement TCPRep for reporting bound/connected TCP Sockets.
Fix ARP not updating cached entries on ARPCachePut calls.
Fix DNS not updating cached entries on DNSCachePut calls.
Clean up repeated gross syntax in DHCPOfferParse.
Fix Host() and DNSRep IPV4 kludge, use proper switch case block based on result address family type.
Change CNetQueueEntry member variable length to packet_length.
Remove Debug statements when sockets use AF_INET6 or AF_UNSPEC, change to NetErr.
Change UDP message queues to be allocated and initialized when UDPSocket is called, instead of when binding.
Standardize filenames in Tests/ folder.
Remove old test files.
Remove outdated TODO comments.
2021-05-18 02:09:59 -04:00
TomAwezome
cf7ad1a5a7 Implement TCP Chat application.
Fix TCP Socket receive buffer read and write position miscalculations.
Fix TCP Socket send window endianness.
Implement non-blocking TCP Sockets, alter timeout logic.
Move network applications to Programs folder.
Fix TCP Socket Accept using wrong timeout value.
Fix TCP Socket Accept not removing and freeing pending connection requests upon connect failure.
2021-05-14 04:08:38 -04:00
TomAwezome
6f6c8df2e9 Fix TCP Socket Send/Receive not returning upon timeout. 2021-05-12 19:47:16 -04:00
TomAwezome
9f0e880fab Fix TCP Socket Connect not setting receive window class member. 2021-05-12 17:32:07 -04:00
TomAwezome
b99dd94db9 Change TomLight palette to Light, brighten colors, improve system responsiveness by lowering double-click wait time. 2021-05-12 15:57:59 -04:00
TomAwezome
3917898085 Fix TCP socket connect not sending ACK after receiving SYN ACK.
Fix missing socket FSM state transition after binding a new connection.
Fix TCP socket send unused sent_total variable.
Integrate INADDR_ANY address handling procedure used in TCP to UDP.
Change two TCP tests into TCPEchoClient.CC and TCPEchoServer.CC, alter to make compatible with Shrine's echo tests.
Split long lines of code to multiple lines to fit better in default resolution.
2021-05-12 02:43:59 -04:00
TomAwezome
05dd1af872 Begin TCP implementation.
Create Binary Search Tree (BST) generic data structure and methods, integrate TCP and UDP bound socket tree structures with BST system.
Fix incorrect variable name for packet data frames across stack codebase.
Split UDP and TCP into multiple files and their own folders for organization.
Update low-level Socket functions to return Bool types, for determining success/failure of state transitions.
Integrate updated Socket function return types into TCP and UDP methods.
Add NetStop() and NetStart() functions in PCNet-II code to easily halt and continue network activity.
Add NetDebug() log output function.
Update networking documentation to reflect changes, remove outdated documentation.
2021-05-10 20:15:27 -04:00
TomAwezome
3df5dd4a9f Implement NetRep for full network data report.
Implement IPV4Rep to report local, router, and subnet IPV4 addresses.
Expand UDPRep to report socket timeout and info about messages queued at the socket.
2021-03-01 03:55:49 -05:00
TomAwezome
91f380b0b6 Implement UDPRep to report info on currently bound sockets.
Clean up ARPRep some.
Fix NetworkToPresentation returning bad string.
Fix UDP Chat not closing bound socket.
Fix UDPSocketBind unintentional fall-through.
Add another Test for binding UDP sockets.
2021-02-27 22:33:34 -05:00
TomAwezome
bc30fdc12f Remove unnecessary parens in network stack. 2021-02-24 01:22:30 -05:00
VoidNV
c114aeff41 Set theme jekyll-theme-slate 2021-02-23 08:01:57 -06:00
TomAwezome
a9b1fb2da1 Standardize Networking method naming convention.
Update Networking docs.
Update description in Chat.CC.
Add clarifications to ICMP, DHCP methods.
Revised names of some networking methods for brevity.
2021-02-22 18:50:14 -05:00
TomAwezome
51efddc954 Clean up networking code. Fix missing DCDel in Stars wallpaper. 2021-02-22 03:35:59 -05:00
TomAwezome
f5d80414c4 Reduce UDP system overhead. 2021-02-22 03:08:08 -05:00
VoidNV
0b60b0dbe5 Fix spacing in /Doc/Tips.DD 2021-02-09 05:27:37 -06:00
VoidNV
4b1150df86 Rename MSRGet() -> MSRRead(), MSRSet() -> MSRWrite() 2021-02-09 05:20:31 -06:00
TomAwezome
40b85644ba Implemented proof-of-concept UDP chat program.
Added Port Control Protocol prototyping in Tests folder.
ARP Handler now warns when seeing requests with non-matching target IPs, and reports error on unrecognized operations.
ICMP Handler now warns when seeing ICMP packets with unrecognized type or code.
Set up NetLog to log info using colors and labels for clarity.
Fixed IPV4AddressParse string parameter bug, also put in a missing CompCtrlDel at the end of the method.
Fixed PresentationToNetwork not erroring when IPV4AddressParse fails.
Implemented UDP Sockets allowing 0 ms timeout and immediately returning on UDPSocketReceiveFrom if no messages were waiting at the socket.
Fixed UDP Handler using wrong address of packet to search bound socket addresses.
2021-02-06 06:05:14 -05:00
VoidNV
79e7caaad4 Add MSRGet() 2021-01-28 19:10:11 -06:00
TomAwezome
3c6187254a Fixed NetHandler NetQueue memory leak.
TODO: Suspected memory leak somewhere in UDP.
Added early NetHandler detection for IPV6, just warns.
Implemented default: cases for NetHandler routines, warns and outputs unrecognized IPV4 procotols and ethertypes.
Added few more NetLog()'s for clarity.
2021-01-27 14:22:28 -05:00
TomAwezome
fd665945e5 Fixed NetHandler interrupt breaking UDPSockets.
Implemented message queue system for UDPSockets to allow for better payload data management.
Improved UDPSocketClose, reduced memory leaks.
Changed ETHERNET_FRAME_SIZE back to 2000.
Fixed ZenithInclude hash bug via NetStart.CC change.
Added NetLog()'s in more of the stack for clarity.
Updated NetHandler NetQueuePull to a while loop.
2021-01-26 20:38:49 -05:00
VoidNV
b7ad56489f Remove DriveMap() 2021-01-24 02:19:02 -06:00
TomAwezome
de1878c1f7 Fixed 4 million context swap/second Networking bug.
Revamped NetHandlerTask into interrupt-based NetHandler.
Created NetLog to output Network info to, instead of outputting to zenith_task.
Updated NetStart.CC and Test files some.
Changed UDPSocketReceiveFrom behaviour to NetWarn instead of Debug when hits timeout and sees AF_UNSPEC.
2021-01-20 19:33:03 -05:00
TomAwezome
ca24a0ab32 Set up uncached PCNet packet buffers, cleaned up network stack code some. 2021-01-18 23:31:05 -05:00
TomAwezome
3ef48c1e28 Fixed PCNet DE index rollover packet buffer bug.
Added few more networking tests and changed variables in some of them for making it easier to differentiate them in Wireshark .pcap results.
2021-01-18 19:22:12 -05:00
TomAwezome
fc0bf860b1 Added .HC to .CC file conversion script to Zenith/Utils. 2021-01-18 16:49:23 -05:00
TomAwezome
25a76542cd Added more networking tests, lowered DNS timeout, raised DNS retries. 2021-01-17 15:24:37 -05:00
TomAwezome
4c0d6ae537 Updated DNSRep and ARPRep, added more networking tests, altered NetStart.CC 2021-01-17 04:31:08 -05:00
VoidNV
b3583e05bf Restore "Daemon" to "Seth" 2021-01-12 00:37:35 -06:00
TomAwezome
db32fdb367 Reformatted entire codebase.
Reformatted DolDoc files, adjusted sprites in documentation to reflect naming changes, corrected keybinding labels in AutoComplete window, fixed formatting error in Tips.DD.

Added DVD Boot AHCI prototyping into Kernel, displays detected AHCI configuration and halts mid-boot.

Small modifications to standard font, slight increase to mouse X and Y speed.
2020-12-23 18:27:18 -05:00