Commit Graph

30060 Commits

Author SHA1 Message Date
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
eeh
e921bb961d Defer final console attach to zs_attach(). 1999-04-25 16:16:31 +00:00
pk
569836a986 It is no longer necessary to protect bus_dma_[un]load() at splbio, since
sparc bus_dma*() functions now protect their own internals..
1999-04-25 10:40:53 +00:00
pk
421994a39b In pmap_{zero,copy}_page4m() use setpgt4m() to setup temporary address
mappings.
1999-04-25 10:30:02 +00:00
hwr
fb7871d6b2 If the incoming code value is 0, timer gets 0, which would mean
a divide by zero afterwards.
This is also, what Bill Fenner seems to have done in the FreeBSD igmp
code.
This should fix kern/6541.
1999-04-25 10:26:29 +00:00
scw
fdd587c0ea Define MKNOLINT=no and _STANDALONE. 1999-04-25 10:05:00 +00:00
simonb
1a2458f405 Const msize & mclbytes. 1999-04-25 04:51:53 +00:00
simonb
666e14b944 pmax kernels now compile with -Wuninitialized. 1999-04-25 04:04:53 +00:00
simonb
59df0560f4 Set the colormap index before checking it! 1999-04-25 04:04:16 +00:00
simonb
d2bd346fb8 Shut 'gcc -Wuninitialized' up (including a real case I missed with ddb
symbol initialisation).
1999-04-25 03:20:45 +00:00
simonb
a560bdeeec Use the nmbclusters variable and not the NMBCLUSTERS constant when setting
the mclpool hardlimit.
1999-04-25 03:03:03 +00:00
simonb
6aaa1ee1b7 Shut 'gcc -Wuninitialized' up. 1999-04-25 03:02:05 +00:00
simonb
5d8b1ef3e4 g/c REAL_CLISTS. 1999-04-25 02:56:26 +00:00
simonb
8a8e8d144f Shut 'gcc -Wuninitialized' up. 1999-04-25 02:42:01 +00:00
thorpej
4c7a2ee3b0 Fix a couple of problems in the PCscsi-PCI driver:
* resid in pcscp_dma_intr() should also be set in the data out phase.
* Don't set up DMA in the transfer pad operations.
* Change URL of the PDF technical manual to the index page.
* include <machine/bswap.h> on big endian machines.

Fixes timeouts writing large blocks to tapes.  From Izumi Tsutsui,
PR 7252.
1999-04-25 01:20:02 +00:00
thorpej
207f873ac2 Fix an mbuf leak in the strict alignment case of packet reception. 1999-04-24 22:09:56 +00:00
eeh
df102fbcb5 Deprecate `findzs()' and try to map in the zs registers if they're not mapped
by the prom.
1999-04-24 21:08:12 +00:00
eeh
96b63fc788 Don't defopt COMPAT_NETBSD32 here; it's done in sys/conf/files. 1999-04-24 19:17:33 +00:00
dbj
9176bfee30 add nextkbd flag to nextcons.c so that kernel can be cleanly
configured without a video console
patch submitted by Matt Debergalis
1999-04-24 17:55:10 +00:00
ross
28ef22871e Copy isdn4bsd cdevsw hooks from i386 conf.c. 1999-04-24 17:01:15 +00:00
simonb
f676307241 Include "px.h" - rcons_connect_native is only compiled in of NPX > 0.
Fixes PR port-pmax/7456 from Jason Thorpe.
1999-04-24 15:22:45 +00:00
simonb
b7c062102c Oops, deleted a register_t instead of register in previous. 1999-04-24 15:04:32 +00:00
simonb
dc1d3940db Nuke register and remove trailling white space. 1999-04-24 08:01:01 +00:00
cgd
45a020863e substantial cleanup, including:
* do more flags conversions, using the table driven converter.
* check for alternate (emulation) path in lots more places.
1999-04-24 07:23:54 +00:00
cgd
ed106195ea cleanup: kill syscall args comments 1999-04-24 07:13:23 +00:00
cgd
d081124ca2 cleanup: nuke register 1999-04-24 07:09:49 +00:00
cgd
d7c211e583 cleanup: kill syscall args comments 1999-04-24 07:06:35 +00:00
cgd
dd4d52e331 slight hdr inclusion cleanup, get ioctl-related def'ns from osf1.h 1999-04-24 06:59:11 +00:00
cgd
8b1bcd5e9c pull in osf1.h, not osf1_errno.h 1999-04-24 06:58:26 +00:00
cgd
2fc0019c7a Collected OSF/1 definitions and structures, sorted by OSF/1 header.
Error numbers (errno.h) aren't here, since they're likely to change
(additions) more often.
1999-04-24 06:56:25 +00:00
cgd
5b217baeb1 implement a simple function, emul_flags_translate() to do table-based
flags translation.
1999-04-24 02:56:06 +00:00
cgd
f023a00cd1 clean up multiple inclusion protection def'ns 1999-04-23 18:01:05 +00:00
cgd
1c19c07f42 clean up multiple inclusion protection def'ns and whitespace 1999-04-23 18:00:34 +00:00
mark
9a56e04261 Fix microtime() to sanely handle calls before the clocks have been
initialized. This is the DC21285 version of the IOMD fix for PR7357.
1999-04-23 09:09:04 +00:00
cgd
cc6809bffa regen for 'const poisoning for strings, and minor cleanup' 1999-04-23 06:20:33 +00:00
cgd
c95f8f86c1 const poisoning for strings, and minor cleanup 1999-04-23 06:19:51 +00:00
cgd
c470144d55 use the errno mapping array 1999-04-23 06:15:35 +00:00
cgd
8ca456cbb3 add osf1_errno.c 1999-04-23 06:07:55 +00:00
cgd
f0f87c5554 finish updating this for signal changes, as was started in the
mis-labeled ("const poisoning"?!??!) rev 1.6.
1999-04-23 05:56:28 +00:00
cgd
f33ddea5c4 add an OSF1_CHECK_ALT_CREAT, similar to OSF1_CHECK_ALT_EXIST 1999-04-23 05:55:13 +00:00
cgd
575e9f8dfd support emulation-specified errno mapping tables 1999-04-23 05:43:02 +00:00
cgd
4a84f3545a OSF/1 errno definitions, and a NetBSD -> OSF/1 errno mapping table. 1999-04-23 05:37:41 +00:00
cgd
f12f795592 a quick hack to make generating errno conversion tables from our and other
systems' headers a bit easier.  leaves much to be desired, but it's better
than nothing.
1999-04-23 05:31:33 +00:00
thorpej
83f9ab3c87 Implement asynchronous autonegotiation when driven by the MII tick
(one-second clock).  Prevents .5s delays every 5 seconds when the interface
is up but there is no link.  Fixes PR 7361.
1999-04-23 04:24:32 +00:00
thorpej
94682a459b These are no longer used: replaced by locore_mips1.S and locore_mips3.S. 1999-04-23 00:10:15 +00:00
pk
c3f1aa0d3e Don't send any data upstream if we're not open yet. 1999-04-22 20:37:37 +00:00
mycroft
3800206dc5 Map the Home and End keys as xterm does. 1999-04-22 20:06:02 +00:00
wrstuden
9b0e678d51 Fix compilation errors. 1999-04-22 18:48:59 +00:00
ender
e544636cde Disable ASC interrupt enabling for now. We don't currently use it, and
it seems to be causing hangs at attach time on LCII's.
1999-04-22 18:00:34 +00:00
christos
cd9b06e204 Don't try to use <stdio.h> (when -DDEBUG) if we are -D_STANDALONE or -D_KERNEL
Now the boot blocks compile with -DDEBUG
1999-04-22 16:32:01 +00:00
minoura
43d6c498cc I deleted a necessary line by mistake. 1999-04-22 16:22:49 +00:00
minoura
f9afee1b29 Bus error occurred on such machines without the SCSI ROM.
Insert badaddr() check before read the ROM.
1999-04-22 12:55:53 +00:00
drochner
ca053f4364 remove an "unmodified" so that the copyright notice will hopefully match
pk's "BSD-style (clauses: 2; no acknowledgements)" pattern
1999-04-22 10:27:16 +00:00
ross
a1cca18262 Implementing bus_space_barrier(9)::isa_bs_barrier() with panic(9)
does in fact get you a barrier, but it's unnecessarily drastic.
Fixes kern/7431 "SHARKs with a serial console and com.c 1.59.2.1 won't boot".
1999-04-22 10:12:41 +00:00
leo
098c344c9b Make sure that we can link against the libsa.a library. It looks like a
gross hack, but I don't know how to fix this in another way.
1999-04-22 07:17:01 +00:00
simonb
8ce41be7b0 Move inclusion of "opt_sb_max.h" from sys/socketvar.h to
conf/param.c, and move the initialisation of the sb_max
variable from kern/uipc_socket2.c to conf/param.c.  Now
everthing that includes sys/socketvar.h doesn't get
recompiled when SB_MAX's value changes.
1999-04-22 04:50:05 +00:00
chs
05b971dd5f in pmap_pageable(), rather than marking a PT page as not modified
to trick the pagedaemon into freeing it later, just unmap the page
and free it immediately.  fixes PR 7337.
1999-04-22 04:24:52 +00:00
augustss
afe636b9fa Add some digitizer usage codes. 1999-04-22 01:57:01 +00:00
simonb
6f6573cb10 Move BOOTINFO_ADDR up to 0x8001fc00, and reduce the maximum size of a
bootinfo record to 1kB (we are using less than 200 bytes now) so that it
doesn't run into addition PROM memory.

At 0x8001f00 the bootinfo record was stomping on some memory used by the
SFB cards for font information.
1999-04-22 01:52:54 +00:00
simonb
be3adbebcc Don't extern sb_max, <sys/socketvar.h> provides a definition. 1999-04-22 01:32:30 +00:00
ad
6ee9a851df Let `mapchar' in operations set decide if characters (c > 127) are printable. 1999-04-22 00:46:36 +00:00
ad
a895fbfd58 Define rcons_connect() only if (NFB > 0). Define rcons_connect_native() only
if (NPX > 0). Needed for fixed `rasops' config glue.
1999-04-22 00:33:30 +00:00
ad
ca39efe84c Remove misplaced comment. 1999-04-22 00:29:59 +00:00
fvdl
3fb6f009a4 Handle instruction prefixes (skip them, in our case). 1999-04-22 00:23:33 +00:00
thorpej
81eb5b98aa Add a couple of missing splbio()/splx() pairs that caused pool corruption. 1999-04-21 22:14:15 +00:00
augustss
1fcbe7ae13 Use the right buffer in immediate mode. 1999-04-21 19:02:26 +00:00
abs
609ddc8c40 Remove spurious call to de_bn2cn(). A "cluster" in MSDOSFS is already
equivalent to a "block" is in FFS. Fixes vnds on MSDOSFS, and should
eliminate a 'getblk: block size invariant failed' panic.
Directly from PR7380 <elric@imrryr.org>.
1999-04-21 17:13:22 +00:00
simonb
25715bb0f2 Comment out 'config nfsnetbsd'. 1999-04-21 12:53:56 +00:00
scottr
136972df3a Actually, the last change solved a different but related problem than
the one mentioned in PR 7376.  By clearing the display in iteon()
instead, we can kill both birds with the same stone.
1999-04-21 06:00:07 +00:00
scottr
48ff49fee0 When attaching the ite console, clear the entire display rather than assuming
that the emulator will do it for us.  (The emulator will only clear
full character-sized rows.)  Incidentally fixes PR 7376.
1999-04-21 05:18:17 +00:00
mrg
48c12bfeed revert previous. oops. 1999-04-21 02:37:07 +00:00
mrg
58540a2274 properly test the msgsz as "msgsz - len". from PR#7386 1999-04-21 02:31:49 +00:00
simonb
24323d7ef4 In cpu_startup():
+ Initialise minaddr to the start of the file I/O buffers.
 + Check for overallocation of RAM for these buffers.
 + Change function name in panic message to match reality.

Code taken from almost every other port, and fixes the:
   uvm_km_suballoc: unable to allocate space in parent map
panic that some people have been experiencing.
1999-04-21 02:03:24 +00:00
thorpej
dc63f8c31a Fix a problem where SOFTWARE_SSTEP would skip one instruction each time
on the Alpha.
1999-04-21 00:00:06 +00:00
cgd
227295dad5 set lflag when printing pointers with %p 1999-04-20 23:04:17 +00:00
jonathan
cc3feba3f5 Don't attach an 3bc509B as ep? at isa if the EEPROM is set to to PnP mode.
See PR# port-i386/7428
1999-04-20 22:07:37 +00:00
ross
be000bc016 Revert 1/2 of previous change. INSECURE is still OK for alpha. 1999-04-20 21:43:03 +00:00
thorpej
f7b0fea081 After reviewing the Green Book, BPT traps do indeed leave the PC pointing
to the instruction _after_ the `call_pal bpt' instruction.
1999-04-20 21:30:15 +00:00
thorpej
375b3fa699 Prototype alpha_debug(), and add some definitions for KGDB. 1999-04-20 21:23:56 +00:00
thorpej
62d09f4f93 Move the inclusion of <machine/bus.h> to within a _KERNEL section. 1999-04-20 21:23:09 +00:00
thorpej
869951571d - Clean up ddb_trap() somewhat, and handle exceptions that happen while we're
in DDB (e.g. if a bad pointer was dereferenced; the debugger will recover).
- Change a comment to indicate that we are on the debugger stack when we get
  to ddb_trap().
- Fix possible buglet in computation of the branch target in db_branch_taken().
1999-04-20 21:19:48 +00:00
thorpej
701edb8db8 - Revert previous, and do debugger entry if kernel BUGCHK or BPT traps
happen.  If the debugger doesn't handle the trap, arrange things so the
  debugger won't be called again before we panic.
- Before panic'ing, give the debugger a chance to field the trap, and
  if the debugger has handled things, allow the kernel to continue running,
  like the i386 port does.
1999-04-20 21:16:59 +00:00
thorpej
a12dedc3ea - Revert previous change to XentIF(), now that we're going to enter the
debugger differently.
- Pull in debugger glue if DDB is configured.

And one unrelated change, while I was here: Don't create a fake trapframe
for main(); it hasn't been used by main() for quite some time, and panic
if main() returns, because that's not supposed to happen now.
1999-04-20 21:11:59 +00:00
thorpej
1b2eac076f Add a common debugger entry point, alpha_debug(), which performs various
tasks (i.e. switches to the debug stack) and then invokes the appropriate
debugger (DDB or eventually KGDB).
1999-04-20 21:09:49 +00:00
thorpej
9d78593b30 Back out previous; we're going to dispatch to the debugger differently. 1999-04-20 21:08:23 +00:00
pk
52db3a158e Correct QESTAT `%b' format string. 1999-04-20 20:24:39 +00:00
pk
d93e27676e Remove splbio()/splserial(), which should not try to protect bus_dma*(9)
internals.
1999-04-20 20:21:04 +00:00
pk
901a03b897 Protect extent(9) ops with splhigh(). 1999-04-20 20:15:48 +00:00
mark
7c3542d098 Add the rnd pseudo device. 1999-04-20 09:30:08 +00:00