add ntfs.sys standalone driver target, change default usb vhd layout formatting to ntfs, implement Fat32CreateDir for directory creation support in the fat32 file system driver, add a dedicated HAL serial output endpoint for COM1 writes in hal_serial.c and subscribe serial to HAL text streams, introduce waitable kernel timers with KeTimerCreate, KeTimerSet, and KeTimerCancel alongside spinlock-protected global timer list initialization and scheduler tick tracking, implement SyscallWriteFileAsync system call for asynchronous non-blocking file writes, refactor NetSocketConnect and NetSocketSendTo to use generic SYS_SOCKET_ADDRESS_K structures instead of being hardcoded to IPv4, update gethostbyname and DNS name resolution to support IPv6 parsing via ResolveNameFamily, update tcpserve.exe with -4 and -6 command-line flags to accept and display IPv6 addresses, append size and version headers to all kernel telemetry and statistics structures including SYS_PMM_STATS, SYS_CPU_STATS, and SYS_SCHEDULER_STATS, update winmm timeGetTime to look up high-resolution hardware frequencies via SysGetTickFrequency, integrate 14 native smoke test applications.
This commit is contained in:
1 parent
2c4a68a75f
commit
ed3d065abd
156 files changed
+10509
-2643
No files matched your search
@@ -71,23 +71,32 @@ static uint32_t open_first_large(uint32_t* fileOut, const char** pathOut, uint64
|
||||
|
||||
for (size_t i = 0; i < sizeof(candidates) / sizeof(candidates[0]); ++i) {
|
||||
uint32_t h = 0;
|
||||
SYS_PATH_HANDLE_REQUEST req = { SysSvFromCstr(candidates[i]), &h };
|
||||
SYS_OPEN_FILE_REQUEST req = SysMakeOpenFileRequest(SysSvFromCstr(candidates[i]),
|
||||
SYS_FILE_ACCESS_READ | SYS_FILE_ACCESS_QUERY,
|
||||
SYS_FILE_OPEN_EXISTING,
|
||||
SYS_FILE_FLAG_NONE,
|
||||
&h);
|
||||
uint32_t s = SysOpenFile(&req);
|
||||
if (s != SYS_STATUS_SUCCESS)
|
||||
if (s != STATUS_SUCCESS)
|
||||
continue;
|
||||
|
||||
uint64_t size = SysGetFileSize(h);
|
||||
uint64_t size = 0;
|
||||
s = SysGetFileSize(h, &size);
|
||||
if (s != STATUS_SUCCESS) {
|
||||
SysCloseHandle(h);
|
||||
continue;
|
||||
}
|
||||
if (size >= MIN_PRESSURE_BYTES) {
|
||||
*fileOut = h;
|
||||
*pathOut = candidates[i];
|
||||
*sizeOut = size;
|
||||
return SYS_STATUS_SUCCESS;
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
SysCloseHandle(h);
|
||||
}
|
||||
|
||||
return SYS_STATUS_NOT_FOUND;
|
||||
return STATUS_NOT_FOUND;
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
@@ -95,14 +104,14 @@ int main(void) {
|
||||
|
||||
SYS_FILE_CACHE_STATS before;
|
||||
SYS_FILE_CACHE_STATS after;
|
||||
if (query_cache(&before) != SYS_STATUS_SUCCESS)
|
||||
if (query_cache(&before) != STATUS_SUCCESS)
|
||||
fail("initial cache stats query failed");
|
||||
|
||||
uint32_t file = 0;
|
||||
const char* path = 0;
|
||||
uint64_t size = 0;
|
||||
uint32_t s = open_first_large(&file, &path, &size);
|
||||
if (s != SYS_STATUS_SUCCESS)
|
||||
if (s != STATUS_SUCCESS)
|
||||
fail_status("open large asset", s);
|
||||
|
||||
print("pcache_pressure: using ");
|
||||
@@ -117,7 +126,7 @@ int main(void) {
|
||||
size_t got = 0;
|
||||
SYS_FILE_IO_REQUEST readReq = SysMakeFileIoRequest(file, gBuf, sizeof(gBuf), &got);
|
||||
s = SysReadFile(&readReq);
|
||||
if (s != SYS_STATUS_SUCCESS)
|
||||
if (s != STATUS_SUCCESS)
|
||||
fail_status("read", s);
|
||||
if (got == 0)
|
||||
break;
|
||||
@@ -129,7 +138,7 @@ int main(void) {
|
||||
if (total < MIN_PRESSURE_BYTES)
|
||||
fail("asset read was too short to pressure the cache");
|
||||
|
||||
if (query_cache(&after) != SYS_STATUS_SUCCESS)
|
||||
if (query_cache(&after) != STATUS_SUCCESS)
|
||||
fail("final cache stats query failed");
|
||||
|
||||
uint64_t loads = after.Loads - before.Loads;
|
||||
|
||||
Reference in new issue
Block a user