Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
SPEC7
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
SPEC7
Commits
b3866553
Commit
b3866553
authored
Sep 26, 2023
by
Peter Jansweijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Kernel module update to RISC-V address space
parent
aeb57001
Pipeline
#4886
failed with stage
in 2 minutes and 18 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
spec7.h
sw/spec7-tools/Spec7_kernel_module/spec7.h
+3
-2
sysfs.c
sw/spec7-tools/Spec7_kernel_module/sysfs.c
+1
-1
No files found.
sw/spec7-tools/Spec7_kernel_module/spec7.h
View file @
b3866553
...
...
@@ -21,6 +21,7 @@
* Author: Ton Damen <tond@nikhef.nl>
*
* Created on 24 april 2020, 15:19
* 21 september 2023, updated to RISC-V address space
*
*/
...
...
@@ -40,8 +41,8 @@
#define PCI_VENDOR_ID_CERN 0x10dc
#define PCI_VENDOR_ID_XILINX 0x10ee
#define
LM32_MEM_SIZE (128
*1024)
#define SYSCON_REG_ADDR 0x
2
0400
#define
CPU_MEM_SIZE (192
*1024)
#define SYSCON_REG_ADDR 0x
10
0400
#define SPEC7_IOC_MAGIC 0xdc
#define SPEC7_IOCQSIZE _IO(SPEC7_IOC_MAGIC, 1)
...
...
sw/spec7-tools/Spec7_kernel_module/sysfs.c
View file @
b3866553
...
...
@@ -94,7 +94,7 @@ ssize_t lm32_mem_write(struct file *filep, struct kobject *kobj, struct bin_attr
return
size
;
}
static
BIN_ATTR
(
lm32_mem
,
S_IRUSR
|
S_IWUSR
,
lm32_mem_read
,
lm32_mem_write
,
LM32
_MEM_SIZE
);
static
BIN_ATTR
(
lm32_mem
,
S_IRUSR
|
S_IWUSR
,
lm32_mem_read
,
lm32_mem_write
,
CPU
_MEM_SIZE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment