From 29c78b8e54b734bd5a37626314fa8be6d55d1a01 Mon Sep 17 00:00:00 2001 From: Nasarus Date: Sun, 17 Oct 2010 16:22:47 +0000 Subject: [PATCH] Sysfn9 - event mask was added into returned buffer git-svn-id: svn://kolibrios.org@1663 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/docs/sysfuncr.txt | 1 + kernel/trunk/docs/sysfuncs.txt | 1 + kernel/trunk/kernel.asm | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/kernel/trunk/docs/sysfuncr.txt b/kernel/trunk/docs/sysfuncr.txt index be2f32e1cc..0724b6fc40 100644 --- a/kernel/trunk/docs/sysfuncr.txt +++ b/kernel/trunk/docs/sysfuncr.txt @@ -354,6 +354,7 @@ * бит 0 (маска 1): окно максимизировано * бит 1 (маска 2): окно минимизировано в панель задач * бит 2 (маска 4): окно свёрнуто в заголовок + * +71 = +0x47: dword: маска событий Замечания: * Слоты нумеруются с 1. * Возвращаемое значение не есть общее число потоков, поскольку diff --git a/kernel/trunk/docs/sysfuncs.txt b/kernel/trunk/docs/sysfuncs.txt index a8d97c6908..a0f89e365e 100644 --- a/kernel/trunk/docs/sysfuncs.txt +++ b/kernel/trunk/docs/sysfuncs.txt @@ -347,6 +347,7 @@ Returned value: * bit 0 (mask 1): window is maximized * bit 1 (mask 2): window is minimized to panel * bit 2 (mask 4): window is rolled up + * +71 = +0x47: dword: event mask Remarks: * Slots are numbered starting from 1. * Returned value is not a total number of threads, because there diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index 203e64dab8..1181e8616f 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -2775,6 +2775,10 @@ sys_cpuusage: mov al, [ecx+window_data+WDATA.fl_wstate] stosb + ; Event mask (+71) + mov EAX, dword [ECX+CURRENT_TASK+TASKDATA.event_mask] + stosd + pop esi pop edi