Changeset 77 for trunk/kernel/kern


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.