ppccache.S 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Copyright (C) 1998 Dan Malek <dmalek@jlc.net>
  3. * Copyright (C) 1999 Magnus Damm <kieraypc01.p.y.kie.era.ericsson.se>
  4. * Copyright (C) 2000, 2001,2002 Wolfgang Denk <wd@denx.de>
  5. * Copyright Freescale Semiconductor, Inc. 2004, 2006.
  6. *
  7. * See file CREDITS for list of people who contributed to this
  8. * project.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License as
  12. * published by the Free Software Foundation; either version 2 of
  13. * the License, or (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU General Public License
  21. * along with this program; if not, write to the Free Software
  22. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  23. * MA 02111-1307 USA
  24. */
  25. #include <config.h>
  26. #include <ppc_asm.tmpl>
  27. /*------------------------------------------------------------------------------- */
  28. /* Function: ppcDcbf */
  29. /* Description: Data Cache block flush */
  30. /* Input: r3 = effective address */
  31. /* Output: none. */
  32. /*------------------------------------------------------------------------------- */
  33. .globl ppcDcbf
  34. ppcDcbf:
  35. dcbf r0,r3
  36. blr
  37. /*------------------------------------------------------------------------------- */
  38. /* Function: ppcDcbi */
  39. /* Description: Data Cache block Invalidate */
  40. /* Input: r3 = effective address */
  41. /* Output: none. */
  42. /*------------------------------------------------------------------------------- */
  43. .globl ppcDcbi
  44. ppcDcbi:
  45. dcbi r0,r3
  46. blr
  47. /*--------------------------------------------------------------------------
  48. * Function: ppcDcbz
  49. * Description: Data Cache block zero.
  50. * Input: r3 = effective address
  51. * Output: none.
  52. *-------------------------------------------------------------------------- */
  53. .globl ppcDcbz
  54. ppcDcbz:
  55. dcbz r0,r3
  56. blr
  57. /*------------------------------------------------------------------------------- */
  58. /* Function: ppcSync */
  59. /* Description: Processor Synchronize */
  60. /* Input: none. */
  61. /* Output: none. */
  62. /*------------------------------------------------------------------------------- */
  63. .globl ppcSync
  64. ppcSync:
  65. sync
  66. blr