source: rtems/c/src/exec/score/cpu/powerpc/ppc.h @ 4ef40152

4.104.114.84.95
Last change on this file since 4ef40152 was 4ef40152, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 15:09:27

MPC860 support submitted by Jay Monkman <jmonkman@…>.

  • Property mode set to 100644
File size: 16.6 KB
Line 
1/*  ppc.h
2 *
3 *  This file contains definitions for the IBM/Motorola PowerPC
4 *  family members.
5 *
6 *  Author:     Andrew Bray <andy@i-cubed.co.uk>
7 *
8 *  COPYRIGHT (c) 1995 by i-cubed ltd.
9 *
10 *  MPC860 support code was added by Jay Monkman <jmonkman@frasca.com>
11 *
12 *  To anyone who acknowledges that this file is provided "AS IS"
13 *  without any express or implied warranty:
14 *      permission to use, copy, modify, and distribute this file
15 *      for any purpose is hereby granted without fee, provided that
16 *      the above copyright notice and this notice appears in all
17 *      copies, and that the name of i-cubed limited not be used in
18 *      advertising or publicity pertaining to distribution of the
19 *      software without specific, written prior permission.
20 *      i-cubed limited makes no representations about the suitability
21 *      of this software for any purpose.
22 *
23 *  Derived from c/src/exec/cpu/no_cpu/no_cpu.h:
24 *
25 *  COPYRIGHT (c) 1989-1997.
26 *  On-Line Applications Research Corporation (OAR).
27 *
28 *  The license and distribution terms for this file may in
29 *  the file LICENSE in this distribution or at
30 *  http://www.OARcorp.com/rtems/license.html.
31 *
32 *
33 * Note:
34 *      This file is included by both C and assembler code ( -DASM )
35 *
36 *  $Id$
37 */
38
39
40#ifndef _INCLUDE_PPC_h
41#define _INCLUDE_PPC_h
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47/*
48 *  Define the name of the CPU family.
49 */
50
51#define CPU_NAME "PowerPC"
52
53/*
54 *  This file contains the information required to build
55 *  RTEMS for a particular member of the PowerPC family.  It does
56 *  this by setting variables to indicate which implementation
57 *  dependent features are present in a particular member
58 *  of the family.
59 *
60 *  The following architectural feature definitions are defaulted
61 *  unless specifically set by the model definition:
62 *
63 *    + PPC_DEBUG_MODEL          - PPC_DEBUG_MODEL_STANDARD
64 *    + PPC_INTERRUPT_MAX        - 16
65 *    + PPC_CACHE_ALIGNMENT      - 32
66 *    + PPC_LOW_POWER_MODE       - PPC_LOW_POWER_MODE_NONE
67 *    + PPC_HAS_EXCEPTION_PREFIX - 1
68 *    + PPC_HAS_FPU              - 1
69 *    + PPC_HAS_DOUBLE           - 1 if PPC_HAS_FPU,
70 *                               - 0 otherwise
71 *    + PPC_USE_MULTIPLE         - 0
72 */
73 
74/*
75 *  Define the debugging assistance models found in the PPC family.
76 *
77 *  Standard:         single step and branch trace
78 *  Single Step Only: single step only
79 *  IBM 4xx:          debug exception
80 */
81
82#define PPC_DEBUG_MODEL_STANDARD         1
83#define PPC_DEBUG_MODEL_SINGLE_STEP_ONLY 2
84#define PPC_DEBUG_MODEL_IBM4xx           3
85
86/*
87 *  Define the low power mode models
88 *
89 *  Standard:   as defined for 603e
90 *  Nap Mode:   nap mode only (604)
91 *  XXX 403GB, 603, 603e, 604, 821
92 */
93
94#define PPC_LOW_POWER_MODE_NONE      0
95#define PPC_LOW_POWER_MODE_STANDARD  1
96
97#if defined(ppc403)
98/*
99 *  IBM 403
100 *
101 *  Developed for 403GA.  Book checked for 403GB.
102 *
103 *  Does not have user mode.
104 */
105 
106#define CPU_MODEL_NAME "PowerPC 403"
107#define PPC_ALIGNMENT           4 
108#define PPC_CACHE_ALIGNMENT     16
109#define PPC_HAS_RFCI            1
110#define PPC_HAS_FPU             0
111#define PPC_USE_MULTIPLE        1
112#define PPC_I_CACHE             2048
113#define PPC_D_CACHE             1024
114
115#define PPC_DEBUG_MODEL          PPC_DEBUG_MODEL_IBM4xx
116#define PPC_HAS_EXCEPTION_PREFIX 0
117#define PPC_HAS_EVPR             1
118
119#elif defined(ppc601)
120/*
121 *  Submitted with original port -- book checked only.
122 */
123 
124#define CPU_MODEL_NAME  "PowerPC 601"
125
126#define PPC_ALIGNMENT           8
127#define PPC_USE_MULTIPLE        1
128#define PPC_I_CACHE             0
129#define PPC_D_CACHE             32768
130
131#define PPC_DEBUG_MODEL PPC_DEBUG_MODEL_SINGLE_STEP_ONLY
132
133#elif defined(ppc602)
134/*
135 *  Submitted with original port -- book checked only.
136 */
137 
138#define CPU_MODEL_NAME  "PowerPC 602"
139
140#define PPC_ALIGNMENT           4
141#define PPC_HAS_DOUBLE          0
142#define PPC_I_CACHE             4096
143#define PPC_D_CACHE             4096
144
145#elif defined(ppc603)
146/*
147 *  Submitted with original port -- book checked only.
148 */
149 
150#define CPU_MODEL_NAME  "PowerPC 603"
151
152#define PPC_ALIGNMENT           8
153#define PPC_I_CACHE             8192
154#define PPC_D_CACHE             8192
155
156#elif defined(ppc603e)
157 
158#define CPU_MODEL_NAME  "PowerPC 603e"
159/*
160 *  Submitted with original port.
161 *
162 *  Known to work on real hardware.
163 */
164
165#define PPC_ALIGNMENT           8
166#define PPC_I_CACHE             16384
167#define PPC_D_CACHE             16384
168
169#define PPC_LOW_POWER_MODE PPC_LOW_POWER_MODE_STANDARD
170
171#elif defined(ppc604)
172/*
173 *  Submitted with original port -- book checked only.
174 */
175 
176#define CPU_MODEL_NAME  "PowerPC 604"
177
178#define PPC_ALIGNMENT           8
179#define PPC_I_CACHE             16384
180#define PPC_D_CACHE             16384
181 
182#elif defined(mpc860)
183/*
184 *  Added by Jay Monkman (jmonkman@frasca.com) 6/28/98
185 */
186#define CPU_MODEL_NAME  "PowerPC MPC860"
187
188#define PPC_ALIGNMENT           4
189#define PPC_I_CACHE             4096
190#define PPC_D_CACHE             4096
191#define PPC_CACHE_ALIGNMENT     16
192#define PPC_INTERRUPT_MAX       64
193#define PPC_HAS_FPU             0
194#define PPC_HAS_DOUBLE          0
195#define PPC_USE_MULTIPLE        1
196#define PPC_USE_SPRG            1
197
198#define PPC_MSR_0               0x00009000
199#define PPC_MSR_1               0x00001000
200#define PPC_MSR_2               0x00001000
201#define PPC_MSR_3               0x00000000
202
203#else
204 
205#error "Unsupported CPU Model"
206 
207#endif
208
209/*
210 *  Application binary interfaces.
211 *
212 *  PPC_ABI MUST be defined as one of these.
213 *  Only PPC_ABI_POWEROPEN is currently fully supported.
214 *  Only EABI will be supported in the end when
215 *  the tools are there.
216 *  Only big endian is currently supported.
217 */
218/*
219 *  PowerOpen ABI.  This is Andy's hack of the
220 *  PowerOpen ABI to ELF.  ELF rather than a
221 *  XCOFF assembler is used.  This may work
222 *  if PPC_ASM == PPC_ASM_XCOFF is defined.
223 */
224#define PPC_ABI_POWEROPEN       0
225/*
226 *  GCC 2.7.0 munched version of EABI, with
227 *  PowerOpen calling convention and stack frames,
228 *  but EABI style indirect function calls.
229 */
230#define PPC_ABI_GCC27           1
231/*
232 *  SVR4 ABI
233 */
234#define PPC_ABI_SVR4            2
235/*
236 *  Embedded ABI
237 */
238#define PPC_ABI_EABI            3
239
240#if (PPC_ABI == PPC_ABI_POWEROPEN)
241#define PPC_STACK_ALIGNMENT     8
242#elif (PPC_ABI == PPC_ABI_GCC27)
243#define PPC_STACK_ALIGNMENT     8
244#elif (PPC_ABI == PPC_ABI_SVR4)
245#define PPC_STACK_ALIGNMENT     16
246#elif (PPC_ABI == PPC_ABI_EABI)
247#define PPC_STACK_ALIGNMENT     8
248#else
249#error  "PPC_ABI is not properly defined"
250#endif
251#ifndef PPC_ABI
252#error  "PPC_ABI is not properly defined"
253#endif
254
255/*
256 *  Assemblers.
257 *  PPC_ASM MUST be defined as one of these.
258 *
259 *  PPC_ASM_ELF:   ELF assembler. Currently used for all ABIs.
260 *  PPC_ASM_XCOFF: XCOFF assembler. May be needed for PowerOpen ABI.
261 *
262 *  NOTE: Only PPC_ABI_ELF is currently fully supported.
263 */
264
265#define PPC_ASM_ELF   0
266#define PPC_ASM_XCOFF 1
267
268/*
269 *  Use the default debug scheme defined in the architectural specification
270 *  if another model has not been specified.
271 */
272
273#ifndef PPC_DEBUG_MODEL
274#define PPC_DEBUG_MODEL PPC_DEBUG_MODEL_STANDARD
275#endif
276
277/*
278 *  If the maximum number of exception sources has not been defined,
279 *  then default it to 16.
280 */
281
282#ifndef PPC_INTERRUPT_MAX
283#define PPC_INTERRUPT_MAX       16
284#endif
285
286/*
287 *  Unless specified otherwise, the cache line size is defaulted to 32.
288 *
289 *  The derive the power of 2 the cache line is.
290 */
291
292#ifndef PPC_CACHE_ALIGNMENT
293#define PPC_CACHE_ALIGNMENT 32
294#endif
295
296#if (PPC_CACHE_ALIGNMENT == 16)
297#define PPC_CACHE_ALIGN_POWER 4
298#elif (PPC_CACHE_ALIGNMENT == 32)
299#define PPC_CACHE_ALIGN_POWER 5
300#else
301#error "Undefined power of 2 for PPC_CACHE_ALIGNMENT"
302#endif
303
304/*
305 *  Unless otherwise specified, assume the model has an IP/EP bit to
306 *  set the exception address prefix.
307 */
308
309#ifndef PPC_HAS_EXCEPTION_PREFIX
310#define PPC_HAS_EXCEPTION_PREFIX 1
311#endif
312
313/*
314 *  Unless otherwise specified, assume the model does NOT have
315 *  403 style EVPR register to set the exception address prefix.
316 */
317
318#ifndef PPC_HAS_EVPR
319#define PPC_HAS_EVPR 0
320#endif
321
322/*
323 *  If no low power mode model was specified, then assume there is none.
324 */
325
326#ifndef PPC_LOW_POWER_MODE
327#define PPC_LOW_POWER_MODE PPC_LOW_POWER_MODE_NONE
328#endif
329
330/*
331 *  Unless specified above, then assume the model has FP support.
332 */
333
334#ifndef PPC_HAS_FPU
335#define PPC_HAS_FPU 1
336#endif
337
338/*
339 *  Unless specified above, If the model has FP support, it is assumed to
340 *  support doubles (8-byte floating point numbers).
341 *
342 *  If the model does NOT have FP support, then the model does
343 *  NOT have double length FP registers.
344 */
345
346#ifndef PPC_HAS_DOUBLE
347#if (PPC_HAS_FPU)
348#define PPC_HAS_DOUBLE 1
349#else
350#define PPC_HAS_DOUBLE 0
351#endif
352#endif
353
354/*
355 *  Unless specified above, then assume the model does NOT have critical
356 *  interrupt support.
357 */
358
359#ifndef PPC_HAS_RFCI
360#define PPC_HAS_RFCI 0
361#endif
362
363/*
364 *  Unless specified above, do not use the load/store multiple instructions
365 *  in a context switch.
366 */
367
368#ifndef PPC_USE_MULTIPLE
369#define PPC_USE_MULTIPLE 0
370#endif
371
372/*
373 *  The following exceptions are not maskable, and are not
374 *  necessarily predictable, so cannot be offered to RTEMS:
375 *    Alignment exception - handled by the CPU module
376 *    Data exceptions.
377 *    Instruction exceptions.
378 */
379
380/*
381 *  Base Interrupt vectors supported on all models.
382 */
383#define PPC_IRQ_SYSTEM_RESET     0 /* 0x00100 - System reset.              */
384#define PPC_IRQ_MCHECK           1 /* 0x00200 - Machine check              */
385#define PPC_IRQ_PROTECT          2 /* 0x00300 - Protection violation       */
386#define PPC_IRQ_ISI              3 /* 0x00400 - Instruction Fetch error    */
387#define PPC_IRQ_EXTERNAL         4 /* 0x00500 - External interrupt         */
388#define PPC_IRQ_ALIGNMENT        5 /* 0X00600 - Alignment exception        */
389#define PPC_IRQ_PROGRAM          6 /* 0x00700 - Program exception          */
390#define PPC_IRQ_NOFP             7 /* 0x00800 - Floating point unavailable */
391#define PPC_IRQ_DECREMENTER      8 /* 0x00900 - Decrementer interrupt      */
392#define PPC_IRQ_RESERVED_A       9 /* 0x00a00 - Implementation Reserved    */
393#define PPC_IRQ_RESERVED_B      10 /* 0x00a00 - Implementation Reserved    */
394#define PPC_IRQ_SCALL           11 /* 0x00c00 - System call                */
395#define PPC_IRQ_TRACE           12 /* 0x00d00 - Trace Exception            */
396#define PPC_IRQ_FP_ASST         13 /* ox00e00 - Floating point assist      */
397#define PPC_STD_IRQ_LAST        PPC_IRQ_FP_ASST
398
399#define PPC_IRQ_FIRST           PPC_IRQ_SYSTEM_RESET
400
401#if defined(ppc403)
402                                 
403#define PPC_IRQ_CRIT     PPC_IRQ_SYSTEM_RESET /*0x00100- Critical int. pin */
404#define PPC_IRQ_PIT      (PPC_STD_IRQ_LAST+1) /*0x01000- Pgm interval timer*/
405#define PPC_IRQ_FIT      (PPC_STD_IRQ_LAST+2) /*0x01010- Fixed int. timer  */
406#define PPC_IRQ_WATCHDOG (PPC_STD_IRQ_LAST+3) /*0x01020- Watchdog timer    */
407#define PPC_IRQ_DEBUG    (PPC_STD_IRQ_LAST+4) /*0x02000- Debug exceptions  */
408#define PPC_IRQ_LAST     PPC_IRQ_DEBUG   
409
410#elif defined(ppc601)
411#define PPC_IRQ_TRACE    (PPC_STD_IRQ_LAST+1) /*0x02000-Run/Trace Exception*/
412#define PPC_IRQ_LAST     PPC_IRQ_TRACE       
413
414#elif defined(ppc602)
415#define PPC_IRQ_LAST     (PPC_STD_IRQ_LAST)
416
417#elif defined(ppc603)
418#define PPC_IRQ_TRANS_MISS (PPC_STD_IRQ_LAST+1) /*0x1000-Ins Translation Miss*/
419#define PPC_IRQ_DATA_LOAD  (PPC_STD_IRQ_LAST+2) /*0x1100-Data Load Trans Miss*/
420#define PPC_IRQ_DATA_STORE (PPC_STD_IRQ_LAST+3) /*0x1200-Data Store Miss     */
421#define PPC_IRQ_ADDR_BRK   (PPC_STD_IRQ_LAST+4) /*0x1300-Instruction Bkpoint */
422#define PPC_IRQ_SYS_MGT    (PPC_STD_IRQ_LAST+5) /*0x1400-System Management   */
423#define PPC_IRQ_LAST       PPC_IRQ_SYS_MGT   
424
425#elif defined(ppc603e)
426#define PPC_TLB_INST_MISS  (PPC_STD_IRQ_LAST+1) /*0x1000-Instruction TLB Miss*/
427#define PPC_TLB_LOAD_MISS  (PPC_STD_IRQ_LAST+2) /*0x1100-TLB miss on load  */
428#define PPC_TLB_STORE_MISS (PPC_STD_IRQ_LAST+3) /*0x1200-TLB Miss on store */
429#define PPC_IRQ_ADDRBRK    (PPC_STD_IRQ_LAST+4) /*0x1300-Instruct addr break */
430#define PPC_IRQ_SYS_MGT    (PPC_STD_IRQ_LAST+5) /*0x1400-System Management   */
431#define PPC_IRQ_LAST       PPC_IRQ_SYS_MGT   
432
433
434#elif defined(ppc604)
435#define PPC_IRQ_ADDR_BRK (PPC_STD_IRQ_LAST+1) /*0x1300- Inst. addr break  */
436#define PPC_IRQ_SYS_MGT  (PPC_STD_IRQ_LAST+2) /*0x1400- System Management */
437#define PPC_IRQ_LAST     PPC604_IRQ_SYS_MGT 
438
439#elif defined(mpc860)
440#define PPC_IRQ_IRQ0            (PPC_STD_IRQ_LAST + 1)
441#define PPC_IRQ_LVL0            (PPC_STD_IRQ_LAST + 2)
442#define PPC_IRQ_IRQ1            (PPC_STD_IRQ_LAST + 3)
443#define PPC_IRQ_LVL1            (PPC_STD_IRQ_LAST + 4)
444#define PPC_IRQ_IRQ2            (PPC_STD_IRQ_LAST + 5)
445#define PPC_IRQ_LVL2            (PPC_STD_IRQ_LAST + 6)
446#define PPC_IRQ_IRQ3            (PPC_STD_IRQ_LAST + 7)
447#define PPC_IRQ_LVL3            (PPC_STD_IRQ_LAST + 8)
448#define PPC_IRQ_IRQ4            (PPC_STD_IRQ_LAST + 9)
449#define PPC_IRQ_LVL4            (PPC_STD_IRQ_LAST + 10)
450#define PPC_IRQ_IRQ5            (PPC_STD_IRQ_LAST + 11)
451#define PPC_IRQ_LVL5            (PPC_STD_IRQ_LAST + 12)
452#define PPC_IRQ_IRQ6            (PPC_STD_IRQ_LAST + 13)
453#define PPC_IRQ_LVL6            (PPC_STD_IRQ_LAST + 14)
454#define PPC_IRQ_IRQ7            (PPC_STD_IRQ_LAST + 15)
455#define PPC_IRQ_LVL7            (PPC_STD_IRQ_LAST + 16)
456#define PPC_IRQ_CPM_RESERVED_0  (PPC_STD_IRQ_LAST + 17)
457#define PPC_IRQ_CPM_PC4         (PPC_STD_IRQ_LAST + 18)
458#define PPC_IRQ_CPM_PC5         (PPC_STD_IRQ_LAST + 19)
459#define PPC_IRQ_CPM_SMC2        (PPC_STD_IRQ_LAST + 20)
460#define PPC_IRQ_CPM_SMC1        (PPC_STD_IRQ_LAST + 21)
461#define PPC_IRQ_CPM_SPI         (PPC_STD_IRQ_LAST + 22)
462#define PPC_IRQ_CPM_PC6         (PPC_STD_IRQ_LAST + 23)
463#define PPC_IRQ_CPM_TIMER4      (PPC_STD_IRQ_LAST + 24)
464#define PPC_IRQ_CPM_RESERVED_8  (PPC_STD_IRQ_LAST + 25)
465#define PPC_IRQ_CPM_PC7         (PPC_STD_IRQ_LAST + 26)
466#define PPC_IRQ_CPM_PC8         (PPC_STD_IRQ_LAST + 27)
467#define PPC_IRQ_CPM_PC9         (PPC_STD_IRQ_LAST + 28)
468#define PPC_IRQ_CPM_TIMER3      (PPC_STD_IRQ_LAST + 29)
469#define PPC_IRQ_CPM_RESERVED_D  (PPC_STD_IRQ_LAST + 30)
470#define PPC_IRQ_CPM_PC10        (PPC_STD_IRQ_LAST + 31)
471#define PPC_IRQ_CPM_PC11        (PPC_STD_IRQ_LAST + 32)
472#define PPC_IRQ_CPM_I2C         (PPC_STD_IRQ_LAST + 33)
473#define PPC_IRQ_CPM_RISC_TIMER  (PPC_STD_IRQ_LAST + 34)
474#define PPC_IRQ_CPM_TIMER2      (PPC_STD_IRQ_LAST + 35)
475#define PPC_IRQ_CPM_RESERVED_13 (PPC_STD_IRQ_LAST + 36)
476#define PPC_IRQ_CPM_IDMA2       (PPC_STD_IRQ_LAST + 37)
477#define PPC_IRQ_CPM_IDMA1       (PPC_STD_IRQ_LAST + 38)
478#define PPC_IRQ_CPM_SDMA_ERROR  (PPC_STD_IRQ_LAST + 39)
479#define PPC_IRQ_CPM_PC12        (PPC_STD_IRQ_LAST + 40)
480#define PPC_IRQ_CPM_PC13        (PPC_STD_IRQ_LAST + 41)
481#define PPC_IRQ_CPM_TIMER1      (PPC_STD_IRQ_LAST + 42)
482#define PPC_IRQ_CPM_PC14        (PPC_STD_IRQ_LAST + 43)
483#define PPC_IRQ_CPM_SCC4        (PPC_STD_IRQ_LAST + 44)
484#define PPC_IRQ_CPM_SCC3        (PPC_STD_IRQ_LAST + 45)
485#define PPC_IRQ_CPM_SCC2        (PPC_STD_IRQ_LAST + 46)
486#define PPC_IRQ_CPM_SCC1        (PPC_STD_IRQ_LAST + 47)
487#define PPC_IRQ_CPM_PC15        (PPC_STD_IRQ_LAST + 48)
488
489#define PPC_IRQ_LAST             PPC_IRQ_CPM_PC15
490
491#endif
492
493/*
494 *  Machine Status Register (MSR) Constants Used by RTEMS
495 */
496
497/*
498 *  Some PPC model manuals refer to the Exception Prefix (EP) bit as
499 *  IP for no apparent reason.
500 */
501
502#define PPC_MSR_RI       0x000000002 /* bit 30 - recoverable exception */
503#define PPC_MSR_DR       0x000000010 /* bit 27 - data address translation */
504#define PPC_MSR_IR       0x000000020 /* bit 26 - instruction addr translation*/
505
506#if (PPC_HAS_EXCEPTION_PREFIX)
507#define PPC_MSR_EP       0x000000040 /* bit 25 - exception prefix */
508#else
509#define PPC_MSR_EP       0x000000000 /* bit 25 - exception prefix */
510#endif
511
512#if (PPC_HAS_FPU)
513#define PPC_MSR_FP       0x000002000 /* bit 18 - floating point enable */
514#else
515#define PPC_MSR_FP       0x000000000 /* bit 18 - floating point enable */
516#endif
517
518#if (PPC_LOW_POWER_MODE == PPC_LOW_POWER_MODE_NONE)
519#define PPC_MSR_POW      0x000000000 /* bit 13 - power management enable */
520#else
521#define PPC_MSR_POW      0x000040000 /* bit 13 - power management enable */
522#endif
523
524/*
525 *  Interrupt/exception MSR bits set as defined on p. 2-20 in "The Programming
526 *  Environments" and the manuals for various PPC models.
527 */
528
529#if (PPC_DEBUG_MODEL == PPC_DEBUG_MODEL_STANDARD)
530#define PPC_MSR_DE       0x000000000 /* bit 22 - debug exception enable */
531#define PPC_MSR_BE       0x000000200 /* bit 22 - branch trace enable */
532#define PPC_MSR_SE       0x000000400 /* bit 21 - single step trace enable */
533#elif (PPC_DEBUG_MODEL == PPC_DEBUG_MODEL_SINGLE_STEP_ONLY)
534#define PPC_MSR_DE       0x000000000 /* bit 22 - debug exception enable */
535#define PPC_MSR_BE       0x000000200 /* bit 22 - branch trace enable */
536#define PPC_MSR_SE       0x000000000 /* bit 21 - single step trace enable */
537#elif (PPC_DEBUG_MODEL == PPC_DEBUG_MODEL_IBM4xx)
538#define PPC_MSR_DE       0x000000200 /* bit 22 - debug exception enable */
539#define PPC_MSR_BE       0x000000000 /* bit 22 - branch trace enable */
540#define PPC_MSR_SE       0x000000000 /* bit 21 - single step trace enable */
541#else
542#error "MSR constants -- unknown PPC_DEBUG_MODEL!!"
543#endif
544
545#define PPC_MSR_ME       0x000001000 /* bit 19 - machine check enable */
546#define PPC_MSR_EE       0x000008000 /* bit 16 - external interrupt enable */
547
548#if (PPC_HAS_RFCI)
549#define PPC_MSR_CE       0x000020000 /* bit 14 - critical interrupt enable */
550#else
551#define PPC_MSR_CE       0x000000000 /* bit 14 - critical interrupt enable */
552#endif
553
554#define PPC_MSR_DISABLE_MASK (PPC_MSR_ME|PPC_MSR_EE|PPC_MSR_CE)
555
556/*
557 *  Initial value for the FPSCR register
558 */
559
560#define PPC_INIT_FPSCR          0x000000f8
561
562#ifdef __cplusplus
563}
564#endif
565
566#endif /* ! _INCLUDE_PPC_h */
567/* end of include file */
568
569
Note: See TracBrowser for help on using the repository browser.