Commit Graph

352 Commits

Author SHA1 Message Date
skrll
03108b61cc Add a comment. 2010-01-16 07:45:53 +00:00
skrll
a11430cd21 Rename type_raw to trapnum and use in a couple more places.
Reduces diff to OpenBSD.
2010-01-16 07:37:21 +00:00
skrll
9343811ea9 Count traps in uvmexp. Reduces diff to OpenBSD. 2010-01-16 07:17:39 +00:00
skrll
c982c69974 Update 64bit arg handling to use the flags in the syscall table.
Only do trace_enter/trace_exit if we're tracing.
2010-01-06 07:42:58 +00:00
skrll
8fb5f5ef34 curlwp is never NULL now. Sprinkle KASSERT just in case. 2010-01-06 07:38:49 +00:00
skrll
05bdd9a95d Remove unnecessary part of conditional. 2009-12-18 19:20:35 +00:00
skrll
dd886c2366 DPRINTF format fixes. 2009-12-18 19:17:08 +00:00
skrll
9f2af676c5 Fix pmap_dump_table so that it doesn't loop indefinitely for a space that
doesn't map anything in the last PDE.

Also, don't loop unnecessarily through the spaces.
2009-12-18 15:20:15 +00:00
skrll
fdd37a12f2 Consistent comment format. 2009-12-15 22:47:21 +00:00
skrll
92b36722e8 Remove #if 0 / #endif section 2009-12-15 22:44:25 +00:00
skrll
c13655399e Remove redundant line. 2009-12-14 23:36:52 +00:00
skrll
aae0dc7c17 Correct/add comments. 2009-12-12 15:25:32 +00:00
matt
0a8b38422e Add PRIx{P,V}{ADDR,SIZE}, PRIu{P,V}SIZE, and PRIxREGISTER{,32,64} for all
(except where they will be added via merge).  These should be used to print
{p,v}{addr,size}_t and register*_t as appropriate.
2009-12-11 05:52:03 +00:00
rmind
e9f7af26e6 Rename L_ADDR to L_PCB and amend some comments accordingly. 2009-12-10 05:10:00 +00:00
skrll
b7b0345e3d Remove U_PCB as requested by rmind.
Same code before and after.
2009-12-01 09:06:16 +00:00
skrll
3e3c89b2ca Add lci to get coherence index for an address. 2009-11-29 10:09:54 +00:00
skrll
c1821630bd KNF 2009-11-29 10:08:10 +00:00
rmind
ce313d4fb1 Replace l_addr with uvm_lwp_getuarea() in various MD code, mostly cpu_lwp_fork(). 2009-11-29 04:15:42 +00:00
skrll
0deb77781e Flush only as much as is required. Pointed out by rmind. 2009-11-28 13:53:28 +00:00
skrll
4efbdd1e91 Fix DEBUG build. Hi rmind. 2009-11-27 20:32:10 +00:00
rmind
3f18fe8123 - Use uvm_lwp_setuarea() instead of directly setting address to lwp_t::l_addr.
- Replace most remaining uses of l_addr with uvm_lwp_getuarea() or lwp_getpcb().
- Amend assembly in ports where it accesses PCB via struct user.
- Rename L_ADDR to L_PCB in few places.  Reduce sys/user.h inclusions.
2009-11-27 03:23:03 +00:00
matt
11af2f9cfa Kill proc0paddr. Use lwp0.l_addr instead. 2009-11-26 00:19:11 +00:00
rmind
12193ee3b4 Use lwp_getpcb() on hppa and ia64, clean from struct user usage. 2009-11-21 15:36:33 +00:00
rmind
23d62c72ca Include sys/user.h for MD proc.h (hppa and m68k ports). 2009-11-21 15:13:14 +00:00
dholland
3b3360c119 Declare trap name array as extern const char *[] to match how it's defined
in trap.c. (Should really be in a header, of course.) Compile-tested.
2009-11-15 18:17:18 +00:00
skrll
dcfde2a0ef Put PMAP_NOCACHE in the MD space. 2009-11-15 12:26:02 +00:00
skrll
8e8677821f Update a couple of comments. 2009-11-14 13:31:44 +00:00
skrll
1070b74721 Use the new flags argument to pmap_kenter_pa for PMAP_NOCACHE. 2009-11-11 16:08:31 +00:00
cegger
9480c51b04 Add a flags argument to pmap_kenter_pa(9).
Patch showed on tech-kern@ http://mail-index.netbsd.org/tech-kern/2009/11/04/msg006434.html
No objections.
2009-11-07 07:27:40 +00:00
snj
32381fa0dd Follow upstream license changes for files with Michael Shalayeff's
copyright.  In most cases, this means dropping the 3rd and 4th clauses.
2009-11-03 05:07:25 +00:00
cegger
62cf489d8e kill extra whitespaces
reviewed by tsutsui@
2009-10-26 19:16:54 +00:00
rmind
40cf6f3659 Remove uarea swap-out functionality:
- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.
2009-10-21 21:11:57 +00:00
matt
209a0b42e3 Include <sys/exec_aout.h> explicitly instead of relying on <sys/exec.h> to
do it for us.
2009-08-15 23:44:57 +00:00
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