Ignore:
Timestamp:
Aug 21, 2018, 9:52:05 PM (6 years ago)
Author:
viala@…
Message:

[hal/x86_64] Add void type to function prototypes with no parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_apic.c

    r457 r482  
    104104
    105105uint64_t
    106 hal_pit_timer_read()
     106hal_pit_timer_read( void )
    107107{
    108108        uint8_t lo, hi;
     
    197197#define RS232_SCRATCH   0x07
    198198
    199 static bool_t hal_com_received()
     199static bool_t hal_com_received( void )
    200200{
    201201        return (in8(RS232_COM1_BASE + RS232_LSR) & LSR_DR) != 0;
    202202}
    203203
    204 static bool_t hal_com_transmit_empty()
     204static bool_t hal_com_transmit_empty( void )
    205205{
    206206        return (in8(RS232_COM1_BASE + RS232_LSR) & LSR_TBE) != 0;
    207207}
    208208
    209 char hal_com_read()
     209char hal_com_read( void )
    210210{
    211211        while (!hal_com_received());
     
    228228 * Called early to provide x86-specific messages. Interrupts disabled.
    229229 */
    230 void hal_com_init_early()
     230void hal_com_init_early( void )
    231231{
    232232        /* Disable all interrupts */
     
    246246}
    247247
    248 static void hal_com_init()
     248static void hal_com_init( void )
    249249{
    250250        /* Disable all interrupts */
     
    337337}
    338338
    339 static void hal_ioapic_init()
     339static void hal_ioapic_init( void )
    340340{
    341341        uint32_t ver;
     
    374374}
    375375
    376 uint32_t hal_lapic_gid()
     376uint32_t hal_lapic_gid( void )
    377377{
    378378        return hal_lapic_read(LAPIC_ID) >> LAPIC_ID_SHIFT;
    379379}
    380380
    381 static void hal_lapic_icr_wait()
     381static void hal_lapic_icr_wait( void )
    382382{
    383383        while ((hal_lapic_read(LAPIC_ICRLO) & LAPIC_DLSTAT_BUSY) != 0) {
     
    390390 * exact bus frequency.
    391391 */
    392 static void hal_lapic_calibrate()
     392static void hal_lapic_calibrate( void )
    393393{
    394394        uint64_t pittick, lapictick0, lapictick1;
     
    442442 * Only the Spurious and APIC Timer interrupts are enabled.
    443443 */
    444 void cpu_lapic_init()
     444void cpu_lapic_init( void )
    445445{
    446446        if ((rdmsr(MSR_APICBASE) & APICBASE_PHYSADDR) != lapic_pa) {
     
    536536/* -------------------------------------------------------------------------- */
    537537
    538 void hal_apic_init()
     538void hal_apic_init( void )
    539539{
    540540        /* Disable the PIC */
Note: See TracChangeset for help on using the changeset viewer.