Browse Source

Merge pull request #34 from darius-bluespec/glibc-compile-fix

glibc: Fix compile errors
pull/36/head
Palmer Dabbelt 11 years ago
parent
commit
e36a748954
  1. 2
      glibc/sysdeps/riscv/fpu_control.h
  2. 4
      glibc/sysdeps/unix/sysv/linux/riscv/bits/atomic.h

2
glibc/sysdeps/riscv/fpu_control.h

@ -29,7 +29,7 @@
#define _FPU_RESERVED 0xffffffff
#define _FPU_DEFAULT 0x00000000
typedef unsigned int fpu_control_t;
#define _FPU_GETCW(cw) 0
#define _FPU_GETCW(cw) (cw) = 0
#define _FPU_SETCW(cw) do { } while (0)
extern fpu_control_t __fpu_control;

4
glibc/sysdeps/unix/sysv/linux/riscv/bits/atomic.h

@ -37,14 +37,14 @@
#define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \
({ \
INTERNAL_SYSCALL_DECL (__err); \
INTERNAL_SYSCALL (sysriscv, __err, 4, \
(__typeof (*mem)) INTERNAL_SYSCALL (sysriscv, __err, 4, \
RISCV_ATOMIC_CMPXCHG, mem, oldval, newval); \
})
#define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \
({ \
INTERNAL_SYSCALL_DECL (__err); \
INTERNAL_SYSCALL (sysriscv, __err, 4, \
(__typeof (*mem)) INTERNAL_SYSCALL (sysriscv, __err, 4, \
RISCV_ATOMIC_CMPXCHG64, mem, oldval, newval); \
})

Loading…
Cancel
Save