Subversion Repositories Kolibri OS

Rev

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

Rev 7134 Rev 7676
Line 78... Line 78...
78
	mov	ecx, eax
78
	mov	ecx, eax
79
	shr	al, 4
79
	shr	al, 4
80
	and	ax, 0x0F0F
80
	and	ax, 0x0F0F
81
	mov	[CPU_fam], ah
81
	mov	[CPU_fam], ah
82
	mov	[CPU_mod], al
82
	mov	[CPU_mod], al
-
 
83
	mov	eax, ecx
-
 
84
	shr	eax, 12
-
 
85
	and	eax, 0x0FFF0			; Extended Family/Model bits
-
 
86
	or	[CPU_mod], al
-
 
87
	mov	al, [CPU_fam]			; will not work on AMD fam.20h -- fix it later!!
-
 
88
	cmp	al, 0x0F
-
 
89
	jne	@f
-
 
90
	add	[CPU_fam], ah
-
 
91
 @@:
83
	shr	edx, 23
92
	shr	edx, 23
84
	and	dl, 1
93
	and	dl, 1
85
	mov	[CPU_mmx], dl
94
	mov	[CPU_mmx], dl
86
	shr	ecx, 12
95
	shr	ecx, 12
87
	and	cl, 11b
96
	and	cl, 11b