-
Notifications
You must be signed in to change notification settings - Fork 91
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
elfloader: Add generic-timer driver #168
Conversation
b0c2581
to
e60b398
Compare
I wonder, do we want keep the empty |
If possible we want to support platforms without having to add empty files for each one |
e60b398
to
03206bd
Compare
9449166
to
b318dd0
Compare
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.
Overall a good improvement.
I think merging this without also merging seL4/seL4#1047 will break things, so both need to be used together.
e3d0927
to
b70ec4a
Compare
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.
Nice to see so much removed code..
This is to support core-specific driver init handling. Signed-off-by: Kent McLeod <kent@kry10.com>
This driver just sets CNTVOFF_El2 to 0 if possible. This can only be done if the elfloader is in hyp-mode, otherwise nothing happens. Signed-off-by: Kent McLeod <kent@kry10.com>
These calls can now be implemented via binding the /timer driver in the elfloader's device tree configuration (located in the kernel's platform directory). Signed-off-by: Kent McLeod <kent@kry10.com>
RISC-V platforms don't use any extension drivers currently so it's not useful to compile and link them in when not building for arm. Signed-off-by: Kent McLeod <kent@kry10.com>
This was previously added to handle per-core initialization of the generic timer. Now that a generic driver mechanism is used to perform this initialization the old interface is redundant. Signed-off-by: Kent McLeod <kent@kry10.com>
Device initialization returns early if an error is encountered. Handle this error by printing an Error message and aborting the booting process. Signed-off-by: Kent McLeod <kent@kry10.com>
b70ec4a
to
6dae789
Compare
This driver just sets CNTVOFF_El2 to 0 if possible.
This can only be done if the elfloader is in hyp-mode, otherwise nothing
happens.
This allows us to replace most of the platform-specific code in the elfloader.
This originally came up with #73 (comment)