Commit Graph

30248 Commits

Author SHA1 Message Date
thorpej
c448c97f2b - Add come comments.
- Do a little cleanup.
- Protect the entirety of pci_conf_{read,write}() with splhigh()/splx().
1999-05-05 04:32:28 +00:00
thorpej
341f87673b Add a bus space tag for PCI memory space to the pci_bridge structure. 1999-05-05 04:26:48 +00:00
cgd
3b5a8a7db7 shuffle (sort) 1999-05-05 01:51:31 +00:00
cgd
5e1a5ebf21 clean up sigset_t manipulation macros 1999-05-05 00:57:43 +00:00
cgd
ceff265279 shuffle (alphabetize) 1999-05-05 00:48:30 +00:00
thorpej
742e477ae0 Fix msgbuf handling. 1999-05-05 00:03:10 +00:00
thorpej
dbe4c0c061 Make this compile again. 1999-05-04 23:55:27 +00:00
thorpej
c2c47b0da9 Toss contents, and just pull in <powerpc/pmap.h>. 1999-05-04 23:49:18 +00:00
thorpej
da4b05fa8e Pull in <powerpc/reg.h>. 1999-05-04 23:46:32 +00:00
thorpej
69e521f4be Fix void * arithmetic. 1999-05-04 23:30:21 +00:00
is
7807c9a493 Fixes PR 7489 by Olaf Seibert. Fix by Zdenek Salvet (PR 7497). 1999-05-04 20:50:35 +00:00
hwr
d313e75afe It does not make much sense to increase a "output" counter on input. 1999-05-04 20:13:09 +00:00
thorpej
9382ef37c1 Define some things related to the PCI Bus binding to OpenFirmware. 1999-05-04 20:08:04 +00:00
hwr
3fa094f8b5 Don't let packets with a Class-D source address escape the host.
Fixes second half of kern/7003 by Jonathan Stone <jonathan@DSG.Stanford.EDU>.
1999-05-04 19:50:23 +00:00
christos
caa41a7d21 Fix panic and panicstr to use _C_LABEL.
Statuc: ELF kernel loads symbols properly, hangs in syscall while running init.
1999-05-04 17:29:22 +00:00
fvdl
4fbaa0b272 Restrict "out of CHS range" check to harddisks. 1999-05-04 17:14:55 +00:00
christos
a32f7169fc Align struct timeval time to the same alignment requirements of a quad.
This broke the sparc elf kernel which in microtime uses ldd to load both
words at the same time. The a.out kernel, just got lucky.
1999-05-04 16:16:54 +00:00
sommerfe
6f883a0b1c Include checks (under DIAGNOSTIC) to catch vnode lock leaks soon after
they happen (while we still know which remote op is to blame for it),
instead of later when we trip over the already-locked vnode.
1999-05-04 16:08:02 +00:00
sommerfe
623d43160b Fix vnode lock leak in nfsrv_mknod() if to-be-created vnode already existed. 1999-05-04 16:01:37 +00:00
sommerfe
c0d15c5c7c Count lockmgr locks held by process if LOCKDEBUG || DIAGNOSTIC.
(previously, it was just under LOCKDEBUG).
1999-05-04 15:58:53 +00:00
is
7470bd006a Fix for PR 7490 by Olaf Seibert, fix mostly from PR 7497 bei Zdenek Salvet,
but with more verbose error messages.
1999-05-04 14:58:27 +00:00
leo
38029cf240 If the floppy has no label, fake one. 1999-05-04 14:29:44 +00:00
christos
62a2dac0d8 whitespace... 1999-05-04 13:57:19 +00:00
christos
361f7917c8 clean up old GCC.1 stuff; move common definitions to the top. 1999-05-04 13:36:44 +00:00
christos
7d5c65239e clean up old GCC.1 stuff. 1999-05-04 13:36:10 +00:00
cgd
ff38fb6396 regen 1999-05-04 05:23:05 +00:00
cgd
e7f2a6f938 stub classcntl(). for now, it returns ENOSYS. (a stub for classcntl()
was suggested by Anders Magnusson <ragge@ludd.luth.se>.)
1999-05-04 05:17:22 +00:00
cgd
e24a4116bc add a few XXXs 1999-05-04 05:11:03 +00:00
cgd
debeb21304 regen 1999-05-04 05:00:21 +00:00
cgd
ab7cdebda6 emulate shm*(), but only so far as to return ENOSYS for now (until
they're really needed).  put them in their own file because when we
need to emulate them, they'll need a bunch of code.
1999-05-04 04:59:21 +00:00
cgd
2165378111 add a 'clean' target to nuke files built from syscalls.master, so that
it's easier to commit non-generated files all at once.
1999-05-04 04:56:44 +00:00
cgd
d0937ee8b6 don't pull in osf1_syscall.h 1999-05-04 02:45:35 +00:00
cgd
15e8e0d207 IPC key_t 1999-05-04 02:44:43 +00:00
cgd
759a1e3cd7 regen 1999-05-04 02:12:33 +00:00
cgd
bd7a54454d pathconf/fpathconf 1999-05-04 02:12:15 +00:00
scottr
bdd60e98f9 Include opt_ddb.h so we will get the Debugger() prototype. 1999-05-04 00:35:37 +00:00
thorpej
3faa72bd56 Fix an ininitialized variable that the MIPS compiler caught (but the
SPARC, Alpha, Arm, and i386 compilers missed).
1999-05-03 23:30:27 +00:00
thorpej
a40dff106e In INADDR_TO_IA(), skip interfaces which are not up. Revert previous change
to ip_input.c to check the interface status after INADDR_TO_IA().

Fix cooked up by Heiko Rupp and myself.

Fixes PR 7480.
1999-05-03 22:12:44 +00:00
hwr
33a8a5933b Drop packets, that have a Class-D address as source address.
Implements the first half of PR 7003.
1999-05-03 21:14:47 +00:00
pk
f499d38511 Gain one instruction.. 1999-05-03 20:56:11 +00:00
scottr
a4adbf2f86 Move initialization of the iomem extent struct from mac68k_set_io_offset()
to mac68k_init(), so that we're through frobbing the MMU in special ways
by the time we get there.  While it doesn't actually cause a problem with
the current structure of our initialization code, it probably would have
in the future.
1999-05-03 19:10:54 +00:00
pk
a554ffdde0 Better pad the artificial header to exactly 32 bytes. 1999-05-03 18:59:08 +00:00
christos
c596c324e3 Define __builtin_*() for lint 1999-05-03 16:30:31 +00:00
christos
b70c3eb0ca Define __extension__ if __GNUC__ < 2
Define __builtin_*() for lint
1999-05-03 16:21:28 +00:00
christos
f890155a87 Define __extension__ if __GNUC__ < 2
Define __builtin_* for lint.
1999-05-03 16:20:28 +00:00
christos
6207471740 remove unused msgbufaddr 1999-05-03 16:17:57 +00:00
christos
3c86ce132b s/\<0x4000\>/PROM_LOADADDR
remove unused cputypvallen, and _msgbufaddr
1999-05-03 16:17:08 +00:00
christos
b0c181d290 move PROM_LOADADDR from promlib.h to param.h and remove its cast. 1999-05-03 16:14:02 +00:00
christos
6fc35c7fc8 Casts for PROM_LOADADDR which is not casted anymore. 1999-05-03 16:13:16 +00:00
ad
5aa72a711d Pull in slightly modified ioctl() routine from psm.c (handles WSMOUSEIO_SRES). 1999-05-03 15:50:38 +00:00
ad
04888a4736 Update ioctl routine to handle WSMOUSEIO_SRES case. 1999-05-03 15:45:16 +00:00
ad
0a77d05407 Add ioctl definitions for setting mouse resolution, scale factor and sample
rate. Add two new display types (DEC PX, PXG). Replace instances of '???' in
comments about DEC hardware with meaningful representations.
1999-05-03 15:43:25 +00:00
tsubai
fdabab77f2 PT_{STEP,GETREGS,SETREGS} support. 1999-05-03 10:02:19 +00:00
matthias
6a9785dfc6 Fix symbol loading. esym is passed as an offset to loadaddress. 1999-05-03 09:19:29 +00:00
mrg
fc7c17462c fix some formatting foo. 1999-05-03 09:08:28 +00:00
mrg
e378d35ade remove now-wrong comments. formatting nits. 1999-05-03 08:57:42 +00:00
mrg
c2f7cb3c4e remove now-wrong comment. formatting nit. 1999-05-03 08:53:24 +00:00
ross
7bffc1e720 Protect WDCDEBUG from multiple definitions. 1999-05-03 07:44:47 +00:00
pk
bc1a121cfe Missing initialization of getbootfile() method for `old' monitors. 1999-05-03 07:32:50 +00:00
tsubai
28b7777fd0 Provide CACHELINESIZE when _STANDALONE is defined too. 1999-05-03 05:19:59 +00:00
kleink
3fbdf21b11 Add a __weak_extern() macro. 1999-05-02 18:23:57 +00:00
kleink
5cbe23baad Garbage-collect VM_MBUF_SIZE leftover. 1999-05-02 18:12:32 +00:00
ragge
a5ce96e985 EEEK! The signal changes a while ago caused the user struct to be
on top of the "red zone" in the kernel stack. This phenomenon has
caused many unexplainable things to happen the last year.
1999-05-02 17:28:43 +00:00
scottr
b997ba8fa3 g/c some useless calculation on avail_remaining after its last reference. 1999-05-02 17:26:14 +00:00
scottr
2f45ab494c Remove a (harmless) duplicated line. 1999-05-02 17:23:07 +00:00
pk
e3a15d4321 * Add missing label.
* Avoid harmful delay-slot instruction, if we did not get a `bootinfo' thing.
* Compute correct location of `esym' for all three methods of debug
  symbol loading we support.
1999-05-02 14:47:33 +00:00
christos
797c581bbc Add bootinfo.h 1999-05-02 13:50:17 +00:00
fvdl
ec559f688b Be more careful with saving registers around the "out of CHS range" check. 1999-05-02 12:44:34 +00:00
thorpej
e9d133eb3b Adjust for cwdinfo changes. Pointed out by Bernd Ernesti. 1999-05-02 00:18:31 +00:00
kleink
d34d0ccf51 * Change multiple inclusion protection symbols to use the standard naming
convention (not that it should matter for assembly).
* Provide an additional set of _C_LABEL() macros for ELF.
* Provide a PIC_PLT() macro for the benefit of ELF.
1999-05-01 19:20:52 +00:00
kleink
69845becd3 Use _C_LABEL() for [fs]ubail symbols. 1999-05-01 19:17:06 +00:00
kleink
3d292e1a35 Fix a label name botch introduced in rev. 1.92; Ignatios owes me a non-beer. 1999-05-01 19:11:34 +00:00
drochner
e26f758e69 ed* -> we*, PR port-i386/7503 by Andrew Gillham <gillhaa@ghost.whirlpool.com> 1999-05-01 17:19:52 +00:00
ragge
fc6020e344 Real-time clock is started on the same way on all CPUs, there is no
need for a special CPU-dependent hook for this.
1999-05-01 16:13:43 +00:00
pk
e4bc3af22c No need to disable MII devices in previous. 1999-05-01 14:18:35 +00:00
tsubai
8e885e921e Check "mac-io" and "/pci/mac-io". 1999-05-01 10:37:57 +00:00
tsubai
8dbaa0169e Find "mac-io" and "/pci/mac-io". 1999-05-01 10:36:08 +00:00
tsubai
5fff3dafe9 Use "compatible" property to match. 1999-05-01 10:23:42 +00:00
tron
890fa9e9be Regen from "GENERIC". 1999-05-01 10:21:22 +00:00
tron
3420cb646c Add ext2 filesystem. 1999-05-01 10:20:01 +00:00
scottr
009cda3fb2 Fix a problem with bounds_check_with_label(), noted by Greg Oster: we
had been returning (-1) as an error instead of 0.  This is the result of
not keeping up with its i386 ancestor, which it was originally derived
from back in 1993.  Re-sync.
1999-05-01 09:26:32 +00:00
scottr
9e69eadd92 Rewrite read_mac_label() and friends, simplifying the code considerably
in the process.  Less is truly More.
1999-05-01 09:12:47 +00:00
cgd
a0a7b0de30 protection-related bits -> osf1_prot.c 1999-05-01 05:49:01 +00:00
cgd
ca7738a519 clean up ordering, add a comment or two 1999-05-01 05:43:52 +00:00
cgd
12df8bf0da {get,set}rlimit, getrusage -> osf1_resource.c 1999-05-01 05:41:56 +00:00
cgd
8d9e0684d2 descriptor-frobbing syscalls (fstat, fcntl(), lseek(), etc.) ->
osf1_descrip.c.
1999-05-01 05:34:59 +00:00
cgd
39ba96ee96 utimes() belongs here 1999-05-01 05:33:36 +00:00
cgd
789e810c20 get/settimeofday, interval timers -> osf1_time.c 1999-05-01 05:25:37 +00:00
cgd
bf9d06e035 typical filename using syscalls (open(), access(), execve(), etc.) -> osf1_file.c 1999-05-01 05:18:01 +00:00
cgd
deeb289def sys_generic-ish bits move to osf1_generic.c 1999-05-01 05:06:46 +00:00
cgd
f493e92106 clean up vm-related headers 1999-05-01 04:59:42 +00:00
cgd
d3b6da7da3 and the socket calls move 1999-05-01 04:57:15 +00:00
cgd
ffc61cf092 shuffle some conversion bits around that were missed earlier 1999-05-01 04:47:00 +00:00
cgd
9cc30ed036 needs mount.h 1999-05-01 04:38:39 +00:00
cgd
2d25ceb2d2 pull in compat_util.h 1999-05-01 04:38:20 +00:00
cgd
e42f7d331f move mmap() and related functions into their own file 1999-05-01 04:34:20 +00:00
cgd
170b003d0b shuffle bits around. separate conversion conversion functions and tables
from the code that uses them, just as I previously separated out the
OSF/1 definitions and structures from the code that translates to and
from them.
1999-05-01 02:57:08 +00:00
cgd
38da682259 Moved to osf1_cvt_errno.c,v 1999-05-01 02:16:01 +00:00
cgd
333154d794 Moved from osf1_errno.c,v 1999-05-01 02:16:00 +00:00
cgd
34fde29505 update comment re: COMPAT_OSF1 1999-04-30 23:34:08 +00:00
cgd
f6b3b14ce3 enable COMPAT_OSF1 1999-04-30 23:33:41 +00:00
cgd
af8a9059d3 compute the value to be used for e_arglen via howmany(value, sizeof (char *)),
rather than just "value / sizeof (char *)".  While in these cases the latter
works as well, the former's a better example for other uses to copy (since
it handles the non-integral multiple case correctly).
1999-04-30 23:07:01 +00:00
cgd
1bce8c40fc ep_arglen is in units of 'sizeof (char *)', not in units of bytes. use
howmany(value, sizeof (char *)) to get the right value.
1999-04-30 23:02:06 +00:00
thorpej
645d5bd5f6 Share everything with proc0. 1999-04-30 21:40:30 +00:00
thorpej
b699afcb5b Pay attention to FORK_SHARECWD, FORK_SHAREFILES, and FORK_SHARESIGS. 1999-04-30 21:39:51 +00:00
thorpej
2835fc6e46 Pull signal actions out of struct user, make them a separate proc
substructure, and allow them to be shared.

Required for clone(2).
1999-04-30 21:23:49 +00:00
abs
93857fda32 Comment out nell and pcmcia children until audioamd panic resolved 1999-04-30 21:09:50 +00:00
thorpej
882d9195a3 Oops, forgot to commit this one. Free the cwdinfo on exit. 1999-04-30 20:54:04 +00:00
cgd
ff48595e8b processes would have vm->vm_ssize screwed up when they faulted
data regions higher than USRSTACK.
1999-04-30 20:21:57 +00:00
thorpej
16936c9565 Break cdir/rdir/cmask info out of struct filedesc, and put it in a new
substructure, `cwdinfo'.  Implement optional sharing of this substructure.

This is required for clone(2).
1999-04-30 18:42:58 +00:00
thorpej
c7ca008189 Make the proc structure reference the new cwdinfo structure, and define
a few more sharing flags for fork1().
1999-04-30 18:40:05 +00:00
thorpej
1a1efc6b68 In lance_mediachange(), if there is no callback to the front-end, just
return 0 instead of EINVAL.  In this case, there will only be one media
type, and the upper-level if_media code will ensure that the user is setting
to that type.

In other words, don't require the front-end to provide the no-op.
1999-04-30 18:15:04 +00:00
thorpej
c7ea24c151 Back out previous. It was just ... braindamaged. 1999-04-30 17:47:36 +00:00
abs
175b821dfe If the driver only supports one media type, and ifmedia_ioctl() is called to
select the current medium, (and it is not autoselect), assume no change and
do not try to select the medium. Fixes 'ifconfig le0 medium 10base5' on sparc2
without requiring a 'do nothing' mediachange callback.
1999-04-30 17:30:49 +00:00
christos
ef6e15ad0e Include opt_compat_sunos.h 1999-04-30 16:50:44 +00:00
minoura
ed3c676245 Branch address was wrong. 1999-04-30 15:31:18 +00:00
christos
57e4b98787 - Use the proper multiply instructions so that we don't get truncated. 1999-04-30 15:31:17 +00:00
bad
b7ae9f8e40 Convert some bogus panic()s into printf()s. 1999-04-30 15:29:24 +00:00
christos
8ed58f33a5 Add -n for ELF, note weirdness in comment. 1999-04-30 13:31:52 +00:00
christos
35e47f06fa Load the header too. 1999-04-30 13:28:58 +00:00
christos
4bf3b7a9c1 Compile in support for ELF symbols. 1999-04-30 13:28:36 +00:00
nisimura
b2c6b9a41d - Nuke debugging aids mistakenly committed. 1999-04-30 09:43:23 +00:00
christos
81248a0851 Add bootinfo struct to pass symtab arguments.
XXX: This does not work with ELF yet, but I don't understand why...
1999-04-30 09:29:40 +00:00
christos
a042b8f9e4 Add bootinfo support for loading symbol tables. 1999-04-30 09:26:16 +00:00
christos
bf88b9104e Include opt_compat_sunos.h 1999-04-30 09:21:54 +00:00
cgd
1a3537df95 OSF/1 locore-ish bits. right now just sigcode 1999-04-30 05:58:10 +00:00
cgd
04f53f0b03 gross hack for SIGFPE under OSF/1, until ross makes SW completion go 1999-04-30 05:47:53 +00:00
cgd
ee94a4dacb add checks for COMPAT_OSF1 in the appropriate places 1999-04-30 05:29:20 +00:00
cgd
5a93f3c9b1 emulate wait4(), put some guts into sysinfo(), and redo fcntl()
F_{GET,SET}FL emulation.
1999-04-30 05:25:34 +00:00
cgd
28410181b2 return error if unsupported sigaltstack flags used 1999-04-30 05:24:04 +00:00
cgd
a928d381b2 regen 1999-04-30 04:36:04 +00:00
tsubai
9697f9c401 Add more sanity check. 1999-04-30 04:35:35 +00:00
cgd
d2d8e961fe emulate wait4, clean up sigreturn args, emulate {get,set}domainname 1999-04-30 04:33:51 +00:00
cgd
e836b093b4 nuke most fcntl() F* flags, and note that O_* should be used instead. 1999-04-30 04:31:45 +00:00
nathanw
4f8cf68674 Rototillage; make this actually useful. To wit:
- Initialize more of the Bt463's registers, instead of leaving them
   in undefined states. Notably, the window type table is set up
   with 8-plane pseudocolor and 24-plane truecolor modes.
 - Bus-space-ify, mostly. Could use some more cleanup, but not until
   the rest of the tga stuff is converted, too.
 - Do the TGA/RAMDAC communication dance more carefully.
 - Explain a lot more of what's going on in comments.
1999-04-30 02:47:42 +00:00
cgd
c21c5d0c2d systeminfo.h SI_* constants, wait.h W{NOHANG,UNTRACED}, plus spacing cleanup 1999-04-30 02:12:03 +00:00
cgd
afe914207b we can actually setitimer() now 1999-04-30 01:57:27 +00:00
cgd
94a4e36ed2 use osf1-specific sigcode 1999-04-30 01:46:09 +00:00
ross
c5a82dd848 * New MI man page for fp{set,get}{round,sticky,mask}(3).
* Implement fpgetsticky() for alpha.
* Direct fpsetsticky() and fp{get,set}mask() into alpha kernel via sysarch(2).
* Define new sysarch(2) stub for above and install and distribute sysarch.h
for alpha.  (The fpcr IS user mode r/w, but for reasons beyond the scope
of a commit message kernel calls are needed.) And much kernel Magick is
required before these do anything, but this way programs compiled under
1.4 will DTRT on future snapshots and releases.
1999-04-30 00:58:30 +00:00
nisimura
b14028acc2 - I finally learned CSR_A register of IMS G332 VDAC must be treated as
write only. Read-motify-write operation breaks its video mode.
- VDAC regiters are now initialized as ULTRIX does.
1999-04-30 00:44:11 +00:00
cgd
6abb3f7b37 regen 1999-04-29 23:39:55 +00:00
cgd
59c243a0b7 emulate setitimer(), but for now just return EINVAL. stub sysinfo() (XXX). 1999-04-29 23:37:23 +00:00
rvb
986bcb3e71 Typo/braino? 1999-04-29 22:20:42 +00:00
cgd
e9bc2c7ae3 need to emulate setitimer and sysinfo 1999-04-29 22:08:49 +00:00
scottr
3d5c979e43 Pull in opt_poollog.h for POOL_LOGSIZE. 1999-04-29 17:47:19 +00:00
scottr
3122ba5447 Split POOL_DIAGNOSTIC and POOL_LOGSIZE into seperate option header files.
The former is used in many places, and the latter in one, which makes
adjusting POOL_LOGSIZE rather painful.
1999-04-29 17:41:45 +00:00
cgd
2b9f4ca12d in NetBSD, top 32 bits of ioctl com are always 0 1999-04-29 17:34:49 +00:00
thorpej
0792acce0d Regen. 1999-04-29 17:20:37 +00:00
thorpej
fb1f070eba Add entry for set_program_attributes(). 1999-04-29 17:19:47 +00:00
thorpej
8ef6e2a635 Implement set_program_attributes(). 1999-04-29 17:18:59 +00:00
ragge
cec112a434 Make LK201 arrow keys work again. 1999-04-29 16:58:58 +00:00
christos
0db2ca03ae Add sunos_sigcode (32 bit only) 1999-04-29 16:40:41 +00:00
christos
cc96413a0c Revert previous bootinfo premature commit, and commit the sunos_sigcode
stuff instead.
1999-04-29 16:37:32 +00:00
christos
d27f70c075 Include opt_compat_sunos.h 1999-04-29 16:22:03 +00:00
christos
bd3e05dcd4 Add sunos_sigcode, sunos_esigcode trampoline that uses trap 1 1999-04-29 16:20:44 +00:00
christos
4c1bb7794a Need sunos_sigcode and sunos_esigcode now that our sigreturn is
different.
1999-04-29 16:14:04 +00:00
christos
5f139d3cc9 Add sunos_sigcode and sunos_esigcode for COMPAT_SUNOS 1999-04-29 16:13:04 +00:00
christos
a38ee86714 Make ss_size something reasonable (not 0) so sigaltstack does not fail.
Pull me up plz!
1999-04-29 16:09:12 +00:00
bad
8fb6c6124b From Onno van der Linden:
Reorganise the driver some what.
Rename tr_reset() to the more appropriate tr_stop().
Create a common tropic reset routine and use it in the frontends.
Move the code in tr_config() which is only used in the card attachment
routines into a new tr_attach() function.
Take adapter off the ring through tr_shutdown() in a shutdown hook.
This simplifies the bus-specific frontend.
1999-04-29 15:47:02 +00:00
phil
29f999f240 options & filesystems tweeks. 1999-04-29 15:31:00 +00:00
bad
c98240fc07 Don't use the direct console on color machines, which is currently not
supported.  Use serial console instead.
From Matt Debergalis PR 7488.
1999-04-29 14:51:20 +00:00
kleink
e1529b8f93 Pull in the right generic m68k header. (Where was my mind?) 1999-04-29 14:38:39 +00:00
christos
c3564f7b88 Don't go dereferencing pointers before verifying they are aligned. 1999-04-29 11:28:42 +00:00
cgd
a509481404 itimerval and related constants 1999-04-29 05:54:13 +00:00
tsubai
599ebb4db1 Now we can use symbols in DDB. :-) 1999-04-29 05:15:30 +00:00
thorpej
2cd33a0ce1 Implement retransmit logic for the SYN cache engine. Fixes a rare condition
where one side can think a connection exists, where the other side thinks
the connection was never established.

The original problem was first reported by Ty Sarna in PR #5909.  The
original fix I made to the code didn't cover all cases.  The problem this
fix addresses was reported by Christoph Badura via private e-mail.

Many thanks to Bill Sommerfeld for helping me to test this code, and
for finding a subtle bug.
1999-04-29 03:54:22 +00:00
ad
53af2d0054 Initialize db in copycols() to zero to pacify gcc, as noted by Simon Burge.
This doesn't change anything until it's fixed.
1999-04-29 03:38:39 +00:00
tsubai
741030cc8a Add loadfile_machdep.h 1999-04-29 03:17:12 +00:00
tsubai
e4e1fcbaa6 Use MI loadfile(). 1999-04-29 03:16:20 +00:00
ross
7288a55336 Use a different initial FPCR, mainly to suppress the ieee inexact trap. 1999-04-29 03:02:20 +00:00
ross
0847df9065 #ifdef _KERNEL, define the machine FPCR bits and a rounding mode macro 1999-04-29 02:55:50 +00:00
ad
3801a05ffb Add cookie for wsfont to px_info. Don't try to get/lock a font if we
are not the console.
1999-04-29 02:50:25 +00:00
ad
34480e41c4 Add cookie for wsfont to rasops_info. 1999-04-29 02:49:40 +00:00
ad
e2db3e3f25 Update usage comment. 1999-04-29 02:42:43 +00:00
cgd
ee325de1bb regen for syscalls.master 1999-04-29 02:11:51 +00:00
cgd
1041a1c770 emulate access() and mprotect(), hook into COMPAT_43 get{peer,sock}name 1999-04-29 02:10:07 +00:00
cgd
f4507cddca mprotect() and access() 1999-04-29 02:08:58 +00:00
cgd
cc4f9f6afb access() flags 1999-04-29 02:06:50 +00:00
ross
aa1e5724b9 WSEMUL_SUN -> WSEMUL_VT100 1999-04-29 01:28:40 +00:00
fvdl
48003b2c88 Only use int13 extensions if the sectors can not be read through the
older CHS interface. This works around stupid BIOSs who report that
int13 extensions are present and functional, but fail when you actually
use them. Like Adaptec SCSI BIOSs.
1999-04-28 23:24:42 +00:00
ross
770b67425d Accelerate scrolling. Originally by Roland Dowdeswell, revised by
{drocher,ross}@netbsd.org.
1999-04-28 23:24:33 +00:00
jonathan
5847397a4d Add EEPROM_SSI EEPROM field (hardware revision-level info). 1999-04-28 22:47:44 +00:00
is
568b328c80 Recognize Linux ext2fs partitions. (Used to be marked as unknown). 1999-04-28 22:35:27 +00:00
fair
073021116e Add a 1 second delay to powerdown sequence to prevent the OpenBoot PROMs
from getting control and reporting a "powerdown failure", per PR#7487
1999-04-28 18:49:40 +00:00
dean
188c3f6ae5 Fix for PR kern/7483: ex driver gets bogus MAC address with 3c905B 1999-04-28 17:34:01 +00:00
minoura
ab5806d4b8 Message cosmetics. 1999-04-28 16:17:42 +00:00
minoura
ea485e0d51 Handle fpunimp properly for fpu_emulate. 1999-04-28 16:16:58 +00:00
christos
b40179bdca MD version of loadfile.h 1999-04-28 15:26:21 +00:00
christos
017ae4d0c4 Support for installboot 1999-04-28 15:25:43 +00:00
christos
1c8494b7a2 Checkpoint of elf boot stuff:
- Use loadfile for both boot and installboot
- Fix problems with linking in bootxx
- Make installboot work with both a.out and ELF bootxx
- *WILL NOT BOOT YET ELF KERNELS* (a.out kernels work) I am working on it.
1999-04-28 15:22:25 +00:00
christos
ccd32076df Add -DLIBSA_NO_CLOSE 1999-04-28 13:27:18 +00:00
christos
a2c49bf69e Nuke local prototype for closeall(). Add a new define LIBSA_NO_CLOSE so that
we don't try to close files, if we are not using any other I/O.
1999-04-28 13:24:12 +00:00
christos
ad64321aac Include <sys/systm.h> to get prototype for memset. 1999-04-28 13:20:55 +00:00
christos
4f8814a98c Fix tyop 1999-04-28 10:58:10 +00:00
christos
49a60fee19 Add loadfile_machdep.h 1999-04-28 09:19:35 +00:00
christos
c22a8166d9 use new loadfile 1999-04-28 09:18:47 +00:00
christos
c5ec77e01b use new loadfile 1999-04-28 09:14:22 +00:00
christos
5317a4673a Use new loadfile 1999-04-28 09:14:07 +00:00
christos
a030d021a7 Use new loadfile.c 1999-04-28 09:13:51 +00:00
christos
2da63ed66f cosmetic printf change 1999-04-28 09:12:24 +00:00
christos
0766a607d4 MD defines for the MI loadfile 1999-04-28 09:10:07 +00:00
christos
0fdd24ecdc MI loadfile (used by i386, pmax and sparc shortly) 1999-04-28 09:08:50 +00:00
cgd
52b80ff167 fix some bugs (good to get to the point where bug-fixing is an issue!):
* when copying out the timezone in gettimeofday, don't accidentally copy
  out the timeval again (into the timezone buffer).
* mmap() PROT_WRITE and PROT_EXECUTE imply PROT_READ.
1999-04-28 06:01:51 +00:00
scottr
eb910c35ce From Ken'ichi Ishizaka: correct the calculation of the frame buffer
offset by masking off garbage bits in the DAFB v7.  This has been
tested at all resolutions and common color depths on the LC47x.
1999-04-28 05:24:08 +00:00
cgd
278f92716f regen for updated syscalls.master 1999-04-28 05:10:38 +00:00
cgd
d3708a1699 more timeval-related lossage. fixed some fns, added settimeofday & utimes 1999-04-28 05:09:47 +00:00
cgd
fc1142ac44 be more careful about getting the exec_name emul arg field 1999-04-28 02:49:38 +00:00
cgd
a61beae31e regen for changed syscalls.master 1999-04-28 02:34:47 +00:00
cgd
a9deaa593a emulate select(), to get the timeval right.
And CGD said, "Let there be eyes!"  And there were eyes, and it was good.
1999-04-28 02:34:25 +00:00
cgd
4c9a03c3b3 do easy 'f'-class ioctls 1999-04-28 02:16:07 +00:00
cgd
3cca776d42 regen for changed syscalls.master 1999-04-28 02:03:45 +00:00
cgd
28561f9679 can't use system gettimeofday, and need to implement uname 1999-04-28 02:03:13 +00:00
cgd
93e2cb1a1e uname, gettimeofday 1999-04-28 02:02:50 +00:00
cgd
ccd0018aca uname and timezone structures, and some minor cleanup 1999-04-28 02:00:36 +00:00
jonathan
894ce34c9d Improved 509B-in-PnP mode detection (Christoph Badura, Jonathan Stone):
Verify EEPROM checksum, extract card rev-level, test capabilities
  word, then test high-order config bits to verify card is in PnP mode,
  and skip if so.
1999-04-28 01:20:01 +00:00
thorpej
55fd59f1e0 Make PCI IDE DMA work on big-endian systems. 1999-04-28 00:18:12 +00:00
augustss
a9cd83c7af Regen. 1999-04-27 21:32:05 +00:00
augustss
9fb29eae72 Update vendor names from an official(?) list. 1999-04-27 21:30:53 +00:00
cgd
9a3d734daa actually define MADV_SPACEAVAIL. This could be the first case of
documentation actually getting ahead definition; the madvise() manual
page has since at least 1.3!
1999-04-27 20:13:06 +00:00
cgd
6e5469dc42 implement osf1_sys_madvise() 1999-04-27 18:45:22 +00:00
cgd
3cb15b5b9b regen for changed syscalls.master 1999-04-27 18:41:37 +00:00
cgd
df6ae494ef fix madvise args 1999-04-27 18:40:53 +00:00
cgd
99df19a561 madvise operation definitions 1999-04-27 18:38:07 +00:00
scw
52b5bc5eb8 Duh. My last change broke mvme147 support. 1999-04-27 18:12:44 +00:00
augustss
d992bbf22c Regen. 1999-04-27 18:09:00 +00:00
augustss
c05572b5b7 Add Gravis GamePad Pro (from Soren Jorvang). 1999-04-27 18:08:35 +00:00
cgd
3d0c9ec2a8 kill a couple of debugging printfs i accidentally left in 1999-04-27 17:56:52 +00:00
cgd
8f40430549 regen for changed syscalls.master 1999-04-27 17:53:11 +00:00
cgd
6b9bb2a3cb fix getrusage args 1999-04-27 17:52:44 +00:00
cgd
009c460d25 emulate getrusage, add some XXXs 1999-04-27 17:50:59 +00:00
cgd
9a71b695bd osf1_timeval and osf1_rusage and related constants 1999-04-27 17:50:23 +00:00
thorpej
b1a4c46dab Fix a typo that prevented this from compiling. 1999-04-27 17:37:18 +00:00
cgd
44cbebec30 note that his should be shot from a cannon 1999-04-27 16:09:28 +00:00
cgd
1f9cfb5d53 update for current reality 1999-04-27 16:08:40 +00:00
christos
b69c7692af From cgd again: pbuf == path on failure. 1999-04-27 15:42:37 +00:00
christos
c4f1bab08e Make the usage consistant and document it:
if the path was given in a user buffer, return the new path in
a user buffer.
if the path was given in a kernel buffer, allocate a new kernel buffer
to return the new path; the caller is responsible for freeing the buffer
if we fail always set the new path to NULL.
This usage broke when I adde the /../ shortcut. Noted by cgd.
1999-04-27 11:36:47 +00:00
nisimura
3e9afa8b4d - Save Mach_splX() calls which don't fit well with DECstation. MIPS
spl machinary will be reworked, someday.
1999-04-27 08:07:26 +00:00
cgd
f355b96b7a note that this document is now out of date 1999-04-27 06:39:49 +00:00
cgd
7e3ad9e963 evil hack to work around non-fixed mmap requests 1999-04-27 06:37:12 +00:00
thorpej
ce5ede558e Fix excessive memory usage, and fix handling of SZOMB processes. PR #7164,
Jaromir Dolecek.
1999-04-27 06:02:09 +00:00
cgd
6ef8f59ae6 dynamic executable/loader handling, done right 1999-04-27 05:38:08 +00:00
cgd
e85db685e9 * don't have the [onz]magic setup functions set up the stack.
* add arguments describing the vnode and ecoff header of the executable
  being set up to the [onz]magic setup functions.
* export the stack setup function and the [onz]magic setup functions.
* call the MD ecoff hook _before_ the [onz]magic and stack setup
  functions, and bail out early if the MD hook sets up vmcmds.
1999-04-27 05:36:43 +00:00
cgd
5338149302 correct comment: turn off set-id if MNT_NOSUID is set, not MNT_NOEXEC. 1999-04-27 05:28:44 +00:00
thorpej
0837de9c4b Add support for the Fujitsu Towa LA501 Ethernet card. PR #6524, Stephen Ma. 1999-04-27 04:56:18 +00:00
thorpej
ae3e4919c2 Regen. 1999-04-27 04:52:04 +00:00
thorpej
7931c9f84e Add the Fujitsu LA501 Ethernet card. PR #6524, Stephen Ma. 1999-04-27 04:48:43 +00:00
cgd
743038a6cb clean up for ecoff_machdep.h changes, look for the loader 1999-04-27 03:19:44 +00:00
thorpej
d5a491540c Disable power management until the bug that caused it to hang the
machine can be found.

Addresses kern/6488, from Thorsten Frueauf.
1999-04-27 02:53:30 +00:00
cgd
7b8e7abdd6 use osf1_exec_ecoff_hook() 1999-04-27 02:33:35 +00:00
cgd
6f2f5becb6 Alpha ECOFF object type definitions 1999-04-27 02:32:33 +00:00
cgd
fe6198f6e2 do special OSF/1-specific ECOFF recognition (not yet complete), and
implement a copyargs function to do special argument copying for
emulated processes.
1999-04-27 01:45:03 +00:00
thorpej
4f0ff8a077 Const'ify mbtypes[]. 1999-04-27 00:05:44 +00:00
ad
3dc48bf302 Bump WSFONT_L2R/R2L by +1 so 0 can mean no specific order is required.
Change entry for QVSS to match bitorder.
1999-04-26 23:41:57 +00:00
thorpej
82f0525910 Make the 3Com Etherlink XL driver work on big-endian systems. From
Izumi Tsutsui, PR #7279.
1999-04-26 23:28:31 +00:00
ad
aa89ae23ba Last fix broke kbd and mouse input under X for the console device. Fixed. 1999-04-26 23:26:11 +00:00
thorpej
1eb689a712 Make the VIA Rhine driver work on big-endian systems. From Izumi Tsutsui,
PR #7305.
1999-04-26 23:19:10 +00:00
thorpej
5d82bfc656 Garbage-collect VM_MBUF_SIZE. 1999-04-26 22:47:34 +00:00
thorpej
b8073b401b Garbage-collect the VM_MBUF_SIZE constant. Instead, use the size
(nmbclusters * mclbytes), so that the right amount of KVA space is
allocated if those variables are patched.
1999-04-26 22:46:44 +00:00
thorpej
3d23eb3ce3 More improvements to mbuf and mbuf cluster allocation:
- Initialize mbpool and mclpool with msize and mclbytes, respectively,
so that those values may be patched and have an actual affect on the
next system reboot.

- Set low water marks on mbpool (default: 16) and mclpool (default: 8).
This should be of great help for diskless systems, which need to allocate
mbufs in order to clean dirty pages; the low water marks increase the
chances of this being possible to do in memory starvation situations.

- Add support for getting/setting some mbuf-related parameters via sysctl.
* msize and mclsize (read-only)
* nmbclusters (read-only unless the platform has direct-mapped pool pages,
in which case the value can be increased).
* mblowat and mcllowat (read/write)
1999-04-26 22:04:28 +00:00
thorpej
879070ef90 Add support for the kern.mbuf sysctl node. 1999-04-26 21:56:23 +00:00
thorpej
b80d6596cd Add mbuf sysctl variables: msize, mclbytes, nmbclusters, mblowat, and
mcllowat.
1999-04-26 21:55:53 +00:00
thorpej
3750ef06a0 Add mbuf sysctl definitions. 1999-04-26 21:54:46 +00:00
thorpej
c92294ac82 Add mblowat' and mcllowat' low water mark variables for mbufs and mbuf
clusters.
1999-04-26 21:53:59 +00:00
is
af3d525792 Fix adosfs's locking panic 1999-04-26 20:33:18 +00:00
cgd
bd33916784 exec internals have been moved (and improved) to osf1_exec.c. Not much
there yet, but more to come.
1999-04-26 18:34:05 +00:00
abs
0d2cfcdb5a Update vanity config 1999-04-26 18:30:45 +00:00
kleink
5ea46286eb mii_phy_auto(): don't rely on an implicit declaration of the waitfor argument. 1999-04-26 14:48:57 +00:00
ad
0c221127eb More fixes to get the PXG working and keep the PX happy. 1999-04-26 12:05:11 +00:00
ad
e54fa8abad Fix silly bug where fbconnect() doesn't realize that it's already been
called during early console initalization, then pouts because there appears
to be n+1 framebuffers. This whole thing is a mess.
1999-04-26 12:03:53 +00:00
nisimura
56a9b84b91 - MIPS processors do not impose inclusive (nesting) interrupt levels with
their interrupt lines.  The notion and implemention of 'spl' are left
for how target ports approach to it.
1999-04-26 09:42:14 +00:00
nisimura
9e798fbe20 - Forgot to commit these two. 1999-04-26 09:36:05 +00:00
nisimura
c33ad91e49 - Sweep machdep.c; mostly imported from a development branch. Little
exposure of TC device any more.  Correct comments which are no longer
feasible.  Reorder declarations and definitions.  Introduce 'clkread'
pointer to pull up model dependent high resolution timer value.  Have
prom_systype() call.
- Place routines for model dependent high resolution timer.
- Program IOASIC registers inside os_init() call and nuke ioasic_init().
1999-04-26 09:23:21 +00:00
cgd
bd947212ac major(), minor(), and makedev() 1999-04-26 06:10:36 +00:00
cgd
9524149336 use fcntl() flags from osf1.h, map all of them 1999-04-26 05:57:53 +00:00
cgd
1904f78fb5 fcntl() flags 1999-04-26 05:56:34 +00:00
cgd
6d24aedc2c table-based translation of sigaction and sigaltstack flags 1999-04-26 05:35:08 +00:00
cgd
635a7843a1 copyright notice 1999-04-26 05:32:18 +00:00
ad
d52e1e73df Add cdev declaration for `px', major 98. 1999-04-26 04:42:10 +00:00
ad
4e3888516e Many fixes to support PXG, PXG+ and PXG+ Turbo. Interrupt handling is
totally broken for the PXG and will remain so until more documentation is
available. This destroys the queueing, hardware clipping, and VDAC update
mechanisms on the PXG.
1999-04-26 04:37:33 +00:00
ad
6db752a5c1 "px.h" requires inclusion. 1999-04-26 04:34:00 +00:00
ad
98fc8dbc76 `pm' device can also be 8bpp - fix dependancy line. 1999-04-26 04:32:05 +00:00
ad
b83c863839 Fixed to match rasops config glue. 1999-04-26 04:30:26 +00:00
cgd
6dbaac99f9 slight cleanup of spacing 1999-04-26 04:29:43 +00:00
ad
a6f7f56fde Remove crud remaining from userland mockup. 1999-04-26 04:29:12 +00:00
ad
f9510a4f4b Innumerable fixes and improvements. README contains list of remaining bugs
that need to be squashed.
1999-04-26 04:27:47 +00:00
ad
613a381d71 Update configuration to match `rasops' fixes and config glue. 1999-04-26 04:25:38 +00:00
ad
caf44885ea Change WSFONT_LITTLE/WSFONT_BIG to WSFONT_L2R/WSFONT_R2L to reduce possible
confusion.
1999-04-26 04:24:22 +00:00
cgd
35a22b65fc rlimit stuff 1999-04-26 03:30:48 +00:00
cgd
646c8f519a resource limit definitions 1999-04-26 03:29:05 +00:00
cgd
5d3c1d0c49 use osf1.h definitions and some table-based flag translation 1999-04-26 03:10:58 +00:00
cgd
32c9cd9866 exec and mount structs/defns, and some cleanup 1999-04-26 03:07:40 +00:00
jonathan
9c39aaeeca Add common SYSV* options (from i386).
Add "options LKM", since with ELF/ECOFF format kernels it should now work.
1999-04-26 02:20:02 +00:00
cgd
445556f304 add a section of OSF/1 types, and add many more OSF/1 structures and
definitions.
1999-04-26 01:24:26 +00:00
cgd
1d0207c926 const-ify flags translation tables.
kill some cruft, and move various flags and structure definitions into
  osf1.h (not done yet).
Do a better job of translating fcntl(), and translate flags in sento()
  emulation.
1999-04-26 01:23:01 +00:00
cgd
196564f8e3 remove some structs and def'ns; they're moving to osf1.h 1999-04-26 01:22:18 +00:00
cgd
637226f0ad pull in osf1.h 1999-04-26 01:21:43 +00:00
cgd
ad10b95967 translate EAGAIN/EWOULDBLOCK properly 1999-04-26 01:16:04 +00:00
ross
f868468aaa Never used, and work-in-progress uses a different header. 1999-04-25 20:15:06 +00:00
eeh
3f944123d6 Fix uninitialized variable bug in pmap_enter(). 1999-04-25 17:23:04 +00:00
eeh
962ed777c3 Garbage collect some old stuff. 1999-04-25 16:18:46 +00:00