Commit Graph

70035 Commits

Author SHA1 Message Date
uch
0500ddb633 [R3900/R3920] sync with
| Module Name:	syssrc
 | Committed By:	nisimura
 | Date:		Sat Sep 16 07:20:17 UTC 2000
2000-09-18 18:17:32 +00:00
bjh21
35dc9595d6 Move the user structure for process 0 into the same page as its stack segment,
the same as for every other process.  It probably doesn't matter, but it makes
me feel more comfortable.
2000-09-18 18:01:39 +00:00
ad
e9705f4d86 First argument to secure_path() is const. XXX Why is it re-declared here? 2000-09-18 16:57:11 +00:00
abs
762a48a1a4 Do not use 'Ar' for literal arguments, update Dd 2000-09-18 16:47:11 +00:00
ad
bd01b5c282 - Sort function decls.
- Remove duplicate decl.
- First arg to secure_path() is now constant.
2000-09-18 16:37:23 +00:00
ad
8b2c913445 - Simplify code path.
- Make the first argument to secure_path() constant.
- KNF.
2000-09-18 16:36:33 +00:00
ad
0940cdc61d Clarify a comment. 2000-09-18 16:27:24 +00:00
ad
da436beb73 Add a LIBRARY section. 2000-09-18 16:02:41 +00:00
ad
5ab843adef - sizeof(), not constants.
- snprintf() will always terminate the output string.
- Spacing.
2000-09-18 16:00:41 +00:00
nonaka
0079d5e3ba Added installboot program. 2000-09-18 15:44:09 +00:00
abs
75155d4d12 Switch centre to -C from -c. Now different from FreeBSD, but avoids conflict
with Solaris, Linux and others.
2000-09-18 13:42:53 +00:00
sommerfeld
5ac29b83b7 Don't prematurely terminate log message on a 0x80 character 2000-09-18 13:04:53 +00:00
msaitoh
7d8e2a2ecb etc files for evbsh3 2000-09-18 12:58:55 +00:00
darrenr
8c0d804feb fix problems building a distribution on i386
re. PR's 11023, 10991, 10978 (others ?)
2000-09-18 11:56:09 +00:00
wdk
513cc0ca27 Linker script for building first stage bootstrap. Due to bugs/limitations
in the MIPS prom loader we have to be very careful how the sections are
ordered and the number of sections defined.   For this reason the standard
linker scripts cannot be used.

The exact rules don't appear to be documented and a little experimentation
is required.
2000-09-18 11:48:29 +00:00
wdk
a3ec172607 Initial commit of a 2 stage bootloader for NetBSD/mipsco. Based on pmax
and alpha ports.

Uses PROM standalone I/O functions but due to the lack of a lseek function
it currently only works with version 5.40 of the firmware.  A more portable
solution is being worked on.

installboot utility requires several changes in order to correctly install
the bootstrap code - there is a "volume directory" which contains a list
of filenames, start sectors and length.  We need to add a "boot" entry of
the correct length starting at block 2.  The boot file has to be ecoff
which means we waste another 0.5k

Normally the Mips filesystem has a ~500k partition for this purpose but it
should be possible to squeeze it all into the first 7k "BSD Style" (1k is
required for 2 different copies of the partition table)

Only the bootxx_ffs first stage bootstrap has been tested via bootp() which
loads the second stage off disk and then boots the kernel.
2000-09-18 11:40:46 +00:00
wdk
82951d0f48 MD files for NetBSD/mipsco 2000-09-18 11:00:33 +00:00
abs
7dea4938ea If device and mountpoint are given without -t, and without a : in the
device, check the disklabel for filesystem type. Fall back to ffs as ever.
2000-09-18 10:48:23 +00:00
msaitoh
cf09304c21 G.C. 2000-09-18 07:25:42 +00:00
msaitoh
d41a8befab evbsh3's ramdisk dirs to make ROM image.
This is example.
2000-09-18 07:21:01 +00:00
jsm
ca5dbcecd4 Add missing initialisers (avoid gcc -W warnings) and comments giving
room numbers.
2000-09-18 06:14:31 +00:00
jsm
819ea9d1a6 Clean up formatting; partly from OpenBSD. 2000-09-17 23:04:17 +00:00
jsm
31b523eee5 Patches from OpenBSD: add verbs "open"/"unlock" (essentially a no-op),
and "verbose"/"brief" (in verbose mode, always show long room
descriptions), and synonyms "papaya" for "papayas" and "coconut" for
"coconuts".
2000-09-17 23:03:43 +00:00
toshii
faf55ac40c Change tiocm_to_{com,zs}'s second argument to u_long to match with
the type in their caller.
2000-09-17 22:07:39 +00:00
is
1a0314541e Use INSTALL kernel instead of GENERIC for miniroot. 2000-09-17 21:11:09 +00:00
is
06d6fdab8f Now that we use an INSTALL kernel on the miniroot, give the user the
opportunity to install the GENERIC from kern.tgz.
2000-09-17 21:07:10 +00:00
mrg
9a3cd1d826 finish porting these from the sparc versions. they are mostly correct
now though the install instructions could still do with some more work
and expansion....
2000-09-17 21:03:32 +00:00
eeh
264b1139cd Prevent the compiler from blowing up on sparc64. From mrg. 2000-09-17 19:55:28 +00:00
eeh
0596b6b6dc Make the improved %tick changes work with machines that use the counter-timer
for the clock.
2000-09-17 19:23:37 +00:00
is
eefbc5a70e When building a release, build miniroot and installation notes automatically,
too. Patch by Michael Hitch.
2000-09-17 19:04:39 +00:00
is
ff3205e665 Make this build again. Fixes by Michael Hitch. 2000-09-17 18:24:12 +00:00
eeh
903720d945 Add bus_space*stream*() methods. I hope they work. 2000-09-16 14:07:58 +00:00
eeh
45de780533 Wrong register in machine code description. 2000-09-16 14:04:30 +00:00
minoura
bf7d1f145b - Correct options for installboot.
- sed is not in the ramdisk, since it is too large.
2000-09-16 13:12:09 +00:00
ichiro
60095a9e92 regen. 2000-09-16 11:46:17 +00:00
ichiro
de4b3b44f1 delete "128MB"
same products number; 32MB,64MB,128MB
2000-09-16 11:45:38 +00:00
itojun
691fdbb4f0 kame sys/netinet6/icmp6.c 1.140 -> 1.144
>   in the check for the incoming redirect message, examine the gateway
>   (from the routing table) only when the address family of the gateway is
>   AF_INET6.
2000-09-16 10:12:22 +00:00
wdk
74fa574688 * Add INET6 and IPSEC support.
* Enable vnd driver for creating a working miniroot.
2000-09-16 09:35:38 +00:00
wdk
0b445f157e Add missing align argument to uvm_map() which was missed by thorpej during
original commit.
2000-09-16 09:18:01 +00:00
wdk
da962aaad5 Add support for bootinfo structure to be passed from 2nd stage bootstrap.
Pass symbol table information to DDB if available.
2000-09-16 08:34:26 +00:00
wdk
780256a327 Prototype prom_ioctl 2000-09-16 08:27:58 +00:00
wdk
b57fe26ada Write a NetBSD disklabel to 2nd sector while retaining the Mips volume
header in the ist sector.   We now use the NetBSD label in preference
to the Mips Volume header.
2000-09-16 08:27:16 +00:00
nisimura
70a97ab16c Introduce new MIPS1 direct mapped cache capacity detection logics. 2000-09-16 07:20:16 +00:00
jeffs
36c4252a17 Re-enable SR IE bit before calling syscall(). Matches Tohru's mips1 change. 2000-09-16 06:57:21 +00:00
nisimura
2982d7707b There is no need to handle processor master interrupt mask SR_INT_IE
in syscall() anymore.  By defition, processor was in SR_INT_IE turn
on prior to have syscall exception.  MIPS1 assembler hook arranges
to enable the bit for its own.  MIPS3 does the same effect by
turning off EXL bit.
2000-09-16 05:07:06 +00:00
nisimura
f4b74d3898 - Reimplement MIPS1 cache size dectection logic taking advantage of the
fact the direct mapped cache makes address alias effect.
- Just turn on processor master interrupt mask IEc (SR_INT_IE) bit prior
  to call syscall() kernel entry point.  IEp is always 1 in this case
  by defition.
2000-09-16 04:54:44 +00:00
simonb
3db7ffbbce Add a (commented out for now) VNODE_OP_NOINLINE options line, and mention
that it makes smaller and possibly slightly faster kernels.
2000-09-16 00:09:14 +00:00
simonb
4afcecdc80 Use VNODE_OP_NOINLINE - saves about 17k off the INSTALL kernel size. 2000-09-16 00:06:56 +00:00
chuck
9dc2f5ced0 IDT32364's Config register uses a different base for IC/DC (instruction
and data cache sizes).   R4000 uses 2^(12+IC) and 2^(12+DC).  IDT32364
uses 2^(9+IC) and 2^(9+DC).

abstract around the problem by making the base a parameter to the
MIPS3_CONFIG_CACHE_SIZE macro.   we pass the base down from mips_vector_init
to mips3_vector_init and to mips3_ConfigCache (where it is used).

XXX: someone with an MIPS3_4100 should switch to this and get rid
of the ugly ifdefs in cpuregs.h
2000-09-16 00:04:57 +00:00
abs
3b81524ad0 if readboot() calls pfatal(), we need to print a \n before exiting 2000-09-15 22:11:41 +00:00