[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pbsd-mg2] bus_addr_t etc..



佐藤です。

今のmoguのrepositryのhpcmipsのMakefileでは -Werrorがないので
ちょっとしたミスを防ぐために-Werrorで通そうとおもったのですが、
dev/pcmcia/pcmcia.cなどがwarningが出て通りません。
bus_addr_tのtypeがpcmcia.cが仮定しているものとhpcmipsのそれ(u_int32_t)が
異なるからのようなんですが..
dev/pcmcia/pcmcia.cはu_longのときに通るようになってるっぽい。

1.4Releaseの arch/*/include/bus.hをみても
alpha/include/bus.h:typedef u_long bus_addr_t;
amiga/include/bus.h:typedef u_int32_t bus_addr_t;
arm32/include/bus.h:typedef u_long bus_addr_t;
atari/include/bus.h:typedef u_long      bus_addr_t;
bebox/include/bus.h:typedef u_int32_t bus_addr_t;
hp300/include/bus.h:typedef u_long bus_addr_t;
i386/include/bus.h:typedef u_long bus_addr_t;
mac68k/include/bus.h:typedef u_long bus_addr_t;
macppc/include/bus.h:typedef u_int32_t bus_addr_t;
mvme68k/include/bus_space.h:typedef u_long bus_addr_t;
next68k/include/bus_space.h:typedef u_long bus_addr_t;
pmax/include/bus.h:typedef u_long bus_addr_t;
sparc/include/bus.h:typedef u_long      bus_addr_t;
sparc64/include/bus.h:typedef u_int64_t bus_addr_t;
vax/include/bus.h:typedef u_long bus_addr_t;
x68k/include/bus.h:typedef u_long       bus_addr_t;

と結構さまざまです。
address spaceの大きさでサイズが異なるのは仕方がないとおもうのですが、
どうするのがいいんでしょうね。

bus_add_tなんかをu_longにすると arch/hpcmips/hpcmips/bus_space.c他
たくさん直す必要があるし...

共通部分なコードが互換性(warning程度で大袈裟?)がないのはこまらないのかな。
sato


sato