Move the getreent to sys for or1k-elf