redo boot around an explicit system volume and fixed kernel/HAL images, redo volumes and filesystem paths around capabilities instead of drive numbers and kernel CWD state, add a capability/security model with derived and revocable handles and security contexts, add port IPC and rssrv to manage the userspace resource namespace and publish the system volume, move process, dll and path loading to userspace and add process builder syscalls, init now supervises rssrv and the session process, redo the syscall ABI around request structs and four arguments, add a volume manager and proper partition arrival/removal handling so FAT and NTFS mount dynamically, clean up the HAL/DDK boundary so drivers don't depend on HAL internals, save fpu state properly now, the serial driver doesn't hang on a missing port, fix AHCI startup races, fix timeout accounting, fix shared mmap writeback, more smoke tests
This commit is contained in:
1 parent
4add6789ba
commit
f882d339fb
232 files changed
+20934
-8898
No files matched your search
@@ -8,7 +8,7 @@
|
||||
|
||||
// Prints one NUL-terminated string to the kernel console.
|
||||
static void print(const char* s) {
|
||||
SYS_WRITE_CONSOLE_REQUEST req = { SysSvFromCstr(s) };
|
||||
SYS_WRITE_CONSOLE_REQUEST req = { sizeof(SYS_WRITE_CONSOLE_REQUEST), SysSvFromCstr(s) };
|
||||
SysWriteConsole(&req);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ static void print_u64(uint64_t v) {
|
||||
}
|
||||
while (i--) {
|
||||
char c = buf[i];
|
||||
SYS_WRITE_CONSOLE_REQUEST req = { SysSvFromParts(&c, 1) };
|
||||
SYS_WRITE_CONSOLE_REQUEST req = { sizeof(SYS_WRITE_CONSOLE_REQUEST), SysSvFromParts(&c, 1) };
|
||||
SysWriteConsole(&req);
|
||||
}
|
||||
}
|
||||
@@ -92,11 +92,34 @@ static void check_fixed_stats(void) {
|
||||
if (filesystem.Size != sizeof(filesystem)) fail("filesystem size field mismatch");
|
||||
if (filesystem.Version != SYS_STATS_VERSION) fail("filesystem version mismatch");
|
||||
|
||||
SYS_VOLUME_STATS volumeStats;
|
||||
status = SysQueryKernelStats(SYS_KERNEL_STATS_VOLUME, &volumeStats, sizeof(volumeStats), 0);
|
||||
if (status != NTLSTATUS_SUCCESS) fail_status("volume exact", status);
|
||||
if (volumeStats.Size != sizeof(volumeStats)) fail("volume size field mismatch");
|
||||
if (volumeStats.Version != SYS_STATS_VERSION) fail("volume version mismatch");
|
||||
if (volumeStats.CreatedVolumes == 0) fail("volume created count is zero");
|
||||
if (volumeStats.MountedVolumes == 0) fail("volume mounted count is zero");
|
||||
if (volumeStats.ProviderDestroys > volumeStats.RemovedVolumes) fail("volume destroy count exceeds removals");
|
||||
|
||||
SYS_VOLUME_MANAGER_STATS volumeManagerStats;
|
||||
status = SysQueryKernelStats(SYS_KERNEL_STATS_VOLUME_MANAGER, &volumeManagerStats, sizeof(volumeManagerStats), 0);
|
||||
if (status != NTLSTATUS_SUCCESS) fail_status("volume manager exact", status);
|
||||
if (volumeManagerStats.Size != sizeof(volumeManagerStats)) fail("volume manager size field mismatch");
|
||||
if (volumeManagerStats.Version != SYS_STATS_VERSION) fail("volume manager version mismatch");
|
||||
if (volumeManagerStats.Snapshots == 0) fail("volume manager snapshot count is zero");
|
||||
if (volumeManagerStats.VolumeOpens == 0) fail("volume manager open count is zero");
|
||||
|
||||
SYS_EXCEPTION_STATS exceptionStats;
|
||||
status = SysQueryKernelStats(SYS_KERNEL_STATS_EXCEPTION, &exceptionStats, sizeof(exceptionStats), 0);
|
||||
if (status != NTLSTATUS_SUCCESS) fail_status("exception exact", status);
|
||||
if (exceptionStats.Size != sizeof(exceptionStats)) fail("exception size field mismatch");
|
||||
if (exceptionStats.Version != SYS_STATS_VERSION) fail("exception version mismatch");
|
||||
|
||||
SYS_PORT_STATS portStats;
|
||||
status = SysQueryKernelStats(SYS_KERNEL_STATS_PORT, &portStats, sizeof(portStats), 0);
|
||||
if (status != NTLSTATUS_SUCCESS) fail_status("port exact", status);
|
||||
if (portStats.Size != sizeof(portStats)) fail("port size field mismatch");
|
||||
if (portStats.Version != SYS_STATS_VERSION) fail("port version mismatch");
|
||||
}
|
||||
|
||||
// Verifies CPU stats use a size-reported trailing-record layout.
|
||||
|
||||
Reference in new issue
Block a user