git: e98efdd97356 - main - Implement suword16() for the 32/64-bit PowerPC architecture.

From: Hans Petter Selasky <hselasky_at_FreeBSD.org>
Date: Sun, 19 Dec 2021 11:23:21 UTC
The branch main has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=e98efdd973560e66557f3ab46ca10376acb3c583

commit e98efdd973560e66557f3ab46ca10376acb3c583
Author:     Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2021-12-19 11:19:53 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2021-12-19 11:21:21 +0000

    Implement suword16() for the 32/64-bit PowerPC architecture.
    
    This fixes compilation of usb(4) after 0ec590d24e415dd36e38648630a0b963412ad87e .
    
    MFC after:      1 week
    Sponsored by:   NVIDIA Networking
---
 sys/powerpc/powerpc/support.S | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sys/powerpc/powerpc/support.S b/sys/powerpc/powerpc/support.S
index 10d3192972d5..89dccd558014 100644
--- a/sys/powerpc/powerpc/support.S
+++ b/sys/powerpc/powerpc/support.S
@@ -401,6 +401,14 @@ ENTRY_DIRECT(suword)
 END_DIRECT(suword)
 #endif	
 
+ENTRY_DIRECT(suword16)
+	PROLOGUE
+	SET_FUSUFAULT(%r3, %r7)
+	sth  %r4, 0(%r3)
+	CLEAR_FAULT(%r7)
+	EPILOGUE
+END_DIRECT(suword16)
+
 ENTRY_DIRECT(suword32)
 	PROLOGUE
 	SET_FUSUFAULT(%r3, %r7)