Re: CVS commit: src

2021-07-24 Thread Izumi Tsutsui
> Log Message:
> Fix all remaining typos, mainly in comments but also in few definitions and 
> log messages, reported by me in PR kern/54889.
> Also fixed some additional typos in comments, found on review of same files 
> or typos.
 :
> cvs rdiff -u -r1.51 -r1.52 src/sys/arch/sh3/sh3/exception_vector.S
> cvs rdiff -u -r1.83 -r1.84 src/sys/arch/sh3/sh3/pmap.c

---
 #define__PMAP_PTP_PG_N (PAGE_SIZE / sizeof(pt_entry_t))
 #define__PMAP_PTP_INDEX(va)(((va) >> __PMAP_PTP_SHIFT) & 
(__PMAP_PTP_N - 1))
-#define__PMAP_PTP_OFSET(va)((va >> PGSHIFT) & (__PMAP_PTP_PG_N - 
1))
+#define__PMAP_PTP_OFFSET(va)   ((va >> PGSHIFT) & (__PMAP_PTP_PG_N - 
1))
--- 

This "OFSET" seems corresponding to historical MI "PGOFSET" macro defined
in  (though I don't know if the "OFSET" had particular
meanings, other than its strlen).

---
Izumi Tsutsui


Re: CVS commit: src/lib/libc/arch/powerpc/string

2021-07-24 Thread Joerg Sonnenberger
On Sat, Jul 24, 2021 at 05:27:26AM +, Rin Okuyama wrote:
> Module Name:  src
> Committed By: rin
> Date: Sat Jul 24 05:27:26 UTC 2021
> 
> Modified Files:
>   src/lib/libc/arch/powerpc/string: Makefile.inc
> 
> Log Message:
> For evbppc, use C version of bcopy(3), memcpy(3), memcmp(3), and
> memmove(3) consistently for debug library (*.go) in order to avoid
> alignment faults for 403.

Why do we want to pessimize all evbppc targets just for issues with the
403 design?

Joerg