openrisc / or1k-src Goto Github PK
View Code? Open in Web Editor NEWThis project forked from skristiansson/or1k-src
OpenRISC 1000 port for sourceware.org's src tree (binutils, gdb, newlib, etc.)
License: GNU General Public License v2.0
This project forked from skristiansson/or1k-src
OpenRISC 1000 port for sourceware.org's src tree (binutils, gdb, newlib, etc.)
License: GNU General Public License v2.0
On line 6142, column 31, gcc throws an error complaining about the '!=' comparison in the expression
'&& !op.bitfield.reg64 != 1`
I changed it to '&& ((!op.bitfield.reg64) != 1)' which then make can continue compiling without errors.
hi,
When I try to use timer related function in or1k-support.h, there are few lines demo which I paste below:
void tick_handler(void) {
// Make schedule decision
// and set new thread
or1k_timer_reset();
// End of exception, new thread will run
}
int main() {
// Configure operating system and start threads..
// Configure timer
or1k_timer_init(50);
or1k_timer_set_handler(&tick_handler);
or1k_timer_set_mode(SPR_TTMR_SR);
or1k_timer_enable();
// Schedule first thread and die..
}
But I can not find define of SPR_TTMR_SR used by or1k_timer_set_mode function.
or1k_timer_set_mode(SPR_TTMR_SR);
I tried to get SPR_TTMR_SR define from a file called spr-defs.h in mor1k-env-dev github
#define SPR_TTMR_SR 0x80000000 /Signle Run/
#define SPR_TTMR_CR 0xC0000000 /Continuous Run/
But it does not work at all.
So where I can get the right define of SPR_TTMR_SR used by or1k-support.h?
Thanks.
I found this error two months ago but I couldn't open an issue at that time so I wrote it on opencores.org under the nickname meitoku.
Source: http://opencores.org/forum,OpenRISC,0,5489
"Some programs that use timer works well with toochain versions before April 2014 now behave erratically.
Example: timer.c in https://github.com/juliusbaxter/orconf2013/blob/master/sw/timer/timer.c. It is a led counter, but now with the latest or1k-gcc commit (at that time is 62a1a271e5fecc9fecdfc0961f76fdfddf43d6a7), the timer didn't work, first one led turned on, then all the led flashed immediately. When I switched to commit d2093f8f4d182be22b24b459badd9f555859cc6f of or1k-gcc and commit 7d53ef07ae838a707e2ca8a467e51cd1174cf388 of or1k-src, I got no such problem."
@wallento told me that this error was caused by a modification in or1k-src.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.