[Bug 267361] EINVAL accessing fpcsr for armv7 process on arm64 kernel

[email protected]
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267361

            Bug ID: 267361
           Summary: EINVAL accessing fpcsr for armv7 process on arm64
                    kernel
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: arm64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: arm
          Assignee: [email protected]
          Reporter: [email protected]

To reproduce: install devel/gdb from ports.  Then type

    gdb /usr/bin/true
    starti
    info registers

Expected output:

(gdb) info registers
r0             0x0                 0
r1             0x0                 0
r2             0x0                 0
r3             0x0                 0
r4             0x0                 0
r5             0x0                 0
r6             0x0                 0
r7             0x0                 0
r8             0x0                 0
r9             0x0                 0
r10            0x0                 0
r11            0x0                 0
r12            0x0                 0
sp             0xbfbfec9c          0xbfbfec9c
lr             0x20054380          537215872
pc             0x20054380          0x20054380 <rtld_start>
cpsr           0x10                16
fpscr          0x2000000           33554432
tpidruro       <unavailable>

Actual output:

(gdb) info registers
r0             0xffffdb58          4294957912
r1             0x0                 0
r2             0x0                 0
r3             0x0                 0
r4             0x0                 0
r5             0x0                 0
r6             0x0                 0
r7             0x0                 0
r8             0x0                 0
r9             0x0                 0
r10            0x0                 0
r11            0x0                 0
r12            0x0                 0
sp             0xffffdb58          0xffffdb58
lr             0x40054380          1074086784
pc             0x40054380          0x40054380 <rtld_start>
cpsr           0x10                16
Couldn't get registers: Invalid argument.

The "expected output" is from an armv7 system.  I have tested in an armv7
FreeBSD 13.1 jail on arm64 FreeBSD 13.1.  The gdb version is 12.1 from ports.

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.