Commit Graph

1319 Commits

Author SHA1 Message Date
tsutsui
b866a2955c Use device_lookup_private() to get softc. 2008-06-12 16:50:53 +00:00
cegger
8e3892d445 use device_lookup_private to get softc 2008-06-11 23:52:36 +00:00
ad
06c343ac94 vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both. 2008-06-04 12:41:40 +00:00
nakayama
4b71a66d0f Change my license to 2 clause. 2008-05-31 08:08:54 +00:00
tsutsui
6b0322861b Add options COMPAT_40 to files which have options COMPAT_30. 2008-05-30 20:10:01 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
tsutsui
229f1dede1 Account ci_idepth in VR_INTR() and TX_INTR, rather than cpu_intr() in
hpcmips/interrupt.c. The latter one is used only on kernels configured for
multiple CPUs (i.e. kernels which have both options VR41XX and TX39XX).

Closes PR port-hpcmips/38139 from Risto Sainio.
2008-04-04 12:36:06 +00:00
drochner
ed2b61ded7 update for device/softc split, thanks to Risto Sainio for testing 2008-04-03 17:04:40 +00:00
cube
607ead0ef4 Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend).  Use proper types and ansify where appropriate.
2008-03-14 15:09:09 +00:00
drochner
bb33f35f20 Since files.wscons et al. are included by ~all ports anyway, include
them in the mi "files" file, and remove include statements from md files.
These shouldn't pull in additional kernel code when not in use, so it
shouldn't do any harm except a risk of namespace collisions which
should be easy to fix.
2008-02-20 21:43:33 +00:00
tsutsui
9e1c90f43b Remove unnecessary includes.
Many stuff was removed on newlock2 and yamt-idlelwp merges.
2008-02-18 15:19:57 +00:00
joerg
e69482d49d Introduce device_find_by_xname and device_find_by_driver_unit to replace
alldevs iterations all over src.

Patch discussed with and improved on suggestioned from cube@.
2008-02-12 17:30:57 +00:00
tsutsui
ff536c35f7 Add a definition for Fujitsu PenCentra 200 and enable wsmouse at ucbtp.
Tested and requested by Risto Sainio.
2008-01-30 13:49:09 +00:00
tsutsui
3676ae8965 Add options COMPAT_16, COMPAT_20 and COMPAT_30 as well as GENERIC.
Requested by Risto Sainio in PR port-hpcmips/37911.
2008-01-30 13:31:02 +00:00
tsutsui
d2bce17888 Add "-mdivide-breaks" to CPUFLAGS in GENERIC, and
use "-march=r3900" for CPUFLAGS in TX3912 and TX3922.

The "-mips2" option seems to imply "-mdivide-traps" and
gcc4 with the option generates "teq" instruction on division ops,
but teq is not supported by TX39xx CPUs.

The problem is reported and the fix (-mdevide-breaks) is
provided by Risto Sainio. Tested on his PenCentra 200,
and also tested on Telios HC-AJ2 by nakayama@.

This should be pulled up to netbsd-4.
2008-01-26 15:09:11 +00:00
tsutsui
ff0e8a32fd Make these TX39xx stuff compile without "-mips2" option.
TX39xx has a sync instruction, but it doesn't support all mips2 instructions.
2008-01-26 14:40:08 +00:00
joerg
3615cf7715 Now that __HAVE_TIMECOUNTER and __HAVE_GENERIC_TODR are invariants,
remove the conditionals and the code associated with the undef case.
2008-01-20 18:09:03 +00:00
ad
fb1e16b417 Need sys/device.h 2008-01-04 22:13:55 +00:00
ad
225df3f88d Don't pull in unrelated gunk. 2008-01-04 22:03:25 +00:00
ad
2ecdf58c2c Remove systrace. Ok core@. 2007-12-31 15:31:24 +00:00
perry
9b2b412c19 __FUNCTION__ -> __func__ 2007-12-15 00:39:14 +00:00
pavel
474470307d Update URLs after website reorganization. patch by OKANO Takayoshi, from
PR 37070.
2007-12-14 21:15:52 +00:00
tsutsui
99221a563b Use TAILQ_FIRST(3) and TAILQ_NEXT(3) macro. 2007-12-05 12:31:25 +00:00
ad
4b293a84e1 Interrupt handling changes, in discussion since February:
- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
2007-12-03 15:33:00 +00:00
ad
dc26833bb6 - Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
2007-11-19 18:51:36 +00:00
he
c71c45f606 After the machine's bus.h #ifdef was updated, this one needs a tweak as well. 2007-10-26 11:07:32 +00:00
he
27b6c6515d Correct the symbol used for multiple include protection, we can't
use _SYS_BUS_H_ here and expect good results when <sys/bus.h> is
included.
2007-10-26 09:15:54 +00:00
garbled
d974db0ada Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
2007-10-17 19:52:51 +00:00
ad
63811f5275 Generic soft interrupts are mandatory. 2007-07-14 21:48:17 +00:00
he
c36e288b04 Add a missing comma, and a missing return NULL if you fall off the
end of plumpcmcia_event_alloc().
2007-07-13 08:22:31 +00:00
kiyohara
8e5eb16fe0 There is a possibility that TLB-miss is caused in mq200_mdsetup(). 2007-07-13 04:03:55 +00:00
ad
88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
tsutsui
73b3a64df4 Move declaretions of _spl*() and _{clr,set}softintr() functions
(which are in mips/locore.S) into <mips/locore.h>
from various MD files.
2007-06-17 06:04:27 +00:00
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
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
tsutsui
b01d9ed02f uvm.page_idle_zero now is a bool, not a 32bit value any more.
Pointed out by Matthew Orgass in PR port-hpcmips/36249.
2007-05-11 12:56:01 +00:00
macallan
cd8fb15721 include files.wsfb 2007-04-10 02:29:42 +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
he
3b1966670e Due to pointer arithmetic, convert local "page" variable from void* to char*. 2007-03-08 07:14:41 +00:00
he
6bb7e42af6 Due to pointer arithmetic and comparison, it appears to be least
invasive to convert three local variables from void* to char*.
2007-03-08 07:04:42 +00:00
he
b2ba218c77 Cast to char* before doing pointer arithmetic. 2007-03-08 06:57:14 +00:00
he
2c6b5facb2 Change a cast from void* to char* when doing pointer arithmetic. 2007-03-07 09:22:38 +00:00
dogcow
f18ef70a25 semimechanically convert 'void foo' -> 'void *foo', as part of the continuing
caddr_t fallout.
2007-03-05 21:05:00 +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
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
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
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