Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 11/21/2000 02:37:57
Module Name:	syssrc
Committed By:	jdolecek
Date:		Tue Nov 21 00:37:56 UTC 2000

Modified Files:
	syssrc/sys/arch/alpha/alpha: machdep.c
	syssrc/sys/arch/amiga/amiga: trap.c
	syssrc/sys/arch/atari/atari: trap.c
	syssrc/sys/arch/hp300/hp300: trap.c
	syssrc/sys/arch/i386/i386: trap.c
	syssrc/sys/arch/mac68k/mac68k: trap.c
	syssrc/sys/arch/mips/mips: cpu_exec.c
	syssrc/sys/arch/mvme68k/mvme68k: trap.c
	syssrc/sys/arch/news68k/news68k: trap.c
	syssrc/sys/arch/next68k/next68k: trap.c
	syssrc/sys/arch/sparc/sparc: trap.c
	syssrc/sys/arch/sun3/sun3: trap.c
	syssrc/sys/arch/x68k/x68k: trap.c
	syssrc/sys/compat/aout: aout_exec.c
	syssrc/sys/compat/freebsd: freebsd_exec.c freebsd_exec.h
	syssrc/sys/compat/hpux: hpux_exec.c
	syssrc/sys/compat/ibcs2: ibcs2_exec.c ibcs2_exec.h ibcs2_misc.c
	syssrc/sys/compat/linux/arch/i386: linux_exec.h
	syssrc/sys/compat/linux/common: linux_exec.c linux_exec.h
	    linux_exec_aout.c linux_exec_elf32.c
	syssrc/sys/compat/m68k4k: m68k4k_exec.c
	syssrc/sys/compat/netbsd32: netbsd32_exec.c netbsd32_exec.h
	syssrc/sys/compat/osf1: osf1_exec.c
	syssrc/sys/compat/pecoff: pecoff_exec.c pecoff_exec.h
	syssrc/sys/compat/sunos: sunos_exec.c
	syssrc/sys/compat/svr4: svr4_exec.c svr4_exec.h
	syssrc/sys/compat/ultrix: ultrix_misc.c
	syssrc/sys/kern: exec_conf.c exec_ecoff.c exec_elf32.c exec_script.c
	    init_main.c kern_exec.c kern_xxx.c
	syssrc/sys/sys: exec.h exec_ecoff.h proc.h
Added Files:
	syssrc/sys/compat/osf1: osf1_exec.h
	syssrc/sys/compat/ultrix: ultrix_exec.h
Removed Files:
	syssrc/sys/compat/aout: aout_exec.h

Log Message:
restructure struct emul and execsw, in preparation to make emulations LKMable:
* move all exec-type specific information from struct emul to execsw[] and
  provide single struct emul per emulation
* elf:
  - kern/exec_elf32.c:probe_funcs[] is gone, execsw[] how has one entry
    per emulation and contains pointer to respective probe function
  - interp is allocated via MALLOC() rather than on stack
  - elf_args structure is allocated via MALLOC() rather than malloc()
* ecoff: the per-emulation hooks moved from alpha and mips specific code
  to OSF1 and Ultrix compat code as appropriate, execsw[] has one entry per
  emulation supporting ecoff with appropriate probe function
* the makecmds/probe functions don't set emulation, pointer to emulation is
  part of appropriate execsw[] entry
* constify couple of structures


To generate a diff of this commit:
cvs rdiff -r1.223 -r1.224 syssrc/sys/arch/alpha/alpha/machdep.c
cvs rdiff -r1.78 -r1.79 syssrc/sys/arch/amiga/amiga/trap.c
cvs rdiff -r1.54 -r1.55 syssrc/sys/arch/atari/atari/trap.c
cvs rdiff -r1.81 -r1.82 syssrc/sys/arch/hp300/hp300/trap.c
cvs rdiff -r1.140 -r1.141 syssrc/sys/arch/i386/i386/trap.c
cvs rdiff -r1.84 -r1.85 syssrc/sys/arch/mac68k/mac68k/trap.c
cvs rdiff -r1.24 -r1.25 syssrc/sys/arch/mips/mips/cpu_exec.c
cvs rdiff -r1.44 -r1.45 syssrc/sys/arch/mvme68k/mvme68k/trap.c
cvs rdiff -r1.7 -r1.8 syssrc/sys/arch/news68k/news68k/trap.c
cvs rdiff -r1.25 -r1.26 syssrc/sys/arch/next68k/next68k/trap.c
cvs rdiff -r1.93 -r1.94 syssrc/sys/arch/sparc/sparc/trap.c
cvs rdiff -r1.93 -r1.94 syssrc/sys/arch/sun3/sun3/trap.c
cvs rdiff -r1.43 -r1.44 syssrc/sys/arch/x68k/x68k/trap.c
cvs rdiff -r1.3 -r1.4 syssrc/sys/compat/aout/aout_exec.c
cvs rdiff -r1.1 -r0 syssrc/sys/compat/aout/aout_exec.h
cvs rdiff -r1.7 -r1.8 syssrc/sys/compat/freebsd/freebsd_exec.c
cvs rdiff -r1.5 -r1.6 syssrc/sys/compat/freebsd/freebsd_exec.h
cvs rdiff -r1.17 -r1.18 syssrc/sys/compat/hpux/hpux_exec.c
cvs rdiff -r1.36 -r1.37 syssrc/sys/compat/ibcs2/ibcs2_exec.c
cvs rdiff -r1.8 -r1.9 syssrc/sys/compat/ibcs2/ibcs2_exec.h
cvs rdiff -r1.52 -r1.53 syssrc/sys/compat/ibcs2/ibcs2_misc.c
cvs rdiff -r1.3 -r1.4 syssrc/sys/compat/linux/arch/i386/linux_exec.h
cvs rdiff -r1.37 -r1.38 syssrc/sys/compat/linux/common/linux_exec.c
cvs rdiff -r1.12 -r1.13 syssrc/sys/compat/linux/common/linux_exec.h
cvs rdiff -r1.41 -r1.42 syssrc/sys/compat/linux/common/linux_exec_aout.c
cvs rdiff -r1.47 -r1.48 syssrc/sys/compat/linux/common/linux_exec_elf32.c
cvs rdiff -r1.5 -r1.6 syssrc/sys/compat/m68k4k/m68k4k_exec.c
cvs rdiff -r1.22 -r1.23 syssrc/sys/compat/netbsd32/netbsd32_exec.c
cvs rdiff -r1.4 -r1.5 syssrc/sys/compat/netbsd32/netbsd32_exec.h
cvs rdiff -r1.11 -r1.12 syssrc/sys/compat/osf1/osf1_exec.c
cvs rdiff -r0 -r1.1 syssrc/sys/compat/osf1/osf1_exec.h
cvs rdiff -r1.3 -r1.4 syssrc/sys/compat/pecoff/pecoff_exec.c
cvs rdiff -r1.1 -r1.2 syssrc/sys/compat/pecoff/pecoff_exec.h
cvs rdiff -r1.21 -r1.22 syssrc/sys/compat/sunos/sunos_exec.c
cvs rdiff -r1.33 -r1.34 syssrc/sys/compat/svr4/svr4_exec.c
cvs rdiff -r1.15 -r1.16 syssrc/sys/compat/svr4/svr4_exec.h
cvs rdiff -r0 -r1.1 syssrc/sys/compat/ultrix/ultrix_exec.h
cvs rdiff -r1.60 -r1.61 syssrc/sys/compat/ultrix/ultrix_misc.c
cvs rdiff -r1.43 -r1.44 syssrc/sys/kern/exec_conf.c
cvs rdiff -r1.13 -r1.14 syssrc/sys/kern/exec_ecoff.c
cvs rdiff -r1.57 -r1.58 syssrc/sys/kern/exec_elf32.c
cvs rdiff -r1.26 -r1.27 syssrc/sys/kern/exec_script.c
cvs rdiff -r1.183 -r1.184 syssrc/sys/kern/init_main.c
cvs rdiff -r1.123 -r1.124 syssrc/sys/kern/kern_exec.c
cvs rdiff -r1.44 -r1.45 syssrc/sys/kern/kern_xxx.c
cvs rdiff -r1.72 -r1.73 syssrc/sys/sys/exec.h
cvs rdiff -r1.11 -r1.12 syssrc/sys/sys/exec_ecoff.h
cvs rdiff -r1.110 -r1.111 syssrc/sys/sys/proc.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.