2010-12-26 06:12:49 +01:00
|
|
|
/* StartTimer1
|
|
|
|
*
|
|
|
|
* Entry: none
|
|
|
|
* Exit: Starts Timer 1 for port 61 use
|
|
|
|
* Destroys: Al,
|
|
|
|
*/
|
2010-07-27 01:46:25 +02:00
|
|
|
static void StartTimer1(void)
|
2010-03-29 23:56:26 +02:00
|
|
|
{
|
2006-04-13 21:44:50 +02:00
|
|
|
outb(0x56, 0x43);
|
|
|
|
outb(0x12, 0x41);
|
|
|
|
}
|
|
|
|
|
2010-07-27 01:46:25 +02:00
|
|
|
void SystemPreInit(void)
|
2010-03-29 23:56:26 +02:00
|
|
|
{
|
2006-04-13 21:44:50 +02:00
|
|
|
/* they want a jump ... */
|
2010-08-30 19:53:13 +02:00
|
|
|
#ifndef CONFIG_CACHE_AS_RAM
|
2010-07-27 01:46:25 +02:00
|
|
|
__asm__ __volatile__("jmp .+2\ninvd\njmp .+2\n");
|
|
|
|
#endif
|
2006-04-13 21:44:50 +02:00
|
|
|
StartTimer1();
|
|
|
|
}
|