The way that I interpret the pacifist ending is that after Frisk/Chara restores everyone's memories by "reaching for their souls", he/she then finds his/her own