Commit Graph
100 Commits
Author SHA1 Message Date
TuxSH d4241fd8ef Add operator new/delete in IClient/IServer 2019-06-03 17:41:04 -07:00
TuxSH 504c74bc57 Fix build issues in make_object; fix linkage issues 2019-06-03 17:41:04 -07:00
TuxSH c47a9931d9 Handle table fixes & additions to makeobject 2019-06-03 17:41:04 -07:00
TuxSH 4a1021f220 Do the same for ILimitedResource; fix handle table def, for the moment 2019-06-03 17:41:04 -07:00
TuxSH ac6762bb6c Add more reflexivity to client/server interfaces 2019-06-03 17:41:04 -07:00
TuxSH e2d8316401 Fix KCondition variable; add timeout parameter to ILimitableResource 2019-06-03 17:41:03 -07:00
TuxSH cd1f74154d Use scoped_lock, etc 2019-06-03 17:41:03 -07:00
TuxSH 698fa9fcb0 Write KEvent::Initialize, fix build issues 2019-06-03 17:41:03 -07:00
TuxSH a035be66bd Rename initialize for client/server/parent 2019-06-03 17:41:02 -07:00
TuxSH 9318ab10b2 Add Client/Server interfaces 2019-06-03 17:41:02 -07:00
TuxSH dffb233423 Add KThread::StackParameters 2019-06-03 17:41:02 -07:00
TuxSH e57203a7d4 Implement WaitSynchronization 2019-06-03 17:41:02 -07:00
TuxSH 7fde5fbe40 Implement KSynchronizationObject 2019-06-03 17:41:02 -07:00
TuxSH 1684e1d35c Move KAutoObject.hpp to core/ 2019-06-03 17:41:01 -07:00
TuxSH be17f1f494 Make Result produce the same code as Nintendo's 2019-06-03 17:41:01 -07:00
TuxSH 672204c993 Put handle in its own file & fix it 2019-06-03 17:41:01 -07:00
TuxSH 6166262b5c Fix build issues 2019-06-03 17:41:00 -07:00
TuxSH b492096aed Add Result.hpp 2019-06-03 17:41:00 -07:00
TuxSH cfeebbd1c9 Fix KLinkedList; make it work even with strict aliasing 2019-06-03 17:41:00 -07:00
TuxSH 4078c9a07d Implement KLinkedList; untested 2019-06-03 17:41:00 -07:00
TuxSH ed982877bd Remove bugous MLQ reverse iterator 2019-06-03 17:41:00 -07:00
TuxSH 745fa84e5e Add mesosphere (VERY VERY WIP) 2019-06-03 17:41:00 -07:00
TuxSH 7ddaad615b loader; suppress gcc warning 2019-03-19 21:29:31 +01:00
TuxSH d0505d3c11 Revert "Merge pull request #313 from jul2003/master"
This reverts commit dad67de8af, reversing
changes made to af55d5872c.
2019-01-22 05:38:27 -08:00
TuxSH 536b89efae Add boost as submodule 2018-10-30 23:49:26 +01:00
TuxSH 06088d4c60 exosphere: fix neon regs being used => don't link against newlib, use -mgeneral-regs-only 2018-09-27 23:56:01 +02:00
TuxSH 210c6425c3 Cull unmainted exosphere/src/dbg folder 2018-09-27 22:54:30 +02:00
TuxSH d8391078c8 Fix creport according to latest libnx release changes 2018-09-19 15:03:50 +02:00
TuxSH 82b248aeac Merge pull request #138 from desowin/sdmmc-frequency
Rework sdmmc clocking configuration
2018-06-13 17:31:19 +02:00
TuxSH f5163fa35d Merge pull request #126 from desowin/sdmmc-autocal
Make sdmmc autocalibration follow TRM procedure
2018-06-06 18:09:00 +02:00
TuxSH 0491a21a99 Fix logic bug in stage2's main function 2018-06-05 16:18:02 +02:00
TuxSH b2139ed182 Pass screen status and mmc struct from stage1 to 2 2018-06-04 19:17:23 +02:00
TuxSH af8f63c187 Merge pull request #122 from neobrain/master
Build fix
2018-06-03 18:35:17 +02:00
TuxSH c9723d7b68 Refactor fusee's makefile 2018-05-27 00:59:02 +02:00
TuxSH ad5be3cae5 Refactor exosphère's linker script
To properly separate text/rodata/data+bss, page-alignment needs to be added, as well as some symbol definitions and support code...
2018-05-27 00:36:41 +02:00
TuxSH d57f4c54a9 Fix mmc->allow_voltage_switching assignment in sdmmc_init 2018-05-24 17:39:36 +02:00
TuxSH 4d43a86b60 Copy latest sdmmc driver to stage2 2018-05-24 01:17:13 +02:00
TuxSH fd77e5543e Add debug comment for exosphère 2018-05-23 18:46:39 +02:00
TuxSH 16ad355f45 Unstub "Validate section hashes." 2018-05-23 18:45:53 +02:00
TuxSH a4b1cf8b50 Stage1: fix SE issue too 2018-05-21 21:18:30 +02:00
TuxSH 561fa90669 Use uintX_t for the SE & copy bugfixed SE struct definition 2018-05-21 19:05:00 +02:00
TuxSH f39622c421 Stage2: Fix bug, add more debug printfs to nxboot. The CCPLEX doesn't turn on 2018-05-21 18:42:42 +02:00
TuxSH 5920f5a4b0 Stage2: fix various bugs in package2.c 2018-05-21 18:18:12 +02:00
TuxSH ffd0b5df6a Fix bug in stratosphere_get_ini1, etc. 2018-05-21 17:45:05 +02:00
TuxSH 0e9a304533 stage2: package2: bypass hash checks for now 2018-05-21 17:42:10 +02:00
TuxSH ecb83903c0 Stage1: fix potential alignment issue 2018-05-21 14:18:03 +02:00
TuxSH bf2c6dff25 Stage2: Add exception handlers 2018-05-21 03:50:53 +02:00
TuxSH c1687905a3 Fix stack overflow when chainloading stage2 2018-05-21 03:42:05 +02:00
TuxSH ea2693dd2d Fix exception handlers (thanks @fincs) 2018-05-21 03:39:18 +02:00
TuxSH 43d1816ac2 [stage1] Add exception handlers... which somehow don't work? 2018-05-21 02:24:41 +02:00
TuxSH 83d9d874e6 Fusee use CAR reboot for fatal errors 2018-05-20 23:52:09 +02:00
TuxSH 4ec7d0fc82 Remove packed when not needed 2018-05-20 22:57:25 +02:00
TuxSH 57ff5e694a Don't check for panics in stage2 2018-05-20 22:00:11 +02:00
TuxSH 3dd6ec5f6c wtf pmc reboot doesn't fully work -- display doesn't reinitialize 2018-05-20 16:56:15 +02:00
TuxSH f45bc83bc4 Introduce fatal_error 2018-05-20 16:18:48 +02:00
TuxSH ec7e0d923d Add custom panic driver 2018-05-20 14:11:46 +02:00
TuxSH c820375a86 Make struct tegra_pmc not packed 2018-05-20 01:40:23 +02:00
TuxSH 64cdd2e63f Actually don't use memcpy in sdmmc 2018-05-19 03:10:06 +02:00
TuxSH 2a98e2e3b8 Sync sdmmc changes between stage1 and 2 2018-05-19 02:50:50 +02:00
TuxSH 2bc2fe1452 Use memcpy instead of raw casts in sdmmc.c 2018-05-19 01:33:07 +02:00
TuxSH b4eeddd7e1 Revamp all the Makefiles (thanks @fincs @WinterMute)
... dependencies are now properly handled (e.g. header changes, etc.)
2018-05-19 01:07:27 +02:00
TuxSH e0a5acd0ba [stage2] Add more debugging printfs to package2.c, etc. 2018-05-18 00:24:06 +02:00
TuxSH 993db7ee95 Fix nxboot mkey rev misconception 2018-05-18 00:11:44 +02:00
TuxSH ec6d05892c Refactor nxboot package2 reading, work around sdmmc issue, other changes 2018-05-17 23:18:33 +02:00
TuxSH 9ed2f92cdc [stage2] Fix some FS bugs 2018-05-17 19:53:42 +02:00
TuxSH 5b5d3c69c2 [exosphere] Fix bug in package2.c 2018-05-17 16:15:30 +02:00
TuxSH 3dac6c9268 Fix bug in fusee: package2.c, etc. 2018-05-17 16:11:10 +02:00
TuxSH 1b07a07353 Fusee: Change package2 loading logic (untested) 2018-05-17 15:56:02 +02:00
TuxSH 5631b27449 Fix out-of-bounds partition r/w bugs in raw_dev.c 2018-05-17 14:39:16 +02:00
TuxSH 858b40e5fb GPT entry LBA range is inclusive 2018-05-17 14:38:19 +02:00
TuxSH 85bfbeccc3 Fix latest commit 2018-05-17 02:07:11 +02:00
TuxSH 52d2af86b6 Fix BCT version parsing 2018-05-17 01:54:19 +02:00
TuxSH 9309b0bed5 Don't overflow devoptabs, etc. 2018-05-17 01:53:32 +02:00
TuxSH 468a063c03 Load the appropriate package1 key. The warmboot fw is now properly read. 2018-05-16 23:19:55 +02:00
TuxSH 348b2457e0 Fix key derivation regression 2018-05-16 23:04:54 +02:00
TuxSH c71e7c8c2e [stage2] Add "hexdump" 2018-05-16 19:59:14 +02:00
TuxSH 0d5796fa0b Align crypto buffers to 16 bytes in key_derivation.c 2018-05-16 19:57:36 +02:00
TuxSH ab4518b9c1 Simplify some logic in derive_nx_keydata 2018-05-16 18:41:16 +02:00
TuxSH c0617982b8 Fix typo in decrypting all keyblobs (thanks @tslater2006 !) 2018-05-16 16:45:44 +02:00
TuxSH f84645e91f Simplify package1_get_encrypted_package1 2018-05-16 02:55:48 +02:00
TuxSH 34a658ce4c Fix package1_read_and_parse_boot0
Key derivation is now working
2018-05-16 01:46:08 +02:00
TuxSH db929925f3 Fix TSEC key fetching, thanks to @rajkosto 2018-05-16 00:37:07 +02:00
TuxSH 6c50723209 Fix tsec.c (thanks @rajkosto @tslater2006), fixes #106 2018-05-15 23:59:20 +02:00
TuxSH 9a86ffec68 Fix diskio.c, etc. 2018-05-15 23:54:33 +02:00
TuxSH 42fd4f73cf Remove stray debug printf in gpt.c 2018-05-15 22:10:45 +02:00
TuxSH 60dbc7c9d7 ┬┴┬┴┤( ͡° ͜ʖ‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌‌├┬┴┬┴ 2018-05-15 21:08:57 +02:00
TuxSH 615d5b0882 Merge pull request #105 from encounter/stage2-logic
[stage2] Invert a few checks
2018-05-15 20:52:06 +02:00
TuxSH 62ebf20e25 Fix typo in nxboot.c 2018-05-15 20:24:37 +02:00
TuxSH 1288f54965 Finish writing stratosphere_get_ini1 2018-05-15 19:50:20 +02:00
TuxSH 6efe91b083 boot: build as KIP (thanks @fincs !) 2018-05-15 19:38:04 +02:00
TuxSH 40521a8f63 Fix the syntax errors in the boot JSON files 2018-05-15 19:23:22 +02:00
TuxSH 3c0436b98f Write more code for stratosphere_get_ini1, make it and its caller take target_firmware 2018-05-15 16:09:06 +02:00
TuxSH 4e1a368b43 Write more of stratosphere_get_ini1 2018-05-15 12:38:07 +02:00
TuxSH af2de57fdc Embed exosphere, thermosphere, loader, pm, sm into fusee-secondary
Still needs boot and boot2 to be built as proper KIPs
2018-05-15 02:45:31 +02:00
TuxSH 4e12d55993 loader, pm, sm: build kip as only taget (thanks @fincs !) 2018-05-15 02:28:41 +02:00
TuxSH d9c2a54464 Make a top-level make build everything in order 2018-05-15 01:30:56 +02:00
TuxSH 8bf4cd1908 Fix string truncation warning in thermosphere 2018-05-15 01:25:12 +02:00
TuxSH 172a2b679c Fix strncpy bugs in fusée, etc. 2018-05-15 01:18:05 +02:00
TuxSH cae107557d Fix the remaining warnings in stratosphère 2018-05-15 00:54:12 +02:00
TuxSH 52114760b3 Ignore unused-but-set-variable in ipc_templating.h 2018-05-15 00:44:10 +02:00