Commit Graph

66 Commits

Author SHA1 Message Date
tsutsui
e0696f4b10 Add a proper cast to bus_dmamem_map(9) on mapping shared memory. 2007-03-04 12:31:29 +00:00
tsutsui
e2e037b261 Add (char *) cast on pointer arith. 2007-03-04 12:24:09 +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
tsutsui
a46d60ccc4 Disable more options to shrink kernel size. 2007-02-16 19:15:15 +00:00
tsutsui
990a39ff81 Remove hacks for now removed spllowersoftclock(9). 2007-02-16 13:27:00 +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
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
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
plunky
57c0199dcf Tidy away wsmouse_input() abstractions and update
documentation to include the W direction.
2006-11-12 19:00:42 +00:00
jmmv
7a13fe4abf Remove tmpfs's experimental status. OK'ed by core@. 2006-11-11 18:47:08 +00:00
tsutsui
57a0051fe5 - no need to scan zsc units in zshard(), just use passed one
- call zsc_intr_soft() directly on softintr and remove zssoft()
  (no need spltty() since it should be done in each MD handler)
2006-11-03 03:04:53 +00:00
chs
e8295642bd remove MALLOC_NOINLINE, it doesn't do anything anymore. 2006-10-02 03:28:29 +00:00
manu
f309b668fd - Document COMPAT_15 as doing nothing
- Add COMPAT_15 to all the kernel that had COMPAT_14, for the sake of coherency
- Remove the only occurences of #ifdef COMPAT_15 in the tree: for the ARM
ports, COMPAT_15 was always used in conjunction with EXEC_AOUT. Only EXEC_AOUT
matters here.

This address kern/18407
2006-09-27 21:42:04 +00:00
tsutsui
b2cb5b0241 G/c now unused #includes. 2006-09-09 03:18:00 +00:00
gdamore
780822fb96 whitespace fix. 2006-09-09 00:14:46 +00:00
gdamore
8639b95c43 Convert code to pick remove pasteware, picking up common implementations of
delay, mips3_init_tc, etc.
2006-09-09 00:14:27 +00:00
tsutsui
d7bf7d40db Remove last_clock_intr since it is only used for microtime(9). 2006-09-08 17:04:17 +00:00
tsutsui
4e1adf90bc Switch ews4800mips to a MIPS3 cp0 based timecounter. From gdamore
on port-ews4800mips.

XXX: ews4800mips can't use mips/mips/mips3_clock.c for now because
     it isn't configured to use internal clock interrupt for CPU INT 5,
     i.e. mips3_clockintr() is not needed and its own cpu_initclocks(9)
     is required.
2006-09-08 13:48:11 +00:00
tsutsui
220a3453b5 Switch ews4800mips to MI todr. 2006-09-04 20:31:30 +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
tsutsui
73e8e44a34 options SYSTRACE is now disabled in GENERIC,
so remove "no options SYSTRACE".
2006-08-28 13:53:04 +00:00
tsutsui
023d5b98c6 - add "zsc1 at sbdio?" so that ewskbd and ewsms are attached properly (oops)
- fix typo in a commented out entry
2006-08-27 14:09:40 +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
065fd1a5c0 Fix pointer signedness warnings by gcc4. 2006-08-26 14:13:40 +00:00
tsutsui
0216ae4c51 Handle (.rodata.*) sections created by gcc4. 2006-08-26 14:12:26 +00:00
tsutsui
dca3a6d117 Remove netns and netccitt options. 2006-08-26 08:08:30 +00:00
tsutsui
6ff205ce76 Remove obsolete #options VERIFIED_EXEC, found by grep(1). 2006-08-26 07:59:21 +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
lukem
18f00f5cff support MAKEVERBOSE 2006-06-28 16:28:51 +00:00
lukem
78538138b4 Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD. 2006-06-28 16:27:27 +00:00
lukem
b231a333f6 more MAKEVERBOSE 2006-06-28 16:24:08 +00:00
lukem
0b18a2cbf7 support MAKEVERBOSE 2006-06-28 16:23:24 +00:00
lukem
dcf5685dbf Rename LDFLAGS to LINKFLAGS, as the former is for CC not LD. 2006-06-28 16:20:42 +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
tsutsui
8ff2abc2ad space nits. 2006-06-10 12:35:01 +00:00
tsutsui
88032f5d39 Sync with hpcsh/bus_space.c rev 1.12:
> Use C99 syntax for designated initializers.
> Semicolon syntax is a gcc extension and has been obsolete since gcc 2.5.
2006-06-01 14:18:41 +00:00
tsutsui
eeb8ad7128 Use the same bus_space_barrier(9) macro with other mips ports to avoid
possible unused variable warnings.
2006-05-26 13:25:21 +00:00
tsutsui
35a607184b Mising -> Mixing 2006-04-16 16:39:36 +00:00
tsutsui
c40d1f2d22 - make _ds_vaddr member vaddr_t instead of bus_addr_t
- use appropriate cache ops in bus_dmamap_sync() like other mips3 ports
2006-04-16 08:57:20 +00:00
jmmv
7a51d4dddc Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called.  The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place.  There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
2006-04-12 19:38:22 +00:00
pavel
dc1372c547 Add stf to all kernel configs which have INET6 and gif, except the INSTALL
ones and those for specific machines of developers. PR 32304.

OK'ed by rpaulo.

N.B. stf is a cloning device, so it still must be enabled by
"ifconfig stf0 create".
2006-03-28 20:58:39 +00:00
thorpej
39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
tsutsui
969544860e Don't put .reginfo into .bss but prepare an independent section for it
so that new ld(1) no longer dies on link as PR/33011.

Still ld(1) coredump problem should be fixed, IMO.
2006-03-18 07:29:53 +00:00
yamt
ec5a93183a merge yamt-uio_vmspace branch.
- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.
2006-03-01 12:38:10 +00:00