Giter Club home page Giter Club logo

r9's People

Contributors

dancrossnyc avatar erde74 avatar gmacd avatar hdonnay avatar jdrouet avatar mraerino avatar orangecms avatar requaos avatar sevki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

r9's Issues

cargo build fails

running on macOS

git clone r9
cd r9
cargo build
warning: field `name` is never read
  --> port/src/mcslock.rs:33:5
   |
32 | pub struct MCSLock {
   |            ------- field in this struct
33 |     name: &'static str,
   |     ^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: `port` (lib) generated 1 warning
   Compiling x86_64 v0.1.0 (/Users/sevki/src/r9/x86_64)
error: the `att_syntax` option is only supported on x86
 --> x86_64/src/pio.rs:5:9
  |
5 |         asm!("outb %al, %dx", in("dx") port, in("al") b, options(att_syntax));
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: invalid register `dx`: unknown register
 --> x86_64/src/pio.rs:5:31
  |
5 |         asm!("outb %al, %dx", in("dx") port, in("al") b, options(att_syntax));
  |                               ^^^^^^^^^^^^^

error: invalid register `al`: unknown register
 --> x86_64/src/pio.rs:5:46
  |
5 |         asm!("outb %al, %dx", in("dx") port, in("al") b, options(att_syntax));
  |                                              ^^^^^^^^^^

error: the `att_syntax` option is only supported on x86
  --> x86_64/src/pio.rs:11:9
   |
11 |         asm!("outw %ax, %dx", in("dx") port, in("ax") w, options(att_syntax));
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: invalid register `dx`: unknown register
  --> x86_64/src/pio.rs:11:31
   |
11 |         asm!("outw %ax, %dx", in("dx") port, in("ax") w, options(att_syntax));
   |                               ^^^^^^^^^^^^^

error: invalid register `ax`: unknown register
  --> x86_64/src/pio.rs:11:46
   |
11 |         asm!("outw %ax, %dx", in("dx") port, in("ax") w, options(att_syntax));
   |                                              ^^^^^^^^^^

error: the `att_syntax` option is only supported on x86
  --> x86_64/src/pio.rs:17:9
   |
17 |         asm!("outl %eax, %dx", in("dx") port, in("ax") l, options(att_syntax));
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: invalid register `dx`: unknown register
  --> x86_64/src/pio.rs:17:32
   |
17 |         asm!("outl %eax, %dx", in("dx") port, in("ax") l, options(att_syntax));
   |                                ^^^^^^^^^^^^^

error: invalid register `ax`: unknown register
  --> x86_64/src/pio.rs:17:47
   |
17 |         asm!("outl %eax, %dx", in("dx") port, in("ax") l, options(att_syntax));
   |                                               ^^^^^^^^^^

error: the `att_syntax` option is only supported on x86
  --> x86_64/src/main.rs:12:1
   |
12 | core::arch::global_asm!(include_str!("l.S"), options(att_syntax));
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `core::arch::global_asm` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `x86_64` due to 10 previous errors

I am on an m1 Mac mini, sooooo could there be an implied x86 cli arg/flag that is derived by the host architecture?

Set up MMU in l.S

Aarch64 needs the MMU to be set up before being able to use atomics. Once this is done, we can remove the early console code added in #17 (but keeping the miniuart).

real hardware

I have a visionfive2 board to experiment with. How best can I help test on this real hardware?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.