- Feb 24, 2017
-
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Feb 23, 2017
-
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
When any of exported structures is changed please update WRPC_SHMEM_VERSION or WRS_PPSI_SHMEM_VERSION (for PPSI) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Export stats structure to be read by wrpc-dump Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Apr 04, 2016
-
-
Alessandro Rubini authored
This allows a node built with CONFIG_VLAN to choose at run-time whether vlans are allowed or not. We build both pfilter rule-sets, and according to the active vlan number we write one or the other. The case "CONFIG_VLAN is not set" is handled by providing default NULL pointers for beginning and end of the vlan rule-set. As a side effect, I renamed the files and the functions in the pfilter-builder. This is how it works for me, with CONFIG_PFILTER_VERBOSE set, so you see different rule-set are used (29 rules vs. 16 rules): wrc# vlan set 0 0 ("0") out of range Command "vlan": error -22 wrc# vlan off fixing MAC adress in rule: use 22:33:44:55:66:77 pfilter rule 00: 4.00000000 pfilter rule 01: 1.e4466013 [...] pfilter rule 28: 8.00000000 current vlan: 0 (0x0) wrc# ip set 10.0.0.2 IP-address: 10.0.0.2 (static assignment) (and I am now reachable by untagged frames) wrc# vlan set 10 ...
-
- Jan 20, 2016
-
-
Alessandro Rubini authored
This counter can be read through etherbone, to check that the software is properly running. Feature asked by GSI. The cost is 84 bytes in code. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
If the Kconfig option is not set, there's no effect on code size. If set, .bss increases by 256 bytes (the buffer) and .text by another 200 bytes. This adds timestamping support, so we know the duration of the interrupt (because we found it's an important thing when problems occur). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
There was a hole at the beginning of the generated binary, so this commit includes some data to identify the endianness of the dump file and host pointers to the important structures that we dump. For wr-switch, the ppi pointer is just set to zero. The change is backward compatible, because we just fill 32 bytes of data where we had a bunch of zeroes. The next commit will use such information when available in the dump file. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> SQUASH Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Oct 27, 2015
-
-
Alessandro Rubini authored
We have not been using mprintf for ages now, and it's better for the code to explicitly call pp_printf, so people is aware of it. We might "#define printf pp_printf", but currently we'd better not. Maybe when we turn this into a real operating system, next millennium... Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Jul 26, 2015
-
-
Alessandro Rubini authored
I added -Wstrict-prototypes, that used to be included in -Wall settings but is not. Actually, I think it should be an error to not specify an argument list by now. If any, -traditional is there for old timers. Fortunately no bug was exposed by the missing prototypes. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Jun 30, 2015
-
-
Add checking stack overflow and detecting reset to wrs. Code common for wrpc and wrs is placed in system_checks.c and .h. Work is based on following commits in wrc_main.c: 1704a668 main: check for stack overflow 7836c39e Optionally detect reset and print a stack trace Additionally: --update Kconfig to have a possibility to select CHECK_RESET also for switch, not only for node as before --and _endram to ram-wrs.ld When "stack overflow" occurs then message is printed once every second. When reset occours then LM32 will print stack trace and reset once more. NOTE: I couldn't get spll to work after reset, for sure problem is in ad9516 init function, but not only there. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
--increase spll_stats structure version to 2 --add to spll_stats structure: - commit_id - build_date - build_time - start_cnt (to be used later for start counter) --move declaration of spll_stats structure from wrs_main.c to revision.c --pass git version and author at compile time to revision.c --create revision.h with build_* externs --update version reporting at cpu start --update version command --include section .stats in section .data for node Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Nov 18, 2014
-
-
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com> Conflicts: arch/lm32/ram-wrs.ld
-
Grzegorz Daniluk authored
-
The global pointer is used by some special assembly instructions that we are not using (i.e., the compiler is not generating them for us, because we don't use PIC or other "strange" stuff. So, we'd better remove an assignement in the linker script that makes little sense (it must be a typo of some kind, in the dark ages of this code base). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Oct 08, 2014
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Feb 11, 2014
-
-
Alessandro Rubini authored
The commit is part of the effort in unifying softpll with wr-switch-sw, and later remove the duplicated code there. The files added by these commit are going to be built when configuring wrpc-sw to build wr-switch rt_cpu (which is, basically, the softpll code alone, with mini-rpc with the host and the basic glue code). The files are copied with the original name with two exceptions: wr-switch-sw::rt/main.c becomes wrpc-sw::wrs_main.c wr-switch-sw::rt/arch/lm32/ram.ld becomes wrpc-sw::arch/lm32/ram-wrs.ld The files are copied from commit FIXME of wr-switch-sw. This commit has no technical effect, as the files are not built for wrpc-sw. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Nov 21, 2012
-
-
Alessandro Rubini authored
We are always pretty near to the end of RAM, so now that we have a reserved stack area, we can also check if it overlows. When it happens, let's print a message forever, so a user who comes and see what's up will see it eventually. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
This renames ram.ld to ram.ld.S, adding a preprocessing rule. The commit has no techcnical effect: it is only preparation for the next one. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Nov 01, 2012
-
-
Alessandro Rubini authored
This adds copyright notes to all non-trivial source files, unless they where already there (i.e. dev/endpoint.c alone). I found authorship using the following script, run on commit "a2721762 documentation updated" (i.e, before automatic reindentation and other trivial stuff by me): git grep -l . | grep -v sockitowm/ | \ while read F; do echo "##### $F" git blame -w $F | \ sed -e 's/^[^ ]* .//' -e 's/-[0-9][0-9]-[0-9][0-9] .*$//' | \ sort | uniq -c | sort -rn done Then I augmented each file with this boilerplate: /* * This work is part of the White Rabbit project * * Copyright (C) 2011 CERN (www.cern.ch) * Copyright (C) 2011,2012 CERN (www.cern.ch) * Copyright (C) 2012 CERN (www.cern.ch) * Copyright (C) 2011 GSI (www.gsi.de) * Copyright (C) 2011,2012 GSI (www.gsi.de) * Copyright (C) 2012 GSI (www.gsi.de) * Author: Tomasz Wlostowski <tomasz.wlostowski@cern.ch> * Author: Grzegorz Daniluk <grzegorz.daniluk@cern.ch> * Author: Wesley W. Terpstra <w.terpstra@gsi.de> * * Released according to the GNU GPL, version 2 or any later version. */ Then I removed all the lines that didn't apply. Sometimes I reordered the authors to reflect who is the main author. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
When we'll enable pp_printf, we'll need to resolve mprintf to it. Local files are fixed by #define in wrc.h, but ptp-noposix has explicit mprintf calls inside. By using "PROVIDE" in the linker script, we resolve mprintf to pp_printf only if no native mprintf is part of the link stage. This has no effect if pp_printf is not selected. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Remove all unneeded stuff from the linker script. Now the script only includes what is actually used: it is easier to understand and change (we'll add some local ELF sections), and it makes a better reference for possible porting to a different architecture. This commit also moves the default libraries from the linker script itself to the LDFLAGS in Makefile, where they really belong. CONFIG_DETERMINISTIC_BINARY confirms this makes no difference in the generated binary (nor the ELF FWIW). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Instead of picking libraries from the linker script, common practice is listing them in LDFLAGS. This simplifies review and modification. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
- Oct 05, 2012
-
-
Alessandro Rubini authored
This is massive: 4k lines changed (but only 840 if you ignore space-only changes). In this case "git blame -w" won't always find the right patch, and it may fall on this patch -- because those 800 lines changed in content too. This has been done with find . -name '*.[ch]' | xargs -n 1 ./scripts/Lindent Statistics: all changes and ignoring blank space: morgana% git diff --stat HEAD~1 | tail -1 77 files changed, 3774 insertions(+), 3709 deletions(-) morgana% git diff -w --stat HEAD~1 | tail -1 61 files changed, 894 insertions(+), 829 deletions(-) However, after this step I hand-fixed some very ugly long expressions (leaving them long: no content change at all is there). Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
If you find this patch with "git blame" please use "git blame -w" to have all white-space ignored while associating lines to commits. This commit has no practical effect but cleanup. I made it with sed like this: git grep -l '[ \t]$' | xargs sed -i 's/[ \t]*$//' However, I had to manually restore doc/wrpc_mon.png after the fact. Similarly, I restored the include/hw/*regs.h files, as they are (most likely) auto-generated.
-
- Jul 10, 2012
-
-
Wesley W. Terpstra authored
-
- Jun 13, 2012
-
-
Tomasz Wlostowski authored
-