replace nob with ms' build, move disk creation to build.bat, major comment cleanup, remove old and stupid tests, overhaul interrupt management with per-CPU vector allocation, affinity migration and safe teardown, add proper IOAPIC routing and PCI MSI/MSI-X/INTx support, migrate drivers to the new interrupt API, integrate ACPICA with a proper OS services layer, move ACPI firmware events, power button handling and S5 shutdown into acpi.sys, add parallel driver startup and atomic publication, replace PnP arrays with dynamic lists, redesign service startup again to be asynchronous, add delayed startup mode for services, allow omitting keys in services.ini, fix acpi ec deferred work handling, fix kernel threads having garbage exit code.
This commit is contained in:
1 parent
d36f19509c
commit
36eef8f58d
696 files changed
+147281
-7530
No files matched your search
@@ -32,7 +32,6 @@ typedef char TEST_AUDIO_STREAM_INFO_SIZE[(sizeof(SYS_AUDIO_STREAM_INFO) == 128)
|
||||
typedef char TEST_AUDIO_VOLUME_REQUEST_SIZE[(sizeof(SYS_AUDIO_SET_VOLUME_REQUEST) == 24) ? 1 : -1];
|
||||
typedef char TEST_AUDIO_MASTER_VOLUME_REQUEST_SIZE[(sizeof(SYS_AUDIO_SET_MASTER_VOLUME_REQUEST) == 20) ? 1 : -1];
|
||||
|
||||
// Writes one NUL-terminated string to the console.
|
||||
static void print(const char* text) {
|
||||
SYS_WRITE_CONSOLE_REQUEST request = { sizeof(SYS_WRITE_CONSOLE_REQUEST), SysSvFromCstr(text) };
|
||||
(void)SysWriteConsole(&request);
|
||||
@@ -45,7 +44,6 @@ static void trace_stage(const char* message) {
|
||||
print(message);
|
||||
}
|
||||
|
||||
// Writes one unsigned integer to the console.
|
||||
static void print_u64(uint64_t value) {
|
||||
char digits[32];
|
||||
uint32_t count = 0;
|
||||
@@ -73,13 +71,11 @@ static void cleanup_stream(void) {
|
||||
gOpenStream = 0;
|
||||
}
|
||||
|
||||
// Terminates the test process.
|
||||
static void exit_now(int32_t code) {
|
||||
cleanup_stream();
|
||||
while (true) (void)SysExitProcess(code);
|
||||
}
|
||||
|
||||
// Fails the test with one status value.
|
||||
static void fail_status(const char* operation, KSTATUS status) {
|
||||
print("audio_stream_smoke: ");
|
||||
print(operation);
|
||||
@@ -89,7 +85,6 @@ static void fail_status(const char* operation, KSTATUS status) {
|
||||
exit_now(1);
|
||||
}
|
||||
|
||||
// Fails the test with one plain diagnostic.
|
||||
static void fail(const char* message) {
|
||||
print("audio_stream_smoke: ");
|
||||
print(message);
|
||||
@@ -307,7 +302,6 @@ static uint32_t open_stream(uint32_t endpointId) {
|
||||
NTLSTATUS_SUCCESS);
|
||||
}
|
||||
|
||||
// Writes one sample run and returns the accepted frame count.
|
||||
static uint32_t write_samples(uint32_t stream,
|
||||
const int16_t* frames,
|
||||
uint32_t frameCount,
|
||||
@@ -327,7 +321,6 @@ static uint32_t write_samples(uint32_t stream,
|
||||
return written;
|
||||
}
|
||||
|
||||
// Writes one contract-tone range and returns the accepted frame count.
|
||||
static uint32_t write_frames(uint32_t stream,
|
||||
uint32_t frameOffset,
|
||||
uint32_t frameCount,
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
!include $(BASEDIR)\makefile.def
|
||||
@@ -0,0 +1,7 @@
|
||||
TARGETNAME=audio_stream_smoke
|
||||
TARGETPATH=obj
|
||||
TARGETTYPE=PROGRAM
|
||||
FLAVOR=USER
|
||||
TARGETLIBS="$(BASEDIR)\bin\syscall.lib" "$(BASEDIR)\bin\libc.lib" "$(BASEDIR)\bin\native_runtime.lib"
|
||||
EXTRA_LFLAGS=/ENTRY:NtlNativeStart
|
||||
SOURCES=@/code/user/tests/audio_stream_smoke/audio_stream_smoke.c
|
||||
Reference in new issue
Block a user