add SystemPreInit() and support
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2254 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
22
src/cpu/amd/model_gx2/syspreinit.c
Normal file
22
src/cpu/amd/model_gx2/syspreinit.c
Normal file
@@ -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();
|
||||
}
|
Reference in New Issue
Block a user