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

Commit fda31d7d authored by Harvey Harrison's avatar Harvey Harrison Committed by Linus Torvalds
Browse files

x86: kgdb build fix



TF_MASK is no longer defined, use X86_EFLAGS_TF.

Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4786b4ee
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -375,12 +375,12 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
		newPC = linux_regs->ip;
		newPC = linux_regs->ip;


		/* clear the trace bit */
		/* clear the trace bit */
		linux_regs->flags &= ~TF_MASK;
		linux_regs->flags &= ~X86_EFLAGS_TF;
		atomic_set(&kgdb_cpu_doing_single_step, -1);
		atomic_set(&kgdb_cpu_doing_single_step, -1);


		/* set the trace bit if we're stepping */
		/* set the trace bit if we're stepping */
		if (remcomInBuffer[0] == 's') {
		if (remcomInBuffer[0] == 's') {
			linux_regs->flags |= TF_MASK;
			linux_regs->flags |= X86_EFLAGS_TF;
			kgdb_single_step = 1;
			kgdb_single_step = 1;
			if (kgdb_contthread) {
			if (kgdb_contthread) {
				atomic_set(&kgdb_cpu_doing_single_step,
				atomic_set(&kgdb_cpu_doing_single_step,