]> git.saurik.com Git - apple/xnu.git/blob - osfmk/ppc/asm.h
xnu-517.7.7.tar.gz
[apple/xnu.git] / osfmk / ppc / asm.h
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22 /*
23 * @OSF_COPYRIGHT@
24 */
25 #ifndef _PPC_ASM_H_
26 #define _PPC_ASM_H_
27
28 #define __ASMNL__ @
29 #define STRINGD .ascii
30
31 #ifdef ASSEMBLER
32
33
34 #define br0 0
35
36 #define ARG0 r3
37 #define ARG1 r4
38 #define ARG2 r5
39 #define ARG3 r6
40 #define ARG4 r7
41 #define ARG5 r8
42 #define ARG6 r9
43 #define ARG7 r10
44
45 #define tmp0 r0 /* Temporary GPR remapping (603e specific) */
46 #define tmp1 r1
47 #define tmp2 r2
48 #define tmp3 r3
49
50 /* SPR registers */
51
52 #define mq 0 /* MQ register for 601 emulation */
53 #define rtcu 4 /* RTCU - upper word of RTC for 601 emulation */
54 #define rtcl 5 /* RTCL - lower word of RTC for 601 emulation */
55 #define dsisr 18
56 #define ppcDAR 19
57 #define ppcdar 19
58 #define dar 19
59 #define SDR1 25
60 #define sdr1 25
61 #define srr0 26
62 #define srr1 27
63 #define vrsave 256 /* Vector Register save */
64 #define sprg0 272
65 #define sprg1 273
66 #define sprg2 274
67 #define sprg3 275
68 #define scomc 276
69 #define scomd 277
70 #define pvr 287
71
72 #define IBAT0U 528
73 #define IBAT0L 529
74 #define IBAT1U 530
75 #define IBAT1L 531
76 #define IBAT2U 532
77 #define IBAT2L 533
78 #define IBAT3U 534
79 #define IBAT3L 535
80 #define ibat0u 528
81 #define ibat0l 529
82 #define ibat1u 530
83 #define ibat1l 531
84 #define ibat2u 532
85 #define ibat2l 533
86 #define ibat3u 534
87 #define ibat3l 535
88
89 #define DBAT0U 536
90 #define DBAT0L 537
91 #define DBAT1U 538
92 #define DBAT1L 539
93 #define DBAT2U 540
94 #define DBAT2L 541
95 #define DBAT3U 542
96 #define DBAT3L 543
97 #define dbat0u 536
98 #define dbat0l 537
99 #define dbat1u 538
100 #define dbat1l 539
101 #define dbat2u 540
102 #define dbat2l 541
103 #define dbat3u 542
104 #define dbat3l 543
105
106 #define ummcr2 928 /* Performance monitor control */
107 #define upmc5 929 /* Performance monitor counter */
108 #define upmc6 930 /* Performance monitor counter */
109 #define ubamr 935 /* Performance monitor mask */
110 #define ummcr0 936 /* Performance monitor control */
111 #define upmc1 937 /* Performance monitor counter */
112 #define upmc2 938 /* Performance monitor counter */
113 #define usia 939 /* User sampled instruction address */
114 #define ummcr1 940 /* Performance monitor control */
115 #define upmc3 941 /* Performance monitor counter */
116 #define upmc4 942 /* Performance monitor counter */
117 #define usda 943 /* User sampled data address */
118 #define mmcr2 944 /* Performance monitor control */
119 #define pmc5 945 /* Performance monitor counter */
120 #define pmc6 946 /* Performance monitor counter */
121 #define bamr 951 /* Performance monitor mask */
122 #define mmcr0 952
123 #define pmc1 953
124 #define pmc2 954
125 #define sia 955
126 #define mmcr1 956
127 #define pmc3 957
128 #define pmc4 958
129 #define sda 959 /* Sampled data address */
130 #define dmiss 976 /* ea that missed */
131 #define trig0 976
132 #define dcmp 977 /* compare value for the va that missed */
133 #define trig1 977
134 #define hash1 978 /* pointer to first hash pteg */
135 #define trig2 978
136 #define hash2 979 /* pointer to second hash pteg */
137 #define imiss 980 /* ea that missed */
138 #define tlbmiss 980 /* ea that missed */
139 #define icmp 981 /* compare value for the va that missed */
140 #define ptehi 981 /* compare value for the va that missed */
141 #define rpa 982 /* required physical address register */
142 #define ptelo 982 /* required physical address register */
143 #define l3pdet 984 /* l3pdet */
144
145 #define HID0 1008 /* Checkstop and misc enables */
146 #define hid0 1008 /* Checkstop and misc enables */
147 #define HID1 1009 /* Clock configuration */
148 #define hid1 1009 /* Clock configuration */
149 #define HID2 1016 /* Other processor controls */
150 #define hid2 1016 /* Other processor controls */
151 #define iabr 1010 /* Instruction address breakpoint register */
152 #define ictrl 1011 /* Instruction Cache Control */
153 #define ldstdb 1012 /* Load/Store Debug */
154 #define hid4 1012 /* Misc stuff */
155 #define dabr 1013 /* Data address breakpoint register */
156 #define msscr0 1014 /* Memory subsystem control */
157 #define hid5 1014 /* Misc stuff */
158 #define msscr1 1015 /* Memory subsystem debug */
159 #define msssr0 1015 /* Memory Subsystem Status */
160 #define ldstcr 1016 /* Load/Store Status/Control */
161 #define l2cr2 1016 /* L2 Cache control 2 */
162 #define l2cr 1017 /* L2 Cache control */
163 #define l3cr 1018 /* L3 Cache control */
164 #define ictc 1019 /* I-cache throttling control */
165 #define thrm1 1020 /* Thermal management 1 */
166 #define thrm2 1021 /* Thermal management 2 */
167 #define thrm3 1022 /* Thermal management 3 */
168 #define pir 1023 /* Processor ID Register */
169
170
171 /* SPR registers (64-bit, PPC970 specific) */
172
173 #define scomc_gp 276
174 #define scomd_gp 277
175
176 #define hsprg0 304
177 #define hsprg1 305
178 #define hdec 310
179 #define hior 311
180 #define rmor 312
181 #define hrmor 313
182 #define hsrr0 314
183 #define hsrr1 315
184 #define lpcr 318
185 #define lpidr 319
186
187 #define ummcra_gp 770
188 #define upmc1_gp 771
189 #define upmc2_gp 772
190 #define upmc3_gp 773
191 #define upmc4_gp 774
192 #define upmc5_gp 775
193 #define upmc6_gp 776
194 #define upmc7_gp 777
195 #define upmc8_gp 778
196 #define ummcr0_gp 779
197 #define usiar_gp 780
198 #define usdar_gp 781
199 #define ummcr1_gp 782
200 #define uimc_gp 783
201
202 #define mmcra_gp 786
203 #define pmc1_gp 787
204 #define pmc2_gp 788
205 #define pmc3_gp 789
206 #define pmc4_gp 790
207 #define pmc5_gp 791
208 #define pmc6_gp 792
209 #define pmc7_gp 793
210 #define pmc8_gp 794
211 #define mmcr0_gp 795
212 #define siar_gp 796
213 #define sdar_gp 797
214 #define mmcr1_gp 798
215 #define imc_gp 799
216
217 #define trig0_gp 976
218 #define trig1_gp 977
219 #define trig2_gp 978
220
221 #define dabrx 1015
222
223 ; hid0 bits
224 #define emcp 0
225 #define emcpm 0x80000000
226 #define dbp 1
227 #define dbpm 0x40000000
228 #define eba 2
229 #define ebam 0x20000000
230 #define ebd 3
231 #define ebdm 0x10000000
232 #define sbclk 4
233 #define sbclkm 0x08000000
234 #define eclk 6
235 #define eclkm 0x02000000
236 #define par 7
237 #define parm 0x01000000
238 #define sten 7
239 #define stenm 0x01000000
240 #define doze 8
241 #define dozem 0x00800000
242 #define nap 9
243 #define napm 0x00400000
244 #define sleep 10
245 #define sleepm 0x00200000
246 #define dpm 11
247 #define dpmm 0x00100000
248 #define riseg 12
249 #define risegm 0x00080000
250 #define eiec 13
251 #define eiecm 0x00040000
252 #define mum 14
253 #define mumm 0x00020000
254 #define nhr 15
255 #define nhrm 0x00010000
256 #define ice 16
257 #define icem 0x00008000
258 #define dce 17
259 #define dcem 0x00004000
260 #define ilock 18
261 #define ilockm 0x00002000
262 #define dlock 19
263 #define dlockm 0x00001000
264 #define exttben 19
265 #define icfi 20
266 #define icfim 0x00000800
267 #define dcfi 21
268 #define dcfim 0x00000400
269 #define spd 22
270 #define spdm 0x00000200
271 #define sge 24
272 #define sgem 0x00000080
273 #define dcfa 25
274 #define dcfam 0x00000040
275 #define btic 26
276 #define bticm 0x00000020
277 #define lrstk 27
278 #define lrstkm 0x00000010
279 #define abe 28
280 #define abem 0x00000008
281 #define fold 28
282 #define foldm 0x00000008
283 #define bht 29
284 #define bhtm 0x00000004
285 #define nopdst 30
286 #define nopdstm 0x00000002
287 #define nopti 31
288 #define noptim 0x00000001
289
290 ; hid1 bits
291 #define hid1pcem 0xF8000000
292 #define hid1prem 0x06000000
293 #define hid1dfs0 8
294 #define hid1dfs0m 0x00800000
295 #define hid1dfs1 9
296 #define hid1dfs1m 0x00400000
297 #define hid1pi0 14
298 #define hid1pi0m 0x00020000
299 #define hid1FCPErr 14
300 #define hid1ps 15
301 #define hid1FCD0PErr 15
302 #define hid1psm 0x00010000
303 #define hid1pc0 0x0000F800
304 #define hid1pr0 0x00000600
305 #define hid1pc1 0x000000F8
306 #define hid1pc0 0x0000F800
307 #define hid1pr1 0x00000006
308 #define hid1FCD1PErr 16
309 #define hid1FIERATErr 17
310
311 ; hid2 bits
312 #define hid2vmin 18
313 #define hid2vminm 0x00002000
314
315 ; msscr0 bits
316 #define shden 0
317 #define shdenm 0x80000000
318 #define shden3 1
319 #define shdenm3 0x40000000
320 #define l1intvs 2
321 #define l1intve 4
322 #define l1intvb 0x38000000
323 #define l2intvs 5
324 #define l2intve 7
325 #define l2intvb 0x07000000
326 #define dl1hwf 8
327 #define dl1hwfm 0x00800000
328 #define dbsiz 9
329 #define dbsizm 0x00400000
330 #define emode 10
331 #define emodem 0x00200000
332 #define abgd 11
333 #define abgdm 0x00100000
334 #define tfsts 24
335 #define tfste 25
336 #define tfstm 0x000000C0
337 #define l2pfes 30
338 #define l2pfee 31
339 #define l2pfem 0x00000003
340
341 ; msscr1 bits
342 #define cqd 15
343 #define cqdm 0x00010000
344 #define csqs 1
345 #define csqe 2
346 #define csqm 0x60000000
347
348 ; msssr1 bits - 7450
349 #define vgL2PARA 0
350 #define vgL3PARA 1
351 #define vgL2COQEL 2
352 #define vgL3COQEL 3
353 #define vgL2CTR 4
354 #define vgL3CTR 5
355 #define vgL2COQR 6
356 #define vgL3COQR 7
357 #define vgLMQ 8
358 #define vgSMC 9
359 #define vgSNP 10
360 #define vgBIU 11
361 #define vgSMCE 12
362 #define vgL2TAG 13
363 #define vgL2DAT 14
364 #define vgL3TAG 15
365 #define vgL3DAT 16
366 #define vgAPE 17
367 #define vgDPE 18
368 #define vgTEA 19
369
370 ; srr1 bits
371 #define icmck 1
372 #define icmckm 0x40000000
373 #define dcmck 2
374 #define dcmckm 0x20000000
375 #define l2mck 3
376 #define l2mckm 0x10000000
377 #define tlbmck 4
378 #define tlbmckm 0x08000000
379 #define brmck 5
380 #define brmckm 0x04000000
381 #define othmck 10
382 #define othmckm 0x00200000
383 #define l2dpmck 11
384 #define l2dpmckm 0x00100000
385 #define mcpmck 12
386 #define mcpmckm 0x00080000
387 #define teamck 13
388 #define teamckm 0x00040000
389 #define dpmck 14
390 #define dpmckm 0x00020000
391 #define apmck 15
392 #define apmckm 0x00010000
393
394 #define mckIFUE 42
395 #define mckLDST 43
396 #define mckXCs 44
397 #define mckXCe 45
398 #define mckNoErr 0
399 #define mckIFSLBPE 1
400 #define mckIFTLBPE 2
401 #define mckIFTLBUE 3
402
403 ; dsisr bits
404 #define mckUEdfr 16
405 #define mckUETwDfr 17
406 #define mckL1DCPE 18
407 #define mckL1DTPE 19
408 #define mckDEPE 20
409 #define mckTLBPE 21
410 #define mckSLBPE 23
411
412 ; Async MCK source
413 #define AsyMCKSrc 0x0226
414 #define AsyMCKRSrc 0x0227
415 #define AsyMCKext 0
416 #define AsyMCKfir 1
417 #define AsyMCKhri 2
418 #define AsyMCKdbg 3
419 #define AsyMCKncstp 4
420
421 ; Core FIR
422 #define cFIR 0x0300
423 #define cFIRrst 0x0310
424 #define cFIRICachePE 0
425 #define cFIRITagPE0 1
426 #define cFIRITagPE1 2
427 #define cFIRIEratPE 3
428 #define cFIRIFUL2UE 4
429 #define cFIRIFUCS 5
430 #define cFIRDCachePE 6
431 #define cFIRDTagPE 7
432 #define cFIRDEratPE 8
433 #define cFIRTLBPE 9
434 #define cFIRSLBPE 10
435 #define cFIRSL2UE 11
436
437 ; Core Error Inject
438 #define CoreErrI 0x0350
439 #define CoreIFU 0
440 #define CoreLSU 1
441 #define CoreRate0 2
442 #define CoreRate1 3
443 #define CoreOnce 0
444 #define CoreSolid 2
445 #define CorePulse 3
446
447 ; L2 FIR
448 #define l2FIR 0x0400
449 #define l2FIRrst 0x0410
450
451 ; Bus FIR
452 #define busFIR 0x0A00
453 #define busFIRrst 0x0A10
454
455 ; GUS Mode Register
456 #define GUSModeReg 0x0430
457 #define GUSMdmapen 0x00008000
458 #define GUSMstgtdis 0x00000080
459 #define GUSMstgttim 0x00000038
460 #define GUSMstgttoff 0x00000004
461
462 ; HID4
463 #define hid4RMCI 23
464 #define hid4FAlgn 24
465 #define hid4DisPF 25
466 #define hid4ResPF 26
467 #define hid4EnSPTW 27
468 #define hid4L1DCFI 28
469 #define hid4DisDERpg 31
470 #define hid4DisDCTpg 36
471 #define hid4DisDCpg 41
472 #define hid4DisTLBpg 48
473 #define hid4DisSLBpg 54
474 #define hid4MckEIEna 55
475
476 ; L2 cache control
477 #define l2e 0
478 #define l2em 0x80000000
479 #define l2pe 1
480 #define l2pem 0x40000000
481 #define l2siz 2
482 #define l2sizf 3
483 #define l2sizm 0x30000000
484 #define l2clk 4
485 #define l2clkf 6
486 #define l2clkm 0x0E000000
487 #define l2ram 7
488 #define l2ramf 8
489 #define l2ramm 0x01800000
490 #define l2do 9
491 #define l2dom 0x00400000
492 #define l2i 10
493 #define l2im 0x00200000
494 #define l2ctl 11
495 #define l2ctlm 0x00100000
496 #define l2ionly 11
497 #define l2ionlym 0x00100000
498 #define l2wt 12
499 #define l2wtm 0x00080000
500 #define l2ts 13
501 #define l2tsm 0x00040000
502 #define l2oh 14
503 #define l2ohf 15
504 #define l2ohm 0x00030000
505 #define l2donly 15
506 #define l2donlym 0x00010000
507 #define l2sl 16
508 #define l2slm 0x00008000
509 #define l2df 17
510 #define l2dfm 0x00004000
511 #define l2byp 18
512 #define l2bypm 0x00002000
513 #define l2fa 19
514 #define l2fam 0x00001000
515 #define l2hwf 20
516 #define l2hwfm 0x00000800
517 #define l2io 21
518 #define l2iom 0x00000400
519 #define l2clkstp 22
520 #define l2clkstpm 0x00000200
521 #define l2dro 23
522 #define l2drom 0x00000100
523 #define l2ctr 24
524 #define l2ctrf 30
525 #define l2ctrm 0x000000FE
526 #define l2ip 31
527 #define l2ipm 0x00000001
528
529 ; L3 cache control
530 #define l3e 0
531 #define l3em 0x80000000
532 #define l3pe 1
533 #define l3pem 0x40000000
534 #define l3siz 3
535 #define l3sizm 0x10000000
536 #define l3clken 4
537 #define l3clkenm 0x08000000
538 #define l3dx 5
539 #define l3dxm 0x04000000
540 #define l3clk 6
541 #define l3clkf 8
542 #define l3clkm 0x03800000
543 #define l3io 9
544 #define l3iom 0x00400000
545 #define l3spo 13
546 #define l3spom 0x00040000
547 #define l3cksp 14
548 #define l3ckspf 15
549 #define l3ckspm 0x00030000
550 #define l3psp 16
551 #define l3pspf 18
552 #define l3pspm 0x0000E000
553 #define l3rep 19
554 #define l3repm 0x00001000
555 #define l3hwf 20
556 #define l3hwfm 0x00000800
557 #define l3i 21
558 #define l3im 0x00000400
559 #define l3rt 22
560 #define l3rtf 23
561 #define l3rtm 0x00000300
562 #define l3dro 23
563 #define l3drom 0x00000100
564 #define l3cya 24
565 #define l3cyam 0x00000080
566 #define l3donly 25
567 #define l3donlym 0x00000040
568 #define l3dmem 29
569 #define l3dmemm 0x00000004
570 #define l3dmsiz 31
571 #define l3dmsizm 0x00000001
572
573 #define thrmtin 0
574 #define thrmtinm 0x80000000
575 #define thrmtiv 1
576 #define thrmtivm 0x40000000
577 #define thrmthrs 2
578 #define thrmthre 8
579 #define thrmthrm 0x3F800000
580 #define thrmtid 29
581 #define thrmtidm 0x00000004
582 #define thrmtie 30
583 #define thrmtiem 0x00000002
584 #define thrmv 31
585 #define thrmvm 0x00000001
586
587 #define thrmsitvs 15
588 #define thrmsitve 30
589 #define thrmsitvm 0x0001FFFE
590 #define thrme 31
591 #define thrmem 0x00000001
592
593 #define ictcfib 23
594 #define ictcfie 30
595 #define ictcfim 0x000001FE
596 #define ictce 31
597 #define ictcem 0x00000001
598
599 #define cr0_lt 0
600 #define cr0_gt 1
601 #define cr0_eq 2
602 #define cr0_so 3
603 #define cr0_un 3
604 #define cr1_lt 4
605 #define cr1_gt 5
606 #define cr1_eq 6
607 #define cr1_so 7
608 #define cr1_un 7
609 #define cr2_lt 8
610 #define cr2_gt 9
611 #define cr2_eq 10
612 #define cr2_so 11
613 #define cr2_un 11
614 #define cr3_lt 12
615 #define cr3_gt 13
616 #define cr3_eq 14
617 #define cr3_so 15
618 #define cr3_un 15
619 #define cr4_lt 16
620 #define cr4_gt 17
621 #define cr4_eq 18
622 #define cr4_so 19
623 #define cr4_un 19
624 #define cr5_lt 20
625 #define cr5_gt 21
626 #define cr5_eq 22
627 #define cr5_so 23
628 #define cr5_un 23
629 #define cr6_lt 24
630 #define cr6_gt 25
631 #define cr6_eq 26
632 #define cr6_so 27
633 #define cr6_un 27
634 #define cr7_lt 28
635 #define cr7_gt 29
636 #define cr7_eq 30
637 #define cr7_so 31
638 #define cr7_un 31
639
640 #define slbESID 36
641 #define slbKey 52
642 #define slbIndex 52
643 #define slbV 36
644 #define slbVm 0x08000000
645 #define slbCnt 64
646
647 /*
648 * Macros to access high and low word values of an address
649 */
650
651 #define HIGH_CADDR(x) ha16(x)
652 #define HIGH_ADDR(x) hi16(x)
653 #define LOW_ADDR(x) lo16(x)
654
655 #endif /* ASSEMBLER */
656
657 /* Tags are placed before Immediately Following Code (IFC) for the debugger
658 * to be able to deduce where to find various registers when backtracing
659 *
660 * We only define the values as we use them, see SVR4 ABI PowerPc Supplement
661 * for more details (defined in ELF spec).
662 */
663
664 #define TAG_NO_FRAME_USED 0x00000000
665
666 /* (should use genassym to get these offsets) */
667
668 #define FM_BACKPTR 0
669 #define FM_CR_SAVE 4
670 #define FM_LR_SAVE 8 /* MacOSX is NOT following the ABI at the moment.. */
671 #define FM_SIZE 64 /* minimum frame contents, backptr and LR save. Make sure it is quadaligned */
672 #define FM_ARG0 56
673 #define FM_ALIGN(l) ((l+15)&-16)
674 #define PK_SYSCALL_BEGIN 0x7000
675
676
677 /* redzone is the area under the stack pointer which must be preserved
678 * when taking a trap, interrupt etc.
679 */
680 #define FM_REDZONE 224 /* is ((32-14+1)*4) */
681
682 #define COPYIN_ARG0_OFFSET FM_ARG0
683
684 #ifdef MACH_KERNEL
685 #include <mach_kdb.h>
686 #else /* MACH_KERNEL */
687 #define MACH_KDB 0
688 #endif /* MACH_KERNEL */
689
690 #define BREAKPOINT_TRAP tw 4,r4,r4
691
692 /* There is another definition of ALIGN for .c sources */
693 #ifndef __LANGUAGE_ASSEMBLY
694 #define ALIGN 4
695 #endif /* __LANGUAGE_ASSEMBLY */
696
697 #ifndef FALIGN
698 #define FALIGN 4 /* Align functions on words for now. Cachelines is better */
699 #endif
700
701 #define LB(x,n) n
702 #if __STDC__
703 #define LCL(x) L ## x
704 #define EXT(x) _ ## x
705 #define LEXT(x) _ ## x ## :
706 #define LBc(x,n) n ## :
707 #define LBb(x,n) n ## b
708 #define LBf(x,n) n ## f
709 #else /* __STDC__ */
710 #define LCL(x) L/**/x
711 #define EXT(x) _/**/x
712 #define LEXT(x) _/**/x/**/:
713 #define LBc(x,n) n/**/:
714 #define LBb(x,n) n/**/b
715 #define LBf(x,n) n/**/f
716 #endif /* __STDC__ */
717
718 #define String .asciz
719 #define Value .word
720 #define Times(a,b) (a*b)
721 #define Divide(a,b) (a/b)
722
723 #define data16 .byte 0x66
724 #define addr16 .byte 0x67
725
726 #define MCOUNT
727
728 #define ELF_FUNC(x)
729 #define ELF_DATA(x)
730 #define ELF_SIZE(x,s)
731
732 #define Entry(x,tag) .text@.align FALIGN@ .globl EXT(x)@ LEXT(x)
733 #define ENTRY(x,tag) Entry(x,tag)@MCOUNT
734 #define ENTRY2(x,y,tag) .text@ .align FALIGN@ .globl EXT(x)@ .globl EXT(y)@ \
735 LEXT(x)@ LEXT(y) @\
736 MCOUNT
737 #if __STDC__
738 #define ASENTRY(x) .globl x @ .align FALIGN; x ## @ MCOUNT
739 #else
740 #define ASENTRY(x) .globl x @ .align FALIGN; x @ MCOUNT
741 #endif /* __STDC__ */
742 #define DATA(x) .globl EXT(x) @ .align ALIGN @ LEXT(x)
743
744
745 #define End(x) ELF_SIZE(x,.-x)
746 #define END(x) End(EXT(x))
747 #define ENDDATA(x) END(x)
748 #define Enddata(x) End(x)
749
750 /* These defines are here for .c files that wish to reference global symbols
751 * within __asm__ statements.
752 */
753 #define CC_SYM_PREFIX "_"
754
755 #endif /* _PPC_ASM_H_ */