Uwe Hermann | 5211a70 | 2010-09-27 17:53:17 +0000 | [diff] [blame] | 1 | /* |
| 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 Hermann | 5211a70 | 2010-09-27 17:53:17 +0000 | [diff] [blame] | 14 | */ |
Eric Biederman | fcd5ace | 2004-10-14 19:29:29 +0000 | [diff] [blame] | 15 | |
Uwe Hermann | 5211a70 | 2010-09-27 17:53:17 +0000 | [diff] [blame] | 16 | /* Preserve BIST. */ |
| 17 | movl %eax, %ebp |
Eric Biederman | fcd5ace | 2004-10-14 19:29:29 +0000 | [diff] [blame] | 18 | |
Uwe Hermann | 5211a70 | 2010-09-27 17:53:17 +0000 | [diff] [blame] | 19 | /* Enable SSE instructions. */ |
Eric Biederman | fcd5ace | 2004-10-14 19:29:29 +0000 | [diff] [blame] | 20 | movl %cr4, %eax |
Uwe Hermann | 5211a70 | 2010-09-27 17:53:17 +0000 | [diff] [blame] | 21 | orl $(1 << 9), %eax |
Eric Biederman | fcd5ace | 2004-10-14 19:29:29 +0000 | [diff] [blame] | 22 | movl %eax, %cr4 |
| 23 | |
Uwe Hermann | 5211a70 | 2010-09-27 17:53:17 +0000 | [diff] [blame] | 24 | /* Restore BIST. */ |
Eric Biederman | fcd5ace | 2004-10-14 19:29:29 +0000 | [diff] [blame] | 25 | movl %ebp, %eax |