/* Test code to show problem with handling of icbi in userspace on PowerPC in Linux 2.6 */ #include #include extern void test(); int main(int argc, char *argv[]) { #if 0 /* Lock the text segment of the test routine so that the pages will be present in RAM - otherwise the ICBI will not work */ mlock((void *)&test, 3*4096); #endif test(); printf("move on - there's nothing to see here\n"); return 0; }