Commit Graph

398 Commits

Author SHA1 Message Date
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
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
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
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
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
262e992650 kern: fix bugs in Receive/Exchange ipc buffers 2020-08-01 15:31:10 -07:00
Michael Scire
cfece6452c kern: implement IPC KPageTable functionality 2020-08-01 15:31:09 -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
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
f7b9ea9ff5 ipc::Reply -> add raw data copy logic 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
Michael Scire
3c386e8ab3 kern: implement SvcMapMemory 2020-08-01 15:31:02 -07:00
Michael Scire
139e043abc kern: implement SvcAcceptSession 2020-08-01 15:31:01 -07:00
Michael Scire
c5e4c7c921 kern: implement SvcWaitSynchronization 2020-08-01 15:31:01 -07:00
Michael Scire
98ac3c7efc kern: implement KEvent, KWritableEvent, KServerSession::OnClientClosed 2020-08-01 15:31:01 -07:00
Michael Scire
88142a11c4 kern: implement SvcCloseHandle 2020-08-01 15:31:01 -07:00
Michael Scire
72d4c01501 kern: SvcConnectToNamedPort 2020-08-01 15:31:00 -07:00
Michael Scire
b9fb29e1c7 kern: svcOutputDebugString, svcGetThreadPriority, svcGetThreadId 2020-08-01 15:31:00 -07:00
Michael Scire
191e233745 kern: implement SvcUnmapMemory, more of SvcGetInfo 2020-08-01 15:31:00 -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
1f35c699a7 ams: revamp target firmware 2020-05-12 15:44:18 -07:00
Michael Scire
80f8bc631e kern: fix KLinkedList dtor 2020-04-27 10:34:07 -07:00
Michael Scire
2914752dcc kern: implement SvcSetUnsafeLimit 2020-04-27 10:34:06 -07:00
Michael Scire
e668fbb68a kern: implement KUnsafeMemory 2020-04-27 10:34:06 -07:00
Michael Scire
4496c6aa23 kern/kldr: fix bugs in physical randomization 2020-04-24 17:29:11 -07:00
Michael Scire
2e18a27f3a os: bug fixes after re-review of rwlock code 2020-04-24 17:29:11 -07:00
Michael Scire
71027e463a kern: implement 10.x perm change, fix many page table bugs 2020-04-24 17:29:10 -07:00
Michael Scire
ac1302256b kern: randomize dynamic slab heaps to reflect 10.x changes 2020-04-24 17:29:10 -07:00
Michael Scire
432e2aa60d kern: fix suboptimal mapping choices by kernel/kernelldr 2020-04-24 17:29:09 -07:00
Michael Scire
08b4ed8daf kern: Update init to reflect 10.0.0 changes 2020-04-24 17:29:09 -07:00
Michael Scire
4c1dc00766 kern: Update page bitmaps/alloc to reflect 10.0.0 changes 2020-04-24 17:29:09 -07:00
Michael Scire
6777a7229b mesosphere: implement KMemoryBlockManager::UpdateLock 2020-04-16 20:05:56 -07:00
Michael Scire
a253850abc ams: fix boot sysmodule/kernel for 10.0.0 2020-04-15 11:55:06 -07:00
Michael Scire
b4f1833c50 kernel_ldr: update to support 10.0.0 2020-04-15 11:55:05 -07:00
bunnei
11d6eae34e KPageHeap: Fix a typo in initialization block alignment. (#862) 2020-03-30 20:41:22 -07:00
Michael Scire
bc9c0c255c kern: Implement SvcManageNamedPort 2020-03-18 00:15:04 -07:00
Michael Scire
b5f8d04924 kern: implement CallSecureMonitor, some of GetInfo/GetSystemInfo 2020-03-18 00:15:02 -07:00
Michael Scire
b497fdbc6a kern: tweak KHandleTable impl 2020-03-18 00:15:01 -07:00
Michael Scire
1e9368c770 ams: revamp assertion system 2020-03-02 19:51:04 -08:00
Michael Scire
32dd1111e0 kern: correct error in KUserPointer 2020-03-02 19:51:02 -08:00
Michael Scire
3c8d569f0a kern: mem access prep for svc streams, TODO_IMPLEMENT -> UNIMPLEMENTED 2020-03-02 19:51:02 -08:00
Michael Scire
ee9d50232c kern: correct KClassToken generation 2020-03-02 19:51:02 -08:00
Michael Scire
79b9793fcd kern: minor fixes to prevent core0-2 panics during boot 2020-03-02 19:51:01 -08:00
Michael Scire
1dbea5db13 kern: fix building without debugging turned on 2020-03-02 19:51:01 -08:00
Michael Scire
feae39aa2e kern: implement KUserPointer (and test with QueryMemory) in advance of svc dev 2020-03-02 19:51:01 -08:00
Michael Scire
29b3c509fb kern: implement large page group mapping, fix debug flag cap 2020-03-02 19:51:01 -08:00
Michael Scire
2e23abe83d kern: implement user thread start, el0 code now runs 2020-03-02 19:51:01 -08:00
Michael Scire
fb23bfc77f kern: implement unsuspension of init threads 2020-03-02 19:51:00 -08:00
Michael Scire
cba973f859 kern: implement KProcess::Run 2020-03-02 19:51:00 -08:00
Michael Scire
67c77d92f7 kern: implement SetProcessMemoryPermission 2020-03-02 19:51:00 -08:00
Michael Scire
46258eaf63 kern: finish KProcess::Initialize() for KIPs 2020-03-02 19:51:00 -08:00
Michael Scire
a385be8301 kern: implement MapIo 2020-03-02 19:50:59 -08:00
Michael Scire
bd81af7439 kern: implement capabilities parsing 2020-03-02 19:50:59 -08:00
Michael Scire
40619b2eeb kern: implement process(pagetable) init 2020-03-02 19:50:58 -08:00
Michael Scire
375d5ecd08 kern: add KProcess members 2020-03-02 19:50:58 -08:00
Michael Scire
733b13441d kern: implement IsValidPageGroup 2020-03-02 19:50:58 -08:00
Michael Scire
868f2aa1b9 kern: implement page group unmapping 2020-03-02 19:50:58 -08:00
Michael Scire
d3a47ce27a kern: implement through kip decompression 2020-03-02 19:50:57 -08:00
Michael Scire
a35f47e61d kern: skeleton initial process loading 2020-03-02 19:50:57 -08:00
Michael Scire
a599e2f892 kern: implement smmu init 2020-03-02 19:50:57 -08:00
Michael Scire
c87812ef8a kern: switch->nx, implement sleep manager init 2020-03-02 19:50:56 -08:00
Michael Scire
103122ab4c kern: kern::arm64 -> kern::arch::arm64 2020-03-02 19:50:56 -08:00
Michael Scire
b550f2c3cd kern: implement lightlock slowpath (works on hw) 2020-03-02 19:50:56 -08:00
Michael Scire
0ec0d0db8d kern: implement KWorkerTaskManager 2020-03-02 19:50:56 -08:00
Michael Scire
fe32c9d12d kern: implement interrupt thread init 2020-03-02 19:50:55 -08:00
Michael Scire
049ae760ab libmesosphere: move .s to kernel (prevent manifesting in kernelldr) 2020-03-02 19:50:55 -08:00
Michael Scire
f2b38254d3 kern: implement enough of KPageTable to initialize a thread 2020-03-02 19:50:55 -08:00
Michael Scire
4c78b8f7af kern: implement KMemoryBlockManager::Update 2020-03-02 19:50:54 -08:00
Michael Scire
1f655ad760 kern: implement init through InterruptTaskManager.Initialize() 2020-03-02 19:50:54 -08:00
Michael Scire
2f285ec86b kern: implement KMemoryBlockManager init 2020-03-02 19:50:54 -08:00
Michael Scire
870fe26090 kern: add KPageTableBase members 2020-03-02 19:50:53 -08:00
Michael Scire
74950d85d1 kern: begin skeletoning page table types 2020-03-02 19:50:53 -08:00
Michael Scire
6ff5a3fda7 kern: print layout for debug during startup 2020-03-02 19:50:53 -08:00
Michael Scire
02ffc465bd kern: add svc stubs, turn on svc table build 2020-03-02 19:50:52 -08:00
Michael Scire
c3a76103b6 mesosphere: hard enforcement of TODOs 2020-03-02 19:50:52 -08:00
Michael Scire
7e1b820041 kern: Implement exception vector ASM 2020-03-02 19:50:52 -08:00
Michael Scire
09ef619c51 kern: bugfix, turn on auditing for the time being 2020-03-02 19:50:52 -08:00
Michael Scire
6930294583 kern: implement dpc + skeleton rest of main 2020-03-02 19:50:51 -08:00
Michael Scire
a58b57ef24 kern: obj stubs to get past slab init 2020-03-02 19:50:51 -08:00
Michael Scire
b53659b398 kern: print backtrace on panic 2020-03-02 19:50:51 -08:00
Michael Scire
8b3c64323b kern: implement dynamic slab init + ini relocation 2020-03-02 19:50:51 -08:00
Michael Scire
93c2f6cf32 kern: implement more of KMemoryManager through KPageBuffer slab init 2020-03-02 19:50:51 -08:00
Michael Scire
8b9e19b8f3 kern: implement KMemoryManager init 2020-03-02 19:50:50 -08:00
Michael Scire
7e2b75ce0f kern: implement KResourceLimit 2020-03-02 19:50:50 -08:00
Michael Scire
ae0c9ef1d6 kern: fix carveout region calcs 2020-03-02 19:50:50 -08:00
Michael Scire
d2072dc573 kern: implement uart init + logging 2020-03-02 19:50:50 -08:00
Michael Scire
eeda912cd1 kern: s/MemoryBlock/MemoryRegion/g 2020-03-02 19:50:49 -08:00
Michael Scire
6f2b517d86 kern: implement more of KInterruptManager 2020-03-02 19:50:49 -08:00
Michael Scire
841f6cf1d9 kern: implement much of KScheduler, KHardwareTimer 2020-03-02 19:50:49 -08:00
Michael Scire
9fd8a08495 style cleanup 2020-03-02 19:50:49 -08:00
Michael Scire
af2b9252ec kern: add abstract scoped lock template 2020-03-02 19:50:49 -08:00
Michael Scire
4e0de30536 kern: implement KSchedulerLock 2020-03-02 19:50:48 -08:00
Michael Scire
8fce9ea672 kern: mostly implement KThread::Initialize 2020-03-02 19:50:47 -08:00
Michael Scire
c5bb5e4f43 kern: add all kthread members 2020-03-02 19:50:47 -08:00
Michael Scire
59a66ddad3 kern: implement KThreadContext 2020-03-02 19:50:47 -08:00
Michael Scire
efcfa04a80 kern: implement KPriorityQueue 2020-03-02 19:50:47 -08:00
Michael Scire
13cb4a8c5a kern: implement KAffinityMask 2020-03-02 19:50:46 -08:00
Michael Scire
25048b72f5 kern: implement KThreadLocalPage 2020-03-02 19:50:46 -08:00
Michael Scire
458572283b kern: implement KHandleTable, other cleanup 2020-03-02 19:50:46 -08:00
Michael Scire
60c286164b kern: fully implement slabheap init 2020-03-02 19:50:45 -08:00
Michael Scire
ed41030c42 kern: Skeleton KSynchronizationObject 2020-03-02 19:50:45 -08:00
Michael Scire
7b58a368a9 kern: Implement KAutoObject, KSlabHeap, KLightLock 2020-03-02 19:50:45 -08:00
Michael Scire
7c7d5985e2 kern: optimize memory block tree lookups 2020-03-02 19:50:44 -08:00
Michael Scire
923ee1c494 kern: skeleton enough types to init KCoreLocalRegion in main() 2020-03-02 19:50:44 -08:00
Michael Scire
e8dbc5cbb0 meso: makefile improvements, sysreg accessors 2020-03-02 19:50:44 -08:00
Michael Scire
28465b1a82 kern: implement debug register/vectors init 2020-03-02 19:50:44 -08:00
Michael Scire
dd79074734 kern: implement pool partition memblock setup 2020-03-02 19:50:43 -08:00
Michael Scire
c0e7bc5c9d kern: Implement most of memory init (all cores hit main, but still more to do) 2020-03-02 19:50:43 -08:00
Michael Scire
27acf7bf23 meso: find -exec sed -i'' -e 's/2018-2019 Atmo/2018-2020 Atmo/g' {} + 2020-03-02 19:50:43 -08:00
Michael Scire
b7e9fc1513 kern: finish implementing assembly init routines 2020-03-02 19:50:42 -08:00
Michael Scire
0ef7d15c5e meso: add script to build mesosphere.bin 2020-03-02 19:50:41 -08:00
Michael Scire
6c540ee0e4 mesosphere: Implement SVC table auto-generation 2020-03-02 19:50:41 -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
197610d8e2 kernel_ldr: clean up KSystemControl init API 2020-01-03 13:05:28 -08:00
Michael Scire
6ce4be859f mesosphere: refactor Elf vs Elf64 distinction 2020-01-03 13:05:27 -08:00
Michael Scire
4e81f0176a kernel_ldr::cpu: prevent reordering around barrier instructions 2020-01-03 13:05:25 -08:00
Michael Scire
fcae4af5f7 kernelldr: miscellaneous fixes 2020-01-03 13:05:25 -08:00
Michael Scire
c85fac4c43 kernel_ldr: finish implementing all core logic. 2020-01-03 13:05:23 -08:00
fincs
e89e0cc45d meso: miscellaneous cleanup and build fixes 2020-01-03 13:05:22 -08:00
SciresM
ab902694f7 Remove unnecessary copyright header. 2020-01-03 13:05:22 -08:00
Michael Scire
b74a5a2676 mesosphere: Implement kernelldr through first page table mapping 2020-01-03 13:05:21 -08:00
Michael Scire
f83d72e18b meso: skeleton libmesosphere in prep for kernelldr dev 2020-01-03 13:05:20 -08:00