Include opt_xen.h #ifdef _KERNEL_OPT instead of custom logic.
Thanks to Izumi Tsutsui for pointing me at _KERNEL_OPT
This commit is contained in:
parent
2b2c7bcc21
commit
b378f8b2cb
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: segments.h,v 1.13 2007/11/22 21:21:14 bouyer Exp $ */
|
/* $NetBSD: segments.h,v 1.14 2007/11/23 15:38:06 bouyer Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1990 The Regents of the University of California.
|
* Copyright (c) 1990 The Regents of the University of California.
|
||||||
@ -84,7 +84,7 @@
|
|||||||
|
|
||||||
#ifndef _AMD64_SEGMENTS_H_
|
#ifndef _AMD64_SEGMENTS_H_
|
||||||
#define _AMD64_SEGMENTS_H_
|
#define _AMD64_SEGMENTS_H_
|
||||||
#if defined(_KERNEL) && !defined(_RUMPKERNEL) && !defined(_LKM)
|
#ifdef _KERNEL_OPT
|
||||||
#include "opt_xen.h"
|
#include "opt_xen.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: types.h,v 1.19 2007/11/22 21:21:14 bouyer Exp $ */
|
/* $NetBSD: types.h,v 1.20 2007/11/23 15:38:06 bouyer Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1990 The Regents of the University of California.
|
* Copyright (c) 1990 The Regents of the University of California.
|
||||||
@ -73,7 +73,7 @@ typedef volatile unsigned char __cpu_simple_lock_t;
|
|||||||
#define __HAVE_CPU_MAXPROC
|
#define __HAVE_CPU_MAXPROC
|
||||||
#define __HAVE_TIMECOUNTER
|
#define __HAVE_TIMECOUNTER
|
||||||
|
|
||||||
#if defined(_KERNEL) && !defined(_RUMPKERNEL) && !defined(_LKM)
|
#ifdef _KERNEL_OPT
|
||||||
#include "opt_xen.h"
|
#include "opt_xen.h"
|
||||||
#define __HAVE_RAS
|
#define __HAVE_RAS
|
||||||
#ifndef XEN
|
#ifndef XEN
|
||||||
|
Loading…
Reference in New Issue
Block a user