Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 856f70a3 authored by Dave Kleikamp's avatar Dave Kleikamp Committed by Benjamin Herrenschmidt
Browse files

powerpc/booke: Fix a couple typos in the advanced ptrace code



powerpc/booke: Fix a couple typos in the advanced ptrace code

Found and fixed a couple typos in the advanced ptrace patches.
(These patches are currently in benh's next tree.)

Signed-off-by: default avatarDave Kleikamp <shaggy@linux.vnet.ibm.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev list <Linuxppc-dev@ozlabs.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 5b72d74c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -421,8 +421,8 @@
/* Bit definitions related to the DBCR2. */
/* Bit definitions related to the DBCR2. */
#define DBCR2_DAC1US	0xC0000000	/* Data Addr Cmp 1 Sup/User   */
#define DBCR2_DAC1US	0xC0000000	/* Data Addr Cmp 1 Sup/User   */
#define DBCR2_DAC1ER	0x30000000	/* Data Addr Cmp 1 Eff/Real */
#define DBCR2_DAC1ER	0x30000000	/* Data Addr Cmp 1 Eff/Real */
#define DBCR2_DAC2US	0x00000000	/* Data Addr Cmp 2 Sup/User   */
#define DBCR2_DAC2US	0x0C000000	/* Data Addr Cmp 2 Sup/User   */
#define DBCR2_DAC2ER	0x00000000	/* Data Addr Cmp 2 Eff/Real */
#define DBCR2_DAC2ER	0x03000000	/* Data Addr Cmp 2 Eff/Real */
#define DBCR2_DAC12M	0x00800000	/* DAC 1-2 range enable */
#define DBCR2_DAC12M	0x00800000	/* DAC 1-2 range enable */
#define DBCR2_DAC12MM	0x00400000	/* DAC 1-2 Mask mode*/
#define DBCR2_DAC12MM	0x00400000	/* DAC 1-2 Mask mode*/
#define DBCR2_DAC12MX	0x00C00000	/* DAC 1-2 range eXclusive */
#define DBCR2_DAC12MX	0x00C00000	/* DAC 1-2 range eXclusive */
+1 −1
Original line number Original line Diff line number Diff line
@@ -1070,7 +1070,7 @@ static int del_dac(struct task_struct *child, int slot)
		child->thread.dvc1 = 0;
		child->thread.dvc1 = 0;
#endif
#endif
	} else if (slot == 2) {
	} else if (slot == 2) {
		if (child->thread.dac1 == 0)
		if (child->thread.dac2 == 0)
			return -ENOENT;
			return -ENOENT;


#ifdef CONFIG_PPC_ADV_DEBUG_DAC_RANGE
#ifdef CONFIG_PPC_ADV_DEBUG_DAC_RANGE