diff options
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm/arm/cpu.c | 11 | ||||
-rw-r--r-- | sys/arch/arm/arm/vm_machdep.c | 19 |
2 files changed, 2 insertions, 28 deletions
diff --git a/sys/arch/arm/arm/cpu.c b/sys/arch/arm/arm/cpu.c index 6d02ccdcc9f..d8b3ad106ee 100644 --- a/sys/arch/arm/arm/cpu.c +++ b/sys/arch/arm/arm/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.39 2017/07/25 07:53:27 kettenis Exp $ */ +/* $OpenBSD: cpu.c,v 1.40 2017/08/17 20:47:49 tom Exp $ */ /* $NetBSD: cpu.c,v 1.56 2004/04/14 04:01:49 bsh Exp $ */ @@ -305,15 +305,6 @@ cpu_alloc_idle_pcb(struct cpu_info *ci) pcb->pcb_un.un_32.pcb32_und_sp = uaddr + USPACE_UNDEF_STACK_TOP; pcb->pcb_un.un_32.pcb32_sp = uaddr + USPACE_SVC_STACK_TOP; -#ifdef STACKCHECKS - /* Fill the undefined stack with a known pattern */ - memset(((u_char *)uaddr) + USPACE_UNDEF_STACK_BOTTOM, 0xdd, - (USPACE_UNDEF_STACK_TOP - USPACE_UNDEF_STACK_BOTTOM)); - /* Fill the kernel stack with a known pattern */ - memset(((u_char *)uaddr) + USPACE_SVC_STACK_BOTTOM, 0xdd, - (USPACE_SVC_STACK_TOP - USPACE_SVC_STACK_BOTTOM)); -#endif /* STACKCHECKS */ - pcb->pcb_tf = tf = (struct trapframe *)pcb->pcb_un.un_32.pcb32_sp - 1; *tf = *proc0.p_addr->u_pcb.pcb_tf; diff --git a/sys/arch/arm/arm/vm_machdep.c b/sys/arch/arm/arm/vm_machdep.c index 9b2a00a92f5..20fd8b286c2 100644 --- a/sys/arch/arm/arm/vm_machdep.c +++ b/sys/arch/arm/arm/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.19 2017/02/12 04:55:08 guenther Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.20 2017/08/17 20:47:49 tom Exp $ */ /* $NetBSD: vm_machdep.c,v 1.31 2004/01/04 11:33:29 jdolecek Exp $ */ /* @@ -70,14 +70,6 @@ int process_read_fpregs (struct proc *p, struct fpreg *regs); extern void proc_trampoline (void); /* - * Special compilation symbols: - * - * STACKCHECKS - Fill undefined and supervisor stacks with a known pattern - * on forking and check the pattern on exit, reporting - * the amount of stack used. - */ - -/* * Finish a fork operation, with process p2 nearly set up. * Copy and update the pcb and trap frame, making the child ready to run. * @@ -116,15 +108,6 @@ cpu_fork(struct proc *p1, struct proc *p2, void *stack, void *tcb, USPACE_UNDEF_STACK_TOP; pcb->pcb_un.un_32.pcb32_sp = (u_int)p2->p_addr + USPACE_SVC_STACK_TOP; -#ifdef STACKCHECKS - /* Fill the undefined stack with a known pattern */ - memset(((u_char *)p2->p_addr) + USPACE_UNDEF_STACK_BOTTOM, 0xdd, - (USPACE_UNDEF_STACK_TOP - USPACE_UNDEF_STACK_BOTTOM)); - /* Fill the kernel stack with a known pattern */ - memset(((u_char *)p2->p_addr) + USPACE_SVC_STACK_BOTTOM, 0xdd, - (USPACE_SVC_STACK_TOP - USPACE_SVC_STACK_BOTTOM)); -#endif /* STACKCHECKS */ - pmap_activate(p2); pcb->pcb_tf = tf = (struct trapframe *)pcb->pcb_un.un_32.pcb32_sp - 1; |