Commit Graph

2349 Commits

Author SHA1 Message Date
tnn 88ed5f6036 We can't support them in a clean way, but still note the bus addresses
of the disk failure LEDs.
2007-04-18 14:49:44 +00:00
tnn 368b74aabf Correct envsys ranges. From njoly@ 2007-04-15 12:38:09 +00:00
tnn b2079804d3 Add envctrl(4): Sun Ultra Enterprise 450 environmental monitoring driver.
Also add accompanying i2c controller driver, pcf8584.
Both written by me. Some cosmetic improvements from Iain Hibbert.
ok <martin>
2007-04-14 19:33:27 +00:00
macallan 43b2c2b989 include files.wsfb 2007-04-10 02:50:32 +00:00
tnn 02ade499f6 pci_find_ino(): Use interrupt pin from pci_attach_args when mapping interrupts.
Use *ihp as a pure output. Fix case where interrupt pin #D was incorrectly
mapped. Some cosmetic changes while here. Ok'd by martin.
2007-04-04 11:04:33 +00:00
hannken 3b5501efa7 Cleanup last by using a "n"umeric address space identifier.
Ok: Martin Husemann <martin@netbsd.org>
2007-03-31 13:04:21 +00:00
martin a63279589c When invalidating a context, make sure to flush user windows upfront.
Do not set the DMMU secondary context to 0 (that would be kernel), and
add a few required membars after switching the secondary dmmu context.

This avoids SIRs caused by double kernel_data_faults, caused by spills
of obsolete user windows after the context for that user pmap is gone.
2007-03-30 21:14:13 +00:00
jnemeth 45ed5307a6 fix a couple of syntax issues in sparc code from Tobias Nygren 2007-03-27 10:17:48 +00:00
jnemeth 618e615736 move definition of FTC_FLIP to auxioreg.h to mirror sparc 2007-03-27 10:13:12 +00:00
jnemeth 0b59ea5a73 Fixed formatting. Problem was that we were trying to get the result
of a data transfer operation immediately after the data transfer
was finished, instead of waiting for the chip to interrupt us and
tell us that it was finished and had the result for us.  This worked
okay for read and write since the operation would be finished very
shortly after the data transfer completed.  However, with formatting,
the chip still had most of the rest of the track to do, so we ended
up timing out before the operation was finished.
2007-03-25 09:29:11 +00:00
dsl 803fec88b2 Use NETBSD32PTR64() and NETBSD32PTR32() throughout. 2007-03-16 22:23:30 +00:00
drochner ab07e481e4 It doesn't make sense to specify "configuration" and "interface"
locators for uhub because a hub can't have sub-devices.
This might be sanity-checked eventually.
Same for ubt now after the change to device attachment.
2007-03-14 12:27:20 +00:00
ad 59d979c5f1 Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.
2007-03-12 18:18:22 +00:00
jnemeth 5b888d73db Correct gap2 length from ISA driver.
XXX  The machine no longer becomes unusable when formatting, but it still
doesn't format properly.
2007-03-09 21:02:30 +00:00
he 5f0dedf664 Cast to char* and not void* when doing pointer arithmetic. 2007-03-08 22:35:53 +00:00
dogcow b9b4ca0bf0 more caddr_t fallout. 2007-03-06 02:30:16 +00:00
christos fffc9c66c9 fix fallout from caddr_t changes. 2007-03-04 07:54:07 +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
jnemeth d62719e541 Deallocate resources where possible when we fail to attach.
XXX  Somebody needs to write bus_intr_disestablish().
2007-03-02 22:26:14 +00:00
jnemeth 3d61218161 add support for drvctl properties 2007-03-02 09:17:00 +00:00
jnemeth d34b8a7014 merge remaining differences from sparc driver in 2007-03-02 07:17:19 +00:00
kiyohara 11c9c998db Add btuart(4). 2007-03-01 14:57:38 +00:00
martin 536c90c755 uvm.page_idle_zero now is a bool, not a 32bit value any more. 2007-02-22 16:29:03 +00:00
matt 2e4c2c683e More boolean_t -> bool 2007-02-22 05:10:30 +00:00
thorpej dd962f8680 Pick up some additional files that were missed before due to conflicts
with newlock2 merge:

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 23:48:10 +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 fe8ace86aa shave 9 insns off the tsb setup in cpu_initialize & cpu_mp_startup. 2007-02-21 22:39:22 +00:00
martin 77468bf668 Minor cosmetic changes and optimizations. 2007-02-21 22:14:24 +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
martin e82df7e165 Get rid of unused (thus always zero) "curlwp" variable hidden in assembler
code (C code always uses a cpuinfo based macro).
2007-02-21 20:07:42 +00:00
martin 7a265b8461 Fix CAS success check 2007-02-21 20:03:26 +00:00
martin e0fc70084c Minor optimizations and cosmetics, thanks to uwe for suggestions 2007-02-20 15:30:53 +00:00
ad d43ea32af9 - Add /a modifier to trace that allows a specific LWP to be selected.
- When doing trace/t, always note which pid/lid combination is being traced.
2007-02-20 01:02:02 +00:00
cube 632ece3eaf Introduce a new member to struct emul, e_startlwp, to be used by
sys__lwp_create.  It allows using the said syscall under COMPAT_NETBSD32.

The libpthread regression tests now pass on amd64 and sparc64.
2007-02-19 15:10:02 +00:00
martin 1c144699b5 Make use of another call delay slot, pointed out by uwe. 2007-02-18 19:09:36 +00:00
martin 420d0debfd Make use of a call delay slot and avoid a bogus EMPTY.
Spotted by Juergen Hannken-Illjes, with input from Andrew Doran and
Valeriy E. Ushakov.
2007-02-18 18:30:06 +00:00
martin 7bb9e12996 Whitespace cosmetics 2007-02-18 18:25:40 +00:00
martin 13e6855e81 Backout previous: EMPTY was misused 2007-02-18 18:23:58 +00:00
hannken 61eeb25754 Fix typo in last: Pk_32 -> PK_32 2007-02-18 16:17:26 +00:00
martin c545f935c5 Make EMPTY expand to nop with gas, as it is used to mark empty branch
delay slots.
2007-02-18 13:28:28 +00:00
pavel 934634a18c Change the process/lwp flags seen by userland via sysctl back to the
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.

Restores source compatibility with pre-newlock2 tools like ps or top.

Reviewed by Andrew Doran.
2007-02-17 22:31:36 +00:00
ad 36bb413e0d More spllowersoftclock() fallout. 2007-02-16 13:55:42 +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
reinoud 43061c75ae Rename the B_XXX flag to B_DEVPRIVATE flag since it was never used for
debugging and its main use is in device drivers. Its used there to signal
that the flagged buffer has a special meaning or should be handled
differently.

OK'd by Bill Sudenmund on tech-kern.
2007-02-15 18:33:26 +00:00
martin 8f4fbc0245 Fix obvious copy&pasto in SCHED_DEBUG register usage. 2007-02-15 09:02:12 +00:00
hannken 39aa6289a6 newlock2: curproc->p_sigctx.ps_sigmask -> curlwp->l_sigmask.
Ok: Andrew Doran <ad@netbsd.org>
2007-02-10 18:16:18 +00:00
ad b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
hubertf 142c2a33ba Remove duplicate #includes, patch contributed in private mail
by Slava Semushin <slava.semushin@gmail.com>.

To verify that no nasty side effects of duplicate includes (or their
removal) have an effect here, I've compiled an i386/ALL kernel with
and without the patch, and the only difference in the resulting .o
files was in shifted line numbers in some assert() calls.
The comparison of the .o files was based on the output of "objdump -D".

Thanks to martin@ for the input on testing.
2007-01-24 13:08:11 +00:00
mrg 384736624e add a LOUD comment that this kernel does not work yet. 2007-01-24 05:53:56 +00:00
ad e96fca7884 Define ipl_t as uint8_t so that it can be packed into a word with a lock
byte. Ok yamt@.
2006-12-26 15:22:44 +00:00