Commit Graph

300 Commits

Author SHA1 Message Date
skrll
77dafb503d Fixup two more syscalls with 64-bit args.
Remove reference to script that is supposed to do this automatically - I
don't have it.

Fixes PR/41185.
2009-04-11 09:49:23 +00:00
cegger
e2cb85904d bcopy -> memcpy 2009-03-18 17:06:41 +00:00
dsl
82357f6d42 ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
2009-03-14 21:04:01 +00:00
dsl
454af1c0e8 Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
2009-03-14 15:35:58 +00:00
joerg
f5b0fec0e0 Remove SHMMAXPGS from all kernel configs. Dynamically compute the
initial limit as 1/4 of the physical memory. Ensure the limit is at
least 1024 pages, the old default on most platforms.
2009-03-06 20:31:46 +00:00
skrll
fd24e60b98 From OpenBSD:
apparently my understanding of '{FLT,DBL,LDBL}_{MIN,MAX}_EXP' ahs
been wrong and thus proven by many and there change it back to
what it is meaning explained in http://www-ccs.ucsd.edu/c/float.html .
also fix spmath to use it's own consts instead of (now) off by one
float.h values thus to avoid any kind of binary changes.

Fixes regress/lib/libc/ieeefp/nan
2009-01-27 11:49:54 +00:00
christos
461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
cegger
9b87d582bd kill MALLOC and FREE macros. 2008-12-17 20:51:31 +00:00
christos
9a5d3f2817 replace bitmask_snprintf(9) with snprintb(3) 2008-12-16 22:35:21 +00:00
pooka
ee352f3d33 Make kernel_pmap_ptr a const. Requested by steve_martin. 2008-12-10 11:10:17 +00:00
pooka
29d439f898 Make pmap_kernel() a MI macro for struct pmap *kernel_pmap_ptr,
which is now the "API" provided by the pmap module.  pmap_kernel()
remains as the syntactic sugar.

Bonus cosmetics round: move all the pmap_t pointer typedefs into
uvm_pmap.h.

Thanks to Greg Oster for providing cpu muscle for doing test builds.
2008-12-09 20:45:44 +00:00
skrll
5e046fc3d9 Print the trapframe pointer in the trace output. 2008-11-27 14:28:23 +00:00
he
4b10ac9fb3 Rename sendsig() to sendsig_siginfo(), so that we don't conflict
with the newly added sendsig() in kern_sig.c.
2008-11-21 01:57:33 +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
ad
d1b01a3709 Provide a small inline wrapper for sysent::sy_call() and use it to store
the active syscall description in struct lwp. To be used at some future
point to prevent unloading of modules that provide syscalls, while the
syscalls are in use.
2008-10-21 12:16:58 +00:00
skrll
86bba1afff Typo in previous. 2008-10-17 12:35:12 +00:00
skrll
cf9f4754f3 p_smutex was replaced by p_lock. 2008-10-16 17:49:23 +00:00
skrll
79c7887582 Bring back cpu_setfunc.
cpu_lwp_fork should use cpu_setfunc, but not right now.
2008-10-16 17:42:26 +00:00
wrstuden
fc7511b00e Merge wrstuden-revivesa into HEAD. 2008-10-15 06:51:17 +00:00
skrll
0a3b051fc6 Fix (U)LLONG_(MAX|MIN) defines.
From Jonathan Kollasch. Thanks.
2008-09-13 07:33:26 +00:00
skrll
1a95ecfedf Swap max/min in comments to match symbols. 2008-09-13 07:30:59 +00:00
skrll
632763e1fc Multiple inclusion protection. 2008-09-13 07:30:22 +00:00
skrll
2958809c8c Whitespace. 2008-08-28 08:45:26 +00:00
skrll
b71a0dd1dc Update a comment. 2008-08-22 19:32:57 +00:00
skrll
7203885b6f Typo in comment. 2008-08-22 06:49:26 +00:00
skrll
ad5c6971b7 Define _ASM_LS_CHAR as '!' on hppa. 2008-08-11 21:52:10 +00:00
skrll
1bd9dc93c6 Fix copy{in,out}str on hppa by
1) not attempting to copy anything if size is initially 0.
	2) returning ENAMETOOLONG if we ran out of space.
2008-08-11 10:36:41 +00:00
matt
91d4704c12 Update <machine/ieeefp.h> to use the C99 FE_* definitions instead of the
NetBSD defined ones.  Redefine the NetBSD ones in terms of the C99 ones.
Step 1 to having <fenv.h>
2008-08-05 16:47:41 +00:00
rmind
160268aca6 Remove proc_representative_lwp(), use a simple LIST_FIRST() instead.
OK by <ad>.
2008-07-02 19:49:58 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
skrll
768818c328 Whitespace. 2008-04-25 12:41:50 +00:00
ad
284c2b9aef Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.
2008-04-24 18:39:20 +00:00
skrll
0cef8c99e4 Split the DDB trace stuff into its own file. 2008-04-24 07:28:30 +00:00
skrll
9fcc1f5407 de-__P 2008-04-06 08:03:36 +00:00
skrll
5886a5273b Need to pull in kobj_machdep.c for options MODULAR 2008-03-29 15:34:19 +00:00
simonb
a1ba91e196 Remove unused _BSD_OFF_T_. 2008-03-22 22:06:35 +00:00
skrll
4834c1b95c Arrgh.
Must try to develop and commit from the same machine.
2008-03-01 12:54:19 +00:00
skrll
90c2422ec8 Oops, fix compilation errors.
I have tested this - it's enough to load sys/modules/example.o.

Honest!
2008-03-01 12:44:53 +00:00
skrll
7bd976725f hppa bits for the kernel linker. 2008-03-01 12:40:08 +00:00
ad
372461e58e Add aliases for atomic_cas_foo_ni(). 2008-02-10 13:32:14 +00:00
dsl
c2a8c787c3 Remove the 'args' parameter to 'trace_exit()' it is no longer used.
Instead of passing the (un)real system call code and syscall table pointer,
just pass the number of arguments - which is what ktrace really wants.
Ride forthcoming 4.99.53
2008-02-06 22:12:39 +00:00
skrll
f867ae875e Rely on implicit PAGE_SIZE alignment and don't confuse uvm_glue.c. 2008-02-05 10:10:21 +00:00
skrll
f7a8a22745 Catch up with "Refactor in_cksum/in4_cksum/in6_cksum implementations".
Hi Joerg.
2008-01-29 19:29:37 +00:00
skrll
dbf783eccf bcopy -> memcpy 2008-01-29 18:46:18 +00:00
joerg
6e869e402d Refactor in_cksum/in4_cksum/in6_cksum implementations:
- All three functions are included in the kernel by default.
  They call a backend function cpu_in_cksum after possibly
  computing the checksum of the pseudo header.
- cpu_in_cksum is the core to implement the one-complement sum.
  The default implementation is moderate fast on most platforms
  and provides a 32bit accumulator with 16bit addends for L32 platforms
  and a 64bit accumulator with 32bit addends for L64 platforms.
  It handles edge cases like very large mbuf chains (could happen with
  native IPv6 in the future) and provides a good base for new native
  implementations.
- Modify i386 and amd64 assembly to use the new interface.

This disables the MD implementations on !x86 until the conversion is
done. For Alpha, the portable version is faster.
2008-01-25 21:12:10 +00:00
skrll
886189b384 Adjust comments to fit <80 columns. 2008-01-18 10:03:27 +00:00
skrll
f447c6a89d KNF 2008-01-18 10:00:48 +00:00
skrll
fb13dda50a Correct a comment. 2008-01-18 09:56:41 +00:00
skrll
954a1f6c2c Add W and O PSW bit defines.
From OpenBSD.
2008-01-18 09:42:12 +00:00
skrll
ae654e4721 Various improvements to the hppa kernel for gdb.
- add the useful space and control registers to struct reg
	- update process_{read,write}_regs accordingly
	- use MID_HPPA in core dumps.
	- dump the fp regs into cores.
	- add single stepping support from OpenBSD.
2008-01-10 21:08:40 +00:00