Commit Graph

331 Commits

Author SHA1 Message Date
skrll
9730032223 Fix typo in message. 2007-02-22 20:50:30 +00:00
thorpej
16ed6645b5 TRUE -> true, FALSE -> false 2007-02-22 05:31:52 +00:00
thorpej
712239e366 Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 22:59:35 +00:00
mrg
4410329b87 add a pair of new bus_dma(9) functions:
int _bus_dmatag_subregion(bus_dma_tag_t tag,
				  bus_addr_t min_addr,
				  bus_addr_t max_addr,
				  bus_dma_tag_t *newtag,
				  int flags)
	void _bus_dmatag_destroy(bus_dma_tag_t tag)

that allow a (normally broken/limited) device to restrict the bus address
range it can talk to.  this is used by bce(4) to limit DMA addresses to
1GB range, the maximum the chip can address.

all this is from Yorick Hardy <yhardy@uj.ac.za> with input from several
people on tech-kern.

XXX: bus_dma(9) needs an update still.
2007-02-21 20:41:23 +00:00
skrll
2d92a609d7 Move the unwind info so readelf, objdump, etc can find it. 2007-02-21 10:00:59 +00:00
skrll
4eb25368ed Wrap the call to sched_idle_unlock with the start/end stack calling
convention saving the "standard" set of registers for cpu_switch.

Re-visit this on yamt-idlelwp
2007-02-19 10:12:14 +00:00
skrll
8a809fb11a Preserve the return pointer across the call to sched_idle_unlock in
switch_return so that we don't loop forever!

Remove some unnecessary nops while I'm here.
2007-02-17 10:37:33 +00:00
ad
3363855a4a Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.
2007-02-16 02:53:43 +00:00
ad
b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
skrll
a815b70d5c G/C hp{pa,700}/spinlock.h 2007-02-06 21:59:24 +00:00
skrll
52ca267ebe Workaround PR/35531 by preventing iee(4) from matching the 82596DX/SX
chip variant and adding ie(4) to the kernel to match it - ie(4) works.
2007-02-01 21:09:42 +00:00
yamt
8bf7662829 merge yamt-splraiseipl branch.
- finish implementing splraiseipl (and makeiplcookie).
	  http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
	- complete workqueue(9) and fix its ipl problem, which is reported
	  to cause audio skipping.
	- fix netbt (at least compilation problems) for some ports.
	- fix PR/33218.
2006-12-21 15:55:21 +00:00
skrll
ecf6232588 Some installation fixes:
- add a ses(4) major number as the MI MAKEDEV tries to create the
	  nodes. hi elad.

	- create audio devices.

	- provide mount_kernfs and a dmesg command.

	- start sysinst automagically and fix backspace key.

Mostly prompted by David H. Gutteridge on port-hp700.
2006-12-06 10:27:00 +00:00
skrll
7e7373acc9 Enable the .note.netbsd section for hppa. 2006-12-05 16:58:11 +00:00
scw
e07faf8a74 Replace the myriad copies of bounds_check_with_label() with a single MI
version.

Add disk_blocksize(9) so that disk drivers can record the physical
block size of a disk if it is different to DEV_BSIZE. Right now this
simply initialises dk_blkshift and dk_byteshift according to the
supplied block size. This information is used in the MI version of
bounds_check_with_label().
2006-11-25 11:59:55 +00:00
wiz
6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
jmmv
7a13fe4abf Remove tmpfs's experimental status. OK'ed by core@. 2006-11-11 18:47:08 +00:00
skrll
e231c02e1c KASSERT that the pmap_extract works in _bus_dmamap_load_buffer 2006-10-30 16:22:42 +00:00
skrll
da3d10d5b0 Whitespace fixes. 2006-10-25 07:07:48 +00:00
skrll
e90404b342 - mbus_dmamap_create: remove a redundant local.
- mbus_dmamap_sync: restructure/simplify code and add our our version of
  sync_caches that does sync; syncdma; sync. This is now smaller as a
  result.
2006-10-23 21:58:52 +00:00
bouyer
154d613f0b Add support for the Intel 80003 Gigabit Ethernet controller (found e.g. in
newer server chipsets) to wm(4), from the FreeBSD em(4) driver.
While there, add a few other Intel Ethernet controller that should work as
is.
Properly update the RX error and TX collision counters.
Add ikphy(4), a driver for the Intel i82563 Kumeran 10/100/1000 Ethernet PHYs
2006-10-21 14:10:32 +00:00
skrll
3d92eb6b84 De-__P() 2006-10-21 07:24:20 +00:00
skrll
b560533af2 Pass the cookie (not the function address) to bus_space_alloc.
From OpenBSD.
2006-10-21 07:22:48 +00:00
mrg
648bbec934 in cpu_dumpconf(), don't panic() if we can't bdevsw_lookup() the
dumpdev.  this occurs when we try to set the dumpdev to a device
with no driver loaded.  this fixes PR#34872.

in sys_swapctl, if bdevsw_lookup() fails, set dumpdev = NODEV
before calling cpu_dumpconf().  (this also fixes PR#34872.)

XXX: cpu_dumpconf() should probably be changed to take a dumpdev
XXX: and return an error in such cases, but that is a much more
XXX: intrusive change.

XXX2: this is only run-tested on sparc64 and compile tested on a
XXX2: couple of platforms.
2006-10-21 05:54:31 +00:00
skrll
22acc290fb Fix symbol loading for the common(?) case - boot from disk. 2006-10-18 14:00:31 +00:00
skrll
3974fd04a1 Remove an unnecessary goto 2006-10-05 07:04:31 +00:00
skrll
7b79ef2734 typo 2006-10-05 07:02:21 +00:00
skrll
fa1866d1ca Sync with the OpenBSD diskubr.c and fix some of our own bugs:
- copyright maintenance
- remove all the endian stuff - it didn't work
- correct a comment spello
- use the correct blkno when writing a disklabel
- don't pass garbage from the stack as the disklabel when trying to read
  the LIF label in the write label case.

Fixes PR 34547 from David H. Gutteridge
2006-10-04 07:28:00 +00:00
elad
65792a0340 More from Matt Fleming:
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
2006-10-01 20:31:49 +00:00
skrll
17843a3034 Add -mdisable-fpregs which makes this work again with gcc4. This needs
revisiting.
2006-09-28 21:17:01 +00:00
skrll
47ff53e648 Allow kernels to compile without USELEDS.
From Sergey Svishchev on port-hp700
2006-09-22 14:08:03 +00:00
skrll
05f8bc59e4 Timecounters for hp700 from Garrett. Tested by me. 2006-09-16 15:43:24 +00:00
skrll
73f2f65977 Convert hp700 to __HAVE_GENERIC_TODR
Move the tod routines to dev/pdc.c as suggested by Izumi Tsutsui - we
access the tod device via the pdc.

Tested on a hp712/60 with a flat battery.
2006-09-15 07:51:17 +00:00
skrll
d49ab36123 Do the NetBSD thing wrt resettodr in cpu_reboot. That is, remove OpenBSD
leftovers.
2006-09-15 06:11:40 +00:00
bjh21
e10108c7f2 Nothing in the kernel now tests __HAVE_NWSCONS, so stop defining it everywhere. 2006-09-03 13:51:23 +00:00
christos
e0df1e4c51 PR/34283: Gene ENonymous: Add IPFILTER_LOOKUP to the default kernel options
Also remove CCITT,NS,NIP
2006-08-26 20:26:43 +00:00
tsutsui
6ff205ce76 Remove obsolete #options VERIFIED_EXEC, found by grep(1). 2006-08-26 07:59:21 +00:00
skrll
f0379c9f4b Pull across OpenBSD arch/hppa/hppa/machdep.c:1.77.
revision 1.77
date: 2002/09/09 18:33:42;  author: mickey;  state: Exp;  lines: +4 -2
set up the frame flags and a user frame better on exec
2006-08-26 06:17:48 +00:00
skrll
e875774fce G/C dma_cachectl. 2006-08-26 06:07:28 +00:00
skrll
544f900acb Fix PR 33702.
Modernise the linker script and make sure we have a symbol after the
link_sets.

Make sure that pmap_bootstrap doesn't tell uvm that some of the kernel
phys pages are free. Previously uvm would very likely allocate the phys
pages used for the link_sets to a MALLOC and they'd get overwritten.

Thanks to David H. Gutteridge for testing various things.
2006-08-25 06:49:15 +00:00
christos
b300b74469 Disable SYSTRACE by default on all kernels (discussed with core) 2006-08-12 15:29:52 +00:00
drochner
84f50d1b92 don't install <machine/db_machdep.h>, this is kernel only 2006-07-26 19:54:56 +00:00
ad
f474dceb13 Use the LWP cached credentials where sane. 2006-07-23 22:06:03 +00:00
gdamore
34537908ab Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@.  Fixes PR port-evbmips/32362.
2006-07-13 22:56:00 +00:00
liamjfoy
aeee5deab9 Add CARP to GENERIC kernel configs. CARP is not enabled by default.
ok: christos
2006-06-28 15:19:27 +00:00
lukem
b1abc055c0 support MAKEVERBOSE 2006-06-28 09:27:17 +00:00
lukem
b03adcaa93 Convert to using CC instead of LD, as LDFLAGS is for CC not LD. 2006-06-28 02:20:44 +00:00
he
b1682c2909 Make use of -Wno-pointer-sign conditional on HAVE_GCC > 3, and include
<bsd.own.mk> so that HAVE_GCC is appropriately defined.
2006-06-27 06:37:26 +00:00
mrg
6294d76e22 fix the swap16/swap32 macros to actually swap the argument,
not discard the swapped value.
2006-06-26 19:48:41 +00:00
mrg
f71386cb37 -fwritable-strings is not valid for GCC4. 2006-06-25 05:12:29 +00:00