[PATCH 2/2] RISC-V: Fix _sbrk, it's failed only when return value is -1.

Corinna Vinschen vinschen@redhat.com
Wed Aug 29 13:59:00 GMT 2018


On Aug 29 16:35, Kito Cheng wrote:
> This patch is fix _sbrk for RISC-V libgloss, _sbrk might return an
> valid address which MSB is set to 1, but it will treat as fail in
> current implementation.

> From d1259a170f228b36be344405bca7a6bf6869c4c1 Mon Sep 17 00:00:00 2001
> From: Denis Ivanov <denis.ivanov@cloudbear.ru>
> Date: Fri, 6 Jul 2018 19:03:23 +0300
> Subject: [PATCH 2/2] RISC-V: Fix _sbrk, it's failed only when return value is
>  -1.
> 
> Signed-off-by: Kito Cheng <kito.cheng@gmail.com>
> ---
>  libgloss/riscv/internal_syscall.h | 11 ++++++++---
>  libgloss/riscv/sys_sbrk.c         |  8 ++++----
>  2 files changed, 12 insertions(+), 7 deletions(-)

Pushed.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20180829/76c10171/attachment.sig>


More information about the Newlib mailing list