Subversion Repositories Kolibri OS

Rev

Rev 9930 | Rev 9941 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9930 Rev 9932
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 9930 $
8
$Revision: 9932 $
9
 
9
 
10
 
10
 
Line 223... Line 223...
223
OS_BASE             = 0x80000000
223
OS_BASE             = 0x80000000
Line 224... Line 224...
224
 
224
 
225
window_data         = OS_BASE + 0x0001000
225
window_data         = OS_BASE + 0x0001000
Line 226... Line -...
226
background_window   = window_data + sizeof.WDATA
-
 
227
 
-
 
228
;TASK_TABLE          = OS_BASE + 0x0003000
-
 
229
;CURRENT_TASK        = OS_BASE + 0x0003000
-
 
230
;TASK_COUNT          = OS_BASE + 0x0003004
-
 
231
;TASK_BASE           = OS_BASE + 0x0003010
-
 
232
;TASK_DATA           = OS_BASE + 0x0003020
-
 
233
;TASK_EVENT          = OS_BASE + 0x0003020
226
background_window   = window_data + sizeof.WDATA
Line 234... Line -...
234
 
-
 
235
;CDDataBuf           = OS_BASE + 0x0005000
-
 
236
 
227
 
Line 237... Line 228...
237
;unused                 0x6000 - 0x8fff
228
;CDDataBuf           = OS_BASE + 0x0005000
238
 
229
 
239
BOOT_VARS           = 0x9000
230
BOOT_VARS           = 0x9000
Line 481... Line 472...
481
        top     dd ?
472
        top     dd ?
482
        width   dd ?
473
        width   dd ?
483
        height  dd ?
474
        height  dd ?
484
ends
475
ends
Line 485... Line -...
485
 
-
 
486
; Fields, marked as R now not used, but will be used soon,
-
 
487
; when legacy TASKDATA structure will be deleted
476
 
488
struct  APPDATA
477
struct  APPDATA
489
        app_name        rb 11
478
        app_name        rb 11
Line 490... Line 479...
490
                        rb 5
479
                        rb 5
Line 518... Line 507...
518
        wnd_number      db ?            ;+125
507
        wnd_number      db ?            ;+125
519
                        dw ?            ;+126
508
                        dw ?            ;+126
520
        window          dd ?            ;+128   ptr WDATA
509
        window          dd ?            ;+128   ptr WDATA
521
                        dd ?            ;+132
510
                        dd ?            ;+132
522
                        dd ?            ;+136
511
                        dd ?            ;+136
523
        counter_sum     dd ?            ;+140  ; R
512
        counter_sum     dd ?            ;+140
524
                        rd 4            ;+144
513
                        rd 4            ;+144
525
        ipc_start       dd ?            ;+160
514
        ipc_start       dd ?            ;+160
526
        ipc_size        dd ?            ;+164
515
        ipc_size        dd ?            ;+164
527
        occurred_events dd ?            ;+168  ; mask which accumulates occurred events
516
        occurred_events dd ?            ;+168  ; mask which accumulates occurred events
528
        debugger_slot   dd ?            ;+172  ; index in SLOT_BASE array
517
        debugger_slot   dd ?            ;+172  ; index in SLOT_BASE array
Line 534... Line 523...
534
        dbg_regs        DBG_REGS        ;+192
523
        dbg_regs        DBG_REGS        ;+192
535
                        dd ?            ;+212
524
                        dd ?            ;+212
536
                        rd 4            ;+216
525
                        rd 4            ;+216
537
        priority        dd ?            ;+232
526
        priority        dd ?            ;+232
538
        in_schedule     LHEAD           ;+236
527
        in_schedule     LHEAD           ;+236
539
        counter_add     dd ?            ;+244  ; R
528
        counter_add     dd ?            ;+244
540
        cpu_usage       dd ?            ;+248  ; R
529
        cpu_usage       dd ?            ;+248
541
                        dd ?            ;+252  ; temporary place to save cursor
530
                        dd ?            ;+252  ; temporary place to save cursor
542
ends
531
ends
Line 543... Line 532...
543
 
532
 
Line 544... Line 533...
544
assert sizeof.APPDATA = 256
533
assert sizeof.APPDATA = 256
545
 
534
 
Line 546... Line -...
546
APP_OBJ_OFFSET  = 48
-
 
547
APP_EV_OFFSET   = 40
-
 
548
 
-
 
549
; Note: in future TASKDATA will be merged into APPDATA
-
 
550
;struct  TASKDATA
-
 
551
;        event_mask      dd ? ;+0 mask which stores event types allowed for task
-
 
552
;        pid             dd ? ;+4
-
 
553
;                        dw ? ;+8
-
 
554
;        state           db ? ;+10
-
 
555
;                        db ? ;+11
-
 
556
;                        dw ? ;+12
-
 
557
;        wnd_number      db ? ;+14
-
 
558
;                        db ? ;+15
-
 
559
;        mem_start       dd ? ;+16
-
 
560
;        counter_sum     dd ? ;+20
-
 
561
;        counter_add     dd ? ;+24
-
 
562
;        cpu_usage       dd ? ;+28
535
APP_OBJ_OFFSET  = 48
563
;ends
536
APP_EV_OFFSET   = 40
564
 
537
 
565
; Thread states:
538
; Thread states:
566
TSTATE_RUNNING        = 0
539
TSTATE_RUNNING        = 0
Line 611... Line 584...
611
        temp_cursor     dd ?
584
        temp_cursor     dd ?
612
        draw_bgr_x      dd ?
585
        draw_bgr_x      dd ?
613
        draw_bgr_y      dd ?
586
        draw_bgr_y      dd ?
614
        draw_data       RECT
587
        draw_data       RECT
615
        thread          dd ? ; prt APPDATA
588
        thread          dd ? ; prt APPDATA
616
                        rb 64 - 16 - 4*2 - 4*2 - 4 - 16
589
                        rb 12
617
ends
590
ends
Line 618... Line 591...
618
 
591
 
Line 619... Line 592...
619
label WDATA.fl_wstyle byte at WDATA.cl_workarea + 3
592
label WDATA.fl_wstyle byte at WDATA.cl_workarea + 3