Ignore:
Timestamp:
2013-12-28T17:16:44Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c1023bcb
Parents:
f6f22cdb
Message:

code revision
coding style fixes
removal of debugging printouts and other temporary stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc32/src/machine_func.c

    rf6f22cdb r32e8cd1  
    3131 */
    3232/** @file
    33  *  @brief Definitions of machine specific functions.
     33 * @brief Definitions of machine specific functions.
    3434 *
    35  *  These functions enable to differentiate more kinds of sparc emulators
    36  *  or CPUs. It's the same concept as "arch" functions on the architecture
    37  *  level.
     35 * These functions enable to differentiate more kinds of SPARC emulators
     36 * or CPUs. It's the same concept as "arch" functions on the architecture
     37 * level.
    3838 */
    3939
     
    5454}
    5555
    56 /** Maps HW devices to the kernel address space using #hw_map. */
     56/** Map HW devices to the kernel address space using #hw_map. */
    5757void machine_init(bootinfo_t *bootinfo)
    5858{
    59         (machine_ops->machine_init)(bootinfo);
     59        machine_ops->machine_init(bootinfo);
    6060}
    6161
    62 
    63 /** Starts timer. */
     62/** Start timer. */
    6463void machine_timer_irq_start(void)
    6564{
    66         (machine_ops->machine_timer_irq_start)();
     65        machine_ops->machine_timer_irq_start();
    6766}
    6867
    69 
    70 /** Halts CPU. */
     68/** Halt CPU. */
    7169void machine_cpu_halt(void)
    7270{
    73         (machine_ops->machine_cpu_halt)();
     71        machine_ops->machine_cpu_halt();
    7472}
    7573
    7674/** Get extents of available memory.
    7775 *
    78  * @param start         Place to store memory start address.
    79  * @param size          Place to store memory size.
     76 * @param start Place to store memory start address.
     77 * @param size  Place to store memory size.
     78 *
    8079 */
    8180void machine_get_memory_extents(uintptr_t *start, size_t *size)
    8281{
    83         (machine_ops->machine_get_memory_extents)(start, size);
     82        machine_ops->machine_get_memory_extents(start, size);
    8483}
    8584
    8685/** Interrupt exception handler.
    8786 *
    88  * @param exc_no Interrupt exception number.
     87 * @param exc    Interrupt exception number.
    8988 * @param istate Saved processor state.
     89 *
    9090 */
    91 void machine_irq_exception(unsigned int exc_no, istate_t *istate)
     91void machine_irq_exception(unsigned int exc, istate_t *istate)
    9292{
    93         (machine_ops->machine_irq_exception)(exc_no, istate);
     93        machine_ops->machine_irq_exception(exc, istate);
    9494}
    9595
    96 /*
    97  * configure the output device.
    98  */
     96/** Configure the output device. */
    9997void machine_output_init(void)
    10098{
    101         (machine_ops->machine_output_init)();
     99        machine_ops->machine_output_init();
    102100}
    103101
    104 /*
    105  * configure the input device.
    106  */
     102/** Configure the input device. */
    107103void machine_input_init(void)
    108104{
    109         (machine_ops->machine_input_init)();
     105        machine_ops->machine_input_init();
    110106}
    111107
     
    113109size_t machine_get_irq_count(void)
    114110{
    115         return (machine_ops->machine_get_irq_count)();
     111        return machine_ops->machine_get_irq_count();
    116112}
    117113
    118 const char * machine_get_platform_name(void)
     114const char *machine_get_platform_name(void)
    119115{
    120116        if (machine_ops->machine_get_platform_name)
    121117                return machine_ops->machine_get_platform_name();
     118       
    122119        return NULL;
    123120}
     121
    124122/** @}
    125123 */
Note: See TracChangeset for help on using the changeset viewer.