Only define atop for _KERNEL or _KERNEL_STRUCTURES.
authorJeremy C. Reed <reed@dragonflybsd.org>
Wed, 8 Mar 2006 04:54:05 +0000 (04:54 +0000)
committerJeremy C. Reed <reed@dragonflybsd.org>
Wed, 8 Mar 2006 04:54:05 +0000 (04:54 +0000)
commit790ddd7bfd3dfc320c6626adb1c96bc072895ce4
tree5907d985034da3734bab2b08f16093e0693a7f3b
parentb447e1b99b42e905100a8d6c89de4f675f5444ea
Only define atop for _KERNEL or _KERNEL_STRUCTURES.

Noticed because third-party userland code (csup) also tried to use
its own atop.

I tested with a buildworld and buildkernel on i386.

Okayed by M. Dillon via kernel mailing list.

(I didn't put this condition around ptoa because it is used in
usr.bin/gcore/gcore.c.)
sys/amd64/include/param.h
sys/cpu/i386/include/param.h
sys/i386/include/param.h