Commit 9673668f by Joel Sherrill Committed by Joel Sherrill

s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.

2009-09-21  Joel Sherrill <joel.sherrill@oarcorp.com>

	* s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
	Bind to getpagesize() in RTEMS 4.10 and newer.

From-SVN: r151946
parent c1493544
2009-09-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
Bind to getpagesize() in RTEMS 4.10 and newer.
2009-09-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2009-09-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* env.c [__alpha__ && __osf__] (_BSD): Define. * env.c [__alpha__ && __osf__] (_BSD): Define.
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
-- -- -- --
-- B o d y -- -- B o d y --
-- -- -- --
-- Copyright (C) 1991-2008 Florida State University -- -- Copyright (C) 1991-2009 Florida State University --
-- -- -- --
-- GNARL is free software; you can redistribute it and/or modify it under -- -- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- -- -- terms of the GNU General Public License as published by the Free Soft- --
...@@ -125,16 +125,6 @@ package body System.OS_Interface is ...@@ -125,16 +125,6 @@ package body System.OS_Interface is
return Null_Address; return Null_Address;
end Get_Stack_Base; end Get_Stack_Base;
function Get_Page_Size return size_t is
begin
return 0;
end Get_Page_Size;
function Get_Page_Size return Address is
begin
return 0;
end Get_Page_Size;
function sigaltstack function sigaltstack
(ss : not null access stack_t; (ss : not null access stack_t;
oss : access stack_t) return int is oss : access stack_t) return int is
......
...@@ -296,8 +296,8 @@ package System.OS_Interface is ...@@ -296,8 +296,8 @@ package System.OS_Interface is
function Get_Page_Size return size_t; function Get_Page_Size return size_t;
function Get_Page_Size return Address; function Get_Page_Size return Address;
-- returns the size of a page, or 0 if this is not relevant on this pragma Import (C, Get_Page_Size, "getpagesize");
-- target (which is the case for RTEMS) -- Returns the size of a page
PROT_ON : constant := 0; PROT_ON : constant := 0;
PROT_OFF : constant := 0; PROT_OFF : constant := 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment