Commit Graph

50479 Commits

Author SHA1 Message Date
chopps
3357b52e9b fix for sockaddr's that are bigger than standard sockaddr's (e.g., iso) 1999-04-01 08:14:11 +00:00
chopps
20a608fe88 revert the previous changes that removed special cased ioctls for ISO
stuff.
1999-04-01 08:12:23 +00:00
chopps
71f81a6eb6 add back the SIOCxxx_ISO ioctl's that were eroneously removed previously 1999-04-01 06:51:48 +00:00
simonb
f36bd65f46 Build the full MI libsa for the first stage bootblocks rather than
picking the bits we wanted explicitly, taking advantage of some of the
recent code-size trimming from cgd.  There's now no duplication if libsa
code in sys/arch/pmax/stand.

As a bonus, we now have 416 bytes free in stage one (up from 80), and
will all of Chris' space saving options enabled (these are commented out
in scsiboot/Makefile), theres over a 1kB free.
1999-04-01 06:05:04 +00:00
simonb
971284a4ed Add support for LIBSA_SINGLE_DEVICE and LIBSA_SINGLE_FILESYSTEM. 1999-04-01 05:52:38 +00:00
simonb
6db650781c Don't compile in sanity checks for old file systems if
LIBSA_NO_COMPAT_UFS is defined.
1999-04-01 05:27:54 +00:00
simonb
8f8c1f41d9 It's no use having a memcmp() that calls bcmp() if there's no bcmp() in
the SA library.  Basically copied from ../libkern with a few less #if's
and #include's.
1999-04-01 05:12:20 +00:00
cjs
668efbbcec Change mount_critical_filesystems() so that if given an argument
of "local" it will not mount filesystem types it identifies as
network file systems (currently just nfs). Call the function twice,
before networking starts with arg "local", after networking starts
with arg "network". Remove critfs_require_network as is now redundant.
1999-04-01 03:58:44 +00:00
cjs
cfd3563966 Improve documentation. 1999-04-01 02:49:12 +00:00
simonb
e46b652af6 bestsize is unused if ALLOC_FIRST_FIT is defined. 1999-04-01 02:41:08 +00:00
thorpej
2f832df90c Do proc0's TSS and LDT initialization at the end of configure() (i.e.
once the FPU has been attached).
1999-04-01 00:37:50 +00:00
simonb
6ce60662b5 Sync with src/lib/libc/string/bcmp.c 1999-04-01 00:30:39 +00:00
simonb
40d7b63c49 Slight cleanup - no functional change. 1999-04-01 00:27:49 +00:00
thorpej
4fd2edfbe8 mbinit() can now allocate memory. Update a comment accordingly. 1999-04-01 00:23:25 +00:00
thorpej
c431ebc42f Call cpu_startup() immediately after uvm_init(), but before mbinit().
Call configure() directly immediately after config_init().

This causes autoconfiguration to happen at the same time as before, but
creates some kernel submaps earlier, so that e.g. mbinit() can now
allocate memory.
1999-04-01 00:22:45 +00:00
thorpej
967b8c433c Don't call configure() from cpu_startup(). 1999-04-01 00:17:45 +00:00
thorpej
ed8849cd5a Define __POOL_EXPOSE to get at the guts of the pool descriptor. 1999-03-31 23:25:46 +00:00
thorpej
278e7ae222 Yet more fixes to the pool allocator:
- Protect userspace from unnecessary header inclusions (as noted on
current-users).

- Some const poisioning.

- GREATLY simplify the locking protocol, and fix potential deadlock
scenarios.  In particular, assume that the back-end page allocator
provides its own locking mechanism (this is currently true for all
such allocators in the NetBSD kernel).  Doing so allows us to simply
use one spin lock for serialized access to all r/w members of the pool
descriptor.  The spin lock is released before calling the back-end
allocator, and re-acquired upon return from it.

- Fix a problem in pr_rmpage() where a data structure was referenced
after it was freed.

- Minor tweak to page manaement.  Migrate both idle and empty pages
to the end of the page list.  As soon as a page becomes un-empty
(by a pool_put()), place it at the head of the page list, and set
curpage to point to it.  This reduces fragmentation as well as the
time required to find a non-empty page as soon as curpage becomes
empty again.

- Use mono_time throughout, and protect access to it w/ splclock().

- In pool_reclaim(), if freeing an idle page would reduce the number
of allocatable items to below the low water mark, don't.
1999-03-31 23:23:47 +00:00
scottr
5364339415 If'n you change the name of the .o file, you really ought
to change the entry point, too.
1999-03-31 20:45:06 +00:00
is
34812462c1 revert last change, it was bogus 1999-03-31 19:22:56 +00:00
mycroft
f145c291bd If copyout() fails, make sure to unbusy the mount point before returning. 1999-03-31 19:18:45 +00:00
kleink
825dd7f56f It's big endian. 1999-03-31 19:18:36 +00:00
is
c49b6be6b4 synchronize 1999-03-31 19:06:34 +00:00
mycroft
0622545249 Previous change to vn_lock() was bogus. If we got EDEADLK, it was from
lockmgr(), and it already unlocked v_interlock.  So, just return in this case.
1999-03-31 18:30:13 +00:00
kleink
dccf2a15e4 While in transition, conditionally rename _ASM_LABEL(cerror) and
_ASM_LABEL(curbrk) to _C_LABEL(__cerror) and _C_LABEL(__curbrk), respectively,
depending on the object format chosen, to avoid user namespace clashes.
1999-03-31 18:14:27 +00:00
jonathan
42a6bc2104 Revert handling of divide and remainder assembler pseudo-ops (with
test for divide-by-zero, unlike machine insn) from the binutils-2.9.1
sequence to the older binutils-2.8.1 sequence.

gas 2.8.1 emits a div as (in pseudocode)
	divu $zer0o, a0, v0; bnez $v0, 1f; nop; break0x7; 1: mflo a0;

gas 2.9.1 emits the shorter sequence
	bnez <divisor>, 1f; divu <args>; break0x7;  1:
	 bnez $v0, 1f;  divu $zer0o, a0, v0; /break0x7; 1: mflo a0;

but that on a decstation 5000/150 with a rev 3.0 r4000, for kernel
code, later references to $a0 seem to get a corrupted value.  not
reproduced yet on an r4400.
Could be an r4000-specific bug with the interlock on mulhi and mullo?
1999-03-31 18:01:31 +00:00
cgd
bd44d9c286 as pointed out by simonb, since we've moved to ELF __main() calls
aren't emittid anymore.
1999-03-31 16:12:51 +00:00
minoura
35b6e71f52 Enable rnd. 1999-03-31 15:38:32 +00:00
minoura
004b01c5ba Some trivial size reductions. 1999-03-31 15:38:06 +00:00
drochner
5faf61eaf6 add some notes and an example 1999-03-31 15:37:47 +00:00
drochner
719a8b0d1d add some notes and an example 1999-03-31 15:15:57 +00:00
scottr
0848c89c55 The last change wasn't quite enough to build libc during a 'make build'.
Bump DFLDSIZ, too.
1999-03-31 14:58:15 +00:00
mycroft
83cb600015 Enable rnd. 1999-03-31 14:29:33 +00:00
minoura
d264521334 Mapped copy was always disabled. 1999-03-31 14:22:21 +00:00
minoura
e58c614810 CADDR1 and CADDR2 should not be used here. 1999-03-31 14:18:49 +00:00
mycroft
94590084d7 Enable rnd. 1999-03-31 14:16:20 +00:00
pk
65707bd131 * Pull in more uvm prototypes.
* Retrieve MID on all modules.
1999-03-31 14:09:09 +00:00
jonb
1c77e14aab I am unable to find anything or anyone using /usr/include/ns32k,
and its presence makes pax unhappy.
1999-03-31 13:15:09 +00:00
mrg
833fb0ac7f back date this file to version 1.155 which works on the shark. 1999-03-31 12:44:04 +00:00
mrg
920344b9c2 put back #ifdef _KERNEL that broken xosview build. 1999-03-31 12:29:51 +00:00
bouyer
c8b2b59bcc According to Bill Paul <wpaul@ctr.columbia.edu>, only the baseboard variant
of the Compaq NetFlex 3/P uses a Thunerlan TNETE100 chip. The PCI variant
use some other PCI chip the ThunderLAN driver can't handle yet.
Also, correct SYNOPSYS.
1999-03-31 12:19:57 +00:00
lukem
3ebdcecd65 don't use warn() in initgroups(); it's not documented to do that, and
if stderr isn't valid the caller may dump core.
from Giles Lean <giles@nemeton.com.au> in [lib/7273]
1999-03-31 12:19:32 +00:00
kleink
5af7e7a902 Change references to end' to _end' as not to invade (or being invaded by)
the user's name space.
1999-03-31 11:53:07 +00:00
kleink
7a5c45dac4 * Make usage string reflect reality,
* declare internal utility functions static,
* remove unneeded workarounds for bogus -Wuninitialized reports,
* delint.
1999-03-31 11:26:45 +00:00
bouyer
bb47e5aecf Increase some DELAY(), this seems required on some hardware (I'm not sure if
the hardware is at fault, or if DELAY(1) waits for less than 1us).
Improve debuging messages for wdcreset_wait().
1999-03-31 11:18:31 +00:00
kleink
aa7e5483ed Import tzdata1999d. 1999-03-31 11:10:14 +00:00
leo
98732be4ba Export mtpr.h :-( This is because cpu.h depends on it. Probably userland
should not need cpu.h...
1999-03-31 10:48:00 +00:00
kleink
cc04c972f1 Whitespace pasto in previous. 1999-03-31 10:47:51 +00:00
leo
1f1a598094 Match changes to ..../vme/et4000.c driver. (Julian Coleman). 1999-03-31 10:45:36 +00:00
leo
968286a826 From Julian Coleman:
- there are a couple of registers that are reset after the X server finishes,
   which do not have the same values as they do when the machine is powered
   on. If the two are mismatched you can't write to the video memory.
 - video memory is mapped at offset 4MB to keep the X server happy
 - there is now a VGA memory mapping
 - DEBUG_ET4000 is now a bit more useful for debugging!
1999-03-31 10:44:15 +00:00