Go to advanced search

by Arikania
Mon Dec 24, 2018 11:39 am
Forum: Bare metal, Assembly language
Topic: __eabi div operations
Replies: 16
Views: 12461

Re: __eabi div operations / extra divs coming up

@Arjan The routine that I listed here above is intended as a standard routine that I can include in any project where I need it. Not every project allows divisions to be circumvented. I intend to post a div , uldiv and ldiv function soon by the way. @SKyd3R The undefined reference to messages imply...
by Arikania
Tue Dec 18, 2018 5:02 pm
Forum: Bare metal, Assembly language
Topic: Unable to read directory content properly
Replies: 5
Views: 907

Re: Unable to read directory content properly

Your explanation is very insightful :D It seems that I didn't understand the use of the third argument well. So, if I understand well, these assumptions should each be true: 1. The 3rd argument of sys_getdents is indeed the buffer size, expressed in bytes, 2. sys_getdents reads directory entries not...
by Arikania
Tue Dec 18, 2018 12:23 pm
Forum: Bare metal, Assembly language
Topic: Unable to read directory content properly
Replies: 5
Views: 907

Re: Unable to read directory content properly

I am aware indeed that this is about Linux, and not quite bare-metal. However, this seems the thread that is visited by assembly programmers. Functions close_all and utostr10 are indeed self-made functions. I modified the post now, obsoleting close_all and listing utostr10 . It uses function udiv , ...
by Arikania
Sun Dec 16, 2018 1:02 pm
Forum: Bare metal, Assembly language
Topic: STICKY: Bare Metal resources
Replies: 25
Views: 97846

Divisions on 32-bit ARM that has no DIV instructions

This routine divides unsigned integers, and returns both the whole part and the remainder. I believe this to be the fastest routine possible on such processors. The details are in this post . .text .balign 4 .type udiv, %function .thumb_func udiv: # r0 the enumerator # r1 the denominator @ at return...
by Arikania
Sun Dec 16, 2018 12:34 pm
Forum: Bare metal, Assembly language
Topic: __eabi div operations
Replies: 16
Views: 12461

32-bit divisions on ARMv7-A

I use a 32-bit processor that has no built-in DIV instruction (unlike the ARMv7-R), so I designed this routine for it. It divides unsigned integers, and returns both the whole part and the remainder. In each iteration, it finds one bit of the whole part, so the number of iterations equals the number...
by Arikania
Sun Dec 16, 2018 12:24 pm
Forum: Bare metal, Assembly language
Topic: Unable to read directory content properly
Replies: 5
Views: 907

Unable to read directory content properly

I am trying to read the content of a directory on my ARMv7-A (a 32-bitter). Using function sys_dentdents (function 141) works a single time, but a subsequent call evokes a Segmentation Fault. I also tried function sys_old_readdir (function 89), but it returns ENOSYS, meaning that the function is not...
by Arikania
Sat Dec 08, 2018 6:06 pm
Forum: Troubleshooting
Topic: Unable to mount ext4 usb hdd via fstab as read-write
Replies: 0
Views: 113

Unable to mount ext4 usb hdd via fstab as read-write

I have a Pi B 3+ with Raspbian Stretch on it, and a 3 TB USB hard disk connected to it. On Jessie Lite, I can mount the drive in rw mode with no problems. But whatever I do, even using the very copies from Jessie's /etc/fstab records, I am unable to get the hard disk mounted in read-write mode on th...
by Arikania
Tue Sep 11, 2018 6:58 am
Forum: Debian
Topic: NFS Server. (obsolete info)
Replies: 5
Views: 5540

Re: NFS Server.

I'm trying for days now to get nfs working, but I keep getting told that nfs-kernel-server exited with code 11. I would love to know where I can find either a Jessie Lite image with nfs support or a good how-to. I should add perhaps that return code 11 is quite unusual. After two days of browsing se...

Go to advanced search