CVSROOT: /cvs Module name: src Changes by: m...@cvs.openbsd.org 2010/11/20 13:33:24
Modified files: sys/arch/alpha/dev: bus_dma.c sys/arch/amd64/amd64: bus_dma.c machdep.c pmap.c sys/arch/arm/arm: bus_dma.c sys/arch/hppa/hppa: machdep.c sys/arch/hppa64/hppa64: machdep.c sys/arch/i386/i386: bus_dma.c pmap.c sys/arch/mac68k/mac68k: pmap_bootstrap.c sys/arch/sh/sh : pmap.c sys/arch/sparc64/sparc64: machdep.c pmap.c sys/arch/vax/vax: bus_dma.c mem.c Log message: This is a first step towards getting rid of avail_start and avail_end in the kernel, currently limited to low-hanging fruit: these variables were used by bus_dma to specify the range in which to allocate memory, back when uvm_pglistalloc() was stupid and would not walk the vm_physseg[]. Nowadays, except on some platforms for early initialization, these variables are not used, or do not need to be global variables. Therefore: - remove `extern' declarations of avail_start and avail_end (or close cousins, such as arm physical_start and physical_end) from files which no longer need to use them. - make them local variables whenever possible. - remove them when they are assigned to but no longer used.