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 |
|
TuxSH
|
ab38217720
|
Fix mmu descriptor mistakes
|
2018-02-25 14:37:44 +01:00 |
|
TuxSH
|
b0079e404d
|
Clear pk2ldr in coldboot_main
|
2018-02-25 03:54:28 +01:00 |
|
TuxSH
|
a00e68e94a
|
Write a significant chunk of coldboot init...
...merge start.cold.s and start.warm.s, other changes, etc.
|
2018-02-25 03:34:15 +01:00 |
|
TuxSH
|
be67169390
|
Merge pull request #50 from lioncash/error
memory_map: Fix most compilation issues
|
2018-02-25 00:14:50 +01:00 |
|
TuxSH
|
cc4f6f7f84
|
Introduce memory_map.h
|
2018-02-24 17:22:55 +01:00 |
|
TuxSH
|
0a0a1b088d
|
Merge pull request #43 from lioncash/prototype
i2c: Fix -Wmissing-prototypes warnings
|
2018-02-23 19:18:46 +01:00 |
|
TuxSH
|
b3f8908ece
|
Merge pull request #44 from lioncash/mmu
mmu: Remove phys_addr parameter from mmu_unmap_range
|
2018-02-23 19:18:06 +01:00 |
|
TuxSH
|
8e4a5bf32b
|
Merge pull request #17 from lioncash/include
Add missing string.h includes
|
2018-02-23 14:51:27 +01:00 |
|
TuxSH
|
dd3498a356
|
Merge pull request #27 from lioncash/param
mmu: Fix compilation issues
|
2018-02-23 14:50:54 +01:00 |
|
TuxSH
|
91d1b047c4
|
Fix bpmpfw/Makefile, other changes.
|
2018-02-23 13:56:23 +01:00 |
|
TuxSH
|
5e1c137e26
|
Add mmio handling to mmu.h
|
2018-02-23 01:45:26 +01:00 |
|
TuxSH
|
663c446439
|
Mention that Nintendo copy-pasted some startup code from arm-trusted-firmware
|
2018-02-21 00:53:23 +01:00 |
|
TuxSH
|
5681622f65
|
Add mmu table builder functions (mmu.h)
|
2018-02-20 23:44:10 +01:00 |
|
TuxSH
|
81b874cc14
|
Fix minor build issues in gcm.c, etc.
|
2018-02-20 19:29:44 +01:00 |
|
TuxSH
|
a01d2c92b2
|
Add the crt0s
|
2018-02-20 01:27:15 +01:00 |
|
TuxSH
|
f629a629d1
|
Change argument types in se.c/h, implement read32le/be, etc.
|
2018-02-19 00:02:37 +01:00 |
|
TuxSH
|
9c588d4965
|
ic iallu doesn't broadcast at all, replace the "icache invalidate all" function
|
2018-02-18 23:45:44 +01:00 |
|
TuxSH
|
0cc2cf0dc0
|
Add cache+tlb functions
|
2018-02-18 23:11:11 +01:00 |
|