Skip to content

Conversation

@stlankes
Copy link

  • this version of eduOS runs on hermit-caves
  • please use the branch eduos

=> because it is currently not part of nightly compiler
@@ -1,6 +1,5 @@
use core::fmt;
use spin::Mutex;
use aarch64::io::*;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not using aarch64 crate here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For what?

// init 1G stack stack in RAM area (>0x40000000 for qemu virt device)
movz x1, 0x5000, lsl 16
//movz x1, 0x5000, lsl 16
ldr x1, =(boot_stack+0x2000-0x10)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great, if you could explain this line in a comment above


// init 1G stack stack in RAM area (>0x40000000 for qemu virt device)
movz x1, 0x5000, lsl 16
//movz x1, 0x5000, lsl 16
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a friend of leaving unused code in the file, would suggest to remove it. For viewing the diff to the qemu-version, I will create a qemu-branch, so one could simply do git diff.

Suggested change
//movz x1, 0x5000, lsl 16

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, removing is the better option


/// Our primary serial port.
pub static COM1: Mutex<ComPort> = Mutex::new(ComPort::new(0x09000000));
pub static mut COM1: ComPort = ComPort::new(0x800 /*0x09000000*/);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub static mut COM1: ComPort = ComPort::new(0x800 /*0x09000000*/);
pub static mut COM1: ComPort = ComPort::new(0x800);

#![no_std]

extern crate spin;
//extern crate spin;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//extern crate spin;


[dependencies]
spin = "0.4.9" # Spinlocks.
#spin = "0.4.9" # Spinlocks.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
#spin = "0.4.9" # Spinlocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants