Commit Graph

445 Commits

Author SHA1 Message Date
James Benton
8add0d0503 elf2rpl: Align textSize, dataSize, loadSize. 2018-05-23 17:32:12 +01:00
James Benton
bc12c9abef elf2rpl: Fix REL32 -> REL16 conversion. 2018-05-23 16:11:50 +01:00
James Benton
ba2df5be91 wut.ld: Add missing fimport sections. 2018-05-23 15:36:35 +01:00
James Benton
c7325899be readRpl: Add SHT_RPL_CRCS value check 2018-05-23 15:36:25 +01:00
James Benton
541676ce38 elf2rpl: Fix SHT_RPL_CRCS section 2018-05-23 15:36:07 +01:00
James Benton
9bcf22e40f Add tools readrpl, udplogserver. 2018-05-23 12:35:24 +01:00
James Benton
959e4897c1 Fix type cast warnings in elf2rpl. 2018-05-23 11:25:49 +01:00
James Benton
09606f873e tools: Add be_val.h 2018-05-23 11:25:38 +01:00
James Benton
7e788f47af Add libdefaultheap, libgfd, libwhb. 2018-05-23 11:10:10 +01:00
James Benton
161331c4f4 Add CMake docs target which runs doxygen. 2018-05-23 11:09:54 +01:00
James Benton
fc10605172 Rewrite! 2018-05-23 09:47:28 +01:00
James
da8975303c
Merge pull request #62 from CreeperMario/escape-paths
wut-toolchain: Properly escape include/lib paths
2018-01-11 02:37:17 -08:00
James
5ae8226d68
Merge pull request #61 from CreeperMario/crash-fix
libWHB exception handler now works
2018-01-11 02:37:03 -08:00
CreeperMario
eb1a610f92 whb: Exception handler now works
* The context structure for the crash handler thread needs to be aligned
to at least 8 bytes.
* In my cases, the entry at the bottom of my stack always has a
back-chain value of 0x1. Of course, this address is not likely to be
part of the stack, so this should be considered to be the end of the
stack.
* During ISI exceptions, only a stack trace is printed, and during DSI,
disassembly and stack information is printed. For some unknown reason, I
never see register dumps.
2018-01-11 18:21:06 +10:30
CreeperMario
7dd128fe94 wut-toolchain: Properly escape include/lib paths
* This allows WUT to successfully operate within a path that contains spaces.
2017-12-23 09:37:32 +10:30
James Benton
d0f43d24b7 Fix size of OSThread structure 2017-11-01 11:00:18 +00:00
James
1ce68f6d58 Merge pull request #57 from CreeperMario/udp-log-fixes
More Miscellaneous Fixes and Features
2017-10-10 13:54:53 +01:00
CreeperMario
39d4599896 whb: Command Server connection stream now stays open.
* The stream will stay open until either an error occurs,
WHBCommandServerStop is called, or a null string is returned (the client
socket had been closed).
* The header file now includes wut.h, so that BOOL is defined.
2017-10-10 11:53:06 +10:30
CreeperMario
240514eff2 whb: Separate log dispatching into a separate inline function 2017-10-10 09:43:59 +10:30
CreeperMario
758e91f65f Revert "whb: Use MEM2 heap instead of DefaultHeap in logging functions"
This reverts commit ef34f600c7, meaning that MEMAllocFromDefaultHeapEx is now used again, instead of MEMAllocFromExpHeapEx and MEMGetBaseHeapHandle.
2017-10-10 09:22:13 +10:30
CreeperMario
76a8b8e292 readrpl: Return -1 instead of false in main()
* This suppresses a compiler warning emitted by clang, about returning a
boolean value when an integer is expected.
2017-10-10 09:12:54 +10:30
CreeperMario
23d6f0f5cb whb: Correct header file for command server
* Why did this NOT generate a build warning?
2017-09-02 07:16:57 +09:30
CreeperMario
5e84d0321d CI Ambulance 2017-09-01 21:01:46 +09:30
CreeperMario
0b2ca7c05e travis: Add macOS build target
* This is currently untested, and will be fixed if necessary during the PR process.
2017-09-01 18:26:10 +09:30
CreeperMario
ace7c0b364 whb: Implement a basic TCP-based command server kit.
* This server will listen for connections, and then listen on that
connection stream for, well, text. It will then close the connection and
send the string back to the main program.
2017-09-01 18:13:51 +09:30
CreeperMario
ef34f600c7 whb: Use MEM2 heap instead of DefaultHeap in logging functions 2017-09-01 14:30:08 +09:30
CreeperMario
51f3d4bdd7 whb: Logging functions use less RAM at expense of binary size. 2017-08-28 06:59:32 +09:30
CreeperMario
40ff966159 Re-organise .gitmodules file 2017-08-27 19:16:37 +09:30
CreeperMario
d44b7f774e Update cppformat v2 to fmtlib v4
* I did this mainly to remove some build warnings that were showing up
in cppformat v2 underneath clang (the default macOS compiler)
* At this point, WUT will build on macOS with no warnings whatsoever.
2017-08-27 18:41:08 +09:30
CreeperMario
5829abb4ef crt: Suppress warnings for pointer logic 2017-08-27 17:06:02 +09:30
CreeperMario
75bb7b5d10 whb: Rename "socketinit" to "libmanager" 2017-08-20 20:36:48 +09:30
CreeperMario
a2247e7b1e whb: Add simplistic socket library manager.
* This manager counts how many times the program has requested the
socket library be initialized, so that the socket library is not
mistakenly closed while other things are still using sockets.
* WHBInitializeSocketLibrary will call socket_lib_init() and also keep a
count on how many times it has been called.
* WHBDeinitializeSocketLibrary will call socket_lib_finish(), but only
if it has been called as many times as WHBInitializeSocketLibrary.
2017-08-20 19:16:27 +09:30
CreeperMario
20c7dbf2fb whb: Add ability to remove logging functions
* WHBRemoveLogHandler will look through the "registry" of logging
functions, and will set the entry to NULL if it matches what the user
passes.
* WHBLogUdpDeinit will correctly close the socket and shut down the
socket library in addition to removing its entry in the registry.
2017-08-20 18:17:07 +09:30
CreeperMario
ac4ce95f84 udplogserver: Flush output buffer when sent a message
* Because we are no longer adding a new line, which automatically
flushes the buffer.
2017-08-20 17:51:45 +09:30
CreeperMario
45f3cd71ab whb: Modification of logging functions
* WHBLogPrint and WHBLogPrint have been renamed to WHBLogWrite and
WHBLogWrite respectively.
* WHBLogPrint and WHBLogPrintf have been re-implemented to automatically
add a new line to the end of the string, and then send the string to
WHBLogWrite.
2017-08-20 16:57:43 +09:30
CreeperMario
84d1957066 udplogserver: Do not automatically add a new line to log outputs. 2017-08-19 21:23:20 +09:30
James
dd73b95579 Merge pull request #56 from CreeperMario/unrelated-fixes
Various small fixes
2017-08-06 17:52:14 +01:00
CreeperMario
90d13e5708 libwhb: Add a simplistic Cafe Log handler 2017-08-06 17:42:43 +09:30
CreeperMario
c0c1faa1e9 libwhb: Initialize FSCmdBlock in WHBUnmountSdCard 2017-08-06 17:11:15 +09:30
CreeperMario
492bad4382 crt: **Really** fix newlib lock 2017-08-06 16:56:17 +09:30
James Benton
96b24236f1 Fix newlib lock 2017-07-03 15:43:53 +01:00
James Benton
6bc6534a9f whb: Fix GPU hang reset. 2017-06-02 14:37:58 +01:00
James Benton
574eeef4f0 whb: Use OSGetTitleID to check if we were launched from WHB. 2017-06-02 14:37:58 +01:00
James
d796876a35 Update README.md 2017-06-02 13:59:20 +01:00
James Benton
c265a9f4db Fix udplogserver Linux build 2017-06-02 13:54:55 +01:00
James Benton
e0f1b03edf Add .travis.yml 2017-06-02 13:49:41 +01:00
James
8b4816d6f4 Update README.md 2017-06-02 13:32:58 +01:00
James Benton
04ec3338b7 appveyor: pls 2017-06-02 13:28:31 +01:00
James Benton
c2b09a3a28 appveyor: pls 2017-06-02 13:23:54 +01:00
James Benton
6a02035b2a appveyor: Change build to build_script 2017-06-02 13:22:12 +01:00