Michael Scire
fb16e8c316
socket: fix config size calculations
2021-04-11 03:58:55 -07:00
Michael Scire
7d528a30df
htc: implement socket driver (socket api not really impl'd yet)
2021-04-11 03:58:54 -07:00
Michael Scire
d23bc85d38
htcs: fixes, echo server is now fully functional
2021-04-11 03:58:53 -07:00
Michael Scire
d5e748ec4f
htcs: implement virtual socket collection
2021-04-11 03:58:52 -07:00
Michael Scire
2850786a0b
htcs: hook up HtcsService to rpc client
2021-04-11 03:58:51 -07:00
Michael Scire
98b482a766
htcs: hook manager up to (unimplemented) manager impl
2021-04-11 03:58:49 -07:00
Michael Scire
099594469b
htcs: hook service objects up to (unimplemented) manager apis
2021-04-11 03:58:49 -07:00
Michael Scire
1af323f5b8
htcfs: implement OpenDirectory/CloseDirectory
2021-04-11 03:58:47 -07:00
Michael Scire
249daa0222
sf: optimize argument parsing for const LargeData &
2021-04-11 03:58:46 -07:00
Michael Scire
116e4e88b3
htc: fix htcfs sf definition
2021-04-11 03:58:45 -07:00
Michael Scire
1af137ab1b
htc: add htcfs server/service object skeletons
2021-04-11 03:58:44 -07:00
Michael Scire
3eaa1782fd
htc: add htcfs service api definitions
2021-04-11 03:58:43 -07:00
Michael Scire
5199b3edaa
htcs: add hipc server/service object skeletons
2021-04-11 03:58:43 -07:00
Michael Scire
93966fd4b1
htc: skeleton HtcsManagerImpl, implement HtcsMonitor
2021-04-11 03:58:43 -07:00
Michael Scire
0caf11755e
htcs: add sf interface info/types
2021-04-11 03:58:42 -07:00
Michael Scire
8d6c9bb9ee
htc: skeleton constructors for htcmisc
2021-04-11 03:58:38 -07:00
Michael Scire
6a99b7fcd5
htc: implement mux side of connecting (and more)
2021-04-11 03:58:38 -07:00
Michael Scire
fda4ddca62
htc: declare and begin impl of HtclowManagerImpl interface
2021-04-11 03:58:37 -07:00
Michael Scire
042de46692
htc: implement HtclowDriver
2021-04-11 03:58:35 -07:00
Michael Scire
b6d73580ed
htc: begin skeletoning types for HtcmiscImpl
2021-04-11 03:58:35 -07:00
Michael Scire
53b04c5225
htc: hook up creation of the htc manager service object
2021-04-11 03:58:35 -07:00
Michael Scire
276c3f8434
htc: module id names, skeleton rest of main
2021-04-11 03:58:34 -07:00
Michael Scire
e5c573e354
rapidjson: add customization point for allocation/asserts
2021-04-11 03:58:33 -07:00
Michael Scire
5558da2740
rapidjson: import -master as ams::rapidjson
2021-04-11 03:58:32 -07:00
Michael Scire
c19e50bff1
htc: implement much of worker receive logic
2021-04-11 03:58:31 -07:00
Michael Scire
6a4247a6ed
htc: free ourselves from the tyranny of numerical enums
2021-04-11 03:58:30 -07:00
Michael Scire
9fd6ed27af
htc: implement htclow listener thread
2021-04-11 03:58:30 -07:00
Michael Scire
a56a4aed77
htc: implement complete usb driver
2021-04-11 03:58:29 -07:00
Michael Scire
7f16e202eb
htc: implement (fixing linker errors) through HtclowManagerImpl::OpenDriver
2021-04-11 03:58:29 -07:00
Michael Scire
d664c8ed8a
htclow: fix copyright headers, skeleton more manager types
2021-04-11 03:58:28 -07:00
Michael Scire
3d535e6103
htc: skeleton much of the type hierarchy for htclow manager
2021-04-11 03:58:28 -07:00
Michael Scire
d2102cb585
htc: skeleton some more of main
2021-04-11 03:58:28 -07:00
Michael Scire
1a5134d2d2
htc: skeleton main file/sysmodule dir
2021-04-11 03:58:27 -07:00
Michael Scire
2f17a76901
psc: fix pm module init
2021-02-15 19:51:58 -08:00
Michael Scire
89b7a83d3b
usb: fix wrong command id for AppendConfigurationData
2021-02-15 19:51:58 -08:00
Michael Scire
570e5ceccb
usb: add ds client api
2021-02-15 19:51:58 -08:00
Michael Scire
66212b7926
dns.mitm: support % in hosts file as stand-in for environment identifier
2021-02-02 12:16:30 -08:00
Michael Scire
fb48bd2766
dns.mitm: add GetAddrInfo redir, AtmosphereReloadHostsFile, debug logging control
2021-02-02 12:16:30 -08:00
Michael Scire
906a450ac3
dns.mitm: parse redirections from hosts file
2021-02-02 12:16:28 -08:00
Michael Scire
1314374890
dns: implement GetHostByName redirection (backend TODO)
2021-02-02 12:16:27 -08:00
Michael Scire
d8fd09fd08
dns: skeleton passthrough mitm
2021-02-02 12:16:27 -08:00
Michael Scire
f7863af736
dd: fix include, note gcc-11 TODO
2021-02-02 12:16:26 -08:00
Michael Scire
b209249e12
ams_mitm: update for new sf semantics
2021-02-02 12:16:24 -08:00
Michael Scire
0b2c4bb70e
util::unique_lock, update loader to new sf semantics
2021-02-02 12:16:22 -08:00
Michael Scire
28d9b78ff8
ncm: update for new sf semantics
2021-02-02 12:16:22 -08:00
Michael Scire
29b3baf678
util::string_view, update pgl for new sf semantics
2021-02-02 12:16:21 -08:00
Michael Scire
b58f3d9174
ro: reduce memory usage by excising (unused) std::malloc
2021-02-02 12:16:21 -08:00
Michael Scire
af65f58109
ro: update for new sf semantics
2021-02-02 12:16:20 -08:00
Michael Scire
03654bacf6
sm, spl: update to use new sf semantics
2021-02-02 12:16:20 -08:00
Michael Scire
637c44f64d
libstrat: convert to experimental new (super-accurate) sf allocation semantics
2021-02-02 12:16:20 -08:00
Michael Scire
f62751fe0f
os: implement 11.x SdkReplyAndReceive
2021-01-13 10:41:29 -08:00
Michael Scire
26369e34f1
ams: use util::SNPrintf over std:: (size/linker improvements)
2021-01-13 10:41:28 -08:00
Michael Scire
128884fb56
sf: alter serialization to re-use as much logic as possible
2021-01-13 10:41:28 -08:00
Michael Scire
ced1312dc7
sm: implement accurate request deferral semantics
2021-01-05 15:14:01 -08:00
Michael Scire
90f2c7b349
strat: fix board namespacing for nintendo::nx
2020-12-29 13:07:58 -08:00
Michael Scire
e82a57dc85
ams: resolve source dir inconsistency
2020-12-29 13:07:57 -08:00
Michael Scire
c4215bc6dd
ams: update five -> aula, per CalWriterManu
2020-12-28 17:34:07 -08:00
Michael Scire
330181364e
loader: correct GetCapabilityId allowal
2020-12-19 10:21:51 -08:00
Michael Scire
49f619600b
fusee: update for 11.0.1
2020-12-11 03:49:02 -08:00
Michael Scire
af44769939
fs: add ProgramIndexMapInfo
2020-12-11 03:48:58 -08:00
Michael Scire
fd5212f399
fs: update + consolidate path normalization logic
2020-12-11 03:48:57 -08:00
Michael Scire
1aa8a27f17
fs: move file storage to common
2020-12-11 03:48:57 -08:00
Michael Scire
8aa6f4253d
IStorage: rename access check helpers
2020-12-11 03:48:57 -08:00
Michael Scire
7c4ada41fc
fsa: *Impl -> Do*
2020-12-11 03:48:56 -08:00
Michael Scire
e5bb9eded1
fs/system: deduplicate RomFs code
2020-12-11 03:48:56 -08:00
Michael Scire
2c3ccef17e
err: fix narrowing conversion
2020-12-03 12:54:23 -08:00
Michael Scire
49c1ace890
erpt: update for 11.0.0 ( closes #1218 )
2020-12-03 12:48:16 -08:00
Michael Scire
a3ab3dc25e
erpt: update category list
2020-12-02 06:53:24 -08:00
Michael Scire
4dca2a1573
loader: support 11.x DisableDeviceAddressSpaceMerge
2020-12-02 06:53:19 -08:00
Michael Scire
4958ea6d93
erpt: lightly update (TODO: use context, do new svc stuff)
2020-12-02 06:53:07 -08:00
Michael Scire
3d99fa326d
sm: implement UserService::DetachClient
2020-12-02 06:53:06 -08:00
Michael Scire
e2c855d4ef
loader: update for 11.0.0 (anti-dg + set program args abi)
2020-12-02 06:53:06 -08:00
Michael Scire
d3841d4e60
pgl: update for 11.0.0
2020-12-02 06:53:06 -08:00
Michael Scire
093c064fb6
erpt: add update autogenerated ids
2020-12-02 06:53:04 -08:00
Michael Scire
33ea9ed3aa
fs: fix RomFs GetEntryType (fixes mariko daybreak)
2020-12-02 06:53:00 -08:00
Michael Scire
e133d475ee
ldr/hbl: support address space width overrides
2020-12-02 06:52:59 -08:00
Michael Scire
23609fb983
exo: implement start of mariko fatal handler
2020-12-02 06:52:57 -08:00
Michael Scire
11e010b0e6
powctl: implement full bq24193 driver
2020-12-02 06:52:49 -08:00
Michael Scire
0710185c28
i2c: add register acccessor helpers
2020-12-02 06:52:49 -08:00
Michael Scire
5b228da4b4
powctl: add ChargerDriver body (needs impl)
2020-12-02 06:52:48 -08:00
Michael Scire
8251ade5a0
pinmux: implement updated initial config api
2020-12-02 06:52:48 -08:00
Michael Scire
0804f0e3b5
dd: implement DeviceAddressSpaceType api
2020-12-02 06:52:48 -08:00
Michael Scire
f11884e0fe
boot: refactor battery checking to use new powctl apis
2020-12-02 06:52:47 -08:00
Michael Scire
d2b6c6c818
powctl: implement client api (needs board-specific impl)
2020-12-02 06:52:47 -08:00
Michael Scire
baef1c5151
pwm: implement driver for boot sysmodule
2020-12-02 06:52:47 -08:00
Michael Scire
442c15d78c
i2c: implement remaining required driver logic
2020-12-02 06:52:46 -08:00
Michael Scire
3d423c4e0e
i2c: command list format, get boot down to linker errors
2020-12-02 06:52:46 -08:00
Michael Scire
134d7f2d9f
i2c/gpio: hook up open session for sf interface
2020-12-02 06:52:46 -08:00
Michael Scire
8e2101c403
i2c: implement driver init api
2020-12-02 06:52:45 -08:00
Michael Scire
462ab175af
i2c: implement BusAccessor except Send/Receive/WriteHeader
2020-12-02 06:52:45 -08:00
Michael Scire
f99c30920b
boot: add rgltr/clkrst overrides, skel I2cBusAccessor
2020-12-02 06:52:44 -08:00
Michael Scire
de95812488
i2c: add auto-generated bus/device map
2020-12-02 06:52:44 -08:00
Michael Scire
778bea6e41
i2c: begin skeleton device driver framework
2020-12-02 06:52:44 -08:00
Michael Scire
663705c522
gpio: remove copy-pasted unused file
2020-12-02 06:52:44 -08:00
Michael Scire
41bcdc9c1f
gpio: implement more of server library for boot sysmodule client usage
2020-12-02 06:52:43 -08:00
Michael Scire
3756f81d9e
wec: implement wec driver components for boot sysmodule
2020-12-02 06:52:43 -08:00
Michael Scire
57c40bca06
gpio: add (most of) driver framework for boot sysmodule usage
2020-12-02 06:52:43 -08:00
Michael Scire
120c63b612
ddsf: implement namespace
2020-12-02 06:52:42 -08:00
SciresM
791b402320
sdmmc: implement driver suitable for fs + bootloader
...
* sdmmc: begin skeletoning sdmmc driver
* sdmmc: add most of SdHostStandardController
* sdmmc: implement most of SdmmcController
* sdmmc: Sdmmc2Controller
* sdmmc: skeleton implementation of Sdmmc1Controller
* sdmmc: complete abstract logic for Sdmmc1 power controller
* sdmmc: implement gpio handling for sdmmc1-register-control
* sdmmc: implement pinmux handling for sdmmc1-register-control
* sdmmc: fix building for arm32 and in stratosphere context
* sdmmc: implement voltage enable/set for sdmmc1-register-control
* util: move T(V)SNPrintf from kernel to util
* sdmmc: implement BaseDeviceAccessor
* sdmmc: implement MmcDeviceAccessor
* sdmmc: implement clock reset controller for register api
* sdmmc: fix bug in WaitWhileCommandInhibit, add mmc accessors
* exo: add sdmmc test program
* sdmmc: fix speed mode extension, add CheckMmcConnection for debug
* sdmmc: add DeviceDetector, gpio: implement client api
* gpio: modernize client api instead of doing it the lazy way
* sdmmc: SdCardDeviceAccessor impl
* sdmmc: update test program to read first two sectors of sd card
* sdmmc: fix vref sel
* sdmmc: finish outward-facing api (untested)
* ams: changes for libvapours including tegra register defs
* sdmmc: remove hwinit
2020-12-02 06:52:42 -08:00
Michael Scire
dbbf26f03c
ams: expose reboot payload for kernel panic
2020-10-26 16:03:06 -07:00
Michael Scire
ba45f73e40
kern: generate fatal error on panic
2020-09-17 08:34:22 -07:00
Michael Scire
4c51c55d1a
loader: improve verification terminology
2020-09-14 18:13:42 -07:00
Michael Scire
828bd1cc52
ro: rename ModuleType to reflect reality
2020-09-14 18:13:42 -07:00
Michael Scire
c89927177e
kern: expose mesosphere meta over GetInfo instead of GetSystemInfo
2020-09-07 10:51:48 -07:00
Michael Scire
8836a5385c
kern/pm: support for 5.x under mesosphere
2020-09-07 10:51:47 -07:00
Michael Scire
fea438eb76
sm: fix deadlock semantics surrounding mitm installation
2020-09-07 10:51:46 -07:00
Michael Scire
a8cc9c6d6f
fs: fix retry bug in OpenContentStorageFileSystem
2020-08-01 15:31:14 -07:00
misson20000
3cb6db0ee2
Add stack overflow detection to fatal error code
2020-08-01 15:31:13 -07:00
Michael Scire
968d5adc2f
ams: update to know about 10.1.0
2020-08-01 15:31:11 -07:00
Michael Scire
c5e4c7c921
kern: implement SvcWaitSynchronization
2020-08-01 15:31:01 -07:00
Michael Scire
9f8f932383
ncm: loosen FirmwareVariation restrictions.
2020-08-01 15:30:59 -07:00
VolcaEM
2b3859e187
ncm: Mark two variables as const ( #1078 )
...
ncm: Mark two variables as const
2020-08-01 15:30:58 -07:00
Michael Scire
ab059c1a57
ams: bump version to 0.14.0, add emummc info configitem
2020-08-01 15:30:58 -07:00
Michael Scire
ffc68d133f
ncm: rights ids were added in 2.0.0
2020-08-01 15:30:58 -07:00
Michael Scire
f53cc8139d
sf: correct deprecated spl interface definition
2020-08-01 15:30:57 -07:00
Michael Scire
3241b60a01
sf: support service objects which must themselves be shared pointers
2020-08-01 15:30:57 -07:00
SciresM
ecf8389efd
sf: Change interface definition methodology ( #1074 )
...
* sf: Begin experimenting with new interface declaration format
* sf: convert fs interfaces to new format
* sf: finish conversion of libstrat to new definitions
* sf: convert loader to new format
* sf: convert spl to new format
* sf: update ncm for new format
* sf: convert pm to new format
* sf: convert ro/sm to new format
* sf: update fatal for new format
* sf: support building dmnt under new scheme
* sf: update ams.mitm for new format
* sf: correct invocation def for pointer holder
* fs: correct 10.x+ user bindings for Get*SpaceSize
2020-08-01 15:30:56 -07:00
Michael Scire
47d62b22f2
libstrat: fix bugs/compiler warnings
2020-08-01 15:30:55 -07:00
Michael Scire
e00abe01c1
fs: use access_log for other user fs/dir/file bindings
2020-08-01 15:30:55 -07:00
Michael Scire
3c7c4d8bff
fs: implement AccessLog, enable for File operations
2020-08-01 15:30:55 -07:00
Michael Scire
2993c11865
fs: more IndirectStorage::OperatePerEntry updates/fixes
2020-06-28 19:41:11 -07:00
Michael Scire
7943b26400
sysupdater: minor api fixes (now verified working on hardware)
2020-06-28 19:41:11 -07:00
Michael Scire
a1a68953e0
sysupdater: implement (untested) rest of the api
2020-06-28 19:41:10 -07:00
Michael Scire
1867bc1264
sysupdater: Add ValidateUpdate, begin implementing Async logic
2020-06-28 19:41:10 -07:00
Michael Scire
f019daae0e
sysupdater: implement content meta mounting
2020-06-28 19:41:09 -07:00
Michael Scire
8f0ee258ac
sysupdater: begin implementing api
2020-06-28 19:41:09 -07:00
Michael Scire
3b4b19893b
fs: update IndirectStorage for 10.x, bugfixes
2020-06-28 19:41:08 -07:00
Michael Scire
7ccf9415f9
stratosphere: fix command availability to include minor versions
2020-06-14 22:54:08 -07:00
Michael Scire
2944347060
fs: miscellaneous bucket tree fixes
2020-06-14 22:53:52 -07:00
Adubbz
797dfa782e
ncm: implement firmware downgrading ( #958 )
...
* ncm: implement firmware downgrading
* ncm: make storage list const
2020-05-18 08:22:12 -07:00
Michael Scire
bbbe67937a
nca-pr: update for c++20
2020-05-14 02:22:37 -07:00
SciresM
b38939adb5
Implement support for parsing/interacting with NCAs. ( #942 )
...
* fs: implement support for interacting with ncas.
* spl: extend to use virtual keyslots
2020-05-12 15:44:19 -07:00
SciresM
7d041e853d
Switch atmosphere's build target to C++20. ( #952 )
...
* ams: update to build with gcc10/c++20
* remove mno-outline-atomics
* ams: take care of most TODO C++20s
* fusee/sept: update for gcc10
* whoosh, your code now uses pre-compiled headers
* make: dependency fixes
2020-05-12 15:44:19 -07:00
Michael Scire
0cc84d4c47
ams: use psc acknowledge_ex on 5.1.0+ (fixes wake-from-sleep on 5.1.0)
2020-05-12 15:44:18 -07:00
Michael Scire
1f35c699a7
ams: revamp target firmware
2020-05-12 15:44:18 -07:00
Michael Scire
ea45d6e146
os: oh geez look at the time
2020-05-12 15:44:16 -07:00
SciresM
d2de74155d
PRODINFO: Revamp blanking/write disallow policy. ( #913 )
...
* exo/fusee: hookup new prodinfo settings
* fusee: new scheme doesn't need FLAGS_DEFAULT
* fusee: fix c/p errors
* ams.mitm: completely revamp prodinfo backup mechanism
* ams.mitm: Implement revamped blanking/write policy
* strat: make early boot more debuggable
* exo: condense flag logic
2020-04-24 17:29:12 -07:00
Michael Scire
fb3b3f4a72
creport: Try to take screenshot of application crashes on 9.x+
2020-04-24 17:29:12 -07:00
Michael Scire
b8be9d0031
os: implement ReadWriteLock
2020-04-24 17:29:11 -07:00
Michael Scire
0c0762fc8f
refactor jpegdec implementation into libstrat (thanks again, Behemoth!)
2020-04-24 17:29:10 -07:00
HookedBehemoth
f63e67a1df
jpegdec reimplementation ( #912 )
...
* add jpegdec reimplementation
* reduce work memory
* fix color space
* jpegdec: cleanup results to use atmosphere style
* fix outdated comments, correct do/while bug
Co-authored-by: Michael Scire <SciresM@gmail.com>
2020-04-24 17:29:10 -07:00
Michael Scire
18666a88c0
ams: centralize system thread definitions
2020-04-24 17:29:09 -07:00
Michael Scire
0de0f530f3
sf: properly support preservation of inline context
2020-04-24 17:29:08 -07:00
Michael Scire
5a52014d1c
hos: change initialization API
...
This was needed to make stratosphere buildable with debugging on.
os:: assertions rely on GetCurrentThread() working, and this requires
the global os resource manager to be constructed. However, __appInit executes
before global constructors. We now require that hos::InitializeForStratosphere()
be called before anything else is done. This initializes the os resource manager,
sets the hos version for libnx, and may do more things in the future.
TODO: Consider replacing __appInit/__appExit with ams:: namespace functions in general,
and wrap them so that we guarantee hos::InitializeForStratosphere is called first, and
generally ensure a consistent stratosphere environment.
2020-04-24 17:29:08 -07:00
SciresM
c1fe12fcbd
pgl: Reimplement the pgl sysmodule ( #896 )
...
* pgl: add skeleton folder to stratosphere
* pgl: Add service interface for IShellInterface
* pgl: begin skeletoning shell service, implement two commands.
* pgl: Implement three more commands.
* pgl: implement bool tracking commands
* pgl: Implement TriggerApplicationSnapShotDumper
* pgl: implement InitializeProcessControlTask
* pgl: Implement pgl::srv::Initialize
* pgl: Implement main()
* pgl: Implement (Get)ShellEventObserver
* pgl: implement LaunchProgramFromHost, GetHostContentMetaInfo
* pgl: Implement ProcessControlTask
* settings: fix duplicate object name
* pgl: fix minor bugs in impl
2020-04-16 20:05:56 -07:00
Michael Scire
e01ad57120
pgl: update with client C++ bindings
2020-04-16 20:05:55 -07:00
Michael Scire
5c6a8fe57b
pgl: skeleton api
2020-04-16 20:05:55 -07:00
Michael Scire
a253850abc
ams: fix boot sysmodule/kernel for 10.0.0
2020-04-15 11:55:06 -07:00
Adubbz
345499c71e
ncm: update to 10.0.0 ( #879 )
2020-04-15 11:55:06 -07:00
Michael Scire
04fd512153
pm: Update to support 10.0.0
2020-04-15 11:55:02 -07:00
Michael Scire
dd81610366
loader: update for 10.0.0
2020-04-15 11:55:02 -07:00
Michael Scire
764a2eb9cd
loader: update anti-downgrade tables for 10.0.0
2020-04-15 11:55:02 -07:00
Michael Scire
c190d46343
hos::Version: rename enum members
2020-04-15 11:55:01 -07:00
SciresM
78653041d4
erpt: reimplement the sysmodule ( #875 )
...
* erpt: reimplement the sysmodule
* fatal: update for latest bindings
* erpt: amend logic for culling orphan attachments
2020-04-15 11:55:01 -07:00
Michael Scire
8adef95c08
erpt: include all known types/categories in autogen
2020-04-15 11:55:00 -07:00
Michael Scire
a70c3560e5
erpt: identify flags in autogen
2020-04-15 11:55:00 -07:00
Michael Scire
901fe10102
erpt: tweak autogen
2020-04-15 11:55:00 -07:00
Michael Scire
19f4531a1d
erpt: add ids (and autogeneration tool)
2020-04-15 11:54:59 -07:00
Michael Scire
a0cddf7c06
os: refactor/rewrite entire namespace.
2020-04-15 11:54:59 -07:00
Michael Scire
801a461c6c
fs: Implement AesXtsStorage
2020-04-06 17:44:36 -07:00
Michael Scire
2319e4a450
fs: add AesCtrStorage
2020-04-06 17:44:35 -07:00
Michael Scire
cd0c4af60c
fs: implement PooledBuffer
2020-04-06 17:44:35 -07:00
Michael Scire
e5f02531a4
fs: implement system heap
2020-04-06 17:44:35 -07:00
Michael Scire
442d5cf711
fssystem: add RomFsFileSystem
2020-04-05 23:25:44 -07:00
Adubbz
6e8ea3aafd
NCM client implementation ( #858 )
...
* ncm: Implement InstallTaskDataBase and FileInstallTaskData
* ncm: minor bugfixes
* ncm: Implemented MemoryInstallTaskData
* ncm: more std
* ncm: begin implementing install task base
* ncm: move protected funcs
* ncm: fix recursive include
* ncm: more install task progress
* ncm install task: implement IncrementProgress and update UpdateThroughputMeasurement
* ncm: more work
* ncm client: more progress
* ncm client: more progress
* ncm client: finish implementing GetContentMetaInfoList
* ncm client: more progress
* ncm client: finished InstallTaskBase
* ncm client: implement PackageInstallTaskBase
* ncm client: fixes
* ncm: improve accuracy
* ncm client: implement PackageInstallTask
* ncm client: implement PackageSystemUpdateTask
* ncm client: minor name tweaks
* ncm client: implement SubmissionPackageInstallTask
* ncm client: add missing this to SubmissionPackageInstallTask
* ncm client: add missing nullptr check to SubmissionPackageInstallTask destructor
* ncm client: SubmissionPackageInstallTask fixes
* ncm: fix forward declarations
* ncm client: added simplified funcs
* ncm: cleanup client code
* ncm: fix bug introduced by cleanup
* ncm: fix typo
* ncm: implement correct ReadVariationContentMetaInfoList behavior
* ncm: correct InstallContentMetaWriter ctor
* ncm: correct conversion of content meta header types
Co-authored-by: Michael Scire <SciresM@gmail.com>
2020-04-05 23:25:44 -07:00
Michael Scire
62f5667b5f
sf: fix OutArray/InArray constructors to behave as expected
2020-04-02 00:28:54 -07:00
Michael Scire
a40d4593d7
nim: add DestroySystemUpdateTask/ListSystemUpdateTask
2020-03-31 12:53:48 -07:00
Michael Scire
63d5df84e6
updater: improve api
2020-03-30 20:41:22 -07:00
Michael Scire
ec527bc460
ncm: use static memory pools for different allocations
2020-03-30 20:41:21 -07:00
SciresM
926d5a55d6
mem: implement most of StandardAllocator ( #860 )
...
This was tested using `https://github.com/node-dot-cpp/alloc-test ` plus a few other by-hand tests.
It seems to work for the case we care about (sysmodules without thread cache-ing).
External users are advised to build with assertions on and contact SciresM if you find issues.
This is a lot of code to have gotten right in one go, and it was written mostly after midnight while sick, so there are probably un-noticed issues.
2020-03-30 20:41:21 -07:00
Michael Scire
6f77a6bf65
fs: add MountImageDirectory
2020-03-27 17:00:14 -07:00
Adubbz
4bf56b3088
fs: implement FileHandleStorage ( #857 )
...
* fs: implement FileHandleStorage
* fs: merge FileHandleStorage into file_storage TU
Co-authored-by: Michael Scire <SciresM@gmail.com>
2020-03-27 17:00:14 -07:00
Adubbz
abc0e93763
fssystem: Implement PartitionFileSystemCore ( #856 )
...
* fssystem: implement PartitionFileSystemMetaCore
* fssystem: PartitionFileSystemMetaCore cleanup
* fs: add IFile::DryWrite, update results
* fssystem: implement PartitionFileSystemCore
* fssystem: cleanup PartitionFileSystemCore
* fssystem: implement Sha256PartitionFileSystem
Co-authored-by: Michael Scire <SciresM@gmail.com>
2020-03-27 17:00:14 -07:00
Michael Scire
07630f73a7
fs: add MountDeviceSaveData
2020-03-18 20:05:51 -07:00
Michael Scire
8bcf34a172
os: implement Tick api, make build with -Werror
2020-03-18 00:15:01 -07:00
Michael Scire
08679045a3
ams: finish stdio -> fs bindings for stratosphere
2020-03-09 18:03:41 -07:00
Michael Scire
d2ff0b1774
loader: refactor to use fs bindings
2020-03-09 18:03:41 -07:00
Michael Scire
d7b011e091
ams: dump tls in fatal error context
2020-03-09 18:03:40 -07:00
Michael Scire
414bda09e6
stratosphere-except-ldr: use fs bindings (this temporarily breaks loader)
2020-03-09 18:03:40 -07:00
Michael Scire
7b0eca77bf
creport: use fs bindings
2020-03-09 18:03:39 -07:00
Adubbz
aec0f45bdb
Implement the NCM sysmodule ( closes #91 )
...
* Implement NCM
* Modernize ncm_main
* Remove unnecessary smExit
* Give access to svcCallSecureMonitor
* Stack size bump
* Fix incorrect setup for NandUser's content storage entry
* Fix a potential data abort when flushing the placeholder accessor cache
* Fix HasFile and HasDirectory
* Use r+b, not w+b
* Misc fixes
* errno begone
* Fixed more stdio error handling
* More main fixes
* Various command improvements
* Make dispatch tables great again
* Fix logic inversion
* Fixed content path generation
* Bump heap size, fix CleanupAllPlaceHolder
* Various fixes. Note: This contains debug stuff which will be removed later. I was getting tired of having to cherrypick tiny changes
* Fixed placeholder/content deletion
* Fixed incorrect content manager destruction
* Prevent automatic placeholder creation on open
* Fixed List implementation. Also lots of debug logging.
* Removed debug code
* Added a scope guard for WritePlaceHolder
* Manually prevent placeholder/content appending
* Revert "Removed debug code"
This reverts commit d6ff261fcc8c1f26968e894b02c17a01a12ec98b.
* Always cache placeholder file. Switch to ftell for preventing appending
* Universally use EnsureEnabled
* Abstract away file writing logic
* Misc cleanup
* Refactor placeholder cacheing
* Remove debug code (again)
* Revert "Remove debug code (again)"
This reverts commit 168447d80e9640768fb1b43f04a385507c1bb5ab.
* Misc changes
* Fixed file modes
* Fixed ContentId/PlaceHolderId alignment
* Improved type safety
* Fixed reinitialization
* Fixed doubleup on path creation
* Remove debug code
* Fixed 1.0.0 booting
* Correct amount of add on content
* Correct main thread stack size
* lr: Introducing registered data
* Reorder stratosphere Makefile
* Move results to libstrat
* lr: Cleanup lr_redirection
* lr: lr_manager tweaks
* lr: Imrpoved path handling and adjust ResolveAddOnContentPath order
* lr: Organise types
* Add eof newlines
* lr: Eliminate unnecessary vars
* lr: Unnecessary vars 2 electric boogaloo
* lr: Various helpers
* lr: RegisteredLocationResolver helpers
* ncm: Move ncm_types to libstrat
* ncm: Misc cleanup
* Implement NCM
* Modernize ncm_main
* Remove unnecessary smExit
* Give access to svcCallSecureMonitor
* Stack size bump
* Fix incorrect setup for NandUser's content storage entry
* Fix a potential data abort when flushing the placeholder accessor cache
* Fix HasFile and HasDirectory
* Use r+b, not w+b
* Misc fixes
* errno begone
* Fixed more stdio error handling
* More main fixes
* Various command improvements
* Make dispatch tables great again
* Fix logic inversion
* Fixed content path generation
* Bump heap size, fix CleanupAllPlaceHolder
* Various fixes. Note: This contains debug stuff which will be removed later. I was getting tired of having to cherrypick tiny changes
* Fixed placeholder/content deletion
* Fixed incorrect content manager destruction
* Prevent automatic placeholder creation on open
* Fixed List implementation. Also lots of debug logging.
* Removed debug code
* Added a scope guard for WritePlaceHolder
* Manually prevent placeholder/content appending
* Revert "Removed debug code"
This reverts commit d6ff261fcc8c1f26968e894b02c17a01a12ec98b.
* Always cache placeholder file. Switch to ftell for preventing appending
* Universally use EnsureEnabled
* Abstract away file writing logic
* Misc cleanup
* Refactor placeholder cacheing
* Remove debug code (again)
* Revert "Remove debug code (again)"
This reverts commit 168447d80e9640768fb1b43f04a385507c1bb5ab.
* Misc changes
* Fixed file modes
* Fixed ContentId/PlaceHolderId alignment
* Improved type safety
* Fixed reinitialization
* Fixed doubleup on path creation
* Remove debug code
* Fixed 1.0.0 booting
* Correct amount of add on content
* Correct main thread stack size
* lr: Introducing registered data
* Reorder stratosphere Makefile
* Move results to libstrat
* lr: Cleanup lr_redirection
* lr: lr_manager tweaks
* lr: Imrpoved path handling and adjust ResolveAddOnContentPath order
* lr: Organise types
* Add eof newlines
* lr: Eliminate unnecessary vars
* lr: Unnecessary vars 2 electric boogaloo
* lr: Various helpers
* lr: RegisteredLocationResolver helpers
* ncm: Move ncm_types to libstrat
* ncm: Misc cleanup
* Updated AddOnContentLocationResolver and RegisteredLocationResolver to 9.0.0
* Finished updating lr to 9.0.0
* Updated NCM to 9.0.0
* Fix libstrat includes
* Fixed application launching
* title_id_2 -> owner_tid
* Updated to new-ipc
* Change to using pure virtuals
* Title Id -> Program Id
* Fixed compilation against master
* std::scoped_lock<> -> std::scoped_lock
* Adopted R_UNLESS and R_CONVERT
* Prefix namespace to Results
* Adopt std::numeric_limits
* Fixed incorrect error handling in ReadFile
* Adopted AMS_ABORT_UNLESS
* Adopt util::GenerateUuid()
* Syntax improvements
* ncm_types: Address review
* Address more review comments
* Updated copyrights
* Address more feedback
* More feedback addressed
* More changes
* Move dispatch tables out of interface files
* Addressed remaining comments
* lr: move into libstratosphere
* ncm: Fix logic inversion
* lr: Add comments
* lr: Remove whitespace
* ncm: Start addressing feedback
* ncm: Cleanup InitializeContentManager
* lr: support client-side usage
* lr_service -> lr_api
* ncm: Begin refactoring content manager
* ncm: More content manager improvements
* ncm: Content manager mount improvements
* ldr: use lr bindings
* lr bindings usage: minor fixes
* ncm/lr: Pointer placement
* ncm: placeholder accessor cleanup
* ncm: minor fixes
* ncm: refactor rights cache
* ncm: content meta database cleanup
* ncm: move content meta database impl out of interface file
* ncm: Use const ContentMetaKey &
* ncm: fix other non-const ContentMetaKey references
* ncm: content meta database cleanup
* ncm: content storage fixes for 2.0.0
* ncm: add missing end of file newlines
* ncm: implement ContentMetaReader
* ncm: client-side api
* ncm: trim trailing spaces
* ncm: FS_MAX_PATH-1 -> fs::EntryNameLengthMax
* ncm: Use PathString and Path
* fs: implement accessor wrappers for ncm
* fs: implement user fs wrappers
* fs: add MountSdCard
* ncm: move to content manager impl
* ncm: fix up main
* kvdb: use fs::
* fs: Add wrappers needed for ncm
* ncm: use fs bindings, other refactoring
* ncm: minor fixes
* fsa: fix ReadFile without size output
* fs: add substorage, rom path tool
* ncm: fix dangling fsdev usage
* fs: fix bug in Commit
* fs: fixed incorrect mode check
* fs: implement Mount(System)Data
* ncm: don't delete hos
* results: add R_SUCCEED_IF
* ams-except-ncm: use R_SUCCEED_IF
* ncm: added comments
* ncm: fix api definitions
* ncm: use R_SUCCEED_IF
* pm: think of the savings
* ncm: employ kernel strats
* ncm: Nintendo has 5 MiB of heap. Give ourselves 4 to be safe, pending analysis
* ncm: refactor IDs, split types header into many headers
* ams.mitm: use fs bindings instead of stdio
* fs: SystemData uses SystemDataId
* ncm: improve meta-db accuracy
* ncm: inline getlatestkey
* fs: improve UnsupportedOperation results
* fs: modernize mount utils
* ams: misc fixes for merge-errors
* fs: improve unsupportedoperation results
* git subrepo pull emummc
subrepo:
subdir: "emummc"
merged: "d12dd546"
upstream:
origin: "https://github.com/m4xw/emuMMC "
branch: "develop"
commit: "d12dd546"
git-subrepo:
version: "0.4.1"
origin: "???"
commit: "???"
* util: add boundedmap
* ncm: minor style fixes
* ncm: don't unmount if mounting fails
* lr: bug fixes
* ncm: implement ncm.for-initialize + ncm.for-safemode
* lr: ncm::ProgramId::Invalid -> ncm::InvalidProgramId
* ncm: fix open directory mode on 1.0.0
* ncm: fix fs use, implement more of < 4.0.0 for-initialize/safemode
* ncm: implement packagedcontent -> content for building metadb
* ncm: fix save data flag management
* ncm: address some review suggestions (thanks @leoetlino!)
* updater: use fs bindings
* fs: implement MountCode
* fs: prefer make_unique to operator new
* ncm: implement remaining ContentMetaDatabaseBuilder functionality
Co-authored-by: Michael Scire <SciresM@gmail.com>
2020-03-09 18:03:38 -07:00
Michael Scire
f663b2aaeb
fs.mitm: implement layered html redirection ( closes #814 )
2020-03-02 19:51:10 -08:00
Michael Scire
f62281763d
util/lmem: minor fixes
2020-03-02 19:51:09 -08:00
Michael Scire
57b8d19fca
util: add uuid
2020-03-02 19:51:09 -08:00
SciresM
0f49f923c7
lmem: Implement UnitHeap, ExpHeap ( #823 )
...
* lmem: implement ExpHeap
* lmem: Implement Slab^H^H^H^HUnitHeap
2020-03-02 19:51:09 -08:00
Michael Scire
dd23be72d6
ro: save 0x25000 while maintaining security improvements
2020-03-02 19:51:08 -08:00
Michael Scire
344a066ada
ro: implement 9.1.0 security measures
2020-03-02 19:51:08 -08:00
Michael Scire
399899a0ea
boot: update to accurate as of 9.1.0
2020-03-02 19:51:07 -08:00
Michael Scire
93d4cbef94
libstrat: fix unconverted _WITH_ASSERTs
2020-03-02 19:51:07 -08:00
Michael Scire
1cc9fa39b4
ro: implement NRR signature checks
2020-03-02 19:51:06 -08:00
Michael Scire
1e9368c770
ams: revamp assertion system
2020-03-02 19:51:04 -08:00
Michael Scire
dd12a93cd4
fix building libstratosphere
2020-03-02 19:51:04 -08:00
Michael Scire
375d5ecd08
kern: add KProcess members
2020-03-02 19:50:58 -08:00
Michael Scire
6b778d39ec
kern: use TinyMT instead of mt19937_t
2020-03-02 19:50:55 -08:00
Michael Scire
7ee4ae460e
find -exec sed -i'' -e 's/2018-2019 Atmo/2018-2020 Atmo/g' {} +
2020-03-02 19:50:40 -08:00
Michael Scire
78f2108874
svc: populate namespace
2020-03-02 19:50:40 -08:00
Michael Scire
ab8dfe40a0
ams: use bitpack for api version
2020-01-03 13:05:36 -08:00
Michael Scire
f3a31bd948
strat: use util::FourCC where relevant
2020-01-03 13:05:33 -08:00
Michael Scire
aa0aa36ee4
fatal: include stack/tls in reports
2020-01-03 13:05:31 -08:00
Michael Scire
1d208a1413
cfg: Allow more flexible hbl configuration
2019-12-11 18:37:30 -08:00
Michael Scire
afac0eec43
sf: Allow for more than one process id holder (ugly)
2019-12-10 19:17:52 -08:00
Michael Scire
5e55beeda0
random: use TinyMT instead of XorShift
2019-12-10 19:17:50 -08:00
Michael Scire
e291079bcd
sf: Improve class member function detection
2019-12-10 19:17:48 -08:00
Michael Scire
07af583bb8
Add stratosphere makefile, move common/include to libs
2019-12-09 03:54:45 -08:00
Michael Scire
ef5297acb3
Improve buildsystem, split out generic code
2019-12-08 19:17:05 -08:00
Michael Scire
5797d753bf
libstratosphere is now just one lib
2019-12-08 17:01:03 -08:00