mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
kernel: disable more debug prints
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
05d1cf71dc
commit
964b6e0f46
4 changed files with 15 additions and 15 deletions
|
|
@ -146,7 +146,7 @@ pub extern "C" fn kmain() {
|
|||
xous::rsyscall(xous::SysCall::SwitchTo(pid, 0)).expect("couldn't switch to pid");
|
||||
}
|
||||
None => {
|
||||
println!("No runnable tasks found. Entering idle state...");
|
||||
// println!("No runnable tasks found. Entering idle state...");
|
||||
// Special case for testing: idle can return `false` to indicate exit
|
||||
if ! arch::idle() {
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -290,10 +290,10 @@ impl Server {
|
|||
/// * **None**: There are no waiting messages
|
||||
/// ***Some(MessageEnvelope): This message is queued.
|
||||
pub fn take_next_message(&mut self, server_idx: usize) -> Option<xous::MessageEnvelope> {
|
||||
println!(
|
||||
"queue_head: ((({}))) queue_tail: ((({}))): {:?}",
|
||||
self.queue_head, self.queue_tail, self.queue[self.queue_tail]
|
||||
);
|
||||
// println!(
|
||||
// "queue_head: ((({}))) queue_tail: ((({}))): {:?}",
|
||||
// self.queue_head, self.queue_tail, self.queue[self.queue_tail]
|
||||
// );
|
||||
let result = match self.queue[self.queue_tail] {
|
||||
QueuedMessage::Empty => return None,
|
||||
QueuedMessage::WaitingResponse(_, _, _, _) => return None,
|
||||
|
|
@ -596,7 +596,7 @@ impl Server {
|
|||
|
||||
/// Add the given context to the list of ready and waiting contexts.
|
||||
pub fn park_context(&mut self, context: CtxID) {
|
||||
println!("Parking context: {}", context);
|
||||
// println!("Parking context: {}", context);
|
||||
self.ready_contexts |= 1 << context;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -209,10 +209,10 @@ pub fn handle(pid: PID, call: SysCall) -> core::result::Result<xous::Result, xou
|
|||
// process and mark ourselves as awaiting an event. When a message
|
||||
// arrives, our return value will already be set to the
|
||||
// MessageEnvelope of the incoming message.
|
||||
println!(
|
||||
"PID {} did not have any waiting messages -- parking context {}",
|
||||
pid, context_nr
|
||||
);
|
||||
// println!(
|
||||
// "PID {} did not have any waiting messages -- parking context {}",
|
||||
// pid, context_nr
|
||||
// );
|
||||
server.park_context(context_nr);
|
||||
|
||||
// For baremetal targets, switch away from this process.
|
||||
|
|
@ -408,10 +408,10 @@ pub fn handle(pid: PID, call: SysCall) -> core::result::Result<xous::Result, xou
|
|||
.expect("server couldn't be located")
|
||||
.take_available_context()
|
||||
{
|
||||
println!(
|
||||
"There are contexts available to handle this message. Marking PID {} as Ready",
|
||||
server_pid
|
||||
);
|
||||
// println!(
|
||||
// "There are contexts available to handle this message. Marking PID {} as Ready",
|
||||
// server_pid
|
||||
// );
|
||||
let sender = match message {
|
||||
Message::Scalar(_) | Message::Move(_) => 0,
|
||||
Message::Borrow(_) | Message::MutableBorrow(_) => ss
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ pub fn _xous_syscall(
|
|||
XOUS_SERVER_CONNECTION.with(|xsc| {
|
||||
if xsc.borrow().is_none() {
|
||||
NETWORK_CONNECT_ADDRESS.with(|nca| {
|
||||
println!("Opening connection to Xous server @ {}...", nca.borrow());
|
||||
// println!("Opening connection to Xous server @ {}...", nca.borrow());
|
||||
let conn = TcpStream::connect(*nca.borrow()).unwrap();
|
||||
*xsc.borrow_mut() = Some(conn);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue