-
Notifications
You must be signed in to change notification settings - Fork 1
add aarch64 support #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: stage0-aarch64
Are you sure you want to change the base?
Conversation
=> because it is currently not part of nightly compiler
| @@ -1,6 +1,5 @@ | |||
| use core::fmt; | |||
| use spin::Mutex; | |||
| use aarch64::io::*; | |||
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
| //movz x1, 0x5000, lsl 16 |
There was a problem hiding this comment.
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*/); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| //extern crate spin; |
|
|
||
| [dependencies] | ||
| spin = "0.4.9" # Spinlocks. | ||
| #spin = "0.4.9" # Spinlocks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| #spin = "0.4.9" # Spinlocks. |
eduos