Changeset 77 for trunk/kernel


Ignore:
Timestamp:
Jun 27, 2017, 2:38:47 PM (5 years ago)
Author:
max@…
Message:

Start hiding the architecture-specific drivers behind the
hal_drivers_xx interface.

Location:
trunk/kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_txt.c

    r49 r77  
    2525#include <hal_special.h>
    2626#include <hal_remote.h>
    27 #include <soclib_tty.h>
     27#include <hal_drivers.h>
    2828#include <thread.h>
    2929#include <rpc.h>
     
    5757    if( impl == IMPL_TXT_TTY )
    5858    {
    59         chdev->cmd = &soclib_tty_cmd;
    60         chdev->isr = &soclib_tty_isr;
    61         soclib_tty_init( chdev );
     59        hal_drivers_txt_init( chdev );
    6260    }
    6361    else
  • trunk/kernel/kern/kernel_init.c

    r71 r77  
    5353#include <printk.h>
    5454#include <vfs.h>
    55 #include <soclib_tty.h>
     55#include <hal_drivers.h>
    5656#include <devfs.h>
    5757#include <mapper.h>
     
    189189            remote_spinlock_init( XPTR( local_cxy , &txt0_chdev.wait_lock ) );
    190190
    191             // Complete TXT specific initialisation
    192             if( impl == IMPL_TXT_TTY )
    193             {
    194                 txt0_chdev.cmd = &soclib_tty_cmd;
    195                 txt0_chdev.isr = &soclib_tty_isr;
    196                 soclib_tty_init( &txt0_chdev );
    197             }
     191            // complete TXT-specific initialization
     192            hal_drivers_txt_init( &txt0_chdev );
    198193
    199194            // initialize the replicated chdev_dir[x][y] structures
Note: See TracChangeset for help on using the changeset viewer.