Rafal Jaworowski | f57d7d3 | 2008-01-15 12:52:31 +0100 | [diff] [blame] | 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> |
Kumar Gala | 4c2e3da | 2009-07-28 21:49:52 -0500 | [diff] [blame] | 5 | * Copyright Freescale Semiconductor, Inc. 2004, 2006. |
Rafal Jaworowski | f57d7d3 | 2008-01-15 12:52:31 +0100 | [diff] [blame] | 6 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 7 | * SPDX-License-Identifier: GPL-2.0+ |
Rafal Jaworowski | f57d7d3 | 2008-01-15 12:52:31 +0100 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #include <config.h> |
| 11 | #include <ppc_asm.tmpl> |
| 12 | |
| 13 | /*------------------------------------------------------------------------------- */ |
| 14 | /* Function: ppcDcbf */ |
| 15 | /* Description: Data Cache block flush */ |
| 16 | /* Input: r3 = effective address */ |
| 17 | /* Output: none. */ |
| 18 | /*------------------------------------------------------------------------------- */ |
| 19 | .globl ppcDcbf |
| 20 | ppcDcbf: |
| 21 | dcbf r0,r3 |
| 22 | blr |
| 23 | |
| 24 | /*------------------------------------------------------------------------------- */ |
| 25 | /* Function: ppcDcbi */ |
| 26 | /* Description: Data Cache block Invalidate */ |
| 27 | /* Input: r3 = effective address */ |
| 28 | /* Output: none. */ |
| 29 | /*------------------------------------------------------------------------------- */ |
| 30 | .globl ppcDcbi |
| 31 | ppcDcbi: |
| 32 | dcbi r0,r3 |
| 33 | blr |
| 34 | |
| 35 | /*-------------------------------------------------------------------------- |
| 36 | * Function: ppcDcbz |
| 37 | * Description: Data Cache block zero. |
| 38 | * Input: r3 = effective address |
| 39 | * Output: none. |
| 40 | *-------------------------------------------------------------------------- */ |
| 41 | |
| 42 | .globl ppcDcbz |
| 43 | ppcDcbz: |
| 44 | dcbz r0,r3 |
| 45 | blr |
| 46 | |
| 47 | /*------------------------------------------------------------------------------- */ |
| 48 | /* Function: ppcSync */ |
| 49 | /* Description: Processor Synchronize */ |
| 50 | /* Input: none. */ |
| 51 | /* Output: none. */ |
| 52 | /*------------------------------------------------------------------------------- */ |
| 53 | .globl ppcSync |
| 54 | ppcSync: |
| 55 | sync |
| 56 | blr |