Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/amd64 Start at the top of the double fault st...
details: https://anonhg.NetBSD.org/src/rev/0609fb5df1ba
branches: trunk
changeset: 567490:0609fb5df1ba
user: fvdl <fvdl%NetBSD.org@localhost>
date: Wed Jun 16 10:13:46 2004 +0000
description:
Start at the top of the double fault stack, not the bottom.
diffstat:
sys/arch/amd64/amd64/machdep.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r e6726b826a4f -r 0609fb5df1ba sys/arch/amd64/amd64/machdep.c
--- a/sys/arch/amd64/amd64/machdep.c Wed Jun 16 10:01:31 2004 +0000
+++ b/sys/arch/amd64/amd64/machdep.c Wed Jun 16 10:13:46 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.28 2004/06/16 10:01:31 fvdl Exp $ */
+/* $NetBSD: machdep.c,v 1.29 2004/06/16 10:13:46 fvdl Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.28 2004/06/16 10:01:31 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.29 2004/06/16 10:13:46 fvdl Exp $");
#include "opt_user_ldt.h"
#include "opt_ddb.h"
@@ -320,7 +320,8 @@
pcb->pcb_cr0 = rcr0();
pcb->pcb_tss.tss_rsp0 = (u_int64_t)lwp0.l_addr + USPACE - 16;
pcb->pcb_tss.tss_ist[0] = (u_int64_t)lwp0.l_addr + PAGE_SIZE;
- pcb->pcb_tss.tss_ist[1] = (uint64_t) x86_64_doubleflt_stack;
+ pcb->pcb_tss.tss_ist[1] = (uint64_t) x86_64_doubleflt_stack
+ + PAGE_SIZE - 16;
lwp0.l_md.md_regs = (struct trapframe *)pcb->pcb_tss.tss_rsp0 - 1;
lwp0.l_md.md_tss_sel = tss_alloc(pcb);
Home |
Main Index |
Thread Index |
Old Index