Commit Graph

166620 Commits

Author SHA1 Message Date
mrg 5913e24b1e support MKCRYPTO=no - tag ntp-keygen(8) with crypto. 2008-02-04 02:13:37 +00:00
riz e298de717f Add 'sha1' as one of the password ciphers to be chosen from at
install time.  Translations will need to be adjusted - I didn't feel
comfortable touching anything but .en and .de despite the relatively
simple adjustment...
2008-02-04 01:54:55 +00:00
hubertf f81f738d09 disclaim copyright 2008-02-04 01:28:20 +00:00
dholland f5334b0815 More assorted cleanup merged from larn 12.2. 2008-02-04 01:07:01 +00:00
tls e5bd2a127e Rework opencrypto to use a spin mutex (crypto_mtx) instead of "splcrypto"
(actually splnet) and condvars instead of tsleep/wakeup.  Fix a few
miscellaneous problems and add some debugging printfs while there.

Restore set of CRYPTO_F_DONE in crypto_done() which was lost at some
point after this code came from FreeBSD -- it made it impossible to wait
properly for a condition.

Add flags analogous to the "crp" flags to the key operation's krp struct.
Add a new flag, CRYPTO_F_ONRETQ which tells us a request finished before
the kthread had a chance to dequeue it and call its callback -- this was
letting requests stick on the queues before even though done and copied
out.

Callers of crypto_newsession() or crypto_freesession() must now take the
mutex.  Change netipsec to do so.  Dispatch takes the mutex itself as
needed.

This was tested fairly extensively with the cryptosoft backend and lightly
with a new hardware driver.  It has not been tested with FAST_IPSEC; I am
unable to ascertain whether FAST_IPSEC currently works at all in our tree.

pjd@FreeBSD.ORG, ad@NetBSD.ORG, and darran@snark.us pointed me in the
right direction several times in the course of this.  Remaining bugs
are mine alone.
2008-02-04 00:35:34 +00:00
mrg e972654d70 support MKCRYPTO=no:
- don't link -lssl -lcrypto
- -DNO_SSL_SUPPORT
2008-02-03 23:48:09 +00:00
christos ed13fe5855 fix posix_memalign; we are not going to support alignments > pagesize in
this implementation.
2008-02-03 22:56:53 +00:00
christos 342c547a73 regression test for posix_memalign 2008-02-03 22:56:13 +00:00
martin 4b72e076f4 Do not panic when trying to disestablish a pci interrupt. 2008-02-03 22:51:21 +00:00
mrg c2b313f307 bump NetBSD date. 2008-02-03 22:15:38 +00:00
joerg 42a6101c51 pkg_install-20080202 merged. 2008-02-03 21:28:38 +00:00
joerg 32cb208674 Catch up with pkg_install-20080202: pkg_info needs libarchive, libbz2
and libz now.
2008-02-03 21:27:27 +00:00
dholland c310e89d2d Once upon a time, larn 12.0 had functions named getchar() and putchar()
that conflicted with libc. We changed them to lgetchar() and xputchar()
respectively; larn 12.2 changed them to ttgetch() and ttputch(). After
reflecting on this for a while I've decided to adopt the larn 12.2
names; not so much for compatibility but for consistency going forward.
So, massrename them. Also make ttputch() static.
2008-02-03 21:24:58 +00:00
joerg 777b7d39b8 pkg_install-20080202 2008-02-03 21:21:30 +00:00
dholland e87aa9031c Don't create files mode 666 in /var. (The code in question is not enabled
by default, though.)
2008-02-03 20:41:53 +00:00
dholland 5c10491064 Larn does not need its own private versions of functions from <ctype.h>.
Also, remove the function gettokstr(), which is not used. From larn 12.2.
2008-02-03 20:11:04 +00:00
dholland b6e0b3d3c9 A long time ago, larn had code to prohibit playing it during work hours.
Most of this code was removed ages ago, probably when dm(6) was invented;
long before -r1.1 in the NetBSD tree in any event.

Now remove the last fragment of it.

Also nuke the file of US holidays 1987-1993 that we've been carrying
around for no reason.
2008-02-03 20:01:24 +00:00
skrll 149ffa5f3f Remove DBG=-g that snuck in. 2008-02-03 19:58:34 +00:00
chris 0cdb05c075 Use memmove rather than memcpy when moving rows around the framebuffer.
This fixes a problem where scrolling down fills the whole screen with the
first line on screen.
2008-02-03 19:38:29 +00:00
dholland ef066a156b Some assorted minor cleanups, from larn 12.2. 2008-02-03 19:29:50 +00:00
dholland d7ba3de791 Make a bunch of functions static. Merged from larn 12.2. 2008-02-03 19:20:40 +00:00
uwe f2d6229f80 Mark up PMFE_* list properly. 2008-02-03 17:18:18 +00:00
tsutsui b143589a1b No need to preserve RE_NTXDESC_RSVD on re_start(). 2008-02-03 17:14:35 +00:00
uwe b5fde352cb pmf_device_register() returns false on error. 2008-02-03 16:56:42 +00:00
chris 37f9401024 Fix-up boot32 to work on A7000+
Logically the previous code should have worked but didn't.  It appeared to
fail when reading the relocation table from physical memory.

To work-around this issue we now compact the relocation table (it shrinks
from ~800 entries to ~15 on a 2.5MB kernel)  The compacted table is small
enough to copy into the page of memory we use to do the relocations.  The
relocation code can now find the table, and carry out the relocations.

To help with debugging the screen border will change colour:
Red:   Running without the MMU turned on (IE 1-1 physical mapping)
       Note that the border will stay red a while as we're copying the
       kernel over at this point.
Green: We've finished copying the kernel over (unless the code breaks
       this will be rarely seen)
Blue:  We're running on the bootstrap L1 table, and just about to call
       the kernel.

Other tweaks include:
* copy the kernel 32bits at a time, rather than 8 bits at a time.
* assert that the relocations are 32bit aligned (so the above works)
* flush the cache and write buffers before turning off the MMU.

Tested by myself on an A7000+.  Tested by skrll@ on Risc-PC and A7000.
2008-02-03 14:59:16 +00:00
martin 27f2dfb174 Adjust assembler in_cksum code to new signature and re-enable it. 2008-02-03 13:27:12 +00:00
martin 6ba1a4c045 defflag CPU_IN_CKSUM 2008-02-03 13:25:57 +00:00
skrll c5f6417a84 Add bootinfo support for hppa.
Initially supply the booted kernel filename and symbol table information.

Create sysctl to access booted kernel.

Bump version of boot to 1.4
2008-02-03 12:09:40 +00:00
drochner d9459c5f21 share some code for USB root hub emulation which is common in the 3
host controller implementations, start with two little functions
which fake up string descriptors (which were inconststent, language
table fetching didn't interoperate with other code in the tree)
2008-02-03 10:57:11 +00:00
dogcow 8f7115c4c1 make it compile for the !defined(DEBUG) case. 2008-02-03 09:25:49 +00:00
matt a7a4e9f149 Preliminatry TC support. 2008-02-03 08:45:40 +00:00
matt 7a66d8d486 use memt instead of iot since everything is memory mapped. 2008-02-03 08:42:48 +00:00
matt 9c814f7331 Reorganize a bit to be able to support multiple sgmaps. 2008-02-03 08:41:22 +00:00
matt 62d5d69912 De-__P 2008-02-03 08:39:48 +00:00
matt 36cebfbb00 misc type cleanups 2008-02-03 08:37:40 +00:00
matt 4471287922 sysmachine uses lwp now. 2008-02-03 08:37:06 +00:00
matt 65f79aefb7 Make process_sstep use ANSI declaration. 2008-02-03 08:36:41 +00:00
matt 4b1e334f7e No need for RW_OWNER/RW_LOCK anymore 2008-02-03 08:35:33 +00:00
matt bae16e79c9 Add physaddr support from mbufs (commented out since it doesn't quite work
right yet).
2008-02-03 08:34:57 +00:00
matt 54c38b27ff Add {,_}atomic_cas_{32,ptr,uint,ulong}. Nuke rw_cas 2008-02-03 08:34:04 +00:00
matt c9c1064fa3 Switch this to use atomic_cas_ulong. 2008-02-03 08:33:00 +00:00
matt 67ba75fa05 Change IPL_SOFTBIO to 0x0b 2008-02-03 08:32:25 +00:00
matt 2395825b1c Add PMAP_VTOPHYS 2008-02-03 08:32:08 +00:00
matt 7fbe2ba862 Make sysmachine take a lwp instead of a proc. 2008-02-03 08:31:48 +00:00
matt 15753da255 Add cpu_intr_p (checks PSL_IS in PSL).
Change badaddr to take a volatile pointer
2008-02-03 08:31:09 +00:00
matt 0ae740580b change all u_int{8,16,32}_t to uint{8,16,32}_t 2008-02-03 08:30:19 +00:00
matt 350555cd1f Add the .C versions for the atomic ops. 2008-02-03 07:46:38 +00:00
tsutsui 0dd140599f Use some loops to prime the cache on measuring the PCC clock frequency.
As per the similar code on mips ports (though no visible difference).
2008-02-03 07:31:21 +00:00
matt 06531ceafe Add a syntax-only target which attempts to compile the entire kernel as one
entity.  Think of it as super-lint.  Due to bugs in the GCC C frontend it
doesn't quite work right but it does provide useful feedback.
2008-02-03 06:46:29 +00:00
xtraeme 4d24afd74c Xref wdogctl(8). 2008-02-03 06:41:39 +00:00