From ea9db56d0e78499faf38a5d8e0c2125275c69ef2 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Thu, 13 Apr 2006 19:44:50 +0000 Subject: add SystemPreInit() and support git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2254 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/amd/model_gx2/syspreinit.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/cpu/amd/model_gx2/syspreinit.c (limited to 'src/cpu') 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(); +} -- cgit v1.2.3