Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/ia64/include fix stack size calculation
details: https://anonhg.NetBSD.org/src/rev/4220dca04652
branches: trunk
changeset: 995617:4220dca04652
user: scole <scole%NetBSD.org@localhost>
date: Sat Dec 29 20:06:49 2018 +0000
description:
fix stack size calculation
diffstat:
sys/arch/ia64/include/proc.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 75fa5f0b9eba -r 4220dca04652 sys/arch/ia64/include/proc.h
--- a/sys/arch/ia64/include/proc.h Sat Dec 29 19:53:38 2018 +0000
+++ b/sys/arch/ia64/include/proc.h Sat Dec 29 20:06:49 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: proc.h,v 1.9 2018/12/02 16:49:24 scole Exp $ */
+/* $NetBSD: proc.h,v 1.10 2018/12/29 20:06:49 scole Exp $ */
#ifndef _IA64_PROC_H_
#define _IA64_PROC_H_
@@ -41,8 +41,8 @@
#define UAREA_PCB_OFFSET (USPACE - sizeof(struct pcb))
#define UAREA_TF_OFFSET (UAREA_PCB_OFFSET - sizeof(struct trapframe))
-#define UAREA_SP_OFFSET (UAREA_TF_OFFSET -16)
+#define UAREA_SP_OFFSET (UAREA_TF_OFFSET - 16)
#define UAREA_BSPSTORE_OFFSET (0)
-#define UAREA_STACK_SIZE (USPACE - UAREA_SP_OFFSET)
+#define UAREA_STACK_SIZE (USPACE - 16 - sizeof(struct trapframe) - sizeof(struct pcb))
#endif /* _IA64_PROC_H_ */
Home |
Main Index |
Thread Index |
Old Index