Commit Graph

319 Commits

Author SHA1 Message Date
skrll
32444302bd Fix non-DEBUG builds. 2009-08-12 10:03:30 +00:00
skrll
c352a1ce0c Remove NOP flushes. pvh_list == NULL. 2009-08-12 07:46:36 +00:00
skrll
3e1a0e3c2d Pull across a fix from OpenBSD, but use PDE_SIZE instead of ~PDE_MASK + 1.
Make sure that if a PDE isn't there, we skip to the start of the address
range covered by the next PDE and not somewhere in the middle.  The old could
have skipped over some valid PTE's causing them to stay behind in the pmap.
Since we would not flush the cache for those pages either this could also
cause memory corruption when dirty cache lines would be written back to
memory at a later stage.
2009-08-12 07:42:36 +00:00
matt
b2a95bab1e Remove all declarations of physmem from sys/arch. Add an include of
<sys/systm.h> to the one file that did not already contain it.
This now means that physmem can be changed by updating systm.h and uvm_page.c
(excluding fixing printfs)
2009-08-11 17:04:14 +00:00
skrll
c113d9a27f Do not use lwp_trampoline for cpu_setfunc, but a simplified setfunc_trampoline
that does not call lwp_startup().
2009-06-03 21:08:51 +00:00
skrll
f86cbcc8bf Enforce strong ordering (for now) on PA2.0. 2009-06-01 07:10:14 +00:00
skrll
e03976623a Add TLS relocation definitions. 2009-05-30 05:56:52 +00:00
skrll
93a4f7c66c Kill '$' in exported symbols. 2009-05-24 09:17:59 +00:00
skrll
fae01d956c G/C DTRAP 2009-05-24 09:13:37 +00:00
skrll
f06013108d u_intNN_t -> uintNN_t
"same" code before and after.
2009-05-24 06:53:34 +00:00
skrll
72c9ff9f0c Whitespace. 2009-05-19 05:50:58 +00:00
skrll
d6428aac82 Note that CR27 is used for thread local storage (TLS) 2009-05-16 12:57:05 +00:00
skrll
2b47a0c491 Whitespace. 2009-05-09 12:18:29 +00:00
skrll
785840b34d Provide ucas for hppa. 2009-05-08 10:12:55 +00:00
skrll
2418e09480 Correct some CPU ifdefs so that a HP7100_CPU only kernel should compile. 2009-04-30 20:10:31 +00:00
skrll
fdba187b53 Remove if defined(HP7100LC_CPU) || defined(HP7300LC_CPU) from around
pmap_hptsize and pdc_hwtlb (for now).
2009-04-30 19:15:18 +00:00
skrll
af6031b09f Move HPPA_SID_KERNEL into pmap.h and deal with the move. 2009-04-30 15:34:24 +00:00
skrll
8516d55745 Merge nick-hppapmap.
This is a port of the OpenBSD pmap and trap handling code to get us

        - Performance boost on some/all machines.
        - Well on the way to PA2.0 (in 32bit mode) support. Several
          machines probe hardware, but fail sometime after interrupts
          are enabled.

Other things changed / fixed on the branch are

        - update autoconf to use the OpenBSD code.
        - com @ dino is very close to being supported.
        - HPPA_REDZONE has been replaced with a working redzone which
          is enabled with DIAGNOSTIC.
        - UPAGES has been halved in size.
        - power(4) from OpenBSD to fix a few bugs.
        - updated list of modules from OpenBSD.
	- initial ports of uturn(4), astro(4) and elroy(4).
	- update some copyrights (remove advertising clause, etc.)

Thanks to mjf for some of the above, testing and listening.
2009-04-30 07:01:26 +00:00
cegger
1d89a182fb change pmap flags argument from int to u_int.
discussed with christos@ on source-changes-d@
2009-04-21 21:29:58 +00:00
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