Commit Graph
100 Commits
Author SHA1 Message Date
TuxSH 77faa00a57 Rewrite package2.c 2018-05-09 00:19:51 +02:00
TuxSH 7df879d346 Change the allocation logic in stratosphere.c 2018-05-08 18:46:54 +02:00
TuxSH 70bb496388 Refactor stage1's and stage2's main.c files 2018-05-08 16:51:43 +02:00
TuxSH 50498e3b20 Don't deinit the display yet, for now 2018-05-08 15:44:48 +02:00
TuxSH d43255d484 Fix bug in crt0 2018-05-08 14:56:17 +02:00
TuxSH 461e886244 Make di.c accept arbitrary FB addresses, fix flickering issues 2018-05-08 13:45:37 +02:00
TuxSH 170cd2d8c4 [stage2] Forgot to change that, too 2018-05-08 13:45:37 +02:00
TuxSH d390ead56f Fix faulty IRAM check in check_32bit_address_range_in_program 2018-05-08 13:45:37 +02:00
TuxSH 880f49cfa5 Fix inverted condition issue in check_32bit_address_range_loadable 2018-05-08 13:45:37 +02:00
TuxSH 1fd098e074 [stage1] Fix DEFAULT_BCT0_FOR_DEBUG 2018-05-08 13:45:37 +02:00
TuxSH e8306361f0 Rewrote crt0, init, and chainloading code
start.s, init.c, linker.ld and linker.specs are meant
to be re-used by user applications, should they remove the defines
from init.c and the .chainloader* sections from the linker script
2018-05-08 13:45:37 +02:00
TuxSH 699ddfc043 Simplify fsdev_set_default_device 2018-05-08 13:44:47 +02:00
TuxSH 16ccc8a241 Merge branch 'master' of github.com:Atmosphere-NX/Atmosphere 2018-05-07 23:06:01 +02:00
TuxSH 5084f09081 Fix warning/error, etc. in fs_dev.c 2018-05-07 23:05:53 +02:00
TuxSH 25db9fcc4a Fix fsdev_set_default_device bug 2018-05-07 14:25:01 +02:00
TuxSH 7695b5bdbd [stage2] Fix the ordering of rules in linker script 2018-05-07 10:53:41 +02:00
TuxSH 75dfcd07a9 Add chainloader (stage2) (need to edit more files) 2018-05-07 01:02:23 +02:00
TuxSH 2c07b5a2fb Rework fs_dev mount code 2018-05-06 18:41:40 +02:00
TuxSH a29e800661 Revert "Fix mount code in fs_dev.c"
This reverts commit 306555e522.
2018-05-06 18:14:08 +02:00
TuxSH 8b418732ad Upgrade FatFs to R0.13b 2018-05-06 18:00:22 +02:00
TuxSH 4265dc7b65 Don't pass the mmc struct around 2018-05-06 17:22:12 +02:00
TuxSH 68eec056a9 Fix const-correctness issue in sdmmc.h 2018-05-06 15:22:35 +02:00
TuxSH 17545ac103 Merge branch 'master' of github.com:SciresM/Atmosphere-NX 2018-05-06 15:02:45 +02:00
TuxSH 1aa6b92bc4 Normalize drivers between stage1 and 2 2018-05-06 15:02:13 +02:00
TuxSH 306555e522 Fix mount code in fs_dev.c 2018-05-06 13:03:45 +02:00
TuxSH 8f5a5acb06 Fix the g_bct0 overflow issue, malloc now works
The linker chose the unused symbol from loader.c.
2018-05-06 11:46:48 +02:00
TuxSH 6e5d4b8fc9 Fix bss overflow error 2018-05-06 00:45:30 +02:00
TuxSH 8648cac77b [stage2] Remove printk, introduce UTF-8 console stdio 2018-05-05 23:56:18 +02:00
TuxSH 02217bde55 Merge branch 'master' of github.com:SciresM/Atmosphere-NX 2018-05-05 22:05:19 +02:00
TuxSH ddea5484b6 [stage1] support utf8 in fatfs 2018-05-05 22:05:11 +02:00
TuxSH 30b9873ab3 Use the bloated string formatting functions from newlib 2018-05-05 18:35:00 +02:00
TuxSH 67b76cc8f1 Instead of passing FatFS structs around, unmount; other changes 2018-05-05 17:33:49 +02:00
TuxSH 0fca6c2296 [stage2] Add fatfs devoptab wrapper, change ffconf accordingly 2018-05-05 16:30:25 +02:00
TuxSH e5fff14689 Move fatfs around 2018-05-05 00:11:22 +02:00
TuxSH 0d344e45af Initialize heap, increase stack size 2018-05-04 23:56:01 +02:00
TuxSH dc3099781d Change defaut BCT0 for debug 2018-05-04 21:52:38 +02:00
TuxSH c6ee1bffb7 Display PoC 2018-03-15 23:12:38 +01:00
TuxSH b48e71ab82 Import hwinit (with small changes) and exosphère drivers 2018-03-15 16:14:41 +01:00
TuxSH 171c82ea9e Add build system for fusee 2018-03-14 21:14:02 +01:00
TuxSH 965971edbd Fix off-by-one mkey revision errors 2018-03-14 16:03:16 +01:00
TuxSH 6a0946378a Remove useless "pack" pragmas 2018-03-11 16:32:33 +01:00
TuxSH 52f7adfc50 Add spsr_el3 to cpu_context 2018-03-11 12:53:52 +01:00
TuxSH 3f627798e7 Fix and/bic inversions in finalize_powerdown 2018-03-09 22:56:41 +01:00
TuxSH 3d72183471 Add 4.x configitem stuff 2018-03-09 12:47:58 +01:00
TuxSH b35c418558 memcpy(x, NULL, 0) is undefined behavior 2018-03-08 11:17:46 +01:00
TuxSH ff9322a468 Use and adapt the UART driver from hekate/hwinit 2018-03-08 01:02:45 +01:00
TuxSH a409016a88 Fix fuse_get_hardware_type for 4.x 2018-03-07 23:24:38 +01:00
TuxSH d5bb96c0f8 Fix and with mask issue in smc_user.c 2018-03-07 19:24:52 +01:00
TuxSH 54fac349f2 Fix user_generate_specific_aes_key wrong register use 2018-03-07 15:50:50 +01:00
TuxSH 4f0e8b8467 Fix bug in user_generate_specific_aes_key, add other read/write le/be funcs 2018-03-07 15:11:53 +01:00
TuxSH 71f01aaa43 Fix freudian slip 2018-03-07 14:34:47 +01:00
TuxSH d2b1febb43 Implement dbg log interface 2018-03-06 01:29:06 +01:00
TuxSH a65d380889 Make enum names consistent 2018-03-05 23:59:46 +01:00
TuxSH 827280ca12 Fix lock_try_acquire(&g_is_user_smc_in_progress) calls 2018-03-05 21:07:09 +01:00
TuxSH 5e75d8b2bd Fix func_copy null deref (?) 2018-03-05 09:41:39 +01:00
TuxSH 4c38be1560 Fix lock clear in warmboot_main 2018-03-04 21:57:25 +01:00
TuxSH 3e128a8b3e Add TI charger stuff to warmboot_main, add 4.x hw_type stuff as well 2018-03-04 14:04:49 +01:00
TuxSH ca80408349 Fix latest commit and set MAILBOX_NX_SECMON_BOOT_TIME 2018-03-04 00:36:40 +01:00
TuxSH a6c7a2c57e Refactor 32-bit register definitions 2018-03-03 20:23:13 +01:00
TuxSH c0f99fcd1c Fix invalidate_icache_all dsb correctness 2018-03-03 20:03:52 +01:00
TuxSH 3d974857e4 warmboot_main: fix panic reason in panic code 2018-03-03 19:49:25 +01:00
TuxSH 4a2c9229ee Fix warmboot vs cpu_on check 2018-03-03 19:43:44 +01:00
TuxSH 03c1ad7119 Add most of warmboot_main 2018-03-03 19:31:22 +01:00
TuxSH be6b67669f Finish writing warmboot _crt0_ 2018-03-03 16:58:23 +01:00
TuxSH 93864f2289 Use the boot critical section 2018-03-03 03:43:46 +01:00
TuxSH 92d2abaf1c Fix section alignment, attempt to clean up the crt0 a bit 2018-03-03 02:02:10 +01:00
TuxSH bf63a077b1 Implement critical section (Lamport's Baker s algorithm)...
thanks @fincs for sample code
2018-03-02 23:37:36 +01:00
TuxSH cad9cdc6e0 Reintroduce unmap_* in package2.c 2018-03-02 07:33:47 +01:00
TuxSH 63d0b08ac4 Rewrite relocation stuff 2018-03-02 02:47:19 +01:00
TuxSH 6903b20579 Fix wrong subsection name 2018-03-01 21:28:50 +01:00
TuxSH 82f10b4320 Implements missings parts of pk2ldr, refactor relocation a bit 2018-03-01 19:11:09 +01:00
TuxSH 568781bc7e Strongly validate SPL's buffer address 2018-03-01 12:35:02 +01:00
TuxSH 7850d3fd57 Put the loaded bootconfig in the evt page 2018-03-01 11:06:55 +01:00
TuxSH 1d621f3bf4 Fix tzram_map_all_segments 2018-03-01 02:36:16 +01:00
TuxSH 78b9698260 Finish writing coldboot_main 2018-03-01 01:40:09 +01:00
TuxSH 19dda5ed48 Can't copy to VAs if VA don't exist (at that point of the program) 2018-03-01 01:13:10 +01:00
TuxSH e34d86b16f Fix the set_memory_registers_enable_mmu call 2018-03-01 00:05:18 +01:00
TuxSH 3d4dcdde13 Fix ttbl init pointer arith bug, other fixes 2018-02-28 23:35:30 +01:00
TuxSH 0a89831193 Clear bss at runtime like Nintendo actually does 2018-02-28 22:29:17 +01:00
TuxSH 303774aeb7 Use bic instead of and in finalize_powerdown 2018-02-28 20:01:42 +01:00
TuxSH 6be5b0a52f Implement flush_dcache_all_tzram_pa and invalidate_icache_all_inner_shareable_tzram_pa for the crt0s 2018-02-28 19:06:41 +01:00
TuxSH e5f293e004 Implement and use set_memory_registers_enable_mmu 2018-02-28 13:32:18 +01:00
TuxSH 64c8612342 Fix wrongly named register in __set_memory_registers, add prototype 2018-02-28 07:32:14 +01:00
TuxSH 93634d08e3 Implement __set_memory_registers 2018-02-28 02:37:08 +01:00
TuxSH a90a431d61 Refactor save/restore_current_core_context, fix memory ordering issue with inline asm 2018-02-28 01:59:50 +01:00
TuxSH 602507ee8f Rename cache.s/.h to arm.s/.h 2018-02-27 22:29:47 +01:00
TuxSH 5bade9ee1c Use specs file, remove -nostartfiles 2018-02-27 20:14:12 +01:00
TuxSH 0258324872 Use provided __libc_init_array and __libc_fini_array, bugfixes 2018-02-27 16:10:56 +01:00
TuxSH 24b15dad40 Unstub lma2vma code 2018-02-27 13:26:51 +01:00
TuxSH b0cb819b06 Add proper linkscript...
...adapted from @fincs' own linkscripts
2018-02-27 04:19:38 +01:00
TuxSH 23e9a8369a Fix Makefile 2018-02-27 01:00:58 +01:00
TuxSH 9384546753 Adapt code to match last commit, link in bpmpfw_bin(_size) 2018-02-26 22:30:51 +01:00
TuxSH 984ade3ede Merge pull request #58 from MerryMage/context_id-rename
Rename set_core_entrypoint_and_context_id
2018-02-26 22:26:46 +01:00
TuxSH c7d83c6eb6 Rewrite the memory map-related code...
...other style fixes, etc.
2018-02-26 22:09:35 +01:00
TuxSH 18d0a81bd5 Merge pull request #51 from lioncash/const
memory_map: Remove unnecessary const
2018-02-26 10:26:58 +01:00
TuxSH 4d3f1f6ae8 Remove built files that somehow got here 2018-02-25 22:36:32 +01:00
TuxSH 969b781a68 Failed attempt to fix loops not being unrolled, other fixes. 2018-02-25 21:41:16 +01:00
TuxSH ed5f43ef39 Update .gitignore 2018-02-25 20:03:30 +01:00
TuxSH b0ea9c1a0b Move source files to src/, add Makefile, fix all build and linkage errors, etc. 2018-02-25 20:00:50 +01:00
TuxSH 4c7aa566f0 Fix user page mmu mapping and naming scheme 2018-02-25 15:12:49 +01:00