Changeset 76d0981d in mainline for kernel/arch


Ignore:
Timestamp:
2018-04-12T12:57:20Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3bacee1
Parents:
9c514be
git-author:
Jiri Svoboda <jiri@…> (2018-04-11 18:18:43)
git-committer:
Jiri Svoboda <jiri@…> (2018-04-12 12:57:20)
Message:

Use proper boolean constant in while loops.

Location:
kernel/arch
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/userspace.c

    r9c514be r76d0981d  
    3636#include <arch/cpu.h>
    3737#include <arch/pm.h>
     38#include <stdbool.h>
    3839#include <stdint.h>
    3940#include <arch.h>
     
    7576
    7677        /* Unreachable */
    77         while (1);
     78        while (true);
    7879}
    7980
  • kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c

    r9c514be r76d0981d  
    4444#include <mm/km.h>
    4545#include <ddi/ddi.h>
     46#include <stdbool.h>
    4647
    4748static void bbxm_init(void);
     
    130131static void bbxm_cpu_halt(void)
    131132{
    132         while (1)
     133        while (true)
    133134                ;
    134135}
  • kernel/arch/arm32/src/mach/beaglebone/beaglebone.c

    r9c514be r76d0981d  
    4747#include <ddi/ddi.h>
    4848#include <mm/km.h>
     49#include <stdbool.h>
    4950
    5051#define BBONE_MEMORY_START       0x80000000      /* physical */
     
    159160static void bbone_cpu_halt(void)
    160161{
    161         while (1)
     162        while (true)
    162163                ;
    163164}
  • kernel/arch/arm32/src/mach/integratorcp/integratorcp.c

    r9c514be r76d0981d  
    4242#include <genarch/srln/srln.h>
    4343#include <console/console.h>
     44#include <stdbool.h>
    4445#include <sysinfo/sysinfo.h>
    4546#include <mm/page.h>
     
    244245void icp_cpu_halt(void)
    245246{
    246         while (1);
     247        while (true);
    247248}
    248249
  • kernel/arch/arm32/src/mach/raspberrypi/raspberrypi.c

    r9c514be r76d0981d  
    4747#include <abi/fb/visuals.h>
    4848#include <genarch/srln/srln.h>
     49#include <stdbool.h>
    4950#include <sysinfo/sysinfo.h>
    5051#include <interrupt.h>
     
    128129static void raspberrypi_cpu_halt(void)
    129130{
    130         while (1) ;
     131        while (true) ;
    131132}
    132133
  • kernel/arch/arm32/src/userspace.c

    r9c514be r76d0981d  
    3434 */
    3535
     36#include <stdbool.h>
    3637#include <userspace.h>
    3738#include <arch/ras.h>
     
    114115
    115116        /* unreachable */
    116         while (1)
     117        while (true)
    117118                ;
    118119}
  • kernel/arch/ia32/src/userspace.c

    r9c514be r76d0981d  
    3535#include <userspace.h>
    3636#include <arch/pm.h>
     37#include <stdbool.h>
    3738#include <stdint.h>
    3839#include <arch.h>
     
    7980
    8081        /* Unreachable */
    81         while (1);
     82        while (true);
    8283}
    8384
  • kernel/arch/ia64/src/ia64.c

    r9c514be r76d0981d  
    4040#include <arch/interrupt.h>
    4141#include <macros.h>
     42#include <stdbool.h>
    4243#include <str.h>
    4344#include <userspace.h>
     
    252253            (uintptr_t) kernel_uarg->uspace_uarg, psr.value, rsc.value);
    253254
    254         while (1);
     255        while (true);
    255256}
    256257
     
    258259{
    259260        pio_write_8((ioport8_t *)0x64, 0xfe);
    260         while (1);
     261        while (true);
    261262}
    262263
  • kernel/arch/mips32/src/mips32.c

    r9c514be r76d0981d  
    4242#include <mem.h>
    4343#include <userspace.h>
     44#include <stdbool.h>
    4445#include <syscall/syscall.h>
    4546#include <sysinfo/sysinfo.h>
     
    172173            (uintptr_t) kernel_uarg->uspace_entry);
    173174
    174         while (1)
     175        while (true)
    175176                ;
    176177}
     
    195196{
    196197        ___halt();
    197         while (1)
     198        while (true)
    198199                ;
    199200}
  • kernel/arch/sparc64/src/sun4u/sparc64.c

    r9c514be r76d0981d  
    5050#include <userspace.h>
    5151#include <ddi/irq.h>
     52#include <stdbool.h>
    5253#include <str.h>
    5354#include <sysinfo/sysinfo.h>
     
    169170
    170171        /* Not reached */
    171         while (1)
     172        while (true)
    172173                ;
    173174}
     
    176177{
    177178        // TODO
    178         while (1)
     179        while (true)
    179180                ;
    180181}
  • kernel/arch/sparc64/src/sun4v/sparc64.c

    r9c514be r76d0981d  
    5151#include <userspace.h>
    5252#include <ddi/irq.h>
     53#include <stdbool.h>
    5354#include <str.h>
    5455#include <arch/drivers/niagara.h>
     
    167168
    168169        /* Not reached */
    169         while (1)
     170        while (true)
    170171                ;
    171172}
     
    174175{
    175176        // TODO
    176         while (1)
     177        while (true)
    177178                ;
    178179}
Note: See TracChangeset for help on using the changeset viewer.