Commit Graph

86627 Commits

Author SHA1 Message Date
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