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
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
.machine	"any"
.text


.align	5
KeccakF1600_int:
	li	0,24
	mtctr	0
	li	0,0
	b	.Loop

.align	4
.Loop:

	vxor	26,0, 5
	vxor	27,1, 6
	vxor	28,2, 7
	vxor	29,3, 8
	vxor	30,4, 9
.long	0xF3FAD857
.long	0xF35ADB57
.long	0xF37CE857
.long	0xF39CEB57
.long	0xF3BEF257
	vxor	26,26,31
	vxor	27,27,28
	vxor	28,29,30
	vspltisb	31,1
	vxor	26,26,10
	vxor	27,27,11
	vxor	28,28,12

.long	0x13BAF8C4
.long	0x13DBF8C4
.long	0x13FCF8C4
.long	0xF3FFEA57
	vxor	26,26,30
	vxor	27,27,31
	vxor	28,28,29

.long	0xF3BAD057
.long	0xF3DCD257
.long	0xF3FCE357
	vxor	1, 1, 29
	vxor	6, 6, 29
	vxor	10,10,30
	vxor	0, 0, 31
	vxor	5, 5, 31

.long	0xF3BBD857
.long	0xF3DAD357
.long	0xF3FADA57
	vxor	3, 3, 29
	vxor	8, 8, 29
	vxor	2, 2, 30
	vxor	7, 7, 30
	vxor	11,11,31

.long	0xF3BBDB57
	vxor	4, 4, 29
	vxor	9, 9, 29
	vxor	12,12,29


.long	0x134068C4
.long	0x102170C4
.long	0x136278C4
.long	0x138380C4
.long	0x108488C4
.long	0x10A590C4
.long	0x10C698C4
.long	0x13A7A0C4
.long	0x1108A8C4
.long	0x1129B0C4
.long	0x114AB8C4
.long	0x13CBC0C4
.long	0x118CC8C4


.long	0xF01AE057
.long	0xF05D2857
.long	0xF1692957
.long	0xF0A12057
.long	0xF0212357
.long	0xF0683357
.long	0xF08CF257
.long	0xF0E83057
.long	0xF0DBD357
.long	0xF109EB57
.long	0xF18A5357
.long	0xF12AF157
.long	0xF15BE157


.long	0x7FEC0699
	addic	0,0,16

	vandc	26,2, 1
	vandc	27,3, 2
	vandc	28,4, 3
	vandc	29,0, 4
	vandc	30,1, 0
	vxor	0, 0, 26
	vxor	1, 1, 27
	vxor	2, 2, 28
	vxor	3, 3, 29
	vxor	4, 4, 30

	vandc	26,7, 6
	vandc	27,8, 7
	vandc	28,9, 8
	vandc	29,5, 9
	vandc	30,6, 5
	vxor	5, 5, 26
	vxor	6, 6, 27
	vxor	7, 7, 28
	vxor	8, 8, 29
	vxor	9, 9, 30

	vxor	0, 0, 31

.long	0xF34A5A57
.long	0xF36C5057
.long	0xF38B6257
.long	0xF3AA5257
	vandc	26,11,26
	vandc	27,27,28
	vandc	28,10,29
	vxor	10,10,26
	vxor	11,11,27
	vxor	12,12,28

	bc	16,0,.Loop

.long	0xF18C6357
	blr	
.long	0
.byte	0,12,0x14,0,0,0,0,0



.align	5
KeccakF1600:
	stdu	1,-256(1)
	li	10,63
	li	11,79
	mflr	8
	mfspr	7,256
	stvx	20,10,1
	addi	10,10,32
	stvx	21,11,1
	addi	11,11,32
	stvx	22,10,1
	addi	10,10,32
	stvx	23,11,1
	addi	11,11,32
	stvx	24,10,1
	addi	10,10,32
	stvx	25,11,1
	addi	11,11,32
	stvx	26,10,1
	addi	10,10,32
	stvx	27,11,1
	addi	11,11,32
	stvx	28,10,1
	addi	10,10,32
	stvx	29,11,1
	addi	11,11,32
	stvx	30,10,1
	stvx	31,11,1
	stw	7,252(1)
	li	0, -1
	std	8,272(1)
	mtspr	256,0

	li	11,16
.long	0x7C001E19
	li	10,32
.long	0x7C2B1E19
	addi	11,11,32
.long	0x7C4A1E19
	addi	10,10,32
.long	0x7C6B1E19
	addi	11,11,32
.long	0x7C8A1E19
	addi	10,10,32
.long	0x7CAB1E19
	addi	11,11,32
.long	0x7CCA1E19
	addi	10,10,32
.long	0x7CEB1E19
	addi	11,11,32
.long	0x7D0A1E19
	addi	10,10,32
.long	0x7D2B1E19
	addi	11,11,32
.long	0x7D4A1E19
	addi	10,10,32
.long	0x7D6B1E19
.long	0x7D8A1A99

	bl	PICmeup

	li	11,16
.long	0x7DA06699
	li	10,32
.long	0x7DCB6699
	addi	11,11,32
.long	0x7DEA6699
	addi	10,10,32
.long	0x7E0B6699
	addi	11,11,32
.long	0x7E2A6699
	addi	10,10,32
.long	0x7E4B6699
	addi	11,11,32
.long	0x7E6A6699
	addi	10,10,32
.long	0x7E8B6699
	addi	11,11,32
.long	0x7EAA6699
	addi	10,10,32
.long	0x7ECB6699
	addi	11,11,32
.long	0x7EEA6699
	addi	10,10,32
.long	0x7F0B6699
.long	0x7F2A6699
	addi	12,12,256

	bl	KeccakF1600_int

	li	11,16
.long	0x7C001F19
	li	10,32
.long	0x7C2B1F19
	addi	11,11,32
.long	0x7C4A1F19
	addi	10,10,32
.long	0x7C6B1F19
	addi	11,11,32
.long	0x7C8A1F19
	addi	10,10,32
.long	0x7CAB1F19
	addi	11,11,32
.long	0x7CCA1F19
	addi	10,10,32
.long	0x7CEB1F19
	addi	11,11,32
.long	0x7D0A1F19
	addi	10,10,32
.long	0x7D2B1F19
	addi	11,11,32
.long	0x7D4A1F19
	addi	10,10,32
.long	0x7D6B1F19
.long	0x7D8A1D99

	li	10,63
	li	11,79
	mtlr	8
	mtspr	256,7
	lvx	20,10,1
	addi	10,10,32
	lvx	21,11,1
	addi	11,11,32
	lvx	22,10,1
	addi	10,10,32
	lvx	23,11,1
	addi	11,11,32
	lvx	24,10,1
	addi	10,10,32
	lvx	25,11,1
	addi	11,11,32
	lvx	26,10,1
	addi	10,10,32
	lvx	27,11,1
	addi	11,11,32
	lvx	28,10,1
	addi	10,10,32
	lvx	29,11,1
	addi	11,11,32
	lvx	30,10,1
	lvx	31,11,1
	addi	1,1,256
	blr	
.long	0
.byte	0,12,0x04,1,0x80,0,1,0
.long	0

.globl	SHA3_absorb
.type	SHA3_absorb,@function
.section	".opd","aw"
.align	3
SHA3_absorb:
.quad	.SHA3_absorb,.TOC.@tocbase,0
.previous

.align	5
.SHA3_absorb:
	stdu	1,-256(1)
	li	10,63
	li	11,79
	mflr	8
	mfspr	7,256
	stvx	20,10,1
	addi	10,10,32
	stvx	21,11,1
	addi	11,11,32
	stvx	22,10,1
	addi	10,10,32
	stvx	23,11,1
	addi	11,11,32
	stvx	24,10,1
	addi	10,10,32
	stvx	25,11,1
	addi	11,11,32
	stvx	26,10,1
	addi	10,10,32
	stvx	27,11,1
	addi	11,11,32
	stvx	28,10,1
	addi	10,10,32
	stvx	29,11,1
	addi	11,11,32
	stvx	30,10,1
	stvx	31,11,1
	stw	7,252(1)
	li	0, -1
	std	8,272(1)
	mtspr	256,0

	li	11,16
.long	0x7C001E19
	li	10,32
.long	0x7C2B1E19
	addi	11,11,32
.long	0x7C4A1E19
	addi	10,10,32
.long	0x7C6B1E19
	addi	11,11,32
.long	0x7C8A1E19
	addi	10,10,32
.long	0x7CAB1E19
	addi	11,11,32
.long	0x7CCA1E19
	addi	10,10,32
.long	0x7CEB1E19
	addi	11,11,32
.long	0x7D0A1E19
	addi	10,10,32
.long	0x7D2B1E19
	addi	11,11,32
.long	0x7D4A1E19
	addi	10,10,32
.long	0x7D6B1E19
.long	0x7D8A1A99

	bl	PICmeup

	li	11,16
.long	0x7DA06699
	li	10,32
.long	0x7DCB6699
	addi	11,11,32
.long	0x7DEA6699
	addi	10,10,32
.long	0x7E0B6699
	addi	11,11,32
.long	0x7E2A6699
	addi	10,10,32
.long	0x7E4B6699
	addi	11,11,32
.long	0x7E6A6699
	addi	10,10,32
.long	0x7E8B6699
	addi	11,11,32
.long	0x7EAA6699
	addi	10,10,32
.long	0x7ECB6699
	addi	11,11,32
.long	0x7EEA6699
	addi	10,10,32
.long	0x7F0B6699
.long	0x7F2A6699
	li	10,-32
	li	11,-16
	addi	12,12,256
	b	.Loop_absorb

.align	4
.Loop_absorb:
	cmpld	5,6
	blt	.Labsorbed

	sub	5,5,6
	srwi	0,6,3
	mtctr	0

.long	0x7FCA6699
.long	0x7FEB6699
	vspltisb	27,7
	vxor	30,30,27
	vxor	31,31,27

	vxor	27,27,27
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,30
	vxor	0, 0, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,30
	vxor	1, 1, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,30
	vxor	2, 2, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,30
	vxor	3, 3, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,30
	vxor	4, 4, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,31
	vxor	0, 0, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,31
	vxor	1, 1, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,31
	vxor	2, 2, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,31
	vxor	3, 3, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,31
	vxor	4, 4, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,30
	vxor	5, 5, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,30
	vxor	6, 6, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,30
	vxor	7, 7, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,30
	vxor	8, 8, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,30
	vxor	9, 9, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,31
	vxor	5, 5, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,31
	vxor	6, 6, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,31
	vxor	7, 7, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,31
	vxor	8, 8, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,31
	vxor	9, 9, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,30
	vxor	10, 10, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,31
	vxor	10, 10, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,30
	vxor	11, 11, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,31
	vxor	11, 11, 26
	bdz	.Lprocess_block
.long	0x7F402499
	addi	4,4,8
	vperm	26,26,27,31
	vxor	12, 12, 26

.Lprocess_block:
	bl	KeccakF1600_int

	b	.Loop_absorb

.align	4
.Labsorbed:
	li	11,16
.long	0x7C001F19
	li	10,32
.long	0x7C2B1F19
	addi	11,11,32
.long	0x7C4A1F19
	addi	10,10,32
.long	0x7C6B1F19
	addi	11,11,32
.long	0x7C8A1F19
	addi	10,10,32
.long	0x7CAB1F19
	addi	11,11,32
.long	0x7CCA1F19
	addi	10,10,32
.long	0x7CEB1F19
	addi	11,11,32
.long	0x7D0A1F19
	addi	10,10,32
.long	0x7D2B1F19
	addi	11,11,32
.long	0x7D4A1F19
	addi	10,10,32
.long	0x7D6B1F19
.long	0x7D8A1D99

	mr	3,5
	li	10,63
	li	11,79
	mtlr	8
	mtspr	256,7
	lvx	20,10,1
	addi	10,10,32
	lvx	21,11,1
	addi	11,11,32
	lvx	22,10,1
	addi	10,10,32
	lvx	23,11,1
	addi	11,11,32
	lvx	24,10,1
	addi	10,10,32
	lvx	25,11,1
	addi	11,11,32
	lvx	26,10,1
	addi	10,10,32
	lvx	27,11,1
	addi	11,11,32
	lvx	28,10,1
	addi	10,10,32
	lvx	29,11,1
	addi	11,11,32
	lvx	30,10,1
	lvx	31,11,1
	addi	1,1,256
	blr	
.long	0
.byte	0,12,0x04,1,0x80,0,4,0
.long	0

.globl	SHA3_squeeze
.type	SHA3_squeeze,@function
.section	".opd","aw"
.align	3
SHA3_squeeze:
.quad	.SHA3_squeeze,.TOC.@tocbase,0
.previous

.align	5
.SHA3_squeeze:
	mflr	9
	subi	4,4,1
	addi	8,3,4
	mr	10,6
	li	11,0
	b	.Loop_squeeze
.align	4
.Loop_squeeze:
	lwzx	7,11,8
	lwzx	0,11,3
	cmpldi	5,8
	blt	.Lsqueeze_tail

	stbu	7,1(4)
	srwi	7,7,8
	stbu	7,1(4)
	srwi	7,7,8
	stbu	7,1(4)
	srwi	7,7,8
	stbu	7,1(4)
	stbu	0,1(4)
	srwi	0,0,8
	stbu	0,1(4)
	srwi	0,0,8
	stbu	0,1(4)
	srwi	0,0,8
	stbu	0,1(4)

	subic.	5,5,8
	bclr	12,2

	subic.	10,10,8
	ble	.Loutput_expand

	addi	11,11,16
	cmplwi	11,80
	blt	.Loop_squeeze
	subi	11,11,72
	beq	.Loop_squeeze
	addi	11,11,72
	cmplwi	11,88
	subi	11,11,8
	beq	.Loop_squeeze
	addi	11,11,8
	cmplwi	11,160
	subi	11,11,72
	beq	.Loop_squeeze
	addi	11,11,72
	blt	.Loop_squeeze
	subi	11,11,8
	b	.Loop_squeeze

.align	4
.Loutput_expand:
	bl	KeccakF1600
	mtlr	9

	addi	8,3,4
	mr	10,6
	li	11,0
	b	.Loop_squeeze

.align	4
.Lsqueeze_tail:
	mtctr	5
	subic.	5,5,4
	ble	.Loop_tail_lo
	li	8,4
	mtctr	8
.Loop_tail_lo:
	stbu	7,1(4)
	srdi	7,7,8
	bc	16,0,.Loop_tail_lo
	ble	.Lsqueeze_done
	mtctr	5
.Loop_tail_hi:
	stbu	0,1(4)
	srdi	0,0,8
	bc	16,0,.Loop_tail_hi

.Lsqueeze_done:
	blr	
.long	0
.byte	0,12,0x14,0,0,0,4,0
.long	0

.align	6
PICmeup:
	mflr	0
	bcl	20,31,$+4
	mflr	12
	addi	12,12,56
	mtlr	0
	blr	
.long	0
.byte	0,12,0x14,0,0,0,0,0
.space	28

.align	6
rhotates:
.long	0,0
.long	0,36
.long	0,1
.long	0,44
.long	0,62
.long	0,6
.long	0,28
.long	0,55
.long	0,27
.long	0,20
.long	0,3
.long	0,41
.long	0,10
.long	0,45
.long	0,43
.long	0,15
.long	0,25
.long	0,21
.long	0,39
.long	0,8
.long	0,18
.long	0,2
.long	0,61
.long	0,56
.long	0,14
.long	0,14

.long	0,0
.long	0,0
.long	0x00010203,0x04050607
.long	0x10111213,0x14151617
.long	0x10111213,0x14151617
.long	0x00010203,0x04050607

iotas:
.long	0x00000000,0x00000001
.long	0,0
.long	0x00000000,0x00008082
.long	0,0
.long	0x80000000,0x0000808a
.long	0,0
.long	0x80000000,0x80008000
.long	0,0
.long	0x00000000,0x0000808b
.long	0,0
.long	0x00000000,0x80000001
.long	0,0
.long	0x80000000,0x80008081
.long	0,0
.long	0x80000000,0x00008009
.long	0,0
.long	0x00000000,0x0000008a
.long	0,0
.long	0x00000000,0x00000088
.long	0,0
.long	0x00000000,0x80008009
.long	0,0
.long	0x00000000,0x8000000a
.long	0,0
.long	0x00000000,0x8000808b
.long	0,0
.long	0x80000000,0x0000008b
.long	0,0
.long	0x80000000,0x00008089
.long	0,0
.long	0x80000000,0x00008003
.long	0,0
.long	0x80000000,0x00008002
.long	0,0
.long	0x80000000,0x00000080
.long	0,0
.long	0x00000000,0x0000800a
.long	0,0
.long	0x80000000,0x8000000a
.long	0,0
.long	0x80000000,0x80008081
.long	0,0
.long	0x80000000,0x00008080
.long	0,0
.long	0x00000000,0x80000001
.long	0,0
.long	0x80000000,0x80008008
.long	0,0

.byte	75,101,99,99,97,107,45,49,54,48,48,32,97,98,115,111,114,98,32,97,110,100,32,115,113,117,101,101,122,101,32,102,111,114,32,80,111,119,101,114,73,83,65,32,50,46,48,55,44,67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103,62,0
.align	2