Subject: CVS commit: src/sys/arch/dreamcast/dev/g2
To: None <source-changes@netbsd.org>
From: Izumi Tsutsui <tsutsui@netbsd.org>
List: source-changes
Date: 03/02/2003 06:23:18
Module Name:	src
Committed By:	tsutsui
Date:		Sun Mar  2 04:23:17 UTC 2003

Modified Files:
	src/sys/arch/dreamcast/dev/g2: g2bus_bus_mem.c

Log Message:
Cleanup G2_LOCK/G2_UNLOCK macros per discussion on port-dreamcast:
- Use _cpu_intr_suspend()/_cpu_intr_resume() in G2_LOCK/G2_UNLOCK macros
  rather than _cpu_exception_suspend()/_cpu_exception_resume().
  TLB miss exceptions could happen on accessing buffer, but it will never
  block G2bus cycle anyway.
- Restore the previous SR.IMASK value in G2_UNLOCK().
- some misc cosmetics.

Should fix spontaneous reboots by "ping -s 8192 host" on the LAN Adapter.


To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 src/sys/arch/dreamcast/dev/g2/g2bus_bus_mem.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.