We call this cache as ram everywhere, so let's call it the same in Kconfig
[coreboot.git] / src / cpu / amd / model_lx / syspreinit.c
blob0d80cba69d6988bbf0bd694182c622b91c65a3a9
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2006 Indrek Kruusa <indrek.kruusa@artecdesign.ee>
5 * Copyright (C) 2006 Ronald G. Minnich <rminnich@gmail.com>
6 * Copyright (C) 2007 Advanced Micro Devices, Inc.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 /* ***************************************************************************/
24 /* **/
25 /* * StartTimer1*/
26 /* **/
27 /* * Entry: none*/
28 /* * Exit: Starts Timer 1 for port 61 use*/
29 /* * Destroys: Al,*/
30 /* **/
31 /* ***************************************************************************/
32 static void StartTimer1(void)
34 outb(0x56, 0x43);
35 outb(0x12, 0x41);
38 void SystemPreInit(void)
41 /* they want a jump ... */
42 #ifndef CONFIG_CACHE_AS_RAM
43 __asm__ __volatile__("jmp .+2\ninvd\njmp .+2\n");
44 #endif
45 StartTimer1();