blob: cef3c85cacee36ac679fb6205de653915f696c00 [file] [log] [blame]
Uwe Hermann5211a702010-09-27 17:53:17 +00001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2002 Eric Biederman <ebiederm@xmission.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Uwe Hermann5211a702010-09-27 17:53:17 +000014 */
Eric Biedermanfcd5ace2004-10-14 19:29:29 +000015
Uwe Hermann5211a702010-09-27 17:53:17 +000016 /* Preserve BIST. */
17 movl %eax, %ebp
Eric Biedermanfcd5ace2004-10-14 19:29:29 +000018
Uwe Hermann5211a702010-09-27 17:53:17 +000019 /* Enable SSE instructions. */
Eric Biedermanfcd5ace2004-10-14 19:29:29 +000020 movl %cr4, %eax
Uwe Hermann5211a702010-09-27 17:53:17 +000021 orl $(1 << 9), %eax
Eric Biedermanfcd5ace2004-10-14 19:29:29 +000022 movl %eax, %cr4
23
Uwe Hermann5211a702010-09-27 17:53:17 +000024 /* Restore BIST. */
Eric Biedermanfcd5ace2004-10-14 19:29:29 +000025 movl %ebp, %eax