[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 25/28] ddb/db_mp.c: definition of db_console() only if CONSOLE_ON
From: |
Marin Ramesa |
Subject: |
[PATCH 25/28] ddb/db_mp.c: definition of db_console() only if CONSOLE_ON_MASTER |
Date: |
Sun, 8 Dec 2013 12:40:27 +0100 |
Function db_console() is called only if CONSOLE_ON_MASTER.
If it stays this way, db_console() will not compile. I don't know
if it should be removed. Maybe someone will rewrite it.
* ddb/db_mp.c (db_console): Definition only if CONSOLE_ON_MASTER.
* ddb/db_mp.h [CONSOLE_ON_MASTER] (db_console): Add prototype.
---
ddb/db_mp.c | 4 ++--
ddb/db_mp.h | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ddb/db_mp.c b/ddb/db_mp.c
index 1b1277e..a764d59 100644
--- a/ddb/db_mp.c
+++ b/ddb/db_mp.c
@@ -303,7 +303,7 @@ unlock_db()
simple_unlock(&db_lock);
}
-#ifdef sketch
+#if CONSOLE_ON_MASTER
void
db_console()
{
@@ -326,7 +326,7 @@ db_console()
db_cpu = my_cpu;
}
}
-#endif /* sketch */
+#endif /* CONSOLE_ON_MASTER */
#endif /* NCPUS > 1 */
diff --git a/ddb/db_mp.h b/ddb/db_mp.h
index a163d99..722f28c 100644
--- a/ddb/db_mp.h
+++ b/ddb/db_mp.h
@@ -23,4 +23,8 @@ void remote_db(void);
void lock_db(void);
void unlock_db(void);
+#if CONSOLE_ON_MASTER
+void db_console(void);
+#endif /* CONSOLE_ON_MASTER */
+
#endif /* _DDB_DB_MP_H_ */
--
1.8.1.4
- [PATCH 18/28] ddb/db_command.c (db_command_list): remove forward declaration, (continued)
- [PATCH 18/28] ddb/db_command.c (db_command_list): remove forward declaration, Marin Ramesa, 2013/12/08
- [PATCH 19/28] ddb/db_examine.c (db_examine_cmd): remove forward declaration, Marin Ramesa, 2013/12/08
- [PATCH 20/28] ddb/db_examine.c: trivial stylistic fix for consistency, Marin Ramesa, 2013/12/08
- [PATCH 21/28] ddb/db_expr.c (db_mult_expr): remove unnecessary variable, Marin Ramesa, 2013/12/08
- [PATCH 22/28] ddb/db_expr.c (db_add_expr): remove unnecessary variable, Marin Ramesa, 2013/12/08
- [PATCH 23/28] ddb/db_mp.c: use boolean instead of an int, Marin Ramesa, 2013/12/08
- [PATCH 24/28] ddb/db_mp.c (remote_db): comment the call to cpu_interrupt_to_db(), Marin Ramesa, 2013/12/08
- [PATCH 25/28] ddb/db_mp.c: definition of db_console() only if CONSOLE_ON_MASTER,
Marin Ramesa <=
- [PATCH 26/28] ddb/db_print.c: use unsigned long instead of an unsigned int, Marin Ramesa, 2013/12/08
- [PATCH 27/28] Use db_addr_t instead of db_expr_t, Marin Ramesa, 2013/12/08
- [PATCH 28/28] ddb/db_trap.c (db_task_trap): remove forward declarations, Marin Ramesa, 2013/12/08
- Re: [PATCH 01/28] chips/busses.h: use boolean instead of a char, Samuel Thibault, 2013/12/08