Changeset 482 for trunk/hal/x86_64/core/hal_apic.c
- Timestamp:
- Aug 21, 2018, 9:52:05 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_apic.c
r457 r482 104 104 105 105 uint64_t 106 hal_pit_timer_read( )106 hal_pit_timer_read( void ) 107 107 { 108 108 uint8_t lo, hi; … … 197 197 #define RS232_SCRATCH 0x07 198 198 199 static bool_t hal_com_received( )199 static bool_t hal_com_received( void ) 200 200 { 201 201 return (in8(RS232_COM1_BASE + RS232_LSR) & LSR_DR) != 0; 202 202 } 203 203 204 static bool_t hal_com_transmit_empty( )204 static bool_t hal_com_transmit_empty( void ) 205 205 { 206 206 return (in8(RS232_COM1_BASE + RS232_LSR) & LSR_TBE) != 0; 207 207 } 208 208 209 char hal_com_read( )209 char hal_com_read( void ) 210 210 { 211 211 while (!hal_com_received()); … … 228 228 * Called early to provide x86-specific messages. Interrupts disabled. 229 229 */ 230 void hal_com_init_early( )230 void hal_com_init_early( void ) 231 231 { 232 232 /* Disable all interrupts */ … … 246 246 } 247 247 248 static void hal_com_init( )248 static void hal_com_init( void ) 249 249 { 250 250 /* Disable all interrupts */ … … 337 337 } 338 338 339 static void hal_ioapic_init( )339 static void hal_ioapic_init( void ) 340 340 { 341 341 uint32_t ver; … … 374 374 } 375 375 376 uint32_t hal_lapic_gid( )376 uint32_t hal_lapic_gid( void ) 377 377 { 378 378 return hal_lapic_read(LAPIC_ID) >> LAPIC_ID_SHIFT; 379 379 } 380 380 381 static void hal_lapic_icr_wait( )381 static void hal_lapic_icr_wait( void ) 382 382 { 383 383 while ((hal_lapic_read(LAPIC_ICRLO) & LAPIC_DLSTAT_BUSY) != 0) { … … 390 390 * exact bus frequency. 391 391 */ 392 static void hal_lapic_calibrate( )392 static void hal_lapic_calibrate( void ) 393 393 { 394 394 uint64_t pittick, lapictick0, lapictick1; … … 442 442 * Only the Spurious and APIC Timer interrupts are enabled. 443 443 */ 444 void cpu_lapic_init( )444 void cpu_lapic_init( void ) 445 445 { 446 446 if ((rdmsr(MSR_APICBASE) & APICBASE_PHYSADDR) != lapic_pa) { … … 536 536 /* -------------------------------------------------------------------------- */ 537 537 538 void hal_apic_init( )538 void hal_apic_init( void ) 539 539 { 540 540 /* Disable the PIC */
Note: See TracChangeset
for help on using the changeset viewer.