vm_param.h (c3aac50f284c6cca5b4f2eb46aaa13812cb8b630) | vm_param.h (c447342094276b4d604449bb776063c7b88c4992) |
---|---|
1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * The Mach Operating System project at Carnegie-Mellon University. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 104 unchanged lines hidden (view full) --- 113#define KERN_NO_SPACE 3 114#define KERN_INVALID_ARGUMENT 4 115#define KERN_FAILURE 5 116#define KERN_RESOURCE_SHORTAGE 6 117#define KERN_NOT_RECEIVER 7 118#define KERN_NO_ACCESS 8 119 120#ifndef ASSEMBLER | 1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * The Mach Operating System project at Carnegie-Mellon University. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 104 unchanged lines hidden (view full) --- 113#define KERN_NO_SPACE 3 114#define KERN_INVALID_ARGUMENT 4 115#define KERN_FAILURE 5 116#define KERN_RESOURCE_SHORTAGE 6 117#define KERN_NOT_RECEIVER 7 118#define KERN_NO_ACCESS 8 119 120#ifndef ASSEMBLER |
121#ifdef KERNEL | 121#ifdef _KERNEL |
122#define num_pages(x) \ 123 ((vm_offset_t)((((vm_offset_t)(x)) + PAGE_MASK) >> PAGE_SHIFT)) | 122#define num_pages(x) \ 123 ((vm_offset_t)((((vm_offset_t)(x)) + PAGE_MASK) >> PAGE_SHIFT)) |
124#endif /* KERNEL */ | 124#endif /* _KERNEL */ |
125#endif /* ASSEMBLER */ 126#endif /* _VM_PARAM_ */ | 125#endif /* ASSEMBLER */ 126#endif /* _VM_PARAM_ */ |