Move FLAWLESSCALL from rump_dev_private.h into rump_private.h
so it can be used outside of devices.
This commit is contained in:
parent
7031fa6dfc
commit
9c6bb4c515
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: rump_dev_private.h,v 1.11 2010/03/25 19:54:19 pooka Exp $ */
|
/* $NetBSD: rump_dev_private.h,v 1.12 2010/06/13 16:49:01 pooka Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
|
* Copyright (c) 2009 Antti Kantee. All Rights Reserved.
|
||||||
@ -39,11 +39,4 @@ struct mainbus_attach_args {
|
|||||||
int maa_unit;
|
int maa_unit;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define FLAWLESSCALL(call) \
|
|
||||||
do { \
|
|
||||||
int att_error; \
|
|
||||||
if ((att_error = call) != 0) \
|
|
||||||
panic("\"%s\" failed", #call); \
|
|
||||||
} while (/*CONSTCOND*/0)
|
|
||||||
|
|
||||||
#endif /* _SYS_RUMP_DEV_PRIVATE_H_ */
|
#endif /* _SYS_RUMP_DEV_PRIVATE_H_ */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: rump_private.h,v 1.52 2010/06/12 07:13:54 pooka Exp $ */
|
/* $NetBSD: rump_private.h,v 1.53 2010/06/13 16:49:01 pooka Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
* Copyright (c) 2007 Antti Kantee. All Rights Reserved.
|
||||||
@ -80,6 +80,13 @@ static const struct rump_component rumpcomp = { \
|
|||||||
__link_set_add_rodata(rump_components, rumpcomp); \
|
__link_set_add_rodata(rump_components, rumpcomp); \
|
||||||
static void rumpcompinit(void)
|
static void rumpcompinit(void)
|
||||||
|
|
||||||
|
#define FLAWLESSCALL(call) \
|
||||||
|
do { \
|
||||||
|
int att_error; \
|
||||||
|
if ((att_error = call) != 0) \
|
||||||
|
panic("\"%s\" failed", #call); \
|
||||||
|
} while (/*CONSTCOND*/0)
|
||||||
|
|
||||||
void rump_component_init(enum rump_component_type);
|
void rump_component_init(enum rump_component_type);
|
||||||
int rump_component_count(enum rump_component_type);
|
int rump_component_count(enum rump_component_type);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user