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
@@ -33,17 +33,21 @@ static uint32_t open_test_file(uint32_t* handleOut, const char** pathOut) {
|
||||
|
||||
for (size_t i = 0; i < sizeof(paths) / sizeof(paths[0]); ++i) {
|
||||
uint32_t h = 0;
|
||||
SYS_PATH_HANDLE_REQUEST req = { SysSvFromCstr(paths[i]), &h };
|
||||
SYS_OPEN_FILE_REQUEST req = SysMakeOpenFileRequest(SysSvFromCstr(paths[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) {
|
||||
*handleOut = h;
|
||||
if (pathOut)
|
||||
*pathOut = paths[i];
|
||||
return SYS_STATUS_SUCCESS;
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
return SYS_STATUS_NOT_FOUND;
|
||||
return STATUS_NOT_FOUND;
|
||||
}
|
||||
|
||||
// Prints hex8.
|
||||
@@ -91,7 +95,7 @@ int main(void) {
|
||||
print("async_apc: start\n");
|
||||
|
||||
uint32_t s = SysSetUserApcDispatcher((void*)SysUserApcDispatcher);
|
||||
if (s != SYS_STATUS_SUCCESS) {
|
||||
if (s != STATUS_SUCCESS) {
|
||||
print("async_apc: dispatcher registration failed status=");
|
||||
print_u64(s);
|
||||
print("\n");
|
||||
@@ -101,7 +105,7 @@ int main(void) {
|
||||
uint32_t file = 0;
|
||||
const char* openedPath = 0;
|
||||
s = open_test_file(&file, &openedPath);
|
||||
if (s != SYS_STATUS_SUCCESS) {
|
||||
if (s != STATUS_SUCCESS) {
|
||||
print("async_apc: open failed status=");
|
||||
print_u64(s);
|
||||
print("\n");
|
||||
@@ -114,7 +118,7 @@ int main(void) {
|
||||
|
||||
uint32_t event = 0;
|
||||
s = SysCreateEvent(EVENT_AUTO_RESET, 0, &event);
|
||||
if (s != SYS_STATUS_SUCCESS) {
|
||||
if (s != STATUS_SUCCESS) {
|
||||
print("async_apc: event create failed status=");
|
||||
print_u64(s);
|
||||
print("\n");
|
||||
@@ -147,7 +151,7 @@ int main(void) {
|
||||
req.ApcContext = &state;
|
||||
|
||||
s = SysReadFileAsync(&req);
|
||||
if (s != SYS_STATUS_PENDING) {
|
||||
if (s != STATUS_PENDING) {
|
||||
print("async_apc: submit failed status=");
|
||||
print_u64(s);
|
||||
print("\n");
|
||||
@@ -159,7 +163,7 @@ int main(void) {
|
||||
print("async_apc: alertable wait returned ");
|
||||
print_u64(s);
|
||||
print("\n");
|
||||
if (s != SYS_STATUS_USER_APC && s != SYS_STATUS_SUCCESS && s != SYS_STATUS_PENDING)
|
||||
if (s != STATUS_USER_APC && s != STATUS_SUCCESS && s != STATUS_PENDING)
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -175,7 +179,7 @@ int main(void) {
|
||||
print_hex8(buffer[2]); print(" ");
|
||||
print_hex8(buffer[3]); print("\n");
|
||||
|
||||
uint32_t ok = (state.Delivered == 1 && state.Status == SYS_STATUS_SUCCESS &&
|
||||
uint32_t ok = (state.Delivered == 1 && state.Status == STATUS_SUCCESS &&
|
||||
state.Information == 512 && buffer[0] == 'M' && buffer[1] == 'Z');
|
||||
|
||||
SysCloseHandle(event);
|
||||
|
||||
Reference in new issue
Block a user