Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5788 → Rev 5787

/kernel/trunk/core/sched.inc
16,8 → 16,7
align 32
irq0:
pushad
mov ax, app_data
mov ds, ax
Mov ds, ax, app_data
mov es, ax
inc [timer_ticks]
mov eax, [timer_ticks]
102,10 → 101,8
mov [esi+APPDATA.saved_esp], esp
mov esp, [ebx+APPDATA.saved_esp]
; set new thread io-map
mov eax, [ebx+APPDATA.io_map]
mov dword [page_tabs+((tss._io_map_0 and -4096) shr 10)], eax
mov eax, [ebx+APPDATA.io_map+4]
mov dword [page_tabs+((tss._io_map_1 and -4096) shr 10)], eax
Mov dword [page_tabs+((tss._io_map_0 and -4096) shr 10)],eax,[ebx+APPDATA.io_map]
Mov dword [page_tabs+((tss._io_map_1 and -4096) shr 10)],eax,[ebx+APPDATA.io_map+4]
; set new thread memory-map
mov eax, [ebx+APPDATA.process]
cmp eax, [current_process]
116,8 → 113,7
@@:
; set tss.esp0
 
mov eax, [ebx+APPDATA.saved_esp0]
mov [tss._esp0], eax
Mov [tss._esp0],eax,[ebx+APPDATA.saved_esp0]
 
mov edx, [ebx+APPDATA.tls_base]
 
130,8 → 126,7
mov fs, dx
 
; set gs selector unconditionally
Mov ax, graph_data
Mov gs, ax
Mov gs,ax,graph_data
; set CR0.TS
cmp bh, byte[fpu_owner] ;bh == incoming task (new)
clts ;clear a task switch flag