summaryrefslogtreecommitdiff
path: root/minix/kernel/vm.h
blob: 404537338d725b82eba38e01afd69f9d1c4e259a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

#ifndef _VM_H
#define _VM_H 1

/* Pseudo error codes */
#define VMSUSPEND       (-996)
#define EFAULT_SRC	(-995)
#define EFAULT_DST	(-994)

#define PHYS_COPY_CATCH(src, dst, size, a) {	\
	catch_pagefaults++;			\
	a = phys_copy(src, dst, size);		\
	catch_pagefaults--;			\
	}

#endif