Subversion Repositories Kolibri OS

Rev

Rev 431 | Rev 519 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 431 Rev 465
Line 1... Line 1...
1
$Revision: 431 $
1
$Revision: 465 $
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
3
;;                                                              ;;
3
;;                                                            ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
4
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
5
;; Distributed under terms of the GNU General Public License    ;;
5
;; Distributed under terms of the GNU General Public License    ;;
6
;;                                                              ;;
6
;;                                                              ;;
7
;; KERNEL32.INC                                                 ;;
7
;; KERNEL32.INC                                               ;;
8
;;                                                              ;;
8
;;                                                            ;;
9
;; Included 32 bit kernel files for MenuetOS                    ;;
9
;; Included 32 bit kernel files for MenuetOS                  ;;
10
;;                                                              ;;
10
;;                                                            ;;
11
;; This file is kept separate as it will be easier to           ;;
11
;; This file is kept separate as it will be easier to         ;;
12
;; maintain and compile with an automated SETUP program         ;;
12
;; maintain and compile with an automated SETUP program       ;;
13
;; in the future.                                               ;;
13
;; in the future.                                             ;;
14
;;                                                              ;;
14
;;                                                            ;;
15
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
15
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 16... Line 16...
16
 
16
 
17
;struc db [a] { common . db a
17
;struc db [a] { common . db a
18
;  if ~used .
18
;  if ~used .
Line 39... Line 39...
39
;    display 'not used dt: ',`.,13,10
39
;    display 'not used dt: ',`.,13,10
40
;  end if }
40
;  end if }
Line 41... Line 41...
41
 
41
 
42
struc RECT {
42
struc RECT {
43
  .left   dd ?
43
  .left   dd ?
44
  .top	  dd ?
44
  .top    dd ?
45
  .right  dd ?
45
  .right  dd ?
46
  .bottom dd ?
46
  .bottom dd ?
47
}
47
}
48
virtual at 0
48
virtual at 0
49
 RECT RECT
49
 RECT RECT
Line 50... Line 50...
50
end virtual
50
end virtual
51
 
51
 
52
struc BOX {
52
struc BOX {
53
  .left   dd ?
53
  .left   dd ?
54
  .top	  dd ?
54
  .top    dd ?
55
  .width  dd ?
55
  .width  dd ?
56
  .height dd ?
56
  .height dd ?
57
}
57
}
58
virtual at 0
58
virtual at 0
Line 59... Line 59...
59
 BOX BOX
59
 BOX BOX
60
end virtual
60
end virtual
61
 
61
 
62
; constants definition
62
; constants definition
63
WSTATE_NORMAL	 = 00000000b
63
WSTATE_NORMAL    = 00000000b
Line 64... Line 64...
64
WSTATE_MAXIMIZED = 00000001b
64
WSTATE_MAXIMIZED = 00000001b
Line 75... Line 75...
75
{
75
{
76
  .event_mask  dd ?
76
  .event_mask  dd ?
77
  .pid	       dd ?
77
  .pid	       dd ?
78
	       dw ?
78
	       dw ?
79
  .state       db ?
79
  .state       db ?
80
	       db ?
80
               db ?
81
	       dw ?
81
	       dw ?
82
  .wnd_number  db ?
82
  .wnd_number  db ?
83
	       db ?
83
	       db ?
84
  .mem_start   dd ?
84
  .mem_start   dd ?
85
  .counter_sum dd ?
85
  .counter_sum dd ?
Line 109... Line 109...
109
struc APPDATA
109
struc APPDATA
110
{
110
{
111
  .app_name	   db 11  dup(?)
111
  .app_name	   db 11  dup(?)
112
		   db 5   dup(?)
112
		   db 5   dup(?)
Line 113... Line 113...
113
 
113
 
114
  .fpu_state	   dd ? 	   ;+16
114
  .fpu_state       dd ?            ;+16
115
  .ev_count	   dd ? 	   ;+20
115
  .ev_count        dd ?            ;+20
116
  .fpu_handler	   dd ? 	   ;+24
116
  .fpu_handler     dd ?            ;+24
117
  .sse_handler	   dd ? 	   ;+28
117
  .sse_handler     dd ?            ;+28
118
  .pl0_stack	   dd ? ;unused    ;+32
118
  .pl0_stack       dd ? ;unused    ;+32
119
  .heap_base	   dd ? 	   ;+36
119
  .heap_base       dd ?            ;+36
120
  .heap_top	   dd ? 	   ;+40
120
  .heap_top        dd ?            ;+40
121
  .cursor	   dd ? 	   ;+44
121
  .cursor          dd ?            ;+44
122
  .fd_ev	   dd ? 	   ;+48
122
  .fd_ev           dd ?            ;+48
123
  .bk_ev	   dd ? 	   ;+52
123
  .bk_ev           dd ?            ;+52
124
  .fd_obj	   dd ? 	   ;+56
124
  .fd_obj          dd ?            ;+56
-
 
125
  .bk_obj          dd ?            ;+60
-
 
126
  .saved_esp       dd ?            ;+64
-
 
127
  .io_map          rd 2            ;+68
125
  .bk_obj	   dd ? 	   ;+60
128
  .dbg_state       dd ?            ;+76
126
 
129
 
127
		   db 64 dup(?)    ;+64
130
                   db 48 dup(?)    ;+80
128
 
131
 
129
  .wnd_shape	   dd ? 	   ;+128
132
  .wnd_shape       dd ?            ;+128
130
  .wnd_shape_scale dd ? 	   ;+132
133
  .wnd_shape_scale dd ?            ;+132
131
		   dd ? 	   ;+136
134
                   dd ?            ;+136
132
  .mem_size	   dd ? 	   ;+140
135
  .mem_size        dd ?            ;+140
133
  .saved_box	   BOX
136
  .saved_box	   BOX
134
  .ipc_start	   dd ?
137
  .ipc_start	   dd ?
135
  .ipc_size	   dd ?
138
  .ipc_size	   dd ?
136
  .event_mask	   dd ?
139
  .event_mask	   dd ?
Line 159... Line 162...
159
; Core functions
162
; Core functions
160
include "core/sync.inc"     ; macros for synhronization objects
163
include "core/sync.inc"     ; macros for synhronization objects
161
include "core/sys32.inc"    ; process management
164
include "core/sys32.inc"    ; process management
162
include "core/sched.inc"    ; process scheduling
165
include "core/sched.inc"    ; process scheduling
163
include "core/syscall.inc"  ; system call
166
include "core/syscall.inc"  ; system call
164
include "core/fpu.inc"	    ; all fpu/sse support
167
include "core/fpu.inc"      ; all fpu/sse support
165
include "core/memory.inc"
168
include "core/memory.inc"
166
include "core/heap.inc"     ; kernel and app heap
169
include "core/heap.inc"     ; kernel and app heap
167
include "core/malloc.inc"   ; small kernel heap
170
include "core/malloc.inc"   ; small kernel heap
168
include "core/taskman.inc"
171
include "core/taskman.inc"
169
include "core/dll.inc"
172
include "core/dll.inc"
Line 175... Line 178...
175
include "gui/font.inc"
178
include "gui/font.inc"
176
include "gui/button.inc"
179
include "gui/button.inc"
Line 177... Line 180...
177
 
180
 
Line 178... Line -...
178
; shutdown
-
 
179
 
-
 
180
include "boot/shutdown.inc" ; shutdown or restart
181
; shutdown
Line 181... Line 182...
181
 
182
 
182
; file system
183
; file system
183
 
184
 
184
include "fs/fs.inc"	  ; syscall
185
include "fs/fs.inc"       ; syscall
185
include "fs/fat32.inc"	  ; read / write for fat32 filesystem
186
include "fs/fat32.inc"    ; read / write for fat32 filesystem
186
include "fs/ntfs.inc"	  ; read / write for ntfs filesystem
187
include "fs/ntfs.inc"     ; read / write for ntfs filesystem
187
include "fs/fat12.inc"	  ; read / write for fat12 filesystem
188
include "fs/fat12.inc"    ; read / write for fat12 filesystem
Line 188... Line 189...
188
include "blkdev/rd.inc"   ; ramdisk read /write
189
include "blkdev/rd.inc"   ; ramdisk read /write
Line 203... Line 204...
203
 
204
 
Line 204... Line 205...
204
; Network Interface & TCPIP Stack
205
; Network Interface & TCPIP Stack
Line -... Line 206...
-
 
206
 
-
 
207
include "network/stack.inc"
-
 
208
 
205
 
209
;include "drivers/uart.inc"
Line 206... Line 210...
206
include "network/stack.inc"
210
 
Line 207... Line 211...
207
 
211