History log of /seL4-refos-master/libs/libsel4platsupport/src/timer.c
Revision Date Author Comments
# 56edd6b5 20-Jul-2020 Kent McLeod <Kent.Mcleod@data61.csiro.au>

trivial: Fix compiler warnings

- Declare unused variables
- Move variable initialization to prevent uninitialized use
- Correctly store bitwise operation result
- Fixup memset calls to use correct size
- Add missing return statement to functions
- Conditionally define functions that are used conditionally


# f02430b5 11-Aug-2019 Damon Lee <Damon.Lee@data61.csiro.au>

libsel4platsupport: Update ltimer calls

Following from the ltimer IRQ allocation and callback changes, this
commits updates the ltimer calls to reflect the changes. This is meant
to be band-aid fix to just get things compiling until the deprecation of
the timer library in libsel4platsupport.


# a6e1fbf8 24-Jul-2019 Damon Lee <Damon.Lee@data61.csiro.au>

libsel4platsupport: Update IO ops calls in timer

Following the refactoring of the IO ops interfaces, we update the
relevant calls inside the timer interface. These changes are temporary
and are intended to be a band-aid fix for the deprecation of this
interface in the very near future.


# e23dc54b 19-May-2019 Yu Hou <Yu.Hou@data61.csiro.au>

seL4_libs: remove autoconf.h from seL4_libs

this commit removes autoconf.h generation from each lib and
append '#include <<lib_name>/gen_config.h>' after each
'#include <autoconf.h>' since autoconf.h is only the for the
kernel config now. This is a temporarily solution, since we
currently don't have a way to tell which header files each file
is trying to include when it includes 'autoconf.h'


# 7605df3e 19-Jun-2019 Anna Lyons <Anna.Lyons@data61.csiro.au>

trivial: fix warning


# 277dc1b3 01-May-2019 James Ye <james.ye@data61.csiro.au>

trivial: libsel4platsupport: fix style


# 59323eb5 01-May-2019 James Ye <james.ye@data61.csiro.au>

libsel4platsupport: Add missing PS_TRIGGER path

Allows sel4bench to run when this is used.


# e3c710ee 14-Jan-2019 James Ye <james.ye@data61.csiro.au>

trivial: style and whitespace fixes

ZF_LOG* prints a new line, so avoid the blank extra line.


# 80ff425a 03-Dec-2018 Anna Lyons <Anna.Lyons@data61.csiro.au>

trivial: fix output warnings on 64-bit


# 03daf506 22-Nov-2018 Kent McLeod <Kent.Mcleod@data61.csiro.au>

sel4platsupport: Upgrade debug warning to error.

This is more of an error than a warning.


# 6e844e14 12-Mar-2018 Kofi Doku Atuah <kofidoku.atuah@data61.csiro.au>

Minor build warning fixes


# ef1d8cc3 26-Feb-2018 Anna Lyons <Anna.Lyons@data61.csiro.au>

trivial: squash warnings


# 06455b5e 05-Dec-2017 Anna Lyons <Anna.Lyons@data61.csiro.au>

sel4platsupport: correctly mask bit


# 08f9b7c2 04-Oct-2017 Adrian Danis <Adrian.Danis@data61.csiro.au>

Changes for removal of seL4_CapData_t type in libsel4

This updates seL4_libs to not use what are now deprecated functions and types by using
the new API wrappers


# 6e3be57b 09-Oct-2017 Adrian Danis <Adrian.Danis@data61.csiro.au>

sel4platsupport: Prevent loss of IRQs when setting up timers

Acking the IRQ handler *before* setting the notification object leaves a small window
in which a an IRQ could come in and get lost, thus eliminating the entire purpose of
the ack. Reordering ensures that interrupts will not be lost.


# e8b823fc 03-Oct-2017 Anna Lyons <Anna.Lyons@data61.csiro.au>

trivial: add UNUSED to unused parameter


# 5f4ecbd6 24-Sep-2017 Adrian Danis <Adrian.Danis@data61.csiro.au>

libsel4platsupport: Provide interface to initialize timer with a supplied ps_io_ops

This just splits the existing implementation, which was creating a ps_io_ops_t, interface
internally, to a more generic interface that takes a ps_io_ops_t, and a wrapper to preserve
the existing interface that has the original code to create the interface itself.


# 002d6d90 24-Sep-2017 Adrian Danis <Adrian.Danis@data61.csiro.au>

Initialise stack declared ps_io_ops_t to zero

The usage of this struct assumes that it is zero initialised, this change makes the
declaration respect that.


# 16cb65ca 04-Aug-2017 Adrian Danis <Adrian.Danis@data61.csiro.au>

Use correct format type for `size_t` instead of claiming they are of type `int`


# 04811146 31-Jul-2017 Anna Lyons <Anna.Lyons@data61.csiro.au>

sel4platsupport: identify ioapic by pin


# 8630e524 27-Jul-2017 Kent McLeod <Kent.Mcleod@data61.csiro.au>

Add timer_objects helper functions


# e2f0227c 26-Jul-2017 Anna Lyons <Anna.Lyons@data61.csiro.au>

sel4platsupport: init default timer irq objects


# c59517c2 19-Jul-2017 Anna Lyons <Anna.Lyons@data61.csiro.au>

Provide ltimer seL4 object initialisation

- remove support for pstimer_t
- replace with an ltimer wrapper, which is arch and platform independant
- timer objects now asks the ltimer what caps it needs, which removes
the need for arch or plat specific code.
- to identify irqs (since ltimers might have more than 1) we use the
upper bits of the badge.
- add sel4ps_pmem_t which wraps pmem_region_t
- main functions for interacting with timers via libsel4platsupport are
now:
* sel4platsupport_init_default_timer
* sel4platsupport_init_default_timer_caps
* sel4platsupport_init_timer_irqs
* sel4platsupport_handle_timer_irq
* sel4platsupport_destroy_timer


# 0016dfc6 13-Jul-2017 Anna Lyons <Anna.Lyons@data61.csiro.au>

Fix all the whitespace

- remove trailing whitespace
- remove duplicate blank lines
- remove blank lines at end of files


# 9214341c 04-Jun-2017 Anna Lyons <Anna.Lyons@data61.csiro.au>

Fix licenses


# d4ae924d 27-Apr-2017 Kent McLeod <Kent.Mcleod@data61.csiro.au>

libsel4platsupport: add init_default_timer_caps

Uses a vka, vspace and simple interface to create platform specific
timer caps such as untyped caps, interrupt caps or ioport caps. This
functionality was moved here from sel4test for reuse in other
applications.