Commit b3866553 authored by Peter Jansweijer's avatar Peter Jansweijer

Kernel module update to RISC-V address space

parent aeb57001
Pipeline #4886 failed with stage
in 2 minutes and 18 seconds
......@@ -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 0x20400
#define CPU_MEM_SIZE (192*1024)
#define SYSCON_REG_ADDR 0x100400
#define SPEC7_IOC_MAGIC 0xdc
#define SPEC7_IOCQSIZE _IO(SPEC7_IOC_MAGIC, 1)
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment