Skip to contentSkip to conversation

new ia64 patch (relative to 2.5.69)

Linux-ia64 David Mosberger 2 participants 2 messages May 22, 2003

lore
Share & tools
lore
#0 lore raw

An updated 2.5.69 patch is now available at:

ftp://ftp.kernel.org/pub/linux/kernel/ports/ia64/v2.5/

in linux-2.5.69-ia64-030521.diff.gz.

Warning: I pushed a patch of the same name earlier today, just to find that core-dumps were broken. I fixed that now and updated the patch. If you don't have the latest version, the attached patch will be missing.

This kernel should be fairly stable (at least it has been for me).

I'm planning to apply a patch next a patch by Rohit Seth and some other folks at Intel. This patch restructures struct pt_regs and optimizes the syscall path not to save/restore scratch registers. Most definitely non-trivial stuff and will need a lot of testing. But if things break unexpectedly, we can easily fall back to the current snapshot.

	--david
arch/ia64/kernel/unwind.c +4 -1
diff -Nru a/arch/ia64/kernel/unwind.c b/arch/ia64/kernel/unwind.c
@@ -239,7 +239,10 @@
 	if (!info->pt) {
 		/* This should not happen with valid unwind info.  */
 		UNW_DPRINT(0, "unwind.%s: bad unwind info: resetting info->pt\n", __FUNCTION__);
-		info->pt = info->sp - 16;
+		if (info->flags & UNW_FLAG_INTERRUPT_FRAME)
+			info->pt = (unsigned long) ((struct pt_regs *) info->psp - 1);
+		else
+			info->pt = info->sp - 16;
 	}
 	UNW_DPRINT(3, "unwind.%s: sp 0x%lx pt 0x%lx\n", __FUNCTION__, info->sp, info->pt);
 	return (struct pt_regs *) info->pt;
#1 lore raw
Quoted 5 lines · David

An updated 2.5.69 patch is now available at:

ftp://ftp.kernel.org/pub/linux/kernel/ports/ia64/v2.5/

in linux-2.5.69-ia64-030521.diff.gz.

This patch includes my kernel relocation change (yipee!) ... don't be surprised when you see kernel addresses like 0xA0000001000xxxxx instead of the 0xE0000000000xxxxx that you've been used to in ia64.

-Tony