Commit Graph

55836 Commits

Author SHA1 Message Date
simonb ee3ab87335 Print some error messages when the codec fails to initialise (some errors
were already reported, others weren't).
Sprinkle some KNF around.
2002-05-15 09:55:45 +00:00
lukem 966b42a3e6 bootblock.h:
- unify sparc_bbinfo (1064 bytes, with 256 block entries)
  and sun68k_bbinfo (296 byte, with 64 block entries)
  into shared_bbinfo (512 bytes, with 118 block entries),
  which will be also shared by future bbinfo-using platforms
  (including macppc)
- add datestamp to *_BBINFO_MAGIC strings, to prevent installboot vs
  bootxx version skew.
- add macppc support

*/bootxx.c:
- migrate to new shared_bbinfo structure

installboot:
- add macppc support (still needs applepartmap support and testing)
- improve and add some more warnings & errors to installboot
- implement shared_bbinfo_clearboot() and shared_bbinfo_setboot(), which
  perform the majority of the work for bbinfo-using back-ends
  (rather than replicating that across multiple back-ends).
2002-05-15 09:44:54 +00:00
matt 357945ce6f When core dumping a process, don't dump maps backed up by the device pager.
(move the pagerops externs to uvm_object.h and out the C files).
2002-05-15 06:57:49 +00:00
lukem 86671d3350 - implement putstr(), and use in various places instead of printf()
- wrap more debug stuff in #ifdef DEBUG
- for bootxx, provide minimal panic() which uses putstr() instead of printf()

bootxx is now < 7.5KB
2002-05-15 04:07:41 +00:00
matt 486ad92d2a Add evcnt stuff for interrupts.
Fix receiver lockups.  When writing the RX Kick register, we need back up
on descriptor since we advanced one in the for loop.  That will be the
last descriptor we haven't processed which is what we should write.
2002-05-15 02:36:11 +00:00
enami 694a0fec54 When loaned page become ownerless as a result of freeing, it should be
dequeue'ed from pageq.  Fix provided by chuq.
2002-05-15 00:19:12 +00:00
matt d6f9a400fe Fix initialization of GEM_RX_MAC_INTR. 1 means mask. 2002-05-14 23:33:41 +00:00
eeh d295742774 Have CLKF_BASEPRI() always return false for now to prevent hardclock
from being blocked by softclock.
2002-05-14 21:21:45 +00:00
perseant 8886b0f4b2 Phase one of my three-phase plan to make LFS play nice with UBC, and bug-fixes
I found while making sure there weren't any new ones.

* Make the write clusters keep track of the buffers whose blocks they contain.
  This should make it possible to (1) write clusters using a page mapping
  instead of malloc, if desired, and (2) schedule blocks for rewriting
  (somewhere else) if a write error occurs.  Code is present to use
  pagemove() to construct the clusters but that is untested and will go away
  anyway in favor of page mapping.
* DEBUG now keeps a log of Ifile writes, so that any lingering instances of
  the "dirty bufs" problem can be properly debugged.
* Keep track of whether the Ifile has been dirtied by various routines that
  can be called by lfs_segwrite, and loop on that until it is clean, for
  a checkpoint.  Checkpoints need to be squeaky clean.
* Warn the user (once) if the Ifile grows larger than is reasonable for their
  buffer cache.  Both lfs_mountfs and lfs_unmount check since the Ifile can
  grow.
* If an inode is not found in a disk block, try rereading the block, under
  the assumption that the block was copied to a cluster and then freed.
* Protect WRITEINPROG() with splbio() to fix a hang in lfs_update.
2002-05-14 20:03:53 +00:00
chris 56deade0b7 Make INSTALL smaller, so it fits in 4MB, removed:
USB (controller and devices)
INET6
tlp, swap it with de, as tlp still has issues on cats.
2002-05-14 19:44:57 +00:00
perseant 3fa1c8abe9 Protect v_synclist with splbio(); note that LIST_REMOVE is not an idempotent
operation if more than one LIST_REMOVE happens on interrupt, so both the test
for VONWORKLIST and the LIST_REMOVE(vp, v_synclist) need to be in splbio().
2002-05-14 19:37:18 +00:00
augustss 1906cd67ef ANSIfy. 2002-05-14 19:23:45 +00:00
chris a9e806ee0c Implement scheduler lock protocol, this fixes PR arm/10863.
Also add correct locking when freeing pages in pmap_destroy (fix from potr)

This now means that arm32 kernels can be built with LOCKDEBUG enabled. (only tested on cats though)
2002-05-14 19:22:34 +00:00
mycroft 1523c4c12f In ufs_mkdir(), write the data block *before* updating the inode with the
block pointer, to prevent "DIRECTORY CORRUPTED" errors from fsck(8).
Note: The behavior in the softdep case is unchanged, but needs to be fixed.
2002-05-14 17:37:52 +00:00
soren fa3bdb57ba Add some codenames. 2002-05-14 16:21:47 +00:00
pooka 95af0aba23 include GENERIC, set TEXTADDR right 2002-05-14 15:42:25 +00:00
pooka fe422abe40 a real version of GENERIC 2002-05-14 15:38:43 +00:00
lukem 5e90f2ad0b deprecate MD installboot in favour of MI installboot in /usr/sbin 2002-05-14 14:57:14 +00:00
lukem aaa7dba035 - Enable NFS_BOOT_DHCP (as well as the existing NFS_BOOT_BOOTPARAM).
DHCP/Bootp is tried before bootparams in the MI nfs mountroot code.
- Change the order in boot.net from "bootparams then bootp" to
  "bootp then bootparams", to be consistent with the MI nfs mountroot code.

(Consistency with other NetBSD ports is good, and things still work
for sites that run bootparams but not dhcp/bootp, although I'd argue that
dhcp/bootp is much easier to setup and manage and is easier to debug
than our rpc.bootparamd...)

Per discussion with Paul Kranenburg and Matt Green.
2002-05-14 14:27:33 +00:00
yamt b70f1bdb62 - don't use ENTRY() macro for data.
- fix calculation of bit offset of DR7.
2002-05-14 14:22:33 +00:00
augustss 14389c7b50 Regen. 2002-05-14 12:05:35 +00:00
augustss 72d8d32c1d Add a Heuricon host bridge. 2002-05-14 12:05:13 +00:00
itojun b5f1426ee0 rename: net.inet6.ip6.bindv6only -> net.inet6.ip6.v6only
sync w/kame.
2002-05-14 10:27:28 +00:00
lukem 4369818766 Migrate alpha/pmax/vax bootblock stuff from <dev/dec/dec_boot.h> to
<sys/bootblock.h>  (leaving ultrix compat goo in the former)
2002-05-14 06:34:20 +00:00
matt 0dc8ee943d Eliminate more commons or redundant declarations. 2002-05-14 02:58:32 +00:00
matt fed7110558 Commit out code that's no longer used. 2002-05-14 02:46:22 +00:00
lukem 86af66583e correct a couple of comments 2002-05-14 02:41:34 +00:00
eeh e8ff5b27c8 Trapframes only have locals or ins if the kernel is compiled DEBUG. 2002-05-14 02:34:14 +00:00
eeh 1d52c1bd50 Only save locals and ins in trapframes for DEBUG kernels. 2002-05-14 02:23:07 +00:00
matt 84eb329d14 Eliminate commons (including many used ones). Clean up variable references. 2002-05-14 02:03:00 +00:00
lukem 6c34850421 add sparc64 stuff 2002-05-14 01:18:50 +00:00
matt 855ee2e758 #include <db/db_extern.h> 2002-05-14 00:14:53 +00:00
matt 109792dc5c Eliminate commons. (including a few unused or mismatched ones). 2002-05-14 00:08:21 +00:00
matt 0d14655c1c Add local definition of adosfs_vnodeop_p 2002-05-14 00:05:56 +00:00
matt aefe6a5034 Eliminate common. 2002-05-13 23:50:32 +00:00
eeh fc5fdc8819 Add rtc@ebus. 2002-05-13 22:38:01 +00:00
thorpej adbd145bda Make alpha_pal_halt, alpha_pal_wrent, and alpha_pal_wrvptptr no-profile. 2002-05-13 21:38:30 +00:00
thorpej 456615e083 Make sigcode and proc_trampoline no-profile. 2002-05-13 21:38:09 +00:00
thorpej ee76016e40 Make the sigcode no-profile. 2002-05-13 21:37:11 +00:00
jdolecek b631b39a19 Change the reset code to block interrupts and use polled commands; also
eliminate the kthread now that it's not necessary, and use callout instead.
This seems to fix the X mouse freeze problem.

Testing and some debug printf fixes by Martin Husemann.
2002-05-13 21:18:51 +00:00
matt 5916ff65fd Eliminate commons. 2002-05-13 21:11:23 +00:00
eeh 7b70e3b8fb Fix off-by-one error in iommu_dvmamap_load_raw() where if a DMA segment
has just one byte on a page the page is never mapped into the IOMMU.
2002-05-13 21:01:15 +00:00
matt 0a6d35b7ed Nuke local extern label_t *db_recover; it's now in <ddb/db_extern.h> 2002-05-13 20:30:07 +00:00
matt 98b5a4329f Add db_recover 2002-05-13 20:17:20 +00:00
kleink 241f6932ee * Use uint{8,32}_t from <netinet/in.h> where applicable; use private
fixed-width integer types otherwise.
* Protect RFC 2292 prototypes, which are not XNS5.2/POSIX-2001; also, define
  size_t for inet6_rthdr_space().
2002-05-13 15:20:30 +00:00
kleink 0f1faf8e09 IPV6PORT_* aren't in the reserved namespace either. 2002-05-13 14:25:13 +00:00
kleink d258299876 Check _POSIX_C_SOURCE as well. 2002-05-13 14:15:34 +00:00
matt c27fdbcdbe Don't panic is no class-code, just return. Needed for NetraX1. 2002-05-13 13:59:21 +00:00
kleink a317e750c3 Update two comments. 2002-05-13 13:52:31 +00:00
kleink 1b8d8d79a8 Define uint{8,32}_t locally, per XNS5.2/POSIX-2001, and use them in this
header where applicable; use private fixed-width integer types otherwise.
2002-05-13 13:34:32 +00:00
augustss 4c3acbe183 Two minor fixes from OpenBSD. 2002-05-13 12:10:04 +00:00
pk bb42415ffa Check whether a console is attached before sending data upstream. 2002-05-13 09:42:12 +00:00
hannken 616dac6232 Add support for NetMos NM9805 1284 Printer port.
Tested by David Kwok <dkwok@iware.com.au>.
2002-05-13 09:19:57 +00:00
matt 44b3464a48 debug0, debug1, debug15 are defined elsewhere. XXX there needs to a
better was of doing this.
2002-05-13 07:13:58 +00:00
matt bab0fa8919 Remove redundant declarations. 2002-05-13 07:12:21 +00:00
matt f62dc5c664 Remove redundant declarations. 2002-05-13 07:04:24 +00:00
matt a0b018ab58 Remove redundant declarations. 2002-05-13 06:41:30 +00:00
matt c8f0da6300 Eliminate redundant declarations. 2002-05-13 06:26:45 +00:00
matt d7ee0a910a Remove declarations for variables that defined elsewhere in MPC6XX code. 2002-05-13 06:17:36 +00:00
simonb ada33c9eac Oops, remove an #endif leftover from the previous change. 2002-05-13 06:11:52 +00:00
matt d210f0530b Eliminate commons. 2002-05-13 06:05:32 +00:00
matt 6456f8fa92 Make COMPAT_LINUX compile again on Alpha. linux_getdents64 moved but
files.linux_alpha wasn't updated.  common/linux_file64.c contains a lot
of syscalls which aren't on Linux/alpha so #ifdef them for alpha.
2002-05-13 05:41:26 +00:00
simonb 75119b46c5 Remove an unreachable "return error;". 2002-05-13 05:37:58 +00:00
simonb 7a0dcaf565 Remove an unreachable "return 0;". 2002-05-13 05:35:47 +00:00
simonb f6efa04293 Remove an unreachable "break" after a return statement. 2002-05-13 05:31:42 +00:00
simonb c790dd34b6 Add a comment after an #endif to match up with an #ifdef. 2002-05-13 04:15:40 +00:00
simonb ee2264c945 All MIPS ports have been ELF for a long time (most since they were
created); remove non-ELF assembly support.
2002-05-13 01:39:17 +00:00
matt 3064b5ac0a Eliminate common. 2002-05-13 01:33:12 +00:00
soren f514efc600 Make the build machinery happy for now. 2002-05-13 01:26:27 +00:00
matt 075e474458 Eliminate commons. 2002-05-12 23:16:52 +00:00
matt 6e15a048de Remove declaration of total. nothing uses it. 2002-05-12 23:15:42 +00:00
matt 0cb85bc7b9 Eliminate commons. 2002-05-12 23:06:27 +00:00
matt caf4b56c6f Eliminate commons 2002-05-12 23:04:35 +00:00
kleink 602066c0d6 Provide local definitions of in_{addr,port}_t in <netinet/in.h> and use
them where deemed appropriate by XNS5.2/POSIX-2001.
2002-05-12 23:04:15 +00:00
kleink cc7147e7f6 Use <sys/ansi.h> definitions for in_{addr,port}_t. 2002-05-12 22:59:50 +00:00
kleink d05cce938c Provide private definitions for in_{addr,port}_t. 2002-05-12 22:58:48 +00:00
matt 7ec7462c84 Remove/move a redundant extern. 2002-05-12 21:43:57 +00:00
matt cc7f90a332 Eliminate commons. 2002-05-12 21:43:23 +00:00
thorpej c1f51e00c0 Back out change accidentally committed. 2002-05-12 21:39:46 +00:00
matt 8dcbea3bed Eliminate commons. 2002-05-12 21:30:35 +00:00
matt ea5cd1699b Extern speclisth 2002-05-12 20:42:03 +00:00
matt 2d83d27dfa Eliminate more commons. 2002-05-12 20:40:11 +00:00
matt 17b32e3800 Make ppp_softc[] extern and declare in if_ppp.c 2002-05-12 20:38:15 +00:00
matt e89ff519c5 Make domains extern. 2002-05-12 20:36:58 +00:00
matt 380e257dac acctp is not used anywhere so delete it. 2002-05-12 20:35:15 +00:00
matt c03e11f081 Eliminate commons. 2002-05-12 20:33:50 +00:00
matt 13e5187f62 More commons eliminated. 2002-05-12 20:23:49 +00:00
matt 2364682526 Eliminate use of commons. 2002-05-12 19:09:12 +00:00
jschauma 839f90b6f7 Linux does not implement SO_REUSEPORT, but allows reuse of a
host:port pair through SO_REUSEADDR even if the address is not a
multicast-address.  Effectively, this means that we should use
SO_REUSEPORT when SO_REUSEADDR is set (from the linux process)
to allow Linux applications to not exit with EADDRINUSE.

(Previously erraneously applied to 1.5 branch; approved for
proper location by thorpej)
2002-05-12 18:30:32 +00:00
matt 403b0fdb73 If a dma map can't be loaded due to resource shortage, make we report that
as a resource shortage instead of a driver stuffup.
2002-05-12 16:51:06 +00:00
wiz d30d25dc1a Spelling fixes, from Sergey Svishchev in kern/16650. 2002-05-12 15:48:36 +00:00
jdolecek 4d23ad14c5 don't strip the resulting bootprog on install; it's raw binary
XXX I hope this is correct way to do this
2002-05-12 15:18:27 +00:00
jdolecek 9e0898063f regen - hook linux_sys_fcntl64() 2002-05-12 15:05:56 +00:00
ichiro be557a5f28 change ICP12x0 steppings.
define CPU_IXP12X0
2002-05-12 15:05:41 +00:00
jdolecek b6168e0ca7 regen - 64 fs syscalls 2002-05-12 15:04:59 +00:00
jdolecek 0197718567 hook in remaining 64bit fs syscalls
make most of stuff in linux_file64.c available unconditionally,
  with exception of fcntl64, which is not present on Linux m68k
2002-05-12 15:04:27 +00:00
jdolecek a757d39f99 regen 2002-05-12 13:57:08 +00:00
jdolecek 187c2394f1 update for newer syscalls (from 2.5.15)
Linux m68k doesn't seem to have fcntl64 syscall - oversight?
2002-05-12 13:55:54 +00:00
simonb 8cb3bbd37c In bootpcheck(), make sure we m_pullup() all the of bootp header that we
actually examine.
While here, toss out home-grown ofs() macro and use offsetof().
2002-05-12 12:52:58 +00:00
simonb 819efe9017 Recognise the HP ScanJet 2200c as a scanner, tested with xsane. 2002-05-12 08:04:41 +00:00