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
@@ -0,0 +1,30 @@
|
||||
// Internal shared state for userspace PE dependency loading.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <ntlite/module_loader.h>
|
||||
#include <ntlite/pe_loader.h>
|
||||
#include <ntlite/syscall.h>
|
||||
|
||||
typedef struct NTL_MODULE_CONTEXT NTL_MODULE_CONTEXT;
|
||||
|
||||
// Creates dependency-loader state for one constructing child or the current process.
|
||||
KSTATUS NtlpCreateModuleContext(SYS_HANDLE processHandle,
|
||||
SYS_HANDLE moduleRootHandle,
|
||||
SYS_STRING_VIEW moduleDirectory,
|
||||
NTL_MODULE_NAME_RESOLVER resolver,
|
||||
void* resolverContext,
|
||||
int seedCurrentProcess,
|
||||
NTL_MODULE_CONTEXT** contextOut);
|
||||
// Releases loader metadata without releasing image mappings owned elsewhere.
|
||||
void NtlpDestroyModuleContext(NTL_MODULE_CONTEXT* context);
|
||||
// Materializes the main image while resolving startup dependencies through the context.
|
||||
KSTATUS NtlpLoadMainImage(NTL_MODULE_CONTEXT* context,
|
||||
SYS_HANDLE fileHandle,
|
||||
NTL_PE_IMAGE* imageOut);
|
||||
// Builds the opaque read-only loader-data block consumed later by userspace base services.
|
||||
KSTATUS NtlpBuildLoaderData(NTL_MODULE_CONTEXT* context,
|
||||
SYS_STRING_VIEW currentDirectory,
|
||||
void** loaderDataOut);
|
||||
// Returns the inherited canonical resource CWD stored in the current process loader data.
|
||||
KSTATUS NtlpGetLoaderCurrentDirectory(SYS_STRING_VIEW* currentDirectoryOut);
|
||||
Reference in new issue
Block a user