[TG3]: Set minimal hw interrupt mitigation.
[linux-2.6/verdex.git] / arch / um / kernel / tt / unmap.c
blob3f7aecdbe5328b47a9b633f390594a162884c5ff
1 /*
2 * Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
4 */
6 #include <sys/mman.h>
8 int switcheroo(int fd, int prot, void *from, void *to, int size)
10 if(munmap(to, size) < 0){
11 return(-1);
13 if(mmap(to, size, prot, MAP_SHARED | MAP_FIXED, fd, 0) != to){
14 return(-1);
16 if(munmap(from, size) < 0){
17 return(-1);
19 return(0);
23 * Overrides for Emacs so that we follow Linus's tabbing style.
24 * Emacs will notice this stuff at the end of the file and automatically
25 * adjust the settings for this buffer only. This must remain at the end
26 * of the file.
27 * ---------------------------------------------------------------------------
28 * Local variables:
29 * c-file-style: "linux"
30 * End: