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 be2f32e1c..0724b6fc4 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 a8d97c690..a0f89e365 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 203e64dab..1181e8616 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