Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
104 views

Short background: MMIO regions are typically mapped as uncachable / device memory, so CPU must not treat device registers like normal cacheable DRAM. I’m asking about the microarchitecture routing and ...
SungwookKang's user avatar
1 vote
1 answer
134 views

Suppose we have a pointer p, of type volatile int*. Assume that this is a currently valid pointer, i.e., reading from *p performs an implementation-defined operation, and is not UB. What can happen if ...
Brian Bi's user avatar
  • 123k
0 votes
0 answers
129 views

I am searching for the unit size of the MMIO request when sending to the PCIe device BAR region from CPU. I used this code. In the below code, you can see that the MMIO accessing code between the &...
horse-master's user avatar
0 votes
0 answers
123 views

I have a RISC-V softcore based SoC (PICO-SoC) and I have implemented memory (32'h 00000090) mapped output port to send a set of values. The set up is running on PYNQ FPGA board. The softcore provides ...
karthik's user avatar
  • 29
2 votes
0 answers
1k views

In linux kernel. I get a reg [phy_addr], and do ioremap(), get [vir_addr], when i want to get val of this reg, What's the difference between readl() and *? u32 value; phys_addr_t phy_addr = ...
xiangyuhaoaizcm's user avatar
1 vote
0 answers
48 views

I am seeking assistance from the community to verify the correctness of a MIPS assembly code that I have written to translate a C code involving memory-mapped I/O operations. The C code includes the ...
cricket900's user avatar
0 votes
0 answers
59 views

I was working on a vuejs project when all of a sudden some files become immutable. In the browser, they appear with a double marked (mapped). I don't know what it is . So, what I can do to revert this ...
Meaulnes's user avatar
  • 553
2 votes
0 answers
39 views

Why we can map block device files to memory but not character files? I know block devices can be mapped to memory, but character devices can't. Why is it like that? I have no idea. Maybe someone can ...
Juan Hortez's user avatar
0 votes
0 answers
54 views

I am trying to create memory-mapped IO files for having sized ( 1-100 GB ) files. These files will contain random data that will be generated during the process. So, I am trying to generate partitions ...
Usman's user avatar
  • 2,900
3 votes
0 answers
252 views

I am working with a piece of harware, that addresses LEDs through GPIOs accessible only through memory-mapped IO (mmio registers). On Linux, I managed to set the values pretty simple, by opening the ...
Mathias Haimerl's user avatar
0 votes
0 answers
764 views

I'm browsing through LDD3 and I have difficulty understanding a chapter about mmap(). Here is a code snipped from the book: static int simple_remap_mmap(struct file *file, struct vm_area_struct *vma) {...
bielu000's user avatar
  • 2,261
0 votes
0 answers
661 views

I'm trying to configure a GPIO pin on an SoC running Linux (Jetson Orin Nano), but there's no API provided to set things like pull resistors, so we have to look up the physical addresses of the ...
Timothy Miller's user avatar
2 votes
1 answer
4k views

I am working on an embedded Linux system (kernel v5.10.24). And I want to access registers in the SoC which are MMIO based. So I worked a test module to access them, as follows, #include <linux/...
wangt13's user avatar
  • 1,307
2 votes
0 answers
493 views

I'm seeing poor memory (WC) read performance with the vmovntdqa non-temporal load instruction on Intel Xeon E-2224 systems, but excellent performance on AMD EPYC 3151 systems. Why such a huge ...
Jaakko Salo's user avatar
1 vote
0 answers
616 views

I have a similar issue mentioned here but with a different behavior. We have an FPGA (from Altera) acts as a 32KB memory on a PCIe bus of IMX8M-Plus CPU (ARM Cortex-A53). I wrote a simple driver to ...
Mehmet Fide's user avatar
  • 1,794
0 votes
1 answer
164 views

Context: I am following a Embedded Systems course that uses the TM4C321GHP6M microcontroller. The IDE being used is the uvision ide by keil. The purpose of the program I am running is to turn on an on-...
Eric Kemmer's user avatar
3 votes
1 answer
796 views

To configure UART tx, water mark (0 to 7) has to be written on memory mapped tx control register on bit position [18:16]. My RISC-V assembly function first reads the present control register value, ...
RRON's user avatar
  • 1,135
1 vote
1 answer
123 views

i made a polling sequence and when i first open the program (on QtSpim) it polls perfectly, when i reinitialize and reload the program a second time it just falls through and doesnt poll at all and ...
soplador510's user avatar
0 votes
1 answer
1k views

having trouble warpping my head around this topic, simple internet searches only show Interrupt Handling so im assuming its a type of interrupt? sorry if im being dense.
yessir's user avatar
  • 1
0 votes
1 answer
523 views

This one is going to be short. I have a question regarding manipulations on device registers. As maybe you guys know, device registers addresses are determined by hardware so in order to write code ...
Žarko Tomičić's user avatar
4 votes
1 answer
1k views

Background As sketched up here https://godbolt.org/z/xaf95qWee (mostly same as code below), I am consuming a library that offers a shared memory ressource in form of a memory-mapped file. For ...
S. Jung's user avatar
  • 108
2 votes
2 answers
2k views

For low-level programming, sometimes it's necessary to say, at a given memory location, this is where my address is. For this post, the example is the PIR1 register in the PIC16F886 and related ...
Omar and Lorraine's user avatar
0 votes
0 answers
88 views

I'm wanting to use memory-mapped IO to establish communications between two applications of mine (primarily to avoid the problem of sockets tending to leak to other computers on the network). However, ...
MusicMan's user avatar
  • 134
1 vote
2 answers
288 views

I am developing a driver for a piece of memory mapped hardware using C++ and I defined a class that represents this device. It looks something like this: class device { method1(); method2(); private: ...
effendi's user avatar
  • 113
1 vote
2 answers
2k views

Well I have some confusions about memory mapped io and port based io. Questions are:- In port based io if I write to a port will it affect the corresponding memory address or not and vise versa. Does ...
Aryan Kumar's user avatar
2 votes
3 answers
228 views

I want to use constexpr instead of #defines wherever possible, for type safety and namespace features. Unfortunately, I get this error: 'reinterpret_cast<SPI_TypeDef*>(1073756160)' is not a ...
Cameron Tacklind's user avatar
0 votes
1 answer
172 views

I have a project where we manipulate large amounts of cached data using memory mapped files. We use Windows 10, NTFS and .NET. When the user starts the application, we detect if the previous program ...
avl_sweden's user avatar
0 votes
0 answers
223 views

I have been reading this chipset datasheet for a while, looking for the BIOS I/O address range, but I haven't found it. Where can I find the BIOS address range? Is it on this datashhet or should I ...
Antonio Sanchez's user avatar
0 votes
0 answers
785 views

I recently learned from a YouTube video that we can read from or write to files by mapping them into memory. The video showed how read some contents from a text file and print them out and also change ...
user avatar
1 vote
2 answers
2k views

I have intel system with Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) (rev 04). I have downloaded the datasheet like datasheet for Intel ® 82579 Gigabit ...
user786's user avatar
  • 4,440
0 votes
0 answers
2k views

Im trying to write memory to a user mode process with kernel driver, the current address im trying to write memory for is read only, I want to write 4 bytes to the current address, the thing is if i ...
J.Steve's user avatar
  • 17
0 votes
1 answer
2k views

so I will explain what im trying to do and i wanna understand why its not working for me, I found an Address from CE : which is: 0x04013118 with value an array of bytes: DC 04 00 00 04 02 00 00 What ...
J.Steve's user avatar
  • 17
1 vote
1 answer
2k views

In RISCV privileged spec page 75 mention a term "non-idempotent memory-mapped I/O". What is non-idempotent memory-mapped I/O? Is it about non side effect?What is design concern about non-idempotent ...
tommycc's user avatar
  • 125
0 votes
0 answers
1k views

I am trying to display a single character in Mars MIPS (then eventually an entire string, but I am working on a single character for now). .data .text main: jal emitchar jal LOOP jal ...
ArchaicMind87's user avatar
5 votes
3 answers
727 views

In embedded systems and systems programming, the term register is used to refer to a CPU register inside the micro-controller, e.g. R1, R2, PC in ARM micro-controllers, and certain 'special' locations ...
bytefire's user avatar
  • 4,470