Commit Graph

54368 Commits

Author SHA1 Message Date
eeh
87eac0acc3 Use bus_space_vaddr(). 2002-03-20 20:41:35 +00:00
eeh
686c857e16 Get rid of unnecessary BUS_SPACE_MAP_LINEAR. 2002-03-20 20:39:15 +00:00
gmcgarry
bf49f00fe6 Use host tool elf2ecoff if available. 2002-03-20 20:18:00 +00:00
gmcgarry
dd71debbae Test for USETOOLS properly.
cVS: ----------------------------------------------------------------------
2002-03-20 20:15:18 +00:00
ross
6a723063ac nonfunctional warning fix: use canonical indirect call syntax 2002-03-20 20:06:51 +00:00
eeh
fbce8217dd Oops. Missing semicolon. 2002-03-20 19:32:42 +00:00
eeh
47ef6a5146 Overhaul bus space.
bus_space_handle_t now holds an address and two ASIs, one for normal accesses
and one for streaming accesses.  This allows to map individual handles
different ways, so some can use MMU bypass accesses and others use virtual
addresses.  bus_space_map() will now create handles that use bypass accesses
unles BUS_SPACE_MAP_LINEAR is passed in.  So only pass in BUS_SPACE_MAP_LINEAR
if you absolutely *need* to use bus_space_vaddr().  This removes at least one
extra level of indirection and should reduce TLB misses.

32-bit kernels have problems accessing 64-bit addresses, so they always use
virtual addresses.
2002-03-20 18:54:46 +00:00
eeh
bd48e83999 DDB_ONPANIC now needs a number. 2002-03-20 18:43:53 +00:00
eeh
bd22d9d0f1 Add PTE_WIRED bit to keep track of wired pages. 2002-03-20 18:41:53 +00:00
eeh
8ccad96d54 Add sbus_promaddr_to_handle() to convert a prom address to a bus_space_handle_t. 2002-03-20 18:39:44 +00:00
christos
36244cee28 kill PS_STRINGS, STACKGAPBASE_UNALIGNED, STACKGAPBASE 2002-03-20 18:00:07 +00:00
christos
7e277b5782 kill remaining PS_STRINGS instances. 2002-03-20 17:59:22 +00:00
eeh
8ea2c88ec2 Clean up bus space a bit. XXX is sc_buffer ever actually used after it's
mapped in?
2002-03-20 17:59:16 +00:00
eeh
ddbdd7fa41 Don't use BUS_SPACE_MAP_LINEAR if you don't need to. 2002-03-20 17:57:33 +00:00
eeh
ef4ff79f61 Use bus_space_vaddr() correctly. (XXX do we really need this?) 2002-03-20 17:52:41 +00:00
christos
e88e90e3bf use 64 signals. 2002-03-20 17:50:07 +00:00
thorpej
1a69060597 When getting the packet off the interface, make sure the payload is
aligned after the Ethernet header.

kern/15982, Hiroyuki Bessho <bsh@grotto.jp>
2002-03-20 17:42:23 +00:00
eeh
e0866470d8 Use bus_space_vaddr() correctly. Ugh. 2002-03-20 17:34:23 +00:00
eeh
67d8d816ca Use bus_space_vaddr() correctly. (Why use bus_space_vaddr() at all?) 2002-03-20 17:32:23 +00:00
christos
ce4e71d1b0 New mouse code from Peter Seebach. 2002-03-20 17:06:51 +00:00
augustss
85fc920f4f Define uvscom_acvtivate() according to prototype. 2002-03-20 16:39:39 +00:00
joda
0624e7fe7a add HTT cpu flag, and further split message 2002-03-20 15:59:26 +00:00
christos
e5160e810e Add the ability to report file number/block number. From Matt Jacob. 2002-03-20 14:53:59 +00:00
christos
748ed9bd8f put back NSIG=64 for userland. It is not nice to have programs report
unknown signal %u or coredump when they try to report a signal out of
range.
2002-03-20 14:30:11 +00:00
tron
a15356aae8 Don't expose the increased number of signals to the userland because the
required userland support e.g. in "libc" is not in place yet. This fixes
crashes in "ksh" but any other program which uses "sys_siglist".
2002-03-20 14:10:20 +00:00
ad
9c918242a2 Add missing structure member copies in wsfont_add0(). 2002-03-20 12:18:56 +00:00
lukem
7fedb7d335 add missing prototype for uvscom_activate() 2002-03-20 03:20:10 +00:00
chs
fb88d3b0ba add missing cache flushes in pmap_protect(). fixes PR 15965. 2002-03-20 02:50:19 +00:00
christos
50981e06bc emulation specific sysctls. Also change the kernel date to nov 11 as requested
by bad.
2002-03-20 00:27:58 +00:00
christos
195539260e emulation specific sysctls. 2002-03-20 00:27:25 +00:00
christos
2aae331e69 add es_sysctl for emulation specific sysctls. 2002-03-20 00:26:33 +00:00
christos
c5f93c4fac new emulation specific sysctls. 2002-03-20 00:23:46 +00:00
thorpej
c0d66944db Make sure we override any optimization options specified by the
user; the boot blocks don't work when built with e.g. -mcpu=i486
(probably due to how branches are aligned in that case, causing
segment boundaries to be crossed).
2002-03-19 22:03:37 +00:00
bouyer
9a2eeadc6c Regen: add AMD768 devices 2002-03-19 22:03:06 +00:00
bouyer
54c7295e52 Add AMD768 devices, from
http://members.hyperlink.net.au/~chart/download/pcidevs.txt
2002-03-19 22:02:36 +00:00
christos
bda4b15e05 - Now that RT-signals fit, fix the array to deliver them. [i386 only].
- jdk-1.4 works perfectly now. :-)
2002-03-19 20:51:59 +00:00
christos
225441db6e - Define SIGRTMIN and SIGRTMAX iff _KERNEL.
- Bump the number of signals to 64, and define the default action for
  signals >= SIGRTMIN to be kill.
2002-03-19 20:50:41 +00:00
martin
4a7710e8d9 Fix a long standing confusion between n_mgm_command and mph_command_req
by removing the former completely.
This makes isdntrace work again.
2002-03-19 20:10:45 +00:00
eeh
c34c58d78e Using PSR_PIL in conjunction with the IPL results in a comparison that is
always true.
2002-03-19 19:47:57 +00:00
briggs
14bcbc0e29 Ignore cpu_sleep() if called with anything other than ARM_SLEEP_MODE_IDLE. 2002-03-19 19:41:57 +00:00
eeh
7a49cca31a Fix up compiler options:
1) Get things right for 32-bit kernels

2) Always use medium any memory model for 64-bit kernels for the moment.
2002-03-19 18:10:33 +00:00
drochner
b40bbc753e work around a pc-relative jump optimization in early startup 2002-03-19 17:59:04 +00:00
augustss
1a42566bd8 Add uvscom. 2002-03-19 15:19:43 +00:00
augustss
2448d257af Add uvscom driver. Untested. 2002-03-19 15:10:21 +00:00
augustss
ea41085783 Add driver for SUNTAC Slipper U VS-10U serial devices.
Written by Shunsuke Akiyama <akiyama@jp.FreeBSD.org>.  From FreeBSD.
2002-03-19 15:08:42 +00:00
augustss
b9300aa49f Regen. 2002-03-19 15:07:23 +00:00
augustss
d79c559262 Add some devices. From FreeBSD. 2002-03-19 15:07:05 +00:00
christos
9c8babbd46 Drop connections to the broadcast address. From BUGTRAQ. This is a security
issue because it can by-pass ipf rules unintentionally.
2002-03-19 14:35:20 +00:00
briggs
d099df10f4 Use obio_bs_rr_1.
In obio_bs_map(): Create a mapping for regions that are not in the
	standard on-board I/O space.
2002-03-19 01:36:13 +00:00
itojun
d31217b639 check sa_len and sa_family strictly. (NOTE: rtsol/rtsold older than Nov2001
will stop working, upgrade them first)
2002-03-19 01:21:19 +00:00
atatat
8fb7f2015a Remove a comment that is wrong 2002-03-19 00:58:17 +00:00
atatat
808a91f311 Put the extra kernel names in EXTRA_KERNELS 2002-03-19 00:57:53 +00:00
simonb
267b8c65f5 Define all CPU types if _LKM is defined; fixes problems building LKM's
as noted by FUKAUMI Naoki on port-mips.
2002-03-19 00:53:46 +00:00
martin
af693ebcf6 Wakeup sleeping processes when the ISDN connection gets established
or disestablished. Hint from Matthias Drochner.
2002-03-18 23:28:03 +00:00
thorpej
09a6f546a3 PS_STRINGS -> p->p_psstr 2002-03-18 22:57:53 +00:00
briggs
47c8167bc7 Fix typo: ISDNCTL -> NISDNCTL. 2002-03-18 22:46:57 +00:00
bjh21
e637cd6c16 PS_STRINGS -> p->p_psstr 2002-03-18 22:21:25 +00:00
martin
b07c2da1c9 Fix an uninitialized use of a variable by removing it completely. 2002-03-18 22:15:28 +00:00
bjh21
6a7bb64ae1 We don't seem to need abort() any more -- presumably GCC is no longer
generating calls to it.
2002-03-18 21:14:34 +00:00
manu
af187fe983 Added swapctl SC_ADD, SC_REMOVE and SC_SGIADD commands. 2002-03-18 20:34:54 +00:00
manu
a8db9077cd Uses the recently introduced uvm_swap_stats() instead of
sys_swapctl(SWAP_STATS). This enable the use of a kernel based
buffer instead of using some temporary memory in the stackgap,
whereas we cannot make sure that the size os the struct swapent array
will fit in it. (it is not known at build time, but the stackgap len
is set at build time).
2002-03-18 17:21:24 +00:00
manu
1c1ef56eed Cosmetic change (lines longer than 80 car) 2002-03-18 17:18:28 +00:00
itojun
7ffd9429a4 s/PS_STRINGS/p->p_psstr/, as requested by christos 2002-03-18 17:00:20 +00:00
itojun
f3279050b2 esp/ah_ctlinput: pass useful address to key_alloc. 2002-03-18 15:30:03 +00:00
tv
90f4347de8 Make sure USETOOLS value is propagated (for USETOOLS?=no case in each
kernel Makefile).  Perhaps we should .include this file earlier....
2002-03-18 15:20:08 +00:00
uch
9b5ad836c6 include sys/queue.h. 2002-03-18 14:35:20 +00:00
kent
a340d0e8ea Create new uaudio_chan_init() and move sample_size/bytes_per_frame
initialization to it from uaudio_chan_set_param().  uaudio_set_params()
calls uaudio_chan_init().
These are required because bytes_per_frame is used in
uaudio_round_blocksize(), which is called before uaudio_set_params().

Noise of 4ch playing disappears by this change.  6ch playing still has
cyclic noise.
2002-03-18 14:06:08 +00:00
christos
8b264dc99c regen 2002-03-18 14:01:31 +00:00
christos
57a22d5790 Add Siemens speedstream, from Alicia da Conceicao. 2002-03-18 14:01:02 +00:00
wiz
358ed3f6d4 Fix a typo, a KNF-nit, and simplify a printf format string. 2002-03-18 13:38:52 +00:00
christos
df95562a0f goodbye PS_STRINGS 2002-03-18 13:27:02 +00:00
manu
2debbde786 Move swapctl(SWAP_STATS) implementation to a separate function called
uvm_swap_stats(). This is done in order to allow COMPAT_* swapctl()
emulation to use it directly without going through sys_swapctl().

The problem with using sys_swapctl() there is that it involves
copying the swapent array to the stackgap, and this array's size
is not known at build time. Hence it would not be possible to
 ensure it would fit in the stackgap in any case.
2002-03-18 11:43:01 +00:00
simonb
9fe34c6901 Fix comments after endian selection includes(!). 2002-03-18 11:11:30 +00:00
simonb
00e905ce64 Use <mips/isa_machdep.h> and <mips/pci_machdep.h>. 2002-03-18 10:10:14 +00:00
oki
e60e94456a emul_netbsd is no longer used in exec_pecoff. 2002-03-18 08:16:08 +00:00
oki
075769476a Use /emul/pecoff as prefix to run PE/COFF binaries. 2002-03-18 07:11:06 +00:00
dbj
f0658bdada make compile with _STANDALONE 2002-03-18 05:10:58 +00:00
briggs
a2e0bd5a5d Use p->p_psstr instead of PS_STRINGS.
Tested on boot to multi-user on sandpoint.
2002-03-18 04:50:32 +00:00
simonb
91785659ba Generic PCI/ISA machdep headers for mips; copied from the algor port. 2002-03-18 03:08:09 +00:00
simonb
99f891c74d Use mips/mips/bus_dma.c. 2002-03-18 02:33:19 +00:00
simonb
7e2ca5e1a8 Copy the algor bus_dma.c for use as a generic bus_dma implementation for
other MIPS ports.
2002-03-18 02:32:54 +00:00
simonb
9690c2293e Convert to use <mips/bus_*.h>. 2002-03-18 01:21:11 +00:00
simonb
e64d2d9708 Oops, balance #ifdef/#endif _KERNEL. 2002-03-18 01:01:54 +00:00
enami
70a09aaf5d Make this file compiles again when AURATECONV > 0. 2002-03-18 00:42:36 +00:00
simonb
d9aac5ef07 Add generic MIPS bus_space and bus_dma headers; these are a straight
split of the algor <machine/bus.h>.
2002-03-18 00:32:21 +00:00
chs
79c365e60e don't do any flush-behind for async mounts.
this matches the traditional behaviour.
2002-03-17 23:58:09 +00:00
nonaka
85b957a2b0 Already MBR_PTYPE_PREP is defined in sys/disklabel_mbr.h. 2002-03-17 23:45:57 +00:00
christos
18c7399ada oops, forgot to commit the caller of exithook... 2002-03-17 23:41:30 +00:00
christos
c36bd4f4e1 more typo. 2002-03-17 23:36:08 +00:00
christos
6b17a26b35 fix typo. 2002-03-17 23:29:55 +00:00
christos
c29f982413 move aurateconv.h into audiovar.h to avoid name clash with the config(8)
aurateconv.h counter.
2002-03-17 23:22:05 +00:00
christos
14eaffb49d use the exithook mechanism to remove the exiting process from the list
of processes to be signalled in a soft mount.
2002-03-17 22:22:39 +00:00
christos
22839acdb9 use the exithook mechanism to clean up semaphores. 2002-03-17 22:21:58 +00:00
christos
f7d98e2451 - merge all the hook insertion and deletion code so that we don't create
a fourth copy.
- add exithook to be executed when a process exits.
2002-03-17 22:19:20 +00:00
simonb
a85e214bda Make sure that private DMA flags don't overlap with standard DMA flags;
start these at 0x10000 to leave room for an increase in the latter.
2002-03-17 21:45:06 +00:00
manu
c51e325123 Replaced PS_STRINGS by p->p_psstr 2002-03-17 20:54:09 +00:00
martin
e2c42aeaa8 Remove all knowledge about specific application (layer 4) drivers from
the generic layer 4 and layer 3 management system.

This should make the layer 4 driver API LKM clean - finaly.

Make the Fritz!PCI driver work again after resent changes (oops!),
noted by Frank Kardel (PR 15948) and Matthias Scheeler.
2002-03-17 20:54:04 +00:00
atatat
26500cdfcd Bump kernel version -- ERESTART has been moved and EPASSTHROUGH has
been introduced.
2002-03-17 19:43:07 +00:00
atatat
31144d9976 Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command".  ERESTART is -1, which can lead to
confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4.  No ioctl code should now return -1 anywhere.  The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
christos
f2d8f1aa62 goodbye PS_STRINGS. 2002-03-17 19:16:20 +00:00
augustss
75419dae29 Add Cyrillic keysyms. From OpenBSD. 2002-03-17 18:15:00 +00:00
augustss
45e00a035a Don't forget the symbolc names for the keymaps. 2002-03-17 18:12:15 +00:00
augustss
b32942bb23 Whitespace fixes. 2002-03-17 18:02:52 +00:00
augustss
3fba39846b Add Swiss keyboard mappings. From OpenBSD. 2002-03-17 18:01:07 +00:00
augustss
ada83730a8 Add more language map definitions. 2002-03-17 18:00:17 +00:00
uch
93da9db963 cosmetic changes, fix comments. 2002-03-17 17:55:22 +00:00
thorpej
53df727d27 Add a new ptrace request, PT_IO, as proposed by Artur Grabowski
on the <bsd-api-discuss@wasabisystems.com> mailing list.  PT_IO
is a more general inferior I/D space I/O mechanism.  FreeBSD and
OpenBSD have also added PT_IO.

From lha@stacken.kth.se, kern/15945.
2002-03-17 17:02:45 +00:00
minoura
c42dd282b7 LFSv2 support.
Note that secondary boot does not support LFSv2.
Code written by itohy.
2002-03-17 16:14:30 +00:00
kent
fe274639f9 aurateconv.c:
- Simplify the source
  - Accept any convresions such that sample_rate < hw_sample_rate

uaudio.c:
  - Request the above conversion.  This is needed for 4ch-only devices to
    play monaural/stereo data.
2002-03-17 16:14:21 +00:00
minoura
e6ff25795b Make this compile again. 2002-03-17 15:43:10 +00:00
uch
1080799576 change to per-process AST. 2002-03-17 14:06:38 +00:00
uch
57918e656a add kernel stack debug option. 2002-03-17 14:05:47 +00:00
uch
81cdeb6cdd adapt to kernel stack treatment changes. 2002-03-17 14:05:10 +00:00
uch
02add6730a reserve wired entries for kernel stack. 2002-03-17 14:04:18 +00:00
uch
3900e66164 add kernel stack and trapframe debug command. 2002-03-17 14:03:55 +00:00
uch
9e6153d985 remove obsoleted functions. 2002-03-17 14:03:34 +00:00
uch
b4b9d38675 zero clear all TLB entry to avoid unexpected VPN match. 2002-03-17 14:03:09 +00:00
uch
1e6e3f896d write-through mode for now. since SH4 kernel access page table via P2. XXX 2002-03-17 14:02:43 +00:00
uch
4c6260b9de kernel stack fix. old code simply P3 address converted to P1, it
caused memory destruction when kernel stack grow over 1 page.  new
code use P3 address for kernel stack. but for the sake of debug, P1
kernel stack mode remain.
2002-03-17 14:02:03 +00:00
bjh21
315040cb53 Remove joy at ioeb, since it's not supported and it clashes with the MI
joy.
2002-03-17 12:00:56 +00:00
simonb
5a7cb92d99 Include <machine/swarm.h>. 2002-03-17 11:37:55 +00:00
kent
2b2d118e66 Rename aurateconvproto.h to aurateconv.h. 2002-03-17 11:36:37 +00:00
simonb
1f467013b2 White space nits. 2002-03-17 11:15:49 +00:00
simonb
72b108a114 Don't 'extern' function prototypes.
ANSIfy kernel-only prototypes.
2002-03-17 11:14:04 +00:00
simonb
21d2b8b53d We don't need to include <uvm/uvm_extern.h> before <sys/sysctl.h> anymore. 2002-03-17 11:10:43 +00:00
martin
14a03255ac Remove the hard coded layer 4 driver coding from the accounting data
and functions, use the call ID instead.
2002-03-17 11:08:31 +00:00
simonb
ed84d53b75 Allow selection of a big- or little-endian kernel by uncommenting the
std.sbmips.eb or std.sbmips.el config include file in the kernel config
file.  Idea from the evbsh3 port.
2002-03-17 11:00:22 +00:00
simonb
dbafd8c6a6 Make the 'ifnet' variable an extern and declare it in if.c. 2002-03-17 10:21:42 +00:00
scw
b303a9412d Fix an include file botch when there is no vmetwo device in the
kernel config.
2002-03-17 10:04:47 +00:00
scw
f39f46188c G/C. These should have been deleted as part of the move to sys/dev/mvme. 2002-03-17 10:04:07 +00:00
martin
1e802e7eba Clean up the application (layer 4) driver vs. B channel driver interface.
One step further on the way to make layer 4 drivers LKMable.
2002-03-17 09:45:58 +00:00
simonb
c21bc616b1 Don't use a magic number. 2002-03-17 07:39:16 +00:00
simonb
9be5709e65 Fix some whitespace/indentation niggles. 2002-03-17 07:38:28 +00:00
simonb
3b362d301e Fix up some white-space bogons. 2002-03-17 06:28:56 +00:00
simonb
c08749f1fe An include file describing some address map info, GPIO pin assignments
and SMBus addesses for the swarm eval board.
2002-03-17 06:24:30 +00:00
gmcgarry
d16aceedcc Protect remaining references to 'debug' with NETIF_DEBUG. 2002-03-17 05:46:37 +00:00
gmcgarry
0d5d235755 Don't match on trailing spaces in the module name. 2002-03-17 05:44:48 +00:00
gmcgarry
2edbfbd9c2 Include MFS in the INSTALL kernel for the miniroot install. 2002-03-17 05:43:17 +00:00
tsutsui
2d620b2626 Use #ifdef MEMORY_DISK_IS_ROOT rather than MEMORY_DISK_HOOKS
to disable RB_ASKNAME.
2002-03-17 04:41:57 +00:00
tsutsui
c291c5333a Include opt_md.h for MEMORY_DISK_HOOKS. 2002-03-17 04:34:41 +00:00
isaki
ec23c6650c Fix infinate loop in recoding on vs0. 2002-03-17 03:20:40 +00:00
dbj
28819987b7 don't set prism2 bit when WI_NIC_LUCENT is detected 2002-03-17 02:52:59 +00:00
tsutsui
1bb75ed9f0 Fix typo. 2002-03-17 02:46:27 +00:00
chs
4b6d0e2df5 lxtphy needs the ukphy_subr attribute now. 2002-03-17 01:34:48 +00:00
christos
4b803b1108 panic if more space than stackgaplen is requested. Maybe I should remove the
size option completely.
2002-03-17 00:16:07 +00:00
chs
c1d184702f when mounting a filesystem, read the last block in the filesystem
to verify that the device is at least as big as the superblock claims
the filesystem is supposed to be, and if it's not then fail the mount.
this should help reduce the type of confusion reported in PR 13228.
2002-03-17 00:02:34 +00:00
christos
7c50f65a84 get rid of STACKGAP* shit. 2002-03-16 23:55:57 +00:00
chs
4d4825010d fix bread() to return errors from reading past the end of the device.
back in rev. 1.51, bread() and breadn() were changed to assume that
if B_DONE is set on a buffer returned by bio_doread(), that the buffer
must have already been in the cache, and thus the overall bread() should
return success.  but if the requested buffer is not in the cache and
is past the end of the device, bounds_check_with_label() will set B_ERROR
on the buffer and the caller will call biodone(), which will cause bread()
to think the buffer was already in the cache and thus return success.
to fix this, undo rev. 1.51 and instead have biowait() treat both B_DONE
and B_DELWRI as indicators that it doesn't need to sleep waiting for an
i/o to complete.
2002-03-16 23:49:59 +00:00
chs
bbc8f01aef add a quirk for some disks I have that don't like tagged queuing. 2002-03-16 23:26:34 +00:00
chs
b4b7853b08 make sure that if NMODIFIED is clear, all pages attached to the vnode are
clean and without writable mappings.  if we try to flush dirty pages past
EOF to the server when NMODIFIED is clear, we'll update the attrcache before
doing the write, which will try to free the pages past EOF and deadlock.
to deal with this, we write-protect pages before we send them to the server,
and restrict ourselves to creating read-only mappings if NMODIFIED isn't set.
score another one for enami.
2002-03-16 23:05:25 +00:00