the cast will be a syntax error.
#include <machine/mtpr.h> isn't something you're supposed to do in NetBSD.