Commit graph

2545 commits

Author SHA1 Message Date
Michael Scire
e0894acd6d kern: correct thread termination atomicity 2020-08-17 14:20:50 -07:00
Michael Scire
d21f3a9a61 kern: fix reference leak in KThread::GetThreadFromId callers 2020-08-17 14:20:50 -07:00
Michael Scire
58cf0f17f0 kern: non-loop cas-weak -> cas-strong 2020-08-17 14:20:50 -07:00
Michael Scire
82ae603e0f kern: fix bug in KScheduler::ClearPreviousThread 2020-08-17 14:20:50 -07:00
fincs
f75aa59f8c arm64: set -march in cpu specific configuration 2020-08-17 14:20:50 -07:00
fincs
63605b8a97 kern: use size instead of phys addr as sentinel value in InitializeCore linear mapping logic 2020-08-17 14:20:50 -07:00
fincs
1474f422e5 kern: remove accidentally copypasted code 2020-08-17 14:20:50 -07:00
fincs
b25a01633e kern: add stubbed KDevicePageTable implementation for systems without iommu 2020-08-17 14:20:50 -07:00
fincs
11950b84ae kern: move SetupPoolPartitionMemoryRegions into board specific implementation 2020-08-17 14:20:50 -07:00
fincs
0b387dcfd2 kern: make GetTargetFirmware a compile-time constant when not building for Switch 2020-08-17 14:20:50 -07:00
Michael Scire
47169d9ce6 kern: use std::atomic_ref instead of reinterpret_cast to std::atomic 2020-08-17 14:20:50 -07:00
Michael Scire
59dc4b2e27 kern: use common GIC implementation for arm/arm64 2020-08-17 14:20:50 -07:00
Michael Scire
af5b3f99b0 kern: correct flushing of init arguments 2020-08-17 14:20:50 -07:00
Michael Scire
1ca7078df5 kern: simplify SetupForIpcClient cleanup 2020-08-17 14:20:50 -07:00
Michael Scire
bde431396b kern: SvcLegacyGetFutureThreadInfo 2020-08-17 14:20:50 -07:00
Michael Scire
4d7c8aa978 kern: rename CacheHelper operation for accuracy 2020-08-17 14:20:50 -07:00
Michael Scire
2f369485c8 kern: KPageTableBase::WriteDebugMemory stores/invalidates cache 2020-08-17 14:20:50 -07:00
Michael Scire
624c345699 kern: fix multicore instruction cache invalidation 2020-08-17 14:20:50 -07:00
Michael Scire
f100ede063 kern: add tracing for irq/scheduling 2020-08-17 14:20:50 -07:00
Michael Scire
da0aee2c76 kern: cleanup some KMemoryManager functions 2020-08-17 14:20:50 -07:00
Michael Scire
d4cc8efe05 kern: refactor KMemoryLayout 2020-08-17 14:20:50 -07:00
Michael Scire
ee9c033b2f IntrusiveRedBlackTree: refactor to add ->GetPrev(), ->GetNext() to BaseNode inheritors 2020-08-17 14:20:50 -07:00
Michael Scire
beaa3098f8 kern: N reduced the slabheap gap size in 10.0.0 2020-08-17 14:20:49 -07:00
Michael Scire
533d53e64b kern: mark KThread/KProcess.GetId() final to save virtual calls 2020-08-17 14:20:49 -07:00
Michael Scire
b1dd432568 kern: fix built-in usage for libc 2020-08-17 14:20:49 -07:00
Michael Scire
d1ef19885a kern: fix missing scheduler updates in KLightLock/Exception, fix RequestScheduleOnInterrupt 2020-08-17 14:20:49 -07:00
Michael Scire
c9e83530da kern: implement svc trace 2020-08-17 14:20:49 -07:00
Michael Scire
843b1bb11b kern: SvcChangeKernelTraceState 2020-08-17 14:20:49 -07:00
Michael Scire
67ff0dbbf1 kern: remove stray log in SetHeapSize 2020-08-17 14:20:49 -07:00
Michael Scire
73798cb812 kern: build with -Wextra 2020-08-17 14:20:24 -07:00
Michael Scire
d3014f6ed9 git subrepo push libraries
subrepo:
  subdir:   "libraries"
  merged:   "2d522dc6"
upstream:
  origin:   "https://github.com/Atmosphere-NX/Atmosphere-libs"
  branch:   "master"
  commit:   "2d522dc6"
git-subrepo:
  version:  "0.4.1"
  origin:   "???"
  commit:   "???"
2020-08-15 09:20:46 -07:00
Michael Scire
35fffade4e libstrat: fix building of source/os/* 2020-08-15 09:20:11 -07:00
Michael Scire
2c6b7ce6c2 git subrepo push libraries
subrepo:
  subdir:   "libraries"
  merged:   "5a60240f"
upstream:
  origin:   "https://github.com/Atmosphere-NX/Atmosphere-libs"
  branch:   "master"
  commit:   "5a60240f"
git-subrepo:
  version:  "0.4.1"
  origin:   "???"
  commit:   "???"
2020-08-14 17:37:03 -07:00
Michael Scire
7658c07492 strat: fix inclusion/ordering for some c headers 2020-08-14 17:33:49 -07:00
Michael Scire
51b5c3d87d ams: avoid UB infinite loops 2020-08-13 17:28:29 -07:00
Michael Scire
874208b44a sf: handle serialization errors more accurately and gracefully 2020-08-11 16:40:57 -07:00
Michael Scire
44c5cb9789 ams: add support for cpu-extension specific source files 2020-08-11 11:43:34 -07:00
Michael Scire
420bc7df9b ams: update build system to add generic-fallback support 2020-08-11 11:22:56 -07:00
Michael Scire
ee3e0fa537 fatal: use TimeSpan for timing 2020-08-03 19:52:53 -07:00
Aurora Wright
501280b6e5 fatal: Fix autoreboot logic 2020-08-03 19:44:14 -07:00
Michael Scire
ee5a095c1a git subrepo push libraries
subrepo:
  subdir:   "libraries"
  merged:   "cac5957d"
upstream:
  origin:   "https://github.com/Atmosphere-NX/Atmosphere-libs"
  branch:   "master"
  commit:   "cac5957d"
git-subrepo:
  version:  "0.4.1"
  origin:   "???"
  commit:   "???"
2020-08-02 15:03:17 -07:00
Michael Scire
3726def6ec ams: dump version to 0.14.1 2020-08-02 15:02:43 -07:00
Michael Scire
29358dc593 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 14:40:28 -07:00
Michael Scire
a82914d58e git subrepo push libraries
subrepo:
  subdir:   "libraries"
  merged:   "f288b81b"
upstream:
  origin:   "https://github.com/Atmosphere-NX/Atmosphere-libs"
  branch:   "master"
  commit:   "f288b81b"
git-subrepo:
  version:  "0.4.1"
  origin:   "???"
  commit:   "???"
2020-08-01 15:37:27 -07:00
Michael Scire
0508b5d31b target firmware: I am remarkably bad at this 2020-08-01 15:36:50 -07:00
Michael Scire
235c070a37 git subrepo push libraries
subrepo:
  subdir:   "libraries"
  merged:   "4e80a401"
upstream:
  origin:   "https://github.com/Atmosphere-NX/Atmosphere-libs"
  branch:   "master"
  commit:   "4e80a401"
git-subrepo:
  version:  "0.4.1"
  origin:   "???"
  commit:   "???"
2020-08-01 15:36:09 -07:00
Michael Scire
82f757459e target firmware: fix typo 2020-08-01 15:35:38 -07:00
Michael Scire
b2b47da8c1 git subrepo push libraries
subrepo:
  subdir:   "libraries"
  merged:   "27c71f4e"
upstream:
  origin:   "https://github.com/Atmosphere-NX/Atmosphere-libs"
  branch:   "master"
  commit:   "27c71f4e"
git-subrepo:
  version:  "0.4.1"
  origin:   "???"
  commit:   "???"
2020-08-01 15:34:13 -07:00
Michael Scire
bc364029b2 docs: update changelog 2020-08-01 15:30:25 -07:00
Michael Scire
ac9832c5ce docs: update roadmap 2020-08-01 15:29:59 -07:00