Michael Scire
c18af9f3d2
Finish smcCpuOff
2018-02-27 16:35:35 -08:00
Michael Scire
7a9e031bff
Uncomment more sleep/suspend code
2018-02-27 16:10:51 -08:00
Michael Scire
235b7b65e1
Uncomment BPMP firmware copy in LP0
2018-02-27 16:01:09 -08:00
Michael Scire
c2c6745f60
Implement save/restore current core context
2018-02-27 15:40:05 -08:00
Michael Scire
9a5bc05259
Fix missing titlekey revision assignment
2018-02-27 15:14:23 -08: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
Michael Scire
c4789a5a11
Skeleton smcCpuOff, fix building, fix smcConfigureCarveout
2018-02-26 17:41:31 -08: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
MerryMage
3d40051146
Rename set_core_entrypoint_and_context_id
2018-02-26 17:11:49 +00:00
Michael Scire
bda9dcbe73
Start implementing smcCpuSuspend
2018-02-26 02:00:17 -08:00
TuxSH
18d0a81bd5
Merge pull request #51 from lioncash/const
...
memory_map: Remove unnecessary const
2018-02-26 10:26:58 +01:00
Mat M
1de6b336bb
all: Make file-scope variables internally linked where applicable ( #57 )
...
Narrows the scope of visible symbols to where they're actually used. Also
makes it easier to see true globals in source files
(ones used from multiple translation units)
2018-02-26 00:42:21 -08:00
Mat M
c94cfe4898
lock: Use stdatomic.h ( #56 )
...
Provides the same assembly output while using the standardized interface
e.g.
0000000000000000 <set_priv_smc_in_progress>:
0: 90000000 adrp x0, 0 <set_priv_smc_in_progress>
4: 91000000 add x0, x0, #0x0
8: 52800022 mov w2, #0x1 // #1
c: d503201f nop
10: 085ffc01 ldaxrb w1, [x0]
14: 08037c02 stxrb w3, w2, [x0]
18: 35ffffc3 cbnz w3, 10 <set_priv_smc_in_progress+0x10>
1c: 72001c3f tst w1, #0xff
20: 54ffff81 b.ne 10 <set_priv_smc_in_progress+0x10> // b.any
24: d65f03c0 ret
2018-02-25 22:59:48 -08:00
Mat M
461105a501
fuse: simplify checks in fuse_get_reserved_odm and fuse_get_spare_bit ( #54 )
...
A separate variable isn't particularly necessary here, and given that the type
is unsigned, we only need to test the upper bound.
This also resolves two -Wtype-limits warnings
2018-02-25 21:23:31 -08:00
Mat M
fff3912c81
mc: Remove dead code in get_carveout_by_id ( #52 )
2018-02-25 21:13:07 -08:00
Mat M
991d4f1355
se: Remove memset in se_perform_aes_block_operation ( #53 )
...
We can just initialize the array to be zeroed out. This is safer and less error-prone,
since the initializer is now associated with the variable directly, making it
impossible to put code relying on the zeroed out state before it (unlike with memset).
2018-02-25 21:12:49 -08:00
Lioncash
b328effd9b
memory_map: Remove unnecessary const
...
Since the return value isn't a pointer thing doesn't have much use.
2018-02-25 23:56:47 -05:00
TuxSH
969b781a68
Failed attempt to fix loops not being unrolled, other fixes.
2018-02-25 21:41:16 +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