Commit Graph

23409 Commits

Author SHA1 Message Date
jonathan
bbcd2bb1ef Elf32 fixes for mips shared libraries:
* handle interpreters with nonzero virtual address of entry-point:
   subtract p_vaddr from computed entrypoint, as the mips elf exec did.

 * Add #ifdef ELF_INTERP_NON_RELOCATABLE/#endif around the code
   that tries to choose a `good' address at which to load an interpreter,
   if none was set by the emul probe  function.
   (the address chosen could be improved to avoid  fragmenting the
    process virtual address space).

 * define ELF_INTERP_NON_RELOCATABLE in machine/elf_machdep.h for mips CPUs,
   which currently use a GNU-derived ld.so.

ELF_INTERP_NON_RELOCATABLE is not necessary for native NetBSD/alpha ELF
binaries. It may be required for GNU-derived ELF dynamic loaders (Linux/i386?)
1996-11-11 20:33:10 +00:00
jonathan
502d34d915 Eliminate old mips/mips/elf.c ELF exec code.
Don't call into from the a.out exec hook; don't configure it into kernels.
1996-11-11 20:23:39 +00:00
scottr
563b939722 Remove unused MAXFDESCS option. Closes PR 2927, noticed by Erik
Bertelsen <erik@aarhus1.uni-c.dk>.
1996-11-11 18:02:57 +00:00
scottr
b0aafba53e Remove TIMEZONE and DST, as they default to 0 anyway 1996-11-11 17:56:11 +00:00
is
fc0d547f62 oops; converted twice from hex to decimal earlier 1996-11-11 15:33:57 +00:00
christos
2f197a9f4d Fir PR/2930: declare missing variable. 1996-11-11 15:16:10 +00:00
mycroft
72d4e71f08 Remove remaining vector cruft. 1996-11-11 14:18:49 +00:00
mycroft
c9ec05f4b2 Treat reboot() like a normal system call. From PR 2458. 1996-11-11 13:41:08 +00:00
jonathan
22858f6aed Eliminate old mips/mips/elf.c ELF exec code.
Don't call into from the a.out exec hook; don't configure it into kernels.
1996-11-11 07:45:30 +00:00
mikel
032c652e4f Update name of KVM database. 1996-11-11 06:38:00 +00:00
mycroft
5711873831 Build _eh.o. Reported by Simon Gerraty. 1996-11-11 01:06:54 +00:00
lukem
1be2e46708 fix the the typos (and 1 other) 1996-11-11 00:22:47 +00:00
lukem
5d37ffa7eb fix the the typos 1996-11-10 23:58:22 +00:00
leo
27c222f3e8 Add frequency table for Hades. 1996-11-10 21:52:37 +00:00
pk
e0648652c2 Sync with eval.c. (What's this file doing here, anyway?). 1996-11-10 21:23:53 +00:00
pk
b70febb8c1 Use COMMA in stead of ',' when pushing items back on the stack, for
consistency with the macro parsing routine. Suggested by Brian Grayson.
1996-11-10 21:21:29 +00:00
scottr
df8e1c8a09 VT220-related emulation additions:
- Add reset attribute sequences for bold, underline, and reverse
 - Add insert/delete line sequences
 - Recognize but ignore G0/G1 character set sequences

Performance:
 - Speed up clear_line() when clearing the entire line

Also, some stylistic changes for checking/setting scroll region bounds
and in putc_getpars().

These changes make the ITE work properly with the 1.2 termcap file.
1996-11-10 09:35:04 +00:00
thorpej
26a25a87b2 Optimization of soqinsque() and soqremque():
Keep queue of pending sockets in a double linked list.  Previously,
a singly linked list was used, giving O(N) insertion/deletion times,
and was a major time consumer for sockets with large pending queues.
The double linked list give O(C) insertion/deletion times with only
a small cost in complexity.

Since a socket can be on, at most, one queue at a time, both so_q and
so_q0 can safely be used as (forward and backward, respectively) queue
pointers.

Submitted my Matt Thomas <matt@3am-software.com>, a long time ago.
(Geez, I've been running with this patch for _months_, and had completely
forgotten about it!)
1996-11-10 05:58:37 +00:00
thorpej
e463f9241e Two things pointed out by Chris Demetriou <cgd@cs.cmu.edu>:
- The boundary argument to bus_space_alloc() should be a bus_size_t, not
  a bus_addr_t.
- The buffer arguments in the "multiple write" methods should have
  const qualifiers.

And one from me:
- Make bus_space_barrier() eat up the arguments passed to it so that
  the compiler doesn't needlessly whine.
1996-11-10 03:19:25 +00:00
thorpej
17909dbe5d The boundary argument to bus_space_alloc() should be a bus_size_t, not
a bus_addr_t.  Pointed out by Chris Demetriou <cgd@cs.cmu.edu>.
1996-11-10 03:16:17 +00:00
pk
9cb162ce6a Handle crash dumps new-style. 1996-11-09 23:47:34 +00:00
pk
dbaf74ae49 Check return value of _kvm_initvtop(). 1996-11-09 23:44:53 +00:00
pk
7bc7a5533c sparc: libkvm.old => libkvm 1996-11-09 23:22:19 +00:00
pk
d9a980c066 Adapt pmap_dumpsize() and pmap_dumpmmu() to new-style kernel crash
dumps according to the layout in <sys/kcore.h> and <machine/kcore.h>.
1996-11-09 23:08:56 +00:00
chuck
df6962b659 fix previous byte-order fix the correct way
(from Zdenek Salvet <salvet@horn.ics.muni.cz>)
1996-11-09 23:02:27 +00:00
pk
155ab54456 New-style crash dump format requires a slighty different interpretation of
the variable `dumpsize' (used by savecore(8)) and that the CPU specific data
gets dumped first.
Also, squash a typo that prevented the crash dump to be shifted towards the
end of the swap partition. In fact, the entire dumpconf() routine has been
redone, mostly by pasting large chunks from the alpha port.
1996-11-09 23:02:17 +00:00
pk
0217df3897 Define new-style kernel crash dump format. 1996-11-09 22:52:22 +00:00
leo
1fcf303e02 Config file for the Hades. 1996-11-09 22:32:10 +00:00
leo
5d058e1b22 Add the Hades floppy driver. 1996-11-09 22:30:55 +00:00
leo
795ac1e7e2 Count in the Hades floppy driver. 1996-11-09 22:28:53 +00:00
leo
76cc53af70 Hades floppy driver. 1996-11-09 22:27:25 +00:00
chuck
5ffce6ff81 fix uninit'd variable [detected by charles] 1996-11-09 22:27:22 +00:00
leo
d1e1b34b28 Move the vector-table to kernel data space, so we can write to it. 1996-11-09 22:24:49 +00:00
pk
1efc8c37b2 Flesh out the `noerror' syscall macros. 1996-11-09 19:11:17 +00:00
perry
6af2a74574 Fix more cosmetic problems -- changed .Nm fsck to just .Nm (thats the
whole point of the .Nm macro), replaced naked "fsck"s with .Nm's,
fixed another "the the", and .Dq'ed the "no" in the -t
description. Note that the description of -t is still ambiguous --
needs to be cleaned up by someone like Christos that actually knows it
well.
1996-11-09 18:43:22 +00:00
briggs
51d658e787 Check to make sure that ASCBase is accessable before claiming that we
have an Apple Sound Chip.  Make sure that we have configured the device
before allowing accesses to ASC memory.  Among other things, this
prevents the 660AV and 840AV from getting a kernel bus error when trying
to beep on the console.
1996-11-09 17:26:26 +00:00
briggs
f75767628e Dump out type, code, v on panic for no pcb in trap(). 1996-11-09 15:36:14 +00:00
lukem
64af799db3 fix example, from bgrayson@ece.utexas.edu (Brian C. Grayson) in [misc/2735] 1996-11-09 08:41:46 +00:00
lukem
5365ba0ce7 add 'const' qualifiers to various routines (as per the include prototypes
and the implementation)
1996-11-09 08:30:52 +00:00
lukem
5fe99da953 fix prototype for getservbyport, from babafou@ensta.fr [misc/2916],
and also add 'const' qualifiers
1996-11-09 08:30:22 +00:00
chuck
6fda3d6fa9 add lp 1996-11-09 04:01:32 +00:00
chuck
cabd6ddfa0 - new lpt driver, contributed by Steve Woodford <steve@mctavish.demon.co.uk>
- added 1.1 and 1.2 compat to VME147 config file
1996-11-09 03:52:51 +00:00
chuck
04550d40b6 netbsd pr#2919 (jukka.partanen@research.nokia.com):
- fix compiler warnings
1996-11-09 03:43:29 +00:00
chuck
0f3c7ec18c netbsd pr#2918 (jukka.partanen@research.nokia.com):
- fix up netnatm so that it compiles with new warning flags (and
	install headers)
1996-11-09 03:26:25 +00:00
lukem
8c7e6f0d43 fixed typos, from SAITOH Masanobu <msaitoh@spa.is.uec.ac.jp> in [misc/2924] 1996-11-09 01:49:54 +00:00
christos
07aeb5b266 remove a debugging printf that was left from the last POSIX error code fixes. 1996-11-09 01:04:07 +00:00
chuck
63b98e6bb7 add ss/uk 1996-11-08 22:40:51 +00:00
chuck
6f26fca547 updated MAKEDEV based on i386 version (as requested by mycroft) 1996-11-08 22:32:11 +00:00
jonathan
bdc1084483 Commit years-old change for gcc on NetDSB/mips.
The NetbSD libc header files use GCC attributes to emit link-time warning
messages (e.g,. for gets()).   SO, add a definition of the GCC back-end
macro ASM_OUTPUT_SECTION_NAME() to the mips back-end target-specific file.

This adds support for emitting warning attributes to binutils 2.6 or newer.
(Weak references may or may not work also).

This patch has been  submitted to the FSF but hasn't made it into 2.7.2.1,
and seems to have got buried somewhere inside Cygnus.
1996-11-08 22:21:52 +00:00
chuck
5049f4d106 add ch/rd(chr)/ss/uk devices as requested by mycroft, plus some minor clean up 1996-11-08 22:00:42 +00:00