Module Name: src Committed By: andvar Date: Sat Sep 23 13:45:50 UTC 2023
Modified Files: src/sys/arch/mac68k/mac68k: machdep.c Log Message: pass just l param to exec_aout_prep_oldzmagic instead of l->l_proc. In a huge "merge ktrace-lwp." commit struct proc was changed by struct lwp. seemingly all 68k ports just replaced p with l, however mac68k changed to refer to l->l_proc. I assume it was accidental leftover during refactoring. fixes COMPAT_NOMID enabled build for mac68k. To generate a diff of this commit: cvs rdiff -u -r1.364 -r1.365 src/sys/arch/mac68k/mac68k/machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/mac68k/mac68k/machdep.c diff -u src/sys/arch/mac68k/mac68k/machdep.c:1.364 src/sys/arch/mac68k/mac68k/machdep.c:1.365 --- src/sys/arch/mac68k/mac68k/machdep.c:1.364 Mon Dec 26 01:05:35 2022 +++ src/sys/arch/mac68k/mac68k/machdep.c Sat Sep 23 13:45:50 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.364 2022/12/26 01:05:35 nat Exp $ */ +/* $NetBSD: machdep.c,v 1.365 2023/09/23 13:45:50 andvar Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -74,7 +74,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.364 2022/12/26 01:05:35 nat Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.365 2023/09/23 13:45:50 andvar Exp $"); #include "opt_adb.h" #include "opt_compat_netbsd.h" @@ -846,7 +846,7 @@ cpu_exec_aout_makecmds(struct lwp *l, st #ifdef COMPAT_NOMID /* Check to see if MID == 0. */ if (((struct exec *)epp->ep_hdr)->a_midmag == ZMAGIC) - return exec_aout_prep_oldzmagic(l->l_proc, epp); + return exec_aout_prep_oldzmagic(l, epp); #endif return error;