replace ad hoc driver loading with a proper driver manager, new DDK, new PnP manager with device matching, asynchronous startup, resource ownership and removal, add shared PCI capability helpers, replace typed, rigid services with a proper service manager, implement proper system shutdown and restart, shutting down unloads drivers and shuts down services, add simple power button, remove heavyweight boot self-tests and SMP stress runs, add monotonic timestamps to kernel debug output, fruitless USB and PS/2 fixes, make test builds opt in.
This commit is contained in:
1 parent
c0ad63c27f
commit
d36f19509c
160 files changed
+6563
-7366
No files matched your search
@@ -7,8 +7,6 @@
|
||||
#include <ntlite/process_loader.h>
|
||||
#include <ntlite/syscall.h>
|
||||
|
||||
#define TEST_SURFACE_TAG 0x53555246u
|
||||
#define TEST_READY_TAG 0x53555245u
|
||||
#define TEST_WIDTH 32u
|
||||
#define TEST_HEIGHT 16u
|
||||
#define TEST_PIXEL_X 7u
|
||||
@@ -49,8 +47,8 @@ static void write_pixel(void* base, uint32_t pitch, uint32_t value) {
|
||||
|
||||
// Runs the child side using only the attenuated capabilities supplied at process construction.
|
||||
static void run_child(void) {
|
||||
SYS_HANDLE surface = SysGetStartupCapability(TEST_SURFACE_TAG);
|
||||
SYS_HANDLE ready = SysGetStartupCapability(TEST_READY_TAG);
|
||||
SYS_HANDLE surface = SysGetStartupCapability("test.surface");
|
||||
SYS_HANDLE ready = SysGetStartupCapability("test.ready");
|
||||
if (surface == SYS_HANDLE_INVALID || ready == SYS_HANDLE_INVALID) exit_now(10);
|
||||
|
||||
void* invalidBase = (void*)0;
|
||||
@@ -112,11 +110,11 @@ int main(void) {
|
||||
|
||||
NTL_PROCESS_STARTUP_CAPABILITY startup[2];
|
||||
memset(startup, 0, sizeof(startup));
|
||||
startup[0].Tag = TEST_SURFACE_TAG;
|
||||
strcpy(startup[0].Name, "test.surface");
|
||||
startup[0].SourceHandle = surface;
|
||||
startup[0].DesiredRights = SYS_RIGHT_QUERY | SYS_RIGHT_WAIT | SYS_SURFACE_RIGHT_MAP_READ;
|
||||
startup[0].DuplicateFlags = SYS_DUPLICATE_HANDLE_FLAG_NONE;
|
||||
startup[1].Tag = TEST_READY_TAG;
|
||||
strcpy(startup[1].Name, "test.ready");
|
||||
startup[1].SourceHandle = ready;
|
||||
startup[1].DesiredRights = SYS_RIGHT_QUERY | SYS_EVENT_RIGHT_SIGNAL;
|
||||
startup[1].DuplicateFlags = SYS_DUPLICATE_HANDLE_FLAG_NONE;
|
||||
|
||||
Reference in new issue
Block a user