24 #ifndef _RTEMS_POWERPC_REGISTERS_H 25 #define _RTEMS_POWERPC_REGISTERS_H 28 #define MSR_CM (1<<31) 29 #define MSR_GS (1<<28) 30 #define MSR_UCLE (1<<26) 31 #define MSR_VE (1<<25) 32 #define MSR_SPE (1<<25) 33 #define MSR_AP (1<<25) 34 #define MSR_APE (1<<19) 35 #define MSR_POW (1<<18) 36 #define MSR_WE (1<<18) 37 #define MSR_TGPR (1<<17) 38 #define MSR_CE (1<<17) 39 #define MSR_ILE (1<<16) 40 #define MSR_EE (1<<15) 41 #define MSR_PR (1<<14) 42 #define MSR_FP (1<<13) 43 #define MSR_ME (1<<12) 44 #define MSR_FE0 (1<<11) 45 #define MSR_SE (1<<10) 46 #define MSR_UBLE (1<<10) 47 #define MSR_DWE (1<<10) 50 #define MSR_FE1 (1<<8) 51 #define MSR_E300_CE (1<<7) 57 #define MSR_PMM (1<<2) 71 #define HID0_EMCP (1<<31) 72 #define HID0_EBA (1<<29) 73 #define HID0_EBD (1<<28) 74 #define HID0_SBCLK (1<<27) 75 #define HID0_TBEN (1<<26) 80 #define HID0_EICE (1<<26) 81 #define HID0_ECLK (1<<25) 82 #define HID0_PAR (1<<24) 83 #define HID0_DOZE (1<<23) 85 #define HID0_7455_HIGH_BAT_EN (1<<23) 87 #define HID0_NAP (1<<22) 88 #define HID0_SLEEP (1<<21) 89 #define HID0_DPM (1<<20) 90 #define HID0_ICE (1<<15) 91 #define HID0_DCE (1<<14) 92 #define HID0_ILOCK (1<<13) 93 #define HID0_DLOCK (1<<12) 94 #define HID0_ICFI (1<<11) 95 #define HID0_DCI (1<<10) 97 #define HID0_7455_XBSEN (1<<8) 98 #define HID0_SIED (1<<7) 99 #define HID0_BTIC (1<<5) 101 #define HID0_LRSTK (1<<4) 102 #define HID0_FOLD (1<<3) 104 #define HID0_BHTE (1<<2) 105 #define HID0_BTCD (1<<1) 108 #define FPSCR_FX (1<<31) 109 #define FPSCR_FEX (1<<30) 115 #define _MACH_apus 16 116 #define _MACH_fads 32 119 #define _PREP_Motorola 0x01 120 #define _PREP_Firm 0x02 121 #define _PREP_IBM 0x00 122 #define _PREP_Bull 0x03 125 #define _CHRP_Motorola 0x04 126 #define _CHRP_IBM 0x05 191 #define DEAR_BOOKE 61 217 #define L2CR_L2E (1<<31) 218 #define L2CR_L2I (1<<21) 226 #define L2CR_L2IO_745x 0x100000 227 #define L2CR_L2DO_745x 0x10000 228 #define L2CR_LOCK_745x (L2CR_L2IO_745x|L2CR_L2DO_745x) 229 #define L2CR_L3OH0 0x00080000 232 #define L3CR_L3IO_745x 0x400000 233 #define L3CR_L3DO_745x 0x40 235 #define L3CR_LOCK_745x (L3CR_L3IO_745x|L3CR_L3DO_745x) 237 #define L3CR_RESERVED 0x0438003a 238 #define L3CR_L3E 0x80000000 239 #define L3CR_L3PE 0x40000000 240 #define L3CR_L3APE 0x20000000 241 #define L3CR_L3SIZ 0x10000000 242 #define L3SIZ_1M 0x00000000 243 #define L3SIZ_2M 0x10000000 244 #define L3CR_L3CLKEN 0x08000000 245 #define L3CR_L3CLK 0x03800000 246 #define L3CLK_60 0x00000000 247 #define L3CLK_20 0x01000000 248 #define L3CLK_25 0x01800000 249 #define L3CLK_30 0x02000000 250 #define L3CLK_35 0x02800000 251 #define L3CLK_40 0x03000000 252 #define L3CLK_50 0x03800000 253 #define L3CR_L3IO 0x00400000 254 #define L3CR_L3SPO 0x00040000 255 #define L3CR_L3CKSP 0x00030000 256 #define L3CKSP_2 0x00000000 257 #define L3CKSP_3 0x00010000 258 #define L3CKSP_4 0x00020000 259 #define L3CKSP_5 0x00030000 260 #define L3CR_L3PSP 0x0000e000 261 #define L3PSP_0 0x00000000 262 #define L3PSP_1 0x00002000 263 #define L3PSP_2 0x00004000 264 #define L3PSP_3 0x00006000 265 #define L3PSP_4 0x00008000 266 #define L3PSP_5 0x0000a000 267 #define L3CR_L3REP 0x00001000 268 #define L3CR_L3HWF 0x00000800 269 #define L3CR_L3I 0x00000400 271 #define L3CR_L3RT 0x00000300 272 #define L3RT_MSUG2_DDR 0x00000000 273 #define L3RT_PIPELINE_LATE 0x00000100 274 #define L3RT_PB2_SRAM 0x00000300 275 #define L3CR_L3NIRCA 0x00000080 276 #define L3CR_L3DO 0x00000040 277 #define L3CR_PMEN 0x00000004 278 #define L3CR_PMSIZ 0x00000004 283 #define THRM1_TIN (1<<(31-0)) 284 #define THRM1_TIV (1<<(31-1)) 285 #define THRM1_THRES (0x7f<<(31-8)) 286 #define THRM1_TID (1<<(31-29)) 287 #define THRM1_TIE (1<<(31-30)) 288 #define THRM1_V (1<<(31-31)) 289 #define THRM3_SITV (0x1fff << (31-30)) 290 #define THRM3_E (1<<(31-31)) 310 #define BOOKE_DECAR 54 312 #define PPC405_MCSR 0x23C 313 #define PPC405_ESR 0x3D4 314 #define PPC405_DEAR 0x3D5 315 #define BOOKE_DEAR 61 317 #define PPC405_TSR 0x3D8 318 #define BOOKE_TSR 336 319 #define BOOKE_TSR_ENW (1<<31) 320 #define BOOKE_TSR_WIS (1<<30) 321 #define BOOKE_TSR_DIS (1<<27) 322 #define BOOKE_TSR_FIS (1<<26) 324 #define PPC405_TCR 0x3DA 325 #define BOOKE_TCR 340 326 #define BOOKE_TCR_WP(x) (((x)&3)<<30) 327 #define BOOKE_TCR_WP_MASK (3<<30) 328 #define BOOKE_TCR_WRC(x) (((x)&3)<<28) 329 #define BOOKE_TCR_WRC_MASK (3<<28) 330 #define BOOKE_TCR_WIE (1<<27) 331 #define BOOKE_TCR_DIE (1<<26) 332 #define BOOKE_TCR_FP(x) (((x)&3)<<24) 333 #define BOOKE_TCR_FIE (1<<23) 334 #define BOOKE_TCR_ARE (1<<22) 335 #define BOOKE_TCR_WPEXT(x) (((x)&0xf)<<17) 336 #define BOOKE_TCR_WPEXT_MASK (0xf<<17) 337 #define BOOKE_TCR_FPEXT(x) (((x)&0xf)<<13) 338 #define BOOKE_TCR_FPEXT_MASK (0xf<<13) 341 #define BOOKE_CSRR0 58 342 #define BOOKE_CSRR1 59 344 #define BOOKE_IVPR 63 345 #define BOOKE_SPRG4_W 260 346 #define BOOKE_SPRG5_W 261 347 #define BOOKE_SPRG6_W 262 348 #define BOOKE_SPRG7_W 263 349 #define BOOKE_PIR 286 350 #define BOOKE_DBSR 304 352 #define BOOKE_EPCR 307 353 #define BOOKE_EPCR_EXTGS (1 << 31) 354 #define BOOKE_EPCR_DTLBGS (1 << 30) 355 #define BOOKE_EPCR_ITLBGS (1 << 29) 356 #define BOOKE_EPCR_DSIGS (1 << 28) 357 #define BOOKE_EPCR_ISIGS (1 << 27) 358 #define BOOKE_EPCR_DUVD (1 << 26) 359 #define BOOKE_EPCR_ICM (1 << 25) 360 #define BOOKE_EPCR_GICM (1 << 24) 361 #define BOOKE_EPCR_DGTMI (1 << 23) 362 #define BOOKE_EPCR_DMIUH (1 << 22) 363 #define BOOKE_EPCR_PMGS (1 << 21) 365 #define BOOKE_DBCR0 308 366 #define BOOKE_DBCR1 309 367 #define BOOKE_DBCR2 310 368 #define BOOKE_IAC1 312 369 #define BOOKE_IAC2 313 370 #define BOOKE_IAC3 314 371 #define BOOKE_IAC4 315 372 #define BOOKE_DAC1 316 373 #define BOOKE_DAC2 317 374 #define BOOKE_DVC1 318 375 #define BOOKE_DVC2 319 376 #define BOOKE_GSRR0 378 377 #define BOOKE_GSRR1 379 378 #define BOOKE_GEPR 380 379 #define BOOKE_GDEAR 381 380 #define BOOKE_GPIR 382 381 #define BOOKE_GESR 383 382 #define BOOKE_IVOR0 400 383 #define BOOKE_IVOR1 401 384 #define BOOKE_IVOR2 402 385 #define BOOKE_IVOR3 403 386 #define BOOKE_IVOR4 404 387 #define BOOKE_IVOR5 405 388 #define BOOKE_IVOR6 406 389 #define BOOKE_IVOR7 407 390 #define BOOKE_IVOR8 408 391 #define BOOKE_IVOR9 409 392 #define BOOKE_IVOR10 410 393 #define BOOKE_IVOR11 411 394 #define BOOKE_IVOR12 412 395 #define BOOKE_IVOR13 413 396 #define BOOKE_IVOR14 414 397 #define BOOKE_IVOR15 415 398 #define BOOKE_IVOR42 436 399 #define BOOKE_IVOR32 528 400 #define BOOKE_IVOR33 529 401 #define BOOKE_IVOR34 530 402 #define BOOKE_IVOR35 531 403 #define BOOKE_IVOR36 532 404 #define BOOKE_IVOR37 533 405 #define BOOKE_IVOR38 432 406 #define BOOKE_IVOR39 433 407 #define BOOKE_IVOR40 434 408 #define BOOKE_IVOR41 435 409 #define BOOKE_GIVOR2 440 410 #define BOOKE_GIVOR3 441 411 #define BOOKE_GIVOR4 442 412 #define BOOKE_GIVOR8 443 413 #define BOOKE_GIVOR13 444 414 #define BOOKE_GIVOR14 445 415 #define BOOKE_GIVPR 446 416 #define BOOKE_MCSRR0 570 417 #define BOOKE_MCSRR1 571 418 #define BOOKE_MCSR 572 419 #define BOOKE_DSRR0 574 420 #define BOOKE_DSRR1 575 422 #define PPC440_INV0 880 423 #define PPC440_INV1 881 424 #define PPC440_INV2 882 425 #define PPC440_INV3 883 426 #define PPC440_ITV0 884 427 #define PPC440_ITV1 885 428 #define PPC440_ITV2 886 429 #define PPC440_ITV3 887 430 #define PPC440_CCR1 888 431 #define PPC440_DNV0 912 432 #define PPC440_DNV1 913 433 #define PPC440_DNV2 914 434 #define PPC440_DNV3 915 435 #define PPC440_DTV0 916 436 #define PPC440_DTV1 917 437 #define PPC440_DTV2 918 438 #define PPC440_DTV3 919 439 #define PPC440_DVLIM 920 440 #define PPC440_IVLIM 921 441 #define PPC440_RSTCFG 923 442 #define PPC440_DCDBTRL 924 443 #define PPC440_DCDBTRH 925 444 #define PPC440_ICDBTRL 926 445 #define PPC440_ICDBTRH 927 446 #define PPC440_MMUCR 946 447 #define PPC440_CCR0 947 448 #define PPC440_ICDBDR 979 449 #define PPC440_DBDR 1011 451 #define PPC440_TLB0_EPN(n) ( (((1<<22)-1)&(n)) << (31-21)) 452 #define PPC440_TLB0_EPN_GET(n) ( ((n) >> (31-21)) & ((1<<22)-1)) 453 #define PPC440_TLB0_V ( 1 << (31-22)) 454 #define PPC440_TLB0_TS ( 1 << (31-23)) 455 #define PPC440_TLB0_TSIZE(n) ( (0xf & (n)) << (31-27)) 456 #define PPC440_TLB0_TSIZE_GET(n) ( ((n) >> (31-27)) & 0xf) 457 #define PPC440_TLB0_TPAR(n) ( (0xf & (n)) << (31-31)) 458 #define PPC440_TLB0_TPAR_GET(n) ( ((n) >> (31-31)) & 0xf) 460 #define PPC440_PID_TID(n) ( (0xff & (n)) << (31-31)) 461 #define PPC440_PID_TID_GET(n) ( ((n) >> (31-31)) & 0xff) 463 #define PPC440_TLB1_RPN(n) ( (((1<<22)-1)&(n)) << (31-21)) 464 #define PPC440_TLB1_RPN_GET(n) ( ((n) >> (31-21)) & ((1<<22)-1)) 465 #define PPC440_TLB1_PAR1(n) ( (0x3 & (n)) << (31-23)) 466 #define PPC440_TLB1_PAR1_GET(n) ( ((n) >> (31-23)) & 0x3) 467 #define PPC440_TLB1_ERPN(n) ( (0xf & (n)) << (31-31)) 468 #define PPC440_TLB1_ERPN_GET(n) ( ((n) >> (31-31)) & 0xf) 470 #define PPC440_TLB2_PAR2(n) ( (0x3 & (n)) << (31- 1)) 471 #define PPC440_TLB2_PAR2_GET(n) ( ((n) >> (31- 1)) & 0x3) 472 #define PPC440_TLB2_U0 ( 1 << (31-16)) 473 #define PPC440_TLB2_U1 ( 1 << (31-17)) 474 #define PPC440_TLB2_U2 ( 1 << (31-18)) 475 #define PPC440_TLB2_U3 ( 1 << (31-19)) 476 #define PPC440_TLB2_W ( 1 << (31-20)) 477 #define PPC440_TLB2_I ( 1 << (31-21)) 478 #define PPC440_TLB2_M ( 1 << (31-22)) 479 #define PPC440_TLB2_G ( 1 << (31-23)) 480 #define PPC440_TLB2_E ( 1 << (31-24)) 481 #define PPC440_TLB2_UX ( 1 << (31-26)) 482 #define PPC440_TLB2_UW ( 1 << (31-27)) 483 #define PPC440_TLB2_UR ( 1 << (31-28)) 484 #define PPC440_TLB2_SX ( 1 << (31-29)) 485 #define PPC440_TLB2_SW ( 1 << (31-30)) 486 #define PPC440_TLB2_SR ( 1 << (31-31)) 488 #define PPC440_TLB2_ATTR(x) ( ((x) & 0x1ff) << 7 ) 489 #define PPC440_TLB2_ATTR_GET(x) ( ((x) >> 7) & 0x1ff ) 491 #define PPC440_TLB2_PERM(n) ( (n) & 0x3f ) 492 #define PPC440_TLB2_PERM_GET(n) ( (n) & 0x3f ) 496 #define FSL_EIS_BUCSR 1013 497 #define FSL_EIS_BUCSR_STAC_EN (1 << (63 - 39)) 498 #define FSL_EIS_BUCSR_LS_EN (1 << (63 - 41)) 499 #define FSL_EIS_BUCSR_BBFI (1 << (63 - 54)) 500 #define FSL_EIS_BUCSR_BALLOC_ALL (0x0 << (63 - 59)) 501 #define FSL_EIS_BUCSR_BALLOC_FORWARD (0x1 << (63 - 59)) 502 #define FSL_EIS_BUCSR_BALLOC_BACKWARD (0x2 << (63 - 59)) 503 #define FSL_EIS_BUCSR_BALLOC_NONE (0x3 << (63 - 59)) 504 #define FSL_EIS_BUCSR_BPRED_TAKEN (0x0 << (63 - 61)) 505 #define FSL_EIS_BUCSR_BPRED_TAKEN_ONLY_FORWARD (0x1 << (63 - 62)) 506 #define FSL_EIS_BUCSR_BPRED_TAKEN_ONLY_BACKWARD (0x2 << (63 - 62)) 507 #define FSL_EIS_BUCSR_BPRED_NOT_TAKEN (0x3 << (63 - 62)) 508 #define FSL_EIS_BUCSR_BPEN (1 << (63 - 63)) 512 #define FSL_EIS_SVR 1023 516 #define FSL_EIS_TENSR 437 517 #define FSL_EIS_TENS 438 518 #define FSL_EIS_TENC 439 519 #define FSL_EIS_PPR32 898 523 #define FSL_EIS_MAS0 624 524 #define FSL_EIS_MAS0_TLBSEL (1 << (63 - 35)) 525 #define FSL_EIS_MAS0_ESEL(n) ((0xf & (n)) << (63 - 47)) 526 #define FSL_EIS_MAS0_ESEL_GET(m) (((m) >> (63 - 47)) & 0xf) 527 #define FSL_EIS_MAS0_NV (1 << (63 - 63)) 529 #define FSL_EIS_MAS1 625 530 #define FSL_EIS_MAS1_V (1 << (63 - 32)) 531 #define FSL_EIS_MAS1_IPROT (1 << (63 - 33)) 532 #define FSL_EIS_MAS1_TID(n) ((0xff & (n)) << (63 - 47)) 533 #define FSL_EIS_MAS1_TID_GET(n) (((n) >> (63 - 47)) & 0xfff) 534 #define FSL_EIS_MAS1_TS (1 << (63 - 51)) 535 #define FSL_EIS_MAS1_TSIZE(n) ((0xf & (n)) << (63 - 55)) 536 #define FSL_EIS_MAS1_TSIZE_GET(n) (((n)>>(63 - 55)) & 0xf) 538 #define FSL_EIS_MAS2 626 539 #define FSL_EIS_MAS2_EPN(n) ((((1 << 21) - 1)&(n)) << (63-51)) 540 #define FSL_EIS_MAS2_EPN_GET(n) (((n) >> (63 - 51)) & 0xfffff) 541 #define FSL_EIS_MAS2_EA(n) FSL_EIS_MAS2_EPN((n) >> 12) 542 #define FSL_EIS_MAS2_EA_GET(n) (FSL_EIS_MAS2_EPN_GET(n) << 12) 543 #define FSL_EIS_MAS2_X0 (1 << (63 - 57)) 544 #define FSL_EIS_MAS2_X1 (1 << (63 - 58)) 545 #define FSL_EIS_MAS2_W (1 << (63 - 59)) 546 #define FSL_EIS_MAS2_I (1 << (63 - 60)) 547 #define FSL_EIS_MAS2_M (1 << (63 - 61)) 548 #define FSL_EIS_MAS2_G (1 << (63 - 62)) 549 #define FSL_EIS_MAS2_E (1 << (63 - 63)) 550 #define FSL_EIS_MAS2_ATTR(x) ((x) & 0x7f) 551 #define FSL_EIS_MAS2_ATTR_GET(x) ((x) & 0x7f) 553 #define FSL_EIS_MAS3 627 554 #define FSL_EIS_MAS3_RPN(n) ((((1 << 21) - 1) & (n)) << (63-51)) 555 #define FSL_EIS_MAS3_RPN_GET(n) (((n)>>(63 - 51)) & 0xfffff) 556 #define FSL_EIS_MAS3_RA(n) FSL_EIS_MAS3_RPN((n) >> 12) 557 #define FSL_EIS_MAS3_RA_GET(n) (FSL_EIS_MAS3_RPN_GET(n) << 12) 558 #define FSL_EIS_MAS3_U0 (1 << (63 - 54)) 559 #define FSL_EIS_MAS3_U1 (1 << (63 - 55)) 560 #define FSL_EIS_MAS3_U2 (1 << (63 - 56)) 561 #define FSL_EIS_MAS3_U3 (1 << (63 - 57)) 562 #define FSL_EIS_MAS3_UX (1 << (63 - 58)) 563 #define FSL_EIS_MAS3_SX (1 << (63 - 59)) 564 #define FSL_EIS_MAS3_UW (1 << (63 - 60)) 565 #define FSL_EIS_MAS3_SW (1 << (63 - 61)) 566 #define FSL_EIS_MAS3_UR (1 << (63 - 62)) 567 #define FSL_EIS_MAS3_SR (1 << (63 - 63)) 568 #define FSL_EIS_MAS3_PERM(n) ((n) & 0x3ff) 569 #define FSL_EIS_MAS3_PERM_GET(n) ((n) & 0x3ff) 571 #define FSL_EIS_MAS4 628 572 #define FSL_EIS_MAS4_TLBSELD (1 << (63 - 35)) 573 #define FSL_EIS_MAS4_TIDSELD(n) ((0x3 & (n)) << (63 - 47)) 574 #define FSL_EIS_MAS4_TSIZED(n) ((0xf & (n)) << (63 - 55)) 575 #define FSL_EIS_MAS4_X0D FSL_EIS_MAS2_X0 576 #define FSL_EIS_MAS4_X1D FSL_EIS_MAS2_X1 577 #define FSL_EIS_MAS4_WD FSL_EIS_MAS2_W 578 #define FSL_EIS_MAS4_ID FSL_EIS_MAS2_I 579 #define FSL_EIS_MAS4_MD FSL_EIS_MAS2_M 580 #define FSL_EIS_MAS4_GD FSL_EIS_MAS2_G 581 #define FSL_EIS_MAS4_ED FSL_EIS_MAS2_E 583 #define FSL_EIS_MAS5 629 585 #define FSL_EIS_MAS6 630 586 #define FSL_EIS_MAS6_SPID0(n) ((0xff & (n)) << (63 - 55)) 587 #define FSL_EIS_MAS6_SAS (1 << (63 - 63)) 589 #define FSL_EIS_MAS7 944 591 #define FSL_EIS_MAS8 341 593 #define FSL_EIS_MMUCFG 1015 594 #define FSL_EIS_MMUCSR0 1012 595 #define FSL_EIS_PID0 48 596 #define FSL_EIS_PID1 633 597 #define FSL_EIS_PID2 634 598 #define FSL_EIS_TLB0CFG 688 599 #define FSL_EIS_TLB1CFG 689 603 #define FSL_EIS_L1CFG0 515 604 #define FSL_EIS_L1CFG1 516 605 #define FSL_EIS_L1CSR0 1010 606 #define FSL_EIS_L1CSR0_CFI (1 << (63 - 62)) 607 #define FSL_EIS_L1CSR1 1011 608 #define FSL_EIS_L1CSR1_ICFI (1 << (63 - 62)) 612 #define FSL_EIS_L2CFG0 519 613 #define FSL_EIS_L2CSR0 1017 614 #define FSL_EIS_L2CSR0_L2FI (1 << (63 - 42)) 615 #define FSL_EIS_L2CSR0_L2FL (1 << (63 - 52)) 616 #define FSL_EIS_L2CSR1 1018 620 #define FSL_EIS_ATBL 526 621 #define FSL_EIS_ATBU 527 625 #define FSL_EIS_MCAR 573 626 #define FSL_EIS_DSRR0 574 627 #define FSL_EIS_DSRR1 575 628 #define FSL_EIS_EPR 702 632 #define FSL_EIS_SPEFSCR 512 636 #define FSL_EIS_SPRG8 604 637 #define FSL_EIS_SPRG9 605 641 #define FSL_EIS_DBCR3 561 642 #define FSL_EIS_DBCR4 563 643 #define FSL_EIS_DBCR5 564 644 #define FSL_EIS_DBCR6 603 645 #define FSL_EIS_DBCNT 562 653 #define PPC_INTERRUPT_DISABLE_MASK_DEFAULT MSR_EE 663 #define _CPU_MSR_GET( _msr_value ) \ 666 __asm__ volatile ("mfmsr %0" : "=&r" ((_msr_value)) : "0" ((_msr_value))); \ 669 #define _CPU_MSR_SET( _msr_value ) \ 670 { __asm__ volatile ("mtmsr %0" : "=&r" ((_msr_value)) : "0" ((_msr_value))); } 677 #if !defined(PPC_DISABLE_INLINE_ISR_DISABLE_ENABLE) 680 static inline uint32_t ppc_interrupt_get_disable_mask(
void )
682 return (uint32_t) (uintptr_t) _PPC_INTERRUPT_DISABLE_MASK;
685 static inline uint32_t ppc_interrupt_disable(
void )
689 #if defined(__PPC_CPU_E6500__) 700 "lis %1, _PPC_INTERRUPT_DISABLE_MASK@h;" 701 "ori %1, %1, _PPC_INTERRUPT_DISABLE_MASK@l;" 704 :
"=r" (level),
"=r" (mask)
711 static inline void ppc_interrupt_enable( uint32_t level )
713 #if defined(__PPC_CPU_E6500__) 728 static inline void ppc_interrupt_flash( uint32_t level )
730 uint32_t current_level;
736 :
"=&r" (current_level)
741 uint32_t ppc_interrupt_get_disable_mask(
void );
742 uint32_t ppc_interrupt_disable(
void );
743 void ppc_interrupt_enable( uint32_t level );
744 void ppc_interrupt_flash( uint32_t level );
747 #define _CPU_ISR_Disable( _isr_cookie ) \ 749 _isr_cookie = ppc_interrupt_disable(); \ 758 #define _CPU_ISR_Enable( _isr_cookie ) \ 759 ppc_interrupt_enable(_isr_cookie) 772 #define _CPU_ISR_Flash( _isr_cookie ) \ 773 ppc_interrupt_flash(_isr_cookie) register struct Per_CPU_Control *_SPARC_Per_CPU_current __asm__("g6")
The pointer to the current per-CPU control is available via register g6.
char _PPC_INTERRUPT_DISABLE_MASK[]
A global symbol used to disable interrupts in the MSR.