rmind
bd5b92d68b
- Replace few malloc(9) uses with kmem(9).
...
- Rename buf_malloc() to buf_alloc(), fix comments.
- Remove some unnecessary inclusions.
2011-04-24 18:46:22 +00:00
ad
92ce8c6a3d
Make the emulations, exec formats, coredump, NFS, and the NFS server
...
into modules. By and large this commit:
- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime
2008-11-19 18:35:57 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
perry
da8abec863
nuke trailing whitespace
2005-02-26 21:34:55 +00:00
wiz
d20841bb64
Uppercase CPU, plural is CPUs.
2004-02-13 11:36:08 +00:00
christos
c3c2f78f98
GC: exec_foo_setup_stack; use exec_setup_stack, and provide a way for
...
emulations to override it.
2003-08-08 18:53:13 +00:00
fvdl
d5aece61d6
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
...
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr
960df3c8d1
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
...
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
thorpej
e8cc3884de
Rename __LDPGSZ to AOUT_LDPGSZ, to accurately reflect what it is.
2002-12-10 17:14:02 +00:00
thorpej
78ea2dd367
Use __LDPGSZ (which must be == USRTEXT) as the text address for a.out
...
executables, and eliminate the USRTEXT constant, which was only used
by the a.out exec code.
2002-12-10 05:14:24 +00:00
chs
993948e989
count executable image pages as executable for vm-usage purposes.
...
also, always do the VTEXT vs. v_writecount mutual exclusion
(which we previously skipped if the text or data segment was empty).
2002-10-05 22:34:02 +00:00
provos
0f09ed48a5
remove trailing \n in panic(). approved perry.
2002-09-27 15:35:29 +00:00
chs
2f11784ca7
only create a vmcmd for the BSS if there is any BSS. fixes PR 17834.
2002-08-29 06:31:21 +00:00
lukem
adc783d537
add RCSIDs
2001-11-12 15:25:01 +00:00
thorpej
e8ee04475d
- Add a new vnode flag VEXECMAP, which indicates that a vnode has
...
executable mappings. Stop overloading VTEXT for this purpose (VTEXT
also has another meaning).
- Rename vn_marktext() to vn_markexec(), and use it when executable
mappings of a vnode are established.
- In places where we want to set VTEXT, set it in v_flag directly, rather
than making a function call to do this (it no longer makes sense to
use a function call, since we no longer overload VTEXT with VEXECMAP's
meaning).
VEXECMAP suggested by Chuq Silvers.
2001-10-30 15:32:01 +00:00
thorpej
b7d004daa6
Use round_page() instead of roundup(..., NBPG).
2000-11-14 22:13:20 +00:00
thorpej
cd32ace8bb
ANSI'ify.
2000-08-01 04:57:28 +00:00
mrg
32aa199ccf
remove include of <vm/vm.h>
2000-06-27 17:41:07 +00:00
chs
b4aac1046f
round the sizes of mapped text and data segments to PAGE_SIZE.
...
fixes PR 10079.
2000-06-13 06:21:51 +00:00
chs
a6d33cc1f2
add a new function vn_marktext() for exec code to let others know
...
that the vnode is now being used as process text.
2000-04-11 04:37:47 +00:00
cgd
2f42e5b8ed
fix some typos and clean up some comments.
1996-09-26 23:34:46 +00:00
christos
8a5b1b92e2
First pass at prototyping
1996-02-04 02:15:01 +00:00
pk
6c9ba984e5
See to it that `vm_tsize' and `vm_dsize' get set up properly for
...
OMAGIC binaries, so obreak(2) doesn't get confused.
1994-08-01 18:49:49 +00:00
glass
a957351354
multiple include of exec.h
1994-07-05 03:26:34 +00:00
deraadt
cc7bf234c6
exec_aout.h not needed
1994-07-01 02:57:52 +00:00
cgd
cf92afd66e
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
1994-06-29 06:29:24 +00:00
jtc
5235180083
Fix spelling error in Copyright notice
1994-01-28 23:43:26 +00:00
cgd
e11a5f7688
casting for exec_package field changes
1994-01-16 03:08:18 +00:00
cgd
f023b7235d
trim extra debugging code, for now
1994-01-13 02:33:28 +00:00
cgd
34ea9285e9
de-macroify kill_vmcmds()
1994-01-08 18:05:29 +00:00
mycroft
ec0fa1f388
Use NULLVP, just for Correctness (tm).
1994-01-08 16:06:04 +00:00
mycroft
c6afda5ec5
Trivial stylistic change for consistency.
1994-01-08 15:24:02 +00:00
cgd
957ce06f24
far reaching but relatively minor cleanup and slight reorg of exec code
1994-01-08 07:14:24 +00:00
deraadt
9e62501f7b
support OMAGIC/NMAGIC a.out's
...
cannonicalize #includes
change VTEXT check
(this stuff comes from the magnum branch)
1993-12-12 19:26:18 +00:00
cgd
83aeee1bc0
there now exists an "exec switch". break the a.out code into another
...
module, and tidy up the interface so that other object formats are
more easily supportable.
1993-09-05 01:33:35 +00:00