Commit Graph

1319 Commits

Author SHA1 Message Date
mhitch
d2eac2f631 Pass a frame pointer to trap() rather than the 'entire frame' trick. Gcc4
was optimizing away modifications to the frame contents (it's not nice to
trick gcc).  Pass the pointer as the first argument to reduce the number
of places that would be changed otherwise.  Fixes the getcwd regression
test on most m68k ports.
2007-06-12 03:34:28 +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
tsutsui
32b0b73c06 Move declarations of m68k common functions
from <machine/cpu.h> to <m68k/m68k.h>.
While here, remove some obsolete function decls.
2007-05-21 16:37:03 +00:00
isaki
d7f5331e03 Make it compilable with FDDEBUG. 2007-05-20 10:52:40 +00:00
mhitch
9385473585 Add missing call to lwp_startup() in lwp_trampoline() (which was renamed
from proc_trampoline to match the other ports).

A DIAGNOSTIC kernel will now boot and run.  LOCKDEBUG still doesn't work yet.
Also, my amiga no longer loses time.
2007-05-20 04:29:47 +00:00
isaki
38bf980ecb Use do { } while (0) to macro. 2007-05-19 14:25:26 +00:00
isaki
2440803ee4 Adapt to the merge of yamt-idlelwp branch.
tested on my X68030.
2007-05-19 14:19:39 +00:00
tsutsui
570ffc1b5b Update comments to sync yamt-km merge (Sysmap has been moved).
See also:
http://mail-index.netbsd.org/source-changes/2005/02/23/0004.html
2007-05-18 10:45:58 +00:00
isaki
23df019b96 Clean up white spaces and tabs. 2007-05-12 06:31:18 +00:00
isaki
9b78dfb5bb Remove a local block for readability. 2007-05-12 06:28:41 +00:00
isaki
5b51f6777d Remove an unnecessary semicolon. 2007-05-12 06:17:38 +00:00
msaitoh
8ce1f4fff2 fix typos 2007-04-29 20:23:34 +00:00
isaki
174e071c25 Remove obsoleted #undef. 2007-04-29 05:31:00 +00:00
isaki
59684b33a0 Make it compilable with DEBUG. 2007-03-21 05:15:50 +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
isaki
e1947f9eb2 Include appropriate header file. 2007-03-11 08:22:33 +00:00
isaki
d30ec9eee3 white space, indent and KNF. 2007-03-11 08:09:23 +00:00
isaki
64e649bb89 Merge #ifdef _KERNEL stuff into one place.
Suggested by tsutsui@.
2007-03-11 07:57:37 +00:00
isaki
2a35e6919b Remove #ifdef _KERNEL since this file is no longer exported.
Suggested by tsutsui@.
2007-03-11 07:57:05 +00:00
isaki
3a58b5c6d0 Stop installing <machine/intr.h> on x68k.
Suggested by simonb@ and tsutsui@.
2007-03-11 06:16:02 +00:00
isaki
16cf7dc30e Include <machine/intr.h> only in _KERNEL.
Suggested by tsutsui@.
2007-03-11 06:15:20 +00:00
isaki
44f16b3b10 Remove an extra white space. 2007-03-11 06:01:05 +00:00
thorpej
32a8b62d33 - Shrink ipl_cookie_t from 32-bits to 16-bits (large enough to hold
an SR value or an IPL_* constant).
- Take advange of the smaller ipl_cookie_t to shrink kmutex_t from
  16 bytes to 8 bytes by overlapping storage where possible.
- Implement a RAS-based _lock_cas() for mc68010 systems (Sun2).  See
  sun68k/sun68k/isr.c.

Tested on various m68k platforms, but NOT Sun2.  In any case, at least
Sun2 compiles now.
2007-03-11 05:22:24 +00:00
he
7ee7450e6f Cast to char* before doing pointer arithmetic. 2007-03-05 20:55:45 +00:00
he
9f6b24c0fa Cast to char* before doing pointer arithmetic. 2007-03-05 20:48:42 +00:00
he
f1f47464be Cast to char* before doing pointer arithmetic. 2007-03-05 20:38:19 +00:00
tsutsui
d5a5c6095d Allocate msgbufaddr in pmap_bootstrap.c where it's initilized,
and move its declaration into <m68k/pmap_motorola.h>.
2007-03-05 12:50:15 +00:00
tsutsui
2735750cca Add (char *) casts on pointer arith. 2007-03-05 12:37:53 +00:00
tsutsui
980acc7d7b Remove an unnecessary cast and use (char *) on pointer arith. 2007-03-05 12:30:37 +00:00
tsutsui
cdfa69a5f8 - add missed '*'
- vmmap is (char *) in pmap_motorola.h
2007-03-05 12:26:55 +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
tsutsui
1b20cebad5 Hide #include <m68k/softintr.h> inside #ifdef _KERNEL in <machine/intr.h>
to avoid exporting unnecessary files to userland.
Should fix build.sh failure, which was pointed out by isaki@.

XXX: which userland program would require contents of <machine/intr.h>?
2007-03-04 05:28:38 +00:00
isaki
321252311a Delete old prototypes. 2007-03-04 03:25:33 +00:00
tsutsui
75e46e71a6 Global ssir (similated software intnerrupt request?) is now declared
in softintr.c so remove it from locore.s.
2007-03-04 02:17:15 +00:00
tsutsui
72c70a3609 Add MI softintr(9) support for x68k with common m68k/softintr.c.
Tested by isaki@ and Yasushi Oshima.

XXX: x68k/dev/com.c should be rewritten to use MI com(4).
2007-03-04 02:08:08 +00:00
isaki
c57dd8f6e4 -Wconversion is too strict. 2007-03-03 07:10:30 +00:00
thorpej
ae01c745cb TRUE -> true, FALSE -> false 2007-02-22 06:47:16 +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
2d62904bd2 More spllowersoftclock() fallout. 2007-02-16 14:00:17 +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
isaki
0b16b54211 Bring back the comment which was lost at rev1.35 . 2007-01-08 10:06:29 +00:00
isaki
3bdf14cb4e Bring back the comment which was lost at rev1.22 . 2007-01-08 10:06:08 +00:00
yamt
3f0f3de613 update comments on NFS_V2_ONLY after nqnfs removal. no functional changes.
from Arnaud Lacombe.
2006-12-29 21:49:03 +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
jmmv
7a13fe4abf Remove tmpfs's experimental status. OK'ed by core@. 2006-11-11 18:47:08 +00:00
bjh21
7acb866d02 All of the older COMPAT_?? options imply COMPAT_13, so there's no need to
check each one individually.
2006-11-11 16:58:04 +00:00