Commit Graph

86712 Commits

Author SHA1 Message Date
tsutsui
35788e9981 - remove volatile from *regkva member in struct grfabs_et_priv
and use temporary variables on register accesses
- also remove volatile from *memkva member in struct grfabs_et_priv
  because it isn't used to refer memory
XXX: I'm not sure if bm->plane should be volatile or not
     but I don't think previous code treats it as volatile anyway.
     (though I'm not sure how compiler handled "volatile caddr_t")
2007-03-06 14:40:25 +00:00
tsutsui
7bad4d945e - change pointers which actually required caddr_t to calculate address
from (void *) to (char *)
- add (char *) cast to appease -Wpointer-arith
2007-03-06 14:15:13 +00:00
tsutsui
46cc919e1f Make TX buffer (uint8_t *) and remove an unnecessary cast. 2007-03-06 14:13:02 +00:00
tsutsui
a977b2956f Pass (char *) to mtod(9) on pointer arith. 2007-03-06 14:12:10 +00:00
tsutsui
1f79355c9b Add (char *) cast to appease -Wpointer-arith. 2007-03-06 14:10:07 +00:00
tsutsui
bc4a41fd8b Make req_addr (char *) rather than adding an extra cast
since it's used only in this function to calculate buffer address.
2007-03-06 14:07:15 +00:00
tsutsui
d319901154 Make io_data (char *) rather than adding an extra cast
since it's used only in this file to calculate buffer address.
2007-03-06 14:03:07 +00:00
he
582dc91458 More fixes after the caddr_t removal.
Mostly cast to char* for pointer arithmetic,
but also one missing indirection, and one "void *v, x;" fix.
2007-03-06 13:54:44 +00:00
tsutsui
7474a23441 Add a missed '*'. 2007-03-06 13:53:59 +00:00
tsutsui
57eb9123e8 Remove an unnecessary cast. 2007-03-06 13:53:32 +00:00
tsutsui
4fc7add5a3 Use (char *) to appease -Wpointer-arith. 2007-03-06 12:41:52 +00:00
yamt
dedaf26748 fix vcpu after recent cpubus changes. 2007-03-06 12:35:39 +00:00
yamt
a36286ca6a multiple inclusion protection. 2007-03-06 12:32:46 +00:00
liamjfoy
f9af4def67 Fix some style issues - no functional change 2007-03-06 12:12:24 +00:00
dillo
d0c955805c Remove hfsp directories, they have been reimported as hfs. 2007-03-06 11:31:21 +00:00
dillo
56c3e41252 Complete rename of hfsp to hfs, requested by thorpej. 2007-03-06 11:28:44 +00:00
dillo
abbfd8a897 LKM glue for Apple HFS+ file system. 2007-03-06 11:27:15 +00:00
dogcow
b9b4ca0bf0 more caddr_t fallout. 2007-03-06 02:30:16 +00:00
xtraeme
27d2cb4e20 Use a mutex rather than lockmgr. Approved by Andrew Doran. 2007-03-06 01:09:42 +00:00
simonb
a92d5c5157 Fix some caddr_t rototill fallout. 2007-03-06 00:48:07 +00:00
he
ffac364e10 Make the various graphics card drivers compile again.
Try to preserve `volatile' qualification where possible, though
uses of kvtop() gain an unfortunate but probably unavoidable __UNVOLATILE().
Correct various instances of "void *ba, fb" to have * in front of fb as well.
2007-03-06 00:46:00 +00:00
simonb
80c8d64aa9 Fix some caddr_t rototill fallout. 2007-03-06 00:43:50 +00:00
dillo
25e99827c3 Rename files from hfsp to hfs. 2007-03-06 00:22:04 +00:00
dillo
d3fee42230 Temporarily readd, until rename is complete -- renaming the directory
is not enough.

(I need sleep, will clean this up tomorrow.  Sorry for the mess.)
2007-03-06 00:15:50 +00:00
dillo
601515c0d6 Renamed to HFS. 2007-03-06 00:11:38 +00:00
dillo
4f1d6e612e nitial import of (experimental read-only) implementation of Apple
HFS+ file system.

Originally developed for Google Summer of Code 2005 by Yevgeny Binder,
updated and enhanced by me.
2007-03-06 00:10:34 +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
dogcow
b347627ab1 The recent cpu_attach changes broke the xen build; while this compiles,
I'm far from positive it's the correct fix.
2007-03-05 23:26:40 +00:00
dillo
2d2ddd2830 Integrate apmlabel and HFS+ file system. 2007-03-05 23:19:17 +00:00
yamt
7e98ba85a6 nfsrv_setattr: revive nfsm_srvsattr which was (mistakenly?)
removed with caddr_t.
2007-03-05 23:18:50 +00:00
dillo
9274a5c0f1 Integrate apmlabel and HFS+ file system. 2007-03-05 23:18:01 +00:00
dillo
3eb0182b68 LKM glue for Apple HFS+ file system. 2007-03-05 23:09:16 +00:00
dillo
9cf283f2a5 Initial import of (experimental read-only) implementation of Apple
HFS+ file system.

Originally developed for Google Summer of Code 2005 by Yevgeny Binder,
updated and enhanced by me.
2007-03-05 23:01:06 +00:00
he
ee019f102d Use mtod(m, char*) when doing pointer arithmetic on the result.
Patch from Andreas Wrede.
2007-03-05 22:50:32 +00:00
he
f41cb0f1b1 Use mtod(m, char *) when you want to do pointer arithmetic on the result. 2007-03-05 22:36:16 +00:00
he
bc250f04cf Cast to char* before doing pointer arithmetic, convert one void* to char*
for ease of pointer arithmetic.
2007-03-05 22:18:59 +00:00
he
13e2842780 Use mtod(m, char*) when you want to do pointer arithmetic on the result. 2007-03-05 21:40:30 +00:00
he
3b9acdf0e9 Cast to char* before doing pointer arithmetic. 2007-03-05 21:35:42 +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
7ee7450e6f Cast to char* before doing pointer arithmetic. 2007-03-05 20:55:45 +00:00
christos
47c1e3335d another caddr_t botch 2007-03-05 20:53:34 +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
he
a24f5d1f55 Convert "void * a, b, c;" to "void *a, *b, *c;" to make this build again. 2007-03-05 20:34:51 +00:00
drochner
7767c569f2 Make the attach functions for real and pseudo devices share as much code
as possible. For that, split out a function which does the allocation
of a softc (without linking it into global structures) and a function
which inserts the device into the global alldevs lists and the per-driver
cd_devs.
There is a little semantic change involved: the pseudo-device code didn't
interpret FSTATE_STAR as such, for no good reason. This looks harmless;
I'll modify driver frontends as I find ways to test.
Get config_makeroom() out of the public namespace - that's clearly an
internal of autoconf which drivers can't be allowed to deal with.
2007-03-05 20:32:43 +00:00
he
068d2b32bc Use char* for pointer arithmetic. 2007-03-05 20:30:09 +00:00
ad
0261e46854 - proc_unstop: adjust p_nrlwps correctly. Should fix PR kern/35657.
- LOCK_ASSERT -> KASSERT
- Update a couple of comments.
2007-03-05 20:29:14 +00:00
he
3ba91b0595 Propagate volatile-ness from g_fbkva or g_regkva etc. as best as possible.
Some uses of __UNVOLATILE(), either in preparation of calls to bcopy()
or in the invocations themselves.
2007-03-05 20:29:07 +00:00
drochner
d152127c07 replace the code which digs in the guts of autoconf. It is not obvious
what it does; use some code from btuart(4) which might be for a
similar purpose.
XXX This is very definitely broken; when I understand how this is
supposed to work and how it can be tested I'll have another look at it.
2007-03-05 20:23:14 +00:00
he
9b5b94d987 Cast to char* before doing pointer arithmetic. 2007-03-05 20:00:00 +00:00
he
8ecc297897 Do pointer arithmetic on char* or u_char* pointers. 2007-03-05 19:58:43 +00:00
he
8247f5f1d2 Make the various graphics card drivers compile again.
Use casts to char* before pointer arithmetic.
Try to preserve `volatile' qualification where possible, though
uses of kvtop(), strcpy(), copyin() and copyout() gain an unfortunate
but probably unavoidable __UNVOLATILE().
Correct various instances of "void *ba, fb" to have * in front of fb as well.
Remove some redundant parenthesis pairs in some of the vga* macros.
2007-03-05 19:48:19 +00:00
plunky
162ec75621 return ENOPROTOOPT when protocol options are not known 2007-03-05 19:11:54 +00:00
plunky
070f41d51b whitespace 2007-03-05 19:05:57 +00:00
plunky
78a5a02263 add extra validity check for inbound requests 2007-03-05 19:04:46 +00:00
plunky
904dc39982 remove extraneous prototype 2007-03-05 19:02:47 +00:00
he
b5a6705297 Fix one missing indirection causing a type conflict, and use char* for
pointer arithmetic.
2007-03-05 18:46:41 +00:00
he
51b20dc64d Use char* for pointer arithmetic. 2007-03-05 18:43:30 +00:00
he
d6887d96f0 Fix one missing indirection causing a type conflict, and use char* for
pointer arithmetic.
2007-03-05 18:35:58 +00:00
he
38678ed9a1 Use char* for pointer arithmetic. 2007-03-05 18:33:34 +00:00
he
9c1c8a7683 Use char*, not void* for pointer arithmetic. 2007-03-05 18:25:29 +00:00
matt
398339900b Use uint8_t * for pointer arith with mbuf data 2007-03-05 18:21:59 +00:00
he
8ed0e0b4a6 Follow Izumi Tsutsui's advice, and use uint8_t* rather than char*. 2007-03-05 18:06:09 +00:00
he
002b93be68 Cast to char* before doing pointer arithmetic. 2007-03-05 17:55:19 +00:00
he
6f4945e435 Do some casts via paddr_t and void* to compute address of msgbuf and
pass it to initmsgbuf().
2007-03-05 17:52:26 +00:00
he
05029883f8 Use a char* variable for doing pointer arithmetic with. 2007-03-05 17:47:49 +00:00
he
7a89811338 Cast to char* before doing pointer arithmetic. 2007-03-05 17:37:06 +00:00
drochner
d880082522 clean up how cpus and ioapics are attached at the mainbus:
Seperate "cpubus" and "ioapicbus" -- while they share a common "address
space" (the apic id), the kernel doesn't use this fact. There are different
data passed to cpus and apics, which caused some ugly polymorphism. This
also saves the special "submatch" functions needed to distingush cpus
and ioapics for autoconf. (And it makes that "apid" locators wired
in the kernel configuration are honored now; this allows one to dumb down
an mp box to singleprocessor by userconfig.)
Print "apid" locators in the buses "print" function "as everyone does",
so the per-port cpu drivers don't need to do it.
Being here, constify "struct cpu_functions" and g/c the unused MP_PICMODE
flag.
2007-03-05 16:50:59 +00:00
he
8485493114 Cast to char* before doing pointer arithmetic. 2007-03-05 16:41:03 +00:00
he
f216f1649f Cast to char* before pointer arithmetic. 2007-03-05 16:39:21 +00:00
drochner
9916a76d2e It was probably not a good idea to put that scroll stuff to accessops.
But now that it is there, keep it from crashing the box if there is
no valid focus screen.
2007-03-05 16:06:52 +00:00
he
5d3a459b83 Use a local variable of the appropriate type, assign from argument,
and get rid of some casts as a bonus, following caddr_t removal.
2007-03-05 15:55:19 +00:00
he
2d94cf729d Add a couple of casts to char* before doing pointer arithmetic. 2007-03-05 15:42:23 +00:00
he
ac662e9e5f Remove an unneeded addition of 0 to what is now a void*. 2007-03-05 15:40:28 +00:00
he
b4a156898e Need some casts to char* for pointer arithmetic, following caddr_t removal. 2007-03-05 15:36:26 +00:00
he
23e49d8fa8 Need char* for pointer arithmetic done in iwm_fd.c. 2007-03-05 15:32:33 +00:00
he
08cd807f1c Need char* for pointer arithmetic and array indexing. 2007-03-05 15:29:13 +00:00
tsutsui
f29951d982 Fix caddr_t fallout. Well, this driver is too ugly to read... 2007-03-05 15:05:24 +00:00
he
fdcc1ff67a We need char* for pointer arithmetic. 2007-03-05 14:49:04 +00:00
tsutsui
90b5f236a9 Use (char *) on pointer arith. 2007-03-05 14:31:08 +00:00
xtraeme
da8fba5413 die caddr_t, die. 2007-03-05 14:30:16 +00:00
christos
fd0949947b more caddr_t lossage. 2007-03-05 14:27:38 +00:00
christos
033371b01a fix caddr_t lossage 2007-03-05 14:24:18 +00:00
christos
c74f0279ea more caddr_t lossage. 2007-03-05 14:13:10 +00:00
he
1564bbc49c Need a char* for doing pointer arithmetic. 2007-03-05 13:56:24 +00:00
tsutsui
0092fa7c2d MI softintr(9)'fy. Untested.
This port needs much more cleanups, it seems...
2007-03-05 13:06:43 +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