Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 301 → Rev 302

/shark/trunk/oslib/kl/advtimer.c
37,7 → 37,7
 
unsigned char use_tsc = 1; //Enable the TSC counter mode
unsigned char use_cmos = 0; //Enable the RTC correction
unsigned char use_apic = 1; //Enable the APIC
unsigned char use_apic = 0; //Enable the APIC for P6 only
 
//Max single delta_clk_per_msec increment = clk_per_msec / MAX_DIV_INK;
#define MAX_DIV_INK 30000
380,6 → 380,7
return maxlvt;
}
 
/* Clear local APIC, grom Linux kernel */
void clear_local_APIC(void)
{
int maxlvt;
446,9 → 447,8
#define SPURIOUS_APIC_VECTOR 0xFF
 
/*
* An initial setup of the virtual wire mode.
* Setup the local APIC, minimal code to run P6 APIC
*/
 
void setup_local_APIC (void)
{
unsigned long value;
492,8 → 492,8
}
 
#define LOCAL_TIMER_VECTOR 0x66
void setup_APIC_LVTT(unsigned int clocks)
 
/* Set APIC Timer... from Linux kernel */ void setup_APIC_LVTT(unsigned int clocks)
{
unsigned int lvtt1_value, tmp_value;
619,6 → 619,7
 
void ll_restore_adv()
{
/* Restore CMOS setting */
if (use_cmos) {
cli();
630,6 → 631,7
sti();
}
 
/* Disable APIC */
if (use_apic) {
unsigned int msr_low_orig, tmp;