Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
	.set	mips16
	.set	noreorder
foo:
	extend	0x123		# ADDIUSP
	addiu	$16, $29, 0
	extend	0x123
	addiu	$16, $29, 128
	extend	0x123
	addiu	$16, $29, 256
	extend	0x123
	addiu	$16, $29, 384
	extend	0x123
	addiu	$16, $29, 512
	extend	0x123
	addiu	$16, $29, 640
	extend	0x123
	addiu	$16, $29, 768
	extend	0x123
	addiu	$16, $29, 896

	extend	0x123		# ADDIUPC
	addiu	$16, $pc, 0
	extend	0x123
	addiu	$16, $pc, 128
	extend	0x123
	addiu	$16, $pc, 256
	extend	0x123
	addiu	$16, $pc, 384
	extend	0x123
	addiu	$16, $pc, 512
	extend	0x123
	addiu	$16, $pc, 640
	extend	0x123
	addiu	$16, $pc, 768
	extend	0x123
	addiu	$16, $pc, 896

	extend	0x123		# B
	b	. + 2
	extend	0x123
	b	. + 66
	extend	0x123
	b	. + 130
	extend	0x123
	b	. + 194
	extend	0x123
	b	. + 258
	extend	0x123
	b	. + 322
	extend	0x123
	b	. + 386
	extend	0x123
	b	. + 450

	extend	0x123		# BEQZ
	beqz	$16, . + 2
	extend	0x123
	beqz	$16, . + 66
	extend	0x123
	beqz	$16, . + 130
	extend	0x123
	beqz	$16, . + 194
	extend	0x123
	beqz	$16, . - 254
	extend	0x123
	beqz	$16, . - 190
	extend	0x123
	beqz	$16, . - 126
	extend	0x123
	beqz	$16, . - 62

	extend	0x123		# BNEZ
	bnez	$16, . + 2
	extend	0x123
	bnez	$16, . + 66
	extend	0x123
	bnez	$16, . + 130
	extend	0x123
	bnez	$16, . + 194
	extend	0x123
	bnez	$16, . - 254
	extend	0x123
	bnez	$16, . - 190
	extend	0x123
	bnez	$16, . - 126
	extend	0x123
	bnez	$16, . - 62

	extend	0x123		# SHIFT		# SLL
	sll	$16, $16, 8
	extend	0x123
	sll	$16, $16, 1
	extend	0x123
	sll	$16, $16, 2
	extend	0x123
	sll	$16, $16, 3
	extend	0x123
	sll	$16, $16, 4
	extend	0x123
	sll	$16, $16, 5
	extend	0x123
	sll	$16, $16, 6
	extend	0x123
	sll	$16, $16, 7

	extend	0x123				# DSLL
	dsll	$16, $16, 8
	extend	0x123
	dsll	$16, $16, 1
	extend	0x123
	dsll	$16, $16, 2
	extend	0x123
	dsll	$16, $16, 3
	extend	0x123
	dsll	$16, $16, 4
	extend	0x123
	dsll	$16, $16, 5
	extend	0x123
	dsll	$16, $16, 6
	extend	0x123
	dsll	$16, $16, 7

	extend	0x123				# SRL
	srl	$16, $16, 8
	extend	0x123
	srl	$16, $16, 1
	extend	0x123
	srl	$16, $16, 2
	extend	0x123
	srl	$16, $16, 3
	extend	0x123
	srl	$16, $16, 4
	extend	0x123
	srl	$16, $16, 5
	extend	0x123
	srl	$16, $16, 6
	extend	0x123
	srl	$16, $16, 7

	extend	0x123				# SRA
	sra	$16, $16, 8
	extend	0x123
	sra	$16, $16, 1
	extend	0x123
	sra	$16, $16, 2
	extend	0x123
	sra	$16, $16, 3
	extend	0x123
	sra	$16, $16, 4
	extend	0x123
	sra	$16, $16, 5
	extend	0x123
	sra	$16, $16, 6
	extend	0x123
	sra	$16, $16, 7

	extend	0x123		# LD
	ld	$16, 0($16)

	extend	0x123		# RRI-A		# ADDIU
	addiu	$16, $16, 0
	extend	0x123				# DADDIU
	daddiu	$16, $16, 0

	extend	0x123		# ADDIU8
	addiu	$16, 0
	extend	0x123
	addiu	$16, 32
	extend	0x123
	addiu	$16, 64
	extend	0x123
	addiu	$16, 96
	extend	0x123
	addiu	$16, -128
	extend	0x123
	addiu	$16, -96
	extend	0x123
	addiu	$16, -64
	extend	0x123
	addiu	$16, -32

	extend	0x123		# SLTI
	slti	$16, 0
	extend	0x123
	slti	$16, 32
	extend	0x123
	slti	$16, 64
	extend	0x123
	slti	$16, 96
	extend	0x123
	slti	$16, 128
	extend	0x123
	slti	$16, 160
	extend	0x123
	slti	$16, 192
	extend	0x123
	slti	$16, 224

	extend	0x123		# SLTIU
	sltiu	$16, 0
	extend	0x123
	sltiu	$16, 32
	extend	0x123
	sltiu	$16, 64
	extend	0x123
	sltiu	$16, 96
	extend	0x123
	sltiu	$16, 128
	extend	0x123
	sltiu	$16, 160
	extend	0x123
	sltiu	$16, 192
	extend	0x123
	sltiu	$16, 224

	extend	0x123		# I8		# BTEQZ
	bteqz	. + 2
	extend	0x123
	bteqz	. + 66
	extend	0x123
	bteqz	. + 130
	extend	0x123
	bteqz	. + 194
	extend	0x123
	bteqz	. - 254
	extend	0x123
	bteqz	. - 190
	extend	0x123
	bteqz	. - 126
	extend	0x123
	bteqz	. - 62

	extend	0x123				# BTNEZ
	btnez	. + 2
	extend	0x123
	btnez	. + 66
	extend	0x123
	btnez	. + 130
	extend	0x123
	btnez	. + 194
	extend	0x123
	btnez	. - 254
	extend	0x123
	btnez	. - 190
	extend	0x123
	btnez	. - 126
	extend	0x123
	btnez	. - 62

	extend	0x123				# SWRASP
	sw	$31, 0($29)
	extend	0x123
	sw	$31, 128($29)
	extend	0x123
	sw	$31, 256($29)
	extend	0x123
	sw	$31, 512($29)
	extend	0x123
	sw	$31, 640($29)
	extend	0x123
	sw	$31, 768($29)
	extend	0x123
	sw	$31, 896($29)
	extend	0x123
	sw	$31, 0($29)

	extend	0x123				# ADJSP
	addiu	$29, 0
	extend	0x123
	addiu	$29, 256
	extend	0x123
	addiu	$29, 512
	extend	0x123
	addiu	$29, 768
	extend	0x123
	addiu	$29, -1024
	extend	0x123
	addiu	$29, -768
	extend	0x123
	addiu	$29, -512
	extend	0x123
	addiu	$29, -256

	extend	0x123				# SVRS		# RESTORE
	restore	128
	extend	0x123						# SAVE
	save	128

	extend	0x123				# MOV32R
	move	$0, $16
	extend	0x123
	move	$0, $17

	extend	0x123				# MOVR32
	move	$16, $0

	extend	0x123		# LI
	li	$16, 0
	extend	0x123
	li	$16, 32
	extend	0x123
	li	$16, 64
	extend	0x123
	li	$16, 96
	extend	0x123
	li	$16, 128
	extend	0x123
	li	$16, 160
	extend	0x123
	li	$16, 192
	extend	0x123
	li	$16, 224

	extend	0x123		# CMPI
	cmpi	$16, 0
	extend	0x123
	cmpi	$16, 32
	extend	0x123
	cmpi	$16, 64
	extend	0x123
	cmpi	$16, 96
	extend	0x123
	cmpi	$16, 128
	extend	0x123
	cmpi	$16, 160
	extend	0x123
	cmpi	$16, 192
	extend	0x123
	cmpi	$16, 224

	extend	0x123		# SD
	sd	$16, 0($16)

	extend	0x123		# LB
	lb	$16, 0($16)

	extend	0x123		# LH
	lh	$16, 0($16)

	extend	0x123		# LWSP
	lw	$16, 0($29)
	extend	0x123
	lw	$16, 128($29)
	extend	0x123
	lw	$16, 256($29)
	extend	0x123
	lw	$16, 384($29)
	extend	0x123
	lw	$16, 512($29)
	extend	0x123
	lw	$16, 640($29)
	extend	0x123
	lw	$16, 768($29)
	extend	0x123
	lw	$16, 896($29)

	extend	0x123		# LW
	lw	$16, 0($16)

	extend	0x123		# LBU
	lbu	$16, 0($16)

	extend	0x123		# LHU
	lhu	$16, 0($16)

	extend	0x123		# LWPC
	lw	$16, 0($pc)
	extend	0x123
	lw	$16, 128($pc)
	extend	0x123
	lw	$16, 256($pc)
	extend	0x123
	lw	$16, 384($pc)
	extend	0x123
	lw	$16, 512($pc)
	extend	0x123
	lw	$16, 640($pc)
	extend	0x123
	lw	$16, 768($pc)
	extend	0x123
	lw	$16, 896($pc)

	extend	0x123		# LWU
	lwu	$16, 0($16)

	extend	0x123		# SB
	sb	$16, 0($16)

	extend	0x123		# SH
	sh	$16, 0($16)

	extend	0x123		# SWSP
	sw	$16, 0($29)
	extend	0x123
	sw	$16, 128($29)
	extend	0x123
	sw	$16, 256($29)
	extend	0x123
	sw	$16, 384($29)
	extend	0x123
	sw	$16, 512($29)
	extend	0x123
	sw	$16, 640($29)
	extend	0x123
	sw	$16, 768($29)
	extend	0x123
	sw	$16, 896($29)

	extend	0x123		# SW
	sw	$16, 0($16)

	extend	0x123		# RRR		# DADDU
	daddu	$16, $16, $16

	extend	0x123				# ADDU
	addu	$16, $16, $16

	extend	0x123				# DSUBU
	dsubu	$16, $16, $16

	extend	0x123				# SUBU
	subu	$16, $16, $16

	extend	0x123		# RR		# J(AL)R(C)	# JR rx
	jr	$16
	extend	0x123						# JR ra
	jr	$31
	extend	0x123						# JALR
	jalr	$16
	extend	0x123						# JRC rx
	jrc	$16
	extend	0x123						# JRC ra
	jrc	$31
	extend	0x123						# JALRC
	jalrc	$16

	extend	0x123				# SDBBP
	sdbbp	0

	extend	0x123				# SLT
	slt	$16, $16

	extend	0x123				# SLTU
	sltu	$16, $16

	extend	0x123				# SLLV
	sllv	$16, $16

	extend	0x123				# BREAK
	break	0

	extend	0x123				# SRLV
	srlv	$16, $16

	extend	0x123				# SRAV
	srav	$16, $16

	extend	0x123				# DSRL
	dsrl	$16, 8
	extend	0x123
	dsrl	$16, 1
	extend	0x123
	dsrl	$16, 2
	extend	0x123
	dsrl	$16, 3
	extend	0x123
	dsrl	$16, 4
	extend	0x123
	dsrl	$16, 5
	extend	0x123
	dsrl	$16, 6
	extend	0x123
	dsrl	$16, 7

	extend	0x123				# ENTRY/EXIT
	entry
	extend	0x123
	entry	$31
	extend	0x123
	exit	$f0
	extend	0x123
	exit	$f0-$f1
	extend	0x123
	exit

	extend	0x123				# CMP
	cmp	$16, $16

	extend	0x123				# NEG
	neg	$16, $16

	extend	0x123				# AND
	and	$16, $16

	extend	0x123				# OR
	or	$16, $16

	extend	0x123				# XOR
	xor	$16, $16

	extend	0x123				# NOT
	not	$16, $16

	extend	0x123				# MFHI
	mfhi	$16

	extend	0x123				# CNVT		# ZEB
	zeb	$16
	extend	0x123						# ZEH
	zeh	$16
	extend	0x123						# ZEW
	zew	$16
	extend	0x123						# SEB
	seb	$16
	extend	0x123						# SEH
	seh	$16
	extend	0x123						# SEW
	sew	$16

	extend	0x123				# MFLO
	mflo	$16

	extend	0x123				# DSRA
	dsra	$16, 8
	extend	0x123
	dsra	$16, 1
	extend	0x123
	dsra	$16, 2
	extend	0x123
	dsra	$16, 3
	extend	0x123
	dsra	$16, 4
	extend	0x123
	dsra	$16, 5
	extend	0x123
	dsra	$16, 6
	extend	0x123
	dsra	$16, 7

	extend	0x123				# DSLLV
	dsllv	$16, $16

	extend	0x123				# DSRLV
	dsrlv	$16, $16

	extend	0x123				# DSRAV
	dsrav	$16, $16

	extend	0x123				# MULT
	mult	$16, $16

	extend	0x123				# MULTU
	multu	$16, $16

	extend	0x123				# DIV
	div	$0, $16, $16

	extend	0x123				# DIVU
	divu	$0, $16, $16

	extend	0x123				# DMULT
	dmult	$16, $16

	extend	0x123				# DMULTU
	dmultu	$16, $16

	extend	0x123				# DDIV
	ddiv	$0, $16, $16

	extend	0x123				# DDIVU
	ddivu	$0, $16, $16

	extend	0x123		# EXTEND
	extend	0

	extend	0x123		# I64		# LDSP
	ld	$16, 0($29)

	extend	0x123				# SDSP
	sd	$16, 0($29)

	extend	0x123				# SDRASP
	sd	$31, 0($29)
	extend	0x123
	sd	$31, 256($29)
	extend	0x123
	sd	$31, 512($29)
	extend	0x123
	sd	$31, 768($29)
	extend	0x123
	sd	$31, 1024($29)
	extend	0x123
	sd	$31, 1280($29)
	extend	0x123
	sd	$31, 1536($29)
	extend	0x123
	sd	$31, 1792($29)

	extend	0x123				# DADJSP
	daddiu	$29, 0
	extend	0x123
	daddiu	$29, 256
	extend	0x123
	daddiu	$29, 512
	extend	0x123
	daddiu	$29, 768
	extend	0x123
	daddiu	$29, -1024
	extend	0x123
	daddiu	$29, -768
	extend	0x123
	daddiu	$29, -512
	extend	0x123
	daddiu	$29, -256

	extend	0x123				# LDPC
	ld	$16, 0($pc)

	extend	0x123				# DADDIU5
	daddiu	$16, 0

	extend	0x123				# DADDIUPC
	daddiu	$16, $pc, 0

	extend	0x123				# DADDIUSP
	daddiu	$16, $sp, 0

# Force some (non-delay-slot) zero bytes, to make 'objdump' print ...
	.align	4, 0
	.space	16