Commit Graph

55957 Commits

Author SHA1 Message Date
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
simonb
45e03c4ed5 Regen; add the HP ScanJet 2200C. 2002-05-12 07:56:59 +00:00
simonb
04d64c386d Add the HP ScanJet 2200C. 2002-05-12 07:55:57 +00:00
takemura
9373835df6 BUGFIX: SigmarionII can't resume.
Added config_hook_call_reverse() to call the hardpower hook of CMU
(Vr clock mask unit) before the hardpower hook of MQ200 video controller.
2002-05-12 07:41:22 +00:00
matt
3b2e959dfc Supress RX_MAC interrupts regarding the FRAME_COUNT register. 2002-05-11 20:53:52 +00:00
bjh21
0dd9cb79f4 Add puc at pci and com at puc, since those seem to work under 1.5.2 (and hence
have no excuse for not working in -current).
2002-05-11 18:05:12 +00:00
takemura
0428a3de8e Just deleted junk lines. 2002-05-11 14:23:51 +00:00
takemura
108ae8567c BUGFIX: Xhpc dumps core on SigmarionII.
Attached MQ200 video controller at PCI bus.
2002-05-11 14:10:04 +00:00
enami
b86c56a0b6 Add comment that getblk() in ufs_bmaparray() returns an error only if
we are pagedaemon.
2002-05-11 12:23:53 +00:00
itohy
c81ad2b05d Userland __COPYRIGHTs have \ns in them, and do not use asm(). 2002-05-11 11:57:14 +00:00
enami
af81fabf7c Remove #ifdef DIAGNOSTIC around panic(). It is better than NULL pointer
dereference.
2002-05-11 11:56:57 +00:00
jdolecek
77a65b5e56 use _KERNEL_OPT rather than _KERNEL && !_LKM 2002-05-11 09:39:25 +00:00
jdolecek
82b1bed645 protect opt_compat_svr4.h with 'if defined(_KERNEL_OPT)', so that
this is usable from e.g. LKM context
2002-05-11 09:34:00 +00:00
takemura
fda2f03cb3 Enabeled OHCI USB controller on MobilePro 800. 2002-05-11 08:56:39 +00:00
uwe
bc05b169da Correct AltGr keycode for 680/US layout. 2002-05-11 04:57:43 +00:00
enami
3700fdfba4 Don't release the lock on mount point vnode so early when doing update mount.
Otherwise, race condition occurs (e.g., between mountd(8) and next mount(8)
when multiple update mount command is invoked from shell script).
2002-05-11 00:45:06 +00:00
matt
c1fc5d35dc Many fixes. Multicast hash filter works now. Autonegotiation with GigE
on Mac G4's now works.  XXX Checksum offload still needs to be done.
2002-05-11 00:36:02 +00:00
itohy
d2a97e2196 _C_LABEL() police 2002-05-10 23:21:17 +00:00
uwe
c061e3c249 Use symbolic WSCOL_* colour names instead of magic numbers. 2002-05-10 22:01:13 +00:00
uwe
c43b5d9a7b Comment change only: remove XXX. 2002-05-10 21:05:13 +00:00
thorpej
0cc96b0fbe Make sure ifp->if_baudrate is valid when the parent's statchg
callback is made.

Pointed out by Matt Thomas.
2002-05-10 20:45:05 +00:00
uch
b1f3b48aa2 Don't reset to old interrupt level at the exit of interrupt handler.
It didn't ensure the maximum interrupt nest depth.
2002-05-10 20:14:39 +00:00
thorpej
22cea0e73c Add IXP1200 steppings. 2002-05-10 17:50:25 +00:00
tron
1e891c870b Add missing bracket arround macro argument reference. 2002-05-10 17:27:23 +00:00
uch
3fb2a4d436 cosmetic changes. 2002-05-10 15:28:45 +00:00
uch
4e8a77d890 clean up disassembler code. 2002-05-10 15:27:05 +00:00
uch
55326aaa7e remove COMPAT_13 staff. No 1.3 release of sh3 port. these are trace of
i386 port.
2002-05-10 15:25:12 +00:00
tron
d45825cf63 Remove check for size of field "d_off" in Linux "dirent" structure because
this problem cannot happen with the 64Bit version of the getdents().
2002-05-10 14:51:26 +00:00
tron
352c1fa967 Fix off by one error in check for size of field "d_off" in Linux
"dirent" structure.
2002-05-10 14:49:38 +00:00
tron
add83289ca Move implementation of linux_sys_getdents64() to source file for
Linux 64bit filesystem calls.
2002-05-10 14:38:08 +00:00
lukem
e34d4e21de fix comment 2002-05-10 11:07:01 +00:00
enami
293906a53a Redo rev. 1.57 a bit different way; don't use `tpg' since it may be freed.
Subtract the number of pages behind us when calculating new offset instead.
2002-05-10 07:51:37 +00:00
itojun
861dfdc294 disable ipsec policy caching on pcb, as it seems that there's some reference-
counting mistake that causes panic - see PR 15953 and 13813.

i am unable to find the real cause of problem, so it is a shortterm workaround,
hopefully.
2002-05-10 05:49:21 +00:00
thorpej
51ea83a9f5 Remove last vestiges of procfs references. Problem pointed out
by Geoff Wing <mason@primenet.com.au>.
2002-05-10 05:45:50 +00:00
itojun
d7669537a8 remove unneeded #ifdef __FreeBSD__ portion. 2002-05-10 05:38:29 +00:00
enami
911c9febb2 Don't modify the local variable `n' in genfs_putpages(). It should contain
the number of elements in the page array at the beginning of every iteration.
2002-05-10 02:51:44 +00:00
augustss
2acf4c8462 Use callout init macro. 2002-05-09 21:54:32 +00:00
fredette
c857df5775 When preparing to swap to a miniroot partition, add a little
padding to our estimate of the miniroot's size, to avoid
overwriting it.
2002-05-09 21:43:44 +00:00
jdolecek
63c597b71a This is now in distrib/acorn32/stand/BtNetBSD. 2002-05-09 20:23:08 +00:00
matt
48d39d805c Print out interrupt we attached to. 2002-05-09 20:20:18 +00:00
atatat
de7144e830 Maintain a short list of the actual descriptors that were closed and
log that intead of being ambiguous about which of 0, 1, and/or 2 it
was that was closed.
2002-05-09 17:57:07 +00:00
thorpej
b6950c9729 Mirror cleanup wrt. procfs-centric naming made to the MI ptrace code. 2002-05-09 16:28:11 +00:00
thorpej
f1f51aa2b8 Move code shared by procfs and the kernel proper out of procfs and
into the kernel proper (renaming functions from procfs_* to process_*).
2002-05-09 15:44:44 +00:00
uch
8db367d98c remove trap.h 2002-05-09 12:42:08 +00:00
uch
aade7a10ce cosmetic changes 2002-05-09 12:41:09 +00:00
uch
3d97be3a02 add #ifdef SH3, SH4 2002-05-09 12:40:03 +00:00
uch
e51ba214c5 mdsetimage ram-disk kernel setting 2002-05-09 12:39:24 +00:00
uch
1cbf8597ef adapt to new pmap code. 2002-05-09 12:37:58 +00:00
uch
242aff8afc adapt to new pmap. 2002-05-09 12:36:17 +00:00
uch
0aaff2a14f IOM_RAM_BEGIN is changed to specify physical address. 2002-05-09 12:35:44 +00:00
uch
20ac353f38 adapt to new pmap. 2002-05-09 12:34:53 +00:00
uch
9e6860e202 IOM_RAM_BEGIN is changed to specify physical address. 2002-05-09 12:34:20 +00:00
uch
7571effdda adapt to new pmap. 2002-05-09 12:33:18 +00:00
uch
303d5b61d8 change bootstrap stack to below the 'start' 2002-05-09 12:32:55 +00:00
uch
3a1a0b37af IOM_RAM_BEGIN is changed to specify physical address. 2002-05-09 12:32:09 +00:00
uch
cee1a2f41a remove unused macro. 2002-05-09 12:31:38 +00:00
uch
2ca56b0d33 remove postsig. postsig is called by ast(). 2002-05-09 12:31:19 +00:00
uch
d5020bf906 remove obsolete interface. add defines for inquire cache feature. 2002-05-09 12:30:45 +00:00
uch
44b57799f2 fix comment 2002-05-09 12:30:11 +00:00
uch
4c73523c72 suitable for SH3/SH4 memory architecture.
support non-contiguos memory banks.
2002-05-09 12:29:48 +00:00
uch
c34e1b1ad5 adapted to pmap and exception code changes. 2002-05-09 12:29:16 +00:00
uch
5cf2727a95 new pmap designed for SH3/SH4. 2002-05-09 12:28:08 +00:00
uch
bf93dc9b4c remove obsoleted functions. add sh_tlb_update() for update TLB.
MMU mode is changed to multiple virtual storage mode for new pmap code.
2002-05-09 12:27:04 +00:00
uch
fa6d5570e7 fix ASID mask define 2002-05-09 12:26:16 +00:00
uch
944192661c s/trapno/expevt/ for clarity. 2002-05-09 12:25:41 +00:00
uch
d610fecf0f rework general exception, and TLB exception handling for new pmap.
all exception staffs are moved to exception.[ch]
2002-05-09 12:24:19 +00:00
enami
e3cc9c0682 When traversing by list, if the page next to us is a page in the cluster,
advance the pointer.
2002-05-09 07:22:09 +00:00
jdolecek
77003c3fea seems like a ``cd .'' is necessary in non-interactive shell
to get PWD set in /bin/sh

XXX this should really be converted to Makefile, and avoid non-intree
XXX tools like zip
2002-05-09 07:18:46 +00:00
enami
fabaf9a730 - In genfs_putpages(), no need to restrict the cluster within the given
region.
- In uvm_aio_aiodone(), remove assertions no longer true.
2002-05-09 07:14:37 +00:00
enami
6ceef3fc14 In uao_put(), if we wait for the busy page owned by someone else,
we can't simply reuse the pointor to the page.  Instead, we need to
acquire it again.  So, rearrange the loop like genfs_putpages() does.
Reviewed by chuq.
2002-05-09 07:04:23 +00:00
itojun
31a6ad2757 backout 1.72. it is not correct for the kernel to remove routes by itself,
and the code was buggy (dereferenced null pointer when IFAFREE removes the
route).
2002-05-09 06:49:15 +00:00
simonb
5457f78a34 Don't bother testing if a uint8_t is > 256 -- that test is always false. 2002-05-09 02:44:39 +00:00
thorpej
3e669d3bca * Increase the number of Tx job queue entries from 32 to 64.
* Garbage-collect some unused stuff.
* Make the Tx window slide along the Tx job queue space, not the
  Tx descriptor space.  We are more likely to run low on DMA maps
  than we are hardware descriptors.
2002-05-09 01:00:12 +00:00
matt
983a0a0749 LMC_CTL_LEN1 and LMC_CTL_LEN2 extracted each other's fields. Stop doing
that.
2002-05-09 00:58:45 +00:00
thorpej
3ce23a4ac6 * Instrument the number of times we force a Tx interrupt.
* When forcing an interrupt, make sure that interrupt-delay-enable is
  cleared (necessary with last change to make sure it's set for all
  descriptors).
* Crank up the Transmit Interrupt Delay Value to 1024 * 1.024 msec.  We
  really want these to be deferred.
2002-05-09 00:41:06 +00:00
thorpej
7d3e137a0c Hard-wire CLKF_BASEPRI() to 0 on the ARM, since spllowersoftclock() might
not actually be able to unblock the interrupt, which would cause us
to run the softclock interrupts with hardclock blocked.

Per discussion w/ Charles Hannum.
2002-05-08 22:22:46 +00:00
thorpej
88f6c3663b Don't set WTX_TCPIP_CMD_TCP or WTX_TCPIP_CMD_IP in the TCP/IP context
descriptor.  Those are apparently only valid if using the Cordova's
"segmentation offload" feature.
2002-05-08 21:43:10 +00:00
thorpej
d680cf3220 * Make sure the interrupt-delay bit gets set on ALL descriptors,
except for the one we want to force a Tx interrupt.
* Tweak the Tx descriptor accounting a little.
2002-05-08 21:22:20 +00:00
thorpej
3992641218 Implement a cache for the outbound IP/TCP/UDP checksum offload
context.
2002-05-08 19:00:27 +00:00
mycroft
bfea3f39cb Wire CLKF_BASEPRI() to 0 on this platform. (See tech-kern.) 2002-05-08 18:45:49 +00:00
chris
ae7f07a2ab Add detection for the NetGear FA411. It just seems to work as an ne device. 2002-05-08 18:18:55 +00:00
scw
b6ce571885 Add support for FTDI USB->Serial adapters based on the FT8U232AM chip.
Changes inspired by the latest linux version of the driver.

This gets the dongle supplied with my HP Omnibook working (it has no
legacy com(4) ports).
2002-05-08 18:10:19 +00:00
scw
5550c45ad4 Regen. 2002-05-08 18:06:47 +00:00
scw
5cbc5940fc Add product ID for FTDI USB<->Serial adapter based on FT8U232AM chip. 2002-05-08 18:06:09 +00:00
thorpej
935179d022 * Account for the descriptor consumed by the Tx checksum offload
context setup.
* Implement Matt Thomas's sliding Tx interrupt window algorithm,
  forcing an interrupt when the Tx desc list is 2/3 consumed.
* Use the Report Packet Sent interrupt, rather than Report Status,
  since we use the Tx descriptor to count Tx errors.
2002-05-08 17:53:28 +00:00
uwe
afd360002d Oops, mspcic_bus_mmap was, effectively, adding offset twice.
While here, add __KERNEL_RCSID.
2002-05-08 16:51:39 +00:00
drochner
3c33c0f57e Since the minor numbers belonging to the partitions of a disk are not
contigous anymore, we can't call vdevgone() for the whole range at once.
(we should probably change the vdevgone() interface)
This also fixes some wrong use of DISKUNIT().
2002-05-08 15:49:07 +00:00
pooka
6562508c4b Make INDY the Indy config file
Add DRAKEN as a model of what to do with the O2 (effectively the same
file as the old INDY)
2002-05-08 13:52:17 +00:00
jdolecek
7ad1acf323 use ${.OBJDIR} rather than ${.CURDIR}/obj.${MACHINE} (eek)
g/c -I${.CURDIR} and -I${S}/lib/libkern from ${INCLUDES}
build libsa dev_net.c via .PATH and SRCS rather than special rules
2002-05-08 11:27:30 +00:00
lukem
4ec732199e nuke MD installboot (ok-ed by thorpej) 2002-05-08 04:09:46 +00:00
matt
2f836188fb If the detected media is gigabit, change the gem to use GMII mode otherwise
switch back to MII mode.  Keep a sliding window for TX segments and when it
gets > 2/3 full, request a TX interrupt (window gets reset when the h/w TX
queue is empty).  Add dv_xname to a few printfs.  With the above changes,
the gem driver will now work on Macintoshes, even in GigE mode.  On a 733
PowerMac G4 it gets ~355Mb/s TX and ~280Mb/s RX to/from an Alpha XP1000.

XXX mii autoselect is still flakey.
2002-05-08 02:12:55 +00:00
drochner
162314b746 regen 2002-05-07 18:23:23 +00:00
drochner
6c432706fa add EasyDisk Flash Disk 2002-05-07 18:22:56 +00:00
pk
eb95178e15 Patch up to work with MI installboot(8). 2002-05-07 14:13:02 +00:00
jdolecek
87f82807b0 some whitespace cleanup 2002-05-07 13:03:47 +00:00
lukem
9e4faf5cb2 no more ../../sparc/stand/installboot 2002-05-07 12:45:18 +00:00
lukem
37d1d9cf41 decommission old installboot; it doesn't work on bootxx anymore anyway. 2002-05-07 12:32:52 +00:00
jdolecek
b57a8b3514 track rev. 1.7 of pmax/stand/boot/Makefile:
use ${INSTALL_FILE} instead of "cp -p"
2002-05-07 12:28:20 +00:00
lukem
cea307e47c convert to <sys/bootblock.h> 2002-05-07 12:06:06 +00:00
pk
db2a20d3fc Convert `bootxx' to raw binary format which is what the MI installboot(8)
program needs.
2002-05-07 11:32:44 +00:00
onoe
453bd2f8c2 Add support for LINKSYS Instant Wireless Network CF Card 2002-05-07 09:39:52 +00:00
onoe
cb52efccad regen: Add LINKSYS Instant Wireless Network CF Card 2002-05-07 09:37:28 +00:00
onoe
902298b5c5 Add LINKSYS Instant Wireless Network CF Card 2002-05-07 09:36:50 +00:00
tron
953a52bd9e Fix memory leak which occurs after an allocation failure. 2002-05-07 09:14:20 +00:00
jdolecek
828400151c add -ffreestanding to CFLAGS, so that this wouldn't attempt to link in libc(ugh)
g/c the -Wno-main and HAVE_GCC28 stuff
make the machine symlinks via common .BEGIN cookie, so that they would
  be properly setup for 'depend' or 'dependall' targets too; g/c the limits.h
  symlink, which doesn't seem to be needed
2002-05-07 09:03:52 +00:00
jdolecek
9edc8549c6 some esp register names are no longer provided by next68k espreg.h,
use MI <dev/ic/ncr53c9xreg.h> ones
2002-05-07 08:57:31 +00:00
enami
b42b2c8323 In soreceive(), don't call sopendfree() if MSG_DONTWAIT is set
since it may sleep.  nfsrv_rcv() tries to do its jobs in softintr
handler as far as possible.
2002-05-07 08:06:35 +00:00
uwe
440409e641 Delint a bit. 2002-05-07 06:45:22 +00:00
gmcgarry
d9248c05c1 FPSP required. Noted by Michael Wolfson. 2002-05-07 06:17:10 +00:00
gmcgarry
918cdbbb79 Make more featureful. 2002-05-07 06:07:30 +00:00
uwe
58789acb68 Delint. Add /* CONSTCOND */. Add parens to macro argument to avoid
interesting interaction between cc -C and comma inside a comment after
macro definition.
2002-05-07 05:56:47 +00:00
uwe
41e6fbc398 Delint somewhat. 2002-05-07 04:52:49 +00:00
thorpej
a19e4685f7 Make CLKF_INTR() slightly less broken. The previous definition always
tested true if the CPU was running in the kernel at the time of the clock
interrupt, therefore all such time (kernel and idle) was counted as interrupt
time.  The new definition simply punts on trying to count interrupt time,
which allows us to see kernel and idle time.
2002-05-07 04:01:59 +00:00
thorpej
3a3df0d1d2 Fix reading values mapped in P1 via /dev/kmem (problem uncovered by
uch's new pmap).
2002-05-07 03:28:25 +00:00
matt
e5555e5c26 Change struct ipqe to use TAILQ's instead of LIST's (primarily for TCP's
benefit currently).  Rework tcp_reass code to optimize the 4 most likely causes
of out-of-order packets: first OoO pkt, next OoO pkt in seq, OoO pkt is part
of new chuck of OoO packets, and the OoO pkt fills the first hole.  Add evcnts
to instrument tcp_reass (enabled by the options TCP_REASS_COUNTERS).  This is
part 1/2 of tcp_reass changes.
2002-05-07 02:59:38 +00:00
uwe
2baa6f8e86 Drop SUN4_PGSHIFT and SUN4CM_PGSHIFT. They are already known to .S
files from sys/param.h.  The problem is that lint stubs are generated
with -C (keep comments) and gcc complains about macro redefinition,
since "assym.h" doesn't have the comments that "sys/param.h" has.
2002-05-07 02:38:44 +00:00
enami
c4e1385f55 Fetch the right page from a file even if it is mapped from middle of it.
This makes `tail -<N> <FILE> | cat > file' correctly, where <FILE> is
a regular file larger than 10Mbytes (makes tail to map part of file)
and <N> is big enough to produce output larger than 8kbytes (makes pipe
to use page loan facility).  Problem reported by FUKAUMI Naoki on japanese
local mailing list.
2002-05-07 02:29:52 +00:00
simonb
91a4b7da7f Use "NOMAN=" instead of "MKMAN=no"; per lukem. 2002-05-07 02:13:51 +00:00
simonb
79cc6dcb79 Remove a "NOMAN="; Makefile.booters now has MKMAN=no. 2002-05-07 02:04:26 +00:00
simonb
67c33ffcda Remove two shadowed variables, one of which was set to what it was
shadowing(!) and the other a temporary variable (as was it's shadow).
Code generated with "gcc -O2" is the same before and after.
2002-05-07 02:02:41 +00:00
uwe
c38dba996a lint target depends on ${LINTSTUBS}, not on (nonexistent) ${KERNLINTSTUBS}. 2002-05-07 02:00:17 +00:00
uwe
8107633e20 bus space methods should be "static __inline__", not "extern __inline__".
Otherwise an unoptimized kernel cannot be linked.  Reviewed by pk.
2002-05-07 00:37:47 +00:00
eeh
2a4ecb6335 Add a flag for ofpci to let psycho chose between pci and ofpci. 2002-05-06 22:41:10 +00:00
eeh
d87653c0d2 Switch to ofpci. 2002-05-06 22:34:40 +00:00
eeh
91c28a3626 Add code to attach ofpci. 2002-05-06 22:29:22 +00:00
chris
c419c08421 Regenerate for Netgear FA411. 2002-05-06 22:28:18 +00:00
chris
b72d0938bb Add in Netgear FA411. 2002-05-06 22:26:48 +00:00
eeh
ba4db702d5 Recognize `ofpci' as a PCI bus. 2002-05-06 22:20:57 +00:00
eeh
19fcb9e555 Fix printing during attach and get rid of pci_cd that's provided by the linker. 2002-05-06 22:20:07 +00:00
eeh
24954ac8ae Add ofpci_make_tag(). 2002-05-06 22:18:51 +00:00
eeh
2ec18b07b9 Provide pci_cd if needed. 2002-05-06 22:12:43 +00:00
eeh
822aeae880 Note ofpci and ofppb. 2002-05-06 22:11:50 +00:00
jdolecek
05d0665f1c rename memory_disc_size to md_root_size, so that kernels without
MEMORY_DISK_ROOT_SIZE option link
also make local md_root_size size_t

XXX is the load_memory_disc_from_floppy() stuff actually still being used?
2002-05-06 21:18:25 +00:00
eeh
1805506872 Add ofpci and ofppb. 2002-05-06 19:48:05 +00:00
eeh
e60dcd0a0b Add ofppb to match ofpci. 2002-05-06 19:40:20 +00:00
eeh
509fa464af Add the ofpci driver. 2002-05-06 19:39:51 +00:00
eeh
5d47d866f7 Only put interrupts into the list for that interrupt level if the handler
is not shared.  Otherwise put the shared interrupt dispatcher in the list.
2002-05-06 19:19:48 +00:00
bouyer
f23186dae7 Don't return an error for "Not Ready To Ready Transition (Medium May Have
Changed)" and "Power On, Reset, or Bus Device Reset Occurred" senses, if
we're trying to open the device.
2002-05-06 13:43:57 +00:00
takemura
8178b68188 Added ukphy to use USB ethernet adopters. 2002-05-06 13:42:29 +00:00
lukem
b26614a4af s,<dev/sun/sun_boot.h>,<sys/bootblock.h>, 2002-05-06 13:35:17 +00:00
lukem
3777b83a3f <sys/bootblock.h> is a better name than <sys/bootinfo.h> 2002-05-06 13:32:19 +00:00
lukem
e8bbb685d9 Replace <dev/sun/sun_boot.h> with <sys/bootinfo.h>, which is intended
to be more generic than ``bbinfo definitions for Sun-based systems''.
Other platforms can store bbinfo-style information here, and possibly
other platform-specific boot information that needs to be accessible
by foriegn platforms in tools such as /usr/sbin/installboot.
2002-05-06 05:27:53 +00:00
enami
59a79c7928 Remove wrong assertion in previous commit. 2002-05-06 03:20:54 +00:00
uwe
73843c4a73 Comment change only. Update the version of GENERIC this config is
synced with.
2002-05-06 02:04:14 +00:00
lukem
e27890b7d9 fix previous more correctly; MAXBLOCKNUM was replaced by SUN68K_BBINFO_MAXBLOCKS 2002-05-06 01:25:11 +00:00
ad
5d6cd5914c Put back a missing brace. 2002-05-06 00:48:58 +00:00
enami
8876669f4c Since npages may includes number of pages behind us, we can't use it to
update current offset.  Instead, use the last page in the run of pages
to calculate new offset.
2002-05-06 00:42:22 +00:00
enami
e6513c283e Stylistic change; introduce new local variable and use it instead of
sprinkling different expression to test if we're pagedaemon.
2002-05-06 00:18:15 +00:00
enami
cfa571e2e2 The per nfsnode n_commitlock is a sleep lock, but we can't sleep if
PGO_LOCKED getpages request.  So, just make the lock fail and tell
the caller that there is no pages available if we can't acquire it.
The caller will call us again soon without PGO_LOCKED.  Reviewed by chuq.
2002-05-06 00:07:51 +00:00
gmcgarry
5a1f9fc69c 400-series machines only have DIO framebuffers. From discussion
with Michael Lorenz and Bernd Sieker.
2002-05-05 22:55:49 +00:00
jdolecek
f1a07a4001 no manpages here 2002-05-05 22:09:05 +00:00
jdolecek
093d8bdbdd Put the contents inside #ifdef _KERNEL, similarily to mac68k one,
so that the innards are not exposed to userland.
2002-05-05 22:07:59 +00:00
jdolecek
628a2b8665 Get ctrlsp.S via .PATH directive, rather than adding full path
to SRCS. This should fix build problem with ro source tree.
2002-05-05 20:38:48 +00:00
jdolecek
9eed164863 remove redundant (and wrong) main() prototype 2002-05-05 20:11:37 +00:00
tsutsui
92896ac2a1 Add a null asm statement in adb_read_date_time()
to avoid wrong reordering by gcc-2.95.3 with -fgcse.

XXX Should we disable -fgcse everywhere?
2002-05-05 18:36:03 +00:00
tsutsui
87ebd3218c Backout previous. It is not timing problem, but gcc optimization bug. 2002-05-05 18:29:06 +00:00
jdolecek
8b225b8ff7 also don't make the machine symlinks for 'clean' target
move the CLEANFILES update out of the .if, so that the files get removed
  for 'clean' or 'cleandir'
2002-05-05 17:11:41 +00:00
chs
e926e6ec99 use the correct size when zeroing an array. 2002-05-05 17:01:41 +00:00
chs
dcc6963777 for softdep vnodes, always write together the pages for any block that
might have a dependency , since the accounting doesn't work otherwise.
fixes PRs 15364 16336 16448.
2002-05-05 17:00:06 +00:00
jdolecek
f2f12a240b Update to md(4) changes: memory_disk_size is now md_root_size, and
type is size_t
2002-05-05 16:26:30 +00:00
chs
988df8394c look in the right flags field for PQ_INACTIVE.
make uvmpd_scan_inactive() return void since its return value is ignored.
2002-05-05 16:26:17 +00:00
jdolecek
db6fc29f1c avoid unnecessary use of MAXBLOCKNUM (which is not defined here) 2002-05-05 16:02:24 +00:00
jdolecek
4dd6651e00 CLEANFILES should be set regardless of target 2002-05-05 15:57:15 +00:00
jdolecek
b9308c4120 also don't do the machine symlinks for 'cleandir' target 2002-05-05 15:42:26 +00:00
jdolecek
806100bb55 Don't make the machine symlinks for 'cleandir' target either. This
should fix read-only source builds.

XXX Perhaps the condition should be changed to
XXX .if make(depend) || make(all) || make(dependall)
XXX similarily to bsd.kmod.mk?
2002-05-05 15:30:05 +00:00
bouyer
58e5d90faa Don't disable TARF_TAG when the 1010 workaround is active, otherwise
the target won't do tagged queuing again after e.g. a bus reset.
Just report to scsipi that we can't do tagged queuing.
2002-05-05 15:23:22 +00:00
bouyer
df3d2c7ac3 If periph->periph_callout is already active, don't freeze the periph again:
scispi_periph_timed_thaw() will be called only one time anyway.
2002-05-05 15:16:30 +00:00
isaki
9c4195c510 libsa/Makefile: Fix rules to create symlinks on read-only source tree.
{boot,libsa,mboot}/Makefile, Makefile.booters:
 move that common rule to Makefile.booters
2002-05-05 11:46:29 +00:00
martin
9f680534b0 Add strtoul. 2002-05-05 11:23:24 +00:00
martin
9ccc186245 Add PCMCIA support (for nell at sbus and pci cardbus bridges) 2002-05-05 11:22:19 +00:00
bjh21
caff9d0e7e Change the various targets to look more like their libsa counterparts.
I think this'll help on read-only source trees.
2002-05-05 10:02:17 +00:00
bjh21
505c2b63d1 Re-arrange "machine" magic so it's in the same place as on i386. This seems
to help things happen in the right order (I smell a missing dependency).
2002-05-05 10:01:26 +00:00
thorpej
27f38656ef Add missing const. 2002-05-05 08:23:03 +00:00
thorpej
80303e7e64 Add .register directives to appease newer gas. 2002-05-05 08:15:15 +00:00
thorpej
e9bb69ab48 Add .register directives to appease newer gas. 2002-05-05 06:07:42 +00:00
thorpej
ca83c89dd4 A statement must follow a label. 2002-05-05 06:01:28 +00:00
takemura
65b0c92cb8 Added cast '(u_int16_t *)'.
4th arg of bus_space_read_multi_2 and bus_space_write_multi2 shuld be
u_int16_t *.
2002-05-05 03:19:26 +00:00
thorpej
9a88d576c1 hme_init(): call mii_mediachg() to make sure the current media is set. 2002-05-05 03:02:38 +00:00
scw
132a9c91d5 Make sure main() has a prototype and a return type of "int". 2002-05-04 22:05:29 +00:00
bjh21
ca9a3c5b44 <bsd.hostprog.mk> and <bsd.prog.mk> don't play nicely together. Since
<bsd.hostprog.mk> includes <bsd.files.mk> anyway, drop <bsd.prog.mk>.
2002-05-04 21:56:50 +00:00