Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/machine_func.h

    rd99c1d2 recf083dd  
    4646#include <arch/exception.h>
    4747
    48 #define MACHINE_GENFUNC machine_genfunc
    49 
    5048struct arm_machine_ops {
    51         void            (*machine_init)(void);
    52         void            (*machine_timer_irq_start)(void);
    53         void            (*machine_cpu_halt)(void);
    54         uintptr_t       (*machine_get_memory_size)(void);
    55         void            (*machine_irq_exception)(int, istate_t*);
    56         void            (*machine_frame_init)(void);
    57         void            (*machine_output_init)(void);
    58         void            (*machine_input_init)(void);
     49        void (*machine_init)(void);
     50        void (*machine_timer_irq_start)(void);
     51        void (*machine_cpu_halt)(void);
     52        void (*machine_get_memory_extents)(uintptr_t *, uintptr_t *);
     53        void (*machine_irq_exception)(unsigned int, istate_t *);
     54        void (*machine_frame_init)(void);
     55        void (*machine_output_init)(void);
     56        void (*machine_input_init)(void);
     57        size_t (*machine_get_irq_count)(void);
    5958};
    6059
    61 extern struct arm_machine_ops machine_ops;
     60/** Pointer to arm_machine_ops structure being used. */
     61extern struct arm_machine_ops *machine_ops;
    6262
     63/** Initialize machine_ops pointer. */
     64extern void machine_ops_init(void);
    6365
    6466/** Maps HW devices to the kernel address space using #hw_map. */
     
    7375extern void machine_cpu_halt(void);
    7476
    75 
    76 /** Returns size of available memory.
     77/** Get extents of available memory.
    7778 *
    78  *  @return Size of available memory.
     79 * @param start         Place to store memory start address.
     80 * @param size          Place to store memory size.
    7981 */
    80 extern uintptr_t machine_get_memory_size(void);
    81 
     82extern void machine_get_memory_extents(uintptr_t *start, uintptr_t *size);
    8283
    8384/** Interrupt exception handler.
     
    8687 * @param istate Saved processor state.
    8788 */
    88 extern void machine_irq_exception(int exc_no, istate_t *istate);
     89extern void machine_irq_exception(unsigned int exc_no, istate_t *istate);
    8990
    9091
     
    104105extern void machine_input_init(void);
    105106
    106 extern void machine_genfunc(void);
     107extern size_t machine_get_irq_count(void);
     108
    107109#endif
    108110
Note: See TracChangeset for help on using the changeset viewer.