Commit Graph

207537 Commits

Author SHA1 Message Date
tsutsui
b85690a33f Rename FRAME* macro to TRFS_FRAME* for readability and
workaround for powerpc builds. Pointed out by phx@.

XXX: <powerpc/frame.h> shouldn't pollute userland namespace anyway.
2011-12-18 14:45:23 +00:00
phx
e4739f1ffc Replaced conf_args by mainbus_attach_args. 2011-12-18 14:28:59 +00:00
njoly
e933eb3317 Lowercase arch strings, and add missing ones. 2011-12-18 13:40:08 +00:00
kiyohara
0d7ee07ee9 SYMTAB_SPACE. 2011-12-18 11:10:33 +00:00
tsutsui
cd383d3880 Restore __HAVE_MM_MD_READWRITE which was added for 5.99.53 in rev 1.14
but removed by merge botch on __HAVE_NEW_STYLE_BUS_H changes in rev 1.15.

Fixes "/dev/nvram: Device not configured" problem on installboot(8)
reported by David Ross.
2011-12-18 09:12:18 +00:00
dholland
7bbf82b772 WABPL is no longer considered experimental (has not been for some time)
so update its comment in config files.
2011-12-18 05:49:22 +00:00
tsutsui
6bb63ff72f Explicitly specify -m68020-60 to avoid possible 060SP instructions,
especially 64 bit integer mul/div ops in standalone bootloaders. From x68k.
2011-12-18 04:51:12 +00:00
tsutsui
d2d118fe98 Misc KNF and cosmetics. No binary changes. 2011-12-18 04:29:32 +00:00
tsutsui
09525416c6 PR port-next68k/45719 from Jaime Fournier:
Fix RELOC() (awful VA -> PA conversion) usage introduced to appease gcc45
 in rev 1.22.
2011-12-18 03:46:02 +00:00
dholland
12f78b170e adjust English usage in comment 2011-12-18 02:31:51 +00:00
kiyohara
c2cb48eba7 SYMTAB_SPACE. 2011-12-18 01:12:55 +00:00
wiz
707b092c0c New sentence, new line. Fix some markup. Bump date for previous. 2011-12-17 21:25:12 +00:00
wiz
1a45da71c8 Use more markup. Bump date for previous. 2011-12-17 21:24:40 +00:00
wiz
612e69e384 New sentence, new line.
Bump date for previous.
2011-12-17 21:21:59 +00:00
phx
9a274f082f Added NOR flash driver, using nor(4) and flash(4). 2011-12-17 20:20:37 +00:00
tls
6e1dd068e9 Separate /dev/random pseudodevice implemenation from kernel entropy pool
implementation.  Rewrite pseudodevice code to use cprng_strong(9).

The new pseudodevice is cloning, so each caller gets bits from a stream
generated with its own key.  Users of /dev/urandom get their generators
keyed on a "best effort" basis -- the kernel will rekey generators
whenever the entropy pool hits the high water mark -- while users of
/dev/random get their generators rekeyed every time key-length bits
are output.

The underlying cprng_strong API can use AES-256 or AES-128, but we use
AES-128 because of concerns about related-key attacks on AES-256.  This
improves performance (and reduces entropy pool depletion) significantly
for users of /dev/urandom but does cause users of /dev/random to rekey
twice as often.

Also fixes various bugs (including some missing locking and a reseed-counter
overflow in the CTR_DRBG code) found while testing this.

For long reads, this generator is approximately 20 times as fast as the
old generator (dd with bs=64K yields 53MB/sec on 2Ghz Core2 instead of
2.5MB/sec) and also uses a separate mutex per instance so concurrency
is greatly improved.  For reads of typical key sizes for modern
cryptosystems (16-32 bytes) performance is about the same as the old
code: a little better for 32 bytes, a little worse for 16 bytes.
2011-12-17 20:05:38 +00:00
phx
9a36cd1663 - In cfi_probe() iterate over all chip widths for every port width to find
x8/x16 configurations, or two x8 chips forming a x16 port width.
- The offset in cfi_cmd() is now always given for 64-bit port width.
  It will be scaled down for the actual port width to avoid problems
  with 0x2aa -> 0x554 instead of 0x555.
- Added missing cfi_reset_default() in cfi_jedec_id(). The reset is
  needed, because the chip was still in CFI-Query mode.
- Removed everything dealing with cfi_opmodes. It only complicates things
  and I found no reason for keeping them. The port width and chip width
  is known, so I just introduced a new cfi_read_qry() function which reads
  a single word using bus_space_read_N() from the QRY structure, which
  can be checked for 'Q', 'R' and 'Y'. That's all we need, before
  reading and unpacking the whole QRY and PRI structures.
- Added two new fields, cfi_unlock_addr1 and cfi_unlock_addr2 to
  the cfi struct. The unlock offsets should be kept variable, depending
  on the manufacturer or command set version.

Changes have been discussed with cliff@.
2011-12-17 19:42:41 +00:00
phx
a88be5a1e4 Allow defining a bus space with pbs_limit=0, which will have the effect to
create a space which ends with 0xffffffff.
This is needed, because pbs_limit=0xffffffff ends the space with 0xfffffffe.
2011-12-17 19:34:07 +00:00
apb
f93996848b Use mktime(3) instead of hand-coded equivalent.
Don't treat negative results as errors (we should be able
to handle years before 1970).

XXX: This still fails on 1969-12-31 23:59:59.
2011-12-17 19:14:10 +00:00
apb
7cf05991c0 Add some tests for dates several centures into the past and future.
These currently fail, but I'll fix that soon.
2011-12-17 19:07:34 +00:00
apb
e09f33bae5 Add some tests for timegm(3) close to the epoch. In
particular, 1969-12-31 23:59:59 should convert to (time_t)-1
with errno = 0.
2011-12-17 19:04:07 +00:00
tsutsui
e7c3c9d266 Update ftp.NetBSD.org IPv4/IPv6 addresses.
(should be pulled up to all release branches?)
2011-12-17 15:40:22 +00:00
kiyohara
1a43c47f50 Fix panic early call rasops_init(). Move into arcvideo_attach().
Also early attach arcvideo.
2011-12-17 14:51:07 +00:00
tsutsui
00e88a96fa Fix Bl/El unmatch. Pointed out by kano@. 2011-12-17 14:25:32 +00:00
wiz
38248e584c Remove trailing whitespace. 2011-12-17 14:12:44 +00:00
tsutsui
a7f5216f76 Add an rc.d(8) script for isibootd(8). Taken from ndbootd(8). 2011-12-17 13:37:49 +00:00
tsutsui
520f71412f Note isibootd(8) netboot server for luna68k. 2011-12-17 13:29:50 +00:00
tsutsui
17d9647811 Build and install isibootd(8). 2011-12-17 13:27:49 +00:00
tsutsui
87d308c17e Add isibootd(8) command, which is a dumb network boot server program
for the OMRON LUNA clients, like ndbootd(8) for Sun2 machines.

No particular comment on tech-userlevel@:
http://mail-index.NetBSD.org/tech-userlevel/2011/12/15/msg005872.html
2011-12-17 13:24:18 +00:00
apb
d560323cc4 Make "rndctl -L" overwrite the file with zeros, not with the
same data that was just read from the file.
2011-12-17 13:18:20 +00:00
apb
2066dd1e26 Add comments for some ioctls and structs; fix a typo in another comment. 2011-12-17 12:59:21 +00:00
he
eb489fae8a Commit regenerated configuration file after COPTS=-Os shuffle. 2011-12-17 12:45:14 +00:00
he
e1442234a8 Drop makeoptions COPTS=-Os for the SMALL030 kernel now that std.atari
contains it.
2011-12-17 12:44:12 +00:00
darcy
5bc4a2e2d4 Add option to include daily insecurity output in daily output.
PR bin/17029
2011-12-17 12:27:42 +00:00
sjg
3a4494dc38 The :@ example gives the impression that we encourage the ODE
convention of naming loop variables like .LINK., when in fact
single char variables are far more common in NetBSD.
2011-12-17 04:43:45 +00:00
joerg
41a3b9d2d6 Request always_inline for rumpclient__dofork, it won't work correctly
for vfork otherwise. Also give it the returns twice attribute to ensure
that the stack tainting is done recursively.
2011-12-16 23:19:28 +00:00
christos
dce4e18daf provide a root entry if one was not found. 2011-12-16 20:45:07 +00:00
drochner
cb4d5f3dcb support ECDSA keys used by recent ssh 2011-12-16 17:37:14 +00:00
drochner
2462eb040a disallow empty passphrases per default, and implement the "nullok"
option to allow it if the administator wishes, from FreeBSD
2011-12-16 17:35:09 +00:00
drochner
705315cdf8 -remove remainders of the misguided changes in revs 1.5-1.9
-iron out more unnecessary differences to FreeBSD
2011-12-16 17:30:12 +00:00
kiyohara
774c176dbe Increase SYMTAB_SPACE. 2011-12-16 15:59:57 +00:00
manu
ac705b5bee Do not tell about specific errno, as all xattr copying function
retuenrs error from extattr_list_file and extattr_get_file.
2011-12-16 15:21:13 +00:00
nonaka
7172feb3ab more clean D-cache. 2011-12-16 14:17:41 +00:00
skrll
3afe955de9 Whitespace. 2011-12-16 13:38:44 +00:00
wiz
4486afd401 Sort sections. Remove trailing whitespace. 2011-12-16 12:51:43 +00:00
wiz
a107b19ebf Split extattr(3) into two man pages to get rid of ugly duplicate Nd.
Work done by Abhinav Upadhyay with minimal cleanup.
2011-12-16 12:46:00 +00:00
skrll
4f97a985c4 G/C pvh_aliases 2011-12-16 12:45:04 +00:00
mlelstv
d07fe1b033 Apparently mknative didn't work right. Fix up losses. 2011-12-16 11:19:19 +00:00
manu
a3a1865132 Document a bug when processes hang on uvn_fp2. FWIW, hung process exhibit
this stack backtrace:
sleepq_block
mtsleep
uvn_findpage
uvn_findpages
genfs_getpages
puffs_vnop_getpages
puffs_vnop_checkop
VOP_GETPAGES
uvn_get
uvm_fault_internal
trap
copyin
uiomove
ubc_uiomove
puffs_vnop_write
puffs_vnop_checkop
VOP_WRITE
vn_write
dofilewrite
sys_write
syscall
2011-12-16 10:57:43 +00:00
manu
71a2942b6b Rework puffs_framebuf management toremove leaks and abusive reuses. On
exchange error, the puffs_framebuf is now freed immediatly, before
requeuing outstanding requests.
2011-12-16 05:34:54 +00:00