mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
Correct SPL uses of XEN_SERIAL
This converts 4 usages of this option to the non-SPL form, since there is no SPL_XEN_SERIAL defined in Kconfig Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a6c38a280c
commit
2413fe67db
@ -23,9 +23,9 @@
|
|||||||
#include <xen/events.h>
|
#include <xen/events.h>
|
||||||
#include <xen/hvm.h>
|
#include <xen/hvm.h>
|
||||||
|
|
||||||
#if CONFIG_IS_ENABLED(XEN_SERIAL)
|
#if IS_ENABLED(CONFIG_XEN_SERIAL)
|
||||||
extern u32 console_evtchn;
|
extern u32 console_evtchn;
|
||||||
#endif /* CONFIG_IS_ENABLED(XEN_SERIAL) */
|
#endif /* IS_ENABLED(CONFIG_XEN_SERIAL) */
|
||||||
|
|
||||||
#define NR_EVS 1024
|
#define NR_EVS 1024
|
||||||
|
|
||||||
@ -53,10 +53,10 @@ void unbind_all_ports(void)
|
|||||||
struct vcpu_info *vcpu_info = &s->vcpu_info[cpu];
|
struct vcpu_info *vcpu_info = &s->vcpu_info[cpu];
|
||||||
|
|
||||||
for (i = 0; i < NR_EVS; i++) {
|
for (i = 0; i < NR_EVS; i++) {
|
||||||
#if CONFIG_IS_ENABLED(XEN_SERIAL)
|
#if IS_ENABLED(CONFIG_XEN_SERIAL)
|
||||||
if (i == console_evtchn)
|
if (i == console_evtchn)
|
||||||
continue;
|
continue;
|
||||||
#endif /* CONFIG_IS_ENABLED(XEN_SERIAL) */
|
#endif /* IS_ENABLED(CONFIG_XEN_SERIAL) */
|
||||||
|
|
||||||
if (test_and_clear_bit(i, bound_ports)) {
|
if (test_and_clear_bit(i, bound_ports)) {
|
||||||
printf("port %d still bound!\n", i);
|
printf("port %d still bound!\n", i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user