summaryrefslogtreecommitdiff
path: root/src/cpu/k8/enable_mmx_sse.inc
blob: 5551525d68394865d45327c6cf1154e2dc4a268d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
	/*
	 * Enabling mmx registers is a noop
	 * Enable the use of the xmm registers
	 */

	/* Disable floating point emulation */
	movl	%cr0, %eax
	andl	$~(1<<2), %eax
	movl	%eax, %cr0

	/* Enable sse instructions */
	movl	%cr4, %eax
	orl	$(1<<9), %eax
	movl	%eax, %cr4