2 * "Indirect" DCR access
4 * Copyright (c) 2004 Eugene Surovegin <ebs@ebshome.net>
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
12 #include <asm/ppc_asm.h>
13 #include <asm/processor.h>
15 #include <asm/export.h>
17 #define DCR_ACCESS_PROLOG(table) \
19 rlwinm r3,r3,4,18,27; \
27 EMIT_BUG_ENTRY 1b,__FILE__,__LINE__,0; \
31 DCR_ACCESS_PROLOG(__mfdcr_table)
32 EXPORT_SYMBOL(__mfdcr)
35 DCR_ACCESS_PROLOG(__mtdcr_table)
36 EXPORT_SYMBOL(__mtdcr)