include, kernel: minor fixes to make compiling and linking work with clang.
(fixing warnings)
This commit is contained in:
@@ -298,7 +298,7 @@ PRIVATE int lapic_enable(void)
|
||||
val |= APIC_ENABLE | APIC_SPURIOUS_INT_VECTOR;
|
||||
val &= ~APIC_FOCUS_DISABLED;
|
||||
lapic_write(LAPIC_SIVR, val);
|
||||
lapic_read(LAPIC_SIVR);
|
||||
(void) lapic_read(LAPIC_SIVR);
|
||||
|
||||
*((u32_t *)lapic_eoi_addr) = 0;
|
||||
|
||||
@@ -337,7 +337,7 @@ PRIVATE int lapic_enable(void)
|
||||
/* accept all interrupts */
|
||||
lapic_write (LAPIC_TPR, val & ~0xFF);
|
||||
|
||||
lapic_read (LAPIC_SIVR);
|
||||
(void) lapic_read (LAPIC_SIVR);
|
||||
*((u32_t *)lapic_eoi_addr) = 0;
|
||||
|
||||
apic_calibrate_clocks();
|
||||
|
||||
@@ -39,14 +39,14 @@ PRIVATE int osfxsr_feature; /* FXSAVE/FXRSTOR instructions support (SSEx) */
|
||||
|
||||
FORWARD _PROTOTYPE( void ser_debug, (int c));
|
||||
|
||||
PUBLIC void arch_monitor(void)
|
||||
PUBLIC __dead void arch_monitor(void)
|
||||
{
|
||||
monitor();
|
||||
}
|
||||
|
||||
PUBLIC int cpu_has_tsc;
|
||||
|
||||
PUBLIC void arch_shutdown(const int how)
|
||||
PUBLIC __dead void arch_shutdown(const int how)
|
||||
{
|
||||
vm_stop();
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ int arch_watchdog_init(void)
|
||||
|
||||
/* Setup PC tas NMI for watchdog, is is masked for now */
|
||||
lapic_write(LAPIC_LVTPCR, APIC_ICR_INT_MASK | APIC_ICR_DM_NMI);
|
||||
lapic_read(LAPIC_LVTPCR);
|
||||
(void) lapic_read(LAPIC_LVTPCR);
|
||||
|
||||
/* double check if LAPIC is enabled */
|
||||
if (lapic_addr && watchdog_enabled && watchdog->init) {
|
||||
|
||||
@@ -66,8 +66,8 @@ struct exception_frame {
|
||||
_PROTOTYPE( void exception, (struct exception_frame * frame));
|
||||
|
||||
/* klib386.s */
|
||||
_PROTOTYPE( void monitor, (void) );
|
||||
_PROTOTYPE( void reset, (void) );
|
||||
_PROTOTYPE( __dead void monitor, (void) );
|
||||
_PROTOTYPE( __dead void reset, (void) );
|
||||
_PROTOTYPE( void int86, (void) );
|
||||
_PROTOTYPE( reg_t read_cr0, (void) );
|
||||
_PROTOTYPE( reg_t read_cr2, (void) );
|
||||
|
||||
Reference in New Issue
Block a user