Changeset 76d0981d in mainline
- Timestamp:
- 2018-04-12T12:57:20Z (7 years ago)
- 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)
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/userspace.c
r9c514be r76d0981d 36 36 #include <arch/cpu.h> 37 37 #include <arch/pm.h> 38 #include <stdbool.h> 38 39 #include <stdint.h> 39 40 #include <arch.h> … … 75 76 76 77 /* Unreachable */ 77 while ( 1);78 while (true); 78 79 } 79 80 -
kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c
r9c514be r76d0981d 44 44 #include <mm/km.h> 45 45 #include <ddi/ddi.h> 46 #include <stdbool.h> 46 47 47 48 static void bbxm_init(void); … … 130 131 static void bbxm_cpu_halt(void) 131 132 { 132 while ( 1)133 while (true) 133 134 ; 134 135 } -
kernel/arch/arm32/src/mach/beaglebone/beaglebone.c
r9c514be r76d0981d 47 47 #include <ddi/ddi.h> 48 48 #include <mm/km.h> 49 #include <stdbool.h> 49 50 50 51 #define BBONE_MEMORY_START 0x80000000 /* physical */ … … 159 160 static void bbone_cpu_halt(void) 160 161 { 161 while ( 1)162 while (true) 162 163 ; 163 164 } -
kernel/arch/arm32/src/mach/integratorcp/integratorcp.c
r9c514be r76d0981d 42 42 #include <genarch/srln/srln.h> 43 43 #include <console/console.h> 44 #include <stdbool.h> 44 45 #include <sysinfo/sysinfo.h> 45 46 #include <mm/page.h> … … 244 245 void icp_cpu_halt(void) 245 246 { 246 while ( 1);247 while (true); 247 248 } 248 249 -
kernel/arch/arm32/src/mach/raspberrypi/raspberrypi.c
r9c514be r76d0981d 47 47 #include <abi/fb/visuals.h> 48 48 #include <genarch/srln/srln.h> 49 #include <stdbool.h> 49 50 #include <sysinfo/sysinfo.h> 50 51 #include <interrupt.h> … … 128 129 static void raspberrypi_cpu_halt(void) 129 130 { 130 while ( 1) ;131 while (true) ; 131 132 } 132 133 -
kernel/arch/arm32/src/userspace.c
r9c514be r76d0981d 34 34 */ 35 35 36 #include <stdbool.h> 36 37 #include <userspace.h> 37 38 #include <arch/ras.h> … … 114 115 115 116 /* unreachable */ 116 while ( 1)117 while (true) 117 118 ; 118 119 } -
kernel/arch/ia32/src/userspace.c
r9c514be r76d0981d 35 35 #include <userspace.h> 36 36 #include <arch/pm.h> 37 #include <stdbool.h> 37 38 #include <stdint.h> 38 39 #include <arch.h> … … 79 80 80 81 /* Unreachable */ 81 while ( 1);82 while (true); 82 83 } 83 84 -
kernel/arch/ia64/src/ia64.c
r9c514be r76d0981d 40 40 #include <arch/interrupt.h> 41 41 #include <macros.h> 42 #include <stdbool.h> 42 43 #include <str.h> 43 44 #include <userspace.h> … … 252 253 (uintptr_t) kernel_uarg->uspace_uarg, psr.value, rsc.value); 253 254 254 while ( 1);255 while (true); 255 256 } 256 257 … … 258 259 { 259 260 pio_write_8((ioport8_t *)0x64, 0xfe); 260 while ( 1);261 while (true); 261 262 } 262 263 -
kernel/arch/mips32/src/mips32.c
r9c514be r76d0981d 42 42 #include <mem.h> 43 43 #include <userspace.h> 44 #include <stdbool.h> 44 45 #include <syscall/syscall.h> 45 46 #include <sysinfo/sysinfo.h> … … 172 173 (uintptr_t) kernel_uarg->uspace_entry); 173 174 174 while ( 1)175 while (true) 175 176 ; 176 177 } … … 195 196 { 196 197 ___halt(); 197 while ( 1)198 while (true) 198 199 ; 199 200 } -
kernel/arch/sparc64/src/sun4u/sparc64.c
r9c514be r76d0981d 50 50 #include <userspace.h> 51 51 #include <ddi/irq.h> 52 #include <stdbool.h> 52 53 #include <str.h> 53 54 #include <sysinfo/sysinfo.h> … … 169 170 170 171 /* Not reached */ 171 while ( 1)172 while (true) 172 173 ; 173 174 } … … 176 177 { 177 178 // TODO 178 while ( 1)179 while (true) 179 180 ; 180 181 } -
kernel/arch/sparc64/src/sun4v/sparc64.c
r9c514be r76d0981d 51 51 #include <userspace.h> 52 52 #include <ddi/irq.h> 53 #include <stdbool.h> 53 54 #include <str.h> 54 55 #include <arch/drivers/niagara.h> … … 167 168 168 169 /* Not reached */ 169 while ( 1)170 while (true) 170 171 ; 171 172 } … … 174 175 { 175 176 // TODO 176 while ( 1)177 while (true) 177 178 ; 178 179 } -
uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
r9c514be r76d0981d 27 27 */ 28 28 29 #include <stdbool.h> 29 30 #include <stdio.h> 30 31 #include <stdlib.h> … … 106 107 /* Create the parent directories as well. */ 107 108 size_t off = 0; 108 while ( 1) {109 while (true) { 109 110 size_t prev_off = off; 110 111 wchar_t cur_char = str_decode(path, &off, STR_NO_LIMIT); -
uspace/app/mkbd/main.c
r9c514be r76d0981d 171 171 printf("Press <ESC> to quit the application.\n"); 172 172 173 while ( 1) {173 while (true) { 174 174 cons_event_t ev; 175 175 bool ok = console_get_event(con, &ev); -
uspace/app/tetris/scores.c
r9c514be r76d0981d 59 59 60 60 #include <errno.h> 61 #include <stdbool.h> 61 62 #include <stdio.h> 62 63 #include <str.h> … … 138 139 "........................................"); 139 140 140 while ( 1) {141 while (true) { 141 142 console_flush(console); 142 143 if (!console_get_event(console, &ev)) -
uspace/app/tetris/tetris.c
r9c514be r76d0981d 57 57 #include <sys/time.h> 58 58 #include <errno.h> 59 #include <stdbool.h> 59 60 #include <stdio.h> 60 61 #include <stdlib.h> … … 200 201 { 201 202 tetris_menu_draw(*level); 202 while ( 1) {203 while (true) { 203 204 int i = getchar(); 204 205 … … 327 328 scr_msg(key_msg, 1); 328 329 329 while ( 1) {330 while (true) { 330 331 place(curshape, pos, 1); 331 332 scr_update(); -
uspace/app/wavplay/dplay.c
r9c514be r76d0981d 44 44 #include <sys/time.h> 45 45 #include <inttypes.h> 46 46 #include <stdbool.h> 47 47 #include <stdio.h> 48 48 #include <macros.h> … … 101 101 playback_t *pb = arg; 102 102 const size_t fragment_size = pb->buffer.size / DEFAULT_FRAGMENTS; 103 while ( 1) {103 while (true) { 104 104 ipc_call_t call; 105 105 cap_call_handle_t chandle = async_get_call(&call); … … 260 260 struct timeval time = { 0 }; 261 261 getuptime(&time); 262 do{262 while (true) { 263 263 size_t available = buffer_avail(pb, pos); 264 264 /* Writing might need wrap around the end, … … 324 324 break; 325 325 326 } while (1);326 } 327 327 audio_pcm_stop_playback_immediate(pb->device); 328 328 } -
uspace/dist/src/c/demos/tetris/scores.c
r9c514be r76d0981d 64 64 #include <io/keycode.h> 65 65 #include <vfs/vfs.h> 66 #include <stdbool.h> 66 67 #include <stdlib.h> 67 68 #include <err.h> … … 139 140 "........................................"); 140 141 141 while ( 1) {142 while (true) { 142 143 console_flush(console); 143 144 if (!console_get_event(console, &ev)) -
uspace/dist/src/c/demos/tetris/tetris.c
r9c514be r76d0981d 58 58 #include <err.h> 59 59 #include <errno.h> 60 #include <stdbool.h> 60 61 #include <stdio.h> 61 62 #include <stdlib.h> … … 201 202 { 202 203 tetris_menu_draw(*level); 203 while ( 1) {204 while (true) { 204 205 int i = getchar(); 205 206 … … 326 327 scr_msg(key_msg, 1); 327 328 328 while ( 1) {329 while (true) { 329 330 place(curshape, pos, 1); 330 331 scr_update(); -
uspace/drv/bus/usb/uhci/hc.c
r9c514be r76d0981d 44 44 #include <macros.h> 45 45 #include <mem.h> 46 #include <stdbool.h> 46 47 #include <stdlib.h> 47 48 #include <stdint.h> … … 607 608 instance->transfers_##queue.queue_head 608 609 609 while ( 1) {610 while (true) { 610 611 const uint16_t cmd = pio_read_16(&instance->registers->usbcmd); 611 612 const uint16_t sts = pio_read_16(&instance->registers->usbsts); -
uspace/drv/char/ski-con/ski-con.c
r9c514be r76d0981d 134 134 errno_t rc; 135 135 136 while ( 1) {137 while ( 1) {136 while (true) { 137 while (true) { 138 138 c = ski_con_getchar(); 139 139 if (c == 0) -
uspace/drv/hid/ps2mouse/ps2mouse.c
r9c514be r76d0981d 254 254 255 255 bool buttons[PS2_BUTTON_COUNT] = {}; 256 while ( 1) {256 while (true) { 257 257 uint8_t packet[PS2_BUFSIZE] = {}; 258 258 rc = ps2_mouse_read_packet(mouse, packet, PS2_BUFSIZE); … … 306 306 307 307 bool buttons[INTELLIMOUSE_BUTTON_COUNT] = {}; 308 while ( 1) {308 while (true) { 309 309 uint8_t packet[INTELLIMOUSE_BUFSIZE] = {}; 310 310 rc = ps2_mouse_read_packet(mouse, packet, INTELLIMOUSE_BUFSIZE); -
uspace/drv/hid/usbhid/mouse/mousedev.c
r9c514be r76d0981d 43 43 #include <errno.h> 44 44 #include <async.h> 45 #include <stdbool.h> 45 46 #include <str_error.h> 46 47 #include <ipc/mouseev.h> … … 299 300 300 301 /* Break from within. */ 301 while ( 1) {302 while (true) { 302 303 field = usb_hid_report_get_sibling( 303 304 report, field, path, -
uspace/drv/intctl/obio/obio.c
r9c514be r76d0981d 86 86 obio = (obio_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg)); 87 87 88 while ( 1) {88 while (true) { 89 89 int inr; 90 90 -
uspace/lib/c/generic/libc.c
r9c514be r76d0981d 43 43 #include <errno.h> 44 44 #include <libc.h> 45 #include <stdbool.h> 45 46 #include <stdlib.h> 46 47 #include <tls.h> … … 138 139 139 140 /* Unreachable */ 140 while ( 1)141 while (true) 141 142 ; 142 143 } … … 147 148 148 149 /* Unreachable */ 149 while ( 1)150 while (true) 150 151 ; 151 152 } -
uspace/lib/c/generic/thread.c
r9c514be r76d0981d 35 35 #include <thread.h> 36 36 #include <libc.h> 37 #include <stdbool.h> 37 38 #include <stdlib.h> 38 39 #include <libarch/faddr.h> … … 157 158 158 159 /* Unreachable */ 159 while ( 1)160 while (true) 160 161 ; 161 162 } -
uspace/lib/ext4/src/balloc.c
r9c514be r76d0981d 36 36 37 37 #include <errno.h> 38 #include <stdbool.h> 38 39 #include <stdint.h> 39 40 #include "ext4/balloc.h" … … 274 275 ibmap = -1; 275 276 276 while ( 1) {277 while (true) { 277 278 if (r == bbmap || r == ibmap) 278 279 r++; -
uspace/lib/hound/src/protocol.c
r9c514be r76d0981d 39 39 #include <macros.h> 40 40 #include <str.h> 41 #include <stdbool.h> 41 42 #include <stdlib.h> 42 43 #include <stdio.h> … … 401 402 } 402 403 403 while ( 1) {404 while (true) { 404 405 ipc_call_t call; 405 406 cap_call_handle_t chandle = async_get_call(&call); -
uspace/lib/pcut/src/preproc.c
r9c514be r76d0981d 27 27 */ 28 28 29 #include <stdbool.h> 29 30 #include <stdio.h> 30 31 #include <stdlib.h> … … 109 110 (void) argv; 110 111 111 while ( 1) {112 while (true) { 112 113 int current_char_denotes_identifier; 113 114 -
uspace/lib/pcut/src/report/report.c
r9c514be r76d0981d 38 38 #include <string.h> 39 39 #endif 40 #include <stdbool.h> 40 41 #include <stdio.h> 41 42 … … 110 111 } 111 112 112 while ( 1) {113 while (true) { 113 114 size_t message_length; 114 115 -
uspace/srv/audio/hound/audio_device.c
r9c514be r76d0981d 40 40 #include <inttypes.h> 41 41 #include <loc.h> 42 #include <stdbool.h> 42 43 #include <str.h> 43 44 #include <str_error.h> … … 271 272 audio_device_t *dev = arg; 272 273 assert(dev); 273 while ( 1) {274 while (true) { 274 275 ipc_call_t call; 275 276 cap_call_handle_t chandle = async_get_call(&call); -
uspace/srv/hid/input/gsp.c
r9c514be r76d0981d 51 51 #include <adt/hash_table.h> 52 52 #include <adt/hash.h> 53 #include <stdbool.h> 53 54 #include <stdlib.h> 54 55 #include <stdio.h> … … 119 120 dp = defs; 120 121 121 while ( 1) {122 while (true) { 122 123 /* Read the output values. */ 123 124 mods = *dp++;
Note:
See TracChangeset
for help on using the changeset viewer.