Commit Graph

761 Commits

Author SHA1 Message Date
matt
8e06ef5a52 If using egcs, use -mno-pic to generate better code. 1999-01-17 19:09:00 +00:00
chuck
bef8ae1103 MNN is no longer optional 1999-01-16 20:49:12 +00:00
bouyer
f20d50fae4 Add byte_swap.h here too. 1999-01-16 02:31:54 +00:00
bouyer
dc306354b0 Move the bswap functions from libutil to libc (this bups the
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
1999-01-15 13:31:15 +00:00
drochner
35eeb3f1cd remove dummy "load_font" entries 1999-01-11 21:54:22 +00:00
thorpej
e598335d1c Garbage-collect `mbutl'. 1999-01-09 22:10:12 +00:00
augustss
fc5f9ee81d Add -Wpointer-arith warning since `void *' arithmetic is not ANSI C. 1999-01-08 19:26:12 +00:00
ragge
bc0985cb97 Make SCSI work on VS3100/m76 also. From "maximum entropy". 1999-01-06 14:54:45 +00:00
ragge
d0e7a99a8a Giant change: NBPG now set to 4k and CLSIZE == 1 for vax. This change
made a whole bunch of annoying bugs disappear; mostly depending on
bad use of NBPG in non-MD code. The VAX port was the only port that
used this historical "feature".

The CL* macros should probably go away totally, there is no reason
at all to keep them.
1999-01-01 21:43:17 +00:00
ragge
1678119a36 A little better support for 'trace' command. 1999-01-01 21:25:03 +00:00
ragge
6036a3463e Fix bufpages miscalculation. At the same time, make bufpages configurable
att compile time.
1998-12-19 20:06:36 +00:00
ragge
75c1333e8e A "return 1" should be "return 0". Caused machine to crash as soon as
it started paging.
1998-12-19 20:03:23 +00:00
kleink
1b6a24c1d4 Support for compound statements enclosed in parenthes to appear as
expressions is a GNU C extension; mark as such them with __extension__ to
suppress portability warnings.  Addresses kern/3562 and misc/6185, as suggested
by Dave Sainty <dave@dtsp.co.nz>.
1998-12-16 11:11:02 +00:00
ragge
5fb70e2fcc Use vt100 console emulation instead of sun. :-) 1998-12-10 18:24:52 +00:00
ragge
3a8728fa4f Fix deadlock bug. Pointed out by maximum entropy. 1998-12-09 19:02:31 +00:00
ragge
5ff97947fe Search for NCR controllers, but not on VS4000/60. 1998-12-06 14:33:54 +00:00
ragge
fec054bd9a Simple hack to get at least PIO functionality out of the VS2000/3100 ncr5380.
Fixed by Jens Arvid Nilsson.
1998-12-06 13:55:09 +00:00
thorpej
da572a137f Argh, fix the ANSI CPP version of the a.out WARN_REFERENCES(). 1998-12-02 21:16:46 +00:00
thorpej
a6f7e0c05a Implement WARN_REFERENCES(). 1998-12-02 00:58:42 +00:00
ragge
6e9aa26bb0 Fix disk size identifier bug. 1998-11-30 22:27:32 +00:00
ragge
133ae4e0b7 Wall fix. 1998-11-29 15:12:57 +00:00
ragge
b5c0d58042 vm_offset_t -> vaddr_t. Count up memory here. 1998-11-29 15:12:23 +00:00
ragge
09cbabdb40 Don't map in unnecessary pages. 1998-11-29 15:09:10 +00:00
ragge
6c5df58799 Protect against multiple inclusion. Struct needs at least one argument. 1998-11-29 15:06:02 +00:00
ragge
dbcd5013d0 blkclr -> memset. 1998-11-29 15:04:56 +00:00
ragge
3fec5558a2 uvm_km_alloc -> uvm_km_zalloc. 1998-11-29 15:04:36 +00:00
ragge
a2d54053dc Fix (small) segv bug. Recognize in-kernel trace and breakpoint traps. 1998-11-29 15:04:05 +00:00
ragge
2298227965 Remove support to execute reno/ultrix binaries. It doesn't work, and
must be done in another way to work.
1998-11-29 15:01:49 +00:00
ragge
015d31ae8d - Save R/M bits after a page is unmapped.
- Keep track of mapping count (for statistics).
- vm_offset_t -> vaddr_t/paddr_t.
- Move away counting of available memory.
1998-11-29 14:55:04 +00:00
ragge
f07a586dc6 the btoc/ctob/btop macros must use CLBYTES, not NBPG. How this should
work in the long run is an open issue; some parts must be reworked
in a MI way.
1998-11-29 14:48:51 +00:00
ragge
c738e45cd6 Memory disk support. 1998-11-29 14:31:53 +00:00
ragge
237ff74c36 Fix kcopy fault-handler saving.
Get kernel last address from boot instead.
1998-11-26 21:21:06 +00:00
hwr
59acb69be1 Add (commented out) 'gre' pseudo device line. Feedback is welcome.
Inspired by Klaus Klein.
1998-11-25 20:30:44 +00:00
thorpej
5f0577babc Adapt to the new scsipi_adapter interface. 1998-11-19 21:43:00 +00:00
mrg
db3051d720 fix problems in many d_mmap routines:
- returned EOPNOTSUPP rather than -1.
	- no check for negative offset.
many of these fix potential security problems in these drivers.


XXX XXX XXX
the d_mmap cdev routine should be changed to have a prototype like:
	paddr_t (*d_mmap) __P((dev_t, off_t, int));

by someone!
1998-11-19 15:38:20 +00:00
oster
cf5710c839 Added a (commented out) configuration line for the RAIDframe device driver. 1998-11-16 16:44:55 +00:00
mrg
ae0c22f1b1 move vax "options UVM" from GENERIC to std.vax 1998-11-16 04:32:56 +00:00
oster
c74d32c5fc Updating of bdev's and cdev's to support RAIDframe. 1998-11-13 04:47:03 +00:00
matt
3e6d4553d9 Make DHCP/BOOTP the default for VAX net booting 1998-11-11 15:49:02 +00:00
thorpej
cabecee13c Changes to support fork_kthread():
- cpu_set_kpc() now takes void *arg third argument, passed to the
  entry point.
- cpu_fork() allows parent to be non-curproc iff parent is proc0.
  When forking non-curproc, assume its state has already been saved.
- Adjust various pieces of machine-dependent code to account of all of this.
1998-11-11 06:43:49 +00:00
ragge
f040374f11 Support for KA820 console RX50. From 4.4, ported to NetBSD by Sergey Svishchev. 1998-11-07 20:58:09 +00:00
ragge
b6158fa5e3 EGCS fixes. Implement htons as a C macro instead of asm; generates as
good code as the asm implementation _and_ can be optimized.
1998-11-07 17:22:58 +00:00
ragge
fbed93d50d EGCS fixes. 1998-11-05 19:48:04 +00:00
ragge
bee167375f EGCS fixes + TU81 fix. 1998-11-05 19:47:20 +00:00
ragge
3467859667 EGCS fixes. 1998-11-05 19:46:18 +00:00
matt
b26897f295 Initial bus_space support routines (should be common across
all platforms and buses).
1998-10-27 21:19:48 +00:00
matt
4cbbe0abff Latent support for revamped "local bus" support. 1998-10-27 21:18:52 +00:00
ragge
42ed21663a Make boot recognize MSCP disks on VAX8200. From Sergey Svishchev. 1998-10-21 20:16:33 +00:00
tron
b296275bb4 Defopt SYSVMSG, SYSVSEM and SYSVSHM. 1998-10-19 22:09:13 +00:00
ragge
18b6b32a67 Support for DWBUA (BI to Unibus adapter) and KLESI-B (TMSCP tape ctlr) added. 1998-10-18 18:47:18 +00:00
drochner
2468738337 change handling of libkern:
-sys/lib/libkern builds as library per default (as it was documented all
 the time)
-ports able to LKM set "KERN_AS=obj" explicitely in their Makefiles
 (for now; should depend on actual "option LKM" or -better- functions
 included for LKM use should be pulled in by a stub)
-always link libcompat before libkern - libkern stuff can be referred to
 by libcompat, but not the other way
1998-10-15 18:37:13 +00:00
matt
a9a911bdba Add .type pseudo-ops needed for shared libraries. 1998-10-15 06:01:11 +00:00
matt
1163f713bb Make DBL_MIN and DBL_MAX makes limits.h (otherwise CPP complains when
building xlint).
1998-10-10 02:13:55 +00:00
thorpej
908cdfe4e3 Add scsibus entry points to the cdevsw[]. 1998-10-10 02:00:49 +00:00
thorpej
29d472f53d Garbage-collect the open_target_lu and close_target_lu entry points from
struct scsipi_adapter; they were not used.

Add a scsipi_ioctl entry point to struct scsipi_adapter.  This will be
used to issue ioctl commands to the host adapters.

Inspired by PR #6090, from Matt Jacob.
1998-10-10 00:28:28 +00:00
matt
832a061bca Fix some old mistakes when I originally committed this. 1998-10-09 06:20:06 +00:00
matt
c4ece7cdcb Commit out include of "../include/macros.h" since its bcopy conflict with
the one in "lib/libsa/stand.h".
1998-10-09 06:15:33 +00:00
matt
71364ebea6 Workaround problem with le driver forgetting its address 1998-10-09 06:14:22 +00:00
matt
3d8c929799 Remove define for SUPPORT_BOOTPARAMS and put in the Makefile instead.
Fix DHCP code so it works.
1998-10-09 06:13:30 +00:00
matt
7d79b82d33 include <bsd.prog.mk> and make changes so that "make obj" works.
Make it easy to build an boot which uses BOOTP/DHCP instead
RARP/BOOTPARAMS.
1998-10-09 06:12:31 +00:00
matt
bbf29cff44 Add strncpy (needed for bootp/dhcp). Tighten up some of the assembly. 1998-10-09 06:09:48 +00:00
thorpej
d681cf055a configure() prototype is in <sys/device.h> 1998-10-06 20:50:15 +00:00
thorpej
fedd39b57d Provide configure(), rather than open-coding it in cpu_startup(). 1998-10-06 20:46:01 +00:00
matt
75f5ffdf21 Change backplace0 to mainbus0 (for consistency with other ports).
Remove unused function protocols from ka410.h and ka43.h
Fix some ka46 missing references
1998-10-06 04:04:30 +00:00
matt
af8a94ec80 Code references should use movab, not moval. Fix gas-2.9.1 complaints
with intvec.s
1998-10-06 02:07:30 +00:00
thorpej
5006dbf868 cpu_set_kpc() prototype is already in <sys/systm.h>. 1998-10-05 22:11:15 +00:00
drochner
41c0179c3c use old sigmask in sigcontext and old sigreturn syscall in Ultrix
emulation mode
1998-10-02 19:25:33 +00:00
christos
cfd3302aa1 Need more room for signal mask 1998-10-01 19:00:06 +00:00
ragge
6530a14556 Typo. 1998-09-30 18:40:04 +00:00
ragge
c0b9fc5616 Make kernel compile after recent signal changes. 1998-09-30 14:09:59 +00:00
thorpej
b9a131261c Define the new sigcontext structure. 1998-09-17 04:54:51 +00:00
thorpej
70e641047c In cpu_coredump(), use MID_MACHINE rather than MID_* (whatever it expands
to).
1998-09-09 11:17:24 +00:00
thorpej
8abe0d6b1c Adjust for the new "reaper" kernel thread: do not free the vmspace and
u-area in machine-dependent code.  Instead, call exit2() to schedule
the reaper to free them for us, once it is safe to do so (i.e. we are
no longer running on the dead proc's vmspace and stack).
1998-09-09 00:07:48 +00:00
lukem
c9db84ecc9 distclean is a synonym for cleandir 1998-09-05 15:15:14 +00:00
ragge
58831dae59 Bug fixes and improvements. By Roar Thronæs and myself. 1998-08-31 19:20:24 +00:00
ragge
25f04a8abb Support for all 4 console lines on KA820. Support for this written
by Sergey Svishchev (svs@ropnet.ru).
1998-08-31 18:43:28 +00:00
cgd
5fa7eee1ff don't define __BUS_SPACE_COMPAT_OLDDEFS by default. As stated in
bus_space(9), if drivers want it (they shouldn't; easy to convert) they
can define it right before including bus.h.  There's been a release since
the interfaces were (slightly) changed, and no code in the source tree
uses the old interfaces as far as I can tell.
1998-08-30 23:40:14 +00:00
ragge
218681f3e5 Kernel stach should be 4K, not 32K. Increase MCLSHIFT to 11.
Remove ovbcopy().
1998-08-25 17:35:23 +00:00
ragge
e727d1e031 Must #define __warn_references if not GNUC. 1998-08-22 12:12:38 +00:00
ragge
00475fbb1f New times, new pagesize, use magic number in exec header. 1998-08-22 09:16:45 +00:00
ragge
6aba9c11ff VAX logical page size increased to 4k. 1998-08-21 13:46:38 +00:00
ragge
b3574d3923 VAX logical page size increased to 4k. 1998-08-21 13:41:09 +00:00
matt
f1a6a0936f The VAX46 (VS4000) needs the clock stuff the VAX43 does... 1998-08-20 23:52:42 +00:00
ragge
fb9171df3d Fix write/read of memory. 1998-08-20 16:47:11 +00:00
matt
5232b66bd5 Initial steps to getting the VAX to use the MI driver framework. 1998-08-18 23:55:00 +00:00
mycroft
62b1bf3e2e Assign my copyrights to TNF. 1998-08-15 10:51:16 +00:00
mycroft
6dc903202f Assign my copyrights to TNF. 1998-08-15 10:10:47 +00:00
eeh
a2dd74ed79 Merge paddr_t changes into the main branch. 1998-08-13 02:10:37 +00:00
ragge
2c639fb882 Cache and microsecond clock resolution on KA46. 1998-08-11 17:52:57 +00:00
ragge
9f13823e62 Support for VS4000/60. Some needs-count -> needs-flag. 1998-08-10 14:48:53 +00:00
ragge
c355f4a0ed Support for VS4000/60. 1998-08-10 14:47:16 +00:00
ragge
2ff84b0fe4 Kickoff xmit interrupts, needed on chip DC7201. 1998-08-10 14:41:16 +00:00
ragge
972b94efc4 Basic support for VS4000/60. 1998-08-10 14:31:07 +00:00
ragge
e9534620b0 Netboot support for KA46 (VS4000/60). 1998-08-08 16:10:41 +00:00
ragge
8fdb1c8ebe Lots of kernlib functions rewritten as inline macros. 1998-08-08 11:18:32 +00:00
kleink
546365a27e _POSIX_SOURCE -> _POSIX_C_SOURCE 1998-08-06 11:25:04 +00:00
kleink
e2a897639d KNF (only include one of <sys/{param,types}.h>). 1998-08-05 16:50:39 +00:00
thorpej
3ff8e6493a Don't cast the null residual pointer passed to vn_rdwr(). 1998-07-28 18:34:52 +00:00
mycroft
da2e61d160 Delint. 1998-07-27 13:55:32 +00:00
ragge
a799083fba Fix netboot support for 3100/m76 which uses diagmem for its lance buffers. 1998-07-26 09:01:23 +00:00