// vim: set noet ts=4 sw=4: #include "appl.h" #include "../../syscall/stub.h" #include "../../arch/core.h" #include "../../arch/system.h" #include "../../debug/output.h" #include "../../device/textstream.h" #include "../../interrupt/guard.h" #include "../../sync/semaphore.h" #include "../../thread/scheduler.h" extern Semaphore koutsem; extern TextStream kout; extern Application apps[]; void Application::action() { // NOLINT // Thread 1 may be an auxiliary thread //sys_test(1,2,3,4,5); unsigned id = 0; while (&apps[id++] != this); char text[] = "testX"; text[4] = 0x30+id; for (unsigned i = 0;; ++i) { write(0, text, sizeof(text)); sleep(1000); } }