Commit Graph

188242 Commits

Author SHA1 Message Date
mrg
9181dd2c07 - store the maximum [id]cache size / line size for each cpu
- remove patch_kernel() since it isn't necessary and has been patching
  the wrong thing in general.

- implement USIII versions of blast_icache(), dcache_flush_page() and
  cache_flush_phys().  use the newly recorded cache size/line sizes.

- in winfixsave, flush the D$ with the right size index and ops.  this
  kills one of the wrong tag->inval patches.

- for blast_dcache(), use the newly recorded dcache_size/line_size.

- for blast_icache(), use the newly recorded cache size/line sizes.
  for the USIII verison, disable the I$ while writing to ASI_ICACHE_TAG.


these changes removed several hard coded cache sizes values, some very
wrong kernel patching, and seem to make the current failure modes for
USIII less common, but not gone.
2010-02-22 00:16:31 +00:00
wiz
59afab0ca6 Add more FreeBSD versions. 2010-02-21 21:16:09 +00:00
wiz
00e9c46967 Add FreeBSD-8.0. 2010-02-21 21:08:27 +00:00
tsutsui
106d393c5c Remove unnecessary LIBS (-ledit, -lbz2, -lcrypt) for SMALL binaries
with libhack.
2010-02-21 20:18:08 +00:00
tsutsui
b61b63add5 Fix indent. 2010-02-21 20:10:51 +00:00
tsutsui
a61bdefffd Use tiny limited distrib/utils/x_gzip. (no bzip2 and compress support) 2010-02-21 20:09:50 +00:00
tsutsui
93ca9b1e4f - explicitly specify -Os via DBG for libhack build
- set WARNS=1 for sanity
2010-02-21 20:06:19 +00:00
tsutsui
9c220d174d Add dd(1) to install ramdisk binaries to wipe out existing disklabel etc.
Per request from David Ross on port-atari.
2010-02-21 20:04:59 +00:00
bouyer
8f7318d794 Fix confusion about PRE/POST in previous; and another place that has the
same issue. Also add a BUS_DMASYNC_POSTWRITE to the POLL operation.
Problem pointed out by tsutsui@.
Still not perfect (a BUS_DMASYNC_PREREAD would be needed after the
testing the condition in the POLL() macro), but closer.
2010-02-21 18:50:10 +00:00
tsutsui
d31d8d052b Regen from GENERIC.in rev 1.83:
> Add pseudo-device ksyms. Noticed by David Ross on port-atari.
2010-02-21 18:00:13 +00:00
tsutsui
4b4e0d474c Add pseudo-device ksyms. Noticed by David Ross on port-atari. 2010-02-21 17:57:03 +00:00
mlelstv
d3dff438aa dev_bsize wasn't initialized. The actual value doesn't matter since
the same value is used to compute byte offsets into the special file
but a value of zero causes a division by zero.
2010-02-21 16:24:21 +00:00
wiz
41cdcf2f2e Bump date for vm.user_va0_disable. 2010-02-21 14:26:33 +00:00
bouyer
80f97b6e05 Fix bus_dmamap_sync(): it should be a BUS_DMASYNC_POSTWRITE after
writing to DMA memory.
Found by code inspection.
2010-02-21 14:16:47 +00:00
mlelstv
03c7f48412 For the UVM_PAGE_TRKOWN test do not require that the relevant pages
must exist.
2010-02-21 13:55:58 +00:00
wiz
95c5212343 Consistently call the file system "ext2". 2010-02-21 13:28:12 +00:00
wiz
1a64f4201c Call the file system "ext2" consistently. Suggested by tsutsui. 2010-02-21 13:26:45 +00:00
wiz
dcced1277c Fix string, noted by tsutsui. 2010-02-21 13:23:15 +00:00
drochner
9783f258ba rename the va0_disabled option and cpp conditional to "disable" as well,
for consistency, and document option and sysctl flag
2010-02-21 13:17:50 +00:00
darran
f802834604 DTrace: add the dtrace module. 2010-02-21 11:16:19 +00:00
darran
dea8f231d6 DTrace: add the dtrace module to the build. 2010-02-21 11:14:47 +00:00
darran
7b822b43cb DTrace: fix a problem with library references for libctf and libdtrace. 2010-02-21 11:00:01 +00:00
darran
4e42fd7663 DTrace: remove extra libshare.h - shouldn't have added it and it breaks
the libzfs build.
2010-02-21 10:21:06 +00:00
christos
d464f08166 fix faulty logic in previous change. 2010-02-21 09:54:57 +00:00
darran
17b93c1002 DTrace: remove assert.h - shouldn't have been checked in (breaks libdtrace
build).
2010-02-21 09:52:08 +00:00
wiz
3fad503ab0 New sentence, new line. Bump date for mentioning wbsio. 2010-02-21 09:02:19 +00:00
darran
f2505ce1e5 DTrace: remove file.h - it shouldn't have been added and breaks zfs. 2010-02-21 08:28:40 +00:00
darran
2c398f9ea9 DTrace: Add __predict_false() to the DTrace hooks per rmind's suggestion. 2010-02-21 07:39:18 +00:00
darran
8d0c2f9cd9 DTrace: missed kern_dtrace.c (thanks rmind!) 2010-02-21 07:28:51 +00:00
darran
37422f86b0 Added a defflag option for KDTRACE_HOOKS and included opt_dtrace.h in the
relevant files. (Per Quentin Garnier - thanks!).
2010-02-21 07:01:57 +00:00
bsh
67a60d973a Modify definitions for ULCOM register of UART according to S3C2800
User's manual rev 1.3.

The values of ULCON_PARITY_SHIFT and ULCON_IR are now same to those
for S3C2410. So the definitions are moved to s3c2xx0reg.h.  (Old
definitions from User's manual rev1.1 were differ to those for
S3C2410, and that was why I put them in s3c2800reg.h and s3c24x0reg.h.
There's no description in errata about this changes.)

Also, fix the value for UMSTAT_DCTS on 2800.

The values of UMCON_AFC and UMSTAT_DCTS still differ between 2800 and
2410.

Reported by Brett Slager.  Thank you very much.
2010-02-21 06:08:53 +00:00
cnst
7401edecf9 mention wbsio(4) in doc/CHANGES 2010-02-21 05:21:25 +00:00
cnst
51998ed2d7 New wbsio(4) driver for Winbond Super I/O attachment of lm(4) on any port.
http://mail-index.netbsd.org/tech-kern/2010/02/17/msg007338.html

Reviewed by <pgoyette>, <tech-kern>.
2010-02-21 05:16:29 +00:00
darran
7fe76dd45f Add the DTrace kernel hooks file to the kernel build. 2010-02-21 04:00:47 +00:00
darran
eda67656cd Add DTrace to sets. 2010-02-21 03:18:45 +00:00
darran
1bc28ea1e9 Add the DTrace hooks to the kernel (KDTRACE_HOOKS config option).
DTrace adds a pointer to the lwp and proc structures which it uses to
manage its state.  These are opaque from the kernel perspective to keep
the kernel free of CDDL code. The state arenas are kmem_alloced and freed
as proccesses and threads are created and destoyed.

Also add a check for trap06 (privileged/illegal instruction) so that
DTrace can check for D scripts that may have triggered the trap so it
can clean up after them and resume normal operation.

Ok with core@.
2010-02-21 02:11:39 +00:00
darran
1bf14d4eef Add a MKDTRACE build knob for DTrace, off by default. 2010-02-21 01:48:03 +00:00
darran
01c9547e57 Apply NetBSD changes to DTrace.
Ok with core@.
2010-02-21 01:46:32 +00:00
mrg
19f4d68d7a s/D-cache/I-cache/ in some comments. 2010-02-21 00:57:44 +00:00
darran
bb8023b5c1 Add the FreeBSD 8-RC1 changes for DTrace.
Ok with core@.
2010-02-21 00:49:51 +00:00
christos
72f71b4cd6 default to the original behavior for $ENV unless POSIXLY_CORRECT is set. 2010-02-20 23:15:17 +00:00
joerg
808b2c3215 Remove a windows-only source file from the list. 2010-02-20 22:49:22 +00:00
ahoka
daea46045b Fix two problems with argc handling in bioctl(8), which makes
bioctl(8) dump core if expected arguments are not passed in.

Closes PR bin/39946 (patch by Juan RP).
2010-02-20 22:25:54 +00:00
roy
20fbb1c876 Use HOST_SRCS instead of adding to SRCS for hash.c 2010-02-20 19:04:48 +00:00
roy
47aa05b406 Use the pre-built hash table. 2010-02-20 17:02:33 +00:00
martin
d84669ba8d Select the shutdown method for secondary CPUs by available firmware
methods, not properties of the CPU.
Inspired by OpenSolaris, pointed out by eeh.
2010-02-20 16:46:38 +00:00
joerg
637b0cffec Rewrite argument processing to deal with spaces and other meta
characters in options. This was exposed by the "NetBSD 5.99" argument of
mandoc.
2010-02-20 15:04:03 +00:00
pooka
17a848cc03 printf -> aprint_normal to avoid empty linefeeds and partial messages
for AB_QUIET.
2010-02-20 14:52:22 +00:00
pooka
91f03c22e5 Fix snafu with error reporting in bulk transfers. 2010-02-20 13:56:29 +00:00
joerg
2c23e1b113 Add intermediate files to CLEANFILES. Explicitly include bsd.sys.mk to
ensure that HOST_SH is set, even when e.g. cleandir is used.
Noticed by Nicolas Joly.
2010-02-20 13:43:31 +00:00