forked from Imagelibrary/rtems
* support/timer_driver.adb, support/timer_driver.ads, tmtests/tm01/tmtest.adb, tmtests/tm02/tmtest.adb, tmtests/tm03/tmtest.adb, tmtests/tm04/tmtest.adb, tmtests/tm05/tmtest.adb, tmtests/tm06/tmtest.adb, tmtests/tm07/tmtest.adb, tmtests/tm08/tmtest.adb, tmtests/tm09/tmtest.adb, tmtests/tm10/tmtest.adb, tmtests/tm11/tmtest.adb, tmtests/tm12/tmtest.adb, tmtests/tm13/tmtest.adb, tmtests/tm14/tmtest.adb, tmtests/tm15/tmtest.adb, tmtests/tm16/tmtest.adb, tmtests/tm17/tmtest.adb, tmtests/tm18/tmtest.adb, tmtests/tm19/tmtest.adb, tmtests/tm20/config.h, tmtests/tm20/tmtest.adb, tmtests/tm21/tmtest.adb, tmtests/tm22/tmtest.adb, tmtests/tm23/tmtest.adb, tmtests/tm24/tmtest.adb, tmtests/tm25/tmtest.adb, tmtests/tm28/tmtest.adb, tmtests/tm29/tmtest.adb, tmtests/tmck/tmtest.adb, tmtests/tmoverhd/tmtest.adb: Clean up. Verified to run on psim with gcc 4.3.2.
63 lines
1.1 KiB
Ada
63 lines
1.1 KiB
Ada
--
|
|
-- Timer_Driver / Body
|
|
--
|
|
-- Description:
|
|
--
|
|
-- This package is the body for the Timer Driver.
|
|
--
|
|
-- Dependencies:
|
|
--
|
|
--
|
|
--
|
|
-- COPYRIGHT (c) 1989-1997.
|
|
-- On-Line Applications Research Corporation (OAR).
|
|
--
|
|
-- The license and distribution terms for this file may in
|
|
-- the file LICENSE in this distribution or at
|
|
-- http://www.rtems.com/license/LICENSE.
|
|
--
|
|
-- $Id$
|
|
--
|
|
|
|
with RTEMS;
|
|
with Interfaces.C;
|
|
|
|
package body Timer_Driver is
|
|
|
|
--PAGE
|
|
--
|
|
-- Empty_function
|
|
--
|
|
--
|
|
procedure Empty_Function
|
|
is
|
|
begin
|
|
Null;
|
|
end Empty_Function;
|
|
|
|
--PAGE
|
|
--
|
|
-- Set_Find_Average_Overhead
|
|
--
|
|
--
|
|
|
|
procedure Set_Find_Average_Overhead (
|
|
Find_Flag : in Standard.Boolean
|
|
) is
|
|
procedure Set_Find_Average_Overhead_base (
|
|
Find_Flag : in Interfaces.Unsigned_8
|
|
);
|
|
pragma Import (C, Set_Find_Average_Overhead_base,
|
|
"benchmark_timer_disable_subtracting_average_overhead");
|
|
c: Interfaces.Unsigned_8;
|
|
begin
|
|
if Find_Flag then
|
|
c := 1;
|
|
else
|
|
c := 0;
|
|
end if;
|
|
Set_Find_Average_Overhead_base (c);
|
|
end Set_Find_Average_Overhead;
|
|
|
|
end Timer_Driver;
|