Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sun2/sun2 Under __ELF__, getvbr must return its poi...
details: https://anonhg.NetBSD.org/src/rev/3bbc080e6bd4
branches: trunk
changeset: 514255:3bbc080e6bd4
user: fredette <fredette%NetBSD.org@localhost>
date: Sun Aug 26 17:12:11 2001 +0000
description:
Under __ELF__, getvbr must return its pointer value
in %a0, not %d0. This fixes many problems with
getting the PROM to halt and reboot the machine.
diffstat:
sys/arch/sun2/sun2/locore.s | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 0ffe34081b64 -r 3bbc080e6bd4 sys/arch/sun2/sun2/locore.s
--- a/sys/arch/sun2/sun2/locore.s Sun Aug 26 17:08:09 2001 +0000
+++ b/sys/arch/sun2/sun2/locore.s Sun Aug 26 17:12:11 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.8 2001/08/16 23:54:31 fredette Exp $ */
+/* $NetBSD: locore.s,v 1.9 2001/08/26 17:12:11 fredette Exp $ */
/*
* Copyright (c) 2001 Matthew Fredette
@@ -784,6 +784,9 @@
ENTRY(getvbr)
movc %vbr,%d0
+#ifdef __ELF__
+ movl %d0, %a0
+#endif /* __ELF__ */
rts
ENTRY(setvbr)
Home |
Main Index |
Thread Index |
Old Index