Changeset 214ec25c in mainline for kernel/arch/arm32/src


Ignore:
Timestamp:
2010-06-11T16:07:21Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b584cd4
Parents:
b3b7e14a
Message:

use unsigned integers for exception and interrupt numbers

Location:
kernel/arch/arm32/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/exception.c

    rb3b7e14a r214ec25c  
    9191 *
    9292 * Dispatches the syscall.
    93  */
    94 static void swi_exception(int exc_no, istate_t *istate)
     93 *
     94 */
     95static void swi_exception(unsigned int exc_no, istate_t *istate)
    9596{
    9697        istate->r0 = syscall_handler(istate->r0, istate->r1, istate->r2,
     
    148149 * Determines the sources of interrupt and calls their handlers.
    149150 */
    150 static void irq_exception(int exc_no, istate_t *istate)
     151static void irq_exception(unsigned int exc_no, istate_t *istate)
    151152{
    152153        machine_irq_exception(exc_no, istate);
  • kernel/arch/arm32/src/mach/integratorcp/integratorcp.c

    rb3b7e14a r214ec25c  
    242242 * @param istate Saved processor state.
    243243 */
    244 void icp_irq_exception(int exc_no, istate_t *istate)
     244void icp_irq_exception(unsigned int exc_no, istate_t *istate)
    245245{
    246246        uint32_t sources = icp_irqc_get_sources();
    247         int i;
     247        unsigned int i;
    248248       
    249249        for (i = 0; i < ICP_IRQC_MAX_IRQ; i++) {
  • kernel/arch/arm32/src/mach/testarm/testarm.c

    rb3b7e14a r214ec25c  
    205205 * Determines the sources of interrupt and calls their handlers.
    206206 */
    207 void gxemul_irq_exception(int exc_no, istate_t *istate)
     207void gxemul_irq_exception(unsigned int exc_no, istate_t *istate)
    208208{
    209209        uint32_t sources = gxemul_irqc_get_sources();
  • kernel/arch/arm32/src/machine_func.c

    rb3b7e14a r214ec25c  
    7676 * @param istate Saved processor state.
    7777 */
    78 void machine_irq_exception(int exc_no, istate_t *istate)
     78void machine_irq_exception(unsigned int exc_no, istate_t *istate)
    7979{
    8080        (machine_ops.machine_irq_exception)(exc_no, istate);
  • kernel/arch/arm32/src/mm/page_fault.c

    rb3b7e14a r214ec25c  
    167167/** Handles "data abort" exception (load or store at invalid address).
    168168 *
    169  * @param exc_no        Exception number.
    170  * @param istate        CPU state when exception occured.
    171  */
    172 void data_abort(int exc_no, istate_t *istate)
     169 * @param exc_no Exception number.
     170 * @param istate CPU state when exception occured.
     171 *
     172 */
     173void data_abort(unsigned int exc_no, istate_t *istate)
    173174{
    174175        fault_status_t fsr __attribute__ ((unused)) =
     
    193194/** Handles "prefetch abort" exception (instruction couldn't be executed).
    194195 *
    195  * @param exc_no        Exception number.
    196  * @param istate        CPU state when exception occured.
    197  */
    198 void prefetch_abort(int exc_no, istate_t *istate)
     196 * @param exc_no Exception number.
     197 * @param istate CPU state when exception occured.
     198 *
     199 */
     200void prefetch_abort(unsigned int exc_no, istate_t *istate)
    199201{
    200202        int ret = as_page_fault(istate->pc, PF_ACCESS_EXEC, istate);
Note: See TracChangeset for help on using the changeset viewer.