Commit Graph

2465 Commits

Author SHA1 Message Date
dillo
56c3e41252 Complete rename of hfsp to hfs, requested by thorpej. 2007-03-06 11:28:44 +00:00
dillo
23c2619e4d Add file-system HFSP (commented out) to GENERIC kernels of ports
on which Mac OS runs.
2007-03-05 23:30:18 +00:00
he
176f2ec48f Use char* for pointer arithmetic. 2007-03-05 21:31:30 +00:00
he
0e9b57828a Use a char* for pointer arithmetic. 2007-03-05 21:27:10 +00:00
he
6b92c489c9 Fix this so that it builds after sc_txbuf and sc_rxbuf no longer are void*. 2007-03-05 21:23:49 +00:00
he
24b1466937 On second thought, make sc_txbuf and sc_rxbuf uint8_t*s, since if_mc_obio.c
likes to index directly into sc_rxbuf.
2007-03-05 21:22:45 +00:00
he
5c33ca91fd Cast to char* or u_char* before doing pointer arithmetic. 2007-03-05 21:17:27 +00:00
he
253f3852ca Fix another instance of "void * a, b;" to be "void *a, *b;". 2007-03-05 21:16:58 +00:00
he
04f908096c Use a char* helper variable for pointer arithmetic. 2007-03-05 21:13:36 +00:00
he
d938af0344 Cast to char* before doing pointer arithmetic. 2007-03-05 21:11:04 +00:00
he
0585b687ec Add two instances of an overlooked indirection. 2007-03-05 21:08:24 +00:00
he
5ae7dde94e Cast to uint8_t* or char* before indexing or doing pointer arithmetic. 2007-03-05 21:06:24 +00:00
he
edd27801a8 Use a helper variable so that we can index it as an array. 2007-03-05 21:05:35 +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
he
23e49d8fa8 Need char* for pointer arithmetic done in iwm_fd.c. 2007-03-05 15:32:33 +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
thorpej
09c5f9cc49 TRUE -> true, FALSE -> false 2007-02-28 04:21:51 +00:00
dyoung
58d89d0317 Make the mac68k 'tags' target work. 2007-02-25 05:47:55 +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
chs
e7b7245620 in doboot, use "longscratch" as a scratch memory location instead of
something in the (read-only) text section.  fixes PR 35068.
2007-01-08 16:54:15 +00:00
martin
89d077595a If we have a single byte left over after filling in all mbuf data, we need
to increase the "totlen" count too. From Sungwon Chung.
2007-01-06 13:25:19 +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
martin
eeb58feda1 Convert DMA memory allocation to bus_dmamem_alloc. From Dave Huang. 2006-12-12 11:46:33 +00:00
hauke
82e4e09423 Support for four nubus video cards:
Formac ProNitron 80.IVb (1024x768/8)
Relax 19" Model 200 (1024x768/8)
Apple Monochrome Video Card (640x480/1)
VillageTronic Mac Picasso 320 (up to 1920x1080/up to 24)

Nubus identifiers for Creative Solutions parallel & serial cards,
and a Becton Dickinson data acquisition card.
2006-12-06 21:21:12 +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
hauke
ee98815c38 Better make sure CLK_INTERVAL remains an integer for creative non-default
values of HZ.
2006-11-20 20:48:36 +00:00
hauke
9659017417 Add Timecounter support for mac68k, using the otherwise idle second
timer of VIA1. Passes regression/sys/kern/time regression test.

While we are here, GC leftover prototypes from MI todr integration,
and clean up clockreg.h in the light of "Guide to the Macintosh
Hardware" information.

(Reviewed and okayed by Martin Husemann)
2006-11-20 19:58:38 +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
macallan
65d4544efe add control codes for virtual console switching
looks like I forgot to commit this ages ago...
2006-11-08 03:27:29 +00:00
hauke
9d2e5c6d9c The {GENERIC,INSTALL}SBC kernel configurations are out of sync with
the vanilla ones. They are supposed to be identical to
{GENERIC,INSTALL}, apart from the different ncr5380 driver.
Instead of re-sync'ing, use a new feature of configure and just disable
the ncrscsi driver.

(Approved by Allen Briggs)
2006-10-30 19:40:47 +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
he
80d2ffd230 Cast addresses to int before doing arithmetic on them, as in uses
of roundup().
2006-10-07 21:13:02 +00:00
tsutsui
861b9568df Don't call wdc_init_shadow_regs() before struct ata_channel is
properly initilized in wdc_obio_attach().
Fixes NULL pointer deref during boot.
2006-10-05 09:34:52 +00:00
christos
15ccdb2172 don't use home-grown round macros 2006-10-04 21:30:05 +00:00
chs
e8295642bd remove MALLOC_NOINLINE, it doesn't do anything anymore. 2006-10-02 03:28:29 +00:00
gdamore
281cced62d Convert mac68k to generic todr. Thanks to Robert Swindells for testing. 2006-09-20 03:40:51 +00:00
tsutsui
21d899a826 Apply patch from Scott Reynolds in PR port-mac68k/32583
with some tweaks (add a comment and macro):
Handle odd byte case correctly in (ETHER_MIN_LEN-ETHER_CRC_LEN) padding
so that bus_space_set_region_2() won't be called with count==0.
2006-09-09 06:25:08 +00:00
tsutsui
4ab5c21e01 Apply patch in PR port-mac68k/33636 from Dave Huang (with wrapping long lines).
i.e. args in macro should be wrapped with parentheses.
2006-09-09 06:01:48 +00:00
tsutsui
5319672b12 Remove %fp and %a6 from a clobber description in __asm() statement.
It shouldn't be clobbered and there is nothing for compiler to do
in that case anyway as gcc4 complains.
2006-09-09 03:51:04 +00:00
dogcow
f2d329dca0 remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP. 2006-09-07 02:40:31 +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