Commit Graph

348 Commits

Author SHA1 Message Date
martin
c2534a819b Add pseudo-device agr to all GENERIC kernels where it might make sense
(commented out in some).
2007-06-04 08:55:18 +00:00
skrll
178869e145 Fix typo in comment. 2007-05-25 12:11:28 +00:00
skrll
e73c12d2eb de-__P() 2007-05-18 12:54:46 +00:00
skrll
b7d1ae48e0 Shave an instruction by using a delay slot. 2007-05-18 12:43:41 +00:00
skrll
2efe58ec6b Some minor nits, no functional change:
- s/64/HPPA_FRAME_SIZE/
	- cpu_die is more a leaf than anything else
	- whitespace
2007-05-18 12:42:24 +00:00
skrll
fbf7d918bc Whitespace and wrao a long line. 2007-05-18 08:49:36 +00:00
yamt
f03010953f merge yamt-idlelwp branch. asked by core@. some ports still needs work.
from doc/BRANCHES:

	idle lwp, and some changes depending on it.

	1. separate context switching and thread scheduling.
	   (cf. gmcgarry_ctxsw)
	2. implement idle lwp.
	3. clean up related MD/MI interfaces.
	4. make scheduler(s) modular.
2007-05-17 14:51:11 +00:00
skrll
548803dea8 Fix some comments. 2007-04-26 19:43:21 +00:00
macallan
cd8fb15721 include files.wsfb 2007-04-10 02:29:42 +00:00
skrll
0cdd61de09 Nullify the instruction after hp700_intr_ipending_new... scary. 2007-03-24 09:45:32 +00:00
skrll
fc4b2491b2 caddr_t fallout 2007-03-07 11:29:46 +00:00
he
2f5c434280 Change casts from void* to char* when doing pointer arithmetic. 2007-03-07 09:24:46 +00:00
he
86747a56e1 Cast to char* before doing pointer arithmetic. 2007-03-07 09:18:56 +00:00
tsutsui
e0696f4b10 Add a proper cast to bus_dmamem_map(9) on mapping shared memory. 2007-03-04 12:31:29 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
skrll
dfe7bffe46 G/C this file. *sigh* 2007-03-03 14:41:32 +00:00
skrll
bb026cb226 Remove hppa_{round,trunc}_page. 2007-03-03 14:37:54 +00:00
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