syncicache is needed...

This commit is contained in:
tsubai 1999-05-21 08:00:11 +00:00
parent fd243bd393
commit c47f82d209
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: rtld_start.S,v 1.2 1999/04/18 19:40:07 ws Exp $ */
/* $NetBSD: rtld_start.S,v 1.3 1999/05/21 08:00:11 tsubai Exp $ */
/*-
* Copyright (C) 1998 Tsubai Masanari
@ -50,6 +50,11 @@ _rtld_start:
lwz 4,0(3)
add 3,3,4 # r3 = _GLOBAL_OFFSET_TABLE_ - 4
dcbst 0,3 # sync i-cache with d-cache
sync
icbi 0,3
isync
addi 11,3,4 # r11 = (real) GOT
lwz 10,_GLOBAL_OFFSET_TABLE_@got(11)
# the linker thought GOT were ...