Specifications
A Minimal PowerPCª Boot Sequence for 29
Executing Compiled C Programs
Source Files
//---------------------------------------------------------------------
//
// Define space for data items needed by this code
//
//---------------------------------------------------------------------
.data
/* save time base to use for benchmarking numbers */
TBUSAVE:
.double 0
TBLSAVE:
.double 0
5.2 ppcinit.h
#include "reg_defs.h" /* contains bit defines and register names */
/*
Set the entry point into the user code. Normally, this should be
defined as main.
If a function other than main is used, the user MUST insert a
call to __eabi() in the function before any other executable code.
*/
#define USER_ENTRY main
/* define ONE appropriate processor type for your system */
//#define MPC603e
//#define MPC750
#define MPC7400
/* Max has VMX; other processors donÕt yet. Define as necessary.
May be set to zero also to disallow use of vmx on Max.*/
#ifdef MPC7400
#define VMX_AVAIL 1 /* 1 = vma avail, 0 = no vmx */
#else
#define VMX_AVAIL 0
#endif
/* L2 cache enablement */
#ifdef MPC603e
#define L2CACHE_ENABLE 0 /* just note that thereÕs no L2 on 603e */
#else /* 750 or 7400 */
#define L2CACHE_ENABLE 1 /* default - L2 on for Max and Arthur */
/*
* L2_INIT is used to set up the L2 cache as follows:
* size = .5 MB
* clock ratio = div 2