microblaze port

based on initial work by rdp, with heavy modifications. some features
including threads are untested because qemu app-level emulation seems
to be broken and I do not have a proper system image for testing.
This commit is contained in:
Rich Felker
2012-09-29 01:05:31 -04:00
parent e0ea44cb76
commit 8c0a3d9e5c
45 changed files with 2213 additions and 0 deletions

View File

@ -0,0 +1,11 @@
.global __restore
.type __restore,@function
__restore:
ori r12, r0, 119
brki r14, 0x8
.global __restore_rt
.type __restore_rt,@function
__restore_rt:
ori r12, r0, 173
brki r14, 0x8

View File

@ -0,0 +1,9 @@
.global sigsetjmp
.type sigsetjmp,@function
sigsetjmp:
lwi r11, r5, 72
beqi r11, setjmp
addi r7, r5, 76
add r6, r0, r0
brid sigprocmask
ori r5, r0, 2