Ignore:
Timestamp:
Aug 25, 2018, 6:28:18 PM (6 years ago)
Author:
viala@…
Message:

Add void type on function that takes no parameters, fix invalid call.

Fix invalid calls to thread_can_yield.

In file included from kern/chdev.c:29:
kern/chdev.c: In function 'chdev_sequencial_server':
kern/chdev.c:329:21: error: too many arguments to function 'thread_can_yield'

assert( thread_can_yield( server ) , "illegal sched_yield\n" );

~

Also fixed signature of mapper_create.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/drivers/ioc_ata.c

    r335 r503  
    5454#define ATA_CMD_IDENTIFY                0xEC
    5555
    56 static inline uint16_t ata_data_read()
     56static inline uint16_t ata_data_read( void )
    5757{
    5858        return in16(PIO_ATA_CBR_BASE + ATA_DATA);
     
    7474}
    7575
    76 static inline int ata_wait()
     76static inline int ata_wait( void )
    7777{
    7878        uint8_t status;
     
    148148}
    149149
    150 static void ata_init()
     150static void ata_init( void )
    151151{
    152152        uint8_t data[512];
     
    184184
    185185static void ioc_ata_cmd(xptr_t th_xp);
    186 extern void x86_ioapic_ata0();
     186extern void x86_ioapic_ata0( void );
    187187
    188188void ioc_ata_init(chdev_t *chdev)
Note: See TracChangeset for help on using the changeset viewer.