Commit Graph

53756 Commits

Author SHA1 Message Date
manu
f8e0ee9efc Fixes a bug in argument passing to ntp_adjtime1. patch submitted by
paul@Plectere.com (see kern/15519)
2002-02-25 21:16:36 +00:00
kleink
03cae416f5 Add an attachment for the MK48T18 RTC/NVRAM found on some Motorola boards. 2002-02-25 19:09:43 +00:00
kleink
9e8cc352a9 Update datasheet URLs. 2002-02-25 17:37:47 +00:00
ad
3f78ffdeca Argh, dont reference any wscons parts in files.dec yet. 2002-02-25 17:11:17 +00:00
kleink
bc2fec2880 Typo in comments. 2002-02-25 16:18:19 +00:00
ad
f89bb3064e Move the dz driver to dev/dec, since it can be shared with pmax. 2002-02-25 14:58:06 +00:00
itojun
8832af6e59 correctly enforce ipsec policy check on forwarding case.
From: Greg Troxel <gdt@ir.bbn.com>, Bill Chiarchiaro <wjc@work.cleartech.com>
2002-02-25 02:17:55 +00:00
augustss
306aa99ff8 Some portability improvement.
Add define for usb.h version.
2002-02-25 00:46:37 +00:00
chs
811c8fad2b in amap_pp_adjref(), avoid unnecessary fragmentation of the am_ppref array
by merging the first changed chunk with the last unchanged chunk if possible.
2002-02-25 00:39:16 +00:00
kleink
d5fe2ac32f Declare the id argument to pci_conf_hook(9) as pcireg_t, which is more
appropriate.
2002-02-25 00:34:13 +00:00
kleink
6805e97fff Make the logic for wildcarding the I/O address actually achieve its purpose. 2002-02-25 00:04:49 +00:00
thorpej
c92241b420 Correct a comment. 2002-02-24 20:51:56 +00:00
leo
fa1cc12897 Move some disk I/O and disklabel functions into the library. The code
mostly originated from aptck. Need an extra pass over aptck to cut out all
functionality now moved to the library...
2002-02-24 20:51:07 +00:00
thorpej
4af7d26f26 Fix a couple of comments. 2002-02-24 20:44:28 +00:00
thorpej
0a4bc3ccd5 This file is obsolete. 2002-02-24 20:32:40 +00:00
thorpej
39c165f331 Add support for relocating gzboot's .text out of flash and into
RAM (while still decompressing the image directly from flash).

This makes gzboot run a LOT faster.
2002-02-24 20:29:44 +00:00
dbj
5f15cedc89 solve polled adb keyboard problems with dropped keys and unsynced caps lock
by queueing polled keys.
2002-02-24 20:20:20 +00:00
uch
31ae0ac1e9 clean up Makefiles 2002-02-24 20:10:53 +00:00
uch
6bda0e36c3 use sh_clock_get_pclock() instead of PCLOCK. 2002-02-24 19:35:42 +00:00
thorpej
d819468d64 Improve zlib error reporting. 2002-02-24 18:36:29 +00:00
uch
3c3da7bf57 _start -> start. 2002-02-24 18:24:15 +00:00
uch
693be1956c Move common exception vector and scheduler code to
sh3/sh3/exception_vector.S and sh3/sh3/locore_subr.S. exception
vectors are installed by sh_cpu_init().  machine/locore.S contains
kernel entry, interrupt handler, and some MD code.
2002-02-24 18:19:40 +00:00
uch
72589177e0 remove obsolete file. 2002-02-24 18:13:06 +00:00
martin
a7d662b71c Clear M_BCAST and M_MCAST on outgoing mbufs.
Don't copy ttl from the inner packet to the encapsulating packet. Make
the outer ttl sysctl'able. This should close PR 14269 from Jasper Wallace
(change partly from there) and it makes traceroute work over gre tunnels.
2002-02-24 17:22:20 +00:00
martin
fe97d3f7c3 Clear M_BCAST and M_MCAST flags on mbufs before passing them down to the
ethernet driver - just in case it would look at them and do the wrong
thing.
2002-02-24 17:11:53 +00:00
is
3763cdd026 remove unused prototype (a duplicate with a typing error) 2002-02-24 15:20:05 +00:00
kleink
5410bbdb16 In order to support both indirect PCI configuration space access as well
as direct-mapped PCI configuration space access (such as implemented on
the IBM 27-82650 PCI Host Bridge), switch to a function vector based
PCI configuration space access implementation.  The appropriate PCI
chipset tag is provided by platform-specific code.
2002-02-24 13:19:06 +00:00
kleink
73cdf7f537 Get rid of cf_unit misuse. 2002-02-24 11:22:00 +00:00
kleink
5b6184e81b Upon reflection, really choose the right pseudo-segment for PCI memory space. 2002-02-24 10:58:41 +00:00
kleink
50838c01e1 Move battable entries for I/O to their correct pseudo-segment offsets;
while BAT spills currently don't happen, it should be possible for the
handlers to find them at the expected address anyway.
2002-02-24 10:56:54 +00:00
takemura
6df64c4e5e Make it compilable even if PCI wasn't configured. 2002-02-24 09:16:07 +00:00
ad
a66008a0b5 Add WSMOUSE_TYPE_MAXINE. 2002-02-24 02:01:40 +00:00
thorpej
ca1294612c Remove some globals defined in libsa. 2002-02-24 01:51:04 +00:00
kleink
764103c61c Regen: add IBM 82660 PowerPC to PCI Bridge and Memory Controller. 2002-02-24 01:44:00 +00:00
kleink
914e8aef4a Add IBM 82660 PowerPC to PCI Bridge and Memory Controller. 2002-02-24 01:42:36 +00:00
matt
28b1aa2b30 Move .s files to .S files. (and .s.o rules in boot/Makefile.inc)
Put in register prefixes everywhere.
2002-02-24 01:04:23 +00:00
ad
fab93c4a60 Reserve majors 101 and 102 for wsmux and wsfont. 2002-02-24 00:39:36 +00:00
matt
17a0652faf Change the default entry for ELF. 2002-02-24 00:17:42 +00:00
matt
e2d6f22138 Add register prefixes to these. 2002-02-24 00:12:41 +00:00
matt
6cad4b795d Upon further reflection, move udiv/urem to libkern and out of vax/vax. 2002-02-24 00:08:19 +00:00
matt
87806a826d Rename VAX kernel assembly source from .s to .S (the NetBSD standard) 2002-02-23 23:48:00 +00:00
manu
63b308a593 FIxed typo 2002-02-23 22:43:56 +00:00
manu
d2e60e82f8 Fixed various sysconf() commands 2002-02-23 22:35:15 +00:00
gmcgarry
0166df69f5 Implement DIOCGDEFLABEL ioctl. 2002-02-23 21:55:25 +00:00
gmcgarry
49fd989e9b Unnecessary to cast splx() to void. 2002-02-23 21:54:31 +00:00
gmcgarry
562fb80d45 Make the keyboard attach printf a little less cryptic. 2002-02-23 21:53:25 +00:00
gmcgarry
5382848ec7 Recognise md as a valid root device. And since md disks don't get
device_register()'d, don't go looking on our device list for them.
Ramdisk kernel now boot.
2002-02-23 21:52:25 +00:00
gmcgarry
42abedb038 Trim down to 1.2MB ramdisk for booting on 4MB machines. 2002-02-23 21:48:08 +00:00
gmcgarry
19f1fd96ca Don't need printer support during installation. 2002-02-23 21:47:07 +00:00
gmcgarry
6a45dcbe5d Cleanup options for binary compatibility. HPUX and SUNOS are known to work. 2002-02-23 21:46:24 +00:00
gmcgarry
feb0773e27 Support two-stage netboot. Is known to work on maxine, but problems
have been reported on 3min.
2002-02-23 21:43:57 +00:00
thorpej
0780eaaa32 Use bcopy() and bzero(), since the rest of libsa does. This means
we don't have to pull in memset() and memcpy() from libsa.
2002-02-23 20:48:14 +00:00
leo
c3de71f0bf Fixup icu-code. It now works for both ISA and PCI. 2002-02-23 20:44:45 +00:00
thorpej
59f1dfe1c2 Don't need to provide zcalloc() and zcfree(); there are such routines
in libz.
2002-02-23 20:34:41 +00:00
thorpej
524d248b59 Fix the -DRELOC=... CPP flag. Add -DDYNAMIC_CRC_TABLE to shrink
the text (and, thus, the space taken up in flash) a bit.
2002-02-23 20:19:52 +00:00
briggs
caaef6d0d0 Implement obio_bs_rr_1. 2002-02-23 19:55:34 +00:00
thorpej
a91d5a1a99 Example Makefile and linker script for building a run-from-flash
gzboot image for the IQ80310 with room for 2M of compressed data.
2002-02-23 19:16:54 +00:00
thorpej
c39065eb62 Add support for running directly out of flash:
* Require that the builder Makefile provide a linker script.
* After making sure the MMU is disabled, check to see if
  _etext == __data_start.  If not, then copy the .data contents
  into RAM.
* Put the stack in .bss.
2002-02-23 18:19:09 +00:00
thorpej
87de164ab4 Fix a silly bug in the propellor spinning code. 2002-02-23 17:25:32 +00:00
scw
c4dbe1a160 Allow MD code to provide functions for reading/writing NVRAM/RTC
locations. If passed NULL, the old behaviour using bus_space_{read,write}_1()
is used. Otherwise, all access to the chip goes via the MD functions.

This is necessary for mvmeppc boards where the mk48txx NVRAM/RTC is not
directly addressable.
2002-02-23 17:18:54 +00:00
fvdl
99d2b6e3ef Add linux_sysctl.c 2002-02-23 16:46:03 +00:00
ad
b13d5cf210 Fix typo in previous. 2002-02-23 14:05:02 +00:00
toshii
3676484136 Make KERNEL_VM_SIZE a little larger so that ubc_init doesn't fail from
ENOMEM.
2002-02-23 14:02:48 +00:00
toshii
5e0f2080c8 Remove a bogus pmap_map_entry call. 2002-02-23 13:58:10 +00:00
dbj
c467951c58 turn on polling using cnpollc 2002-02-23 10:51:50 +00:00
dbj
b97918f553 In adb_soft_intr, remove the packet from the queue before calling the
completion routine so that the completion routine can reentrantly
process the queue.  This happens, for example. when polling is turned
on by entering the debugger by keystroke.
2002-02-23 10:47:16 +00:00
thorpej
d114b32f24 Add some nops after we enable the MMU, for good measure (enough for
the nops to be the prefetch'd insns when the MMU switch occurs).
2002-02-23 05:58:46 +00:00
thorpej
f31f6affa9 Make sure the MMU is enabled after we switch to the new kernel
page tables (gzboot disables the MMU before it does its work).
2002-02-23 05:55:26 +00:00
thorpej
0b91bc440f Move files[] from open.c to globals.c, so that it's possible to
use libsa in an application where there are no file systems or
devices.
2002-02-23 05:44:24 +00:00
thorpej
0fac1c42e9 gzboot -- boot a gzip'd kernel image. This is useful for booting
compressed kernel images from flash.

This needs more work, but is a good first-pass.
2002-02-23 05:41:14 +00:00
thorpej
1152fa21da Add some simple standalone device drivers for IOP310-based boards. 2002-02-23 05:12:01 +00:00
martin
8af2b425a2 Add a missing call to isapnp_config().
Do not hardcode IST_EDGE, use the type from the attach args.

Noticed by Christos Zoulas.
2002-02-22 21:26:47 +00:00
uch
43eee13717 fix comment. 2002-02-22 19:56:27 +00:00
uch
b1b1f1117b NetBSD/sh3 common part of clock routine. 2002-02-22 19:55:33 +00:00
uch
f3b1882035 print MMU infomation. 2002-02-22 19:46:34 +00:00
uch
45407e955f setjmp,longjmp are moved to sh3/locore_subr.S 2002-02-22 19:45:31 +00:00
uch
f694c9fdd7 New NetBSD/sh3 clock framework.
+ hardclock source is moved from TMU1 to TMU0.
 + SH3/SH4 common kernel support.
 + PCLOCK estimation.
 + remove duplicated code.
2002-02-22 19:43:58 +00:00
kleink
67678b7c54 Handle the 601's Run Mode/Trace Exception. 2002-02-22 18:50:45 +00:00
thorpej
9d157337f4 Fix the "va" argument to pmap_map_entry() when mapping kernel_ptpt. 2002-02-22 18:25:08 +00:00
thorpej
ac5d6ab89f Fix the "va" argument to pmap_map_entry() when mapping kernel_ptpt. 2002-02-22 17:26:36 +00:00
christos
ba74a6ad5a PR/15703: Sean Boudreau: Case in route_output() where struct rtentry *rt
dereferenced after free.
2002-02-22 17:26:31 +00:00
thorpej
37595cfcf8 Fix the "va" argument to pmap_map_entry() when mapping kernel_ptpt.
This happened to work in the IOP310 because the kernel runs VA==PA.
2002-02-22 17:23:13 +00:00
christos
df34bbcc7a Regen 2002-02-22 17:13:46 +00:00
christos
5cdee96e49 PR/15701: Mike Wlodarczyk: ISAPNP data for another SupraExpress 56I SP V.90 2002-02-22 17:13:26 +00:00
skrll
25133dd770 Pass the VA for kernel_ptpt as the VA to pmap_map_entry 2002-02-22 17:11:59 +00:00
simonb
e19a9be04b Note that "addu $x, $y, $0" is a "move" only in 32-bit mode.
XXX: need to revisit this.
2002-02-22 16:18:36 +00:00
ad
f5ba8920cf Note that INSECURE is needed for X with a px or pxg. 2002-02-22 16:17:23 +00:00
ad
287977b3d2 Replace one of two divide ops with an AND when calculating the XYMASK
address.
2002-02-22 16:05:27 +00:00
skrll
7590561ee1 Make sure the kernel_pt_table has the right physical to virtual address
mapping.
2002-02-22 15:57:38 +00:00
kleink
543f1e7a2d Handle the 601's Run Mode/Trace Exception as well. 2002-02-22 13:51:40 +00:00
lukem
da694bd77b fix spelos 2002-02-22 12:46:53 +00:00
enami
70ca5d5195 Record some page cache related information into ubchist. 2002-02-22 08:23:16 +00:00
briggs
c31c5df13c Bumb NMBCLUSTER defaults to 2048 for GATEWAY and 1024 otherwise. These
match current powerpc defaults and are more reasonable for the current era.
2002-02-22 06:41:48 +00:00
thorpej
5164bca298 Also generate flat binary kernels for the IQ80310. 2002-02-22 05:07:46 +00:00
thorpej
bb84e85802 Change pmap_map_entry() to work like pmap_map_chunk(): take a pointer
to the L1 table and a virtual address, and no pointer to the L2 table.
The L2 table will be looked up by pmap_map_entry(), which will panic
if the there is no L2 table for the requested VA.

NOTE: IT IS EXTREMELY IMPORTANT THAT THE CORRECT VIRTUAL ADDRESS
BE PROVIDED TO pmap_map_entry()!  Notably, the code that mapped
the kernel L2 tables into the kernel PT mapping L2 table were not
passing actual virtual addresses, but rather offsets into the range
mapped by the L2 table.  I have fixed up all of these call sites,
and tested the resulting kernel on both an IQ80310 and a Shark.
Other portmasters should examine their pmap_map_entry() calls if
their new kernels fail.
2002-02-22 04:49:19 +00:00
thorpej
77e3a89912 When reporting there is no VM map for a fault, also report the
faulting address.
2002-02-22 03:24:09 +00:00
christos
61e29fb60a Sean amended his patch not to include the IFAFREE() 2002-02-21 22:39:17 +00:00
mjacob
91f80cf3fc Implement F/W crashdumps for 2200 && 2300 cards (kernel compile option).
Distinguish between 2312 and 2300 cards (they *are* different). Enable
RIO (Reduced Interrupt Operation) for the LVD cards (hey- I've seen
batched completions of the 30 commands at a time with this,....)...

If we get a Port Logout on local loop topologies, we have to force the
f/w to log back in. The easiest way (for us) to do this is to force
a LIP. This also will wake up the disk that probably just had a f/w crash.

Implement mailbox 'continuations'- this allows interrupts to re-drive
a mailbox command if it's one that just essentially repeats the previous
mailbox command (e.g., f/w download). This saves a boatload of sleep/wakeup
twitches.

If we're not a 2300 and we're about to return with a 'bogus interrupt'- check
the semaphore register to be non-zero at all and outgoing mailbox 0- this
seems to be where some of the lost ISP1080 commands came from.
2002-02-21 22:32:40 +00:00
mjacob
11ab217af1 Add ISP_FW_CRASH_DUMP option for isp. 2002-02-21 22:23:33 +00:00
manu
a9c374ed26 Added munmap() and mprotect() 2002-02-21 22:15:28 +00:00
christos
2446cd0b68 PR/15662: Sean Boudreau: make sure we clean all routes of an interface when
we change its ip address.
2002-02-21 21:59:16 +00:00
thorpej
79738a99e9 Keep track of which kernel PTs are available during bootstrap,
and let pmap_map_chunk() lookup the correct one to use for the
current VA.  Eliminate the "l2table" argument to pmap_map_chunk().

Add a second L2 table for mapping kernel text/data/bss on the
IQ80310 (fixes booting kernels with ramdisks).
2002-02-21 21:58:00 +00:00
manu
89e46d8a99 Reworked the o32/n32 matching scheme. IRIX uses some e_flags in the ELF
header to distinguish between o32, n32 and n64 ABIs. We now use this.
This suppress the need of the mips_option test, which had some fake positive.
This also removes the mandatory ordering of n32 vs o32 in the exec switch
(exec_conf.c)
2002-02-21 21:53:00 +00:00
kleink
e9dc13b243 As discussed with Jason Thorpe: while the `cacheline_size\' argument is
a byte-size quantity, the CacheLine Size configuration register specifies
the system cacheline size in units of 32-bit words; per PCI Local Bus
Specification, rev. 2.1, section 6.2.4.
2002-02-21 20:22:48 +00:00
manu
9d16e4d12b Added gethostid/sethostid and the HOSTID command to systeminfo() 2002-02-21 11:09:43 +00:00
itojun
9c68db2bfc suppress source quence message, based on router-req RFC (also could be abused
as DoS traffic generator).  from kjc/kame
2002-02-21 08:39:33 +00:00
enami
60dccae121 Add RCS Id. 2002-02-21 08:23:31 +00:00
thorpej
6d35f61035 In pmap_map_chunk(), if we can't use a section mapping, then
make sure that the L1 slot for the current VA points to an L2
table, and panic if it doesn't.
2002-02-21 06:36:11 +00:00
thorpej
d96b0a83af Delete some unneeded comments. 2002-02-21 06:33:05 +00:00
enami
147331af13 Fix broken indentation. 2002-02-21 05:30:30 +00:00
thorpej
15e0450397 Always pass the L1 table to pmap_map_chunk(). This allows pmap_map_chunk()
to perform some error checking.
2002-02-21 05:25:23 +00:00
thorpej
454e106a48 map_chunk() -> pmap_map_chunk(), and move it to pmap.c 2002-02-21 02:52:19 +00:00
thorpej
5aa173cc6b Update for death of arm32. 2002-02-21 02:43:57 +00:00
eeh
93ead6c5e0 Fix pr sparc64/15633: datafault at tlp_start causes panic
Also clean up some additional 32-bit kernel printf issues.
2002-02-21 02:42:27 +00:00
simonb
b0a8050029 regen: Use BCM prefix instead of SB prefix in previous. 2002-02-21 00:00:28 +00:00
simonb
1d958329b8 Use BCM prefix instead of SB prefix in previous. 2002-02-20 23:59:58 +00:00
simonb
1df79a37a8 regen: Add the SiByte/Broadcom SB1250 PCI and LDT bridge IDs. 2002-02-20 23:53:32 +00:00
simonb
034caadcd2 Add the SiByte/Broadcom SB1250 PCI and LDT bridge IDs. 2002-02-20 23:53:01 +00:00
simonb
ee0bfb00bf regen: Rename the SIBYTE entry to "Broadcom Corp. (SiByte)". 2002-02-20 23:46:55 +00:00
simonb
e4007a266b Rename the SIBYTE entry to "Broadcom Corp. (SiByte)". 2002-02-20 23:45:50 +00:00
skrll
e187e66235 Remove a whole load of non-CATS stuff. 2002-02-20 22:32:10 +00:00
augustss
0db3eee7bb Add quirks for Minolta Dimage X. 2002-02-20 22:28:54 +00:00
augustss
dd0cea6baa Regen. 2002-02-20 22:28:20 +00:00
augustss
b1b2559c84 Add Minolta Dimage X (very nifty!). 2002-02-20 22:27:54 +00:00
skrll
f9d21f3995 Use shell arithmetic as much as possible and reduce the number of times
that awk is used to one.

No functional change.
2002-02-20 21:54:08 +00:00
manu
25e8963ed3 Fixed typo 2002-02-20 21:18:18 +00:00
skrll
2de2e35201 Fix typo in comment. 2002-02-20 20:47:40 +00:00
thorpej
425011f621 map_pagetable() -> pmap_link_l2pt(), and move it to pmap.c 2002-02-20 20:41:15 +00:00
christos
6728d906e9 Prefix structure members to protect them against clashes with eg. c++ keywords.
Suggested by Alfred Perlstein, from FreeBSD, ok'd by augustss
2002-02-20 20:30:12 +00:00
christos
07a8b6bf28 proper statfs emulation... 2002-02-20 17:03:03 +00:00
christos
227c487828 allow writing of kernel.version, kernel.osrelease, kernel.ostype... I might
revert that l8r if I come up with something better.
2002-02-20 17:02:48 +00:00
thorpej
75533175a2 Rename to NET4501. 2002-02-20 07:19:50 +00:00
enami
bb41d19bca In the function uvm_page_own(), clear owner_tag after assertion so that
we can see the owner when assertion failed.  Some indentation fix while
I'm here.
2002-02-20 07:06:56 +00:00
enami
9a623b9870 Don't use MALLOC for variable sized allocation. 2002-02-20 06:16:22 +00:00
thorpej
889d3fedd3 Sample kernel configuration for a Soekris Engineering net4501
single board computer.
2002-02-20 03:15:35 +00:00
thorpej
f777763ab3 * Rename the pxeboot binary from "pxeboot" to "pxeboot_ia32", since
there are other architectures (e.g. IA64) which also use PXE.
* Get the console right in pxeboot, from Andreas Gustafsson.
* Add a "com0" version of pxeboot, to address the same issue that
  biosboot_com0 addresses.
2002-02-20 03:00:27 +00:00
thorpej
c44b9117f0 Collapse map_entry{,ro,nc}() into a single pmap_map_entry() that
takes a prot and a "cacheable" indicator.
2002-02-20 02:32:56 +00:00
simonb
e0787bd639 Fix a tyop in a comment. 2002-02-20 01:34:19 +00:00
thorpej
9c31f51c34 Rename map_section() to pmap_map_section(), move it to pmap.c, and give it
an extra argument (prot - specifies protection of the mapping).
2002-02-20 00:10:15 +00:00
thorpej
9d6e94072b Bump the default data limit to 32M and the max data limit to 64M.
These are the same values that the hp300 port uses (lesser hp300s
have roughly the same memory constraints as "lesser" vaxen), and
bumping them allows us to run a statically linked ELF groff(1).
2002-02-19 22:44:35 +00:00
is
728d5e960d fix some swapped parameters 2002-02-19 22:42:25 +00:00
ragge
f2d946a56e blkset() used a register for set value that get clobbered by movc5,
causing the set area to get unpredictable contents.
2002-02-19 21:46:17 +00:00
thorpej
825d4ec152 Increase the reset delay in ex_reset() as per dev/ic/elinkxl.c
Pointed out by Love <lha@stacken.kth.se>
2002-02-19 20:38:28 +00:00
thorpej
dfeaa108c4 Add some comments to make some #if/#else/#endif's more clear. 2002-02-19 20:18:36 +00:00
thorpej
8545d4115b Put the netif driver name in the version banner. 2002-02-19 19:55:01 +00:00
thorpej
1ecb20dd3b Move the individual NIC ROM Makefiles into a subdirectories of
netboot.  Requested by Christos.
2002-02-19 19:49:37 +00:00
briggs
acf12a854d Use the MI md_root 2002-02-19 17:41:15 +00:00
uch
5f5cce9adc Clean up function declaration. 2002-02-19 17:22:34 +00:00
uch
1bdc7cc5ca Clean up functions
disable_intr, enable_intr, disable_interrupt, enable_interrupt,
disable_ext_intr, enable_ext_intr.
New functions:
for external interrupt:
_cpu_intr_suspend and _cpu_intr_resume.
for exception:
_cpu_exception_suspend and _cpu_exception_resume.
2002-02-19 17:21:18 +00:00
wiz
37e458fa45 strategy should have an 'r'. Inspired by similar change in OpenBSD. 2002-02-19 17:09:40 +00:00
nathanw
20d013dbed Regen. 2002-02-19 16:46:12 +00:00
nathanw
502ca4a24b Add linux_sys_{get,set}rlimit. 2002-02-19 16:44:09 +00:00
nathanw
cbc3e62bf0 Add LINUX_SA_NOCLDWAIT. 2002-02-19 16:35:59 +00:00
chs
96f907f394 fix two problems:
- when yielding the cpu while using the vnode's page list, use a marker page
   to keep our place in the list (like the other cases where we drop the lock).
 - wait until no one else has the page busy before deciding if the page needs
   to be cleaned.  a page will be dirty while it's being initialized but will
   be marked clean before PG_BUSY is cleared.
both found by enami.
2002-02-19 15:49:39 +00:00
uch
a3757d3ba3 fix LCD byte-order setting. 2002-02-19 14:21:47 +00:00
simonb
724e595530 Regen: Add the Concord Camera Eye Q 3x. 2002-02-19 14:13:01 +00:00
simonb
63e8b06dff Add the Concord Camera Eye Q 3x.
Reverse the Yamaha and Yano entries so they're in alphabetical order.
2002-02-19 14:12:02 +00:00
rafal
5af2ddd207 Add LINUX_SA_NOCLDWAIT, LINUX_SA_RESTORER, update LINUX_SA_ALLBITS. Linux
compat on mips builds again now.
2002-02-19 14:11:49 +00:00
simonb
72359ec83c Fix indentation botch. 2002-02-19 14:07:26 +00:00
simonb
2d8577fb83 Clean up some rampant code duplication wrt ieee number handling:
- Add alignment-safe double and float unions.
 - Use the above for the __infinity and __nan constants on all
   architectures that use the standard ieee754 representation of
   those constants.
 - Add a single copy of various ieee754 math functions (frexp, isinf,
   isnan, ldexp and modf) that had numerous duplicates among the
   arch-specific directories.
 - Use the above functions on all architectures where the generic C
   versions where used.  Architectures that had local assembly
   routines are untouched (for those functions only).
2002-02-19 13:08:12 +00:00
mjacob
d76634e057 Update 2300 firmware to latest release level. 2002-02-19 01:38:04 +00:00
matt
ae8db582d5 Add code to pass symbol table from loadfile to kernel. 2002-02-18 23:06:14 +00:00
christos
e52b5e4bfb Resolve alpha compile issues:
- bug with order in args in mask conversion md code.
- flags can be both int and long on the alpha. kludge around that, by not
  passing pointers to the conversion function.
- something is wrong with the toolchain look at the void * cast in copyout().
- sa_restorer is in a different place on the aplha. Deal with that, by not
  initializing it as before. XXX: this should be changed in the MD signal
  definition.
2002-02-18 22:24:17 +00:00
bjh21
984f6cdf94 Revert my last change: GENERIC has more bogons than I'd hoped. 2002-02-18 20:55:55 +00:00
christos
1133f20b4f regen 2002-02-18 20:20:25 +00:00
christos
08739d68be provide linux_sys_getrlimit and linux_sys_setrlimit 2002-02-18 20:12:49 +00:00
bjh21
ea3b1622e8 Internal prototypes for loads of functions.
Casts in calls to sc_setup_dma and sc_need_bump to match implementations.
__RCSID() while I'm here.
2002-02-18 19:57:09 +00:00
bjh21
c44fd75edb Add prototypes for function pointers in struct esc_softc. 2002-02-18 19:55:01 +00:00
augustss
30981eee37 Add ulinear8 to/from slinear16 transforms. 2002-02-18 19:50:03 +00:00
bjh21
432b398217 Add internal prototypes for lots of functions.
Add __RCSID() while I'm here.
2002-02-18 19:22:14 +00:00
bjh21
ff94cc2ad5 Add prototype for getkey_polled(). 2002-02-18 19:05:35 +00:00
bjh21
d4d3aa6468 Add internal prototype for cmd_mouse().
Also __RCSID() while I'm here.
2002-02-18 18:58:47 +00:00
jdolecek
2558157b0b Back off previous partially - make linux_release[] back 2.0.38
and linux_version[] "#0 Sun Apr 1 11:11:11 MET 2000";". Add a BIG
WARNING MESSAGE so that people won't break things changing this.
2002-02-18 18:51:51 +00:00
bjh21
eb821c3860 Add a prototype for qms_console_freeze(). 2002-02-18 18:43:55 +00:00
thorpej
bf6823b1b5 Don't ask bootp() to put a "PXEClient" Vendor Class Identifier option
in the DHCP request.
2002-02-18 17:01:46 +00:00
christos
6e293e79bd regen 2002-02-18 16:36:20 +00:00
christos
7f739a6187 fix comment. 2002-02-18 16:35:57 +00:00
bjh21
23b31cf96e My acorn32 kernels now compile successfully without LOOSE_PROTOTYPES. 2002-02-18 16:34:13 +00:00
bjh21
1e6835687e Rename prototype from sysbeep_vidc() to sysbeep() to match definition.
Pull in beepvar.h and vidcaudiovar.h for beep_generate() and
vidcaudio_beep_generate() prototypes.
__RCSID().
2002-02-18 16:23:54 +00:00
simonb
b5e0d320af Fix a null pointer dereference if curproc == NULL.
Fixes PR port-i386/15638.
2002-02-18 15:58:02 +00:00
yamt
e3f53c00e2 fix indent 2002-02-18 14:45:56 +00:00
yamt
1486b3d395 add a missing splx in the case of error. 2002-02-18 14:41:50 +00:00
bjh21
2712a10c7c Add a prototype for vidcvideo_config_wscons(). 2002-02-18 14:30:20 +00:00
bjh21
468fff80ed Pull in <arm/arm32/machdep.h> for initarm() prototype.
Change signature of initarm() to match the prototype.
Add prototype for canonicalose_bootconfig().
__RCSID() while I'm here.
2002-02-18 13:53:29 +00:00
bjh21
03357551c5 Add a prototype for asc_dump().
Delete asc_dmaintr(): it's unused.
__RCSID().
2002-02-18 13:19:54 +00:00
bjh21
77046b2b48 Add prototype for sbicdumpstate().
Add in-core RCSID.
2002-02-18 13:15:15 +00:00
bjh21
8a8c12cfc9 Add prototypes for podulebusmatch(), podulebusattach(), podulebusprint(),
podulebussubmatch(), podulechunkdirectory() and podulesncan().
Fix argument types of podulebussubmatch().
Remove podloader_read_region(), since it's not used externally.
2002-02-18 13:11:07 +00:00
bjh21
761157905a Add prototypes to all declarations of function pointers.
Include <arch/arm/iomd/vidcaudiovar.h> for vidcaudio_beep_generate() prototype.
Add in-core RCSID.
2002-02-18 12:55:47 +00:00
bjh21
a06b71e864 Add a vidcaudiovar.h to contain a prototype for vidcaudio_beep_generate(). 2002-02-18 12:52:09 +00:00
bjh21
2aa99b4f12 Include <arch/arm/iomd/beepvar.h> for beep_generate() prototype.
Include <machine/conf.h> for cdevsw function prototypes.
Correct argument types of beepioctl().
Add in-core RCSID.
2002-02-18 12:36:27 +00:00
bjh21
668fc0d2b7 Add beepvar.h, to hold a prototype for beep_generate(). 2002-02-18 12:34:11 +00:00
bjh21
c1f8e3aa21 Comment out vidcvideo_setbase() (it's unused).
Remove vidcvideo_mmap() (it's redundant).
Add in-core RCSID.
2002-02-18 12:23:24 +00:00
bjh21
1a140d2090 Add prototypes for clockhandler() and statclockhandler(), and adjust their
argument types to match other interrupt handlers.
Also minor KNF (add in-core RCSID).
2002-02-18 12:18:26 +00:00
bjh21
40933bf05e Add prototype for yeartoday(). 2002-02-18 12:03:38 +00:00
bjh21
57a6aecd77 Include <machine/conf.h> for cdevsw function prototypes.
Add internal prototypes for hexdectodec(), dectohexdec() and twodigits().
Correct signature of rtcioctl().
2002-02-18 11:59:16 +00:00
bjh21
b5c13de9bf Pull in <machine/conf.h> to get prototypes for cdevsw functions, and correct
the signature of iicioctl() appropriately.
2002-02-18 11:51:57 +00:00
bjh21
216b4f1c81 Add prototypes for dma_reset(), dma_setup(), dma_isactive(), dma_isintr() and
dma_intr().
2002-02-18 11:41:18 +00:00
bjh21
dbc5effbc8 Change signature of dma_intr() to match other interrupt handlers. 2002-02-18 11:40:42 +00:00
jmc
a10cd2d55f Print the tcode in hex when debugging like all other debug statements 2002-02-18 09:10:44 +00:00
uwe
b7a9ca77f2 We are using shared headers from dev/ebus now. 2002-02-18 04:55:00 +00:00
uwe
e158bed889 Switch to shared EBus headers in dev/ebus. 2002-02-18 04:52:26 +00:00
uwe
8598481f3c Convert to use shared headers in dev/ebus. Move ebus_softc definition here.
Normalize bar field of EBus children PROM "reg" property to be the BAR
offset in PCI config space like on sparc64 when building ebus_attach_args.
2002-02-18 04:50:57 +00:00
uwe
d2be07c591 Shared ebusvar.h for sparc and sparc64.
NB: ebus_attach_args member names are singular to be consistent with SBus.
sparc64 version uses plural, so update sparc64 drivers when converting them
to use this shared header
2002-02-18 04:44:41 +00:00
uwe
ea8decf111 Add DMA definitions.
Add some sparc32 related comments.
2002-02-18 03:43:29 +00:00
rafal
0208af27ee Regen: Use linux_sys_{g,s}setrlimit, remove linux_sys_ugetrlimit since
linux/mips doesn't seem to have one.
2002-02-18 00:10:26 +00:00
bjh21
943c65af59 Add prototype for stray_irqhandler(). 2002-02-17 23:58:35 +00:00
rafal
9751855fab the MIPS stat64 struct doesn't have a separate ino64 field, but the ino field
is a u_longlong.
2002-02-17 23:57:57 +00:00
rafal
efdd3f2dd7 There is no linux_sys_ugetrlimit on mips, so don't try building it (XXX: adds
icky ifdefs)
2002-02-17 23:56:35 +00:00
rafal
dfcb814799 Use linux_sys_{g,s}etrlimit() since there's a common implementation now; but
MIPS has no sys_ugetrlimit, so don't declare it (209 is UNIMPL in the OSS
Linux-mips tree)
2002-02-17 23:55:23 +00:00
bjh21
490dd78bcc cons_decl(com), to get prototypes. 2002-02-17 23:53:18 +00:00
bjh21
8eb5175b46 Add __RCSID(). 2002-02-17 23:47:56 +00:00
bjh21
63dc353d42 Add prototypes for lpt_port_test() and lptprobe(). 2002-02-17 23:45:29 +00:00
bjh21
ca677d0d06 Add a prototype for linux_syscall(). It should be in a header file, but
other files that refer to it don't know its argument types anyway.
2002-02-17 23:37:18 +00:00
thorpej
15bffcdeed Add a comment describing what SA_USE_LOADFILE is for. 2002-02-17 23:22:22 +00:00
thorpej
0d210931e3 Add a missing "static". 2002-02-17 23:19:00 +00:00
rafal
9f99fdabde Adapt for changes to linux_to_native_sigset() and native_to_linux_sigset(). 2002-02-17 23:18:38 +00:00
thorpej
bf9a052aa4 Add EOFFSET. 2002-02-17 23:18:32 +00:00
bjh21
db030aa93f Add an lst_ino64 member to struct linux_stat64. 2002-02-17 23:18:11 +00:00
bjh21
0fd75dd4e5 Adapt for changes to limux_old_extra_to_native_sigset() and
native_to_linux_old_extra_sigset().
2002-02-17 23:05:08 +00:00
manu
457750dabf Implemented irix_sys_systeminfo() 2002-02-17 22:49:53 +00:00
bjh21
9e7faceaf4 Add LINUX_SA_NOCLDWAIT. 2002-02-17 22:45:29 +00:00
bjh21
d0dfca3108 Regen. 2002-02-17 22:30:22 +00:00
bjh21
e5087cd2b4 getrlimit and setrlimit now have Linux-specific implementations. Use them. 2002-02-17 22:29:46 +00:00
bjh21
6c9d7cafe8 linux_sys_break() is marked OBSOL, so don't include it. 2002-02-17 22:03:23 +00:00
bjh21
3113edfb9a linux_sys_rt_sigreturn is currently marked UNIMPL, so leave the stub out. 2002-02-17 22:00:09 +00:00
augustss
0786bd90ab Add another tlp card (found by trial and error). 2002-02-17 21:21:58 +00:00
augustss
c8b7c9e3ba Regen. 2002-02-17 21:21:15 +00:00
augustss
9c5176e112 Add a 10/100 Ethertnet card from Hawking. 2002-02-17 21:20:46 +00:00
uch
f0c9c394ec fix #ifdef condition 2002-02-17 21:02:16 +00:00
uch
000bb38949 SH3/SH4 common kernel support. 2002-02-17 21:01:15 +00:00
uch
6e0794b560 To determine CPU architecture and product, add cpu_arch and cpu_prduct variables.
these are initialized by sh_cpu_init()@sh3/sh3_machdep.c
(see sh3/include/cputypes.h for detail.)
add "options SH3" for SH3 kernel config file.
2002-02-17 20:59:33 +00:00
uch
14bcf8c92a add cache dump 2002-02-17 20:58:35 +00:00
uch
a96c1d0e8f change register naming. 2002-02-17 20:58:02 +00:00
uch
70826aa2cd sh_cpu_init() is added. its initialize cache, MMU ops appropriately.
machine locore code call this at first.
2002-02-17 20:57:09 +00:00
uch
780de330ba Add new MMU API. for detail, see sh3/mmu.h's comment. 2002-02-17 20:55:50 +00:00
uch
779bf563f4 ANSIfy. remove #if 0 ... #endif. 2002-02-17 20:53:40 +00:00
uch
615800d782 Fix calling convention. r0-r7 are caller saved. 2002-02-17 20:53:01 +00:00
manu
d383f72720 reworked signal handling:
- do not save/and restore registers that should not be saved and restore
- do give an accurate sigcontext pointer to the signal handler
- do use the struct sigreturna from IRIX.
This eliminates panics and hangs in certain circonstances

Also some cosmetic changes with tabs usage
2002-02-17 20:50:06 +00:00
manu
853adfc30b - implement SGI_GETSID command for syssgi()
- reworked SGI_GETPGID implementation to use the getpgid() system call instead
  of duplicating it.
2002-02-17 20:44:17 +00:00
bjh21
e6e848ef6d Our assembler handles FPA instructions fine, so don't use .word for them. 2002-02-17 20:41:02 +00:00
thorpej
77fa5a7974 Pay attention to the file name provided by the DHCP server, using
it rather than the default of "netbsd" if it's in the reply.
2002-02-17 20:14:08 +00:00
bjh21
00994a7564 Add prototypes for static functions. 2002-02-17 20:08:34 +00:00
thorpej
76ea45942b Cleanup of i386 bootloader building:
* Add separate directories for the individual netboot ROMs and
  always build them.
* Each bootloader Makefile explicitly specifies the start file
  and link address it wishes to use.
* genprom becomes a proper host program.
* Make sure all generated files get cleaned up.
* Set BINDIR in Makefile.inc
* Add compressed image support to pxeboot.
* Make pxeboot use the default serial console speed (9600).
2002-02-17 20:03:05 +00:00
bjh21
cb7a3d0674 ANSIfy, and othe KNF cleanup. 2002-02-17 19:53:44 +00:00
thorpej
45f23105c2 Make this compile again (update for changes to register bit names). 2002-02-17 19:49:58 +00:00
thorpej
bb1c9c42fa Update for new location of the WD80x3 register description. 2002-02-17 19:47:41 +00:00
christos
6e89926d24 regen 2002-02-17 19:35:45 +00:00
christos
5a51f8945d fix rlimit confusion. 2002-02-17 19:35:30 +00:00
christos
8ec87caa7f ICANON is in lflags, by Neelkanth Natu 2002-02-17 19:34:42 +00:00
veego
f12a3476e0 Add a missing ) from an 6 year old cleanup commit (rev 1.10):
s/sizeof(struct mfcp_softc,/sizeof(struct mfcp_softc),/
Noticed by Nagilum on irc.
2002-02-17 19:26:37 +00:00