rem: TRACE(("arch_smp_set_apic_timer: config 0x%x, timeout %Ld, tics/sec %d, tics %d\n", config, relative_timeout, apic_timer_tics_per_sec, ticks));
add: TRACE(("arch_smp_set_apic_timer: config 0x%lx, timeout %Ld, tics/sec %d, tics %lu\n", config, relativeTimeout, apic_timer_tics_per_sec, ticks));
context: arch_smp_set_apic_timer(bigtime_t relativeTimeout){	cpu_status state;	uint32 config;	uint32 ticks;	if (apic == NULL)		return B_ERROR;	if (relativeTimeout < MIN_TIMEOUT)		relativeTimeout = MIN_TIMEOUT;	// calculation should be ok, since it's going to be 64-bit	ticks = ((relativeTimeout * apic_timer_tics_per_sec) / 1000000);	state = disable_interrupts();	config = apic_read(APIC_LVTT) | APIC_LVTT_M; // mask the timer	apic_write(APIC_LVTT, config);	apic_write(APIC_ICRT, 0); // zero out the timer	config = apic_read(APIC_LVTT) & ~APIC_LVTT_M; // unmask the timer	apic_write(APIC_LVTT, config);	TRACE(("arch_smp_set_apic_timer: config 0x%x, timeout %Ld, tics/sec %d, tics %d\n",		config, relative_timeout, apic_timer_tics_per_sec, ticks));	apic_write(APIC_ICRT, ticks); // start it up	restore_interrupts(state);	return B_OK;}