[haiku-commits] haiku: hrev53495 - src/system/libroot/os

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 17 Sep 2019 23:34:10 -0400 (EDT)

hrev53495 adds 1 changeset to branch 'master'
old head: 66d438d128c213c8d7988eee14a8d778fbf148df
new head: 63ec1f9ae26fde975a685e2539019cca8733ad4d
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=63ec1f9ae26f+%5E66d438d128c2

----------------------------------------------------------------------------

63ec1f9ae26f: libroot: check API version to enable B_CLONEABLE_AREA on R1Beta1.
  
  If at least one image is older than B_HAIKU_VERSION_1_PRE_BETA_2, new areas 
are
  marked as cloneable.
  Should fix #15244.
  
  Change-Id: I82d7cad969102679084d0ad73430790278e3d15c
  Reviewed-on: https://review.haiku-os.org/c/haiku/+/1849
  Reviewed-by: Adrien Destugues <pulkomandy@xxxxxxxxx>

                                   [ Jérôme Duval <jerome.duval@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev53495
Commit:      63ec1f9ae26fde975a685e2539019cca8733ad4d
URL:         https://git.haiku-os.org/haiku/commit/?id=63ec1f9ae26f
Author:      Jérôme Duval <jerome.duval@xxxxxxxxx>
Date:        Wed Sep 11 18:49:32 2019 UTC
Committer:   waddlesplash <waddlesplash@xxxxxxxxx>
Commit-Date: Wed Sep 18 03:34:02 2019 UTC

Ticket:      https://dev.haiku-os.org/ticket/15244

----------------------------------------------------------------------------

1 file changed, 2 insertions(+)
src/system/libroot/os/area.c | 2 ++

----------------------------------------------------------------------------

diff --git a/src/system/libroot/os/area.c b/src/system/libroot/os/area.c
index 4229c61e40..5f057a79eb 100644
--- a/src/system/libroot/os/area.c
+++ b/src/system/libroot/os/area.c
@@ -17,6 +17,8 @@ create_area(const char *name, void **address, uint32 
addressSpec, size_t size,
 {
        if (__gABIVersion < B_HAIKU_ABI_GCC_2_HAIKU)
                protection |= B_EXECUTE_AREA;
+       if (__gAPIVersion < B_HAIKU_VERSION_1_PRE_BETA_2)
+               protection |= B_CLONEABLE_AREA;
        return _kern_create_area(name, address, addressSpec, size, lock, 
protection);
 }
 


Other related posts:

  • » [haiku-commits] haiku: hrev53495 - src/system/libroot/os - waddlesplash