summaryrefslogtreecommitdiff
path: root/src/cpu/amd/model_gx2
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2006-04-13 19:44:50 +0000
committerRonald G. Minnich <rminnich@gmail.com>2006-04-13 19:44:50 +0000
commitea9db56d0e78499faf38a5d8e0c2125275c69ef2 (patch)
tree95b8fa90f043258d1024a592794c6c8f31706cdf /src/cpu/amd/model_gx2
parentd8d8fffa0edc8b86f1efab2f3a44c9d53cefe556 (diff)
add SystemPreInit() and support
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2254 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/amd/model_gx2')
-rw-r--r--src/cpu/amd/model_gx2/syspreinit.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/cpu/amd/model_gx2/syspreinit.c b/src/cpu/amd/model_gx2/syspreinit.c
new file mode 100644
index 0000000000..e3ad95235d
--- /dev/null
+++ b/src/cpu/amd/model_gx2/syspreinit.c
@@ -0,0 +1,22 @@
+/* ***************************************************************************/
+/* **/
+/* * StartTimer1*/
+/* **/
+/* * Entry: none*/
+/* * Exit: Starts Timer 1 for port 61 use*/
+/* * Destroys: Al,*/
+/* **/
+/* ***************************************************************************/
+void
+StartTimer1(void){
+ outb(0x56, 0x43);
+ outb(0x12, 0x41);
+}
+
+void
+SystemPreInit(void){
+
+ /* they want a jump ... */
+ __asm__("jmp .+2\ninvd\njmp.+2\n");
+ StartTimer1();
+}