Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
romancardenas committed Dec 31, 2023
1 parent eade038 commit 4dc63f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/riscv-semihosting.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
push:
branches: [ master, semihosting ]
branches: [ master ]
pull_request:
merge_group:

Expand Down
4 changes: 1 addition & 3 deletions riscv-semihosting/src/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use crate::hio::{self, HostStream};
use core::fmt::{self, Write};

static mut HSTDOUT: Option<HostStream> = None;

static mut HSTDERR: Option<HostStream> = None;

#[cfg(not(feature = "u-mode"))]
Expand Down Expand Up @@ -57,6 +56,7 @@ pub use machine::*;
#[cfg(feature = "u-mode")]
mod user {
use super::*;

pub fn hstdout_str(s: &str) {
let _result = unsafe {
if HSTDOUT.is_none() {
Expand All @@ -77,8 +77,6 @@ mod user {
};
}

static mut HSTDERR: Option<HostStream> = None;

pub fn hstderr_str(s: &str) {
let _result = unsafe {
if HSTDERR.is_none() {
Expand Down

0 comments on commit 4dc63f6

Please sign in to comment.