mb-hw.c File Reference

#include <os_config.h>
#include <sys/process.h>
#include <config/config_param.h>
#include <config/config_cparam.h>
#include <xil_types.h>
#include <xstatus.h>
#include <xparameters.h>
#include <sys/decls.h>
#include <microblaze_exceptions_g.h>
#include <sys/init.h>
#include <mb_interface.h>
#include <stdio.h>

Functions

void pit_initialize (unsigned int interval)
void pit_reset (void)
void hw_init (void)
void xmk_enter_kernel (void)
void xmk_leave_kernel (void)

Variables

pid_t current_pid
 Kernel Stack pointer.
char timer_need_refresh
 Ticks since kernel startup.
unsigned char sched_partial_tick
 Do we need a reset?

Detailed Description

Microblaze hardware specific initialization

Function Documentation

void hw_init void   ) 
 

Microblaze hardware specific initialization

  • If an interrupt controller is present register interrupt controller handler as the main interrupt handler. Register timer with interrupt controller handler
  • Else, Register timer interrupt handler as the main interrupt handler
  • Configure PIT is timer is PIT.
    Parameters:
    none 
    Returns:
  • nothing
    Note:
  • none

void pit_initialize unsigned int  interval  ) 
 

Initialize the PIT timer in the system

Parameters:
interval is the interval to interrupt the system at.
Returns:
  • nothing
Note:
  • none

void pit_reset void   ) 
 

Enable and start PIT timer with configured PIT interval loaded to the PIT counter

Parameters:
none 
Returns:
  • nothing
Note:
  • none

void xmk_enter_kernel void   )  [inline]
 

Lock kernel by turning off ALL system interrupts

Returns:
  • Nothing
Note:
  • Locks kernel against ALL interrupts.

void xmk_leave_kernel void   )  [inline]
 

Unlock kernel by turning on system timer interrupts

Returns:
  • Nothing
Note:
  • Unlocks kernel with respect to ALL interrupts


Generated on Thu Feb 13 14:46:23 2014 for 2014.1_doc by  doxygen 1.4.5