Commit Graph

390 Commits

Author SHA1 Message Date
skrll
afd97f3579 The FP regs are accessed in both physical and virtual modes. Make sure
they're allocated in directly mapped memory to avoid aliasing problems
and unnecessary cache flushing.

Fix various names and references. If we ever directly map the uarea and
pcb we can change things at that point.

Significantly helps my J210 (PA7200).

Mostly from OpenBSD.
2010-03-16 16:20:19 +00:00
skrll
0aa13d6505 Add a comment. 2010-03-13 16:17:59 +00:00
skrll
e7893d09c1 Start at the first, not the second, exception register. 2010-03-11 21:43:15 +00:00
skrll
00affa2e9e Comment formating. 2010-03-11 21:41:50 +00:00
skrll
ee193ef9a3 Comment style. 2010-03-11 21:37:52 +00:00
skrll
6392307893 A nullify snuck in. Remove it. 2010-03-11 13:26:20 +00:00
skrll
2fc327764c Wrap a long line. 2010-03-11 07:15:25 +00:00
skrll
edbb9c77e1 Rename Debugger to cpu_Debugger. 2010-03-11 07:14:22 +00:00
skrll
e8a43a17a6 Comment change. 2010-03-11 07:05:21 +00:00
skrll
7c4e782041 Comment improvements. 2010-03-11 07:01:09 +00:00
skrll
e52678ceba More comment improvement. 2010-03-10 18:53:40 +00:00
skrll
3a1cc5030b Comment improvements. 2010-03-10 18:17:42 +00:00
skrll
9ea33502ce Set the frame pointer of newly created and function changing LWPs to 0
for the benefit of DDB.
2010-03-08 14:52:29 +00:00
skrll
e15992e310 Fix and use the BSS macro. 2010-03-08 07:42:46 +00:00
skrll
ea38704829 Add #include "opt_cputype.h" where necessary. 2010-03-06 21:22:42 +00:00
skrll
995e7575f1 Add a "mach frame" command to hppa ddb. 2010-03-02 20:40:15 +00:00
skrll
243d3947d4 s/printf/db_printf/ in a few places. 2010-02-24 06:38:53 +00:00
skrll
9882ad0204 Deal with PA2.0 cache move-in rules by purging the TLB as well as
flushing/purging the cache.
2010-02-22 21:32:55 +00:00
skrll
27e0e1c809 Fix typo in previous. It's not a good idea to let uvm mess with kernel
text pages.
2010-02-17 14:16:53 +00:00
skrll
66e7a27415 Semi-colons help. 2010-02-17 11:31:39 +00:00
skrll
397f09772a Add a prototype for pmap_page_physload. 2010-02-17 10:03:30 +00:00
skrll
bce51a654b Remove the dma24_ex method of dealing with BUS_DMA_24BIT and replace
with a uvm managed freelist of pages in the right range.
2010-02-16 16:56:29 +00:00
skrll
e3f101b201 Remove unnecessary comment. 2010-02-13 10:39:39 +00:00
skrll
72b7777cab Whitespace. 2010-02-13 10:38:55 +00:00
skrll
1caeee472f Oops. Whitespace in previous. 2010-02-10 20:54:46 +00:00
skrll
4b1317e9f2 Remove a cast by fixing a printf format. 2010-02-10 20:52:35 +00:00
skrll
cad999ae76 Reformat a comment. 2010-02-10 20:51:23 +00:00
skrll
5489478973 Minor tweaks. 2010-02-10 20:49:58 +00:00
skrll
3d59e3d43a Use __arraycount 2010-02-10 17:00:45 +00:00
joerg
d621e29eca Remove separate mb_map. The nmbclusters is computed at boot time based
on the amount of physical memory and limited by NMBCLUSTERS if present.
Architectures without direct mapping also limit it based on the kmem_map
size, which is used as backing store. On i386 and ARM, the maximum KVA
used for mbuf clusters is limited to 64MB by default.

The old default limits and limits based on GATEWAY have been removed.
key_registered_sb_max is hard-wired to a value derived from 2048
clusters.
2010-02-08 19:02:25 +00:00
skrll
115d3c7160 Use pmap_extract instead of kvtop. 2010-01-17 08:50:04 +00:00
skrll
92ae846d27 Remove an old comment. 2010-01-17 08:48:50 +00:00
skrll
2c3b4d7619 Simplify. 2010-01-17 08:24:06 +00:00
skrll
15b38a3879 Add a couple of comments and some whitespace. 2010-01-16 13:59:42 +00:00
skrll
5764441dd3 Tweak comment. From OpenBSD. 2010-01-16 13:53:58 +00:00
skrll
8c8e2e46ed Tweak astpending handling. 2010-01-16 13:29:47 +00:00
skrll
a6de3e0058 Use the description in the ACD for T_DBREAK. 2010-01-16 10:06:31 +00:00
skrll
51f44bf5bd Check cpl level has returned to entry value when leaving trap/syscall.
From OpenBSD.
2010-01-16 07:56:16 +00:00
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