Michael Scire
3355f97275
exo/meso/fusee: support dynamic control of log port/baud rate
2020-12-11 03:48:58 -08:00
Michael Scire
ccd1f3b982
kern: add support for InfoType_FreeThreadCount
2020-12-11 03:48:56 -08:00
Michael Scire
de5341ecde
kern: fix inverted conditional in UnmapProcessCodeMemory
2020-12-03 12:48:16 -08:00
Michael Scire
9c3e45a856
kern: fix reboot to fatal error
2020-12-03 12:48:16 -08:00
Michael Scire
45c1b044d3
kern: tweak KScopedAutoObject
2020-12-02 06:53:23 -08:00
Michael Scire
7901f15d20
kern: allow non-inline GetObjectForIpc
2020-12-02 06:53:23 -08:00
Michael Scire
8cac1203be
kern: fix KHandleTable null deref in ipc
2020-12-02 06:53:22 -08:00
Michael Scire
b53ee81bab
kern: session mapping getters are on the hotpath
2020-12-02 06:53:22 -08:00
Michael Scire
9586142e90
kern: tweak optimization settings for hot paths
2020-12-02 06:53:22 -08:00
Michael Scire
b9504f356f
microkernel: hot paths are pretty fucking hot
2020-12-02 06:53:20 -08:00
Michael Scire
929e38cce9
kern: update KConditionVariable to support new has_waiter_flag rules
2020-12-02 06:53:20 -08:00
Michael Scire
f3e127f147
kern: fix SvcGetResourceLimitPeakValue
2020-12-02 06:53:20 -08:00
Michael Scire
7abc665807
kern: fix copy/paste error
2020-12-02 06:53:19 -08:00
Michael Scire
9d51004a9b
kern: fix bugs caused by UB + transition to -Os
2020-12-02 06:53:19 -08:00
Michael Scire
ca24d0ed9f
kern: allow non-inline KSchedulerLock::Lock
2020-12-02 06:53:19 -08:00
Michael Scire
a911d2da7e
kern: build as -Os instead of -O2
2020-12-02 06:53:18 -08:00
Michael Scire
31603c2a5a
kern: reduce KMemoryRegionAllocator slab size
2020-12-02 06:53:18 -08:00
Michael Scire
b5eb0bb978
kern: assume that uart has been setup by secmon
2020-12-02 06:53:18 -08:00
Michael Scire
a15f3ba468
kern: update Initialize0 to account for new ordering
2020-12-02 06:53:17 -08:00
Michael Scire
0eb6e0a963
kern: add new overflow checks on KMemoryRegions
2020-12-02 06:53:17 -08:00
Michael Scire
763b00027b
kern: fix assertion in the multi-region pool partition code
2020-12-02 06:53:17 -08:00
Michael Scire
2db30d4d46
kern: improve KMemoryManager pool detection
2020-12-02 06:53:17 -08:00
Michael Scire
0b36215bfa
kern: update KMemoryRegion to store last address rather than size
2020-12-02 06:53:16 -08:00
Michael Scire
2d1ebf4406
kern: add KAlpha/KBeta
2020-12-02 06:53:16 -08:00
Michael Scire
7779d7d06d
kern: stubs for Svc39, 3A, 46, 47
2020-12-02 06:53:16 -08:00
Michael Scire
02bea1a3f2
kern: remove now unused SetupFor*Compare funcs
2020-12-02 06:53:16 -08:00
Michael Scire
c24ba715b4
KConditionVariable/KAddressArbiter: no need for global compare thread
2020-12-02 06:53:15 -08:00
Michael Scire
e4774a2685
kern: implement 64-virtual-core interface
2020-12-02 06:53:15 -08:00
Michael Scire
a57c7f7a48
kern: cleanup KThread, optimize/normalize KThreadQueue/KWaitObject
2020-12-02 06:53:14 -08:00
Michael Scire
a01f7ab1c9
kern: improve KSynchronizationObject, kill KSynchronization
2020-12-02 06:53:14 -08:00
Michael Scire
1806dc45ee
kern: update for new interrupt event locking scheme
2020-12-02 06:53:13 -08:00
Michael Scire
0e6ed3b71b
kern: fix sleep save/resume for new x18/tpidr scheme
2020-12-02 06:53:13 -08:00
Michael Scire
b0c96b3bb6
kern: fix race-crash on interrupt controller save, improve fatal output
2020-12-02 06:53:13 -08:00
Michael Scire
1582110af7
kern: KObjectContainer::Register -> void
2020-12-02 06:53:12 -08:00
Michael Scire
0c73792282
kern: Kill KCoreLocalRegion
2020-12-02 06:53:12 -08:00
Michael Scire
43a0706e96
kern: remove more of clc
2020-12-02 06:53:12 -08:00
Michael Scire
7b9b9b7a7a
kern: move scheduler/interrupt task manager out of core local region
2020-12-02 06:53:12 -08:00
Michael Scire
f36d24e1ed
kern: update KHardwareTimer, move out of KCoreLocalRegion
2020-12-02 06:53:11 -08:00
Michael Scire
8ec3f47a80
kern: use single interrupt manager object
2020-12-02 06:53:11 -08:00
Michael Scire
843e2b08fe
kern: fix unnecessary align-down
2020-12-02 06:53:11 -08:00
Michael Scire
c21e43f7e1
kern: fix error in SeparatePages
2020-12-02 06:53:11 -08:00
Michael Scire
d0b05d0e4e
kern: fix re-order/assert in KMemoryBlock
2020-12-02 06:53:10 -08:00
Michael Scire
f8999a2318
kern: remove KPageTableBase::MakeAndOpenContiguousPageGroup
2020-12-02 06:53:10 -08:00
Michael Scire
397d317a6c
kern: implement DisableDeviceAddressSpaceMerge
2020-12-02 06:53:10 -08:00
Michael Scire
0063ede635
kern: SvcGetResourceLimitPeakValue
2020-12-02 06:53:10 -08:00
Michael Scire
396dc066e9
kern: KMemoryManager::Allocate -> AllocateAndOpen
2020-12-02 06:53:09 -08:00
Michael Scire
1260d85bb9
kern: implement kmemoryblock/kmemoryinfo merge disable
2020-12-02 06:53:09 -08:00
Michael Scire
dd799d3909
kern: remove KMemoryAttribute_AnyLocked
2020-12-02 06:53:09 -08:00
Michael Scire
f152b16639
kern: update KMemoryBlockManagerUpdateAllocator api
2020-12-02 06:53:09 -08:00
Michael Scire
5f885a3b22
kern: implement new software-reserved page table bits
2020-12-02 06:53:08 -08:00
Michael Scire
394112f9ac
kern: update KPageTableBase for new disable-merge attrs
2020-12-02 06:53:08 -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
SciresM
9ee32fee0f
Meso build targets ( #1196 )
...
* meso: commit wip (thanks fincs) rewrite to support build targets
* meso: commit mostly-working build system
* meso: correct .o dependencies in kernel/kldr
* libstratosphere: fix building after PCH related build changes
Co-authored-by: fincs <fincs@devkitpro.org>
2020-12-02 06:52:42 -08:00
Michael Scire
10e9e0e8f9
docs/fatal error: update for 0.15.0
2020-10-26 16:03:09 -07:00
Michael Scire
0f3085b8f6
kern: perform rescheduling on dispatch re-enable ( closes #1169 )
2020-10-26 16:03:08 -07:00
Michael Scire
b953b82c3b
kern: minor behavioral fixes to condvar/address arbiter
2020-10-26 16:03:08 -07:00
Michael Scire
dbbf26f03c
ams: expose reboot payload for kernel panic
2020-10-26 16:03:06 -07:00
Michael Scire
e7e63e19b9
kern: fix KCodeMemory SVCs when Owner process != Generator process
2020-09-17 08:34:23 -07:00
Michael Scire
0b7648e7fc
kern: default to release config
2020-09-17 08:34:22 -07:00
Michael Scire
ba45f73e40
kern: generate fatal error on panic
2020-09-17 08:34:22 -07:00
Michael Scire
f7a3eead0c
kern: add build-define for logging to iram ringbuffer
2020-09-17 08:34:22 -07:00
Michael Scire
a1ef94c342
kern: lps driver fixes, sleep confirmed working on 1.0.0
2020-09-07 10:51:52 -07:00
Michael Scire
81a47c1cb8
kern: fix c/p error
2020-09-07 10:51:52 -07:00
Michael Scire
6cda01f88f
kern: add debug logging on smmu error interrupt
2020-09-07 10:51:52 -07:00
Michael Scire
51c951f4ac
kern: finish 1.x lps driver
2020-09-07 10:51:51 -07:00
Michael Scire
c93a3b2e8b
kern: add most of 1.x lps driver
2020-09-07 10:51:51 -07:00
Michael Scire
b4dbd97381
kern: skeleton legacy lps driver
2020-09-07 10:51:51 -07:00
Michael Scire
6182330d05
exo/kern: 1.0.0 requires access to bpmp smmu regs, userland (am) needs to map bpmp exception vectors
2020-09-07 10:51:50 -07:00
Michael Scire
22f2946671
kern: begin 1.0.0 backwards compat changes (kips run, full boot fails)
2020-09-07 10:51:50 -07:00
Michael Scire
1aedaa0f91
kern: support 2-pool layout on 2.x-4.x instead of modern 4-pool layout
2020-09-07 10:51:50 -07:00
Michael Scire
6cf1e0cece
kern: change terminology metadata -> management
2020-09-07 10:51:50 -07:00
Michael Scire
0c246b88bd
kern: pool management should be within carveout
2020-09-07 10:51:49 -07:00
Michael Scire
d61f1ddef7
kern: fix phys/virt pool management mixup
2020-09-07 10:51:49 -07:00
Michael Scire
00a43ac776
kern: revamp KMemoryRegionType to better encode derivation hierarchies
2020-09-07 10:51:49 -07:00
Michael Scire
ae14cf51b5
kern: PMC must be user-mappable for 1.0.0 compat
2020-09-07 10:51:48 -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
ec6535bd4b
kern: fix warn-errors
2020-09-07 10:51:47 -07:00
Michael Scire
8b88149742
kern: fix KTypedAddress, strengthen assertions
2020-09-07 10:51:46 -07:00
Michael Scire
658b92e17a
kern: add version bounds checking
2020-09-07 10:51:45 -07:00
Michael Scire
576892ff32
kern: avoid hardcoding maximum board memory size
2020-09-07 10:51:45 -07:00
Michael Scire
5bc3307ffa
kern: improve resource region size definitions/calculations
2020-09-07 10:51:45 -07:00
Michael Scire
959122a849
kern: resolve NonSecure definition TODO
2020-09-07 10:51:44 -07:00
Michael Scire
1007d8756a
kern: correct thread termination atomicity
2020-09-07 10:51:44 -07:00
Michael Scire
f577ffa682
kern: fix reference leak in KThread::GetThreadFromId callers
2020-09-07 10:51:44 -07:00
Michael Scire
aea200fece
kern: non-loop cas-weak -> cas-strong
2020-09-07 10:51:44 -07:00
Michael Scire
e1e2be41d6
kern: fix bug in KScheduler::ClearPreviousThread
2020-09-07 10:51:43 -07:00
fincs
e1876a293f
kern: add stubbed KDevicePageTable implementation for systems without iommu
2020-09-07 10:51:42 -07:00
fincs
4916f3f7f8
kern: move SetupPoolPartitionMemoryRegions into board specific implementation
2020-09-07 10:51:42 -07:00
fincs
ec558b3828
kern: make GetTargetFirmware a compile-time constant when not building for Switch
2020-09-07 10:51:42 -07:00
Michael Scire
e6bf8d2d97
kern: use std::atomic_ref instead of reinterpret_cast to std::atomic
2020-09-07 10:51:42 -07:00
Michael Scire
78161021f4
kern: use common GIC implementation for arm/arm64
2020-09-07 10:51:41 -07:00
Michael Scire
4a50b00cab
kern: correct flushing of init arguments
2020-09-07 10:51:41 -07:00
Michael Scire
f02868d886
kern: simplify SetupForIpcClient cleanup
2020-09-07 10:51:41 -07:00
Michael Scire
d7e420c895
kern: SvcLegacyGetFutureThreadInfo
2020-09-07 10:51:40 -07:00
Michael Scire
4cafc6acb9
kern: rename CacheHelper operation for accuracy
2020-09-07 10:51:40 -07:00
Michael Scire
23864afe32
kern: KPageTableBase::WriteDebugMemory stores/invalidates cache
2020-09-07 10:51:40 -07:00
Michael Scire
888f5cdd20
kern: fix multicore instruction cache invalidation
2020-09-07 10:51:40 -07:00
Michael Scire
d2dd922f47
kern: add tracing for irq/scheduling
2020-09-07 10:51:39 -07:00
Michael Scire
b876337ffd
kern: cleanup some KMemoryManager functions
2020-09-07 10:51:39 -07:00
Michael Scire
f0b455de83
kern: refactor KMemoryLayout
2020-09-07 10:51:39 -07:00
Michael Scire
0a4a0d3f03
kern: N reduced the slabheap gap size in 10.0.0
2020-09-07 10:51:38 -07:00
Michael Scire
3d800b407e
kern: mark KThread/KProcess.GetId() final to save virtual calls
2020-09-07 10:51:38 -07:00
Michael Scire
6f177e3e84
kern: fix missing scheduler updates in KLightLock/Exception, fix RequestScheduleOnInterrupt
2020-09-07 10:51:38 -07:00
Michael Scire
4a91046154
kern: implement svc trace
2020-09-07 10:51:37 -07:00
Michael Scire
db93ab974d
kern: SvcChangeKernelTraceState
2020-09-07 10:51:37 -07:00
Michael Scire
b31aa538da
kern: remove stray log in SetHeapSize
2020-09-07 10:51:37 -07:00
Michael Scire
dc59a2d2e5
kern: build with -Wextra
2020-09-07 10:51:36 -07:00
Michael Scire
9f7bc49438
ams: avoid UB infinite loops
2020-08-14 17:36:37 -07:00
Michael Scire
4ee7df6340
ams: update build system to add generic-fallback support
2020-08-14 17:36:36 -07:00
Michael Scire
5d51dfdd6c
kernel_ldr: use unoptimized memcpy before mmu bringup ( closes #1102 )
...
Before the MMU is up, all reads/writes must be aligned; the optimized
memcpy implementation does not guarantee all reads/writes it performs
are aligned.
This commit splits the libc impl to be separate for kernel/kernel_ldr,
and so now only kernel will use the optimized impl. This is safe,
as the MMU is brought up before kernel begins executing.
2020-08-02 15:02:55 -07:00
Michael Scire
b5c915a6f2
kern: complete final SVC stubs (KernelDebug/Trace debug-impl still TODO)
2020-08-01 15:31:46 -07:00
Michael Scire
227b9603cd
kern: SvcReturnFromException
2020-08-01 15:31:46 -07:00
Michael Scire
2243c43449
kern: fix dynamic calculation of slab heap size
2020-08-01 15:31:45 -07:00
Michael Scire
f80eb2c26f
kern SvcGetDebugThreadContext, SvcSetDebugThreadContext
2020-08-01 15:31:45 -07:00
Michael Scire
ff9d3ee1d6
kern: SvcGetDebugThreadParam
2020-08-01 15:31:45 -07:00
Michael Scire
bb044b1934
kern: clean up majority of TODOs
2020-08-01 15:31:44 -07:00
Michael Scire
d50efee2c7
kern: resolve final non-user-exception MESOSPHERE_UNIMPLEMENTED
2020-08-01 15:31:44 -07:00
Michael Scire
1c733577b4
kern: SvcGetDebugEventInfo64From32
2020-08-01 15:31:44 -07:00
Michael Scire
c7f108082b
kern: resolve MESOSPHERE_UNIMPLEMENTEDs other than UserException
2020-08-01 15:31:44 -07:00
Michael Scire
3d5f2b7258
kern: Add real SvcBreak implementation
2020-08-01 15:31:43 -07:00
Michael Scire
b576737418
kern: SvcBreakDebugProcess, SvcTerminateDebugProcess
2020-08-01 15:31:43 -07:00
Michael Scire
179427687b
kern: SvcSetHardwareBreakPoint
2020-08-01 15:31:43 -07:00
Michael Scire
3b9403f3fc
kern: Svc(Legacy)ContinueDebugEvent
2020-08-01 15:31:42 -07:00
Michael Scire
349346ef34
kern: Add 4.x InitialProcessIdRange to SvcGetInfo
2020-08-01 15:31:42 -07:00
Michael Scire
a5d7e8328b
kern: SvcQueryPhysicalAddress
2020-08-01 15:31:42 -07:00
Michael Scire
35af9a4996
kern: style parity for return in GetThreadList
2020-08-01 15:31:42 -07:00
Michael Scire
83020ce2c4
kern: SvcGetThreadList
2020-08-01 15:31:41 -07:00
Michael Scire
a0de667005
kern: SvcGetLastThreadInfo, SvcGetDebugFutureThreadInfo
2020-08-01 15:31:41 -07:00
Michael Scire
641e92e6a0
kern: SvcFlushDataCache, SvcFlushEntireDataCache
2020-08-01 15:31:41 -07:00
Michael Scire
ef6ede3aeb
kern: SvcReadDebugProcessMemory, SvcWriteDebugProcessMemory
2020-08-01 15:31:40 -07:00
Michael Scire
0cfd30b9c1
kern: panic on failure-to-open auto object in debug config
2020-08-01 15:31:40 -07:00
Michael Scire
8019804c7f
kern: automatic PC alignment on ERET is implementation defined
2020-08-01 15:31:39 -07:00
Michael Scire
911a81430a
kern: switch memset to optimized impl
2020-08-01 15:31:39 -07:00
Michael Scire
4a38e5d4b6
kern: use optimized memcmp/memcpy implementations
2020-08-01 15:31:39 -07:00
Michael Scire
c39da750f2
SvcQueryDebugProcessMemory
2020-08-01 15:31:38 -07:00
Michael Scire
85932bb91e
kern: fix ARM vs THUMB mode selection on 32-bit entry
2020-08-01 15:31:38 -07:00
Michael Scire
fe1ab3785f
kern: fix whoops in light ipc
2020-08-01 15:31:38 -07:00
Michael Scire
e8021705d8
kern: SendSyncRequestLight, ReplyAndReceiveLight
2020-08-01 15:31:37 -07:00
Michael Scire
a7cc9dd743
kern: fix slab heap atomics
2020-08-01 15:31:37 -07:00
Michael Scire
395976f705
kern: fix bug in server handle cleanup
2020-08-01 15:31:37 -07:00
Michael Scire
ed54603dad
kern: fix nonsensical copy/pasted comments in QueryMemory
2020-08-01 15:31:37 -07:00
Michael Scire
7368d41603
kern: QueryMemory64From32, QueryProcessMemory64From32
2020-08-01 15:31:36 -07:00
Michael Scire
fcee459e40
kern: add KCodeMemory code left out of previous commit
2020-08-01 15:31:36 -07:00
Michael Scire
a7de710f09
kern: implement KCodeMemory (and SVCs)
2020-08-01 15:31:36 -07:00
Michael Scire
1a5513760b
kern: SvcGetSystemTick
2020-08-01 15:31:35 -07:00
Michael Scire
c64e490663
kern: implement SvcGetThreadContext3
2020-08-01 15:31:35 -07:00
Michael Scire
2cee81697c
kern: correct behavior when setting activity/core mask for pinned thread
2020-08-01 15:31:35 -07:00
Michael Scire
be1314cb88
kern: implement thread pinning/SvcSynchronizePreemptionState
2020-08-01 15:31:34 -07:00
Michael Scire
371a273988
kern: fix building under release config
2020-08-01 15:31:34 -07:00
Michael Scire
b98450c9cf
kern: Map L1/L2 blocks when possible
2020-08-01 15:31:34 -07:00
Michael Scire
89cc6468f9
kern: improve KLightLock accuracy
2020-08-01 15:31:34 -07:00
Michael Scire
e096d11e3a
kern: fix assertion in KThread::(Try)Suspend
2020-08-01 15:31:33 -07:00
Michael Scire
52e5e0866a
kern: fix bug in page table mapping calculations
2020-08-01 15:31:33 -07:00
Michael Scire
fe566cd5f9
kern: fix hardware timer task corruption on core migration
2020-08-01 15:31:33 -07:00
Michael Scire
6935929c33
kern: SvcMapPhysicalMemoryUnsafe, SvcUnmapPhysicalMemoryUnsafe
2020-08-01 15:31:33 -07:00
Michael Scire
a56e8ca4b0
kern: General system stability improvements to enhance the user's experience.
2020-08-01 15:31:32 -07:00
Michael Scire
590036eeb8
kern: Fix bug in thread core migration
2020-08-01 15:31:32 -07:00
Michael Scire
c624611487
kern: update interrupt manager
2020-08-01 15:31:32 -07:00
Michael Scire
10415aefee
kern: SvcUnmapPhysicalMemory, cleanup thread pinning
2020-08-01 15:31:31 -07:00
Michael Scire
85a5cdd6a5
kern: SvcQueryProcessMemory64, notification SvcBreaks
2020-08-01 15:31:31 -07:00
Michael Scire
dc8fccd168
kern: implement SvcMapPhysicalMemory
2020-08-01 15:31:31 -07:00
Michael Scire
4822da6fea
kern: finish SvcGetInfo
2020-08-01 15:31:30 -07:00
Michael Scire
b2af44006f
kern: Implement SecureMemory (system resource)
2020-08-01 15:31:30 -07:00
Michael Scire
a22d1d04f2
kern: implement SvcSleepSystem
2020-08-01 15:31:30 -07:00
Michael Scire
16ce69e333
kern: SvcInvalidateProcessDataCache
2020-08-01 15:31:30 -07:00
Michael Scire
4c5bab3a5b
kern: fix resource leak bugs
2020-08-01 15:31:29 -07:00
Michael Scire
c0c9fe5fd3
kern: SvcMapProcessCodeMemory, SvcUnmapProcessCodeMemory
2020-08-01 15:31:29 -07:00
Michael Scire
52d15eecd8
kern: Fix bug when reducing heap size
2020-08-01 15:31:29 -07:00
Michael Scire
600a069f00
kern SvcGetCurrentProcessorNumber, SvcSetProcessActivity, half of SvcSetThreadActivity
2020-08-01 15:31:29 -07:00
Michael Scire
bfca682c3f
kern: SvcGetThreadCoreMask, SvcSetThreadCoreMask
2020-08-01 15:31:28 -07:00
Michael Scire
c9588f5739
kern: SvcSetMemoryPermission
2020-08-01 15:31:28 -07:00
Michael Scire
0cfdef738d
kern: implement transfer memory (and SVCs)
2020-08-01 15:31:28 -07:00
Michael Scire
670824fa0a
kern: implement process exit
2020-08-01 15:31:27 -07:00
Michael Scire
24eb07e72c
kern: add SvcFlushProcessDataCache, SvcStoreProcessDataCache
2020-08-01 15:31:27 -07:00
Michael Scire
417ed5f01c
kern: implement SvcSetMemoryAttribute
2020-08-01 15:31:27 -07:00
Michael Scire
4d03635829
kern: fix bugs in interrupt permittance, DpcManager init
2020-08-01 15:31:26 -07:00
Michael Scire
df019af185
kern: SvcGetProcessInfo, SvcTerminateProcess
2020-08-01 15:31:26 -07:00
Michael Scire
0013041509
kern: KConditionVariable::SignalImpl
2020-08-01 15:31:26 -07:00
Michael Scire
fe48b9163d
kern: fully implement KSharedMemory (and Svcs)
2020-08-01 15:31:25 -07:00
Michael Scire
e5d0e2863b
kern: add SvcStartProcess
2020-08-01 15:31:25 -07:00
Michael Scire
8cad49ee02
kern: add KProcess::Initialize (for non-kip processes)
2020-08-01 15:31:25 -07:00
Michael Scire
fcffa49fd5
kern: implement first half of SvcCreateProcess
2020-08-01 15:31:25 -07:00
Michael Scire
e760bd7038
kern: implement SvcMapProcessMemory, SvcUnmapProcessMemory
2020-08-01 15:31:24 -07:00
Michael Scire
4b3fb40ed9
kern: implement KThread::Finalize
2020-08-01 15:31:24 -07:00
Michael Scire
b26547b38c
kern: KDevicePageTable::Finalize, InfoType_RandomEntropy
2020-08-01 15:31:24 -07:00
Michael Scire
19e2128cb8
kern: fix attribute checks in device unmap
2020-08-01 15:31:24 -07:00
Michael Scire
f8476cc761
kern: finish SvcGetSystemInfo
2020-08-01 15:31:23 -07:00
Michael Scire
70385eeec9
kern: fix asid tlb invalidation
2020-08-01 15:31:23 -07:00
Michael Scire
69274df795
kern: dump page table on user exception
2020-08-01 15:31:23 -07:00
Michael Scire
d0a4bdba02
kern: implement ResourceLimit Svcs
2020-08-01 15:31:22 -07:00
Michael Scire
5bfe2eba66
kern: add ResourceLimit to svcGetInfo
2020-08-01 15:31:22 -07:00
Michael Scire
767a3fca3a
kern: fix incorrect cache routines, implement SvcSetProcessMemoryPermission
2020-08-01 15:31:22 -07:00
Michael Scire
e30c8b6ac8
kern: implement SvcCancelSynchronization
2020-08-01 15:31:22 -07:00
Michael Scire
80f8b8b9b0
kern: fix bug in SvcSetThreadPriority
2020-08-01 15:31:21 -07:00
Michael Scire
ae68a9c38d
kern: SvcCreateSession, KDebug finalization
2020-08-01 15:31:21 -07:00
Michael Scire
eeb12eb4a2
kern: implement SvcDebugActiveProcess, svcGetDebugEvent, SvcWaitProcessWideKeyAtomic
2020-08-01 15:31:21 -07:00
Michael Scire
ba1d964100
kern: fix bug in KPageTableBase::SetupForIpcServer
2020-08-01 15:31:20 -07:00
Michael Scire
e721b4494c
kern: implement SvcSetThreadPriority
2020-08-01 15:31:20 -07:00
Michael Scire
29a3bafb6f
kern: fix kscheduler interrupt api, adjust debug logging
2020-08-01 15:31:20 -07:00
Michael Scire
900a90a843
kern: fix bug in up/downcasting of scoped auto objects
2020-08-01 15:31:19 -07:00
Michael Scire
a22c0a84dd
kern: implement SvcSignalToAddress, SvcWaitForAddress
2020-08-01 15:31:19 -07:00
Michael Scire
811cf0768a
kern: add KAddressArbiter::WaitIfEqual
2020-08-01 15:31:19 -07:00
Michael Scire
e36b225951
kern: implement SvcSetHeapSize
2020-08-01 15:31:18 -07:00
Michael Scire
a572354a13
kern: implement all device address space svcs
2020-08-01 15:31:18 -07:00
Michael Scire
e179b5e1fa
kern: retrieve target firmware from exosphere instead of hardcoding
2020-08-01 15:31:18 -07:00
Michael Scire
8295d4830d
kern: implement DetachDeviceAddressSpace, skeleton other das funcs in KDevicePageTable
2020-08-01 15:31:18 -07:00
Michael Scire
d501c3832a
kern: add infra (but not impl) for all DeviceAddressSpace svcs
2020-08-01 15:31:17 -07:00
Michael Scire
e7f2bd582b
kern: qualify inherited KAutoObjectWithListContainer accessor typenames
2020-08-01 15:31:17 -07:00
Michael Scire
fd486a5efd
kern: implement SvcGetProcessList
2020-08-01 15:31:17 -07:00
Michael Scire
d72564d522
kern: add SvcCreateDeviceAddressSpace, SvcAttachDeviceAddressSpace
2020-08-01 15:31:17 -07:00
Michael Scire
df104ecc34
kern: implement SvcCreateInterruptEvent
2020-08-01 15:31:16 -07:00
Michael Scire
160cec7cd8
kern: implement SvcCreateEvent, SvcSignalEvent, SvcClearEvent, SvcResetSignal
2020-08-01 15:31:16 -07:00
Michael Scire
f8b115eab6
kern: add SvcCreatePort, SvcConnectToPort
2020-08-01 15:31:16 -07:00
Michael Scire
e1f094d49e
kern: add SvcReadWriteRegister
2020-08-01 15:31:16 -07:00
Michael Scire
03d30f5b15
kern: patch svc tables via asm, instead of relying on compiler to be nice
2020-08-01 15:31:15 -07:00
Michael Scire
ba0da382ad
kern: Implement QueryIoMapping logic for < 8.0.0
2020-08-01 15:31:15 -07:00
Michael Scire
8dbdf596bc
kern: Support older SVC ABIs
2020-08-01 15:31:15 -07:00
Michael Scire
1a8393e8b2
kern: add SvcQueryIoMapping (NOTE: pre-10.x, ABI needs update)
2020-08-01 15:31:11 -07:00
Michael Scire
dbc6d39d85
kern: fix/add InfoType_(Total/Used)(NonSystem/)MemorySize
2020-08-01 15:31:10 -07:00
Michael Scire
c9719ffac0
kern: assert correctness for complete class hierarchy
2020-08-01 15:31:10 -07:00
Michael Scire
262e992650
kern: fix bugs in Receive/Exchange ipc buffers
2020-08-01 15:31:10 -07:00
Michael Scire
cf5248957b
kern: fix UpdateLock perms for ipc
2020-08-01 15:31:09 -07:00
Michael Scire
e0383c961f
kern: fix unaligned map alias buffers
2020-08-01 15:31:09 -07:00
Michael Scire
9e2cecb4f6
kern: fix bugs in MapAlias ipc mappings
2020-08-01 15:31:09 -07:00
Michael Scire
cfece6452c
kern: implement IPC KPageTable functionality
2020-08-01 15:31:09 -07:00
Michael Scire
756bc0e52e
kern: fix bug in ToMessageBuffer pointer transfer selection
2020-08-01 15:31:08 -07:00
Michael Scire
5d3f416451
kern/KScheduler: implement special yields
2020-08-01 15:31:08 -07:00
Michael Scire
d5310407ad
kern: implement SvcSleepThread for ns > 0
2020-08-01 15:31:08 -07:00
Michael Scire
2a8979b6a1
kern: implement KPageTableBase::CopyHeapToHeap(WithoutCheckDestination)
2020-08-01 15:31:08 -07:00
Michael Scire
7a57010993
kern: add KPageTableBase::CopyMemory Linear <-> User and Linear <-> Kernel
2020-08-01 15:31:07 -07:00
Michael Scire
9fdf063039
kern: mostly implement thread exit
2020-08-01 15:31:07 -07:00
Michael Scire
09305d147a
kern/ipc: fix bug in SendMessage
2020-08-01 15:31:07 -07:00
Michael Scire
17c04d234d
kern/ipc: implement remaining KServerSession reply code
2020-08-01 15:31:06 -07:00
Michael Scire
a574c00d5f
kern: add SvcExitThread, SvcSendAsyncRequestWithUserBuffer, SvcReplyAndReceiveWithUserBuffer
2020-08-01 15:31:06 -07:00
Michael Scire
47a4b18b76
kern/ipc: implement most of reply
2020-08-01 15:31:06 -07:00
Michael Scire
d51693b539
kern/ipc: implement SendReply, declare SendMessage
2020-08-01 15:31:06 -07:00
Michael Scire
a8a16c6a69
kern/ipc: add Atmosphere's mitm pid passthrough logic
2020-08-01 15:31:05 -07:00
Michael Scire
652be6087e
ipc/receive: trivially correct result return codeflow
2020-08-01 15:31:05 -07:00
Michael Scire
27d1e6e549
kern/ipc: finish Receive part of ReplyAndReceive
2020-08-01 15:31:05 -07:00
Michael Scire
67c18a0008
ipc: add MapAlias processing logic for Receive
2020-08-01 15:31:04 -07:00
Michael Scire
6a6b989dd2
ipc::Reply -> implement Pointer handling logic
2020-08-01 15:31:04 -07:00
Michael Scire
f7b9ea9ff5
ipc::Reply -> add raw data copy logic
2020-08-01 15:31:04 -07:00
Michael Scire
50fd330bad
kern: implement remaining non-KServerSession:: part of Reply/Receive
2020-08-01 15:31:04 -07:00
Michael Scire
2692299372
kern: partially implement Receive half of ReplyAndReceive
2020-08-01 15:31:03 -07:00
Michael Scire
d986b698d4
kern: implement SvcSendSyncRequest(WithUserBuffer)
2020-08-01 15:31:03 -07:00
Michael Scire
8479ff4a1a
kern: implement SvcArbitrateLock, SvcArbitrateUnlock
2020-08-01 15:31:03 -07:00
Michael Scire
2415b68748
kern: skeleton SvcReplyAndReceive
2020-08-01 15:31:02 -07:00
Michael Scire
70291b4608
kern: partially implement SvcSignalProcessWideKey
2020-08-01 15:31:02 -07:00
Michael Scire
f752db8379
kern: implement SvcCreateThread, SvcStartThread
2020-08-01 15:31:02 -07:00