Subversion Repositories Kolibri OS

Rev

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

Rev 205 Rev 410
Line 1717... Line 1717...
1717
	cmp	eax, edx
1717
	cmp	eax, edx
1718
	pop	eax
1718
	pop	eax
1719
	jnz	.doit
1719
	jnz	.doit
1720
	cmp	al, 0xCD
1720
	cmp	al, 0xCD
1721
	jz	.int
1721
	jz	.int
-
 
1722
	cmp	ax, 0x050F
-
 
1723
	jz	.syscall_enter
-
 
1724
	cmp	ax, 0x340F
-
 
1725
	jz	.syscall_enter
1722
; resume process
1726
; resume process
1723
.doit:
1727
.doit:
1724
	call	GoOn
1728
	call	GoOn
1725
	cmp	[bAfterGo], 0
1729
	cmp	[bAfterGo], 0
1726
	jz	@f
1730
	jz	@f
1727
	mov	[bAfterGo], 2
1731
	mov	[bAfterGo], 2
1728
@@:
1732
@@:
1729
	ret
1733
	ret
-
 
1734
.syscall_enter:
-
 
1735
	and	byte [_eflags+1], not 1	; clear TF - avoid system halt (!)
-
 
1736
	call	set_context
1730
.int:
1737
.int:
1731
	mov	eax, [_eip]
1738
	mov	eax, [_eip]
1732
	inc	eax
1739
	inc	eax
1733
	inc	eax
1740
	inc	eax
1734
	push	eax
1741
	push	eax
Line 2908... Line 2915...
2908
	db	0xF9,3,'stc'
2915
	db	0xF9,3,'stc'
2909
	db	0xFA,3,'cli'
2916
	db	0xFA,3,'cli'
2910
	db	0xFB,3,'sti'
2917
	db	0xFB,3,'sti'
2911
	db	0xFC,3,'cld'
2918
	db	0xFC,3,'cld'
2912
	db	0xFD,3,'std'
2919
	db	0xFD,3,'std'
-
 
2920
csysenter:
-
 
2921
csyscall:
-
 
2922
ccpuid:
-
 
2923
crdtsc:
-
 
2924
	call	@f
-
 
2925
	db	0x05,7,'syscall'
-
 
2926
	db	0x31,5,'rdtsc'
-
 
2927
	db	0x34,8,'sysenter'
-
 
2928
	db	0xA2,5,'cpuid'
2913
@@:
2929
@@:
2914
	pop	esi
2930
	pop	esi
2915
@@:
2931
@@:
2916
	cmp	al, [esi]
2932
	cmp	al, [esi]
2917
	jz	.found
2933
	jz	.found
Line 2952... Line 2968...
2952
	jmp	disasm_loop1
2968
	jmp	disasm_loop1
Line 2953... Line 2969...
2953
 
2969
 
2954
center:
2970
center:
2955
caam:
2971
caam:
2956
cxlat:
-
 
2957
crdtsc:
-
 
2958
csysenter:
-
 
2959
ccpuid:
2972
cxlat:
2960
ccmpxchg:
2973
ccmpxchg:
2961
cbsf:
2974
cbsf:
2962
cbsr:
2975
cbsr:
2963
ccmpxchg8b:
2976
ccmpxchg8b:
Line 4679... Line 4692...
4679
	dd	ccall1,cjmp1, cunk,  cjmp2, cunk,  cunk,  cunk,  cunk
4692
	dd	ccall1,cjmp1, cunk,  cjmp2, cunk,  cunk,  cunk,  cunk
4680
	dd	clock, cunk,  crepnz,crep,  cunk,  cop0,  cop1,  cop1		; Fx
4693
	dd	clock, cunk,  crepnz,crep,  cunk,  cop0,  cop1,  cop1		; Fx
4681
	dd	cop0,  cop0,  cop0,  cop0,  cop0,  cop0,  cop1,  cop1
4694
	dd	cop0,  cop0,  cop0,  cop0,  cop0,  cop0,  cop1,  cop1
Line 4682... Line 4695...
4682
 
4695
 
4683
disasm_table_2:
4696
disasm_table_2:
4684
	dd	cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk		; 0x
4697
	dd	cunk,  cunk,  cunk,  cunk,  cunk,  csyscall,cunk,cunk		; 0x
4685
	dd	cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk
4698
	dd	cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk
4686
	dd	cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk		; 1x
4699
	dd	cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk		; 1x
4687
	dd	cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk
4700
	dd	cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk
4688
	dd	cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk		; 2x
4701
	dd	cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk,  cunk		; 2x