hexsha
stringlengths
40
40
size
int64
6
1.05M
ext
stringclasses
3 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
232
max_stars_repo_name
stringlengths
7
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
7
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
232
max_issues_repo_name
stringlengths
7
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
7
max_issues_count
int64
1
37.5k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
232
max_forks_repo_name
stringlengths
7
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
7
max_forks_count
int64
1
12.6k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
1.05M
avg_line_length
float64
1.16
19.7k
max_line_length
int64
2
938k
alphanum_fraction
float64
0
1
a4da2f58d5febe6508af2f27d546cb8875c68008
6,404
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_11369_717.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_11369_717.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i7-7700_9_0x48.log_11369_717.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_UC_ht+0x1a2b0, %r13 nop nop nop nop nop add $39737, %rdx mov (%r13), %edi nop nop nop cmp %rsi, %rsi lea addresses_WC_ht+0x14a94, %rcx nop nop add $62870, %r13 movw $0x6162, (%rcx) dec %rdx lea addresses_A_ht+0x1bd20, %rdx nop add $24545, %rbp mov $0x6162636465666768, %r8 movq %r8, (%rdx) nop add %r8, %r8 lea addresses_WC_ht+0x7694, %rdx nop nop nop and $50587, %rdi movl $0x61626364, (%rdx) nop nop nop nop cmp %rbp, %rbp lea addresses_UC_ht+0xe100, %r8 nop nop xor %rdx, %rdx vmovups (%r8), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %rbp nop nop nop nop nop xor $59046, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r8 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r13 push %rbx push %rcx push %rdx // Store lea addresses_PSE+0x8694, %r11 add %r12, %r12 mov $0x5152535455565758, %rbx movq %rbx, %xmm5 vmovaps %ymm5, (%r11) nop nop nop and %rdx, %rdx // Store mov $0xdd4, %rcx nop nop nop nop and $59965, %r13 movl $0x51525354, (%rcx) nop nop inc %r11 // Store lea addresses_A+0x18e94, %r10 nop nop and %rbx, %rbx mov $0x5152535455565758, %r12 movq %r12, (%r10) // Exception!!! nop nop mov (0), %r13 nop nop nop nop nop sub %r13, %r13 // Store lea addresses_A+0x18e94, %r10 nop nop nop nop nop add $44526, %rcx movl $0x51525354, (%r10) nop cmp %rcx, %rcx // Store lea addresses_US+0x2894, %r12 nop nop nop nop inc %r13 mov $0x5152535455565758, %r11 movq %r11, %xmm0 movups %xmm0, (%r12) nop nop and $51915, %r11 // Faulty Load lea addresses_A+0x18e94, %r13 nop nop nop nop nop cmp $18032, %r12 mov (%r13), %r11 lea oracles, %r13 and $0xff, %r11 shlq $12, %r11 mov (%r13,%r11,1), %r11 pop %rdx pop %rcx pop %rbx pop %r13 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_PSE', 'AVXalign': True, 'congruent': 8, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_P', 'AVXalign': True, 'congruent': 6, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': True, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 4, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_US', 'AVXalign': False, 'congruent': 9, 'size': 16, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 4, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': True, 'congruent': 9, 'size': 2, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': True, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 8, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 1, 'size': 32, 'same': False, 'NT': False}} {'54': 11369} 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 54 */
34.06383
2,999
0.652717
494e93ce8e68c2565f089204dd96ec0d8ae87076
234
asm
Assembly
src/arraylist/include.asm
jhm-ciberman/calculator-asm
f5305f345d7efdd616b34a485f7460f6789f4d9c
[ "MIT" ]
2
2019-08-03T17:09:30.000Z
2021-04-01T22:17:09.000Z
src/arraylist/include.asm
jhm-ciberman/calculator-asm
f5305f345d7efdd616b34a485f7460f6789f4d9c
[ "MIT" ]
null
null
null
src/arraylist/include.asm
jhm-ciberman/calculator-asm
f5305f345d7efdd616b34a485f7460f6789f4d9c
[ "MIT" ]
1
2019-08-04T21:26:32.000Z
2019-08-04T21:26:32.000Z
include 'ArrayListClear.asm' include 'ArrayListCreate.asm' include 'ArrayListFree.asm' include 'ArrayListGet.asm' include 'ArrayListGetLast.asm' include 'ArrayListPop.asm' include 'ArrayListPush.asm' include 'ArrayListSize.asm'
29.25
31
0.803419
c62e0ef637793e065b72cddc87a33f8f15598c3e
1,082
asm
Assembly
Dark soft/Tinba/source/-RootKit/HideReg.asm
ExaByt3s/hack_scripts
cc801b36ea25f3b5a82d2900f53f5036e7abd8ad
[ "WTFPL" ]
3
2021-01-22T19:32:23.000Z
2022-01-03T01:06:44.000Z
Dark soft/Tinba/source/-RootKit/HideReg.asm
a04512/hack_scripts
cc801b36ea25f3b5a82d2900f53f5036e7abd8ad
[ "WTFPL" ]
null
null
null
Dark soft/Tinba/source/-RootKit/HideReg.asm
a04512/hack_scripts
cc801b36ea25f3b5a82d2900f53f5036e7abd8ad
[ "WTFPL" ]
1
2019-06-18T22:10:53.000Z
2019-06-18T22:10:53.000Z
.data nHdnCount dd 0 ; Hidden records counter (for delta) .code ;; -------------------------------------------------------------------------------- ;; NewRegEnumValue proc p1:dword, p2:dword, p3:dword, p4:dword, p5:dword, p6:dword, p7:dword, p8:dword local RealRegEnumValue : dword mov RealRegEnumValue, eax ; Init counter if search from begining .if p2==0 mov nHdnCount, 0 ; else add delta to dwIndex .else mov eax, nHdnCount add p2, eax .endif @RealRegEnumValue: push p8 ; lpcbData push p7 ; lpData push p6 ; lpType push p5 ; lpReserved push p4 ; lpcchValueName push p3 ; lpValueName push p2 ; dwIndex push p1 ; hKey call RealRegEnumValue ; Real RegEnumValue .if eax!=ERROR_SUCCESS ret .endif pushad ; Decision: to hide or not to hide mov ebx, p3 call IsHiddenRegValue .if ebx==0 popad ret .endif ; Hide Value (replace by next) inc p2 ; Next dwIndex inc nHdnCount ; Increase counter (for delta) popad jmp @RealRegEnumValue NewRegEnumValue endp
20.037037
100
0.609057
219528643184e6b4779079d1c55a57d39a126339
608
asm
Assembly
oeis/069/A069928.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/069/A069928.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/069/A069928.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A069928: Number of k, 1<=k<=n, such that tau(k) divides sigma(k) where tau(x) is the number of divisors of x and sigma(x) the sum of divisors of x. ; Submitted by Jamie Morken ; 1,1,2,2,3,4,5,5,5,5,6,6,7,8,9,9,10,10,11,12,13,14,15,15,15,15,16,16,17,18,19,19,20,20,21,21,22,23,24,24,25,26,27,28,29,30,31,31,32,32,33,33,34,35,36,37,38,38,39,40,41,42,42,42,43,44,45,46,47,48,49,49,50,50,50,50,51,52,53,53,53,53,54,54,55,56,57,57,58,58,59,60,61,62,63,64,65,65,66,66 lpb $0 mov $2,$0 sub $0,1 seq $2,245656 ; Characteristic function of arithmetic numbers, cf. A003601. add $3,$2 lpe mov $0,$3 add $0,1
46.769231
285
0.662829
388492bdebc2f6c670256d3de40eef191502a891
727
asm
Assembly
oeis/254/A254782.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/254/A254782.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/254/A254782.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A254782: Indices of centered hexagonal numbers (A003215) which are also centered pentagonal numbers (A005891). ; Submitted by Jamie Morken(s4) ; 1,11,231,5061,111101,2439151,53550211,1175665481,25811090361,566668322451,12440892003551,273132955755661,5996484134620981,131649518005905911,2890292911995309051,63454794545890893201,1393115187097604341361,30585079321601404616731,671478629888133297226711,14741944778217331134370901,323651306490893151658933101,7105586798021432005362157311,155999258249980610966308527731,3424878094701552009253425452761,75191318825184163592609051433001,1650784136059350047028145706073251 lpb $0 sub $0,1 mov $1,$3 mul $1,20 add $2,1 add $2,$1 add $3,$2 lpe mov $0,$3 mul $0,10 add $0,1
45.4375
470
0.841816
15d6b6a8ab24c6fbddfd598b45595e60f7dc28f2
24,717
asm
Assembly
ScrollModus/_code/GlobalCode/enemylogik.asm
kosmonautdnb/TheLandsOfZador
66c9e8ab92f617838afe793a6c9ddaaf7273aadc
[ "MIT" ]
null
null
null
ScrollModus/_code/GlobalCode/enemylogik.asm
kosmonautdnb/TheLandsOfZador
66c9e8ab92f617838afe793a6c9ddaaf7273aadc
[ "MIT" ]
null
null
null
ScrollModus/_code/GlobalCode/enemylogik.asm
kosmonautdnb/TheLandsOfZador
66c9e8ab92f617838afe793a6c9ddaaf7273aadc
[ "MIT" ]
null
null
null
HEARTENEMYTYPE = 32 DIAMONDENEMYTYPE = 33 BACKGROUNDENEMYTYPE = 34 ITEMENEMYTYPE = 35 STONEENEMYTYPESTART = 40 STONEENEMYTYPEEND = 50 SCHALTERENEMYTYPESTART = 50 SCHALTERENEMYTYPEEND = 64 ; 63 because of and 63 in the logic ENEMY_FLAGS_DESTROYED = 128 ENEMY_FLAGS_ONSCREEN = 64 NOLEVELENEMY = $ff ENEMY_HIT_STAY_FRAMES = $02 ; 1 doesn't suffice because of collision check order in the gamelogikloop UPDOWNENEMYGUARD = $03 LEFTRIGHTENEMYGUARD = $03 UPENEMYGUARDCLEAR = $04 DOWNENEMYGUARDCLEAR = $04 LEFTENEMYGUARDCLEAR = $04 RIGHTENEMYGUARDCLEAR = $04 GUARDCLEAREXPANDX = 5 GUARDCLEAREXPANDY = 5 enemyAddGameObjectIndexStart dc.b $00 enemyAddGameObjectIndexEnd dc.b $00 COLLISIONMODE_NORMAL = $00 COLLISIONMODEFLAG_WITHFLOOR = $01 collisionMode dc.b $00 enemyNr dc.b $00 threeFrameAnimation4 ; 4 bytes! dc.b $00 dc.b $01 dc.b $02 dc.b $01 fourFrameAnimation8 ; 8 bytes! dc.b $00 dc.b $01 dc.b $02 dc.b $03 dc.b $03 dc.b $02 dc.b $01 dc.b $00 eightFrameAnimation16 ; 16 bytes! dc.b $00 dc.b $01 dc.b $02 dc.b $03 dc.b $04 dc.b $05 dc.b $06 dc.b $07 dc.b $07 dc.b $06 dc.b $05 dc.b $04 dc.b $03 dc.b $02 dc.b $01 dc.b $00 ;--------------------------------------------------------- ;---gets a free game object --- ;---returns accu $ff if not possible --- ;--------------------------------------------------------- getFreeGameObject SUBROUTINE ldx enemyAddGameObjectIndexStart .next lda GameObjectCollisionType,x bne .notfree txa rts .notfree inx cpx enemyAddGameObjectIndexEnd bne .next lda #$ff rts ;--------------------------------------------------------- ;---gets a free game object or removes one in the level--- ;---returns accu $ff if not possible --- ;--------------------------------------------------------- getNewGameObject SUBROUTINE jsr getFreeGameObject cmp #$ff bne .found jsr clearMostOutsideEnemy ; returns ff or index .found rts enemyAddCollisionType dc.b $00 enemyAddEnemyType dc.b $00 enemyAddPosX dc.w $0000 enemyAddPosY dc.w $0000 enemyAddLevelEnemyIndex dc.b $00 enemyAddPropertyIntern dc.b $00 enemyAddSpecialValue dc.b $00 ;--------------------------------------------------------- ;--- adds a enemy / addEnemyLevel should be used --- ;--------------------------------------------------------- addEnemyIntern SUBROUTINE jsr getNewGameObject cmp #$ff bne .freeslotfound rts .freeslotfound tax lda #$00 sta GameObjectXPosLoLo,x sta GameObjectYPosLoLo,x sta GameObjectSpriteImage,x sta GameObjectSpriteFlippedX,x sta GameObjectSpritePaintWhite,x sta GameObjectSpriteValue,x sta GameObjectFlags1,x sta GameObjectFlags2,x sta GameObjectVar1,x sta GameObjectVar2,x sta GameObjectVar3,x sta GameObjectVar4,x sta GameObjectVar5,x sta GameObjectVar6,x sta GameObjectVar7,x sta GameObjectVar8,x sta GameObjectVar9,x sta GameObjectVar10,x sta GameObjectConfiguration,x sta GameObjectAnimType,x sta GameObjectActiveCounter,x sta GameObjectHit,x lda #$01 sta GameObjectVisible,x lda enemyAddPosX + 0 sta GameObjectXPosLo,x lda enemyAddPosX + 1 sta GameObjectXPosHi,x lda enemyAddPosY + 0 sta GameObjectYPosLo,x lda enemyAddPosY + 1 sta GameObjectYPosHi,x lda enemyAddCollisionType sta GameObjectCollisionType,x lda enemyAddEnemyType sta GameObjectEnemyType,x lda enemyAddLevelEnemyIndex sta GameObjectLevelEnemyIndex,x ldy enemyAddEnemyType lda enemyXStart,y sta GameObjectXStart,x lda enemyYStart,y sta GameObjectYStart,x lda enemyXEnd,y sta GameObjectXEnd,x lda enemyYEnd,y sta GameObjectYEnd,x lda enemyHitPoints,y sta GameObjectHitPoints,x lda enemyAddEnemyType jsr initEnemy lda enemyNr rts addEnemyLevelXPos dc.b $00 addEnemyLevelYPos dc.b $00 ;--------------------------------------------------------- ;--- adds a enemy at the given x if within a y frame --- ;--------------------------------------------------------- SUBROUTINE .count dc.b $00 .addEnemyLevelYPosBottom dc.b $00 .addEnemyLevelYPosTop dc.b $00 addEnemyLevel lda ENEMYXSPANCOUNT bne .wehavesome .noenemy rts .wehavesome ldy addEnemyLevelXPos lda (ZP_ENEMYX_XARRAYINDEX),y beq .noenemy tay dey lda (ZP_ENEMYX_COUNT),y sta .count lda (ZP_ENEMYX_EARRAYINDEX),y tay .nexty lda (ZP_ENEMYY_YPOSITION),y cmp .addEnemyLevelYPosTop bcc .donexty cmp .addEnemyLevelYPosBottom bcs .donexty lda (ZP_ENEMYY_ENEMYTYPE),y and #ENEMY_FLAGS_DESTROYED | ENEMY_FLAGS_ONSCREEN bne .donexty lda (ZP_ENEMYY_YPOSITION),y asl asl asl sta enemyAddPosY + 0 lda (ZP_ENEMYY_YPOSITION),y lsr lsr lsr lsr lsr sta enemyAddPosY + 1 lda addEnemyLevelXPos asl asl sta enemyAddPosX + 0 lda addEnemyLevelXPos lsr lsr lsr lsr lsr lsr sta enemyAddPosX + 1 lda #GAMEOBJECT_COLLISIONTYPE_ENEMY sta enemyAddCollisionType jsr checkForCollectables ; move enemy up ldx enemyAddEnemyType lda enemyAddPosY + 0 clc adc #<$08 sta enemyAddPosY + 0 lda enemyAddPosY + 1 adc #>$08 sta enemyAddPosY + 1 lda enemyAddPosY + 0 sec sbc enemyYEnd,x sta enemyAddPosY + 0 lda enemyAddPosY + 1 sbc #$00 sta enemyAddPosY + 1 sty enemyAddLevelEnemyIndex jsr addEnemyIntern ldy enemyAddLevelEnemyIndex cmp #$ff beq .notonscreen lda (ZP_ENEMYY_ENEMYTYPE),y ora #ENEMY_FLAGS_ONSCREEN sta (ZP_ENEMYY_ENEMYTYPE),y .notonscreen .donexty iny dec .count beq .nextyfin jmp .nexty .nextyfin rts ; not in y screen .foundy rts checkForCollectables lda (ZP_ENEMYY_ENEMYTYPE),y and #63 ; because of the two flags for on screen and destroyed sta enemyAddEnemyType ldx #NORMALENEMIESSTARTINDEX stx enemyAddGameObjectIndexStart ldx #NORMALENEMIESENDINDEX stx enemyAddGameObjectIndexEnd cmp #HEARTENEMYTYPE bne .notheart lda #ENEMY_TYPE_HEART sta enemyAddEnemyType lda #COLLECTABLE_TYPE_HEART sta enemyAddPropertyIntern jmp .collectable .notheart cmp #DIAMONDENEMYTYPE bne .notdiamond lda #ENEMY_TYPE_DIAMOND sta enemyAddEnemyType lda #COLLECTABLE_TYPE_DIAMOND sta enemyAddPropertyIntern jmp .collectable .notdiamond cmp #STONEENEMYTYPESTART bcc .notstone cmp #STONEENEMYTYPEEND bcs .notstone sta enemyAddSpecialValue AddMagicPre lda #ENEMY_TYPE_BACKGROUND sta enemyAddEnemyType lda #SPRITEFRAMES_SPARKLES sta enemyAddPropertyIntern lda #GAMEOBJECT_COLLISIONTYPE_MAGIC sta enemyAddCollisionType jmp .background .notstone cmp #SCHALTERENEMYTYPESTART bcc .notschalter cmp #SCHALTERENEMYTYPEEND bcs .notschalter sec sbc #$01 sta enemyAddSpecialValue lda #ENEMY_TYPE_SCHALTER sta enemyAddEnemyType lda #SPRITEFRAMES_SCHALTER sta enemyAddPropertyIntern lda #GAMEOBJECT_COLLISIONTYPE_SCHALTER sta enemyAddCollisionType jmp .background .notschalter cmp #BACKGROUNDENEMYTYPE bne .notbackgroundanim lda #ENEMY_TYPE_BACKGROUND sta enemyAddEnemyType lda #SPRITEFRAMES_BACKGROUND sta enemyAddPropertyIntern lda #GAMEOBJECT_COLLISIONTYPE_NO_COLLISION sta enemyAddCollisionType jmp .background .notbackgroundanim rts .collectable lda #GAMEOBJECT_COLLISIONTYPE_COLLECTABLE sta enemyAddCollisionType .background lda #COLLECTABLESFROM sta enemyAddGameObjectIndexStart lda #COLLECTABLESTO sta enemyAddGameObjectIndexEnd rts ;--------------------------------------------------------- ;--- adds all enemies for the given column --- ;--------------------------------------------------------- addEnemyLevelX ; search on y axis lda addEnemyLevelYPos sec sbc #UPDOWNENEMYGUARD bcs .normalnoclip1 lda #$00 .normalnoclip1 sta .addEnemyLevelYPosTop lda addEnemyLevelYPos clc adc #DISPLAYAREAROWS+UPDOWNENEMYGUARD bcc .normalnoclip2 lda #255 .normalnoclip2 sta .addEnemyLevelYPosBottom jsr addEnemyLevel rts ;--------------------------------------------------------- ;--- adds all enemies for the given row --- ;--------------------------------------------------------- .counter dc.b $00 addEnemyLevelY ; search on y axis lda addEnemyLevelYPos sta .addEnemyLevelYPosTop lda addEnemyLevelYPos clc adc #$01 sta .addEnemyLevelYPosBottom lda addEnemyLevelXPos sec sbc #LEFTRIGHTENEMYGUARD bcs .normalnoclip3 lda #$00 .normalnoclip3 sta addEnemyLevelXPos lda #40 + LEFTRIGHTENEMYGUARD*2 sta .counter .temp jsr addEnemyLevel inc addEnemyLevelXPos dec .counter bne .temp rts ;--------------------------------------------------------- ;--- adds all enemies for the current screen --- ;--------------------------------------------------------- SUBROUTINE .counter dc.b $00 .addEnemyLevelXPos dc.b $00 addEnemyAllOnScreen lda scrollPosXDiv4 sta .addEnemyLevelXPos lda scrollPosYDiv8 sta addEnemyLevelYPos lda #40+LEFTRIGHTENEMYGUARD sta .counter .temp lda .addEnemyLevelXPos sta addEnemyLevelXPos jsr addEnemyLevelX inc .addEnemyLevelXPos dec .counter bne .temp rts ;--------------------------------------------------------- ;--- calls the in the accu given enemies init handler --- ;--- accu = enemytype, x = gameobjectnr --- ;--------------------------------------------------------- initEnemy SUBROUTINE stx .saveX + 1 tax asl tay lda enemyInitFuncs + 0,y sta .jmp + 1 lda enemyInitFuncs + 1,y sta .jmp + 2 .saveX ldx #$44 .jmp jmp $4444 ;--------------------------------------------------------- ;--- calls the in the accu given enemies frame handler --- ;--------------------------------------------------------- handleEnemy SUBROUTINE stx .xrestore + 1 sty .yrestore + 1 sta enemyNr tax lda #COLLISIONMODE_NORMAL sta collisionMode lda GameObjectEnemyType,x asl tax lda enemyHandleFuncs + 0,x sta .jmp + 1 lda enemyHandleFuncs + 1,x sta .jmp + 2 ldx enemyNr .jmp jsr $4444 .xrestore ldx #$44 .yrestore ldy #$44 rts ;--------------------------------------------------------- ;--- function to clear a enemy if it is outside --- ;--- the extended screen area --- ;--------------------------------------------------------- clearLeftGuard dc.b $00 clearRightGuard dc.b $00 clearUpGuard dc.b $00 clearDownGuard dc.b $00 SUBROUTINE .testPosX dc.w $00 .testPosY dc.w $00 .enemiesEnemyDistance ds.b GAMEOBJECTCOUNT,$00 .enemiesEnemyNr ds.b GAMEOBJECTCOUNT,$00 .enemiesEnemyCount dc.b $00 .enemiesFarestValue dc.b $00 .enemiesFarestNr dc.b $00 .enemyNrIntern dc.b $00 .outa dc.b $00 .distance dc.b $00 clearMostOutsideEnemyExpanded lda #LEFTENEMYGUARDCLEAR + GUARDCLEAREXPANDX sta clearLeftGuard lda #UPENEMYGUARDCLEAR + GUARDCLEAREXPANDY sta clearUpGuard lda #40+RIGHTENEMYGUARDCLEAR + GUARDCLEAREXPANDX sta clearRightGuard lda #DISPLAYAREAROWS+DOWNENEMYGUARDCLEAR + GUARDCLEAREXPANDY sta clearDownGuard jmp clearMostOutsideEnemyIntern clearMostOutsideEnemy lda #LEFTENEMYGUARDCLEAR sta clearLeftGuard lda #UPENEMYGUARDCLEAR sta clearUpGuard lda #40+RIGHTENEMYGUARDCLEAR sta clearRightGuard lda #DISPLAYAREAROWS+DOWNENEMYGUARDCLEAR sta clearDownGuard clearMostOutsideEnemyIntern lda #$00 sta .enemiesEnemyCount lda enemyAddGameObjectIndexStart sta .enemyNrIntern .collectLoop ldy .enemyNrIntern lda GameObjectCollisionType,y bne .doCheck jmp .next .doCheck jsr getGameObjectScreenPosChars ldx .enemiesEnemyCount lda #$00 sta .distance sta .outa lda gameObjectScreenPosXChars + 0 clc adc clearLeftGuard ; 32 pixel sta .testPosX + 0 lda gameObjectScreenPosXChars + 1 adc #$00 ; 32 pixel sta .testPosX + 1 bpl .itsDisplayed1 lda #$01 sta .outa lda .testPosX + 0 eor #$ff clc adc #$01 clc adc .distance sta .distance .itsDisplayed1 lda gameObjectScreenPosYChars + 0 clc adc clearUpGuard ; 32 pixel sta .testPosY + 0 lda gameObjectScreenPosYChars + 1 adc #$00 ; 32 pixel sta .testPosY + 1 bpl .itsDisplayed1b lda #$01 sta .outa lda .testPosY + 0 eor #$ff clc adc #$01 clc adc .distance sta .distance .itsDisplayed1b lda gameObjectScreenPosXChars + 0 sec sbc clearRightGuard sta .testPosX + 0 lda gameObjectScreenPosXChars + 1 sbc #$00 sta .testPosX + 1 bmi .itsDisplayed2 lda #$01 sta .outa lda .testPosX + 0 clc adc .distance sta .distance jmp .checka .itsDisplayed2 lda gameObjectScreenPosYChars + 0 sec sbc clearDownGuard sta .testPosY + 0 lda gameObjectScreenPosYChars + 1 sbc #$00 sta .testPosY + 1 bmi .itsDisplayed2b lda #$01 sta .outa lda .testPosY + 0 clc adc .distance sta .distance jmp .checka .itsDisplayed2b .checka lda .outa beq .noouta ldx .enemiesEnemyCount lda .enemyNrIntern sta .enemiesEnemyNr,x lda .distance sta .enemiesEnemyDistance,x inc .enemiesEnemyCount .noouta .next inc .enemyNrIntern lda .enemyNrIntern cmp enemyAddGameObjectIndexEnd beq .collectLoopfin jmp .collectLoop .collectLoopfin ldx .enemiesEnemyCount bne .someEnemiesCollected lda #$ff rts .someEnemiesCollected ; now search the one with the farest distance dex lda .enemiesEnemyDistance,x sta .enemiesFarestValue stx .enemiesFarestNr .farloop lda .enemiesEnemyDistance,x cmp .enemiesFarestValue bmi .notfarer stx .enemiesFarestNr sta .enemiesFarestValue .notfarer dex bpl .farloop ldx .enemiesFarestNr lda .enemiesEnemyNr,x jsr removeEnemyFromScreen ldx .enemiesFarestNr lda .enemiesEnemyNr,x rts ;--------------------------------------------------------- ;--- gets the screenposition of a gameobject in pixels --- ;--------------------------------------------------------- gameObjectScreenPosX dc.w $0000 gameObjectScreenPosY dc.w $0000 SUBROUTINE .scrollSubX dc.w $0000 .scrollSubY dc.w $0000 getGameObjectScreenPos lda GameObjectXPosLo,y sec sbc scrollPosXCurrent + 0 sta gameObjectScreenPosX + 0 lda GameObjectXPosHi,y sbc scrollPosXCurrent + 1 sta gameObjectScreenPosX + 1 lda GameObjectYPosLo,y sec sbc scrollPosYCurrent + 0 sta gameObjectScreenPosY + 0 lda GameObjectYPosHi,y sbc scrollPosYCurrent + 1 sta gameObjectScreenPosY + 1 rts ;--------------------------------------------------------- ;--- gets the screenposition of a gameobject in chars --- ;--------------------------------------------------------- gameObjectScreenPosXChars dc.w $0000 gameObjectScreenPosYChars dc.w $0000 getGameObjectScreenPosChars SUBROUTINE jsr getGameObjectScreenPos lda gameObjectScreenPosX + 0 lsr lsr sta gameObjectScreenPosXChars + 0 lda gameObjectScreenPosX + 1 asl asl asl asl asl asl ora gameObjectScreenPosXChars + 0 sta gameObjectScreenPosXChars + 0 lda gameObjectScreenPosX + 1 lsr lsr sta gameObjectScreenPosXChars + 1 lda gameObjectScreenPosX + 1 bpl .notnegx lda #%11000000 ora gameObjectScreenPosXChars + 1 sta gameObjectScreenPosXChars + 1 .notnegx lda gameObjectScreenPosY + 0 lsr lsr lsr sta gameObjectScreenPosYChars + 0 lda gameObjectScreenPosY + 1 asl asl asl asl asl ora gameObjectScreenPosYChars + 0 sta gameObjectScreenPosYChars + 0 lda gameObjectScreenPosY + 1 lsr lsr lsr sta gameObjectScreenPosYChars + 1 lda gameObjectScreenPosY + 1 bpl .notnegy lda #%11100000 ora gameObjectScreenPosYChars + 1 sta gameObjectScreenPosYChars + 1 .notnegy rts ;--------------------------------------------------------- ;--- removes the enemy in accu from the screen --- ;--------------------------------------------------------- removeEnemyFromScreen SUBROUTINE stx .restoreX + 1 sty .restoreY + 1 tax lda #$00 sta GameObjectCollisionType,x sta GameObjectVisible,x ldy GameObjectLevelEnemyIndex,x cpy #NOLEVELENEMY beq .nolevelEnemy lda (ZP_ENEMYY_ENEMYTYPE),y and #255-ENEMY_FLAGS_ONSCREEN sta (ZP_ENEMYY_ENEMYTYPE),y .nolevelEnemy .restoreX ldx #$44 .restoreY ldy #$44 rts ;--------------------------------------------------------- ;--- marks the enemy in accu as destroyed in the level --- ;--------------------------------------------------------- removeEnemyFromLevel SUBROUTINE stx .restoreX + 1 sty .restoreY + 1 ; tax at removeEnemyFromScreen jsr removeEnemyFromScreen ldy GameObjectLevelEnemyIndex,x cpy #NOLEVELENEMY beq .nolevelEnemy lda (ZP_ENEMYY_ENEMYTYPE),y ora #ENEMY_FLAGS_DESTROYED sta (ZP_ENEMYY_ENEMYTYPE),y .nolevelEnemy .restoreX ldx #$44 .restoreY ldy #$44 rts ;--------------------------------------------------------- ;--- moves the enemy sprite down by accu pixels --- ;--- returns Accu 0 if not collided and 1 if collided --- ;--------------------------------------------------------- moveEnemyDownByAccu SUBROUTINE stx .restoreX + 1 ldx enemyNr clc adc GameObjectYPosLo,x sta GameObjectYPosLo,x lda GameObjectYPosHi,x adc #$00 sta GameObjectYPosHi,x .restoreX ldx #$44 jmp collisionEnemyDown ;--------------------------------------------------------- ;--- moves the enemy sprite up by accu pixels --- ;--- returns Accu 0 if not collided and 1 if collided --- ;--------------------------------------------------------- moveEnemyUpByAccu SUBROUTINE sta .collideSub + 1 stx .restoreX + 1 ldx enemyNr lda GameObjectYPosLo,x sec .collideSub sbc #$44 sta GameObjectYPosLo,x lda GameObjectYPosHi,x sbc #$00 sta GameObjectYPosHi,x .restoreX ldx #$44 jmp collisionEnemyUp ;--------------------------------------------------------- ;--- moves the enemy sprite right by accu pixels --- ;--- returns Accu 0 if not collided and 1 if collided --- ;--------------------------------------------------------- moveEnemyRightByAccu SUBROUTINE stx .restoreX + 1 ldx enemyNr clc adc GameObjectXPosLo,x sta GameObjectXPosLo,x lda GameObjectXPosHi,x adc #$00 sta GameObjectXPosHi,x .restoreX ldx #$44 jmp collisionEnemyRight ;--------------------------------------------------------- ;--- moves the enemy sprite left by accu pixels --- ;--- returns Accu 0 if not collided and 1 if collided --- ;--------------------------------------------------------- moveEnemyLeftByAccu SUBROUTINE stx .restoreX + 1 ldx enemyNr sta .collideSub + 1 lda GameObjectXPosLo,x sec .collideSub sbc #$44 sta GameObjectXPosLo,x lda GameObjectXPosHi,x sbc #$00 sta GameObjectXPosHi,x .restoreX ldx #$44 jmp collisionEnemyLeft ;--------------------------------------------------------- ;--- collides down and moves enemy to right position --- ;--- returns Accu 0 if not collided and 1 if collided --- ;--------------------------------------------------------- collisionEnemyDown SUBROUTINE stx .restoreX + 1 sty .restoreY + 1 lda #$00 sta .collided + 1 lda enemyNr jsr getCollisionFlagsDownForGameObject and #CHARFLAG_COLLISION beq .nocollision lda #$01 sta .collided + 1 lda enemyNr jsr replaceGameObjectToCollisionDown .nocollision .restoreX ldx #$44 .restoreY ldy #$44 .collided lda #$44 rts ;--------------------------------------------------------- ;--- collides up and moves enemy to right position --- ;--- returns Accu 0 if not collided and 1 if collided --- ;--------------------------------------------------------- collisionEnemyUp SUBROUTINE stx .restoreX + 1 sty .restoreY + 1 lda #$00 sta .collided + 1 lda enemyNr jsr getCollisionFlagsUpForGameObject and #CHARFLAG_COLLISION beq .nocollision lda #$01 sta .collided + 1 lda enemyNr jsr replaceGameObjectToCollisionUp .nocollision .restoreX ldx #$44 .restoreY ldy #$44 .collided lda #$44 rts ;--------------------------------------------------------- ;--- test collision to the right --- ;--- returns Accu 0 if not collided and 1 if collided --- ;--------------------------------------------------------- collisionEnemyRight SUBROUTINE stx .restoreX + 1 sty .restoreY + 1 lda #$00 sta .collided + 1 sta .retflags + 1 lda enemyNr jsr getCollisionFlagsRightForGameObject sta .retflags + 1 lda collisionMode and #COLLISIONMODEFLAG_WITHFLOOR beq .ready ldy enemyNr ldx #$00 jsr getGameObjectRectangle lda collisionFlagRectYE + 0 sta collisionFlagRectYS + 0 lda collisionFlagRectYE + 1 sta collisionFlagRectYS + 1 lda collisionFlagRectXE + 0 sta collisionFlagRectXS + 0 lda collisionFlagRectXE + 1 sta collisionFlagRectXS + 1 jsr getCollisionFlags and #CHARFLAG_COLLISION bne .ready lda #CHARFLAG_COLLISION ora .retflags + 1 sta .retflags + 1 .ready .retflags lda #$44 and #CHARFLAG_COLLISION beq .nocollision lda #$01 sta .collided + 1 lda enemyNr jsr replaceGameObjectToCollisionRight .nocollision .restoreX ldx #$44 .restoreY ldy #$44 .collided lda #$44 rts ;--------------------------------------------------------- ;--- test collision to the left --- ;--- returns Accu 0 if not collided and 1 if collided --- ;--------------------------------------------------------- collisionEnemyLeft SUBROUTINE stx .restoreX + 1 sty .restoreY + 1 lda #$00 sta .collided + 1 sta .retflags + 1 lda enemyNr jsr getCollisionFlagsLeftForGameObject sta .retflags + 1 lda collisionMode and #COLLISIONMODEFLAG_WITHFLOOR beq .ready ldy enemyNr ldx #$00 jsr getGameObjectRectangle lda collisionFlagRectYE + 0 sta collisionFlagRectYS + 0 lda collisionFlagRectYE + 1 sta collisionFlagRectYS + 1 lda collisionFlagRectXS + 0 sta collisionFlagRectXE + 0 lda collisionFlagRectXS + 1 sta collisionFlagRectXE + 1 jsr getCollisionFlags and #CHARFLAG_COLLISION bne .ready lda #CHARFLAG_COLLISION ora .retflags + 1 sta .retflags + 1 .ready .retflags lda #$44 and #CHARFLAG_COLLISION beq .nocollision lda #$01 sta .collided + 1 lda enemyNr jsr replaceGameObjectToCollisionLeft .nocollision .restoreX ldx #$44 .restoreY ldy #$44 .collided lda #$44 rts ;--------------------------------------------------------- ;--- moves the enemy left or right --- ;--- returns Accu 0 if not collided and 1 if collided --- ;--------------------------------------------------------- enemyMoveX SUBROUTINE cmp #$00 beq .done bmi .neg jmp moveEnemyRightByAccu .neg eor #$ff clc adc #$01 jmp moveEnemyLeftByAccu .done rts enemyMoveXNoCollision SUBROUTINE stx .restoreX + 1 sta .bmitest + 1 ldx enemyNr clc adc GameObjectXPosLo,x sta GameObjectXPosLo,x lda #$00 .bmitest ldx #$44 bpl .notbmi lda #$ff .notbmi ldx enemyNr adc GameObjectXPosHi,x sta GameObjectXPosHi,x .restoreX ldx #$44 rts ;--------------------------------------------------------- ;--- moves the enemy up or down --- ;--- returns Accu 0 if not collided and 1 if collided --- ;--------------------------------------------------------- enemyMoveY SUBROUTINE cmp #$00 beq .done bmi .neg jmp moveEnemyDownByAccu .neg eor #$ff clc adc #$01 jmp moveEnemyUpByAccu .done rts enemyMoveYNoCollision SUBROUTINE stx .restoreX + 1 sta .bmitest + 1 ldx enemyNr clc adc GameObjectYPosLo,x sta GameObjectYPosLo,x lda #$00 .bmitest ldx #$44 bpl .notbmi lda #$ff .notbmi ldx enemyNr adc GameObjectYPosHi,x sta GameObjectYPosHi,x .restoreX ldx #$44 rts ;--------------------------------------------------------- ;--- explodes the enemy and removes an enemy from level--- ;--- enemy nr in accu --- ;--------------------------------------------------------- explodeEnemy SUBROUTINE tay lda GameObjectCollisionType,y cmp #GAMEOBJECT_COLLISIONTYPE_ENEMY bne .noenemy jsr addSparkles .noenemy jsr addExplosionForGameObject lda #ENEMY_TYPE_EXPLOSION sta GameObjectEnemyType,y lda enemyYEnd + ENEMY_TYPE_EXPLOSION ; for movedown sta GameObjectYEnd,y lda #$00 sta GameObjectVar1,y sta GameObjectSpritePaintWhite,y sta GameObjectHitPoints,y lda #GAMEOBJECT_COLLISIONTYPE_NO_COLLISION sta GameObjectCollisionType,y lda #SOUND_EXPLOSION jsr triggerSound rts ;------------------------------------------------------------- ;-- removes all enemies from the screen -- ;------------------------------------------------------------- removeAllEnemiesFromScreen SUBROUTINE ldx #GAMEOBJECTCOUNT - 1 .next lda GameObjectLevelEnemyIndex,x cmp #NOLEVELENEMY beq .notclear txa jsr removeEnemyFromScreen .notclear dex bpl .next rts ;------------------------------------------------------------- ;-- adds some sparkles if enemy exploded -- ;------------------------------------------------------------- addSparkles SUBROUTINE jsr addExplosionForGameObject lda #$00 sta enemyAddPropertyIntern addSparklesIntern stx .xrestore + 1 sty .yrestore + 1 lda #ENEMYSHOTSFROM sta enemyAddGameObjectIndexStart lda #ENEMYSHOTSTO sta enemyAddGameObjectIndexEnd lda GameObjectXPosLo,y sta enemyAddPosX + 0 lda GameObjectXPosHi,y sta enemyAddPosX + 1 lda GameObjectYPosLo,y sta enemyAddPosY + 0 lda GameObjectYPosHi,y sta enemyAddPosY + 1 lda #GAMEOBJECT_COLLISIONTYPE_NO_COLLISION sta enemyAddCollisionType lda #NOLEVELENEMY sta enemyAddLevelEnemyIndex lda #ENEMY_TYPE_SPARKLES sta enemyAddEnemyType jsr addEnemyIntern .xrestore ldx #$44 .yrestore ldy #$44 rts add50 SUBROUTINE lda #SPRITEFRAMES_HIT50 sta enemyAddPropertyIntern jmp addSparklesIntern
20.444169
102
0.662176
71ce41ebfd575942f2ea8c473083a164c86c60e8
1,085
asm
Assembly
_build/dispatcher/jmp_ippsAESDecryptCTR_29496131.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
1
2021-10-04T10:21:54.000Z
2021-10-04T10:21:54.000Z
_build/dispatcher/jmp_ippsAESDecryptCTR_29496131.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
_build/dispatcher/jmp_ippsAESDecryptCTR_29496131.asm
zyktrcn/ippcp
b0bbe9bbb750a7cf4af5914dd8e6776a8d544466
[ "Apache-2.0" ]
null
null
null
extern m7_ippsAESDecryptCTR:function extern n8_ippsAESDecryptCTR:function extern y8_ippsAESDecryptCTR:function extern e9_ippsAESDecryptCTR:function extern l9_ippsAESDecryptCTR:function extern n0_ippsAESDecryptCTR:function extern k0_ippsAESDecryptCTR:function extern ippcpJumpIndexForMergedLibs extern ippcpSafeInit:function segment .data align 8 dq .Lin_ippsAESDecryptCTR .Larraddr_ippsAESDecryptCTR: dq m7_ippsAESDecryptCTR dq n8_ippsAESDecryptCTR dq y8_ippsAESDecryptCTR dq e9_ippsAESDecryptCTR dq l9_ippsAESDecryptCTR dq n0_ippsAESDecryptCTR dq k0_ippsAESDecryptCTR segment .text global ippsAESDecryptCTR:function (ippsAESDecryptCTR.LEndippsAESDecryptCTR - ippsAESDecryptCTR) .Lin_ippsAESDecryptCTR: db 0xf3, 0x0f, 0x1e, 0xfa call ippcpSafeInit wrt ..plt align 16 ippsAESDecryptCTR: db 0xf3, 0x0f, 0x1e, 0xfa mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc] movsxd rax, dword [rax] lea r11, [rel .Larraddr_ippsAESDecryptCTR] mov r11, qword [r11+rax*8] jmp r11 .LEndippsAESDecryptCTR:
27.820513
95
0.797235
d7386a20e50e182e0ea1d0df079e7cffee065a5b
6,705
asm
Assembly
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_37.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_37.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48.log_21829_37.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r15 push %r8 push %r9 push %rcx push %rdi push %rsi lea addresses_A_ht+0xe30b, %rsi lea addresses_WT_ht+0x1aca3, %rdi nop xor $199, %r15 mov $28, %rcx rep movsb nop nop nop nop nop cmp $52273, %r11 lea addresses_D_ht+0x65de, %rsi lea addresses_normal_ht+0x133b, %rdi and %r9, %r9 mov $123, %rcx rep movsl nop nop xor %r11, %r11 lea addresses_normal_ht+0xd3cb, %rsi nop xor %r9, %r9 mov (%rsi), %r11 nop nop nop and %r11, %r11 lea addresses_normal_ht+0x6fcb, %rcx nop nop nop nop nop dec %r9 mov $0x6162636465666768, %r15 movq %r15, %xmm7 movups %xmm7, (%rcx) nop add %rsi, %rsi lea addresses_A_ht+0x97eb, %rsi lea addresses_WT_ht+0x877b, %rdi add $32593, %r8 mov $115, %rcx rep movsl nop nop and $64538, %r9 lea addresses_A_ht+0x301b, %r15 nop nop cmp %rdi, %rdi mov $0x6162636465666768, %rcx movq %rcx, (%r15) add %r8, %r8 lea addresses_UC_ht+0x6deb, %r11 nop nop nop nop nop cmp $52366, %rcx movups (%r11), %xmm3 vpextrq $0, %xmm3, %r8 nop inc %r9 pop %rsi pop %rdi pop %rcx pop %r9 pop %r8 pop %r15 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r14 push %r8 push %rax push %rdi // Store lea addresses_WC+0x1c3cb, %r8 nop nop nop sub %r10, %r10 mov $0x5152535455565758, %rax movq %rax, (%r8) nop dec %r8 // Store lea addresses_A+0x9bcb, %r14 add %rdi, %rdi mov $0x5152535455565758, %r8 movq %r8, %xmm2 vmovups %ymm2, (%r14) nop nop nop nop nop add $31389, %r8 // Store lea addresses_WC+0x91bb, %r8 nop nop nop xor %r12, %r12 movl $0x51525354, (%r8) nop xor $59461, %r10 // Load lea addresses_normal+0x8b0b, %rdi clflush (%rdi) nop nop nop nop nop xor $24913, %r8 mov (%rdi), %r10d nop nop sub $8639, %r14 // Faulty Load lea addresses_WC+0x18bcb, %r11 inc %r14 movb (%r11), %r12b lea oracles, %rax and $0xff, %r12 shlq $12, %r12 mov (%rax,%r12,1), %r12 pop %rdi pop %rax pop %r8 pop %r14 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': True, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 10, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A', 'AVXalign': False, 'congruent': 11, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 3, 'size': 4, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal', 'AVXalign': False, 'congruent': 5, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WC', 'AVXalign': False, 'congruent': 0, 'size': 1, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 11, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 10, 'size': 16, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': True}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'AVXalign': False, 'congruent': 3, 'size': 8, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 5, 'size': 16, 'same': False, 'NT': False}} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
37.044199
2,999
0.656227
285c9b0873a0d107f75dd7e9edf106ab2ac8e802
8,116
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_700.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_700.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i7-7700_9_0x48.log_21829_700.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r13 push %r14 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x7f37, %r13 add %r14, %r14 mov (%r13), %di nop nop nop nop xor $64129, %rbx lea addresses_WT_ht+0xc89f, %r13 nop nop nop nop nop xor $40871, %r14 mov $0x6162636465666768, %rdi movq %rdi, (%r13) nop nop nop and %rbx, %rbx lea addresses_D_ht+0x19419, %rsi lea addresses_D_ht+0xa6b1, %rdi nop nop nop nop nop cmp %r11, %r11 mov $13, %rcx rep movsl nop nop nop nop nop cmp %rcx, %rcx lea addresses_A_ht+0x12809, %rsi lea addresses_WC_ht+0x6969, %rdi nop nop nop cmp $3520, %r14 mov $75, %rcx rep movsb nop nop nop nop inc %rbx lea addresses_normal_ht+0x154da, %rbx and $49845, %r11 mov (%rbx), %rdi nop nop nop nop nop add $61983, %r14 lea addresses_WT_ht+0x18289, %rsi nop nop nop nop nop add $50671, %r14 mov $0x6162636465666768, %r11 movq %r11, %xmm2 vmovups %ymm2, (%rsi) nop nop nop xor %r14, %r14 lea addresses_D_ht+0xa0cf, %r13 nop cmp $59642, %rbx mov (%r13), %r14d nop nop and %rbx, %rbx lea addresses_WT_ht+0x1189, %rsi lea addresses_normal_ht+0x155d, %rdi nop nop xor %rax, %rax mov $9, %rcx rep movsb nop inc %r14 lea addresses_UC_ht+0xb439, %rsi nop nop sub %r11, %r11 vmovups (%rsi), %ymm1 vextracti128 $1, %ymm1, %xmm1 vpextrq $1, %xmm1, %rax nop cmp %rax, %rax lea addresses_WT_ht+0x18a09, %rax nop nop sub %r14, %r14 mov (%rax), %rcx nop cmp %r14, %r14 lea addresses_D_ht+0xc809, %rsi lea addresses_normal_ht+0x2109, %rdi add $28172, %rax mov $16, %rcx rep movsq nop nop and %r11, %r11 lea addresses_WC_ht+0x1df29, %rax sub $34831, %r14 movb $0x61, (%rax) nop nop and $11899, %rsi lea addresses_normal_ht+0x1889, %rsi lea addresses_WT_ht+0x102c9, %rdi nop nop nop cmp %rbx, %rbx mov $119, %rcx rep movsw nop nop nop nop nop add %r11, %r11 lea addresses_WC_ht+0x19071, %rcx nop nop nop nop xor %rbx, %rbx mov $0x6162636465666768, %r13 movq %r13, %xmm6 vmovups %ymm6, (%rcx) nop nop nop xor $5230, %rbx lea addresses_UC_ht+0x19b35, %r11 clflush (%r11) nop nop sub %rdi, %rdi mov $0x6162636465666768, %rbx movq %rbx, (%r11) nop nop nop nop nop and $19000, %r11 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r14 pop %r13 pop %r11 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %r15 push %r9 push %rbp push %rdx // Store lea addresses_D+0x6209, %r10 and $21570, %r15 movl $0x51525354, (%r10) nop nop nop nop nop cmp $33213, %r14 // Faulty Load mov $0x449b420000000c09, %r14 and %r9, %r9 movups (%r14), %xmm6 vpextrq $0, %xmm6, %rbp lea oracles, %r10 and $0xff, %rbp shlq $12, %rbp mov (%r10,%rbp,1), %rbp pop %rdx pop %rbp pop %r9 pop %r15 pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': False, 'NT': True}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'AVXalign': False, 'congruent': 9, 'size': 4, 'same': False, 'NT': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'AVXalign': False, 'congruent': 0, 'size': 16, 'same': True, 'NT': False}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': True, 'congruent': 1, 'size': 2, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 1, 'size': 8, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_A_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_normal_ht', 'AVXalign': False, 'congruent': 0, 'size': 8, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 7, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'AVXalign': True, 'congruent': 0, 'size': 4, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WT_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 4, 'size': 32, 'same': False, 'NT': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'AVXalign': False, 'congruent': 6, 'size': 8, 'same': True, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 1, 'size': 1, 'same': False, 'NT': False}} {'OP': 'REPM', 'src': {'type': 'addresses_normal_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'AVXalign': False, 'congruent': 2, 'size': 32, 'same': False, 'NT': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'AVXalign': False, 'congruent': 2, 'size': 8, 'same': False, 'NT': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
33.126531
2,999
0.657467
3a72174b316a65ff08db48ef6e353f559f7a7f09
405
asm
Assembly
programs/oeis/042/A042965.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/042/A042965.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/042/A042965.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A042965: Nonnegative integers not congruent to 2 mod 4. ; 0,1,3,4,5,7,8,9,11,12,13,15,16,17,19,20,21,23,24,25,27,28,29,31,32,33,35,36,37,39,40,41,43,44,45,47,48,49,51,52,53,55,56,57,59,60,61,63,64,65,67,68,69,71,72,73,75,76,77,79,80,81,83,84,85,87,88,89,91,92,93,95,96,97,99,100,101,103,104,105,107,108,109,111,112,113,115,116,117,119,120,121,123,124,125,127,128,129,131,132 mul $0,4 add $0,1 div $0,3
57.857143
318
0.683951
19d044b128fc61c8bcb9f221c85be82f263de0c6
45
asm
Assembly
disassembler/test_data/jump_constant_register.asm
googleprojectzero/reil
e9ac835fa0ab48eda53056e1bec00dd6535a5e06
[ "Apache-2.0" ]
43
2018-09-17T18:46:41.000Z
2021-12-06T16:02:45.000Z
disassembler/test_data/jump_constant_register.asm
google/reil
e9ac835fa0ab48eda53056e1bec00dd6535a5e06
[ "Apache-2.0" ]
null
null
null
disassembler/test_data/jump_constant_register.asm
google/reil
e9ac835fa0ab48eda53056e1bec00dd6535a5e06
[ "Apache-2.0" ]
5
2018-10-13T13:50:28.000Z
2020-06-07T02:22:42.000Z
_start: adr x0, label br x0 label: ret
7.5
15
0.622222
74dd8e8cadfb53937a684a0ff2002e46588843a9
902
asm
Assembly
src/09-libraryfun.asm
ARAJAMOMO5/MICE
280dc1592669b2a745dab7ce37f233b96221f5b1
[ "MIT" ]
null
null
null
src/09-libraryfun.asm
ARAJAMOMO5/MICE
280dc1592669b2a745dab7ce37f233b96221f5b1
[ "MIT" ]
null
null
null
src/09-libraryfun.asm
ARAJAMOMO5/MICE
280dc1592669b2a745dab7ce37f233b96221f5b1
[ "MIT" ]
2
2020-10-14T11:26:15.000Z
2021-01-20T13:07:57.000Z
; ===================================================== ; To assemble and run: ; nasm -felf64 09-libraryfun.asm -o 09-libraryfun.o ; ld 09-libraryfun.o -o 09-libraryfun -lc --dynamic-linker /lib64/ld-linux-x86-64.so.2 ; ./09-libraryfun ; ===================================================== %include "include/consts.inc" %include "include/syscalls_x86-64.inc" extern scanf extern printf %define USERNAMEMAXLEN 30 %defstr UNXLENS USERNAMEMAXLEN section .data intro: db "Hello, what's your name?", 10, 0 welcome: db "I am pleased to meet you %s.", 10, 0 scanform: db "%", UNXLENS, "s", 0 section .bss username: resb USERNAMEMAXLEN section .text global _start _start: mov rdi, intro xor rax, rax call printf mov rdi, scanform mov rsi, username xor rax, rax call scanf mov rdi, welcome mov rsi, username xor rax, rax call printf mov rax, sys_exit xor rdi, rdi syscall
20.044444
86
0.624169
4700c959bcd577e8c63dd733a3eb7de9adcbd071
5,711
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_zr_un_sm_/i3-7100_9_0x84_notsx.log_21829_160.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_un_sm_/i3-7100_9_0x84_notsx.log_21829_160.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_zr_un_sm_/i3-7100_9_0x84_notsx.log_21829_160.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_A_ht+0x1e8ac, %r9 nop nop nop dec %rsi mov (%r9), %cx nop nop xor %r13, %r13 lea addresses_UC_ht+0x15a90, %rsi lea addresses_A_ht+0x1146c, %rdi clflush (%rdi) nop nop nop sub $22186, %rdx mov $87, %rcx rep movsw nop nop nop cmp %rdx, %rdx lea addresses_WT_ht+0x846c, %rsi lea addresses_D_ht+0x1952c, %rdi nop nop nop add $11510, %rdx mov $82, %rcx rep movsq nop inc %rsi pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r13 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r14 push %rax push %rbp push %rbx push %rsi // Store lea addresses_PSE+0xafec, %r11 nop nop nop nop and $308, %r10 movl $0x51525354, (%r11) nop nop xor $38112, %r11 // Store lea addresses_WT+0x10346, %rbp cmp %r14, %r14 movb $0x51, (%rbp) nop nop nop nop nop sub $10440, %rsi // Store lea addresses_UC+0x1f168, %rbp clflush (%rbp) nop nop nop nop nop add $16011, %rax mov $0x5152535455565758, %r11 movq %r11, %xmm4 movups %xmm4, (%rbp) nop nop inc %rsi // Store mov $0x38c82b000000066c, %r11 nop nop nop sub %rbp, %rbp mov $0x5152535455565758, %rax movq %rax, %xmm3 vmovups %ymm3, (%r11) nop nop nop nop nop and $56773, %rsi // Faulty Load mov $0x38c82b000000066c, %rbp nop dec %rax mov (%rbp), %rsi lea oracles, %rax and $0xff, %rsi shlq $12, %rsi mov (%rax,%rsi,1), %rsi pop %rsi pop %rbx pop %rbp pop %rax pop %r14 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_NC', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_PSE', 'same': False, 'size': 4, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 1, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 16, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_NC', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_NC', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 2, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_UC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 7, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'congruent': 9, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': True}, 'OP': 'REPM'} {'00': 242, '58': 20892, '79': 695} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 58 79 79 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 79 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 79 58 58 58 58 58 79 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 58 58 58 58 58 58 58 79 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 58 58 58 58 58 58 58 79 58 58 58 58 58 58 58 79 58 58 58 58 58 58 58 79 58 58 58 58 58 79 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 58 79 58 58 79 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 58 58 58 58 00 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 00 58 58 58 58 58 58 58 58 58 58 58 58 79 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
38.328859
2,999
0.656978
c4f5d1452cf9d236ec130bca79765d5cbaa04619
7,444
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_21829_1520.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_21829_1520.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-8650U_0xd2.log_21829_1520.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r12 push %r13 push %r15 push %r8 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0x1e9c6, %r12 clflush (%r12) nop nop xor $12333, %r13 mov (%r12), %r15 nop nop nop nop xor $42184, %r8 lea addresses_D_ht+0x4a06, %r12 nop nop nop nop sub %rbx, %rbx movups (%r12), %xmm1 vpextrq $0, %xmm1, %r8 nop nop nop cmp %r8, %r8 lea addresses_D_ht+0x5706, %rsi lea addresses_normal_ht+0x1a56, %rdi nop nop nop dec %r12 mov $94, %rcx rep movsw nop dec %rbx lea addresses_A_ht+0x3902, %rsi and $35976, %r13 vmovups (%rsi), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $1, %xmm1, %r15 xor $48701, %r8 lea addresses_normal_ht+0x1b606, %r13 add %rbx, %rbx movb $0x61, (%r13) nop nop add $6112, %rdi lea addresses_UC_ht+0x3966, %r13 xor $41166, %r8 mov (%r13), %rcx nop inc %r12 lea addresses_WC_ht+0x3996, %r15 nop cmp %r8, %r8 mov $0x6162636465666768, %rcx movq %rcx, %xmm0 and $0xffffffffffffffc0, %r15 movaps %xmm0, (%r15) nop nop add %rsi, %rsi lea addresses_WC_ht+0xee6f, %rsi lea addresses_WC_ht+0x104aa, %rdi clflush (%rdi) nop nop nop nop add %rbx, %rbx mov $62, %rcx rep movsw nop nop add %rcx, %rcx lea addresses_UC_ht+0x19a06, %rsi nop nop add $42829, %r15 mov (%rsi), %rdi add $10682, %r13 lea addresses_WT_ht+0x5e06, %rdi nop nop nop nop and %r8, %r8 movl $0x61626364, (%rdi) nop nop nop inc %r12 lea addresses_WT_ht+0x7e06, %r13 nop nop nop and %rcx, %rcx mov (%r13), %ebx nop nop nop nop cmp $47990, %rcx lea addresses_WT_ht+0x9a06, %rcx nop nop sub %r12, %r12 vmovups (%rcx), %ymm4 vextracti128 $1, %ymm4, %xmm4 vpextrq $0, %xmm4, %r15 nop inc %rsi lea addresses_UC_ht+0x8a06, %rcx clflush (%rcx) cmp $991, %rbx mov $0x6162636465666768, %rsi movq %rsi, (%rcx) nop nop nop nop nop dec %rdi pop %rsi pop %rdi pop %rcx pop %rbx pop %r8 pop %r15 pop %r13 pop %r12 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r15 push %rcx push %rdi push %rsi // REPMOV lea addresses_normal+0x1d1bd, %rsi lea addresses_A+0x1844a, %rdi dec %r13 mov $93, %rcx rep movsb nop nop nop nop nop and %rdi, %rdi // Faulty Load lea addresses_WT+0xf206, %r13 nop nop nop nop add $50489, %r15 mov (%r13), %rdi lea oracles, %r13 and $0xff, %rdi shlq $12, %rdi mov (%r13,%rdi,1), %rdi pop %rsi pop %rdi pop %rcx pop %r15 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_normal', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_A', 'congruent': 2, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_WT', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_D_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 4, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 1, 'AVXalign': False, 'NT': False, 'congruent': 6, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': True, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': True, 'NT': False, 'congruent': 4, 'same': True}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': True}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WT_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
35.788462
2,999
0.655293
c16f9c49a662ae241b1396310e0fb8060cbe8115
1,952
asm
Assembly
src/test/ref/struct-ptr-26.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
2
2022-03-01T02:21:14.000Z
2022-03-01T04:33:35.000Z
src/test/ref/struct-ptr-26.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
src/test/ref/struct-ptr-26.asm
jbrandwood/kickc
d4b68806f84f8650d51b0e3ef254e40f38b0ffad
[ "MIT" ]
null
null
null
/// @file /// A lightweight library for printing on the C64. /// /// Printing with this library is done by calling print_ function for each element // Commodore 64 PRG executable file .file [name="struct-ptr-26.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .label print_screen = $400 .label print_char_cursor = 2 .segment Code main: { .label file = $4000 .label uSize = 4 // file->bufEdit = (BYTE*)4 lda #<4 sta file lda #>4 sta file+1 // uSize = *ptrw ldy #$1e lda file sta.z $fe lda file+1 sta.z $ff lda ($fe),y sta.z uSize iny lda ($fe),y sta.z uSize+1 // print_uint(uSize) jsr print_uint // } rts } // Print a unsigned int as HEX // void print_uint(__zp(4) unsigned int w) print_uint: { .label w = 4 // print_uchar(BYTE1(w)) ldx.z w+1 lda #<print_screen sta.z print_char_cursor lda #>print_screen sta.z print_char_cursor+1 jsr print_uchar // print_uchar(BYTE0(w)) ldx.z w jsr print_uchar // } rts } // Print a char as HEX // void print_uchar(__register(X) char b) print_uchar: { // b>>4 txa lsr lsr lsr lsr // print_char(print_hextab[b>>4]) tay lda print_hextab,y // Table of hexadecimal digits jsr print_char // b&$f lda #$f axs #0 // print_char(print_hextab[b&$f]) lda print_hextab,x jsr print_char // } rts } // Print a single char // void print_char(__register(A) char ch) print_char: { // *(print_char_cursor++) = ch ldy #0 sta (print_char_cursor),y // *(print_char_cursor++) = ch; inc.z print_char_cursor bne !+ inc.z print_char_cursor+1 !: // } rts } .segment Data print_hextab: .text "0123456789abcdef"
20.333333
82
0.61373
b92e92f01e6bf5f06f79a9dc7d8bea5eed9b6925
399
asm
Assembly
programs/oeis/344/A344337.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/344/A344337.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/344/A344337.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A344337: a(n) = 9^omega(n), where omega(n) is the number of distinct primes dividing n. ; 1,9,9,9,9,81,9,9,9,81,9,81,9,81,81,9,9,81,9,81,81,81,9,81,9,81,9,81,9,729,9,9,81,81,81,81,9,81,81,81,9,729,9,81,81,81,9,81,9,81,81,81,9,81,81,81,81,81,9,729,9,81,81,9,81,729,9,81,81,729,9,81,9,81,81,81 seq $0,1221 ; Number of distinct primes dividing n (also called omega(n)). mov $1,9 pow $1,$0 mov $0,$1
49.875
203
0.649123
61027f70a2ad7a054687db7810ca13988f27b9f3
7,485
asm
Assembly
src/view-vat-items.asm
onlymx13/cesium
e82b235e592b12406df0ecee534a049a6c014fc2
[ "BSD-3-Clause" ]
null
null
null
src/view-vat-items.asm
onlymx13/cesium
e82b235e592b12406df0ecee534a049a6c014fc2
[ "BSD-3-Clause" ]
null
null
null
src/view-vat-items.asm
onlymx13/cesium
e82b235e592b12406df0ecee534a049a6c014fc2
[ "BSD-3-Clause" ]
null
null
null
; process for displaying the list of programs / appvars view_vat_items: call gui_show_item_count set_normal_text compare_hl_zero jr nz,.can_view bit setting_special_directories,(iy + settings_flag) jr nz,.can_view ; can't show anything call gui_draw_static_options ld hl,sprite_egg draw_sprite_2x 120, 57 print string_new_prgm, 199, 194 ld de,287 .no_new: ld (lcd_x),de inc hl call lcd_string .can_view: set_cursor 24, 30 xor a,a sbc hl,hl ld (iy + prgm_flag),a ; reset the program status flags ld (current_prgm_drawing),a ld bc,(number_of_items) sbc hl,hl adc hl,bc ret z ; return if no programs are found ld hl,(scroll_amount) compare_hl_zero ld de,item_location_base ex de,hl jr z,.loop .get_physical_offset: inc hl inc hl inc hl inc hl dec de dec bc ld a,e or a,d jr nz,.get_physical_offset .loop: xor a,a ld (iy + temp_prgm_flag),a ; reset the temporary flags res drawing_selected,(iy + item_flag) ; not drawing the selected one yet ld e,0 current_prgm_drawing := $-1 ld a,(current_selection) cp a,e jr nz,.not_selected set drawing_selected,(iy + item_flag) ld (prgm_ptr),hl ld a,(color_tertiary) ld (lcd_text_bg),a ; highlight the currently selected item .not_selected: ld a,e inc a ld (current_prgm_drawing),a ld a,(lcd_y) cp a,220 jp nc,util_set_more_items_flag ; more to scroll, so draw an arrow or something later push bc ; bc = number of programs left to draw push hl ; hl -> lookup table ld hl,(hl) ; load name pointer push hl ; push the name pointer inc hl ; the next byte is the status ld a,(hl) call ti.SetDEUToA inc hl ld d,(hl) inc hl ld e,(hl) push hl ex de,hl cp a,$d0 jr nc,.in_ram set temp_prgm_archived,(iy + temp_prgm_flag) ld de,9 add hl,de ld e,(hl) add hl,de inc hl .in_ram: call ti.LoadDEInd_s ld (temp_prgm_data_ptr),hl bit drawing_selected,(iy + item_flag) jr z,.not_drawing_selected ld (prgm_data_ptr),hl ld (prgm_real_size),de .not_drawing_selected: ex de,hl ld de,9 add hl,de pop de ; lookup table pop bc ; name pointer ld a,(bc) push bc push de call ti.AddHLAndA ld (prgm_size),hl pop hl inc hl inc hl inc hl ld a,(hl) ; previously stored type of program cp a,ti.ProtProgObj jr nz,.not_locked set temp_prgm_locked,(iy + temp_prgm_flag) .not_locked: ld a,(lcd_text_fg) ld (color_save),a pop hl ld b,(hl) dec hl ld a,(hl) cp a,64 jr nc,.draw_item add a,64 ld (hl),a set temp_prgm_hidden,(iy + temp_prgm_flag) ld a,(color_quinary) ld (lcd_text_fg),a .draw_item: push hl .draw_item_name: ld a,(hl) dec hl push bc call lcd_char pop bc djnz .draw_item_name pop hl bit temp_prgm_hidden,(iy + temp_prgm_flag) jr z,.not_hidden ld a,0 color_save := $-1 ld (lcd_text_fg),a ld a,(hl) sub a,64 ld (hl),a .not_hidden: ld a,(lcd_y) add a,20 ld (lcd_y),a sub a,25 ld c,a ld a,24 ld (lcd_x),a ld b,2 pop hl inc hl inc hl inc hl ld a,(hl) bit drawing_selected,(iy + item_flag) jr z,.dont_set_type ld (prgm_type),a .dont_set_type: inc hl push hl ; save location in list ld de,string_directory ld hl,sprite_directory cp a,file_dir jp z,file_directory ld de,string_appvar ld hl,sprite_file_appvar cp a,file_appvar jr z,file_uneditable ld de,string_asm ld hl,sprite_file_asm cp a,file_asm jr z,file_uneditable ld de,string_c ld hl,sprite_file_c cp a,file_c jr z,file_uneditable ld de,string_ice ld hl,sprite_file_ice cp a,file_ice jr z,file_uneditable set temp_prgm_is_basic,(iy + temp_prgm_flag) ld de,string_ice_source cp a,file_ice_source jp z,file_editable ld de,string_basic ld hl,sprite_file_basic cp a,file_basic jr z,file_editable jp exit_full ; abort file_directory: push hl or a,a sbc hl,hl ld (prgm_size),hl pop hl jp draw_listed_program file_uneditable: push de push hl ld hl,0 ; hl -> program data temp_prgm_data_ptr := $-3 inc hl inc hl ld a,(hl) cp a,byte_jp jr z,.custom_icon inc hl ld a,(hl) cp a,byte_jp jr nz,.no_custom_icon .custom_icon: inc hl inc hl inc hl inc hl ; hl -> icon indicator byte, hopefully ld a,(hl) cp a,byte_icon ; cesium indicator byte jr z,.valid_icon cp a,byte_description jr nz,.no_custom_icon bit drawing_selected,(iy + item_flag) ; check if the description should be drawn jr z,.no_custom_icon inc hl call gui_show_description jr .no_custom_icon .valid_icon: pop de ; pop the old icon inc hl bit drawing_selected,(iy + item_flag) ; check if the description should be drawn jr z,.icon push hl ld e,(hl) inc hl ld d,(hl) mlt de inc de add hl,de ; hl -> description string (null terminated) call gui_show_description ; actually draw the description string .no_custom_icon: pop hl ; hl -> icon .icon: pop de ; de -> language string jp draw_listed_program file_editable: push bc push de push hl ld hl,(temp_prgm_data_ptr) ld de,lut_basic_icon ld b,6 .verify_icon: ld a,(de) cp a,(hl) inc hl inc de jr nz,.no_custom_icon djnz .verify_icon pop de ; remove default icon ld de,sprite_temp ld a,16 ld (de),a inc de ld (de),a inc de ; save the size of the sprite ld b,0 .get_icon: ; okay, now loop 256 times to do the squish ld a,(hl) sub a,$30 cp a,$11 jr c,.no_overflow sub a,$07 .no_overflow: ; rather than doing an actual routine, just do this push hl ld hl,lut_color_basic call ti.AddHLAndA ld a,(hl) pop hl ld (de),a inc de inc hl djnz .get_icon ; collect all the values ld hl,sprite_temp ; yay, a custom icon push hl .no_custom_icon: pop hl pop de pop bc ;jq draw_listed_program draw_listed_program: ld a,(lcd_y) push af ld ix,(lcd_x) push ix ; save_cursor ld (tmp_y),a push de ; save language string push hl ; save icon pointer call lcd_sprite ld a,0 tmp_y := $-1 sub a,20 ld c,a ld hl,sprite_locked ld b,250 bit temp_prgm_locked,(iy + temp_prgm_flag) jr z,.not_protected push bc call lcd_sprite pop bc .not_protected: ld a,b sub a,4 ld b,a ld hl,sprite_archived bit temp_prgm_archived,(iy + temp_prgm_flag) call nz,lcd_sprite bit drawing_selected,(iy + item_flag) pop hl ; hl -> program icon jp z,.not_selected ld a,(iy + temp_prgm_flag) ld (iy + prgm_flag),a ; load the program info draw_sprite_2x 120, 57 ld a,(color_senary) ld (lcd_text_bg),a print string_language, 199, 107 pop hl call lcd_string ; hl -> language string print string_size, 199, 151 ld hl,(prgm_size) call lcd_num_5 print string_attributes, 199, 173 set_cursor_x 262 inc hl call lcd_string print string_archived, 199, 118 ld a,(current_screen) cp a,screen_appvars ; don't draw things that appvars can't handle jr z,.dont_draw_extras print string_locked, 199, 129 print string_hidden, 199, 140 print string_rename, 199, 194 ld de,262 ld (lcd_x),de inc hl call lcd_string bit prgm_locked,(iy + prgm_flag) jr nz,.is_locked print string_edit_prgm, 199, 183 ld de,269 jr .no_new .is_locked: print string_new_prgm, 199, 183 ld de,287 .no_new: ld (lcd_x),de inc hl call lcd_string .dont_draw_extras: call gui_draw_item_options call gui_draw_static_options push de .not_selected: pop de ; description may not have been popped pop bc ld (lcd_x),bc pop af ld (lcd_y),a ; restore_cursor pop hl ; restore list location pop bc dec bc ld a,b or a,c jp nz,view_vat_items.loop ret .file_directory: push hl or a,a sbc hl,hl ld (prgm_size),hl pop hl jp draw_listed_program
18.619403
86
0.713026
a7f8f7d4f4c0a4a812a2fba8a224af4c60bcc7f5
4,929
asm
Assembly
newitems/rings/hooks.asm
fcard/z3randomizer
f2d0c2e58512e9c4c7f37996b52f6a0dc828f3ec
[ "MIT" ]
null
null
null
newitems/rings/hooks.asm
fcard/z3randomizer
f2d0c2e58512e9c4c7f37996b52f6a0dc828f3ec
[ "MIT" ]
null
null
null
newitems/rings/hooks.asm
fcard/z3randomizer
f2d0c2e58512e9c4c7f37996b52f6a0dc828f3ec
[ "MIT" ]
null
null
null
;-------------------------------------------------------------------------------- ; Decomp ;-------------------------------------------------------------------------------- org $00FDEE ; Mirror_InitHdmaSettings JML Mirror_InitHdmaSettingsAux DecompGfx: JSR Decomp.begin RTL !LoadSpriteDirect = $7EFFE0 org $00E7B2 ; Decomp.spr_variable JSL DecompExtra BRA Decomp.begin ;-------------------------------------------------------------------------------- ; Special Properties ;-------------------------------------------------------------------------------- org $0DB84D ; Set Special Sprite Properties JSL SetSpriteProperties : NOP ;-------------------------------------------------------------------------------- ; Rings ;-------------------------------------------------------------------------------- org $06F400 ; <- 37F400 - Bank06.asm : 5963 (CLC : ADC $7EF35B) JSL.l GeneralDamage : NOP org $0DDDC3 ; JSR DrawAbilityText JSL DrawLowerItemBox NOP #(2+3+3) org $0DE346 ; JSL DrawMoonPearl JSL RestoreNormalMenuAux NOP #2 org $0DDF15 ; equipment.asm:450 - NormalMenu: INC $207 : LDA $F0 JSL MenuLoop NOP org $0DDEA5 ; equipment.asm:450 - NormalMenu: INC $207 : LDA $F0 JSL NoEquip RTS org $0DE7B6 ; change DrawAbilityText's RTS to a RTL RTL org $0DE819 ; change DrawAbilityIcons' RTS to a RTL RTL org $0DE9CC ; change DrawProgressIcons's RTS to a RTL RTL org $0DECE9 DrawMoonPearl: org $0DED03 ; change DrawMoonPearl's RTS to a RTL RTL org $089900 ; ancilla_bomb:575 - Bomb_CheckSpriteAndPlayerDamage: LDA $7EF35B JSL BombDamage RTS ;01ec07 !DebugRingLocations = 1 ; Rings in Chests around the world (0=No, 1=Yes) if !DebugRingLocations != 0 ; Village Well Cave org $01EA91 db $B9 org $01EA94 db $B9 org $01EA97 db $B0 org $01EA9A db $B1 ; Village Hideout org $01EB12 db $B4 org $01EB15 db $BA org $01EB18 db $BA org $01EB1B db $BB ; Castle org $01E971 ; Lamp Chest in castle basement db $BB endif ;-------------------------------------------------------------------------------- ; Rupee Ring ;-------------------------------------------------------------------------------- org $06D1D2 ; Rupees dropped in the world (ADC $7EF360) JSL AddCollectedRupees org $07BB6D ; Rupees from dungeon blue rupees JSL AddDungeonRupees org $07C5FA ; Rupees from dungeon blue rupees JSL AddDungeonRupees org $09ADA0 ; Rupees from chests JSL AddChestRupees NOP #3 org $05843F ; Rupees from arrow game (sprite_archery_game_guy.asm:424 : ADC $7EF360) JSL AddCollectedRupees ;================================================================================ ;-------------------------------------------------------------------------------- ; Power Ring ;-------------------------------------------------------------------------------- org $06EF67 ; Damage to Sprites JSL DamageSprite : NOP ;================================================================================ ;-------------------------------------------------------------------------------- ; Fire Ring ;-------------------------------------------------------------------------------- org $09B329 ; garnish_ganon_bat_flame_objects.asm:79 : LDA chr_indices, X ; routine: Garnish_GanonBatFlame (which is also used by Trinexx's fire) ; we move the rest of the routine here, as well as all of the routine's ; tables, because of the difficult of changing a single line but also to ; free space in bank $09. JML GarnishFireDamage org $09B284 ; garnish_ganon_bat_flame_objects.asm:8 : db $AC, $AE... ; Space freed from us moving the tables from Garnish_GanonBatFlame Garnish_SetOamPropsAndLargeSizeLong: PHB : PHK : PLB JSR Garnish_SetOamPropsAndLargeSize PLB RTL ; move the table Garnish_BabusuFlash.chr here so we ; have space after the subroutine that comes before ; it, Garnish_CheckPlayerCollision. Garnish_BabusuFlash_chrNew: db $A8, $8A, $86, $86 warnpc $09B2B2 ; End of the freed space org $09B459 ; garnish_lightning_trail.asm:50 Garnish_CheckPlayerCollision: org $09B482 ; garnish_lightning_trail.asm:64 : LDA.b #$10 : STA $46 JSL GarnishOnCollision org $09B495 ; garnish_lightning_trail.asm:71 : RTS ; end of Garnish_CheckPlayerCollision LDA #00 : STA !GarnishFire RTS org $09B4B3 ; garnish_babusu_flash.asm:31 : LDA .chr, X LDA Garnish_BabusuFlash_chrNew, X org $09B70C ; garnish_mothula_beam_trail.asm:25 Garnish_SetOamPropsAndLargeSize: ;-------------------------------------------------------------------------------- ; Light Ring ;-------------------------------------------------------------------------------- org $06F59A ; Spin Attack Hitbox PLX : JSL SpinAttackHitBox RTS org $08D8BA JSL SpinAttackAnimationTimers BRA SpinAttackAnimationTimers.returnPoint org $08D8C9 SpinAttackAnimationTimers.returnPoint: ;================================================================================
26.934426
84
0.532968
941564c3492fb856122cde5539b7b607789ce710
2,783
asm
Assembly
modules/exploits/beefbind/shellcode_sources/windows/src/block_pipes.asm
manchonjul/BeEFImposter
4ea6383b47eb186b4915c89c31e1f531a7d3c25e
[ "Unlicense" ]
1
2020-01-01T23:35:53.000Z
2020-01-01T23:35:53.000Z
modules/exploits/beefbind/shellcode_sources/windows/src/block_pipes.asm
manchonjul/BeEFImposter
4ea6383b47eb186b4915c89c31e1f531a7d3c25e
[ "Unlicense" ]
null
null
null
modules/exploits/beefbind/shellcode_sources/windows/src/block_pipes.asm
manchonjul/BeEFImposter
4ea6383b47eb186b4915c89c31e1f531a7d3c25e
[ "Unlicense" ]
null
null
null
;-----------------------------------------------------------------------------; ; Author: Ty Miller @ Threat Intelligence ; Compatible: Windows 7, 2008, Vista, 2003, XP, 2000, NT4 ; Version: 1.0 (2nd December 2011) ;-----------------------------------------------------------------------------; [BITS 32] ; Input: EBP is api_call ; Output: ; esp+00 child stdin read file descriptor (inherited) ; esp+04 child stdin write file descriptor (not inherited) ; esp+08 child stdout read file descriptor (not inherited) ; esp+12 child stdout write file descriptor (inherited) ; esp+16 lpPipeAttributes structure (not used after block - 12 bytes) ; Clobbers: EAX, EBX, ECX, EDI, ESP will decrement by 28 bytes push 1 ; create lpPipeAtrributes structure on stack so pipe handles are inherited push 0 push 0x0C create_pipe_stdout: push 0 ; allocate space on stack for child stdout file descriptor mov ebx, esp ; save location of where the child stdout Write file descriptor will be push 0 ; allocate space on stack for child stdout file descriptor mov ecx, esp ; save location of where the child stdout Read file descriptor will be push 0 ; nSize lea edi,[esp+12] ; lpPipeAttributes - inherited push edi push ebx ; stdout write file descriptor push ecx ; stdout read file descriptor push 0x0EAFCF3E ; hash ( "kernel.dll", "CreatePipe" ) call ebp ; CreatePipe( Read, Write, 0, 0 ) create_pipe_stdin: push 0 ; allocate space on stack for child stdout file descriptor mov ebx, esp ; save location of where the child stdout Write file descriptor will be push 0 ; allocate space on stack for child stdout file descriptor mov ecx, esp ; save location of where the child stdout Read file descriptor will be push 0 ; nSize lea edi,[esp+20] ; lpPipeAttributes - inherited push edi push ebx ; stdout write file descriptor push ecx ; stdout read file descriptor push 0x0EAFCF3E ; hash ( "kernel.dll", "CreatePipe" ) call ebp ; CreatePipe( Read, Write, 0, 0 ) no_inherit_read_handle: ; ensure read and write handles to child proc pipes for are not inherited mov ebx,[esp+8] push 0 push 1 push ebx ; hChildStdoutRd is the address we set in the CreatePipe call push 0x1CD313CA ; hash(kernel32.dll, SetHandleInformation) call ebp ; SetHandleInformation no_inherit_write_handle: mov ebx,[esp+4] push 0 push 1 push ebx ; hChildStdinRw is the address we set in the CreatePipe call push 0x1CD313CA ; hash(kernel32.dll, SetHandleInformation) call ebp ; SetHandleInformation
42.815385
99
0.635286
918859e7d528cebe40d399fa1b942de59bd096d2
288,021
asm
Assembly
src/intel/tools/tests/gen9/send.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen9/send.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
src/intel/tools/tests/gen9/send.asm
SoftReaper/Mesa-Renoir-deb
8d1de1f66058d62b41fe55d36522efea2bdf996d
[ "MIT" ]
null
null
null
send(8) null<1>F g123<8,8,1>F 0x8a080017 urb MsgDesc: 1 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(8) null<1>F g13<8,8,1>F 0x12080007 urb MsgDesc: 0 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g123<8,8,1>F 0x8a080027 urb MsgDesc: 2 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(16) g9<1>UD g2<0,1,0>UD 0x02280300 const MsgDesc: (0, 3, 0, 0) mlen 1 rlen 2 { align1 WE_all 1H }; send(8) null<1>F g119<8,8,1>F 0x92080017 urb MsgDesc: 1 SIMD8 write mlen 9 rlen 0 { align1 1Q EOT }; send(16) null<1>UW g127<8,8,1>UW 0x82000010 thread_spawner MsgDesc: mlen 1 rlen 0 { align1 WE_all 1H EOT }; send(8) g124<1>UW g13<8,8,1>UD 0x0643a001 sampler MsgDesc: ld_lz SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(16) g120<1>UW g23<8,8,1>UD 0x0c85a001 sampler MsgDesc: ld_lz SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 8 { align1 1H }; send(8) g10<1>UD g2<8,8,1>UD 0x02480028 urb MsgDesc: 2 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) null<1>F g8<8,8,1>F 0x140a0017 urb MsgDesc: 1 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g118<8,8,1>F 0x940a0017 urb MsgDesc: 1 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q EOT }; send(8) g2<1>UW g10<8,8,1>UD 0x08427001 sampler MsgDesc: ld SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 4 { align1 1Q }; send(16) g2<1>UW g18<8,8,1>UD 0x10847001 sampler MsgDesc: ld SIMD16 Surface = 1 Sampler = 0 mlen 8 rlen 8 { align1 1H }; send(8) null<1>F g11<8,8,1>UD 0x0c0a0037 urb MsgDesc: 3 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g6<8,8,1>UD 0x0a080027 urb MsgDesc: 2 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g6<8,8,1>UD 0x0c088017 urb MsgDesc: 1 SIMD8 write masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g6<8,8,1>UD 0x0a088017 urb MsgDesc: 1 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g6<8,8,1>UD 0x08088017 urb MsgDesc: 1 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g2<8,8,1>UD 0x06088017 urb MsgDesc: 1 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g6<8,8,1>UD 0x0c088007 urb MsgDesc: 0 SIMD8 write masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g6<8,8,1>UD 0x0a088007 urb MsgDesc: 0 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g125<8,8,1>UD 0x86088007 urb MsgDesc: 0 SIMD8 write masked mlen 3 rlen 0 { align1 1Q EOT }; send(8) g7<1>UW g7<8,8,1>UD 0x0443a000 sampler MsgDesc: ld_lz SIMD8 Surface = 0 Sampler = 0 mlen 2 rlen 4 { align1 1Q }; send(8) g10<1>UW g6<8,8,1>UD 0x0222a001 sampler MsgDesc: resinfo SIMD8 Surface = 1 Sampler = 0 mlen 1 rlen 2 { align1 1Q }; send(8) g2<1>UW g19<8,8,1>UD 0x084a8001 sampler MsgDesc: gather4 SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 4 { align1 1Q }; send(16) g25<1>UW g16<8,8,1>UD 0x0444a001 sampler MsgDesc: resinfo SIMD16 Surface = 1 Sampler = 0 mlen 2 rlen 4 { align1 1H }; send(16) g14<1>UW g7<8,8,1>UD 0x0e8c8001 sampler MsgDesc: gather4 SIMD16 Surface = 1 Sampler = 0 mlen 7 rlen 8 { align1 1H }; send(8) null<1>F g11<8,8,1>F 0x12080017 urb MsgDesc: 1 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g20<8,8,1>F 0x12080037 urb MsgDesc: 3 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g123<8,8,1>F 0x8a080057 urb MsgDesc: 5 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(8) g9<1>UW g6<8,8,1>UD 0x0613d001 sampler MsgDesc: ld_mcs SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 1 { align1 1Q }; send(16) g12<1>UW g14<8,8,1>UD 0x0c25d001 sampler MsgDesc: ld_mcs SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 2 { align1 1H }; send(8) g2<1>UW g14<8,8,1>UD 0x0643d001 sampler MsgDesc: ld_mcs SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(8) g8<1>UW g17<8,8,1>UD 0x0a43e001 sampler MsgDesc: ld2dms SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 4 { align1 1Q }; send(16) g26<1>UW g10<8,8,1>UD 0x0c85d001 sampler MsgDesc: ld_mcs SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 8 { align1 1H }; send(16) g34<1>UW g16<8,8,1>UD 0x1485e001 sampler MsgDesc: ld2dms SIMD16 Surface = 1 Sampler = 0 mlen 10 rlen 8 { align1 1H }; send(8) g5<1>UW g2<8,8,1>UD 0x04320001 sampler MsgDesc: sample SIMD8 Surface = 1 Sampler = 0 mlen 2 rlen 3 { align1 1Q }; send(16) g7<1>UW g2<8,8,1>UD 0x08640001 sampler MsgDesc: sample SIMD16 Surface = 1 Sampler = 0 mlen 4 rlen 6 { align1 1H }; send(8) g12<1>UW g10<8,8,1>UD 0x0a33e001 sampler MsgDesc: ld2dms SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 3 { align1 1Q }; send(16) g2<1>UW g18<8,8,1>UD 0x1465e001 sampler MsgDesc: ld2dms SIMD16 Surface = 1 Sampler = 0 mlen 10 rlen 6 { align1 1H }; send(8) g5<1>UW g2<8,8,1>UD 0x04420001 sampler MsgDesc: sample SIMD8 Surface = 1 Sampler = 0 mlen 2 rlen 4 { align1 1Q }; send(16) g7<1>UW g2<8,8,1>UD 0x08840001 sampler MsgDesc: sample SIMD16 Surface = 1 Sampler = 0 mlen 4 rlen 8 { align1 1H }; send(8) g11<1>UW g9<8,8,1>UD 0x0222a000 sampler MsgDesc: resinfo SIMD8 Surface = 0 Sampler = 0 mlen 1 rlen 2 { align1 1Q }; send(8) g124<1>UW g13<8,8,1>UD 0x064a8000 sampler MsgDesc: gather4 SIMD8 Surface = 0 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(8) g12<1>UW g5<8,8,1>UD 0x02427000 sampler MsgDesc: ld SIMD8 Surface = 0 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(8) null<1>F g123<8,8,1>F 0x8a080037 urb MsgDesc: 3 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(8) g6<1>UW g11<8,8,1>UD 0x144a4001 sampler MsgDesc: sample_d SIMD8 Surface = 1 Sampler = 0 mlen 10 rlen 4 { align1 1Q }; (+f1.0) send(8) g125<1>UW g3<8,8,1>UD 0x0210b501 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 1, SIMD8, inc) mlen 1 rlen 1 { align1 1Q }; (+f1.0) send(16) g122<1>UW g4<8,8,1>UD 0x0420a501 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 1, SIMD16, inc) mlen 2 rlen 2 { align1 1H }; send(8) g6<1>UW g12<8,8,1>UD 0x084a4001 sampler MsgDesc: sample_d SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 4 { align1 1Q }; send(8) g98<1>UW g17<8,8,1>UD 0x0c43c001 sampler MsgDesc: ld2dms_w SIMD8 Surface = 1 Sampler = 0 mlen 6 rlen 4 { align1 1Q }; send(8) g124<1>UW g8<8,8,1>UD 0x064a8001 sampler MsgDesc: gather4 SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(16) g120<1>UW g12<8,8,1>UD 0x0a8c8001 sampler MsgDesc: gather4 SIMD16 Surface = 1 Sampler = 0 mlen 5 rlen 8 { align1 1H }; send(8) g6<1>UW g7<8,8,1>UD 0x0a1a6001 sampler MsgDesc: sample_l_c SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 1 { align1 1Q }; send(8) g7<1>UW g12<8,8,1>UD 0x0a1a6102 sampler MsgDesc: sample_l_c SIMD8 Surface = 2 Sampler = 1 mlen 5 rlen 1 { align1 1Q }; send(16) g10<1>UW g12<8,8,1>UD 0x122c6001 sampler MsgDesc: sample_l_c SIMD16 Surface = 1 Sampler = 0 mlen 9 rlen 2 { align1 1H }; send(16) g12<1>UW g21<8,8,1>UD 0x122c6102 sampler MsgDesc: sample_l_c SIMD16 Surface = 2 Sampler = 1 mlen 9 rlen 2 { align1 1H }; send(8) g124<1>UW g3<8,8,1>UD 0x0a43e000 sampler MsgDesc: ld2dms SIMD8 Surface = 0 Sampler = 0 mlen 5 rlen 4 { align1 1Q }; send(8) null<1>F g119<8,8,1>F 0x92080027 urb MsgDesc: 2 SIMD8 write mlen 9 rlen 0 { align1 1Q EOT }; send(8) g2<1>UW g3<8,8,1>UD 0x0643d000 sampler MsgDesc: ld_mcs SIMD8 Surface = 0 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(8) null<1>F g7<8,8,1>UD 0x0a080037 urb MsgDesc: 3 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g8<8,8,1>UD 0x0a080047 urb MsgDesc: 4 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g29<8,8,1>F 0x0c0a0017 urb MsgDesc: 1 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g122<8,8,1>F 0x8c0a0017 urb MsgDesc: 1 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q EOT }; send(8) g13<1>UW g10<8,8,1>UD 0x02320001 sampler MsgDesc: sample SIMD8 Surface = 1 Sampler = 0 mlen 1 rlen 3 { align1 1Q }; send(16) g22<1>UW g18<8,8,1>UD 0x04640001 sampler MsgDesc: sample SIMD16 Surface = 1 Sampler = 0 mlen 2 rlen 6 { align1 1H }; send(8) g124<1>UW g2<8,8,1>UD 0x0232a000 sampler MsgDesc: resinfo SIMD8 Surface = 0 Sampler = 0 mlen 1 rlen 3 { align1 1Q }; send(8) g2<1>UW g13<8,8,1>UD 0x0c4b1001 sampler MsgDesc: gather4_po SIMD8 Surface = 1 Sampler = 0 mlen 6 rlen 4 { align1 1Q }; send(16) g18<1>UW g7<8,8,1>UD 0x168d1001 sampler MsgDesc: gather4_po SIMD16 Surface = 1 Sampler = 0 mlen 11 rlen 8 { align1 1H }; send(8) null<1>F g6<8,8,1>UD 0x0a088027 urb MsgDesc: 2 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g7<8,8,1>UD 0x0a088037 urb MsgDesc: 3 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g8<8,8,1>UD 0x0a088047 urb MsgDesc: 4 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g9<8,8,1>UD 0x0a088057 urb MsgDesc: 5 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) g124<1>UW g3<8,8,1>UD 0x06427000 sampler MsgDesc: ld SIMD8 Surface = 0 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g10<8,8,1>UD 0x06427001 sampler MsgDesc: ld SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(16) g2<1>UW g18<8,8,1>UD 0x0c847001 sampler MsgDesc: ld SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 8 { align1 1H }; send(8) g6<1>UW g10<8,8,1>UD 0x0c424001 sampler MsgDesc: sample_d SIMD8 Surface = 1 Sampler = 0 mlen 6 rlen 4 { align1 1Q }; send(8) g2<1>UW g7<8,8,1>UD 0x0c4b1000 sampler MsgDesc: gather4_po SIMD8 Surface = 0 Sampler = 0 mlen 6 rlen 4 { align1 1Q }; send(8) g2<1>UW g4<8,8,1>UD 0x0242a000 sampler MsgDesc: resinfo SIMD8 Surface = 0 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(8) g6<1>UW g6<8,8,1>UD 0x0242a101 sampler MsgDesc: resinfo SIMD8 Surface = 1 Sampler = 1 mlen 1 rlen 4 { align1 1Q }; send(8) g10<1>UW g10<8,8,1>UD 0x0242a202 sampler MsgDesc: resinfo SIMD8 Surface = 2 Sampler = 2 mlen 1 rlen 4 { align1 1Q }; send(8) g14<1>UW g14<8,8,1>UD 0x0242a303 sampler MsgDesc: resinfo SIMD8 Surface = 3 Sampler = 3 mlen 1 rlen 4 { align1 1Q }; send(8) g18<1>UW g18<8,8,1>UD 0x0242a404 sampler MsgDesc: resinfo SIMD8 Surface = 4 Sampler = 4 mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UW g22<8,8,1>UD 0x0242a505 sampler MsgDesc: resinfo SIMD8 Surface = 5 Sampler = 5 mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UW g26<8,8,1>UD 0x0242a606 sampler MsgDesc: resinfo SIMD8 Surface = 6 Sampler = 6 mlen 1 rlen 4 { align1 1Q }; send(8) g6<1>UD g15<8,8,1>UD 0x042a0318 urb MsgDesc: 49 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g8<1>UD g15<8,8,1>UD 0x042a0518 urb MsgDesc: 81 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g10<1>UD g15<8,8,1>UD 0x042a0718 urb MsgDesc: 113 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g12<1>UD g15<8,8,1>UD 0x042a0918 urb MsgDesc: 145 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g14<1>UD g15<8,8,1>UD 0x042a0128 urb MsgDesc: 18 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g16<1>UD g14<8,8,1>UD 0x042a0218 urb MsgDesc: 33 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g18<1>UD g14<8,8,1>UD 0x042a0418 urb MsgDesc: 65 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g20<1>UD g14<8,8,1>UD 0x042a0618 urb MsgDesc: 97 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g22<1>UD g14<8,8,1>UD 0x042a0818 urb MsgDesc: 129 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g13<1>UD g14<8,8,1>UD 0x042a0028 urb MsgDesc: 2 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g30<8,8,1>UD 0x02480208 urb MsgDesc: 32 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g14<1>UD g30<8,8,1>UD 0x02480408 urb MsgDesc: 64 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g18<1>UD g30<8,8,1>UD 0x02480608 urb MsgDesc: 96 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g30<8,8,1>UD 0x02480808 urb MsgDesc: 128 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) null<1>F g6<8,8,1>UD 0x0a0a8217 urb MsgDesc: 33 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g11<8,8,1>UD 0x0a0a8227 urb MsgDesc: 34 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g12<8,8,1>UD 0x0a0a8237 urb MsgDesc: 35 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g13<8,8,1>UD 0x0a0a8247 urb MsgDesc: 36 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g14<8,8,1>UD 0x0a0a8257 urb MsgDesc: 37 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g15<8,8,1>UD 0x0a0a8267 urb MsgDesc: 38 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g16<8,8,1>UD 0x0a0a8277 urb MsgDesc: 39 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g17<8,8,1>UD 0x0a0a8287 urb MsgDesc: 40 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g18<8,8,1>UD 0x0a0a8297 urb MsgDesc: 41 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g19<8,8,1>UD 0x0a0a82a7 urb MsgDesc: 42 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g20<8,8,1>UD 0x0a0a82b7 urb MsgDesc: 43 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g21<8,8,1>UD 0x0a0a82c7 urb MsgDesc: 44 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g22<8,8,1>UD 0x0a0a82d7 urb MsgDesc: 45 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g23<8,8,1>UD 0x0a0a82e7 urb MsgDesc: 46 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g24<8,8,1>UD 0x0a0a82f7 urb MsgDesc: 47 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g25<8,8,1>UD 0x0a0a8307 urb MsgDesc: 48 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g26<8,8,1>UD 0x0a0a8317 urb MsgDesc: 49 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g27<8,8,1>UD 0x0a0a8327 urb MsgDesc: 50 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g28<8,8,1>UD 0x0a0a8337 urb MsgDesc: 51 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g29<8,8,1>UD 0x0a0a8347 urb MsgDesc: 52 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g30<8,8,1>UD 0x0a0a8357 urb MsgDesc: 53 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g31<8,8,1>UD 0x0a0a8367 urb MsgDesc: 54 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g32<8,8,1>UD 0x0a0a8377 urb MsgDesc: 55 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g33<8,8,1>UD 0x0a0a8387 urb MsgDesc: 56 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g34<8,8,1>UD 0x0a0a8397 urb MsgDesc: 57 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g35<8,8,1>UD 0x0a0a83a7 urb MsgDesc: 58 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g36<8,8,1>UD 0x0a0a83b7 urb MsgDesc: 59 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g37<8,8,1>UD 0x0a0a83c7 urb MsgDesc: 60 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g38<8,8,1>UD 0x0a0a83d7 urb MsgDesc: 61 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g39<8,8,1>UD 0x0a0a83e7 urb MsgDesc: 62 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g40<8,8,1>UD 0x0a0a83f7 urb MsgDesc: 63 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g11<8,8,1>UD 0x08088027 urb MsgDesc: 2 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g12<8,8,1>UD 0x08088037 urb MsgDesc: 3 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g13<8,8,1>UD 0x08088047 urb MsgDesc: 4 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g14<8,8,1>UD 0x08088057 urb MsgDesc: 5 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g15<8,8,1>UD 0x08088067 urb MsgDesc: 6 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g16<8,8,1>UD 0x08088077 urb MsgDesc: 7 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g17<8,8,1>UD 0x08088087 urb MsgDesc: 8 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g18<8,8,1>UD 0x08088097 urb MsgDesc: 9 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g19<8,8,1>UD 0x080880a7 urb MsgDesc: 10 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g20<8,8,1>UD 0x080880b7 urb MsgDesc: 11 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g21<8,8,1>UD 0x080880c7 urb MsgDesc: 12 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g22<8,8,1>UD 0x080880d7 urb MsgDesc: 13 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g23<8,8,1>UD 0x080880e7 urb MsgDesc: 14 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g24<8,8,1>UD 0x080880f7 urb MsgDesc: 15 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g25<8,8,1>UD 0x08088107 urb MsgDesc: 16 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g26<8,8,1>UD 0x08088117 urb MsgDesc: 17 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g27<8,8,1>UD 0x08088127 urb MsgDesc: 18 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g28<8,8,1>UD 0x08088137 urb MsgDesc: 19 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g29<8,8,1>UD 0x08088147 urb MsgDesc: 20 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g30<8,8,1>UD 0x08088157 urb MsgDesc: 21 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g31<8,8,1>UD 0x08088167 urb MsgDesc: 22 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g32<8,8,1>UD 0x08088177 urb MsgDesc: 23 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g33<8,8,1>UD 0x08088187 urb MsgDesc: 24 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g34<8,8,1>UD 0x08088197 urb MsgDesc: 25 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g35<8,8,1>UD 0x080881a7 urb MsgDesc: 26 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g36<8,8,1>UD 0x080881b7 urb MsgDesc: 27 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g37<8,8,1>UD 0x080881c7 urb MsgDesc: 28 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g38<8,8,1>UD 0x080881d7 urb MsgDesc: 29 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g39<8,8,1>UD 0x080881e7 urb MsgDesc: 30 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g40<8,8,1>UD 0x080881f7 urb MsgDesc: 31 SIMD8 write masked mlen 4 rlen 0 { align1 1Q }; send(8) g13<1>UD g1<8,8,1>UD 0x02480018 urb MsgDesc: 1 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) null<1>F g11<8,8,1>UD 0x0c0a0207 urb MsgDesc: 32 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g119<8,8,1>F 0x92080057 urb MsgDesc: 5 SIMD8 write mlen 9 rlen 0 { align1 1Q EOT }; send(8) g10<1>UW g18<8,8,1>UD 0x084a8000 sampler MsgDesc: gather4 SIMD8 Surface = 0 Sampler = 0 mlen 4 rlen 4 { align1 1Q }; send(8) g124<1>UW g2<8,8,1>UD 0x04229001 sampler MsgDesc: lod SIMD8 Surface = 1 Sampler = 0 mlen 2 rlen 2 { align1 1Q }; send(16) g120<1>UW g2<8,8,1>UD 0x08449001 sampler MsgDesc: lod SIMD16 Surface = 1 Sampler = 0 mlen 4 rlen 4 { align1 1H }; send(16) g32<1>UW g44<8,8,1>UD 0x0865a001 sampler MsgDesc: ld_lz SIMD16 Surface = 1 Sampler = 0 mlen 4 rlen 6 { align1 1H }; send(16) null<1>UW g5<8,8,1>UD 0x04008502 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 2, SIMD16, inc) mlen 2 rlen 0 { align1 1H }; send(8) g5<1>UW g3<8,8,1>UD 0x02427001 sampler MsgDesc: ld SIMD8 Surface = 1 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(16) g8<1>UW g5<8,8,1>UD 0x04847001 sampler MsgDesc: ld SIMD16 Surface = 1 Sampler = 0 mlen 2 rlen 8 { align1 1H }; send(8) null<1>F g119<8,8,1>F 0x92080007 urb MsgDesc: 0 SIMD8 write mlen 9 rlen 0 { align1 1Q EOT }; send(8) null<1>F g126<8,8,1>UD 0x84080017 urb MsgDesc: 1 SIMD8 write mlen 2 rlen 0 { align1 1Q EOT }; send(8) g2<1>UW g13<8,8,1>UD 0x0a4b1001 sampler MsgDesc: gather4_po SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 4 { align1 1Q }; send(16) g16<1>UW g7<8,8,1>UD 0x128d1001 sampler MsgDesc: gather4_po SIMD16 Surface = 1 Sampler = 0 mlen 9 rlen 8 { align1 1H }; send(8) g38<1>UD g1<8,8,1>UD 0x02180028 urb MsgDesc: 2 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g40<1>UD g1<8,8,1>UD 0x02180038 urb MsgDesc: 3 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g42<1>UD g1<8,8,1>UD 0x02180048 urb MsgDesc: 4 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g44<1>UD g1<8,8,1>UD 0x02180058 urb MsgDesc: 5 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g46<1>UD g1<8,8,1>UD 0x02180068 urb MsgDesc: 6 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g48<1>UD g1<8,8,1>UD 0x02180078 urb MsgDesc: 7 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g50<1>UD g1<8,8,1>UD 0x02180088 urb MsgDesc: 8 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g52<1>UD g1<8,8,1>UD 0x02180098 urb MsgDesc: 9 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g54<1>UD g1<8,8,1>UD 0x021800a8 urb MsgDesc: 10 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g56<1>UD g1<8,8,1>UD 0x021800b8 urb MsgDesc: 11 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g58<1>UD g1<8,8,1>UD 0x021800c8 urb MsgDesc: 12 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g60<1>UD g1<8,8,1>UD 0x021800d8 urb MsgDesc: 13 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g62<1>UD g1<8,8,1>UD 0x021800e8 urb MsgDesc: 14 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g64<1>UD g1<8,8,1>UD 0x021800f8 urb MsgDesc: 15 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g66<1>UD g1<8,8,1>UD 0x02180108 urb MsgDesc: 16 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g68<1>UD g1<8,8,1>UD 0x02180118 urb MsgDesc: 17 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g70<1>UD g1<8,8,1>UD 0x02180128 urb MsgDesc: 18 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g72<1>UD g1<8,8,1>UD 0x02180138 urb MsgDesc: 19 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g74<1>UD g1<8,8,1>UD 0x02180148 urb MsgDesc: 20 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g76<1>UD g1<8,8,1>UD 0x02180158 urb MsgDesc: 21 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g78<1>UD g1<8,8,1>UD 0x02180168 urb MsgDesc: 22 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g80<1>UD g1<8,8,1>UD 0x02180178 urb MsgDesc: 23 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g82<1>UD g1<8,8,1>UD 0x02180188 urb MsgDesc: 24 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g84<1>UD g1<8,8,1>UD 0x02180198 urb MsgDesc: 25 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g86<1>UD g1<8,8,1>UD 0x021801a8 urb MsgDesc: 26 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g88<1>UD g1<8,8,1>UD 0x021801b8 urb MsgDesc: 27 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g90<1>UD g1<8,8,1>UD 0x021801c8 urb MsgDesc: 28 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g92<1>UD g1<8,8,1>UD 0x021801d8 urb MsgDesc: 29 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g94<1>UD g1<8,8,1>UD 0x021801e8 urb MsgDesc: 30 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g96<1>UD g1<8,8,1>UD 0x021801f8 urb MsgDesc: 31 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g98<1>UD g1<8,8,1>UD 0x02180208 urb MsgDesc: 32 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) null<1>F g12<8,8,1>UD 0x0c0a0027 urb MsgDesc: 2 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>UW g126<0,1,0>UD 0x040a02fd data MsgDesc: ( DC OWORD block write, 253, 2) mlen 2 rlen 0 { align1 1Q }; send(8) g115<1>UW g115<0,1,0>UD 0x021802fd data MsgDesc: ( DC OWORD block read, 253, 2) mlen 1 rlen 1 { align1 WE_all 1Q }; send(8) null<1>F g25<8,8,1>F 0x12080057 urb MsgDesc: 5 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g34<8,8,1>F 0x12080077 urb MsgDesc: 7 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g43<8,8,1>F 0x12080097 urb MsgDesc: 9 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g52<8,8,1>F 0x120800b7 urb MsgDesc: 11 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g61<8,8,1>F 0x120800d7 urb MsgDesc: 13 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g70<8,8,1>F 0x120800f7 urb MsgDesc: 15 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g2<8,8,1>F 0x12080117 urb MsgDesc: 17 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g2<8,8,1>F 0x12080137 urb MsgDesc: 19 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g2<8,8,1>F 0x12080157 urb MsgDesc: 21 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g79<8,8,1>F 0x12080177 urb MsgDesc: 23 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g88<8,8,1>F 0x12080197 urb MsgDesc: 25 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g97<8,8,1>F 0x120801b7 urb MsgDesc: 27 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g106<8,8,1>F 0x120801d7 urb MsgDesc: 29 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g117<8,8,1>F 0x920801f7 urb MsgDesc: 31 SIMD8 write mlen 9 rlen 0 { align1 1Q EOT }; send(8) g124<1>UW g11<8,8,1>UD 0x02229001 sampler MsgDesc: lod SIMD8 Surface = 1 Sampler = 0 mlen 1 rlen 2 { align1 1Q }; send(16) g120<1>UW g11<8,8,1>UD 0x04449001 sampler MsgDesc: lod SIMD16 Surface = 1 Sampler = 0 mlen 2 rlen 4 { align1 1H }; send(8) g124<1>UW g3<8,8,1>UD 0x08427000 sampler MsgDesc: ld SIMD8 Surface = 0 Sampler = 0 mlen 4 rlen 4 { align1 1Q }; send(16) null<1>UW g40<8,8,1>UD 0x04008501 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 1, SIMD16, inc) mlen 2 rlen 0 { align1 1H }; send(8) null<1>F g127<8,8,1>UD 0x82080007 urb MsgDesc: 0 SIMD8 write mlen 1 rlen 0 { align1 1Q EOT }; send(8) g124<1>UW g9<8,8,1>UD 0x0a4a8000 sampler MsgDesc: gather4 SIMD8 Surface = 0 Sampler = 0 mlen 5 rlen 4 { align1 1Q }; send(8) g2<1>UW g23<8,8,1>UD 0x0633a001 sampler MsgDesc: ld_lz SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 3 { align1 1Q }; send(16) g4<1>UW g12<8,8,1>UD 0x0c65a001 sampler MsgDesc: ld_lz SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 6 { align1 1H }; send(8) g2<1>UW g16<8,8,1>UD 0x0e434001 sampler MsgDesc: sample_d_c SIMD8 Surface = 1 Sampler = 0 mlen 7 rlen 4 { align1 2Q }; (+f1.0) send(8) null<1>UW g4<8,8,1>UD 0x02009501 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 1, SIMD8, inc) mlen 1 rlen 0 { align1 1Q }; send(8) g6<1>UW g9<8,8,1>UD 0x08434001 sampler MsgDesc: sample_d_c SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 4 { align1 1Q }; send(8) null<1>F g102<8,8,1>F 0x120801f7 urb MsgDesc: 31 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g121<8,8,1>F 0x8a080217 urb MsgDesc: 33 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(16) null<1>UW g3<0,1,0>UD 0x02008004 gateway MsgDesc: (barrier msg) mlen 1 rlen 0 { align1 WE_all 1H }; send(16) g3<1>UW g14<8,8,1>UD 0x04205efe dp data 1 MsgDesc: ( untyped surface read, Surface = 254, SIMD16, Mask = 0xe) mlen 2 rlen 2 { align1 1H }; send(8) null<1>F g30<8,8,1>F 0x140a0027 urb MsgDesc: 2 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g40<8,8,1>F 0x0c0a0047 urb MsgDesc: 4 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g126<8,8,1>UD 0x84080007 urb MsgDesc: 0 SIMD8 write mlen 2 rlen 0 { align1 1Q EOT }; send(8) g5<1>UW g11<8,8,1>UD 0x04415001 dp data 1 MsgDesc: ( DC typed surface read, Surface = 1, SIMD16, Mask = 0x0) mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g3<8,8,1>UD 0x04416001 dp data 1 MsgDesc: ( DC typed surface read, Surface = 1, SIMD8, Mask = 0x0) mlen 2 rlen 4 { align1 2Q }; send(8) g13<1>UD g3<8,8,1>UD 0x02480038 urb MsgDesc: 3 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) null<1>F g7<8,8,1>F 0x140a0037 urb MsgDesc: 3 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) g15<1>UD g2<8,8,1>UD 0x02280038 urb MsgDesc: 3 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) null<1>F g119<8,8,1>F 0x92080037 urb MsgDesc: 3 SIMD8 write mlen 9 rlen 0 { align1 1Q EOT }; send(8) null<1>F g8<8,8,1>F 0x140a0007 urb MsgDesc: 0 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g118<8,8,1>F 0x940a0007 urb MsgDesc: 0 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q EOT }; send(8) g124<1>UW g12<8,8,1>UD a0<0,1,0>UD 0x00000200 sampler MsgDesc: indirect { align1 1Q }; send(8) g10<1>UD g2<8,8,1>UD 0x02480048 urb MsgDesc: 4 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g6<1>UD g2<8,8,1>UD 0x02480088 urb MsgDesc: 8 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g14<1>UD g2<8,8,1>UD 0x02480058 urb MsgDesc: 5 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g11<1>UD g2<8,8,1>UD 0x024800a8 urb MsgDesc: 10 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g18<1>UD g2<8,8,1>UD 0x02480068 urb MsgDesc: 6 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g16<1>UD g2<8,8,1>UD 0x023800c8 urb MsgDesc: 12 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g2<8,8,1>UD 0x02480078 urb MsgDesc: 7 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x024800b8 urb MsgDesc: 11 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g7<1>UD g2<8,8,1>UD 0x02480098 urb MsgDesc: 9 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) null<1>F g119<8,8,1>F 0x920800b7 urb MsgDesc: 11 SIMD8 write mlen 9 rlen 0 { align1 1Q EOT }; send(8) g6<1>UW g8<8,8,1>UD 0x084b0000 sampler MsgDesc: gather4_c SIMD8 Surface = 0 Sampler = 0 mlen 4 rlen 4 { align1 1Q }; send(8) g7<1>UW g0<8,8,1>UD 0x02200008 pixel interp MsgDesc: (persp, per_message_offset, 0x08) mlen 1 rlen 2 { align1 1Q }; send(16) g9<1>UW g0<8,8,1>UD 0x02410008 pixel interp MsgDesc: (persp, per_message_offset, 0x08) mlen 1 rlen 4 { align1 1H }; send(8) g2<1>UW g11<8,8,1>UD 0x0443d001 sampler MsgDesc: ld_mcs SIMD8 Surface = 1 Sampler = 0 mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g9<8,8,1>UD 0x0843e001 sampler MsgDesc: ld2dms SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 4 { align1 1Q }; send(16) g2<1>UW g15<8,8,1>UD 0x0885d001 sampler MsgDesc: ld_mcs SIMD16 Surface = 1 Sampler = 0 mlen 4 rlen 8 { align1 1H }; send(16) g43<1>UW g11<8,8,1>UD 0x1085e001 sampler MsgDesc: ld2dms SIMD16 Surface = 1 Sampler = 0 mlen 8 rlen 8 { align1 1H }; send(8) g2<1>UW g6<8,8,1>UD 0x0a4b1000 sampler MsgDesc: gather4_po SIMD8 Surface = 0 Sampler = 0 mlen 5 rlen 4 { align1 1Q }; send(8) g74<1>UD g2<8,8,1>UD 0x02280028 urb MsgDesc: 2 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g7<1>UD g2<8,8,1>UD 0x02380028 urb MsgDesc: 2 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g15<1>UD g2<8,8,1>UD 0x02380038 urb MsgDesc: 3 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g124<1>UW g3<8,8,1>UD 0x0843e000 sampler MsgDesc: ld2dms SIMD8 Surface = 0 Sampler = 0 mlen 4 rlen 4 { align1 1Q }; send(8) g2<1>UW g3<8,8,1>UD 0x0443d000 sampler MsgDesc: ld_mcs SIMD8 Surface = 0 Sampler = 0 mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g19<8,8,1>UD 0x0a4a8001 sampler MsgDesc: gather4 SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 4 { align1 1Q }; send(16) g7<1>UW g16<8,8,1>UD 0x128c8001 sampler MsgDesc: gather4 SIMD16 Surface = 1 Sampler = 0 mlen 9 rlen 8 { align1 1H }; send(8) null<1>F g2<8,8,1>F 0x0c0a0057 urb MsgDesc: 5 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g9<8,8,1>UD 0x04080027 urb MsgDesc: 2 SIMD8 write mlen 2 rlen 0 { align1 1Q }; send(8) g6<1>UW g7<8,8,1>UD 0x08134001 sampler MsgDesc: sample_d_c SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 1 { align1 1Q }; send(8) g7<1>UW g11<8,8,1>UD 0x08134102 sampler MsgDesc: sample_d_c SIMD8 Surface = 2 Sampler = 1 mlen 4 rlen 1 { align1 1Q }; send(8) g13<1>UW g17<8,8,1>UD 0x021ab000 sampler MsgDesc: sampleinfo SIMD8 Surface = 0 Sampler = 0 mlen 1 rlen 1 { align1 1Q }; send(8) null<1>F g50<8,8,1>F 0x140a0057 urb MsgDesc: 5 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g60<8,8,1>F 0x140a0077 urb MsgDesc: 7 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g70<8,8,1>F 0x0c0a0097 urb MsgDesc: 9 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g122<8,8,1>F 0x8c0a0097 urb MsgDesc: 9 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q EOT }; send(8) g124<1>UW g6<8,8,1>UD 0x0a4b0000 sampler MsgDesc: gather4_c SIMD8 Surface = 0 Sampler = 0 mlen 5 rlen 4 { align1 1Q }; send(8) g5<1>UW g6<8,8,1>UD 0x061a3001 sampler MsgDesc: sample_c SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 1 { align1 1Q }; send(8) g6<1>UW g9<8,8,1>UD 0x061a3102 sampler MsgDesc: sample_c SIMD8 Surface = 2 Sampler = 1 mlen 3 rlen 1 { align1 1Q }; send(16) g9<1>UW g11<8,8,1>UD 0x0a2c3001 sampler MsgDesc: sample_c SIMD16 Surface = 1 Sampler = 0 mlen 5 rlen 2 { align1 1H }; send(16) g11<1>UW g2<8,8,1>UD 0x0a2c3102 sampler MsgDesc: sample_c SIMD16 Surface = 2 Sampler = 1 mlen 5 rlen 2 { align1 1H }; send(8) null<1>F g123<8,8,1>F 0x8a080077 urb MsgDesc: 7 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(8) null<1>F g30<8,8,1>UD 0x0c0a0067 urb MsgDesc: 6 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g36<8,8,1>UD 0x0c0a0077 urb MsgDesc: 7 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g42<8,8,1>UD 0x0c0a0087 urb MsgDesc: 8 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) g6<1>UW g6<8,8,1>UD 0x06420102 sampler MsgDesc: sample SIMD8 Surface = 2 Sampler = 1 mlen 3 rlen 4 { align1 1Q }; send(16) g10<1>UW g18<8,8,1>UD 0x0c840102 sampler MsgDesc: sample SIMD16 Surface = 2 Sampler = 1 mlen 6 rlen 8 { align1 1H }; send(8) g2<1>UW g2<8,8,1>UD 0x04420102 sampler MsgDesc: sample SIMD8 Surface = 2 Sampler = 1 mlen 2 rlen 4 { align1 1Q }; send(8) g6<1>UW g6<8,8,1>UD 0x06420304 sampler MsgDesc: sample SIMD8 Surface = 4 Sampler = 3 mlen 3 rlen 4 { align1 1Q }; send(16) g2<1>UW g10<8,8,1>UD 0x08840102 sampler MsgDesc: sample SIMD16 Surface = 2 Sampler = 1 mlen 4 rlen 8 { align1 1H }; send(16) g10<1>UW g18<8,8,1>UD 0x0c840304 sampler MsgDesc: sample SIMD16 Surface = 4 Sampler = 3 mlen 6 rlen 8 { align1 1H }; send(8) g2<1>UW g2<8,8,1>UD 0x04420304 sampler MsgDesc: sample SIMD8 Surface = 4 Sampler = 3 mlen 2 rlen 4 { align1 1Q }; send(8) g6<1>UW g6<8,8,1>UD 0x06420708 sampler MsgDesc: sample SIMD8 Surface = 8 Sampler = 7 mlen 3 rlen 4 { align1 1Q }; send(16) g2<1>UW g10<8,8,1>UD 0x08840304 sampler MsgDesc: sample SIMD16 Surface = 4 Sampler = 3 mlen 4 rlen 8 { align1 1H }; send(16) g10<1>UW g18<8,8,1>UD 0x0c840708 sampler MsgDesc: sample SIMD16 Surface = 8 Sampler = 7 mlen 6 rlen 8 { align1 1H }; send(8) g3<1>UW g11<8,8,1>UD 0x0a43c001 sampler MsgDesc: ld2dms_w SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 4 { align1 1Q }; send(16) g16<1>UW g5<8,8,1>UD 0x1485c001 sampler MsgDesc: ld2dms_w SIMD16 Surface = 1 Sampler = 0 mlen 10 rlen 8 { align1 1H }; send(16) g4<1>UD g13<0,1,0>UD 0x02280301 const MsgDesc: (1, 3, 0, 0) mlen 1 rlen 2 { align1 WE_all 1H }; send(8) g2<1>UW g2<8,8,1>UD 0x0443a001 sampler MsgDesc: ld_lz SIMD8 Surface = 1 Sampler = 0 mlen 2 rlen 4 { align1 1Q }; send(16) g2<1>UW g10<8,8,1>UD 0x0885a001 sampler MsgDesc: ld_lz SIMD16 Surface = 1 Sampler = 0 mlen 4 rlen 8 { align1 1H }; send(8) g12<1>UW g12<8,8,1>UD 0x06125001 sampler MsgDesc: sample_b_c SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 1 { align1 1Q }; send(8) g13<1>UW g15<8,8,1>UD 0x06125102 sampler MsgDesc: sample_b_c SIMD8 Surface = 2 Sampler = 1 mlen 3 rlen 1 { align1 1Q }; send(16) g20<1>UW g22<8,8,1>UD 0x0c245001 sampler MsgDesc: sample_b_c SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 2 { align1 1H }; send(16) g22<1>UW g28<8,8,1>UD 0x0c245102 sampler MsgDesc: sample_b_c SIMD16 Surface = 2 Sampler = 1 mlen 6 rlen 2 { align1 1H }; send(8) g38<1>UD g2<8,8,1>UD 0x024800c8 urb MsgDesc: 12 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g39<1>UD g2<8,8,1>UD 0x024800d8 urb MsgDesc: 13 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g40<1>UD g2<8,8,1>UD 0x024800e8 urb MsgDesc: 14 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g41<1>UD g2<8,8,1>UD 0x024800f8 urb MsgDesc: 15 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g42<1>UD g2<8,8,1>UD 0x02480108 urb MsgDesc: 16 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g43<1>UD g2<8,8,1>UD 0x02480118 urb MsgDesc: 17 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g44<1>UD g2<8,8,1>UD 0x02480128 urb MsgDesc: 18 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g45<1>UD g2<8,8,1>UD 0x02480138 urb MsgDesc: 19 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g46<1>UD g2<8,8,1>UD 0x02480148 urb MsgDesc: 20 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g47<1>UD g2<8,8,1>UD 0x02480158 urb MsgDesc: 21 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g48<1>UD g2<8,8,1>UD 0x02480168 urb MsgDesc: 22 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g49<1>UD g2<8,8,1>UD 0x02480178 urb MsgDesc: 23 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g50<1>UD g2<8,8,1>UD 0x02480188 urb MsgDesc: 24 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g51<1>UD g2<8,8,1>UD 0x02480198 urb MsgDesc: 25 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g52<1>UD g2<8,8,1>UD 0x024801a8 urb MsgDesc: 26 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g53<1>UD g2<8,8,1>UD 0x024801b8 urb MsgDesc: 27 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g54<1>UD g2<8,8,1>UD 0x024801c8 urb MsgDesc: 28 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g55<1>UD g2<8,8,1>UD 0x024801d8 urb MsgDesc: 29 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g56<1>UD g2<8,8,1>UD 0x024801e8 urb MsgDesc: 30 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g57<1>UD g2<8,8,1>UD 0x024801f8 urb MsgDesc: 31 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) null<1>F g19<8,8,1>UD 0x080a8027 urb MsgDesc: 2 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g8<8,8,1>UD 0x0a0a8027 urb MsgDesc: 2 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) g6<1>UW g11<8,8,1>UD 0x0e424001 sampler MsgDesc: sample_d SIMD8 Surface = 1 Sampler = 0 mlen 7 rlen 4 { align1 1Q }; send(8) g124<1>UW g7<8,8,1>UD 0x0212a000 sampler MsgDesc: resinfo SIMD8 Surface = 0 Sampler = 0 mlen 1 rlen 1 { align1 1Q }; send(8) g8<1>UD g14<8,8,1>UD 0x044a0128 urb MsgDesc: 18 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g22<1>UD g16<8,8,1>UD 0x044a0028 urb MsgDesc: 2 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) null<1>F g6<8,8,1>F 0x0a080017 urb MsgDesc: 1 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g7<8,8,1>F 0x0a080057 urb MsgDesc: 5 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) g4<1>UW g2<8,8,1>UD 0x02406001 dp data 1 MsgDesc: ( untyped surface read, Surface = 1, SIMD8, Mask = 0x0) mlen 1 rlen 4 { align1 1Q }; send(16) g5<1>UW g2<8,8,1>UD 0x04805001 dp data 1 MsgDesc: ( untyped surface read, Surface = 1, SIMD16, Mask = 0x0) mlen 2 rlen 8 { align1 1H }; send(8) g124<1>UW g13<8,8,1>UD 0x084b0001 sampler MsgDesc: gather4_c SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 4 { align1 1Q }; send(16) g120<1>UW g7<8,8,1>UD 0x0e8d0001 sampler MsgDesc: gather4_c SIMD16 Surface = 1 Sampler = 0 mlen 7 rlen 8 { align1 1H }; send(8) g10<1>UW g10<8,8,1>UD 0x0e134001 sampler MsgDesc: sample_d_c SIMD8 Surface = 1 Sampler = 0 mlen 7 rlen 1 { align1 1Q }; send(8) g11<1>UW g17<8,8,1>UD 0x0e134102 sampler MsgDesc: sample_d_c SIMD8 Surface = 2 Sampler = 1 mlen 7 rlen 1 { align1 1Q }; send(8) g14<1>UW g10<8,8,1>UD 0x064a8202 sampler MsgDesc: gather4 SIMD8 Surface = 2 Sampler = 2 mlen 3 rlen 4 { align1 1Q }; send(8) g6<1>UW g6<8,8,1>UD 0x084a8101 sampler MsgDesc: gather4 SIMD8 Surface = 1 Sampler = 1 mlen 4 rlen 4 { align1 1Q }; send(8) g5<1>UW g6<8,8,1>UD 0x021ab001 sampler MsgDesc: sampleinfo SIMD8 Surface = 1 Sampler = 0 mlen 1 rlen 1 { align1 1Q }; send(16) g6<1>UW g3<8,8,1>UD 0x022cb001 sampler MsgDesc: sampleinfo SIMD16 Surface = 1 Sampler = 0 mlen 1 rlen 2 { align1 1H }; send(8) null<1>F g122<8,8,1>F 0x8c0a0037 urb MsgDesc: 3 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q EOT }; send(8) null<1>F g10<8,8,1>F 0x12080027 urb MsgDesc: 2 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g123<8,8,1>F 0x8a080047 urb MsgDesc: 4 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(8) g14<1>UW g2<8,8,1>UD 0x04438000 sampler MsgDesc: sample_lz SIMD8 Surface = 0 Sampler = 0 mlen 2 rlen 4 { align1 1Q }; send(8) g61<1>UD g107<8,8,1>UD 0x02380048 urb MsgDesc: 4 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g64<1>UD g113<8,8,1>UD 0x02380058 urb MsgDesc: 5 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) null<1>F g119<8,8,1>F 0x92080047 urb MsgDesc: 4 SIMD8 write mlen 9 rlen 0 { align1 1Q EOT }; send(8) g5<1>UW g4<8,8,1>UD 0x06415001 dp data 1 MsgDesc: ( DC typed surface read, Surface = 1, SIMD16, Mask = 0x0) mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g10<8,8,1>UD 0x06416001 dp data 1 MsgDesc: ( DC typed surface read, Surface = 1, SIMD8, Mask = 0x0) mlen 3 rlen 4 { align1 2Q }; send(8) null<1>F g119<8,8,1>F 0x92080077 urb MsgDesc: 7 SIMD8 write mlen 9 rlen 0 { align1 1Q EOT }; send(8) g12<1>UD g8<4,4,1>UD 0x044a0038 urb MsgDesc: 3 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g21<1>UD g8<4,4,1>UD 0x044a0048 urb MsgDesc: 4 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) null<1>F g22<8,8,1>UD 0x0c0a00a7 urb MsgDesc: 10 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(16) g1<1>UW g9<8,8,1>UD 0x08858001 sampler MsgDesc: sample_lz SIMD16 Surface = 1 Sampler = 0 mlen 4 rlen 8 { align1 1H }; send(8) null<1>F g56<8,8,1>F 0x140a0097 urb MsgDesc: 9 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g76<8,8,1>F 0x0c0a00b7 urb MsgDesc: 11 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g122<8,8,1>F 0x8c0a00b7 urb MsgDesc: 11 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q EOT }; send(8) g4<1>UW g3<8,8,1>UD 0x0232a001 sampler MsgDesc: resinfo SIMD8 Surface = 1 Sampler = 0 mlen 1 rlen 3 { align1 1Q }; send(16) g8<1>UW g3<8,8,1>UD 0x0464a001 sampler MsgDesc: resinfo SIMD16 Surface = 1 Sampler = 0 mlen 2 rlen 6 { align1 1H }; send(8) null<1>F g6<8,8,1>UD 0x0a080007 urb MsgDesc: 0 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) g126<1>UW g10<8,8,1>UD 0x08123001 sampler MsgDesc: sample_c SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 1 { align1 1Q }; send(16) g124<1>UW g8<8,8,1>UD 0x10243001 sampler MsgDesc: sample_c SIMD16 Surface = 1 Sampler = 0 mlen 8 rlen 2 { align1 1H }; send(8) g12<1>UW g12<8,8,1>UD 0x06126001 sampler MsgDesc: sample_l_c SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 1 { align1 1Q }; send(8) g13<1>UW g15<8,8,1>UD 0x06126102 sampler MsgDesc: sample_l_c SIMD8 Surface = 2 Sampler = 1 mlen 3 rlen 1 { align1 1Q }; send(16) g20<1>UW g22<8,8,1>UD 0x0c246001 sampler MsgDesc: sample_l_c SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 2 { align1 1H }; send(16) g22<1>UW g28<8,8,1>UD 0x0c246102 sampler MsgDesc: sample_l_c SIMD16 Surface = 2 Sampler = 1 mlen 6 rlen 2 { align1 1H }; send(8) g4<1>UW g0<8,8,1>UD 0x02201000 pixel interp MsgDesc: (persp, sample_position, 0x00) mlen 1 rlen 2 { align1 1Q }; send(16) g6<1>UW g0<8,8,1>UD 0x02411000 pixel interp MsgDesc: (persp, sample_position, 0x00) mlen 1 rlen 4 { align1 1H }; send(8) g124<1>UW g19<8,8,1>UD 0x0a4b0001 sampler MsgDesc: gather4_c SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 4 { align1 1Q }; send(16) g120<1>UW g7<8,8,1>UD 0x128d0001 sampler MsgDesc: gather4_c SIMD16 Surface = 1 Sampler = 0 mlen 9 rlen 8 { align1 1H }; send(8) g2<1>UW g15<8,8,1>UD 0x06422001 sampler MsgDesc: sample_l SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(16) g14<1>UW g8<8,8,1>UD 0x0c842001 sampler MsgDesc: sample_l SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 8 { align1 1H }; send(8) null<1>F g118<8,8,1>F 0x940a0037 urb MsgDesc: 3 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q EOT }; send(8) g4<1>UW g5<8,8,1>UD 0x0212a001 sampler MsgDesc: resinfo SIMD8 Surface = 1 Sampler = 0 mlen 1 rlen 1 { align1 1Q }; send(16) g4<1>UW g6<8,8,1>UD 0x0424a001 sampler MsgDesc: resinfo SIMD16 Surface = 1 Sampler = 0 mlen 2 rlen 2 { align1 1H }; send(8) g8<1>UD g15<8,8,1>UD 0x042a0138 urb MsgDesc: 19 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g10<1>UD g15<8,8,1>UD 0x042a0338 urb MsgDesc: 51 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g12<1>UD g15<8,8,1>UD 0x042a0538 urb MsgDesc: 83 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g14<1>UD g15<8,8,1>UD 0x042a0738 urb MsgDesc: 115 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g8<1>UD g15<8,8,1>UD 0x042a0038 urb MsgDesc: 3 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g10<1>UD g15<8,8,1>UD 0x042a0238 urb MsgDesc: 35 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g12<1>UD g15<8,8,1>UD 0x042a0438 urb MsgDesc: 67 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g14<1>UD g15<8,8,1>UD 0x042a0638 urb MsgDesc: 99 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g35<8,8,1>UD 0x02480228 urb MsgDesc: 34 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g35<8,8,1>UD 0x02480428 urb MsgDesc: 66 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g12<1>UD g35<8,8,1>UD 0x02480628 urb MsgDesc: 98 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) null<1>F g6<8,8,1>UD 0x0a0a8037 urb MsgDesc: 3 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g11<8,8,1>UD 0x0a0a8047 urb MsgDesc: 4 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g12<8,8,1>UD 0x0a0a8057 urb MsgDesc: 5 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g13<8,8,1>UD 0x0a0a8067 urb MsgDesc: 6 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g14<8,8,1>UD 0x0a0a8077 urb MsgDesc: 7 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g15<8,8,1>UD 0x0a0a8087 urb MsgDesc: 8 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g16<8,8,1>UD 0x0a0a8097 urb MsgDesc: 9 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g17<8,8,1>UD 0x0a0a80a7 urb MsgDesc: 10 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g18<8,8,1>UD 0x0a0a80b7 urb MsgDesc: 11 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g19<8,8,1>UD 0x0a0a80c7 urb MsgDesc: 12 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g20<8,8,1>UD 0x0a0a80d7 urb MsgDesc: 13 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g21<8,8,1>UD 0x0a0a80e7 urb MsgDesc: 14 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g22<8,8,1>UD 0x0a0a80f7 urb MsgDesc: 15 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g23<8,8,1>UD 0x0a0a8107 urb MsgDesc: 16 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g24<8,8,1>UD 0x0a0a8117 urb MsgDesc: 17 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g25<8,8,1>UD 0x0a0a8127 urb MsgDesc: 18 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g26<8,8,1>UD 0x0a0a8137 urb MsgDesc: 19 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g27<8,8,1>UD 0x0a0a8147 urb MsgDesc: 20 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g28<8,8,1>UD 0x0a0a8157 urb MsgDesc: 21 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g29<8,8,1>UD 0x0a0a8167 urb MsgDesc: 22 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g30<8,8,1>UD 0x0a0a8177 urb MsgDesc: 23 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g31<8,8,1>UD 0x0a0a8187 urb MsgDesc: 24 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g32<8,8,1>UD 0x0a0a8197 urb MsgDesc: 25 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g33<8,8,1>UD 0x0a0a81a7 urb MsgDesc: 26 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g34<8,8,1>UD 0x0a0a81b7 urb MsgDesc: 27 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g35<8,8,1>UD 0x0a0a81c7 urb MsgDesc: 28 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g36<8,8,1>UD 0x0a0a81d7 urb MsgDesc: 29 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g37<8,8,1>UD 0x0a0a81e7 urb MsgDesc: 30 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g38<8,8,1>UD 0x0a0a81f7 urb MsgDesc: 31 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g39<8,8,1>UD 0x0a0a8207 urb MsgDesc: 32 SIMD8 write per-slot masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g122<8,8,1>F 0x8c0a0027 urb MsgDesc: 2 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q EOT }; send(8) g124<1>UW g2<8,8,1>UD 0x06424001 sampler MsgDesc: sample_d SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(8) g124<1>UW g2<8,8,1>UD 0x06229001 sampler MsgDesc: lod SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 2 { align1 1Q }; send(16) g120<1>UW g12<8,8,1>UD 0x0c449001 sampler MsgDesc: lod SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 4 { align1 1H }; send(8) g5<1>UW g19<8,8,1>UD 0x0443a102 sampler MsgDesc: ld_lz SIMD8 Surface = 2 Sampler = 1 mlen 2 rlen 4 { align1 1Q }; send(16) g15<1>UW g11<8,8,1>UD 0x0885a102 sampler MsgDesc: ld_lz SIMD16 Surface = 2 Sampler = 1 mlen 4 rlen 8 { align1 1H }; send(8) g124<1>UW g12<8,8,1>UD 0x0a43c000 sampler MsgDesc: ld2dms_w SIMD8 Surface = 0 Sampler = 0 mlen 5 rlen 4 { align1 1Q }; send(8) g4<1>UW g5<8,8,1>UD 0x04120001 sampler MsgDesc: sample SIMD8 Surface = 1 Sampler = 0 mlen 2 rlen 1 { align1 1Q }; send(16) g4<1>UW g7<8,8,1>UD 0x08240001 sampler MsgDesc: sample SIMD16 Surface = 1 Sampler = 0 mlen 4 rlen 2 { align1 1H }; send(8) null<1>F g118<8,8,1>F 0x940a0027 urb MsgDesc: 2 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q EOT }; send(8) null<1>F g2<8,8,1>F 0x12080067 urb MsgDesc: 6 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g123<8,8,1>F 0x8a080087 urb MsgDesc: 8 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(8) g21<1>UD g2<8,8,1>UD 0x02380068 urb MsgDesc: 6 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g35<1>UD g2<8,8,1>UD 0x02380088 urb MsgDesc: 8 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) null<1>F g5<8,8,1>F 0x140a0067 urb MsgDesc: 6 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g118<8,8,1>F 0x940a0067 urb MsgDesc: 6 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q EOT }; send(8) g2<1>UW g8<8,8,1>UD 0x04220001 sampler MsgDesc: sample SIMD8 Surface = 1 Sampler = 0 mlen 2 rlen 2 { align1 1Q }; send(16) g2<1>UW g14<8,8,1>UD 0x08440001 sampler MsgDesc: sample SIMD16 Surface = 1 Sampler = 0 mlen 4 rlen 4 { align1 1H }; send(8) null<1>F g123<8,8,1>F 0x8a0800d7 urb MsgDesc: 13 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(8) g22<1>UW g14<8,8,1>UD 0x064a8405 sampler MsgDesc: gather4 SIMD8 Surface = 5 Sampler = 4 mlen 3 rlen 4 { align1 1Q }; send(8) g6<1>UW g6<8,8,1>UD 0x084a8102 sampler MsgDesc: gather4 SIMD8 Surface = 2 Sampler = 1 mlen 4 rlen 4 { align1 1Q }; send(8) g14<1>UW g10<8,8,1>UD 0x084a8203 sampler MsgDesc: gather4 SIMD8 Surface = 3 Sampler = 2 mlen 4 rlen 4 { align1 1Q }; send(8) g18<1>UW g26<8,8,1>UD 0x0a4a8304 sampler MsgDesc: gather4 SIMD8 Surface = 4 Sampler = 3 mlen 5 rlen 4 { align1 1Q }; send(16) g18<1>UW g43<8,8,1>UD 0x0a8c8405 sampler MsgDesc: gather4 SIMD16 Surface = 5 Sampler = 4 mlen 5 rlen 8 { align1 1H }; send(16) g43<1>UW g7<8,8,1>UD 0x0e8c8102 sampler MsgDesc: gather4 SIMD16 Surface = 2 Sampler = 1 mlen 7 rlen 8 { align1 1H }; send(16) g2<1>UW g51<8,8,1>UD 0x0e8c8203 sampler MsgDesc: gather4 SIMD16 Surface = 3 Sampler = 2 mlen 7 rlen 8 { align1 1H }; send(16) g10<1>UW g26<8,8,1>UD 0x128c8304 sampler MsgDesc: gather4 SIMD16 Surface = 4 Sampler = 3 mlen 9 rlen 8 { align1 1H }; send(8) g6<1>UW g15<8,8,1>UD 0x0e4a4001 sampler MsgDesc: sample_d SIMD8 Surface = 1 Sampler = 0 mlen 7 rlen 4 { align1 1Q }; send(16) null<1>UW g2<8,8,1>UD 0x04008601 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 1, SIMD16, dec) mlen 2 rlen 0 { align1 1H }; send(8) g124<1>UW g2<8,8,1>UD 0x08422001 sampler MsgDesc: sample_l SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 4 { align1 1Q }; send(16) g120<1>UW g2<8,8,1>UD 0x10842001 sampler MsgDesc: sample_l SIMD16 Surface = 1 Sampler = 0 mlen 8 rlen 8 { align1 1H }; send(8) g6<1>UW g7<8,8,1>UD 0x08126001 sampler MsgDesc: sample_l_c SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 1 { align1 1Q }; send(8) g7<1>UW g11<8,8,1>UD 0x08126102 sampler MsgDesc: sample_l_c SIMD8 Surface = 2 Sampler = 1 mlen 4 rlen 1 { align1 1Q }; send(16) g10<1>UW g12<8,8,1>UD 0x10246001 sampler MsgDesc: sample_l_c SIMD16 Surface = 1 Sampler = 0 mlen 8 rlen 2 { align1 1H }; send(16) g12<1>UW g20<8,8,1>UD 0x10246102 sampler MsgDesc: sample_l_c SIMD16 Surface = 2 Sampler = 1 mlen 8 rlen 2 { align1 1H }; send(8) null<1>F g18<8,8,1>UD 0x0e0a8047 urb MsgDesc: 4 SIMD8 write per-slot masked mlen 7 rlen 0 { align1 1Q }; send(8) g9<1>UD g34<8,8,1>UD 0x02480218 urb MsgDesc: 33 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g17<1>UD g34<8,8,1>UD 0x02480238 urb MsgDesc: 35 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g2<1>UD g6<8,8,1>UD 0x041a0128 urb MsgDesc: 18 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g22<1>UD g8<8,8,1>UD 0x041a0028 urb MsgDesc: 2 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) null<1>F g2<8,8,1>UD 0x06088027 urb MsgDesc: 2 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g12<8,8,1>UD 0x06088037 urb MsgDesc: 3 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g13<8,8,1>UD 0x06088047 urb MsgDesc: 4 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g14<8,8,1>UD 0x06088057 urb MsgDesc: 5 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g15<8,8,1>UD 0x06088067 urb MsgDesc: 6 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g16<8,8,1>UD 0x06088077 urb MsgDesc: 7 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g17<8,8,1>UD 0x06088087 urb MsgDesc: 8 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g18<8,8,1>UD 0x06088097 urb MsgDesc: 9 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g19<8,8,1>UD 0x060880a7 urb MsgDesc: 10 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g20<8,8,1>UD 0x060880b7 urb MsgDesc: 11 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g21<8,8,1>UD 0x060880c7 urb MsgDesc: 12 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g22<8,8,1>UD 0x060880d7 urb MsgDesc: 13 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g23<8,8,1>UD 0x060880e7 urb MsgDesc: 14 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g24<8,8,1>UD 0x060880f7 urb MsgDesc: 15 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g25<8,8,1>UD 0x06088107 urb MsgDesc: 16 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g26<8,8,1>UD 0x06088117 urb MsgDesc: 17 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g27<8,8,1>UD 0x06088127 urb MsgDesc: 18 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g28<8,8,1>UD 0x06088137 urb MsgDesc: 19 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g29<8,8,1>UD 0x06088147 urb MsgDesc: 20 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g30<8,8,1>UD 0x06088157 urb MsgDesc: 21 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g31<8,8,1>UD 0x06088167 urb MsgDesc: 22 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g32<8,8,1>UD 0x06088177 urb MsgDesc: 23 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g33<8,8,1>UD 0x06088187 urb MsgDesc: 24 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g34<8,8,1>UD 0x06088197 urb MsgDesc: 25 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g35<8,8,1>UD 0x060881a7 urb MsgDesc: 26 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g36<8,8,1>UD 0x060881b7 urb MsgDesc: 27 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g37<8,8,1>UD 0x060881c7 urb MsgDesc: 28 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g38<8,8,1>UD 0x060881d7 urb MsgDesc: 29 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g39<8,8,1>UD 0x060881e7 urb MsgDesc: 30 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) null<1>F g40<8,8,1>UD 0x060881f7 urb MsgDesc: 31 SIMD8 write masked mlen 3 rlen 0 { align1 1Q }; send(8) g3<1>UW g10<8,8,1>UD 0x0242a001 sampler MsgDesc: resinfo SIMD8 Surface = 1 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(16) g3<1>UW g11<8,8,1>UD 0x0484a001 sampler MsgDesc: resinfo SIMD16 Surface = 1 Sampler = 0 mlen 2 rlen 8 { align1 1H }; send(8) g124<1>UW g6<8,8,1>UD 0x06320001 sampler MsgDesc: sample SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 3 { align1 1Q }; send(16) g120<1>UW g8<8,8,1>UD 0x0c640001 sampler MsgDesc: sample SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 6 { align1 1H }; send(8) g124<1>UW g2<8,8,1>UD 0x02406000 dp data 1 MsgDesc: ( untyped surface read, Surface = 0, SIMD8, Mask = 0x0) mlen 1 rlen 4 { align1 1Q }; send(8) g127<1>UW g6<8,8,1>UD 0x06120001 sampler MsgDesc: sample SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 1 { align1 1Q }; send(16) g126<1>UW g8<8,8,1>UD 0x0c240001 sampler MsgDesc: sample SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 2 { align1 1H }; send(8) g23<1>UW g2<8,8,1>UD 0x04115e01 dp data 1 MsgDesc: ( DC typed surface read, Surface = 1, SIMD16, Mask = 0xe) mlen 2 rlen 1 { align1 1Q }; send(8) g39<1>UW g45<8,8,1>UD 0x04116e01 dp data 1 MsgDesc: ( DC typed surface read, Surface = 1, SIMD8, Mask = 0xe) mlen 2 rlen 1 { align1 2Q }; (+f1.0) send(8) null<1>UW g2<8,8,1>UD 0x04018501 dp data 1 MsgDesc: ( DC typed atomic, Surface = 1, SIMD16, inc) mlen 2 rlen 0 { align1 1Q }; (+f1.0) send(8) null<1>UW g42<8,8,1>UD 0x04019501 dp data 1 MsgDesc: ( DC typed atomic, Surface = 1, SIMD8, inc) mlen 2 rlen 0 { align1 2Q }; send(8) g2<1>UW g6<8,8,1>UD 0x04423001 sampler MsgDesc: sample_c SIMD8 Surface = 1 Sampler = 0 mlen 2 rlen 4 { align1 1Q }; send(8) g6<1>UW g8<8,8,1>UD 0x04423102 sampler MsgDesc: sample_c SIMD8 Surface = 2 Sampler = 1 mlen 2 rlen 4 { align1 1Q }; send(16) g2<1>UW g10<8,8,1>UD 0x08843001 sampler MsgDesc: sample_c SIMD16 Surface = 1 Sampler = 0 mlen 4 rlen 8 { align1 1H }; send(16) g10<1>UW g18<8,8,1>UD 0x08843102 sampler MsgDesc: sample_c SIMD16 Surface = 2 Sampler = 1 mlen 4 rlen 8 { align1 1H }; send(8) g6<1>UD g22<8,8,1>UD 0x044a0318 urb MsgDesc: 49 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g10<1>UD g22<8,8,1>UD 0x044a0518 urb MsgDesc: 81 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g14<1>UD g22<8,8,1>UD 0x044a0718 urb MsgDesc: 113 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g18<1>UD g22<8,8,1>UD 0x044a0918 urb MsgDesc: 145 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g13<1>UD g29<8,8,1>UD 0x044a0218 urb MsgDesc: 33 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g17<1>UD g29<8,8,1>UD 0x044a0418 urb MsgDesc: 65 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g21<1>UD g29<8,8,1>UD 0x044a0618 urb MsgDesc: 97 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g25<1>UD g29<8,8,1>UD 0x044a0818 urb MsgDesc: 129 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) null<1>F g6<8,8,1>UD 0x0c0a0217 urb MsgDesc: 33 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g12<8,8,1>UD 0x0c0a0227 urb MsgDesc: 34 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g13<8,8,1>UD 0x0c0a0237 urb MsgDesc: 35 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g14<8,8,1>UD 0x0c0a0247 urb MsgDesc: 36 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g15<8,8,1>UD 0x0c0a0257 urb MsgDesc: 37 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g16<8,8,1>UD 0x0c0a0267 urb MsgDesc: 38 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g17<8,8,1>UD 0x0c0a0277 urb MsgDesc: 39 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g18<8,8,1>UD 0x0c0a0287 urb MsgDesc: 40 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g19<8,8,1>UD 0x0c0a0297 urb MsgDesc: 41 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g20<8,8,1>UD 0x0c0a02a7 urb MsgDesc: 42 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g21<8,8,1>UD 0x0c0a02b7 urb MsgDesc: 43 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g22<8,8,1>UD 0x0c0a02c7 urb MsgDesc: 44 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g23<8,8,1>UD 0x0c0a02d7 urb MsgDesc: 45 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g24<8,8,1>UD 0x0c0a02e7 urb MsgDesc: 46 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g25<8,8,1>UD 0x0c0a02f7 urb MsgDesc: 47 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g26<8,8,1>UD 0x0c0a0307 urb MsgDesc: 48 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g27<8,8,1>UD 0x0c0a0317 urb MsgDesc: 49 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g28<8,8,1>UD 0x0c0a0327 urb MsgDesc: 50 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g29<8,8,1>UD 0x0c0a0337 urb MsgDesc: 51 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g30<8,8,1>UD 0x0c0a0347 urb MsgDesc: 52 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g31<8,8,1>UD 0x0c0a0357 urb MsgDesc: 53 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g32<8,8,1>UD 0x0c0a0367 urb MsgDesc: 54 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g33<8,8,1>UD 0x0c0a0377 urb MsgDesc: 55 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g34<8,8,1>UD 0x0c0a0387 urb MsgDesc: 56 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g35<8,8,1>UD 0x0c0a0397 urb MsgDesc: 57 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g36<8,8,1>UD 0x0c0a03a7 urb MsgDesc: 58 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g37<8,8,1>UD 0x0c0a03b7 urb MsgDesc: 59 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g38<8,8,1>UD 0x0c0a03c7 urb MsgDesc: 60 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g39<8,8,1>UD 0x0c0a03d7 urb MsgDesc: 61 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g40<8,8,1>UD 0x0c0a03e7 urb MsgDesc: 62 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g41<8,8,1>UD 0x0c0a03f7 urb MsgDesc: 63 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g16<8,8,1>UD 0x0a080067 urb MsgDesc: 6 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g17<8,8,1>UD 0x0a080077 urb MsgDesc: 7 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g18<8,8,1>UD 0x0a080087 urb MsgDesc: 8 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g19<8,8,1>UD 0x0a080097 urb MsgDesc: 9 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g20<8,8,1>UD 0x0a0800a7 urb MsgDesc: 10 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g21<8,8,1>UD 0x0a0800b7 urb MsgDesc: 11 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g22<8,8,1>UD 0x0a0800c7 urb MsgDesc: 12 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g23<8,8,1>UD 0x0a0800d7 urb MsgDesc: 13 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g24<8,8,1>UD 0x0a0800e7 urb MsgDesc: 14 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g25<8,8,1>UD 0x0a0800f7 urb MsgDesc: 15 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g26<8,8,1>UD 0x0a080107 urb MsgDesc: 16 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g27<8,8,1>UD 0x0a080117 urb MsgDesc: 17 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g28<8,8,1>UD 0x0a080127 urb MsgDesc: 18 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g29<8,8,1>UD 0x0a080137 urb MsgDesc: 19 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g30<8,8,1>UD 0x0a080147 urb MsgDesc: 20 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g31<8,8,1>UD 0x0a080157 urb MsgDesc: 21 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g32<8,8,1>UD 0x0a080167 urb MsgDesc: 22 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g33<8,8,1>UD 0x0a080177 urb MsgDesc: 23 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g34<8,8,1>UD 0x0a080187 urb MsgDesc: 24 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g35<8,8,1>UD 0x0a080197 urb MsgDesc: 25 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g36<8,8,1>UD 0x0a0801a7 urb MsgDesc: 26 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g37<8,8,1>UD 0x0a0801b7 urb MsgDesc: 27 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g38<8,8,1>UD 0x0a0801c7 urb MsgDesc: 28 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g39<8,8,1>UD 0x0a0801d7 urb MsgDesc: 29 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g40<8,8,1>UD 0x0a0801e7 urb MsgDesc: 30 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g41<8,8,1>UD 0x0a0801f7 urb MsgDesc: 31 SIMD8 write mlen 5 rlen 0 { align1 1Q }; send(8) g13<1>UW g2<8,8,1>UD 0x06123001 sampler MsgDesc: sample_c SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 1 { align1 1Q }; send(8) g14<1>UW g5<8,8,1>UD 0x06123102 sampler MsgDesc: sample_c SIMD8 Surface = 2 Sampler = 1 mlen 3 rlen 1 { align1 1Q }; send(16) g22<1>UW g2<8,8,1>UD 0x0c243001 sampler MsgDesc: sample_c SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 2 { align1 1H }; send(16) g24<1>UW g16<8,8,1>UD 0x0c243102 sampler MsgDesc: sample_c SIMD16 Surface = 2 Sampler = 1 mlen 6 rlen 2 { align1 1H }; send(8) g5<1>UW g15<8,8,1>UD 0x04420203 sampler MsgDesc: sample SIMD8 Surface = 3 Sampler = 2 mlen 2 rlen 4 { align1 1Q }; send(16) g7<1>UW g27<8,8,1>UD 0x08840203 sampler MsgDesc: sample SIMD16 Surface = 3 Sampler = 2 mlen 4 rlen 8 { align1 1H }; send(16) g4<1>UW g17<8,8,1>UD 0x0420a503 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 3, SIMD16, inc) mlen 2 rlen 2 { align1 1H }; send(16) null<1>UW g18<8,8,1>UD 0x04008504 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 4, SIMD16, inc) mlen 2 rlen 0 { align1 1H }; send(16) g11<1>UW g19<8,8,1>UD 0x0420a602 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 2, SIMD16, dec) mlen 2 rlen 2 { align1 1H }; send(16) null<1>UW g20<8,8,1>UD 0x04008505 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 5, SIMD16, inc) mlen 2 rlen 0 { align1 1H }; send(16) g16<1>UW g21<8,8,1>UD 0x04205e01 dp data 1 MsgDesc: ( untyped surface read, Surface = 1, SIMD16, Mask = 0xe) mlen 2 rlen 2 { align1 1H }; send(16) null<1>UW g22<8,8,1>UD 0x04008506 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 6, SIMD16, inc) mlen 2 rlen 0 { align1 1H }; send(8) g26<1>UW g26<8,8,1>UD 0x0242a203 sampler MsgDesc: resinfo SIMD8 Surface = 3 Sampler = 2 mlen 1 rlen 4 { align1 1Q }; send(8) g30<1>UW g30<8,8,1>UD 0x0242a304 sampler MsgDesc: resinfo SIMD8 Surface = 4 Sampler = 3 mlen 1 rlen 4 { align1 1Q }; send(8) g34<1>UW g34<8,8,1>UD 0x0242a405 sampler MsgDesc: resinfo SIMD8 Surface = 5 Sampler = 4 mlen 1 rlen 4 { align1 1Q }; send(8) g38<1>UW g38<8,8,1>UD 0x0242a506 sampler MsgDesc: resinfo SIMD8 Surface = 6 Sampler = 5 mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UW g25<8,8,1>UD 0x0242a102 sampler MsgDesc: resinfo SIMD8 Surface = 2 Sampler = 1 mlen 1 rlen 4 { align1 1Q }; send(8) g42<1>UW g42<8,8,1>UD 0x0242a607 sampler MsgDesc: resinfo SIMD8 Surface = 7 Sampler = 6 mlen 1 rlen 4 { align1 1Q }; send(8) g46<1>UW g46<8,8,1>UD 0x0242a708 sampler MsgDesc: resinfo SIMD8 Surface = 8 Sampler = 7 mlen 1 rlen 4 { align1 1Q }; send(8) g50<1>UW g50<8,8,1>UD 0x0242a809 sampler MsgDesc: resinfo SIMD8 Surface = 9 Sampler = 8 mlen 1 rlen 4 { align1 1Q }; send(8) g2<1>UW g54<8,8,1>UD 0x0242a90a sampler MsgDesc: resinfo SIMD8 Surface = 10 Sampler = 9 mlen 1 rlen 4 { align1 1Q }; send(8) g6<1>UW g55<8,8,1>UD 0x0242aa0b sampler MsgDesc: resinfo SIMD8 Surface = 11 Sampler = 10 mlen 1 rlen 4 { align1 1Q }; send(8) g10<1>UW g56<8,8,1>UD 0x0242ab0c sampler MsgDesc: resinfo SIMD8 Surface = 12 Sampler = 11 mlen 1 rlen 4 { align1 1Q }; send(8) g14<1>UW g57<8,8,1>UD 0x0242ac0d sampler MsgDesc: resinfo SIMD8 Surface = 13 Sampler = 12 mlen 1 rlen 4 { align1 1Q }; send(16) g10<1>UW g18<8,8,1>UD 0x0484a102 sampler MsgDesc: resinfo SIMD16 Surface = 2 Sampler = 1 mlen 2 rlen 8 { align1 1H }; send(16) g82<1>UW g110<8,8,1>UD 0x0484aa0b sampler MsgDesc: resinfo SIMD16 Surface = 11 Sampler = 10 mlen 2 rlen 8 { align1 1H }; send(16) g18<1>UW g26<8,8,1>UD 0x0484a203 sampler MsgDesc: resinfo SIMD16 Surface = 3 Sampler = 2 mlen 2 rlen 8 { align1 1H }; send(16) g90<1>UW g112<8,8,1>UD 0x0484ab0c sampler MsgDesc: resinfo SIMD16 Surface = 12 Sampler = 11 mlen 2 rlen 8 { align1 1H }; send(16) g98<1>UW g106<8,8,1>UD 0x0484ac0d sampler MsgDesc: resinfo SIMD16 Surface = 13 Sampler = 12 mlen 2 rlen 8 { align1 1H }; send(16) g26<1>UW g34<8,8,1>UD 0x0484a304 sampler MsgDesc: resinfo SIMD16 Surface = 4 Sampler = 3 mlen 2 rlen 8 { align1 1H }; send(16) g34<1>UW g42<8,8,1>UD 0x0484a405 sampler MsgDesc: resinfo SIMD16 Surface = 5 Sampler = 4 mlen 2 rlen 8 { align1 1H }; send(16) g42<1>UW g50<8,8,1>UD 0x0484a506 sampler MsgDesc: resinfo SIMD16 Surface = 6 Sampler = 5 mlen 2 rlen 8 { align1 1H }; send(16) g50<1>UW g58<8,8,1>UD 0x0484a607 sampler MsgDesc: resinfo SIMD16 Surface = 7 Sampler = 6 mlen 2 rlen 8 { align1 1H }; send(16) g58<1>UW g66<8,8,1>UD 0x0484a708 sampler MsgDesc: resinfo SIMD16 Surface = 8 Sampler = 7 mlen 2 rlen 8 { align1 1H }; send(16) g66<1>UW g74<8,8,1>UD 0x0484a809 sampler MsgDesc: resinfo SIMD16 Surface = 9 Sampler = 8 mlen 2 rlen 8 { align1 1H }; send(16) g74<1>UW g108<8,8,1>UD 0x0484a90a sampler MsgDesc: resinfo SIMD16 Surface = 10 Sampler = 9 mlen 2 rlen 8 { align1 1H }; send(16) null<1>UW g3<8,8,1>UD 0x040085fe dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 254, SIMD16, inc) mlen 2 rlen 0 { align1 1H }; send(8) null<1>F g119<8,8,1>F 0x92080067 urb MsgDesc: 6 SIMD8 write mlen 9 rlen 0 { align1 1Q EOT }; send(8) g6<1>UW g20<8,8,1>UD 0x12424001 sampler MsgDesc: sample_d SIMD8 Surface = 1 Sampler = 0 mlen 9 rlen 4 { align1 1Q }; send(8) g17<1>UW g2<8,8,1>UD 0x0413a001 sampler MsgDesc: ld_lz SIMD8 Surface = 1 Sampler = 0 mlen 2 rlen 1 { align1 1Q }; send(16) g2<1>UW g7<8,8,1>UD 0x0825a001 sampler MsgDesc: ld_lz SIMD16 Surface = 1 Sampler = 0 mlen 4 rlen 2 { align1 1H }; send(8) g9<1>UW g17<8,8,1>UD 0x06422000 sampler MsgDesc: sample_l SIMD8 Surface = 0 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(16) null<1>UW g123<0,1,0>UD 0x060a03fd data MsgDesc: ( DC OWORD block write, 253, 3) mlen 3 rlen 0 { align1 1H }; send(16) g114<1>UW g114<0,1,0>UD 0x022803fd data MsgDesc: ( DC OWORD block read, 253, 3) mlen 1 rlen 2 { align1 WE_all 1H }; send(8) null<1>F g12<8,8,1>UD 0x0c0a0127 urb MsgDesc: 18 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) g2<1>UW g11<8,8,1>UD 0x04420405 sampler MsgDesc: sample SIMD8 Surface = 5 Sampler = 4 mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g12<8,8,1>UD 0x04420506 sampler MsgDesc: sample SIMD8 Surface = 6 Sampler = 5 mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g13<8,8,1>UD 0x04420607 sampler MsgDesc: sample SIMD8 Surface = 7 Sampler = 6 mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g14<8,8,1>UD 0x04420708 sampler MsgDesc: sample SIMD8 Surface = 8 Sampler = 7 mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g15<8,8,1>UD 0x04420809 sampler MsgDesc: sample SIMD8 Surface = 9 Sampler = 8 mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g16<8,8,1>UD 0x0442090a sampler MsgDesc: sample SIMD8 Surface = 10 Sampler = 9 mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g17<8,8,1>UD 0x04420a0b sampler MsgDesc: sample SIMD8 Surface = 11 Sampler = 10 mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g18<8,8,1>UD 0x04420b0c sampler MsgDesc: sample SIMD8 Surface = 12 Sampler = 11 mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g19<8,8,1>UD 0x04420c0d sampler MsgDesc: sample SIMD8 Surface = 13 Sampler = 12 mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g20<8,8,1>UD 0x04420d0e sampler MsgDesc: sample SIMD8 Surface = 14 Sampler = 13 mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g21<8,8,1>UD 0x04420e0f sampler MsgDesc: sample SIMD8 Surface = 15 Sampler = 14 mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g22<8,8,1>UD 0x04420f10 sampler MsgDesc: sample SIMD8 Surface = 16 Sampler = 15 mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g10<8,8,1>UD 0x064a0011 sampler MsgDesc: sample SIMD8 Surface = 17 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g13<8,8,1>UD 0x064a0112 sampler MsgDesc: sample SIMD8 Surface = 18 Sampler = 1 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g10<8,8,1>UD 0x064a0213 sampler MsgDesc: sample SIMD8 Surface = 19 Sampler = 2 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g13<8,8,1>UD 0x064a0314 sampler MsgDesc: sample SIMD8 Surface = 20 Sampler = 3 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g10<8,8,1>UD 0x064a0415 sampler MsgDesc: sample SIMD8 Surface = 21 Sampler = 4 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g13<8,8,1>UD 0x064a0516 sampler MsgDesc: sample SIMD8 Surface = 22 Sampler = 5 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g10<8,8,1>UD 0x064a0617 sampler MsgDesc: sample SIMD8 Surface = 23 Sampler = 6 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g13<8,8,1>UD 0x064a0718 sampler MsgDesc: sample SIMD8 Surface = 24 Sampler = 7 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g10<8,8,1>UD 0x064a0819 sampler MsgDesc: sample SIMD8 Surface = 25 Sampler = 8 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g13<8,8,1>UD 0x064a091a sampler MsgDesc: sample SIMD8 Surface = 26 Sampler = 9 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g10<8,8,1>UD 0x064a0a1b sampler MsgDesc: sample SIMD8 Surface = 27 Sampler = 10 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g13<8,8,1>UD 0x064a0b1c sampler MsgDesc: sample SIMD8 Surface = 28 Sampler = 11 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g10<8,8,1>UD 0x064a0c1d sampler MsgDesc: sample SIMD8 Surface = 29 Sampler = 12 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g13<8,8,1>UD 0x064a0d1e sampler MsgDesc: sample SIMD8 Surface = 30 Sampler = 13 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g10<8,8,1>UD 0x064a0e1f sampler MsgDesc: sample SIMD8 Surface = 31 Sampler = 14 mlen 3 rlen 4 { align1 1Q }; send(8) g2<1>UW g13<8,8,1>UD 0x064a0f20 sampler MsgDesc: sample SIMD8 Surface = 32 Sampler = 15 mlen 3 rlen 4 { align1 1Q }; send(16) g2<1>UW g28<8,8,1>UD 0x08840405 sampler MsgDesc: sample SIMD16 Surface = 5 Sampler = 4 mlen 4 rlen 8 { align1 1H }; send(16) g2<1>UW g29<8,8,1>UD 0x08840506 sampler MsgDesc: sample SIMD16 Surface = 6 Sampler = 5 mlen 4 rlen 8 { align1 1H }; send(16) g2<1>UW g30<8,8,1>UD 0x08840607 sampler MsgDesc: sample SIMD16 Surface = 7 Sampler = 6 mlen 4 rlen 8 { align1 1H }; send(16) g2<1>UW g31<8,8,1>UD 0x08840708 sampler MsgDesc: sample SIMD16 Surface = 8 Sampler = 7 mlen 4 rlen 8 { align1 1H }; send(16) g2<1>UW g32<8,8,1>UD 0x08840809 sampler MsgDesc: sample SIMD16 Surface = 9 Sampler = 8 mlen 4 rlen 8 { align1 1H }; send(16) g2<1>UW g33<8,8,1>UD 0x0884090a sampler MsgDesc: sample SIMD16 Surface = 10 Sampler = 9 mlen 4 rlen 8 { align1 1H }; send(16) g2<1>UW g34<8,8,1>UD 0x08840a0b sampler MsgDesc: sample SIMD16 Surface = 11 Sampler = 10 mlen 4 rlen 8 { align1 1H }; send(16) g2<1>UW g35<8,8,1>UD 0x08840b0c sampler MsgDesc: sample SIMD16 Surface = 12 Sampler = 11 mlen 4 rlen 8 { align1 1H }; send(16) g2<1>UW g36<8,8,1>UD 0x08840c0d sampler MsgDesc: sample SIMD16 Surface = 13 Sampler = 12 mlen 4 rlen 8 { align1 1H }; send(16) g2<1>UW g37<8,8,1>UD 0x08840d0e sampler MsgDesc: sample SIMD16 Surface = 14 Sampler = 13 mlen 4 rlen 8 { align1 1H }; send(16) g7<1>UW g38<8,8,1>UD 0x08840e0f sampler MsgDesc: sample SIMD16 Surface = 15 Sampler = 14 mlen 4 rlen 8 { align1 1H }; send(16) g23<1>UW g39<8,8,1>UD 0x08840f10 sampler MsgDesc: sample SIMD16 Surface = 16 Sampler = 15 mlen 4 rlen 8 { align1 1H }; send(16) g17<1>UW g2<8,8,1>UD 0x0a8c0011 sampler MsgDesc: sample SIMD16 Surface = 17 Sampler = 0 mlen 5 rlen 8 { align1 1H }; send(16) g29<1>UW g7<8,8,1>UD 0x0a8c0112 sampler MsgDesc: sample SIMD16 Surface = 18 Sampler = 1 mlen 5 rlen 8 { align1 1H }; send(16) g27<1>UW g12<8,8,1>UD 0x0a8c0213 sampler MsgDesc: sample SIMD16 Surface = 19 Sampler = 2 mlen 5 rlen 8 { align1 1H }; send(16) g32<1>UW g17<8,8,1>UD 0x0a8c0314 sampler MsgDesc: sample SIMD16 Surface = 20 Sampler = 3 mlen 5 rlen 8 { align1 1H }; send(16) g2<1>UW g22<8,8,1>UD 0x0a8c0415 sampler MsgDesc: sample SIMD16 Surface = 21 Sampler = 4 mlen 5 rlen 8 { align1 1H }; send(16) g2<1>UW g27<8,8,1>UD 0x0a8c0516 sampler MsgDesc: sample SIMD16 Surface = 22 Sampler = 5 mlen 5 rlen 8 { align1 1H }; send(16) g2<1>UW g32<8,8,1>UD 0x0a8c0617 sampler MsgDesc: sample SIMD16 Surface = 23 Sampler = 6 mlen 5 rlen 8 { align1 1H }; send(16) g2<1>UW g37<8,8,1>UD 0x0a8c0718 sampler MsgDesc: sample SIMD16 Surface = 24 Sampler = 7 mlen 5 rlen 8 { align1 1H }; send(16) g2<1>UW g42<8,8,1>UD 0x0a8c0819 sampler MsgDesc: sample SIMD16 Surface = 25 Sampler = 8 mlen 5 rlen 8 { align1 1H }; send(16) g2<1>UW g47<8,8,1>UD 0x0a8c091a sampler MsgDesc: sample SIMD16 Surface = 26 Sampler = 9 mlen 5 rlen 8 { align1 1H }; send(16) g2<1>UW g52<8,8,1>UD 0x0a8c0a1b sampler MsgDesc: sample SIMD16 Surface = 27 Sampler = 10 mlen 5 rlen 8 { align1 1H }; send(16) g2<1>UW g57<8,8,1>UD 0x0a8c0b1c sampler MsgDesc: sample SIMD16 Surface = 28 Sampler = 11 mlen 5 rlen 8 { align1 1H }; send(16) g2<1>UW g62<8,8,1>UD 0x0a8c0c1d sampler MsgDesc: sample SIMD16 Surface = 29 Sampler = 12 mlen 5 rlen 8 { align1 1H }; send(16) g2<1>UW g67<8,8,1>UD 0x0a8c0d1e sampler MsgDesc: sample SIMD16 Surface = 30 Sampler = 13 mlen 5 rlen 8 { align1 1H }; send(16) g2<1>UW g72<8,8,1>UD 0x0a8c0e1f sampler MsgDesc: sample SIMD16 Surface = 31 Sampler = 14 mlen 5 rlen 8 { align1 1H }; send(16) g2<1>UW g77<8,8,1>UD 0x0a8c0f20 sampler MsgDesc: sample SIMD16 Surface = 32 Sampler = 15 mlen 5 rlen 8 { align1 1H }; send(8) g124<1>UW g2<8,8,1>UD 0x02120102 sampler MsgDesc: sample SIMD8 Surface = 2 Sampler = 1 mlen 1 rlen 1 { align1 1Q }; send(8) g6<1>UW g3<8,8,1>UD 0x02220102 sampler MsgDesc: sample SIMD8 Surface = 2 Sampler = 1 mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UW g4<8,8,1>UD 0x02320102 sampler MsgDesc: sample SIMD8 Surface = 2 Sampler = 1 mlen 1 rlen 3 { align1 1Q }; send(16) g120<1>UW g2<8,8,1>UD 0x04240102 sampler MsgDesc: sample SIMD16 Surface = 2 Sampler = 1 mlen 2 rlen 2 { align1 1H }; send(16) g10<1>UW g4<8,8,1>UD 0x04440102 sampler MsgDesc: sample SIMD16 Surface = 2 Sampler = 1 mlen 2 rlen 4 { align1 1H }; send(16) g14<1>UW g6<8,8,1>UD 0x04640102 sampler MsgDesc: sample SIMD16 Surface = 2 Sampler = 1 mlen 2 rlen 6 { align1 1H }; send(8) null<1>F g8<8,8,1>UD 0x0c0a8027 urb MsgDesc: 2 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g13<8,8,1>F 0x12080047 urb MsgDesc: 4 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g119<8,8,1>F 0x92080087 urb MsgDesc: 8 SIMD8 write mlen 9 rlen 0 { align1 1Q EOT }; send(8) g5<1>UW g10<8,8,1>UD 0x06420001 sampler MsgDesc: sample SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(16) g7<1>UW g19<8,8,1>UD 0x0c840001 sampler MsgDesc: sample SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 8 { align1 1H }; send(8) g1<1>UW g125<8,8,1>UD 0x02106e02 dp data 1 MsgDesc: ( untyped surface read, Surface = 2, SIMD8, Mask = 0xe) mlen 1 rlen 1 { align1 1Q }; send(8) g8<1>UW g22<8,8,1>UD 0x02106efe dp data 1 MsgDesc: ( untyped surface read, Surface = 254, SIMD8, Mask = 0xe) mlen 1 rlen 1 { align1 1Q }; send(8) null<1>F g123<8,8,1>F 0x8a080097 urb MsgDesc: 9 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(8) g29<1>UW g5<8,8,1>UD 0x0e4b2001 sampler MsgDesc: gather4_po_c SIMD8 Surface = 1 Sampler = 0 mlen 7 rlen 4 { align1 1Q }; send(8) g68<1>UW g72<8,8,1>UD 0x0212a102 sampler MsgDesc: resinfo SIMD8 Surface = 2 Sampler = 1 mlen 1 rlen 1 { align1 1Q }; send(8) g67<1>UW g5<8,8,1>UD 0x0a126001 sampler MsgDesc: sample_l_c SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 1 { align1 1Q }; send(8) g69<1>UW g10<8,8,1>UD 0x0a126102 sampler MsgDesc: sample_l_c SIMD8 Surface = 2 Sampler = 1 mlen 5 rlen 1 { align1 1Q }; send(16) g36<1>UW g40<8,8,1>UD 0x0424a102 sampler MsgDesc: resinfo SIMD16 Surface = 2 Sampler = 1 mlen 2 rlen 2 { align1 1H }; send(16) g2<1>UW g7<8,8,1>UD 0x14246001 sampler MsgDesc: sample_l_c SIMD16 Surface = 1 Sampler = 0 mlen 10 rlen 2 { align1 1H }; send(16) g37<1>UW g17<8,8,1>UD 0x14246102 sampler MsgDesc: sample_l_c SIMD16 Surface = 2 Sampler = 1 mlen 10 rlen 2 { align1 1H }; send(8) g125<1>UW g5<8,8,1>UD 0x04220102 sampler MsgDesc: sample SIMD8 Surface = 2 Sampler = 1 mlen 2 rlen 2 { align1 1Q }; send(16) g122<1>UW g7<8,8,1>UD 0x08440102 sampler MsgDesc: sample SIMD16 Surface = 2 Sampler = 1 mlen 4 rlen 4 { align1 1H }; send(8) null<1>F g14<8,8,1>UD 0x0c0a8037 urb MsgDesc: 3 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g15<8,8,1>UD 0x0c0a8047 urb MsgDesc: 4 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g16<8,8,1>UD 0x0c0a8057 urb MsgDesc: 5 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) g6<1>UW g7<8,8,1>UD 0x081a5001 sampler MsgDesc: sample_b_c SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 1 { align1 1Q }; send(8) g7<1>UW g11<8,8,1>UD 0x081a5102 sampler MsgDesc: sample_b_c SIMD8 Surface = 2 Sampler = 1 mlen 4 rlen 1 { align1 1Q }; send(16) g10<1>UW g12<8,8,1>UD 0x0e2c5001 sampler MsgDesc: sample_b_c SIMD16 Surface = 1 Sampler = 0 mlen 7 rlen 2 { align1 1H }; send(16) g12<1>UW g19<8,8,1>UD 0x0e2c5102 sampler MsgDesc: sample_b_c SIMD16 Surface = 2 Sampler = 1 mlen 7 rlen 2 { align1 1H }; send(8) g5<1>UW g6<8,8,1>UD 0x081a3001 sampler MsgDesc: sample_c SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 1 { align1 1Q }; send(8) g6<1>UW g10<8,8,1>UD 0x081a3102 sampler MsgDesc: sample_c SIMD8 Surface = 2 Sampler = 1 mlen 4 rlen 1 { align1 1Q }; send(16) g9<1>UW g11<8,8,1>UD 0x0e2c3001 sampler MsgDesc: sample_c SIMD16 Surface = 1 Sampler = 0 mlen 7 rlen 2 { align1 1H }; send(16) g11<1>UW g18<8,8,1>UD 0x0e2c3102 sampler MsgDesc: sample_c SIMD16 Surface = 2 Sampler = 1 mlen 7 rlen 2 { align1 1H }; send(8) g5<1>UW g7<8,8,1>UD 0x04320102 sampler MsgDesc: sample SIMD8 Surface = 2 Sampler = 1 mlen 2 rlen 3 { align1 1Q }; send(16) g8<1>UW g14<8,8,1>UD 0x08640102 sampler MsgDesc: sample SIMD16 Surface = 2 Sampler = 1 mlen 4 rlen 6 { align1 1H }; send(8) g19<1>UW g12<8,8,1>UD 0x04320003 sampler MsgDesc: sample SIMD8 Surface = 3 Sampler = 0 mlen 2 rlen 3 { align1 1Q }; send(16) g34<1>UW g41<8,8,1>UD 0x08640003 sampler MsgDesc: sample SIMD16 Surface = 3 Sampler = 0 mlen 4 rlen 6 { align1 1H }; send(8) g11<1>UW g2<8,8,1>UD 0x0443a008 sampler MsgDesc: ld_lz SIMD8 Surface = 8 Sampler = 0 mlen 2 rlen 4 { align1 1Q }; send(8) g15<1>UW g2<8,8,1>UD 0x0443a109 sampler MsgDesc: ld_lz SIMD8 Surface = 9 Sampler = 1 mlen 2 rlen 4 { align1 1Q }; send(8) g19<1>UW g2<8,8,1>UD 0x0443a20a sampler MsgDesc: ld_lz SIMD8 Surface = 10 Sampler = 2 mlen 2 rlen 4 { align1 1Q }; send(8) g23<1>UW g2<8,8,1>UD 0x0443a30b sampler MsgDesc: ld_lz SIMD8 Surface = 11 Sampler = 3 mlen 2 rlen 4 { align1 1Q }; send(8) g27<1>UW g2<8,8,1>UD 0x0443a40c sampler MsgDesc: ld_lz SIMD8 Surface = 12 Sampler = 4 mlen 2 rlen 4 { align1 1Q }; send(8) g31<1>UW g2<8,8,1>UD 0x0443a50d sampler MsgDesc: ld_lz SIMD8 Surface = 13 Sampler = 5 mlen 2 rlen 4 { align1 1Q }; send(8) g35<1>UW g2<8,8,1>UD 0x0443a60e sampler MsgDesc: ld_lz SIMD8 Surface = 14 Sampler = 6 mlen 2 rlen 4 { align1 1Q }; send(8) g39<1>UW g2<8,8,1>UD 0x0443a70f sampler MsgDesc: ld_lz SIMD8 Surface = 15 Sampler = 7 mlen 2 rlen 4 { align1 1Q }; send(16) g93<1>UW g2<8,8,1>UD 0x0885a008 sampler MsgDesc: ld_lz SIMD16 Surface = 8 Sampler = 0 mlen 4 rlen 8 { align1 1H }; send(16) g27<1>UW g2<8,8,1>UD 0x0885a109 sampler MsgDesc: ld_lz SIMD16 Surface = 9 Sampler = 1 mlen 4 rlen 8 { align1 1H }; send(16) g37<1>UW g2<8,8,1>UD 0x0885a20a sampler MsgDesc: ld_lz SIMD16 Surface = 10 Sampler = 2 mlen 4 rlen 8 { align1 1H }; send(16) g47<1>UW g2<8,8,1>UD 0x0885a30b sampler MsgDesc: ld_lz SIMD16 Surface = 11 Sampler = 3 mlen 4 rlen 8 { align1 1H }; send(16) g57<1>UW g2<8,8,1>UD 0x0885a40c sampler MsgDesc: ld_lz SIMD16 Surface = 12 Sampler = 4 mlen 4 rlen 8 { align1 1H }; send(16) g67<1>UW g2<8,8,1>UD 0x0885a50d sampler MsgDesc: ld_lz SIMD16 Surface = 13 Sampler = 5 mlen 4 rlen 8 { align1 1H }; send(16) g85<1>UW g2<8,8,1>UD 0x0885a60e sampler MsgDesc: ld_lz SIMD16 Surface = 14 Sampler = 6 mlen 4 rlen 8 { align1 1H }; send(16) g77<1>UW g2<8,8,1>UD 0x0885a70f sampler MsgDesc: ld_lz SIMD16 Surface = 15 Sampler = 7 mlen 4 rlen 8 { align1 1H }; send(16) g83<1>UW g86<8,8,1>UD 0x04205e00 dp data 1 MsgDesc: ( untyped surface read, Surface = 0, SIMD16, Mask = 0xe) mlen 2 rlen 2 { align1 1H }; send(8) null<1>F g122<8,8,1>F 0x8c0a0047 urb MsgDesc: 4 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q EOT }; send(8) g14<1>UW g11<8,8,1>UD 0x084b0202 sampler MsgDesc: gather4_c SIMD8 Surface = 2 Sampler = 2 mlen 4 rlen 4 { align1 1Q }; send(8) g6<1>UW g6<8,8,1>UD 0x0a4b0101 sampler MsgDesc: gather4_c SIMD8 Surface = 1 Sampler = 1 mlen 5 rlen 4 { align1 1Q }; send(8) null<1>F g3<8,8,1>F 0x12080087 urb MsgDesc: 8 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g123<8,8,1>F 0x8a0800a7 urb MsgDesc: 10 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(8) g6<1>UW g7<8,8,1>UD 0x081a6001 sampler MsgDesc: sample_l_c SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 1 { align1 1Q }; send(8) g7<1>UW g11<8,8,1>UD 0x081a6102 sampler MsgDesc: sample_l_c SIMD8 Surface = 2 Sampler = 1 mlen 4 rlen 1 { align1 1Q }; send(16) g10<1>UW g12<8,8,1>UD 0x0e2c6001 sampler MsgDesc: sample_l_c SIMD16 Surface = 1 Sampler = 0 mlen 7 rlen 2 { align1 1H }; send(16) g12<1>UW g19<8,8,1>UD 0x0e2c6102 sampler MsgDesc: sample_l_c SIMD16 Surface = 2 Sampler = 1 mlen 7 rlen 2 { align1 1H }; send(8) g31<1>UD g28<8,8,1>UD 0x02380238 urb MsgDesc: 35 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g34<1>UD g28<8,8,1>UD 0x02380438 urb MsgDesc: 67 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g37<1>UD g28<8,8,1>UD 0x02380638 urb MsgDesc: 99 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g28<8,8,1>UD 0x02380248 urb MsgDesc: 36 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g25<1>UD g28<8,8,1>UD 0x02380448 urb MsgDesc: 68 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g28<1>UD g28<8,8,1>UD 0x02380648 urb MsgDesc: 100 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g29<8,8,1>UD 0x02380258 urb MsgDesc: 37 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g25<1>UD g29<8,8,1>UD 0x02380458 urb MsgDesc: 69 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g28<1>UD g29<8,8,1>UD 0x02380658 urb MsgDesc: 101 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g30<8,8,1>UD 0x02380268 urb MsgDesc: 38 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g25<1>UD g30<8,8,1>UD 0x02380468 urb MsgDesc: 70 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g28<1>UD g30<8,8,1>UD 0x02380668 urb MsgDesc: 102 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g31<8,8,1>UD 0x02380278 urb MsgDesc: 39 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g25<1>UD g31<8,8,1>UD 0x02380478 urb MsgDesc: 71 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g28<1>UD g31<8,8,1>UD 0x02380678 urb MsgDesc: 103 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g25<1>UD g32<8,8,1>UD 0x02380488 urb MsgDesc: 72 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g32<8,8,1>UD 0x02380288 urb MsgDesc: 40 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g28<1>UD g32<8,8,1>UD 0x02380688 urb MsgDesc: 104 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g25<1>UD g33<8,8,1>UD 0x02380498 urb MsgDesc: 73 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g33<8,8,1>UD 0x02380298 urb MsgDesc: 41 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g28<1>UD g33<8,8,1>UD 0x02380698 urb MsgDesc: 105 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g25<1>UD g34<8,8,1>UD 0x023806a8 urb MsgDesc: 106 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g34<8,8,1>UD 0x023802a8 urb MsgDesc: 42 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g34<8,8,1>UD 0x023804a8 urb MsgDesc: 74 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g35<8,8,1>UD 0x023802b8 urb MsgDesc: 43 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g35<8,8,1>UD 0x023804b8 urb MsgDesc: 75 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g25<1>UD g35<8,8,1>UD 0x023806b8 urb MsgDesc: 107 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g36<8,8,1>UD 0x023802c8 urb MsgDesc: 44 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g36<8,8,1>UD 0x023804c8 urb MsgDesc: 76 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g25<1>UD g36<8,8,1>UD 0x023806c8 urb MsgDesc: 108 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g37<8,8,1>UD 0x023802d8 urb MsgDesc: 45 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g37<8,8,1>UD 0x023804d8 urb MsgDesc: 77 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g25<1>UD g37<8,8,1>UD 0x023806d8 urb MsgDesc: 109 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g38<8,8,1>UD 0x023802e8 urb MsgDesc: 46 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g38<8,8,1>UD 0x023804e8 urb MsgDesc: 78 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g25<1>UD g38<8,8,1>UD 0x023806e8 urb MsgDesc: 110 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g39<8,8,1>UD 0x023802f8 urb MsgDesc: 47 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g39<8,8,1>UD 0x023804f8 urb MsgDesc: 79 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g25<1>UD g39<8,8,1>UD 0x023806f8 urb MsgDesc: 111 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g40<8,8,1>UD 0x02380308 urb MsgDesc: 48 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g40<8,8,1>UD 0x02380508 urb MsgDesc: 80 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g40<8,8,1>UD 0x02380708 urb MsgDesc: 112 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g41<8,8,1>UD 0x02380318 urb MsgDesc: 49 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g41<8,8,1>UD 0x02380518 urb MsgDesc: 81 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g41<8,8,1>UD 0x02380718 urb MsgDesc: 113 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g3<8,8,1>UD 0x02380328 urb MsgDesc: 50 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g3<8,8,1>UD 0x02380528 urb MsgDesc: 82 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g3<8,8,1>UD 0x02380728 urb MsgDesc: 114 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g43<8,8,1>UD 0x02380338 urb MsgDesc: 51 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g43<8,8,1>UD 0x02380538 urb MsgDesc: 83 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g43<8,8,1>UD 0x02380738 urb MsgDesc: 115 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g44<8,8,1>UD 0x02380348 urb MsgDesc: 52 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g44<8,8,1>UD 0x02380548 urb MsgDesc: 84 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g44<8,8,1>UD 0x02380748 urb MsgDesc: 116 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g45<8,8,1>UD 0x02380358 urb MsgDesc: 53 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g45<8,8,1>UD 0x02380558 urb MsgDesc: 85 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g22<1>UD g45<8,8,1>UD 0x02380758 urb MsgDesc: 117 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g46<8,8,1>UD 0x02380368 urb MsgDesc: 54 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g46<8,8,1>UD 0x02380568 urb MsgDesc: 86 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g14<1>UD g46<8,8,1>UD 0x02380768 urb MsgDesc: 118 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g47<8,8,1>UD 0x02380378 urb MsgDesc: 55 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g47<8,8,1>UD 0x02380578 urb MsgDesc: 87 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g14<1>UD g47<8,8,1>UD 0x02380778 urb MsgDesc: 119 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g48<8,8,1>UD 0x02380388 urb MsgDesc: 56 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g48<8,8,1>UD 0x02380588 urb MsgDesc: 88 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g14<1>UD g48<8,8,1>UD 0x02380788 urb MsgDesc: 120 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g49<8,8,1>UD 0x02380398 urb MsgDesc: 57 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g49<8,8,1>UD 0x02380598 urb MsgDesc: 89 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g14<1>UD g49<8,8,1>UD 0x02380798 urb MsgDesc: 121 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g50<8,8,1>UD 0x023803a8 urb MsgDesc: 58 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g50<8,8,1>UD 0x023805a8 urb MsgDesc: 90 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g14<1>UD g50<8,8,1>UD 0x023807a8 urb MsgDesc: 122 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g54<8,8,1>UD 0x023803b8 urb MsgDesc: 59 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g54<8,8,1>UD 0x023805b8 urb MsgDesc: 91 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g14<1>UD g54<8,8,1>UD 0x023807b8 urb MsgDesc: 123 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g55<8,8,1>UD 0x023803c8 urb MsgDesc: 60 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g55<8,8,1>UD 0x023805c8 urb MsgDesc: 92 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g14<1>UD g55<8,8,1>UD 0x023807c8 urb MsgDesc: 124 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g56<8,8,1>UD 0x023803d8 urb MsgDesc: 61 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g56<8,8,1>UD 0x023805d8 urb MsgDesc: 93 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g14<1>UD g56<8,8,1>UD 0x023807d8 urb MsgDesc: 125 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g57<8,8,1>UD 0x023803e8 urb MsgDesc: 62 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g57<8,8,1>UD 0x023805e8 urb MsgDesc: 94 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g14<1>UD g57<8,8,1>UD 0x023807e8 urb MsgDesc: 126 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g58<8,8,1>UD 0x023803f8 urb MsgDesc: 63 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g58<8,8,1>UD 0x023805f8 urb MsgDesc: 95 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g14<1>UD g58<8,8,1>UD 0x023807f8 urb MsgDesc: 127 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g59<8,8,1>UD 0x02380208 urb MsgDesc: 32 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g59<8,8,1>UD 0x02380408 urb MsgDesc: 64 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g14<1>UD g59<8,8,1>UD 0x02380608 urb MsgDesc: 96 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g17<1>UD g59<8,8,1>UD 0x02380808 urb MsgDesc: 128 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g8<1>UD g60<8,8,1>UD 0x02380218 urb MsgDesc: 33 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g60<8,8,1>UD 0x02380418 urb MsgDesc: 65 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g14<1>UD g60<8,8,1>UD 0x02380618 urb MsgDesc: 97 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g17<1>UD g60<8,8,1>UD 0x02380818 urb MsgDesc: 129 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) null<1>F g14<8,8,1>UD 0x0c0a8067 urb MsgDesc: 6 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g15<8,8,1>UD 0x0c0a8077 urb MsgDesc: 7 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g16<8,8,1>UD 0x0c0a8087 urb MsgDesc: 8 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g17<8,8,1>UD 0x0c0a8097 urb MsgDesc: 9 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g18<8,8,1>UD 0x0c0a80a7 urb MsgDesc: 10 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g19<8,8,1>UD 0x0c0a80b7 urb MsgDesc: 11 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g20<8,8,1>UD 0x0c0a80c7 urb MsgDesc: 12 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g21<8,8,1>UD 0x0c0a80d7 urb MsgDesc: 13 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g22<8,8,1>UD 0x0c0a80e7 urb MsgDesc: 14 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g23<8,8,1>UD 0x0c0a80f7 urb MsgDesc: 15 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g24<8,8,1>UD 0x0c0a8107 urb MsgDesc: 16 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g25<8,8,1>UD 0x0c0a8117 urb MsgDesc: 17 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g26<8,8,1>UD 0x0c0a8127 urb MsgDesc: 18 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g27<8,8,1>UD 0x0c0a8137 urb MsgDesc: 19 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g28<8,8,1>UD 0x0c0a8147 urb MsgDesc: 20 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g29<8,8,1>UD 0x0c0a8157 urb MsgDesc: 21 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g30<8,8,1>UD 0x0c0a8167 urb MsgDesc: 22 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g31<8,8,1>UD 0x0c0a8177 urb MsgDesc: 23 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g32<8,8,1>UD 0x0c0a8187 urb MsgDesc: 24 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g33<8,8,1>UD 0x0c0a8197 urb MsgDesc: 25 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g34<8,8,1>UD 0x0c0a81a7 urb MsgDesc: 26 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g35<8,8,1>UD 0x0c0a81b7 urb MsgDesc: 27 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g36<8,8,1>UD 0x0c0a81c7 urb MsgDesc: 28 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g37<8,8,1>UD 0x0c0a81d7 urb MsgDesc: 29 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g38<8,8,1>UD 0x0c0a81e7 urb MsgDesc: 30 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g39<8,8,1>UD 0x0c0a81f7 urb MsgDesc: 31 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g40<8,8,1>UD 0x0c0a8207 urb MsgDesc: 32 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g41<8,8,1>UD 0x0c0a8217 urb MsgDesc: 33 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) g124<1>UW g2<8,8,1>UD 0x02106e01 dp data 1 MsgDesc: ( untyped surface read, Surface = 1, SIMD8, Mask = 0xe) mlen 1 rlen 1 { align1 1Q }; send(16) g11<1>UW g19<8,8,1>UD 0x0420a601 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 1, SIMD16, dec) mlen 2 rlen 2 { align1 1H }; send(16) null<1>UW g20<8,8,1>UD 0x04008503 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 3, SIMD16, inc) mlen 2 rlen 0 { align1 1H }; send(8) g17<1>UW g11<8,8,1>UD 0x0813e001 sampler MsgDesc: ld2dms SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 1 { align1 1Q }; send(16) g22<1>UW g2<8,8,1>UD 0x1025e001 sampler MsgDesc: ld2dms SIMD16 Surface = 1 Sampler = 0 mlen 8 rlen 2 { align1 1H }; send(8) null<1>F g122<8,8,1>UD 0x8c088007 urb MsgDesc: 0 SIMD8 write masked mlen 6 rlen 0 { align1 1Q EOT }; send(8) g2<1>UW g2<8,8,1>UD 0x06423001 sampler MsgDesc: sample_c SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(8) g6<1>UW g6<8,8,1>UD 0x06423102 sampler MsgDesc: sample_c SIMD8 Surface = 2 Sampler = 1 mlen 3 rlen 4 { align1 1Q }; send(16) g2<1>UW g20<8,8,1>UD 0x0c843001 sampler MsgDesc: sample_c SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 8 { align1 1H }; send(16) g10<1>UW g26<8,8,1>UD 0x0c843102 sampler MsgDesc: sample_c SIMD16 Surface = 2 Sampler = 1 mlen 6 rlen 8 { align1 1H }; send(8) g14<1>UW g14<8,8,1>UD 0x0a1a5001 sampler MsgDesc: sample_b_c SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 1 { align1 1Q }; send(8) g15<1>UW g19<8,8,1>UD 0x0a1a5102 sampler MsgDesc: sample_b_c SIMD8 Surface = 2 Sampler = 1 mlen 5 rlen 1 { align1 1Q }; send(16) g39<1>UW g7<8,8,1>UD 0x122c5001 sampler MsgDesc: sample_b_c SIMD16 Surface = 1 Sampler = 0 mlen 9 rlen 2 { align1 1H }; send(16) g41<1>UW g16<8,8,1>UD 0x122c5102 sampler MsgDesc: sample_b_c SIMD16 Surface = 2 Sampler = 1 mlen 9 rlen 2 { align1 1H }; send(8) g2<1>UW g13<8,8,1>UD 0x0c4b2001 sampler MsgDesc: gather4_po_c SIMD8 Surface = 1 Sampler = 0 mlen 6 rlen 4 { align1 1Q }; send(16) g43<1>UW g7<8,8,1>UD 0x168d2001 sampler MsgDesc: gather4_po_c SIMD16 Surface = 1 Sampler = 0 mlen 11 rlen 8 { align1 1H }; send(8) g54<1>UD g7<8,8,1>UD 0x02280048 urb MsgDesc: 4 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g2<1>UW g8<8,8,1>UD 0x02420001 sampler MsgDesc: sample SIMD8 Surface = 1 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(16) g2<1>UW g15<8,8,1>UD 0x04840001 sampler MsgDesc: sample SIMD16 Surface = 1 Sampler = 0 mlen 2 rlen 8 { align1 1H }; send(8) g7<1>UW g44<8,8,1>UD 0x02106e00 dp data 1 MsgDesc: ( untyped surface read, Surface = 0, SIMD8, Mask = 0xe) mlen 1 rlen 1 { align1 1Q }; send(8) null<1>UW g44<8,8,1>UD 0x02009500 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 0, SIMD8, inc) mlen 1 rlen 0 { align1 1Q }; send(8) g7<1>UD g37<8,8,1>UD 0x02480438 urb MsgDesc: 67 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g11<1>UD g37<8,8,1>UD 0x02480638 urb MsgDesc: 99 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g13<1>UD g14<8,8,1>UD 0x042a0148 urb MsgDesc: 20 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g14<8,8,1>UD 0x042a0048 urb MsgDesc: 4 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g124<1>UW g13<8,8,1>UD 0x0c43c000 sampler MsgDesc: ld2dms_w SIMD8 Surface = 0 Sampler = 0 mlen 6 rlen 4 { align1 1Q }; send(8) g22<1>UW g14<8,8,1>UD 0x064a8404 sampler MsgDesc: gather4 SIMD8 Surface = 4 Sampler = 4 mlen 3 rlen 4 { align1 1Q }; send(8) g14<1>UW g10<8,8,1>UD 0x084a8202 sampler MsgDesc: gather4 SIMD8 Surface = 2 Sampler = 2 mlen 4 rlen 4 { align1 1Q }; send(8) g18<1>UW g26<8,8,1>UD 0x0a4a8303 sampler MsgDesc: gather4 SIMD8 Surface = 3 Sampler = 3 mlen 5 rlen 4 { align1 1Q }; send(8) g6<1>UW g14<8,8,1>UD 0x0e434102 sampler MsgDesc: sample_d_c SIMD8 Surface = 2 Sampler = 1 mlen 7 rlen 4 { align1 1Q }; send(8) g8<1>UW g7<8,8,1>UD 0x121b4001 sampler MsgDesc: sample_d_c SIMD8 Surface = 1 Sampler = 0 mlen 9 rlen 1 { align1 1Q }; send(8) g9<1>UW g16<8,8,1>UD 0x121b4102 sampler MsgDesc: sample_d_c SIMD8 Surface = 2 Sampler = 1 mlen 9 rlen 1 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x02380078 urb MsgDesc: 7 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g14<1>UW g10<8,8,1>UD 0x064a8203 sampler MsgDesc: gather4 SIMD8 Surface = 3 Sampler = 2 mlen 3 rlen 4 { align1 1Q }; send(16) g26<1>UW g34<8,8,1>UD 0x0a8c8203 sampler MsgDesc: gather4 SIMD16 Surface = 3 Sampler = 2 mlen 5 rlen 8 { align1 1H }; send(8) g50<1>UD g51<8,8,1>UD 0x02180018 urb MsgDesc: 1 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g59<1>UW g64<8,8,1>UD 0x02427002 sampler MsgDesc: ld SIMD8 Surface = 2 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(8) g2<1>UW g64<8,8,1>UD 0x02427003 sampler MsgDesc: ld SIMD8 Surface = 3 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(8) g6<1>UW g64<8,8,1>UD 0x02427004 sampler MsgDesc: ld SIMD8 Surface = 4 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(8) g10<1>UW g64<8,8,1>UD 0x02427005 sampler MsgDesc: ld SIMD8 Surface = 5 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(8) g14<1>UW g64<8,8,1>UD 0x02427006 sampler MsgDesc: ld SIMD8 Surface = 6 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(8) g18<1>UW g64<8,8,1>UD 0x02427007 sampler MsgDesc: ld SIMD8 Surface = 7 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UW g64<8,8,1>UD 0x02427008 sampler MsgDesc: ld SIMD8 Surface = 8 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UW g64<8,8,1>UD 0x02427009 sampler MsgDesc: ld SIMD8 Surface = 9 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(8) g30<1>UW g64<8,8,1>UD 0x0242700a sampler MsgDesc: ld SIMD8 Surface = 10 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(8) g34<1>UW g64<8,8,1>UD 0x0242700b sampler MsgDesc: ld SIMD8 Surface = 11 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(8) g38<1>UW g64<8,8,1>UD 0x0242700c sampler MsgDesc: ld SIMD8 Surface = 12 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(8) g42<1>UW g64<8,8,1>UD 0x0242700d sampler MsgDesc: ld SIMD8 Surface = 13 Sampler = 0 mlen 1 rlen 4 { align1 1Q }; send(8) g124<1>UW g6<8,8,1>UD 0x04438505 sampler MsgDesc: sample_lz SIMD8 Surface = 5 Sampler = 5 mlen 2 rlen 4 { align1 1Q }; send(8) null<1>F g16<8,8,1>UD 0x0a088067 urb MsgDesc: 6 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g17<8,8,1>UD 0x0a088077 urb MsgDesc: 7 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g18<8,8,1>UD 0x0a088087 urb MsgDesc: 8 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g19<8,8,1>UD 0x0a088097 urb MsgDesc: 9 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g20<8,8,1>UD 0x0a0880a7 urb MsgDesc: 10 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g21<8,8,1>UD 0x0a0880b7 urb MsgDesc: 11 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g22<8,8,1>UD 0x0a0880c7 urb MsgDesc: 12 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g23<8,8,1>UD 0x0a0880d7 urb MsgDesc: 13 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g24<8,8,1>UD 0x0a0880e7 urb MsgDesc: 14 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g25<8,8,1>UD 0x0a0880f7 urb MsgDesc: 15 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g26<8,8,1>UD 0x0a088107 urb MsgDesc: 16 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g27<8,8,1>UD 0x0a088117 urb MsgDesc: 17 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g28<8,8,1>UD 0x0a088127 urb MsgDesc: 18 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g29<8,8,1>UD 0x0a088137 urb MsgDesc: 19 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g30<8,8,1>UD 0x0a088147 urb MsgDesc: 20 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g31<8,8,1>UD 0x0a088157 urb MsgDesc: 21 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g32<8,8,1>UD 0x0a088167 urb MsgDesc: 22 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g33<8,8,1>UD 0x0a088177 urb MsgDesc: 23 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g34<8,8,1>UD 0x0a088187 urb MsgDesc: 24 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g35<8,8,1>UD 0x0a088197 urb MsgDesc: 25 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g36<8,8,1>UD 0x0a0881a7 urb MsgDesc: 26 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g37<8,8,1>UD 0x0a0881b7 urb MsgDesc: 27 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g38<8,8,1>UD 0x0a0881c7 urb MsgDesc: 28 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g39<8,8,1>UD 0x0a0881d7 urb MsgDesc: 29 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g40<8,8,1>UD 0x0a0881e7 urb MsgDesc: 30 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g41<8,8,1>UD 0x0a0881f7 urb MsgDesc: 31 SIMD8 write masked mlen 5 rlen 0 { align1 1Q }; send(8) null<1>F g4<8,8,1>UD 0x0e0a8027 urb MsgDesc: 2 SIMD8 write per-slot masked mlen 7 rlen 0 { align1 1Q }; send(8) g5<1>UW g6<8,8,1>UD 0x04123001 sampler MsgDesc: sample_c SIMD8 Surface = 1 Sampler = 0 mlen 2 rlen 1 { align1 1Q }; send(8) g6<1>UW g2<8,8,1>UD 0x04123102 sampler MsgDesc: sample_c SIMD8 Surface = 2 Sampler = 1 mlen 2 rlen 1 { align1 1Q }; send(16) g9<1>UW g11<8,8,1>UD 0x08243001 sampler MsgDesc: sample_c SIMD16 Surface = 1 Sampler = 0 mlen 4 rlen 2 { align1 1H }; send(16) g11<1>UW g2<8,8,1>UD 0x08243102 sampler MsgDesc: sample_c SIMD16 Surface = 2 Sampler = 1 mlen 4 rlen 2 { align1 1H }; send(8) g2<1>UW g2<8,8,1>UD 0x0443d002 sampler MsgDesc: ld_mcs SIMD8 Surface = 2 Sampler = 0 mlen 2 rlen 4 { align1 1Q }; send(8) g3<1>UW g14<8,8,1>UD 0x0a43c102 sampler MsgDesc: ld2dms_w SIMD8 Surface = 2 Sampler = 1 mlen 5 rlen 4 { align1 1Q }; send(16) g2<1>UW g10<8,8,1>UD 0x0885d002 sampler MsgDesc: ld_mcs SIMD16 Surface = 2 Sampler = 0 mlen 4 rlen 8 { align1 1H }; send(16) g3<1>UW g25<8,8,1>UD 0x1485c102 sampler MsgDesc: ld2dms_w SIMD16 Surface = 2 Sampler = 1 mlen 10 rlen 8 { align1 1H }; send(8) g10<1>UW g11<8,8,1>UD 0x0a123001 sampler MsgDesc: sample_c SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 1 { align1 1Q }; send(8) g11<1>UW g16<8,8,1>UD 0x0a123102 sampler MsgDesc: sample_c SIMD8 Surface = 2 Sampler = 1 mlen 5 rlen 1 { align1 1Q }; send(16) g34<1>UW g9<8,8,1>UD 0x14243001 sampler MsgDesc: sample_c SIMD16 Surface = 1 Sampler = 0 mlen 10 rlen 2 { align1 1H }; send(16) g36<1>UW g19<8,8,1>UD 0x14243102 sampler MsgDesc: sample_c SIMD16 Surface = 2 Sampler = 1 mlen 10 rlen 2 { align1 1H }; send(8) g2<1>UW g7<8,8,1>UD 0x08426001 sampler MsgDesc: sample_l_c SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 4 { align1 1Q }; send(8) g6<1>UW g11<8,8,1>UD 0x08426102 sampler MsgDesc: sample_l_c SIMD8 Surface = 2 Sampler = 1 mlen 4 rlen 4 { align1 1Q }; send(16) g2<1>UW g11<8,8,1>UD 0x10846001 sampler MsgDesc: sample_l_c SIMD16 Surface = 1 Sampler = 0 mlen 8 rlen 8 { align1 1H }; send(16) g10<1>UW g19<8,8,1>UD 0x10846102 sampler MsgDesc: sample_l_c SIMD16 Surface = 2 Sampler = 1 mlen 8 rlen 8 { align1 1H }; (+f1.0) send(8) g4<1>UW g10<8,8,1>UD 0x0210b502 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 2, SIMD8, inc) mlen 1 rlen 1 { align1 1Q }; (+f1.0) send(16) g5<1>UW g13<8,8,1>UD 0x0420a502 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 2, SIMD16, inc) mlen 2 rlen 2 { align1 1H }; send(8) g8<1>UW g9<8,8,1>UD 0x06321001 sampler MsgDesc: sample_b SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 3 { align1 1Q }; send(16) g2<1>UW g14<8,8,1>UD 0x0c641001 sampler MsgDesc: sample_b SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 6 { align1 1H }; send(8) g124<1>UW g6<8,8,1>UD 0x04338000 sampler MsgDesc: sample_lz SIMD8 Surface = 0 Sampler = 0 mlen 2 rlen 3 { align1 1Q }; send(8) g12<1>UD g1<8,8,1>UD 0x02280058 urb MsgDesc: 5 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) null<1>F g12<8,8,1>UD 0x0e0a8067 urb MsgDesc: 6 SIMD8 write per-slot masked mlen 7 rlen 0 { align1 1Q }; send(8) g12<1>UD g1<8,8,1>UD 0x02280078 urb MsgDesc: 7 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) null<1>F g12<8,8,1>UD 0x0e0a8087 urb MsgDesc: 8 SIMD8 write per-slot masked mlen 7 rlen 0 { align1 1Q }; send(8) g12<1>UD g1<8,8,1>UD 0x02280098 urb MsgDesc: 9 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) null<1>F g12<8,8,1>UD 0x0e0a80a7 urb MsgDesc: 10 SIMD8 write per-slot masked mlen 7 rlen 0 { align1 1Q }; send(16) g9<1>UW g17<8,8,1>UD 0x04847002 sampler MsgDesc: ld SIMD16 Surface = 2 Sampler = 0 mlen 2 rlen 8 { align1 1H }; send(16) g23<1>UW g32<8,8,1>UD 0x04205e02 dp data 1 MsgDesc: ( untyped surface read, Surface = 2, SIMD16, Mask = 0xe) mlen 2 rlen 2 { align1 1H }; send(8) g8<1>UD g1<8,8,1>UD 0x02280068 urb MsgDesc: 6 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x02280088 urb MsgDesc: 8 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x022800a8 urb MsgDesc: 10 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x022800b8 urb MsgDesc: 11 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x022800c8 urb MsgDesc: 12 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x022800d8 urb MsgDesc: 13 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x022800e8 urb MsgDesc: 14 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x022800f8 urb MsgDesc: 15 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x02280108 urb MsgDesc: 16 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x02280118 urb MsgDesc: 17 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x02280128 urb MsgDesc: 18 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x02280138 urb MsgDesc: 19 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x02280148 urb MsgDesc: 20 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x02280158 urb MsgDesc: 21 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x02280168 urb MsgDesc: 22 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x02280178 urb MsgDesc: 23 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x02280188 urb MsgDesc: 24 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x02280198 urb MsgDesc: 25 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x022801a8 urb MsgDesc: 26 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x022801b8 urb MsgDesc: 27 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x022801c8 urb MsgDesc: 28 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x022801d8 urb MsgDesc: 29 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x022801e8 urb MsgDesc: 30 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x022801f8 urb MsgDesc: 31 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g1<8,8,1>UD 0x02280208 urb MsgDesc: 32 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g2<1>UW g3<8,8,1>UD 0x04203000 pixel interp MsgDesc: (persp, per_slot_offset, 0x00) mlen 2 rlen 2 { align1 1Q }; send(16) g2<1>UW g11<8,8,1>UD 0x08413000 pixel interp MsgDesc: (persp, per_slot_offset, 0x00) mlen 4 rlen 4 { align1 1H }; send(8) g2<1>UW g0<8,8,1>UD 0x02201010 pixel interp MsgDesc: (persp, sample_position, 0x10) mlen 1 rlen 2 { align1 1Q }; send(16) g2<1>UW g0<8,8,1>UD 0x02411010 pixel interp MsgDesc: (persp, sample_position, 0x10) mlen 1 rlen 4 { align1 1H }; send(8) g2<1>UW g0<8,8,1>UD 0x02201020 pixel interp MsgDesc: (persp, sample_position, 0x20) mlen 1 rlen 2 { align1 1Q }; send(16) g2<1>UW g0<8,8,1>UD 0x02411020 pixel interp MsgDesc: (persp, sample_position, 0x20) mlen 1 rlen 4 { align1 1H }; send(8) g2<1>UW g0<8,8,1>UD 0x02201030 pixel interp MsgDesc: (persp, sample_position, 0x30) mlen 1 rlen 2 { align1 1Q }; send(16) g2<1>UW g0<8,8,1>UD 0x02411030 pixel interp MsgDesc: (persp, sample_position, 0x30) mlen 1 rlen 4 { align1 1H }; send(8) g20<1>UW g15<8,8,1>UD 0x04320203 sampler MsgDesc: sample SIMD8 Surface = 3 Sampler = 2 mlen 2 rlen 3 { align1 1Q }; send(8) g11<1>UW g26<8,8,1>UD 0x04320405 sampler MsgDesc: sample SIMD8 Surface = 5 Sampler = 4 mlen 2 rlen 3 { align1 1Q }; send(8) g8<1>UW g24<8,8,1>UD 0x04320304 sampler MsgDesc: sample SIMD8 Surface = 4 Sampler = 3 mlen 2 rlen 3 { align1 1Q }; send(16) g26<1>UW g21<8,8,1>UD 0x08640203 sampler MsgDesc: sample SIMD16 Surface = 3 Sampler = 2 mlen 4 rlen 6 { align1 1H }; send(16) g12<1>UW g48<8,8,1>UD 0x08640405 sampler MsgDesc: sample SIMD16 Surface = 5 Sampler = 4 mlen 4 rlen 6 { align1 1H }; send(16) g38<1>UW g44<8,8,1>UD 0x08640304 sampler MsgDesc: sample SIMD16 Surface = 4 Sampler = 3 mlen 4 rlen 6 { align1 1H }; (+f1.0) send(8) null<1>UW g94<8,8,1>UD 0x02009601 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 1, SIMD8, dec) mlen 1 rlen 0 { align1 1Q }; (+f1.0) send(8) g47<1>UW g94<8,8,1>UD 0x0210b601 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 1, SIMD8, dec) mlen 1 rlen 1 { align1 1Q }; send(16) g4<1>UW g1<8,8,1>UD 0x04405c02 dp data 1 MsgDesc: ( untyped surface read, Surface = 2, SIMD16, Mask = 0xc) mlen 2 rlen 4 { align1 1H }; send(8) null<1>UW g100<8,8,1>UD 0x02009600 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 0, SIMD8, dec) mlen 1 rlen 0 { align1 1Q }; send(8) g51<1>UW g100<8,8,1>UD 0x0210b600 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 0, SIMD8, dec) mlen 1 rlen 1 { align1 1Q }; send(8) g5<1>UW g11<8,8,1>UD 0x064a0001 sampler MsgDesc: sample SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(16) g7<1>UW g19<8,8,1>UD 0x0a8c0001 sampler MsgDesc: sample SIMD16 Surface = 1 Sampler = 0 mlen 5 rlen 8 { align1 1H }; send(8) null<1>F g123<8,8,1>F 0x8a080117 urb MsgDesc: 17 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(8) g3<1>UW g3<8,8,1>UD 0x02415002 dp data 1 MsgDesc: ( DC typed surface read, Surface = 2, SIMD16, Mask = 0x0) mlen 1 rlen 4 { align1 1Q }; send(8) g5<1>UW g4<8,8,1>UD 0x02416002 dp data 1 MsgDesc: ( DC typed surface read, Surface = 2, SIMD8, Mask = 0x0) mlen 1 rlen 4 { align1 2Q }; send(8) g6<1>UW g16<8,8,1>UD 0x0210b500 dp data 1 MsgDesc: ( DC untyped atomic op, Surface = 0, SIMD8, inc) mlen 1 rlen 1 { align1 1Q }; send(8) null<1>F g119<8,8,1>F 0x92080097 urb MsgDesc: 9 SIMD8 write mlen 9 rlen 0 { align1 1Q EOT }; send(8) null<1>F g4<8,8,1>F 0x120800c7 urb MsgDesc: 12 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g5<8,8,1>F 0x120800e7 urb MsgDesc: 14 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g123<8,8,1>F 0x8a080107 urb MsgDesc: 16 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(8) g6<1>UW g11<8,8,1>UD 0x08434102 sampler MsgDesc: sample_d_c SIMD8 Surface = 2 Sampler = 1 mlen 4 rlen 4 { align1 1Q }; send(8) g67<1>UW g36<8,8,1>UD 0x0823e000 sampler MsgDesc: ld2dms SIMD8 Surface = 0 Sampler = 0 mlen 4 rlen 2 { align1 1Q }; send(8) g2<1>UW g2<8,8,1>UD 0x0a23c000 sampler MsgDesc: ld2dms_w SIMD8 Surface = 0 Sampler = 0 mlen 5 rlen 2 { align1 1Q }; send(8) g9<1>UW g15<8,8,1>UD 0x021ab101 sampler MsgDesc: sampleinfo SIMD8 Surface = 1 Sampler = 1 mlen 1 rlen 1 { align1 1Q }; send(8) g10<1>UW g16<8,8,1>UD 0x021ab202 sampler MsgDesc: sampleinfo SIMD8 Surface = 2 Sampler = 2 mlen 1 rlen 1 { align1 1Q }; send(8) g11<1>UW g17<8,8,1>UD 0x021ab303 sampler MsgDesc: sampleinfo SIMD8 Surface = 3 Sampler = 3 mlen 1 rlen 1 { align1 1Q }; send(8) g12<1>UW g18<8,8,1>UD 0x021ab404 sampler MsgDesc: sampleinfo SIMD8 Surface = 4 Sampler = 4 mlen 1 rlen 1 { align1 1Q }; send(8) g13<1>UW g19<8,8,1>UD 0x021ab505 sampler MsgDesc: sampleinfo SIMD8 Surface = 5 Sampler = 5 mlen 1 rlen 1 { align1 1Q }; send(8) g14<1>UW g18<8,8,1>UD 0x08123102 sampler MsgDesc: sample_c SIMD8 Surface = 2 Sampler = 1 mlen 4 rlen 1 { align1 1Q }; send(16) g24<1>UW g32<8,8,1>UD 0x10243102 sampler MsgDesc: sample_c SIMD16 Surface = 2 Sampler = 1 mlen 8 rlen 2 { align1 1H }; send(8) g5<1>UW g5<8,8,1>UD 0x04415000 dp data 1 MsgDesc: ( DC typed surface read, Surface = 0, SIMD16, Mask = 0x0) mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UD g9<8,8,1>UD 0x043a0028 urb MsgDesc: 2 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g13<1>UD g1<8,8,1>UD 0x02380098 urb MsgDesc: 9 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g13<1>UD g1<8,8,1>UD 0x023800a8 urb MsgDesc: 10 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g13<1>UD g1<8,8,1>UD 0x023800b8 urb MsgDesc: 11 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g13<1>UD g1<8,8,1>UD 0x023800d8 urb MsgDesc: 13 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g13<1>UD g1<8,8,1>UD 0x023800e8 urb MsgDesc: 14 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g13<1>UD g1<8,8,1>UD 0x023800f8 urb MsgDesc: 15 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g13<1>UD g1<8,8,1>UD 0x02380108 urb MsgDesc: 16 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g13<1>UD g1<8,8,1>UD 0x02380118 urb MsgDesc: 17 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) null<1>F g60<8,8,1>F 0x120800a7 urb MsgDesc: 10 SIMD8 write mlen 9 rlen 0 { align1 1Q }; send(8) null<1>F g119<8,8,1>F 0x92080107 urb MsgDesc: 16 SIMD8 write mlen 9 rlen 0 { align1 1Q EOT }; send(8) g3<1>UW g7<8,8,1>UD 0x02115e01 dp data 1 MsgDesc: ( DC typed surface read, Surface = 1, SIMD16, Mask = 0xe) mlen 1 rlen 1 { align1 1Q }; send(8) g5<1>UW g11<8,8,1>UD 0x02116e01 dp data 1 MsgDesc: ( DC typed surface read, Surface = 1, SIMD8, Mask = 0xe) mlen 1 rlen 1 { align1 2Q }; send(8) null<1>F g123<8,8,1>F 0x8a080067 urb MsgDesc: 6 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(8) null<1>F g80<8,8,1>F 0x140a00b7 urb MsgDesc: 11 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g6<8,8,1>F 0x140a00d7 urb MsgDesc: 13 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g6<8,8,1>F 0x140a00f7 urb MsgDesc: 15 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g6<8,8,1>F 0x140a0117 urb MsgDesc: 17 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g6<8,8,1>F 0x140a0137 urb MsgDesc: 19 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g90<8,8,1>F 0x140a0157 urb MsgDesc: 21 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g100<8,8,1>F 0x140a0177 urb MsgDesc: 23 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g110<8,8,1>F 0x0c0a0197 urb MsgDesc: 25 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g120<8,8,1>F 0x8c0a0197 urb MsgDesc: 25 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q EOT }; send(8) null<1>F g123<8,8,1>F 0x8a0800b7 urb MsgDesc: 11 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(8) g22<1>UD g53<8,8,1>UD 0x02180238 urb MsgDesc: 35 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g54<1>UD g53<8,8,1>UD 0x02180438 urb MsgDesc: 67 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g67<1>UD g53<8,8,1>UD 0x02180638 urb MsgDesc: 99 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g61<1>UD g53<8,8,1>UD 0x02180248 urb MsgDesc: 36 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g66<1>UD g53<8,8,1>UD 0x02180448 urb MsgDesc: 68 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g63<1>UD g53<8,8,1>UD 0x02180648 urb MsgDesc: 100 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g68<1>UD g65<8,8,1>UD 0x02180258 urb MsgDesc: 37 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g69<1>UD g65<8,8,1>UD 0x02180458 urb MsgDesc: 69 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g70<1>UD g65<8,8,1>UD 0x02180658 urb MsgDesc: 101 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g75<1>UD g24<8,8,1>UD 0x02180268 urb MsgDesc: 38 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g76<1>UD g24<8,8,1>UD 0x02180468 urb MsgDesc: 70 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g77<1>UD g24<8,8,1>UD 0x02180668 urb MsgDesc: 102 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g82<1>UD g25<8,8,1>UD 0x02180278 urb MsgDesc: 39 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g83<1>UD g25<8,8,1>UD 0x02180478 urb MsgDesc: 71 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g84<1>UD g25<8,8,1>UD 0x02180678 urb MsgDesc: 103 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g89<1>UD g26<8,8,1>UD 0x02180288 urb MsgDesc: 40 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g90<1>UD g26<8,8,1>UD 0x02180488 urb MsgDesc: 72 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g91<1>UD g26<8,8,1>UD 0x02180688 urb MsgDesc: 104 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g96<1>UD g27<8,8,1>UD 0x02180298 urb MsgDesc: 41 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g97<1>UD g27<8,8,1>UD 0x02180498 urb MsgDesc: 73 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g98<1>UD g27<8,8,1>UD 0x02180698 urb MsgDesc: 105 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g103<1>UD g28<8,8,1>UD 0x021802a8 urb MsgDesc: 42 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g104<1>UD g28<8,8,1>UD 0x021804a8 urb MsgDesc: 74 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g105<1>UD g28<8,8,1>UD 0x021806a8 urb MsgDesc: 106 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g110<1>UD g29<8,8,1>UD 0x021802b8 urb MsgDesc: 43 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g111<1>UD g29<8,8,1>UD 0x021804b8 urb MsgDesc: 75 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g112<1>UD g29<8,8,1>UD 0x021806b8 urb MsgDesc: 107 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g117<1>UD g30<8,8,1>UD 0x021802c8 urb MsgDesc: 44 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g118<1>UD g30<8,8,1>UD 0x021804c8 urb MsgDesc: 76 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g119<1>UD g30<8,8,1>UD 0x021806c8 urb MsgDesc: 108 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g124<1>UD g31<8,8,1>UD 0x021802d8 urb MsgDesc: 45 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g125<1>UD g31<8,8,1>UD 0x021804d8 urb MsgDesc: 77 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g126<1>UD g31<8,8,1>UD 0x021806d8 urb MsgDesc: 109 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g10<1>UD g32<8,8,1>UD 0x021802e8 urb MsgDesc: 46 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g11<1>UD g32<8,8,1>UD 0x021804e8 urb MsgDesc: 78 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g12<1>UD g32<8,8,1>UD 0x021806e8 urb MsgDesc: 110 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g26<1>UD g33<8,8,1>UD 0x021802f8 urb MsgDesc: 47 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g27<1>UD g33<8,8,1>UD 0x021804f8 urb MsgDesc: 79 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g28<1>UD g33<8,8,1>UD 0x021806f8 urb MsgDesc: 111 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g33<1>UD g35<8,8,1>UD 0x02180308 urb MsgDesc: 48 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g34<1>UD g35<8,8,1>UD 0x02180508 urb MsgDesc: 80 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g35<1>UD g35<8,8,1>UD 0x02180708 urb MsgDesc: 112 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g64<1>UD g36<8,8,1>UD 0x02180318 urb MsgDesc: 49 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g41<1>UD g36<8,8,1>UD 0x02180518 urb MsgDesc: 81 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g42<1>UD g36<8,8,1>UD 0x02180718 urb MsgDesc: 113 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g6<1>UD g37<8,8,1>UD 0x02180328 urb MsgDesc: 50 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g48<1>UD g37<8,8,1>UD 0x02180528 urb MsgDesc: 82 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g49<1>UD g37<8,8,1>UD 0x02180728 urb MsgDesc: 114 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g67<1>UD g38<8,8,1>UD 0x02180338 urb MsgDesc: 51 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g56<1>UD g38<8,8,1>UD 0x02180538 urb MsgDesc: 83 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g57<1>UD g38<8,8,1>UD 0x02180738 urb MsgDesc: 115 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g66<1>UD g39<8,8,1>UD 0x02180348 urb MsgDesc: 52 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g63<1>UD g39<8,8,1>UD 0x02180548 urb MsgDesc: 84 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g40<1>UD g39<8,8,1>UD 0x02180748 urb MsgDesc: 116 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g69<1>UD g64<8,8,1>UD 0x02180358 urb MsgDesc: 53 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g70<1>UD g64<8,8,1>UD 0x02180558 urb MsgDesc: 85 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g71<1>UD g64<8,8,1>UD 0x02180758 urb MsgDesc: 117 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g76<1>UD g41<8,8,1>UD 0x02180368 urb MsgDesc: 54 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g77<1>UD g41<8,8,1>UD 0x02180568 urb MsgDesc: 86 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g78<1>UD g41<8,8,1>UD 0x02180768 urb MsgDesc: 118 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g83<1>UD g42<8,8,1>UD 0x02180378 urb MsgDesc: 55 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g84<1>UD g42<8,8,1>UD 0x02180578 urb MsgDesc: 87 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g85<1>UD g42<8,8,1>UD 0x02180778 urb MsgDesc: 119 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g90<1>UD g43<8,8,1>UD 0x02180388 urb MsgDesc: 56 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g91<1>UD g43<8,8,1>UD 0x02180588 urb MsgDesc: 88 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g92<1>UD g43<8,8,1>UD 0x02180788 urb MsgDesc: 120 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g97<1>UD g44<8,8,1>UD 0x02180398 urb MsgDesc: 57 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g98<1>UD g44<8,8,1>UD 0x02180598 urb MsgDesc: 89 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g99<1>UD g44<8,8,1>UD 0x02180798 urb MsgDesc: 121 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g104<1>UD g45<8,8,1>UD 0x021803a8 urb MsgDesc: 58 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g105<1>UD g45<8,8,1>UD 0x021805a8 urb MsgDesc: 90 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g106<1>UD g45<8,8,1>UD 0x021807a8 urb MsgDesc: 122 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g111<1>UD g46<8,8,1>UD 0x021803b8 urb MsgDesc: 59 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g112<1>UD g46<8,8,1>UD 0x021805b8 urb MsgDesc: 91 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g113<1>UD g46<8,8,1>UD 0x021807b8 urb MsgDesc: 123 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g118<1>UD g6<8,8,1>UD 0x021803c8 urb MsgDesc: 60 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g119<1>UD g6<8,8,1>UD 0x021805c8 urb MsgDesc: 92 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g120<1>UD g6<8,8,1>UD 0x021807c8 urb MsgDesc: 124 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g125<1>UD g48<8,8,1>UD 0x021803d8 urb MsgDesc: 61 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g126<1>UD g48<8,8,1>UD 0x021805d8 urb MsgDesc: 93 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g2<1>UD g48<8,8,1>UD 0x021807d8 urb MsgDesc: 125 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g12<1>UD g49<8,8,1>UD 0x021803e8 urb MsgDesc: 62 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g13<1>UD g49<8,8,1>UD 0x021805e8 urb MsgDesc: 94 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g14<1>UD g49<8,8,1>UD 0x021807e8 urb MsgDesc: 126 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g19<1>UD g50<8,8,1>UD 0x021803f8 urb MsgDesc: 63 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g20<1>UD g50<8,8,1>UD 0x021805f8 urb MsgDesc: 95 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g53<1>UD g50<8,8,1>UD 0x021807f8 urb MsgDesc: 127 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g28<1>UD g51<8,8,1>UD 0x02180408 urb MsgDesc: 64 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g29<1>UD g51<8,8,1>UD 0x02180608 urb MsgDesc: 96 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g30<1>UD g51<8,8,1>UD 0x02180808 urb MsgDesc: 128 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g35<1>UD g22<8,8,1>UD 0x02180218 urb MsgDesc: 33 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g36<1>UD g22<8,8,1>UD 0x02180418 urb MsgDesc: 65 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g37<1>UD g22<8,8,1>UD 0x02180618 urb MsgDesc: 97 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) g38<1>UD g22<8,8,1>UD 0x02180818 urb MsgDesc: 129 SIMD8 read mlen 1 rlen 1 { align1 1Q }; send(8) null<1>F g6<8,8,1>UD 0x080a8037 urb MsgDesc: 3 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g10<8,8,1>UD 0x080a8047 urb MsgDesc: 4 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g11<8,8,1>UD 0x080a8057 urb MsgDesc: 5 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g12<8,8,1>UD 0x080a8067 urb MsgDesc: 6 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g13<8,8,1>UD 0x080a8077 urb MsgDesc: 7 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g14<8,8,1>UD 0x080a8087 urb MsgDesc: 8 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g15<8,8,1>UD 0x080a8097 urb MsgDesc: 9 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g16<8,8,1>UD 0x080a80a7 urb MsgDesc: 10 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g17<8,8,1>UD 0x080a80b7 urb MsgDesc: 11 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g18<8,8,1>UD 0x080a80c7 urb MsgDesc: 12 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g19<8,8,1>UD 0x080a80d7 urb MsgDesc: 13 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g20<8,8,1>UD 0x080a80e7 urb MsgDesc: 14 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g21<8,8,1>UD 0x080a80f7 urb MsgDesc: 15 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g22<8,8,1>UD 0x080a8107 urb MsgDesc: 16 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g23<8,8,1>UD 0x080a8117 urb MsgDesc: 17 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g24<8,8,1>UD 0x080a8127 urb MsgDesc: 18 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g25<8,8,1>UD 0x080a8137 urb MsgDesc: 19 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g26<8,8,1>UD 0x080a8147 urb MsgDesc: 20 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g27<8,8,1>UD 0x080a8157 urb MsgDesc: 21 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g28<8,8,1>UD 0x080a8167 urb MsgDesc: 22 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g29<8,8,1>UD 0x080a8177 urb MsgDesc: 23 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g30<8,8,1>UD 0x080a8187 urb MsgDesc: 24 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g31<8,8,1>UD 0x080a8197 urb MsgDesc: 25 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g32<8,8,1>UD 0x080a81a7 urb MsgDesc: 26 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g33<8,8,1>UD 0x080a81b7 urb MsgDesc: 27 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g34<8,8,1>UD 0x080a81c7 urb MsgDesc: 28 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g35<8,8,1>UD 0x080a81d7 urb MsgDesc: 29 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g36<8,8,1>UD 0x080a81e7 urb MsgDesc: 30 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g37<8,8,1>UD 0x080a81f7 urb MsgDesc: 31 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g38<8,8,1>UD 0x080a8207 urb MsgDesc: 32 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g39<8,8,1>UD 0x080a8217 urb MsgDesc: 33 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) g18<1>UW g19<8,8,1>UD 0x04115e00 dp data 1 MsgDesc: ( DC typed surface read, Surface = 0, SIMD16, Mask = 0xe) mlen 2 rlen 1 { align1 1Q }; send(8) g2<1>UW g6<8,8,1>UD 0x0623d001 sampler MsgDesc: ld_mcs SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 2 { align1 1Q }; send(16) g2<1>UW g8<8,8,1>UD 0x0c45d001 sampler MsgDesc: ld_mcs SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 4 { align1 1H }; send(8) g101<1>UW g10<8,8,1>UD 0x0c33c001 sampler MsgDesc: ld2dms_w SIMD8 Surface = 1 Sampler = 0 mlen 6 rlen 3 { align1 1Q }; send(8) g14<1>UW g11<8,8,1>UD 0x084b0203 sampler MsgDesc: gather4_c SIMD8 Surface = 3 Sampler = 2 mlen 4 rlen 4 { align1 1Q }; send(8) g6<1>UW g6<8,8,1>UD 0x0a4b0102 sampler MsgDesc: gather4_c SIMD8 Surface = 2 Sampler = 1 mlen 5 rlen 4 { align1 1Q }; send(16) g26<1>UW g2<8,8,1>UD 0x0e8d0203 sampler MsgDesc: gather4_c SIMD16 Surface = 3 Sampler = 2 mlen 7 rlen 8 { align1 1H }; send(16) g10<1>UW g34<8,8,1>UD 0x128d0102 sampler MsgDesc: gather4_c SIMD16 Surface = 2 Sampler = 1 mlen 9 rlen 8 { align1 1H }; send(8) g6<1>UW g7<8,8,1>UD 0x0a1b4001 sampler MsgDesc: sample_d_c SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 1 { align1 1Q }; send(8) g7<1>UW g12<8,8,1>UD 0x0a1b4102 sampler MsgDesc: sample_d_c SIMD8 Surface = 2 Sampler = 1 mlen 5 rlen 1 { align1 1Q }; send(8) g34<1>UD g42<8,8,1>UD 0x02480248 urb MsgDesc: 36 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g38<1>UD g42<8,8,1>UD 0x02480448 urb MsgDesc: 68 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g42<1>UD g42<8,8,1>UD 0x02480648 urb MsgDesc: 100 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g43<8,8,1>UD 0x02480258 urb MsgDesc: 37 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UD g43<8,8,1>UD 0x02480458 urb MsgDesc: 69 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g30<1>UD g43<8,8,1>UD 0x02480658 urb MsgDesc: 101 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g44<8,8,1>UD 0x02480268 urb MsgDesc: 38 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UD g44<8,8,1>UD 0x02480468 urb MsgDesc: 70 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g30<1>UD g44<8,8,1>UD 0x02480668 urb MsgDesc: 102 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g45<8,8,1>UD 0x02480278 urb MsgDesc: 39 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UD g45<8,8,1>UD 0x02480478 urb MsgDesc: 71 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g30<1>UD g45<8,8,1>UD 0x02480678 urb MsgDesc: 103 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g55<8,8,1>UD 0x02480288 urb MsgDesc: 40 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UD g55<8,8,1>UD 0x02480488 urb MsgDesc: 72 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g30<1>UD g55<8,8,1>UD 0x02480688 urb MsgDesc: 104 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UD g56<8,8,1>UD 0x02480498 urb MsgDesc: 73 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g56<8,8,1>UD 0x02480298 urb MsgDesc: 41 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g30<1>UD g56<8,8,1>UD 0x02480698 urb MsgDesc: 105 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UD g82<8,8,1>UD 0x024804a8 urb MsgDesc: 74 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g82<8,8,1>UD 0x024802a8 urb MsgDesc: 42 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g30<1>UD g82<8,8,1>UD 0x024806a8 urb MsgDesc: 106 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UD g83<8,8,1>UD 0x024804b8 urb MsgDesc: 75 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g83<8,8,1>UD 0x024802b8 urb MsgDesc: 43 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g30<1>UD g83<8,8,1>UD 0x024806b8 urb MsgDesc: 107 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UD g84<8,8,1>UD 0x024806c8 urb MsgDesc: 108 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g84<8,8,1>UD 0x024802c8 urb MsgDesc: 44 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g84<8,8,1>UD 0x024804c8 urb MsgDesc: 76 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g85<8,8,1>UD 0x024802d8 urb MsgDesc: 45 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g85<8,8,1>UD 0x024804d8 urb MsgDesc: 77 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UD g85<8,8,1>UD 0x024806d8 urb MsgDesc: 109 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g6<8,8,1>UD 0x024802e8 urb MsgDesc: 46 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g6<8,8,1>UD 0x024804e8 urb MsgDesc: 78 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UD g6<8,8,1>UD 0x024806e8 urb MsgDesc: 110 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g3<8,8,1>UD 0x024802f8 urb MsgDesc: 47 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g3<8,8,1>UD 0x024804f8 urb MsgDesc: 79 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UD g3<8,8,1>UD 0x024806f8 urb MsgDesc: 111 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g46<8,8,1>UD 0x02480308 urb MsgDesc: 48 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g46<8,8,1>UD 0x02480508 urb MsgDesc: 80 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UD g46<8,8,1>UD 0x02480708 urb MsgDesc: 112 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g47<8,8,1>UD 0x02480318 urb MsgDesc: 49 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g47<8,8,1>UD 0x02480518 urb MsgDesc: 81 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UD g47<8,8,1>UD 0x02480718 urb MsgDesc: 113 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g57<8,8,1>UD 0x02480328 urb MsgDesc: 50 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g57<8,8,1>UD 0x02480528 urb MsgDesc: 82 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UD g57<8,8,1>UD 0x02480728 urb MsgDesc: 114 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g58<8,8,1>UD 0x02480338 urb MsgDesc: 51 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g58<8,8,1>UD 0x02480538 urb MsgDesc: 83 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g26<1>UD g58<8,8,1>UD 0x02480738 urb MsgDesc: 115 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g59<8,8,1>UD 0x02480348 urb MsgDesc: 52 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g12<1>UD g59<8,8,1>UD 0x02480548 urb MsgDesc: 84 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g59<8,8,1>UD 0x02480748 urb MsgDesc: 116 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g60<8,8,1>UD 0x02480358 urb MsgDesc: 53 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g12<1>UD g60<8,8,1>UD 0x02480558 urb MsgDesc: 85 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g60<8,8,1>UD 0x02480758 urb MsgDesc: 117 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g61<8,8,1>UD 0x02480368 urb MsgDesc: 54 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g12<1>UD g61<8,8,1>UD 0x02480568 urb MsgDesc: 86 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g61<8,8,1>UD 0x02480768 urb MsgDesc: 118 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g62<8,8,1>UD 0x02480378 urb MsgDesc: 55 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g12<1>UD g62<8,8,1>UD 0x02480578 urb MsgDesc: 87 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g62<8,8,1>UD 0x02480778 urb MsgDesc: 119 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g63<8,8,1>UD 0x02480388 urb MsgDesc: 56 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g12<1>UD g63<8,8,1>UD 0x02480588 urb MsgDesc: 88 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g63<8,8,1>UD 0x02480788 urb MsgDesc: 120 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g64<8,8,1>UD 0x02480398 urb MsgDesc: 57 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g12<1>UD g64<8,8,1>UD 0x02480598 urb MsgDesc: 89 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g64<8,8,1>UD 0x02480798 urb MsgDesc: 121 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g68<8,8,1>UD 0x024803a8 urb MsgDesc: 58 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g12<1>UD g68<8,8,1>UD 0x024805a8 urb MsgDesc: 90 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g68<8,8,1>UD 0x024807a8 urb MsgDesc: 122 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g69<8,8,1>UD 0x024803b8 urb MsgDesc: 59 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g12<1>UD g69<8,8,1>UD 0x024805b8 urb MsgDesc: 91 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UD g69<8,8,1>UD 0x024807b8 urb MsgDesc: 123 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g70<8,8,1>UD 0x024803c8 urb MsgDesc: 60 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g12<1>UD g70<8,8,1>UD 0x024805c8 urb MsgDesc: 92 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g16<1>UD g70<8,8,1>UD 0x024807c8 urb MsgDesc: 124 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g71<8,8,1>UD 0x024803d8 urb MsgDesc: 61 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g12<1>UD g71<8,8,1>UD 0x024805d8 urb MsgDesc: 93 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g16<1>UD g71<8,8,1>UD 0x024807d8 urb MsgDesc: 125 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g72<8,8,1>UD 0x024803e8 urb MsgDesc: 62 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g12<1>UD g72<8,8,1>UD 0x024805e8 urb MsgDesc: 94 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g16<1>UD g72<8,8,1>UD 0x024807e8 urb MsgDesc: 126 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g8<1>UD g73<8,8,1>UD 0x024803f8 urb MsgDesc: 63 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g12<1>UD g73<8,8,1>UD 0x024805f8 urb MsgDesc: 95 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g16<1>UD g73<8,8,1>UD 0x024807f8 urb MsgDesc: 127 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g12<1>UD g75<8,8,1>UD 0x02480418 urb MsgDesc: 65 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g16<1>UD g75<8,8,1>UD 0x02480618 urb MsgDesc: 97 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) g20<1>UD g75<8,8,1>UD 0x02480818 urb MsgDesc: 129 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) null<1>F g20<8,8,1>UD 0x0c0a00c7 urb MsgDesc: 12 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g21<8,8,1>UD 0x0c0a00d7 urb MsgDesc: 13 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g22<8,8,1>UD 0x0c0a00e7 urb MsgDesc: 14 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g23<8,8,1>UD 0x0c0a00f7 urb MsgDesc: 15 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g24<8,8,1>UD 0x0c0a0107 urb MsgDesc: 16 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g25<8,8,1>UD 0x0c0a0117 urb MsgDesc: 17 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g27<8,8,1>UD 0x0c0a0137 urb MsgDesc: 19 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g28<8,8,1>UD 0x0c0a0147 urb MsgDesc: 20 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g29<8,8,1>UD 0x0c0a0157 urb MsgDesc: 21 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g30<8,8,1>UD 0x0c0a0167 urb MsgDesc: 22 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g31<8,8,1>UD 0x0c0a0177 urb MsgDesc: 23 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g32<8,8,1>UD 0x0c0a0187 urb MsgDesc: 24 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g34<8,8,1>UD 0x0c0a01a7 urb MsgDesc: 26 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g35<8,8,1>UD 0x0c0a01b7 urb MsgDesc: 27 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g36<8,8,1>UD 0x0c0a01c7 urb MsgDesc: 28 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g37<8,8,1>UD 0x0c0a01d7 urb MsgDesc: 29 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g38<8,8,1>UD 0x0c0a01e7 urb MsgDesc: 30 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g39<8,8,1>UD 0x0c0a01f7 urb MsgDesc: 31 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q }; send(16) g46<1>UD g12<0,1,0>UD 0x02280302 const MsgDesc: (2, 3, 0, 0) mlen 1 rlen 2 { align1 WE_all 1H }; send(16) g50<1>UD g15<0,1,0>UD 0x02280304 const MsgDesc: (4, 3, 0, 0) mlen 1 rlen 2 { align1 WE_all 1H }; send(16) g34<1>UD g20<0,1,0>UD 0x02280303 const MsgDesc: (3, 3, 0, 0) mlen 1 rlen 2 { align1 WE_all 1H }; send(16) g16<1>UD g21<0,1,0>UD 0x02280306 const MsgDesc: (6, 3, 0, 0) mlen 1 rlen 2 { align1 WE_all 1H }; send(8) g5<1>UW g19<8,8,1>UD 0x02106e03 dp data 1 MsgDesc: ( untyped surface read, Surface = 3, SIMD8, Mask = 0xe) mlen 1 rlen 1 { align1 1Q }; send(8) g8<1>UW g21<8,8,1>UD 0x02106e04 dp data 1 MsgDesc: ( untyped surface read, Surface = 4, SIMD8, Mask = 0xe) mlen 1 rlen 1 { align1 1Q }; send(16) g8<1>UW g34<8,8,1>UD 0x04205e03 dp data 1 MsgDesc: ( untyped surface read, Surface = 3, SIMD16, Mask = 0xe) mlen 2 rlen 2 { align1 1H }; send(16) g14<1>UW g37<8,8,1>UD 0x04205e04 dp data 1 MsgDesc: ( untyped surface read, Surface = 4, SIMD16, Mask = 0xe) mlen 2 rlen 2 { align1 1H }; send(8) g15<1>UD g12<8,8,1>UD 0x041a0038 urb MsgDesc: 3 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g2<1>UW g54<8,8,1>UD 0x0242a707 sampler MsgDesc: resinfo SIMD8 Surface = 7 Sampler = 7 mlen 1 rlen 4 { align1 1Q }; send(8) g6<1>UW g55<8,8,1>UD 0x0242a808 sampler MsgDesc: resinfo SIMD8 Surface = 8 Sampler = 8 mlen 1 rlen 4 { align1 1Q }; send(8) g10<1>UW g56<8,8,1>UD 0x0242a909 sampler MsgDesc: resinfo SIMD8 Surface = 9 Sampler = 9 mlen 1 rlen 4 { align1 1Q }; send(8) g14<1>UW g57<8,8,1>UD 0x0242aa0a sampler MsgDesc: resinfo SIMD8 Surface = 10 Sampler = 10 mlen 1 rlen 4 { align1 1Q }; send(8) g18<1>UW g58<8,8,1>UD 0x0242ab0b sampler MsgDesc: resinfo SIMD8 Surface = 11 Sampler = 11 mlen 1 rlen 4 { align1 1Q }; send(8) g22<1>UW g59<8,8,1>UD 0x0242ac0c sampler MsgDesc: resinfo SIMD8 Surface = 12 Sampler = 12 mlen 1 rlen 4 { align1 1Q }; send(8) null<1>F g9<8,8,1>UD 0x0c088027 urb MsgDesc: 2 SIMD8 write masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g10<8,8,1>UD 0x0c088047 urb MsgDesc: 4 SIMD8 write masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g11<8,8,1>UD 0x0c088067 urb MsgDesc: 6 SIMD8 write masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g6<8,8,1>UD 0x0c088037 urb MsgDesc: 3 SIMD8 write masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g7<8,8,1>UD 0x0c088057 urb MsgDesc: 5 SIMD8 write masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g8<8,8,1>UD 0x0c088077 urb MsgDesc: 7 SIMD8 write masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g6<8,8,1>F 0x140a0197 urb MsgDesc: 25 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g6<8,8,1>F 0x140a01b7 urb MsgDesc: 27 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g6<8,8,1>F 0x140a01d7 urb MsgDesc: 29 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g6<8,8,1>F 0x140a01f7 urb MsgDesc: 31 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g120<8,8,1>F 0x8c0a0217 urb MsgDesc: 33 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q EOT }; send(8) g8<1>UD g6<8,8,1>UD 0x041a0318 urb MsgDesc: 49 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g9<1>UD g6<8,8,1>UD 0x041a0518 urb MsgDesc: 81 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g10<1>UD g6<8,8,1>UD 0x041a0718 urb MsgDesc: 113 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g11<1>UD g6<8,8,1>UD 0x041a0918 urb MsgDesc: 145 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g7<1>UD g11<8,8,1>UD 0x041a0218 urb MsgDesc: 33 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g8<1>UD g11<8,8,1>UD 0x041a0418 urb MsgDesc: 65 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g9<1>UD g11<8,8,1>UD 0x041a0618 urb MsgDesc: 97 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g10<1>UD g11<8,8,1>UD 0x041a0818 urb MsgDesc: 129 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) null<1>F g10<8,8,1>UD 0x080a8227 urb MsgDesc: 34 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g11<8,8,1>UD 0x080a8237 urb MsgDesc: 35 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g12<8,8,1>UD 0x080a8247 urb MsgDesc: 36 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g13<8,8,1>UD 0x080a8257 urb MsgDesc: 37 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g14<8,8,1>UD 0x080a8267 urb MsgDesc: 38 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g15<8,8,1>UD 0x080a8277 urb MsgDesc: 39 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g16<8,8,1>UD 0x080a8287 urb MsgDesc: 40 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g17<8,8,1>UD 0x080a8297 urb MsgDesc: 41 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g18<8,8,1>UD 0x080a82a7 urb MsgDesc: 42 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g19<8,8,1>UD 0x080a82b7 urb MsgDesc: 43 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g20<8,8,1>UD 0x080a82c7 urb MsgDesc: 44 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g21<8,8,1>UD 0x080a82d7 urb MsgDesc: 45 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g22<8,8,1>UD 0x080a82e7 urb MsgDesc: 46 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g23<8,8,1>UD 0x080a82f7 urb MsgDesc: 47 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g24<8,8,1>UD 0x080a8307 urb MsgDesc: 48 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g25<8,8,1>UD 0x080a8317 urb MsgDesc: 49 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g26<8,8,1>UD 0x080a8327 urb MsgDesc: 50 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g27<8,8,1>UD 0x080a8337 urb MsgDesc: 51 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g28<8,8,1>UD 0x080a8347 urb MsgDesc: 52 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g29<8,8,1>UD 0x080a8357 urb MsgDesc: 53 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g30<8,8,1>UD 0x080a8367 urb MsgDesc: 54 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g31<8,8,1>UD 0x080a8377 urb MsgDesc: 55 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g32<8,8,1>UD 0x080a8387 urb MsgDesc: 56 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g33<8,8,1>UD 0x080a8397 urb MsgDesc: 57 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g34<8,8,1>UD 0x080a83a7 urb MsgDesc: 58 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g35<8,8,1>UD 0x080a83b7 urb MsgDesc: 59 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g36<8,8,1>UD 0x080a83c7 urb MsgDesc: 60 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g37<8,8,1>UD 0x080a83d7 urb MsgDesc: 61 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g38<8,8,1>UD 0x080a83e7 urb MsgDesc: 62 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) null<1>F g39<8,8,1>UD 0x080a83f7 urb MsgDesc: 63 SIMD8 write per-slot masked mlen 4 rlen 0 { align1 1Q }; send(8) g8<1>UD g9<8,8,1>UD 0x02480008 urb MsgDesc: 0 SIMD8 read mlen 1 rlen 4 { align1 1Q }; send(8) null<1>F g123<8,8,1>F 0x8a080007 urb MsgDesc: 0 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(8) g4<1>UW g2<8,8,1>UD 0x04215c01 dp data 1 MsgDesc: ( DC typed surface read, Surface = 1, SIMD16, Mask = 0xc) mlen 2 rlen 2 { align1 1Q }; send(8) g40<1>UW g38<8,8,1>UD 0x04216c01 dp data 1 MsgDesc: ( DC typed surface read, Surface = 1, SIMD8, Mask = 0xc) mlen 2 rlen 2 { align1 2Q }; send(8) g6<1>UW g11<8,8,1>UD 0x104a4001 sampler MsgDesc: sample_d SIMD8 Surface = 1 Sampler = 0 mlen 8 rlen 4 { align1 1Q }; send(8) g124<1>UW g2<8,8,1>UD 0x04422001 sampler MsgDesc: sample_l SIMD8 Surface = 1 Sampler = 0 mlen 2 rlen 4 { align1 1Q }; send(16) g120<1>UW g2<8,8,1>UD 0x08842001 sampler MsgDesc: sample_l SIMD16 Surface = 1 Sampler = 0 mlen 4 rlen 8 { align1 1H }; send(8) g2<1>UW g7<8,8,1>UD 0x06425001 sampler MsgDesc: sample_b_c SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(8) g6<1>UW g10<8,8,1>UD 0x06425102 sampler MsgDesc: sample_b_c SIMD8 Surface = 2 Sampler = 1 mlen 3 rlen 4 { align1 1Q }; send(16) g2<1>UW g11<8,8,1>UD 0x0c845001 sampler MsgDesc: sample_b_c SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 8 { align1 1H }; send(16) g10<1>UW g18<8,8,1>UD 0x0c845102 sampler MsgDesc: sample_b_c SIMD16 Surface = 2 Sampler = 1 mlen 6 rlen 8 { align1 1H }; send(8) null<1>F g121<8,8,1>F 0x8a080197 urb MsgDesc: 25 SIMD8 write mlen 5 rlen 0 { align1 1Q EOT }; send(8) g124<1>UW g6<8,8,1>UD 0x02415000 dp data 1 MsgDesc: ( DC typed surface read, Surface = 0, SIMD16, Mask = 0x0) mlen 1 rlen 4 { align1 1Q }; send(8) g124<1>UW g6<8,8,1>UD 0x06415000 dp data 1 MsgDesc: ( DC typed surface read, Surface = 0, SIMD16, Mask = 0x0) mlen 3 rlen 4 { align1 1Q }; send(8) g124<1>UW g6<8,8,1>UD 0x02215c00 dp data 1 MsgDesc: ( DC typed surface read, Surface = 0, SIMD16, Mask = 0xc) mlen 1 rlen 2 { align1 1Q }; send(8) g17<1>UW g27<8,8,1>UD 0x02115e00 dp data 1 MsgDesc: ( DC typed surface read, Surface = 0, SIMD16, Mask = 0xe) mlen 1 rlen 1 { align1 1Q }; send(8) g124<1>UW g2<8,8,1>UD 0x02415001 dp data 1 MsgDesc: ( DC typed surface read, Surface = 1, SIMD16, Mask = 0x0) mlen 1 rlen 4 { align1 1Q }; send(8) g2<1>UW g29<8,8,1>UD 0x02416001 dp data 1 MsgDesc: ( DC typed surface read, Surface = 1, SIMD8, Mask = 0x0) mlen 1 rlen 4 { align1 2Q }; send(8) g9<1>UW g19<8,8,1>UD 0x0843e102 sampler MsgDesc: ld2dms SIMD8 Surface = 2 Sampler = 1 mlen 4 rlen 4 { align1 1Q }; send(16) g23<1>UW g7<8,8,1>UD 0x1085e102 sampler MsgDesc: ld2dms SIMD16 Surface = 2 Sampler = 1 mlen 8 rlen 8 { align1 1H }; send(8) g124<1>UW g5<8,8,1>UD 0x0c4b0001 sampler MsgDesc: gather4_c SIMD8 Surface = 1 Sampler = 0 mlen 6 rlen 4 { align1 1Q }; send(16) g120<1>UW g7<8,8,1>UD 0x168d0001 sampler MsgDesc: gather4_c SIMD16 Surface = 1 Sampler = 0 mlen 11 rlen 8 { align1 1H }; send(8) g6<1>UW g7<8,8,1>UD 0x0a134001 sampler MsgDesc: sample_d_c SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 1 { align1 1Q }; send(8) g7<1>UW g12<8,8,1>UD 0x0a134102 sampler MsgDesc: sample_d_c SIMD8 Surface = 2 Sampler = 1 mlen 5 rlen 1 { align1 1Q }; send(8) g22<1>UD g10<8,8,1>UD 0x041a0138 urb MsgDesc: 19 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g21<1>UD g10<8,8,1>UD 0x041a0338 urb MsgDesc: 51 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g65<1>UD g10<8,8,1>UD 0x041a0538 urb MsgDesc: 83 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g10<1>UD g10<8,8,1>UD 0x041a0738 urb MsgDesc: 115 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g65<1>UD g11<8,8,1>UD 0x041a0238 urb MsgDesc: 35 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g10<1>UD g11<8,8,1>UD 0x041a0438 urb MsgDesc: 67 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g11<1>UD g11<8,8,1>UD 0x041a0638 urb MsgDesc: 99 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g8<1>UD g7<8,8,1>UD 0x041a0048 urb MsgDesc: 4 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g6<1>UW g10<8,8,1>UD 0x0a4a4001 sampler MsgDesc: sample_d SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 4 { align1 1Q }; send(8) g2<1>UW g7<8,8,1>UD 0x06426001 sampler MsgDesc: sample_l_c SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 4 { align1 1Q }; send(8) g6<1>UW g10<8,8,1>UD 0x06426102 sampler MsgDesc: sample_l_c SIMD8 Surface = 2 Sampler = 1 mlen 3 rlen 4 { align1 1Q }; send(16) g2<1>UW g11<8,8,1>UD 0x0c846001 sampler MsgDesc: sample_l_c SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 8 { align1 1H }; send(16) g10<1>UW g18<8,8,1>UD 0x0c846102 sampler MsgDesc: sample_l_c SIMD16 Surface = 2 Sampler = 1 mlen 6 rlen 8 { align1 1H }; send(8) g124<1>UW g2<8,8,1>UD 0x08320001 sampler MsgDesc: sample SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 3 { align1 1Q }; send(16) g120<1>UW g2<8,8,1>UD 0x10640001 sampler MsgDesc: sample SIMD16 Surface = 1 Sampler = 0 mlen 8 rlen 6 { align1 1H }; send(8) g6<1>UW g7<8,8,1>UD 0x0c1b4001 sampler MsgDesc: sample_d_c SIMD8 Surface = 1 Sampler = 0 mlen 6 rlen 1 { align1 1Q }; send(8) g7<1>UW g13<8,8,1>UD 0x0c1b4102 sampler MsgDesc: sample_d_c SIMD8 Surface = 2 Sampler = 1 mlen 6 rlen 1 { align1 1Q }; send(8) g2<1>UW g7<8,8,1>UD 0x08425001 sampler MsgDesc: sample_b_c SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 4 { align1 1Q }; send(8) g6<1>UW g11<8,8,1>UD 0x08425102 sampler MsgDesc: sample_b_c SIMD8 Surface = 2 Sampler = 1 mlen 4 rlen 4 { align1 1Q }; send(16) g2<1>UW g11<8,8,1>UD 0x10845001 sampler MsgDesc: sample_b_c SIMD16 Surface = 1 Sampler = 0 mlen 8 rlen 8 { align1 1H }; send(16) g10<1>UW g19<8,8,1>UD 0x10845102 sampler MsgDesc: sample_b_c SIMD16 Surface = 2 Sampler = 1 mlen 8 rlen 8 { align1 1H }; send(8) g124<1>UW g2<8,8,1>UD 0x02306801 dp data 1 MsgDesc: ( untyped surface read, Surface = 1, SIMD8, Mask = 0x8) mlen 1 rlen 3 { align1 1Q }; send(16) g120<1>UW g2<8,8,1>UD 0x04605801 dp data 1 MsgDesc: ( untyped surface read, Surface = 1, SIMD16, Mask = 0x8) mlen 2 rlen 6 { align1 1H }; send(8) g8<1>UD g7<8,8,1>UD 0x043a0128 urb MsgDesc: 18 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g12<1>UW g5<8,8,1>UD 0x0833e001 sampler MsgDesc: ld2dms SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 3 { align1 1Q }; send(8) g15<1>UW g17<8,8,1>UD 0x0823e001 sampler MsgDesc: ld2dms SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 2 { align1 1Q }; send(16) g7<1>UW g13<8,8,1>UD 0x1065e001 sampler MsgDesc: ld2dms SIMD16 Surface = 1 Sampler = 0 mlen 8 rlen 6 { align1 1H }; send(16) g33<1>UW g21<8,8,1>UD 0x1045e001 sampler MsgDesc: ld2dms SIMD16 Surface = 1 Sampler = 0 mlen 8 rlen 4 { align1 1H }; send(8) g14<1>UW g14<8,8,1>UD 0x101b4001 sampler MsgDesc: sample_d_c SIMD8 Surface = 1 Sampler = 0 mlen 8 rlen 1 { align1 1Q }; send(8) g15<1>UW g22<8,8,1>UD 0x101b4102 sampler MsgDesc: sample_d_c SIMD8 Surface = 2 Sampler = 1 mlen 8 rlen 1 { align1 1Q }; send(8) g8<1>UD g20<8,8,1>UD 0x044a0138 urb MsgDesc: 19 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g20<8,8,1>UD 0x044a0338 urb MsgDesc: 51 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g16<1>UD g20<8,8,1>UD 0x044a0538 urb MsgDesc: 83 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g20<1>UD g20<8,8,1>UD 0x044a0738 urb MsgDesc: 115 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g14<1>UD g22<8,8,1>UD 0x044a0238 urb MsgDesc: 35 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g18<1>UD g22<8,8,1>UD 0x044a0438 urb MsgDesc: 67 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g22<1>UD g22<8,8,1>UD 0x044a0638 urb MsgDesc: 99 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g11<1>UW g5<8,8,1>UD 0x04120003 sampler MsgDesc: sample SIMD8 Surface = 3 Sampler = 0 mlen 2 rlen 1 { align1 1Q }; send(8) g12<1>UW g5<8,8,1>UD 0x04120004 sampler MsgDesc: sample SIMD8 Surface = 4 Sampler = 0 mlen 2 rlen 1 { align1 1Q }; send(16) g8<1>UW g12<8,8,1>UD 0x08240003 sampler MsgDesc: sample SIMD16 Surface = 3 Sampler = 0 mlen 4 rlen 2 { align1 1H }; send(16) g10<1>UW g12<8,8,1>UD 0x08240004 sampler MsgDesc: sample SIMD16 Surface = 4 Sampler = 0 mlen 4 rlen 2 { align1 1H }; send(8) g6<1>UW g7<8,8,1>UD 0x08125001 sampler MsgDesc: sample_b_c SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 1 { align1 1Q }; send(8) g7<1>UW g11<8,8,1>UD 0x08125102 sampler MsgDesc: sample_b_c SIMD8 Surface = 2 Sampler = 1 mlen 4 rlen 1 { align1 1Q }; send(16) g10<1>UW g12<8,8,1>UD 0x10245001 sampler MsgDesc: sample_b_c SIMD16 Surface = 1 Sampler = 0 mlen 8 rlen 2 { align1 1H }; send(16) g12<1>UW g20<8,8,1>UD 0x10245102 sampler MsgDesc: sample_b_c SIMD16 Surface = 2 Sampler = 1 mlen 8 rlen 2 { align1 1H }; send(8) g2<1>UW g13<8,8,1>UD 0x0623a001 sampler MsgDesc: ld_lz SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 2 { align1 1Q }; send(16) g6<1>UW g23<8,8,1>UD 0x0c45a001 sampler MsgDesc: ld_lz SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 4 { align1 1H }; send(8) g124<1>UW g7<8,8,1>UD 0x0c4b2000 sampler MsgDesc: gather4_po_c SIMD8 Surface = 0 Sampler = 0 mlen 6 rlen 4 { align1 1Q }; send(8) g13<1>UD g39<8,8,1>UD 0x041a0058 urb MsgDesc: 5 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g4<1>UD g10<8,8,1>UD 0x041a0068 urb MsgDesc: 6 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g4<1>UD g3<8,8,1>UD 0x041a0078 urb MsgDesc: 7 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g4<1>UD g3<8,8,1>UD 0x041a0088 urb MsgDesc: 8 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g4<1>UD g3<8,8,1>UD 0x041a0098 urb MsgDesc: 9 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g4<1>UD g3<8,8,1>UD 0x041a00a8 urb MsgDesc: 10 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g4<1>UD g3<8,8,1>UD 0x041a00b8 urb MsgDesc: 11 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g4<1>UD g3<8,8,1>UD 0x041a00c8 urb MsgDesc: 12 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a00d8 urb MsgDesc: 13 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a00e8 urb MsgDesc: 14 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a00f8 urb MsgDesc: 15 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a0108 urb MsgDesc: 16 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a0118 urb MsgDesc: 17 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a0148 urb MsgDesc: 20 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a0158 urb MsgDesc: 21 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a0168 urb MsgDesc: 22 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a0178 urb MsgDesc: 23 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a0188 urb MsgDesc: 24 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a0198 urb MsgDesc: 25 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a01a8 urb MsgDesc: 26 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a01b8 urb MsgDesc: 27 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a01c8 urb MsgDesc: 28 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a01d8 urb MsgDesc: 29 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a01e8 urb MsgDesc: 30 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a01f8 urb MsgDesc: 31 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g3<1>UD g2<8,8,1>UD 0x041a0208 urb MsgDesc: 32 SIMD8 read per-slot mlen 2 rlen 1 { align1 1Q }; send(8) g38<1>UW g38<8,8,1>UD 0x084a8405 sampler MsgDesc: gather4 SIMD8 Surface = 5 Sampler = 4 mlen 4 rlen 4 { align1 1Q }; send(8) g46<1>UW g23<8,8,1>UD 0x064a8304 sampler MsgDesc: gather4 SIMD8 Surface = 4 Sampler = 3 mlen 3 rlen 4 { align1 1Q }; send(8) g28<1>UW g28<8,8,1>UD 0x064a8506 sampler MsgDesc: gather4 SIMD8 Surface = 6 Sampler = 5 mlen 3 rlen 4 { align1 1Q }; send(8) g12<1>UW g23<8,8,1>UD 0x064a8607 sampler MsgDesc: gather4 SIMD8 Surface = 7 Sampler = 6 mlen 3 rlen 4 { align1 1Q }; send(8) g12<1>UW g32<8,8,1>UD 0x084a8708 sampler MsgDesc: gather4 SIMD8 Surface = 8 Sampler = 7 mlen 4 rlen 4 { align1 1Q }; send(8) g26<1>UW g13<8,8,1>UD 0x064a8809 sampler MsgDesc: gather4 SIMD8 Surface = 9 Sampler = 8 mlen 3 rlen 4 { align1 1Q }; send(8) g26<1>UW g26<8,8,1>UD 0x084b090a sampler MsgDesc: gather4_c SIMD8 Surface = 10 Sampler = 9 mlen 4 rlen 4 { align1 1Q }; send(8) g2<1>UW g2<8,8,1>UD 0x0a4b0a0b sampler MsgDesc: gather4_c SIMD8 Surface = 11 Sampler = 10 mlen 5 rlen 4 { align1 1Q }; send(8) g6<1>UW g6<8,8,1>UD 0x084b0b0c sampler MsgDesc: gather4_c SIMD8 Surface = 12 Sampler = 11 mlen 4 rlen 4 { align1 1Q }; send(16) g30<1>UW g73<8,8,1>UD 0x0a8c8304 sampler MsgDesc: gather4 SIMD16 Surface = 4 Sampler = 3 mlen 5 rlen 8 { align1 1H }; send(16) g40<1>UW g2<8,8,1>UD 0x0e8c8405 sampler MsgDesc: gather4 SIMD16 Surface = 5 Sampler = 4 mlen 7 rlen 8 { align1 1H }; send(16) g5<1>UW g33<8,8,1>UD 0x0a8c8506 sampler MsgDesc: gather4 SIMD16 Surface = 6 Sampler = 5 mlen 5 rlen 8 { align1 1H }; send(16) g32<1>UW g55<8,8,1>UD 0x0a8c8607 sampler MsgDesc: gather4 SIMD16 Surface = 7 Sampler = 6 mlen 5 rlen 8 { align1 1H }; send(16) g30<1>UW g23<8,8,1>UD 0x0e8c8708 sampler MsgDesc: gather4 SIMD16 Surface = 8 Sampler = 7 mlen 7 rlen 8 { align1 1H }; send(16) g5<1>UW g40<8,8,1>UD 0x0a8c8809 sampler MsgDesc: gather4 SIMD16 Surface = 9 Sampler = 8 mlen 5 rlen 8 { align1 1H }; send(16) g38<1>UW g67<8,8,1>UD 0x0e8d090a sampler MsgDesc: gather4_c SIMD16 Surface = 10 Sampler = 9 mlen 7 rlen 8 { align1 1H }; send(16) g38<1>UW g2<8,8,1>UD 0x128d0a0b sampler MsgDesc: gather4_c SIMD16 Surface = 11 Sampler = 10 mlen 9 rlen 8 { align1 1H }; send(16) g10<1>UW g39<8,8,1>UD 0x0e8d0b0c sampler MsgDesc: gather4_c SIMD16 Surface = 12 Sampler = 11 mlen 7 rlen 8 { align1 1H }; send(8) g2<1>UW g6<8,8,1>UD 0x0e4b2000 sampler MsgDesc: gather4_po_c SIMD8 Surface = 0 Sampler = 0 mlen 7 rlen 4 { align1 1Q }; send(8) g11<1>UW g7<8,8,1>UD 0x04120102 sampler MsgDesc: sample SIMD8 Surface = 2 Sampler = 1 mlen 2 rlen 1 { align1 1Q }; send(8) g12<1>UW g7<8,8,1>UD 0x04120203 sampler MsgDesc: sample SIMD8 Surface = 3 Sampler = 2 mlen 2 rlen 1 { align1 1Q }; send(16) g6<1>UW g11<8,8,1>UD 0x08240102 sampler MsgDesc: sample SIMD16 Surface = 2 Sampler = 1 mlen 4 rlen 2 { align1 1H }; send(16) g8<1>UW g11<8,8,1>UD 0x08240203 sampler MsgDesc: sample SIMD16 Surface = 3 Sampler = 2 mlen 4 rlen 2 { align1 1H }; send(8) g5<1>UW g6<8,8,1>UD 0x04220003 sampler MsgDesc: sample SIMD8 Surface = 3 Sampler = 0 mlen 2 rlen 2 { align1 1Q }; send(16) g8<1>UW g12<8,8,1>UD 0x08440003 sampler MsgDesc: sample SIMD16 Surface = 3 Sampler = 0 mlen 4 rlen 4 { align1 1H }; send(8) g5<1>UW g2<8,8,1>UD 0x04129001 sampler MsgDesc: lod SIMD8 Surface = 1 Sampler = 0 mlen 2 rlen 1 { align1 1Q }; send(16) g6<1>UW g2<8,8,1>UD 0x08249001 sampler MsgDesc: lod SIMD16 Surface = 1 Sampler = 0 mlen 4 rlen 2 { align1 1H }; send(8) g11<1>UW g4<8,8,1>UD 0x04415002 dp data 1 MsgDesc: ( DC typed surface read, Surface = 2, SIMD16, Mask = 0x0) mlen 2 rlen 4 { align1 1Q }; send(8) g7<1>UW g5<8,8,1>UD 0x04416002 dp data 1 MsgDesc: ( DC typed surface read, Surface = 2, SIMD8, Mask = 0x0) mlen 2 rlen 4 { align1 2Q }; send(8) null<1>F g16<8,8,1>UD 0x0e0a8057 urb MsgDesc: 5 SIMD8 write per-slot masked mlen 7 rlen 0 { align1 1Q }; send(8) g6<1>UD g18<8,8,1>UD 0x043a0318 urb MsgDesc: 49 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g9<1>UD g18<8,8,1>UD 0x043a0518 urb MsgDesc: 81 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g12<1>UD g18<8,8,1>UD 0x043a0718 urb MsgDesc: 113 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g15<1>UD g18<8,8,1>UD 0x043a0918 urb MsgDesc: 145 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g11<1>UD g23<8,8,1>UD 0x043a0218 urb MsgDesc: 33 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g14<1>UD g23<8,8,1>UD 0x043a0418 urb MsgDesc: 65 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g17<1>UD g23<8,8,1>UD 0x043a0618 urb MsgDesc: 97 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g20<1>UD g23<8,8,1>UD 0x043a0818 urb MsgDesc: 129 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) null<1>F g12<8,8,1>UD 0x0c0a8227 urb MsgDesc: 34 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g13<8,8,1>UD 0x0c0a8237 urb MsgDesc: 35 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g14<8,8,1>UD 0x0c0a8247 urb MsgDesc: 36 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g15<8,8,1>UD 0x0c0a8257 urb MsgDesc: 37 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g16<8,8,1>UD 0x0c0a8267 urb MsgDesc: 38 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g17<8,8,1>UD 0x0c0a8277 urb MsgDesc: 39 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g18<8,8,1>UD 0x0c0a8287 urb MsgDesc: 40 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g19<8,8,1>UD 0x0c0a8297 urb MsgDesc: 41 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g20<8,8,1>UD 0x0c0a82a7 urb MsgDesc: 42 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g21<8,8,1>UD 0x0c0a82b7 urb MsgDesc: 43 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g22<8,8,1>UD 0x0c0a82c7 urb MsgDesc: 44 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g23<8,8,1>UD 0x0c0a82d7 urb MsgDesc: 45 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g24<8,8,1>UD 0x0c0a82e7 urb MsgDesc: 46 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g25<8,8,1>UD 0x0c0a82f7 urb MsgDesc: 47 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g26<8,8,1>UD 0x0c0a8307 urb MsgDesc: 48 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g27<8,8,1>UD 0x0c0a8317 urb MsgDesc: 49 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g28<8,8,1>UD 0x0c0a8327 urb MsgDesc: 50 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g29<8,8,1>UD 0x0c0a8337 urb MsgDesc: 51 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g30<8,8,1>UD 0x0c0a8347 urb MsgDesc: 52 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g31<8,8,1>UD 0x0c0a8357 urb MsgDesc: 53 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g32<8,8,1>UD 0x0c0a8367 urb MsgDesc: 54 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g33<8,8,1>UD 0x0c0a8377 urb MsgDesc: 55 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g34<8,8,1>UD 0x0c0a8387 urb MsgDesc: 56 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g35<8,8,1>UD 0x0c0a8397 urb MsgDesc: 57 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g36<8,8,1>UD 0x0c0a83a7 urb MsgDesc: 58 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g37<8,8,1>UD 0x0c0a83b7 urb MsgDesc: 59 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g38<8,8,1>UD 0x0c0a83c7 urb MsgDesc: 60 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g39<8,8,1>UD 0x0c0a83d7 urb MsgDesc: 61 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g40<8,8,1>UD 0x0c0a83e7 urb MsgDesc: 62 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) null<1>F g41<8,8,1>UD 0x0c0a83f7 urb MsgDesc: 63 SIMD8 write per-slot masked mlen 6 rlen 0 { align1 1Q }; send(8) g8<1>UW g7<8,8,1>UD 0x10134001 sampler MsgDesc: sample_d_c SIMD8 Surface = 1 Sampler = 0 mlen 8 rlen 1 { align1 1Q }; send(8) g9<1>UW g15<8,8,1>UD 0x10134102 sampler MsgDesc: sample_d_c SIMD8 Surface = 2 Sampler = 1 mlen 8 rlen 1 { align1 1Q }; send(8) g16<1>UD g16<8,8,1>UD 0x044a0148 urb MsgDesc: 20 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g38<1>UW g38<8,8,1>UD 0x084a8404 sampler MsgDesc: gather4 SIMD8 Surface = 4 Sampler = 4 mlen 4 rlen 4 { align1 1Q }; send(8) g46<1>UW g23<8,8,1>UD 0x064a8303 sampler MsgDesc: gather4 SIMD8 Surface = 3 Sampler = 3 mlen 3 rlen 4 { align1 1Q }; send(8) g28<1>UW g28<8,8,1>UD 0x064a8505 sampler MsgDesc: gather4 SIMD8 Surface = 5 Sampler = 5 mlen 3 rlen 4 { align1 1Q }; send(8) g12<1>UW g23<8,8,1>UD 0x064a8606 sampler MsgDesc: gather4 SIMD8 Surface = 6 Sampler = 6 mlen 3 rlen 4 { align1 1Q }; send(8) g12<1>UW g32<8,8,1>UD 0x084a8707 sampler MsgDesc: gather4 SIMD8 Surface = 7 Sampler = 7 mlen 4 rlen 4 { align1 1Q }; send(8) g26<1>UW g13<8,8,1>UD 0x064a8808 sampler MsgDesc: gather4 SIMD8 Surface = 8 Sampler = 8 mlen 3 rlen 4 { align1 1Q }; send(8) g26<1>UW g26<8,8,1>UD 0x084b0909 sampler MsgDesc: gather4_c SIMD8 Surface = 9 Sampler = 9 mlen 4 rlen 4 { align1 1Q }; send(8) g2<1>UW g2<8,8,1>UD 0x0a4b0a0a sampler MsgDesc: gather4_c SIMD8 Surface = 10 Sampler = 10 mlen 5 rlen 4 { align1 1Q }; send(8) g10<1>UW g10<8,8,1>UD 0x084b0b0b sampler MsgDesc: gather4_c SIMD8 Surface = 11 Sampler = 11 mlen 4 rlen 4 { align1 1Q }; send(8) g2<1>UD g15<8,8,1>UD 0x043a0048 urb MsgDesc: 4 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g12<1>UD g15<8,8,1>UD 0x043a0058 urb MsgDesc: 5 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a0068 urb MsgDesc: 6 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a0078 urb MsgDesc: 7 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a0088 urb MsgDesc: 8 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a0098 urb MsgDesc: 9 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a00a8 urb MsgDesc: 10 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a00b8 urb MsgDesc: 11 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a00c8 urb MsgDesc: 12 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a00d8 urb MsgDesc: 13 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a00e8 urb MsgDesc: 14 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a00f8 urb MsgDesc: 15 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a0108 urb MsgDesc: 16 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a0118 urb MsgDesc: 17 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a0138 urb MsgDesc: 19 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a0148 urb MsgDesc: 20 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a0158 urb MsgDesc: 21 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a0168 urb MsgDesc: 22 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a0178 urb MsgDesc: 23 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a0188 urb MsgDesc: 24 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a0198 urb MsgDesc: 25 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a01a8 urb MsgDesc: 26 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a01b8 urb MsgDesc: 27 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a01c8 urb MsgDesc: 28 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a01d8 urb MsgDesc: 29 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a01e8 urb MsgDesc: 30 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a01f8 urb MsgDesc: 31 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g2<1>UD g2<8,8,1>UD 0x043a0208 urb MsgDesc: 32 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) null<1>F g11<8,8,1>F 0x140a0047 urb MsgDesc: 4 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g31<8,8,1>F 0x140a0087 urb MsgDesc: 8 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q }; send(8) null<1>F g118<8,8,1>F 0x940a0087 urb MsgDesc: 8 SIMD8 write per-slot mlen 10 rlen 0 { align1 1Q EOT }; send(8) g14<1>UW g11<8,8,1>UD 0x0a4b0202 sampler MsgDesc: gather4_c SIMD8 Surface = 2 Sampler = 2 mlen 5 rlen 4 { align1 1Q }; send(8) g18<1>UW g18<8,8,1>UD 0x0c4b0303 sampler MsgDesc: gather4_c SIMD8 Surface = 3 Sampler = 3 mlen 6 rlen 4 { align1 1Q }; send(8) g22<1>UW g24<8,8,1>UD 0x084b0404 sampler MsgDesc: gather4_c SIMD8 Surface = 4 Sampler = 4 mlen 4 rlen 4 { align1 1Q }; send(8) g15<1>UW g2<8,8,1>UD 0x06423203 sampler MsgDesc: sample_c SIMD8 Surface = 3 Sampler = 2 mlen 3 rlen 4 { align1 1Q }; send(16) g19<1>UW g27<8,8,1>UD 0x0c843203 sampler MsgDesc: sample_c SIMD16 Surface = 3 Sampler = 2 mlen 6 rlen 8 { align1 1H }; send(8) g7<1>UW g9<8,8,1>UD 0x0a13c001 sampler MsgDesc: ld2dms_w SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 1 { align1 1Q }; send(16) g20<1>UW g7<8,8,1>UD 0x1425c001 sampler MsgDesc: ld2dms_w SIMD16 Surface = 1 Sampler = 0 mlen 10 rlen 2 { align1 1H }; send(8) g21<1>UW g5<8,8,1>UD 0x0a33c001 sampler MsgDesc: ld2dms_w SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 3 { align1 1Q }; send(8) g18<1>UW g24<8,8,1>UD 0x0a23c001 sampler MsgDesc: ld2dms_w SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 2 { align1 1Q }; send(16) g15<1>UW g21<8,8,1>UD 0x1465c001 sampler MsgDesc: ld2dms_w SIMD16 Surface = 1 Sampler = 0 mlen 10 rlen 6 { align1 1H }; send(16) g7<1>UW g31<8,8,1>UD 0x1445c001 sampler MsgDesc: ld2dms_w SIMD16 Surface = 1 Sampler = 0 mlen 10 rlen 4 { align1 1H }; send(8) g124<1>UW g6<8,8,1>UD 0x04438303 sampler MsgDesc: sample_lz SIMD8 Surface = 3 Sampler = 3 mlen 2 rlen 4 { align1 1Q }; send(8) g11<1>UD g17<8,8,1>UD 0x043a0338 urb MsgDesc: 51 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g14<1>UD g17<8,8,1>UD 0x043a0538 urb MsgDesc: 83 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g17<1>UD g17<8,8,1>UD 0x043a0738 urb MsgDesc: 115 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g9<1>UD g18<8,8,1>UD 0x043a0038 urb MsgDesc: 3 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g12<1>UD g18<8,8,1>UD 0x043a0238 urb MsgDesc: 35 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g15<1>UD g18<8,8,1>UD 0x043a0438 urb MsgDesc: 67 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g18<1>UD g18<8,8,1>UD 0x043a0638 urb MsgDesc: 99 SIMD8 read per-slot mlen 2 rlen 3 { align1 1Q }; send(8) g6<1>UW g10<8,8,1>UD 0x08424001 sampler MsgDesc: sample_d SIMD8 Surface = 1 Sampler = 0 mlen 4 rlen 4 { align1 1Q }; send(8) g9<1>UW g5<8,8,1>UD 0x04420002 sampler MsgDesc: sample SIMD8 Surface = 2 Sampler = 0 mlen 2 rlen 4 { align1 1Q }; send(16) g13<1>UW g7<8,8,1>UD 0x08840002 sampler MsgDesc: sample SIMD16 Surface = 2 Sampler = 0 mlen 4 rlen 8 { align1 1H }; (+f1.0) send(8) g124<1>UW g2<8,8,1>UD 0x0211a501 dp data 1 MsgDesc: ( DC typed atomic, Surface = 1, SIMD16, inc) mlen 1 rlen 1 { align1 1Q }; (+f1.0) send(8) g121<1>UW g3<8,8,1>UD 0x0211b501 dp data 1 MsgDesc: ( DC typed atomic, Surface = 1, SIMD8, inc) mlen 1 rlen 1 { align1 2Q }; send(8) g22<1>UD g32<8,8,1>UD 0x02280238 urb MsgDesc: 35 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g24<1>UD g32<8,8,1>UD 0x02280438 urb MsgDesc: 67 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g26<1>UD g32<8,8,1>UD 0x02280638 urb MsgDesc: 99 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g28<1>UD g32<8,8,1>UD 0x02280248 urb MsgDesc: 36 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g30<1>UD g32<8,8,1>UD 0x02280448 urb MsgDesc: 68 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g32<1>UD g32<8,8,1>UD 0x02280648 urb MsgDesc: 100 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g22<1>UD g33<8,8,1>UD 0x02280258 urb MsgDesc: 37 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g24<1>UD g33<8,8,1>UD 0x02280458 urb MsgDesc: 69 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g26<1>UD g33<8,8,1>UD 0x02280658 urb MsgDesc: 101 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g22<1>UD g34<8,8,1>UD 0x02280268 urb MsgDesc: 38 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g24<1>UD g34<8,8,1>UD 0x02280468 urb MsgDesc: 70 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g26<1>UD g34<8,8,1>UD 0x02280668 urb MsgDesc: 102 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g24<1>UD g35<8,8,1>UD 0x02280478 urb MsgDesc: 71 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g22<1>UD g35<8,8,1>UD 0x02280278 urb MsgDesc: 39 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g26<1>UD g35<8,8,1>UD 0x02280678 urb MsgDesc: 103 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g24<1>UD g36<8,8,1>UD 0x02280688 urb MsgDesc: 104 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g36<8,8,1>UD 0x02280288 urb MsgDesc: 40 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g22<1>UD g36<8,8,1>UD 0x02280488 urb MsgDesc: 72 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g37<8,8,1>UD 0x02280298 urb MsgDesc: 41 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g22<1>UD g37<8,8,1>UD 0x02280498 urb MsgDesc: 73 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g24<1>UD g37<8,8,1>UD 0x02280698 urb MsgDesc: 105 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g38<8,8,1>UD 0x022802a8 urb MsgDesc: 42 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g22<1>UD g38<8,8,1>UD 0x022804a8 urb MsgDesc: 74 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g24<1>UD g38<8,8,1>UD 0x022806a8 urb MsgDesc: 106 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g39<8,8,1>UD 0x022802b8 urb MsgDesc: 43 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g22<1>UD g39<8,8,1>UD 0x022804b8 urb MsgDesc: 75 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g24<1>UD g39<8,8,1>UD 0x022806b8 urb MsgDesc: 107 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g40<8,8,1>UD 0x022802c8 urb MsgDesc: 44 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g40<8,8,1>UD 0x022804c8 urb MsgDesc: 76 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g22<1>UD g40<8,8,1>UD 0x022806c8 urb MsgDesc: 108 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g41<8,8,1>UD 0x022802d8 urb MsgDesc: 45 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g41<8,8,1>UD 0x022804d8 urb MsgDesc: 77 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g22<1>UD g41<8,8,1>UD 0x022806d8 urb MsgDesc: 109 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g42<8,8,1>UD 0x022802e8 urb MsgDesc: 46 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g42<8,8,1>UD 0x022804e8 urb MsgDesc: 78 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g22<1>UD g42<8,8,1>UD 0x022806e8 urb MsgDesc: 110 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g43<8,8,1>UD 0x022802f8 urb MsgDesc: 47 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g43<8,8,1>UD 0x022804f8 urb MsgDesc: 79 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g22<1>UD g43<8,8,1>UD 0x022806f8 urb MsgDesc: 111 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g44<8,8,1>UD 0x02280308 urb MsgDesc: 48 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g44<8,8,1>UD 0x02280508 urb MsgDesc: 80 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g44<8,8,1>UD 0x02280708 urb MsgDesc: 112 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g45<8,8,1>UD 0x02280318 urb MsgDesc: 49 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g45<8,8,1>UD 0x02280518 urb MsgDesc: 81 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g45<8,8,1>UD 0x02280718 urb MsgDesc: 113 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g46<8,8,1>UD 0x02280328 urb MsgDesc: 50 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g46<8,8,1>UD 0x02280528 urb MsgDesc: 82 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g46<8,8,1>UD 0x02280728 urb MsgDesc: 114 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g47<8,8,1>UD 0x02280338 urb MsgDesc: 51 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g47<8,8,1>UD 0x02280538 urb MsgDesc: 83 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g47<8,8,1>UD 0x02280738 urb MsgDesc: 115 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g48<8,8,1>UD 0x02280348 urb MsgDesc: 52 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g48<8,8,1>UD 0x02280548 urb MsgDesc: 84 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g48<8,8,1>UD 0x02280748 urb MsgDesc: 116 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g49<8,8,1>UD 0x02280358 urb MsgDesc: 53 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g49<8,8,1>UD 0x02280558 urb MsgDesc: 85 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g49<8,8,1>UD 0x02280758 urb MsgDesc: 117 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g50<8,8,1>UD 0x02280368 urb MsgDesc: 54 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g50<8,8,1>UD 0x02280568 urb MsgDesc: 86 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g50<8,8,1>UD 0x02280768 urb MsgDesc: 118 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g53<8,8,1>UD 0x02280378 urb MsgDesc: 55 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g53<8,8,1>UD 0x02280578 urb MsgDesc: 87 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g53<8,8,1>UD 0x02280778 urb MsgDesc: 119 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g54<8,8,1>UD 0x02280388 urb MsgDesc: 56 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g54<8,8,1>UD 0x02280588 urb MsgDesc: 88 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g54<8,8,1>UD 0x02280788 urb MsgDesc: 120 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g55<8,8,1>UD 0x02280398 urb MsgDesc: 57 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g55<8,8,1>UD 0x02280598 urb MsgDesc: 89 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g55<8,8,1>UD 0x02280798 urb MsgDesc: 121 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g56<8,8,1>UD 0x022803a8 urb MsgDesc: 58 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g56<8,8,1>UD 0x022805a8 urb MsgDesc: 90 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g56<8,8,1>UD 0x022807a8 urb MsgDesc: 122 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g57<8,8,1>UD 0x022803b8 urb MsgDesc: 59 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g57<8,8,1>UD 0x022805b8 urb MsgDesc: 91 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g57<8,8,1>UD 0x022807b8 urb MsgDesc: 123 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g58<8,8,1>UD 0x022803c8 urb MsgDesc: 60 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g58<8,8,1>UD 0x022805c8 urb MsgDesc: 92 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g58<8,8,1>UD 0x022807c8 urb MsgDesc: 124 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g59<8,8,1>UD 0x022803d8 urb MsgDesc: 61 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g59<8,8,1>UD 0x022805d8 urb MsgDesc: 93 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g59<8,8,1>UD 0x022807d8 urb MsgDesc: 125 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g60<8,8,1>UD 0x022803e8 urb MsgDesc: 62 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g60<8,8,1>UD 0x022805e8 urb MsgDesc: 94 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g60<8,8,1>UD 0x022807e8 urb MsgDesc: 126 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g61<8,8,1>UD 0x022803f8 urb MsgDesc: 63 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g61<8,8,1>UD 0x022805f8 urb MsgDesc: 95 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g61<8,8,1>UD 0x022807f8 urb MsgDesc: 127 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g62<8,8,1>UD 0x02280408 urb MsgDesc: 64 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g62<8,8,1>UD 0x02280608 urb MsgDesc: 96 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g14<1>UD g62<8,8,1>UD 0x02280808 urb MsgDesc: 128 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g8<1>UD g63<8,8,1>UD 0x02280218 urb MsgDesc: 33 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g10<1>UD g63<8,8,1>UD 0x02280418 urb MsgDesc: 65 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g12<1>UD g63<8,8,1>UD 0x02280618 urb MsgDesc: 97 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g14<1>UD g63<8,8,1>UD 0x02280818 urb MsgDesc: 129 SIMD8 read mlen 1 rlen 2 { align1 1Q }; send(8) g29<1>UW g18<8,8,1>UD 0x04420008 sampler MsgDesc: sample SIMD8 Surface = 8 Sampler = 0 mlen 2 rlen 4 { align1 1Q }; send(8) g35<1>UW g18<8,8,1>UD 0x04420109 sampler MsgDesc: sample SIMD8 Surface = 9 Sampler = 1 mlen 2 rlen 4 { align1 1Q }; send(8) g41<1>UW g18<8,8,1>UD 0x0442020a sampler MsgDesc: sample SIMD8 Surface = 10 Sampler = 2 mlen 2 rlen 4 { align1 1Q }; send(8) g2<1>UW g18<8,8,1>UD 0x0442030b sampler MsgDesc: sample SIMD8 Surface = 11 Sampler = 3 mlen 2 rlen 4 { align1 1Q }; send(8) g6<1>UW g18<8,8,1>UD 0x0442040c sampler MsgDesc: sample SIMD8 Surface = 12 Sampler = 4 mlen 2 rlen 4 { align1 1Q }; send(8) g10<1>UW g18<8,8,1>UD 0x0442050d sampler MsgDesc: sample SIMD8 Surface = 13 Sampler = 5 mlen 2 rlen 4 { align1 1Q }; send(8) g14<1>UW g18<8,8,1>UD 0x0442060e sampler MsgDesc: sample SIMD8 Surface = 14 Sampler = 6 mlen 2 rlen 4 { align1 1Q }; send(8) g18<1>UW g18<8,8,1>UD 0x0442070f sampler MsgDesc: sample SIMD8 Surface = 15 Sampler = 7 mlen 2 rlen 4 { align1 1Q }; send(16) g32<1>UW g22<8,8,1>UD 0x08840008 sampler MsgDesc: sample SIMD16 Surface = 8 Sampler = 0 mlen 4 rlen 8 { align1 1H }; send(16) g42<1>UW g22<8,8,1>UD 0x08840109 sampler MsgDesc: sample SIMD16 Surface = 9 Sampler = 1 mlen 4 rlen 8 { align1 1H }; send(16) g60<1>UW g22<8,8,1>UD 0x0884020a sampler MsgDesc: sample SIMD16 Surface = 10 Sampler = 2 mlen 4 rlen 8 { align1 1H }; send(16) g70<1>UW g22<8,8,1>UD 0x0884030b sampler MsgDesc: sample SIMD16 Surface = 11 Sampler = 3 mlen 4 rlen 8 { align1 1H }; send(16) g78<1>UW g22<8,8,1>UD 0x0884040c sampler MsgDesc: sample SIMD16 Surface = 12 Sampler = 4 mlen 4 rlen 8 { align1 1H }; send(16) g86<1>UW g22<8,8,1>UD 0x0884050d sampler MsgDesc: sample SIMD16 Surface = 13 Sampler = 5 mlen 4 rlen 8 { align1 1H }; send(16) g94<1>UW g22<8,8,1>UD 0x0884060e sampler MsgDesc: sample SIMD16 Surface = 14 Sampler = 6 mlen 4 rlen 8 { align1 1H }; send(16) g52<1>UW g22<8,8,1>UD 0x0884070f sampler MsgDesc: sample SIMD16 Surface = 15 Sampler = 7 mlen 4 rlen 8 { align1 1H }; send(8) g16<1>UW g42<8,8,1>UD 0x04438101 sampler MsgDesc: sample_lz SIMD8 Surface = 1 Sampler = 1 mlen 2 rlen 4 { align1 1Q }; send(8) g20<1>UW g42<8,8,1>UD 0x04438202 sampler MsgDesc: sample_lz SIMD8 Surface = 2 Sampler = 2 mlen 2 rlen 4 { align1 1Q }; send(8) g29<1>UW g42<8,8,1>UD 0x04438404 sampler MsgDesc: sample_lz SIMD8 Surface = 4 Sampler = 4 mlen 2 rlen 4 { align1 1Q }; send(8) g38<1>UW g42<8,8,1>UD 0x04438606 sampler MsgDesc: sample_lz SIMD8 Surface = 6 Sampler = 6 mlen 2 rlen 4 { align1 1Q }; send(8) g124<1>UW g42<8,8,1>UD 0x04438707 sampler MsgDesc: sample_lz SIMD8 Surface = 7 Sampler = 7 mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g16<8,8,1>UD 0x044a0058 urb MsgDesc: 5 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a0068 urb MsgDesc: 6 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a0078 urb MsgDesc: 7 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a0088 urb MsgDesc: 8 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a0098 urb MsgDesc: 9 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a00a8 urb MsgDesc: 10 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a00b8 urb MsgDesc: 11 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a00c8 urb MsgDesc: 12 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a00d8 urb MsgDesc: 13 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a00e8 urb MsgDesc: 14 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a00f8 urb MsgDesc: 15 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a0108 urb MsgDesc: 16 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a0118 urb MsgDesc: 17 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a0158 urb MsgDesc: 21 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a0168 urb MsgDesc: 22 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a0178 urb MsgDesc: 23 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a0188 urb MsgDesc: 24 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a0198 urb MsgDesc: 25 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a01a8 urb MsgDesc: 26 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a01b8 urb MsgDesc: 27 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a01c8 urb MsgDesc: 28 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a01d8 urb MsgDesc: 29 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a01e8 urb MsgDesc: 30 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a01f8 urb MsgDesc: 31 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g12<1>UD g2<8,8,1>UD 0x044a0208 urb MsgDesc: 32 SIMD8 read per-slot mlen 2 rlen 4 { align1 1Q }; send(8) g14<1>UW g15<8,8,1>UD 0x0a125001 sampler MsgDesc: sample_b_c SIMD8 Surface = 1 Sampler = 0 mlen 5 rlen 1 { align1 1Q }; send(8) g15<1>UW g20<8,8,1>UD 0x0a125102 sampler MsgDesc: sample_b_c SIMD8 Surface = 2 Sampler = 1 mlen 5 rlen 1 { align1 1Q }; send(16) g41<1>UW g7<8,8,1>UD 0x14245001 sampler MsgDesc: sample_b_c SIMD16 Surface = 1 Sampler = 0 mlen 10 rlen 2 { align1 1H }; send(16) g43<1>UW g17<8,8,1>UD 0x14245102 sampler MsgDesc: sample_b_c SIMD16 Surface = 2 Sampler = 1 mlen 10 rlen 2 { align1 1H }; send(8) g2<1>UW g5<8,8,1>UD 0x06223001 sampler MsgDesc: sample_c SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 2 { align1 1Q }; send(16) g2<1>UW g7<8,8,1>UD 0x0c443001 sampler MsgDesc: sample_c SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 4 { align1 1H }; send(8) g2<1>UW g2<8,8,1>UD 0x06323001 sampler MsgDesc: sample_c SIMD8 Surface = 1 Sampler = 0 mlen 3 rlen 3 { align1 1Q }; send(16) g2<1>UW g24<8,8,1>UD 0x0c643001 sampler MsgDesc: sample_c SIMD16 Surface = 1 Sampler = 0 mlen 6 rlen 6 { align1 1H }; send(8) null<1>F g120<8,8,1>F 0x8c0a0117 urb MsgDesc: 17 SIMD8 write per-slot mlen 6 rlen 0 { align1 1Q EOT }; send(8) g11<1>UD g1<8,8,1>UD 0x02380128 urb MsgDesc: 18 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g1<8,8,1>UD 0x02380138 urb MsgDesc: 19 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g1<8,8,1>UD 0x02380148 urb MsgDesc: 20 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g1<8,8,1>UD 0x02380158 urb MsgDesc: 21 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g1<8,8,1>UD 0x02380168 urb MsgDesc: 22 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g1<8,8,1>UD 0x02380178 urb MsgDesc: 23 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g1<8,8,1>UD 0x02380188 urb MsgDesc: 24 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g1<8,8,1>UD 0x02380198 urb MsgDesc: 25 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g1<8,8,1>UD 0x023801a8 urb MsgDesc: 26 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g1<8,8,1>UD 0x023801b8 urb MsgDesc: 27 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g1<8,8,1>UD 0x023801c8 urb MsgDesc: 28 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g1<8,8,1>UD 0x023801d8 urb MsgDesc: 29 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g1<8,8,1>UD 0x023801e8 urb MsgDesc: 30 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g11<1>UD g1<8,8,1>UD 0x023801f8 urb MsgDesc: 31 SIMD8 read mlen 1 rlen 3 { align1 1Q }; send(8) g10<1>UW g2<8,8,1>UD 0x04420004 sampler MsgDesc: sample SIMD8 Surface = 4 Sampler = 0 mlen 2 rlen 4 { align1 1Q }; send(16) g18<1>UW g2<8,8,1>UD 0x08840004 sampler MsgDesc: sample SIMD16 Surface = 4 Sampler = 0 mlen 4 rlen 8 { align1 1H }; send(8) g10<1>UW g2<8,8,1>UD 0x04420003 sampler MsgDesc: sample SIMD8 Surface = 3 Sampler = 0 mlen 2 rlen 4 { align1 1Q }; send(16) g18<1>UW g2<8,8,1>UD 0x08840003 sampler MsgDesc: sample SIMD16 Surface = 3 Sampler = 0 mlen 4 rlen 8 { align1 1H }; send(8) g11<1>UD g13<8,8,1>UD 0x042a0058 urb MsgDesc: 5 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g11<8,8,1>UD 0x042a0068 urb MsgDesc: 6 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g11<8,8,1>UD 0x042a0078 urb MsgDesc: 7 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g11<8,8,1>UD 0x042a0088 urb MsgDesc: 8 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g11<8,8,1>UD 0x042a0098 urb MsgDesc: 9 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g11<8,8,1>UD 0x042a00a8 urb MsgDesc: 10 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g11<8,8,1>UD 0x042a00b8 urb MsgDesc: 11 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g11<8,8,1>UD 0x042a00c8 urb MsgDesc: 12 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g11<8,8,1>UD 0x042a00d8 urb MsgDesc: 13 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g11<8,8,1>UD 0x042a00e8 urb MsgDesc: 14 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g11<8,8,1>UD 0x042a00f8 urb MsgDesc: 15 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g11<8,8,1>UD 0x042a0108 urb MsgDesc: 16 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g11<8,8,1>UD 0x042a0118 urb MsgDesc: 17 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g3<8,8,1>UD 0x042a0158 urb MsgDesc: 21 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g3<8,8,1>UD 0x042a0168 urb MsgDesc: 22 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g3<8,8,1>UD 0x042a0178 urb MsgDesc: 23 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g3<8,8,1>UD 0x042a0188 urb MsgDesc: 24 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g3<8,8,1>UD 0x042a0198 urb MsgDesc: 25 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g3<8,8,1>UD 0x042a01a8 urb MsgDesc: 26 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g3<8,8,1>UD 0x042a01b8 urb MsgDesc: 27 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g3<8,8,1>UD 0x042a01c8 urb MsgDesc: 28 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g3<8,8,1>UD 0x042a01d8 urb MsgDesc: 29 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g3<8,8,1>UD 0x042a01e8 urb MsgDesc: 30 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g3<8,8,1>UD 0x042a01f8 urb MsgDesc: 31 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g2<1>UD g3<8,8,1>UD 0x042a0208 urb MsgDesc: 32 SIMD8 read per-slot mlen 2 rlen 2 { align1 1Q }; send(8) g9<1>UW g15<8,8,1>UD 0x021ab102 sampler MsgDesc: sampleinfo SIMD8 Surface = 2 Sampler = 1 mlen 1 rlen 1 { align1 1Q }; send(8) g10<1>UW g16<8,8,1>UD 0x021ab203 sampler MsgDesc: sampleinfo SIMD8 Surface = 3 Sampler = 2 mlen 1 rlen 1 { align1 1Q }; send(8) g11<1>UW g17<8,8,1>UD 0x021ab304 sampler MsgDesc: sampleinfo SIMD8 Surface = 4 Sampler = 3 mlen 1 rlen 1 { align1 1Q }; send(8) g12<1>UW g18<8,8,1>UD 0x021ab405 sampler MsgDesc: sampleinfo SIMD8 Surface = 5 Sampler = 4 mlen 1 rlen 1 { align1 1Q }; send(8) g13<1>UW g19<8,8,1>UD 0x021ab506 sampler MsgDesc: sampleinfo SIMD8 Surface = 6 Sampler = 5 mlen 1 rlen 1 { align1 1Q }; send(16) g14<1>UW g16<8,8,1>UD 0x022cb102 sampler MsgDesc: sampleinfo SIMD16 Surface = 2 Sampler = 1 mlen 1 rlen 2 { align1 1H }; send(16) g16<1>UW g18<8,8,1>UD 0x022cb203 sampler MsgDesc: sampleinfo SIMD16 Surface = 3 Sampler = 2 mlen 1 rlen 2 { align1 1H }; send(16) g18<1>UW g20<8,8,1>UD 0x022cb304 sampler MsgDesc: sampleinfo SIMD16 Surface = 4 Sampler = 3 mlen 1 rlen 2 { align1 1H }; send(16) g20<1>UW g22<8,8,1>UD 0x022cb405 sampler MsgDesc: sampleinfo SIMD16 Surface = 5 Sampler = 4 mlen 1 rlen 2 { align1 1H }; send(16) g22<1>UW g24<8,8,1>UD 0x022cb506 sampler MsgDesc: sampleinfo SIMD16 Surface = 6 Sampler = 5 mlen 1 rlen 2 { align1 1H }; send(8) g14<1>UW g11<8,8,1>UD 0x0a4b0203 sampler MsgDesc: gather4_c SIMD8 Surface = 3 Sampler = 2 mlen 5 rlen 4 { align1 1Q }; send(8) g18<1>UW g18<8,8,1>UD 0x0c4b0304 sampler MsgDesc: gather4_c SIMD8 Surface = 4 Sampler = 3 mlen 6 rlen 4 { align1 1Q }; send(8) g22<1>UW g24<8,8,1>UD 0x084b0405 sampler MsgDesc: gather4_c SIMD8 Surface = 5 Sampler = 4 mlen 4 rlen 4 { align1 1Q }; send(16) g18<1>UW g26<8,8,1>UD 0x128d0203 sampler MsgDesc: gather4_c SIMD16 Surface = 3 Sampler = 2 mlen 9 rlen 8 { align1 1H }; send(16) g26<1>UW g35<8,8,1>UD 0x168d0304 sampler MsgDesc: gather4_c SIMD16 Surface = 4 Sampler = 3 mlen 11 rlen 8 { align1 1H }; send(16) g34<1>UW g46<8,8,1>UD 0x0e8d0405 sampler MsgDesc: gather4_c SIMD16 Surface = 5 Sampler = 4 mlen 7 rlen 8 { align1 1H }; send(8) g124<1>UW g9<8,8,1>UD 0x0c4b0000 sampler MsgDesc: gather4_c SIMD8 Surface = 0 Sampler = 0 mlen 6 rlen 4 { align1 1Q };
79.850568
134
0.492186
3908161b3e6563e4995aaed9cab3d744b14b90e1
2,756
asm
Assembly
decreasoner.macosx/software/relsat-dist/gmp-3.1/mpn/x86/mod_1.asm
problem-frames/openpf
55100bd9cca61a182fc00cd3818bd59a6343ae6e
[ "BSD-3-Clause" ]
1
2019-05-03T20:03:11.000Z
2019-05-03T20:03:11.000Z
decreasoner.x86/software/relsat-dist/gmp-3.1/mpn/x86/mod_1.asm
problem-frames/openpf
55100bd9cca61a182fc00cd3818bd59a6343ae6e
[ "BSD-3-Clause" ]
null
null
null
decreasoner.x86/software/relsat-dist/gmp-3.1/mpn/x86/mod_1.asm
problem-frames/openpf
55100bd9cca61a182fc00cd3818bd59a6343ae6e
[ "BSD-3-Clause" ]
null
null
null
dnl x86 mpn_mod_1 -- mpn by limb remainder. dnl Copyright (C) 1999, 2000 Free Software Foundation, Inc. dnl dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redistribute it and/or dnl modify it under the terms of the GNU Lesser General Public License as dnl published by the Free Software Foundation; either version 2.1 of the dnl License, or (at your option) any later version. dnl dnl The GNU MP Library is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU dnl Lesser General Public License for more details. dnl dnl You should have received a copy of the GNU Lesser General Public dnl License along with the GNU MP Library; see the file COPYING.LIB. If dnl not, write to the Free Software Foundation, Inc., 59 Temple Place - dnl Suite 330, Boston, MA 02111-1307, USA. dnl cycles/limb dnl K6 20 dnl P5 44 dnl P6 39 dnl 486 approx 42 maybe dnl dnl The following have their own optimized mod_1 implementations, but for dnl reference the code here runs as follows. dnl dnl P6MMX 39 dnl K7 41 include(`../config.m4') C mp_limb_t mpn_mod_1 (mp_srcptr src, mp_size_t size, mp_limb_t divisor); C mp_limb_t mpn_mod_1c (mp_srcptr src, mp_size_t size, mp_limb_t divisor, C mp_limb_t carry); C C Divide src,size by divisor and return the remainder. The quotient is C discarded. C C See mpn/x86/divrem_1.asm for some comments. defframe(PARAM_CARRY, 16) defframe(PARAM_DIVISOR,12) defframe(PARAM_SIZE, 8) defframe(PARAM_SRC, 4) .text ALIGN(16) PROLOGUE(mpn_mod_1c) deflit(`FRAME',0) movl PARAM_SIZE, %ecx pushl %ebx FRAME_pushl() movl PARAM_SRC, %ebx pushl %esi FRAME_pushl() movl PARAM_DIVISOR, %esi orl %ecx, %ecx movl PARAM_CARRY, %edx jnz LF(mpn_mod_1,top) popl %esi movl %edx, %eax popl %ebx ret EPILOGUE() PROLOGUE(mpn_mod_1) deflit(`FRAME',0) movl PARAM_SIZE, %ecx pushl %ebx FRAME_pushl() movl PARAM_SRC, %ebx pushl %esi FRAME_pushl() orl %ecx, %ecx jz L(done_zero) movl PARAM_DIVISOR, %esi movl -4(%ebx,%ecx,4), %eax C src high limb cmpl %esi, %eax sbbl %edx, %edx C -1 if high<divisor addl %edx, %ecx C skip one division if high<divisor jz L(done_eax) andl %eax, %edx C carry if high<divisor L(top): C eax scratch (quotient) C ebx src C ecx counter C edx carry (remainder) C esi divisor C edi C ebp movl -4(%ebx,%ecx,4), %eax divl %esi loop_or_decljnz L(top) movl %edx, %eax L(done_eax): popl %esi popl %ebx ret L(done_zero): popl %esi xorl %eax, %eax popl %ebx ret EPILOGUE()
19.408451
74
0.708999
479a0b1c930b1051821cecb6b58e32b55f7dc809
344
asm
Assembly
libsrc/stdio/msx/fgetc_cons.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/stdio/msx/fgetc_cons.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/stdio/msx/fgetc_cons.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
; ; MSX C Library ; ; getkey() Wait for keypress ; ; Stefano Bodrato - Apr. 2001 ; ; ; $Id: fgetc_cons.asm,v 1.7 2015/01/19 01:33:20 pauloscustodio Exp $ ; PUBLIC fgetc_cons EXTERN msxbios IF FORmsx INCLUDE "msxbios.def" ELSE INCLUDE "svibios.def" ENDIF .fgetc_cons ld ix,CHGET call msxbios ld l,a ld h,0 ret
11.862069
68
0.648256
a0127bcad1458c9a4ec039053adefead92a6fe3a
8,255
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_713.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_713.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i3-7100_9_0x84_notsx.log_21829_713.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r14 push %r15 push %rcx push %rdi push %rdx push %rsi lea addresses_normal_ht+0x17ff7, %r15 nop nop nop nop sub %r11, %r11 movb (%r15), %dl and %r11, %r11 lea addresses_WT_ht+0x144df, %rsi lea addresses_A_ht+0x112f7, %rdi nop nop cmp %r14, %r14 mov $102, %rcx rep movsl nop nop nop nop nop xor %rcx, %rcx lea addresses_WC_ht+0x1e24b, %rsi lea addresses_UC_ht+0x108b7, %rdi nop nop nop nop and $9898, %r10 mov $121, %rcx rep movsb nop nop nop dec %r11 lea addresses_D_ht+0x14bf7, %rsi lea addresses_UC_ht+0x1a2f7, %rdi nop nop nop xor $7599, %r11 mov $85, %rcx rep movsl add %r14, %r14 lea addresses_D_ht+0x7857, %rsi lea addresses_A_ht+0xeff7, %rdi nop add %r10, %r10 mov $93, %rcx rep movsw nop nop nop nop inc %r10 lea addresses_WT_ht+0x16ef7, %rsi lea addresses_WC_ht+0x1cf7, %rdi nop nop cmp $50497, %r14 mov $89, %rcx rep movsl nop nop nop sub $54895, %r14 lea addresses_A_ht+0xf6f7, %r10 cmp $14979, %r11 mov (%r10), %di nop nop nop sub %r10, %r10 lea addresses_normal_ht+0x17db7, %rsi nop nop nop nop nop add %r11, %r11 movw $0x6162, (%rsi) nop cmp $6155, %r14 lea addresses_D_ht+0x1a2f7, %rdi nop nop nop nop and %r14, %r14 movups (%rdi), %xmm1 vpextrq $1, %xmm1, %rcx nop nop nop nop nop and %rdi, %rdi lea addresses_A_ht+0x1a549, %rsi lea addresses_normal_ht+0x1b77f, %rdi nop nop nop sub %rdx, %rdx mov $54, %rcx rep movsw nop nop nop nop nop add $58096, %r10 lea addresses_WT_ht+0x14db7, %rdi nop nop nop nop nop cmp %r14, %r14 movups (%rdi), %xmm1 vpextrq $0, %xmm1, %r10 nop nop nop nop sub $57576, %rsi lea addresses_WC_ht+0xe577, %rsi lea addresses_D_ht+0x13c5f, %rdi nop add %r11, %r11 mov $46, %rcx rep movsw nop nop sub %r15, %r15 lea addresses_UC_ht+0x129f7, %r14 nop nop nop xor %rdx, %rdx mov $0x6162636465666768, %r10 movq %r10, %xmm1 vmovups %ymm1, (%r14) nop nop nop sub %r14, %r14 lea addresses_normal_ht+0xb997, %rsi lea addresses_WT_ht+0x1492b, %rdi add %r10, %r10 mov $86, %rcx rep movsb nop cmp $64746, %rdi lea addresses_normal_ht+0x8cf7, %rdx nop nop nop nop dec %rcx movb (%rdx), %r15b nop nop nop nop cmp $9899, %rdi pop %rsi pop %rdx pop %rdi pop %rcx pop %r15 pop %r14 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r8 push %rbp push %rcx push %rdx push %rsi // Store lea addresses_A+0x1eeef, %rcx nop nop nop nop nop dec %r11 mov $0x5152535455565758, %r12 movq %r12, %xmm0 movups %xmm0, (%rcx) nop nop add %rbp, %rbp // Faulty Load lea addresses_normal+0x11af7, %rcx nop xor $6364, %rsi movaps (%rcx), %xmm6 vpextrq $0, %xmm6, %r8 lea oracles, %r12 and $0xff, %r8 shlq $12, %r8 mov (%r12,%r8,1), %r8 pop %rsi pop %rdx pop %rcx pop %rbp pop %r8 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_normal', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_A', 'same': False, 'size': 16, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_normal', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WC_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 5, 'same': True}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'congruent': 8, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 9, 'same': True}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'same': True, 'size': 2, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 6, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 16, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 0, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_WC_ht', 'congruent': 4, 'same': True}, 'dst': {'type': 'addresses_D_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 32, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
32.372549
2,999
0.660085
21ada23cf3716283c3b93b0a65579d03f5bc30c3
713,917
asm
Assembly
kernel.asm
airfield20/CIS450
6ec8200c4d86dd208586cf293eae66adf0692736
[ "MIT-0" ]
null
null
null
kernel.asm
airfield20/CIS450
6ec8200c4d86dd208586cf293eae66adf0692736
[ "MIT-0" ]
null
null
null
kernel.asm
airfield20/CIS450
6ec8200c4d86dd208586cf293eae66adf0692736
[ "MIT-0" ]
null
null
null
kernel: file format elf32-i386 Disassembly of section .text: 80100000 <multiboot_header>: 80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh 80100006: 00 00 add %al,(%eax) 80100008: fe 4f 52 decb 0x52(%edi) 8010000b: e4 .byte 0xe4 8010000c <entry>: # Entering xv6 on boot processor, with paging off. .globl entry entry: # Turn on page size extension for 4Mbyte pages movl %cr4, %eax 8010000c: 0f 20 e0 mov %cr4,%eax orl $(CR4_PSE), %eax 8010000f: 83 c8 10 or $0x10,%eax movl %eax, %cr4 80100012: 0f 22 e0 mov %eax,%cr4 # Set page directory movl $(V2P_WO(entrypgdir)), %eax 80100015: b8 00 b0 10 00 mov $0x10b000,%eax movl %eax, %cr3 8010001a: 0f 22 d8 mov %eax,%cr3 # Turn on paging. movl %cr0, %eax 8010001d: 0f 20 c0 mov %cr0,%eax orl $(CR0_PG|CR0_WP), %eax 80100020: 0d 00 00 01 80 or $0x80010000,%eax movl %eax, %cr0 80100025: 0f 22 c0 mov %eax,%cr0 # Set up the stack pointer. movl $(stack + KSTACKSIZE), %esp 80100028: bc 50 d6 10 80 mov $0x8010d650,%esp # Jump to main(), and switch to executing at # high addresses. The indirect call is needed because # the assembler produces a PC-relative instruction # for a direct jump. mov $main, %eax 8010002d: b8 8f 38 10 80 mov $0x8010388f,%eax jmp *%eax 80100032: ff e0 jmp *%eax 80100034 <binit>: struct buf head; } bcache; void binit(void) { 80100034: 55 push %ebp 80100035: 89 e5 mov %esp,%ebp 80100037: 83 ec 18 sub $0x18,%esp struct buf *b; initlock(&bcache.lock, "bcache"); 8010003a: 83 ec 08 sub $0x8,%esp 8010003d: 68 f0 89 10 80 push $0x801089f0 80100042: 68 60 d6 10 80 push $0x8010d660 80100047: e8 5d 54 00 00 call 801054a9 <initlock> 8010004c: 83 c4 10 add $0x10,%esp //PAGEBREAK! // Create linked list of buffers bcache.head.prev = &bcache.head; 8010004f: c7 05 70 15 11 80 64 movl $0x80111564,0x80111570 80100056: 15 11 80 bcache.head.next = &bcache.head; 80100059: c7 05 74 15 11 80 64 movl $0x80111564,0x80111574 80100060: 15 11 80 for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 80100063: c7 45 f4 94 d6 10 80 movl $0x8010d694,-0xc(%ebp) 8010006a: eb 3a jmp 801000a6 <binit+0x72> b->next = bcache.head.next; 8010006c: 8b 15 74 15 11 80 mov 0x80111574,%edx 80100072: 8b 45 f4 mov -0xc(%ebp),%eax 80100075: 89 50 10 mov %edx,0x10(%eax) b->prev = &bcache.head; 80100078: 8b 45 f4 mov -0xc(%ebp),%eax 8010007b: c7 40 0c 64 15 11 80 movl $0x80111564,0xc(%eax) b->dev = -1; 80100082: 8b 45 f4 mov -0xc(%ebp),%eax 80100085: c7 40 04 ff ff ff ff movl $0xffffffff,0x4(%eax) bcache.head.next->prev = b; 8010008c: a1 74 15 11 80 mov 0x80111574,%eax 80100091: 8b 55 f4 mov -0xc(%ebp),%edx 80100094: 89 50 0c mov %edx,0xc(%eax) bcache.head.next = b; 80100097: 8b 45 f4 mov -0xc(%ebp),%eax 8010009a: a3 74 15 11 80 mov %eax,0x80111574 //PAGEBREAK! // Create linked list of buffers bcache.head.prev = &bcache.head; bcache.head.next = &bcache.head; for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 8010009f: 81 45 f4 18 02 00 00 addl $0x218,-0xc(%ebp) 801000a6: b8 64 15 11 80 mov $0x80111564,%eax 801000ab: 39 45 f4 cmp %eax,-0xc(%ebp) 801000ae: 72 bc jb 8010006c <binit+0x38> b->prev = &bcache.head; b->dev = -1; bcache.head.next->prev = b; bcache.head.next = b; } } 801000b0: 90 nop 801000b1: c9 leave 801000b2: c3 ret 801000b3 <bget>: // Look through buffer cache for block on device dev. // If not found, allocate a buffer. // In either case, return B_BUSY buffer. static struct buf* bget(uint dev, uint blockno) { 801000b3: 55 push %ebp 801000b4: 89 e5 mov %esp,%ebp 801000b6: 83 ec 18 sub $0x18,%esp struct buf *b; acquire(&bcache.lock); 801000b9: 83 ec 0c sub $0xc,%esp 801000bc: 68 60 d6 10 80 push $0x8010d660 801000c1: e8 05 54 00 00 call 801054cb <acquire> 801000c6: 83 c4 10 add $0x10,%esp loop: // Is the block already cached? for(b = bcache.head.next; b != &bcache.head; b = b->next){ 801000c9: a1 74 15 11 80 mov 0x80111574,%eax 801000ce: 89 45 f4 mov %eax,-0xc(%ebp) 801000d1: eb 67 jmp 8010013a <bget+0x87> if(b->dev == dev && b->blockno == blockno){ 801000d3: 8b 45 f4 mov -0xc(%ebp),%eax 801000d6: 8b 40 04 mov 0x4(%eax),%eax 801000d9: 3b 45 08 cmp 0x8(%ebp),%eax 801000dc: 75 53 jne 80100131 <bget+0x7e> 801000de: 8b 45 f4 mov -0xc(%ebp),%eax 801000e1: 8b 40 08 mov 0x8(%eax),%eax 801000e4: 3b 45 0c cmp 0xc(%ebp),%eax 801000e7: 75 48 jne 80100131 <bget+0x7e> if(!(b->flags & B_BUSY)){ 801000e9: 8b 45 f4 mov -0xc(%ebp),%eax 801000ec: 8b 00 mov (%eax),%eax 801000ee: 83 e0 01 and $0x1,%eax 801000f1: 85 c0 test %eax,%eax 801000f3: 75 27 jne 8010011c <bget+0x69> b->flags |= B_BUSY; 801000f5: 8b 45 f4 mov -0xc(%ebp),%eax 801000f8: 8b 00 mov (%eax),%eax 801000fa: 83 c8 01 or $0x1,%eax 801000fd: 89 c2 mov %eax,%edx 801000ff: 8b 45 f4 mov -0xc(%ebp),%eax 80100102: 89 10 mov %edx,(%eax) release(&bcache.lock); 80100104: 83 ec 0c sub $0xc,%esp 80100107: 68 60 d6 10 80 push $0x8010d660 8010010c: e8 21 54 00 00 call 80105532 <release> 80100111: 83 c4 10 add $0x10,%esp return b; 80100114: 8b 45 f4 mov -0xc(%ebp),%eax 80100117: e9 98 00 00 00 jmp 801001b4 <bget+0x101> } sleep(b, &bcache.lock); 8010011c: 83 ec 08 sub $0x8,%esp 8010011f: 68 60 d6 10 80 push $0x8010d660 80100124: ff 75 f4 pushl -0xc(%ebp) 80100127: e8 9d 50 00 00 call 801051c9 <sleep> 8010012c: 83 c4 10 add $0x10,%esp goto loop; 8010012f: eb 98 jmp 801000c9 <bget+0x16> acquire(&bcache.lock); loop: // Is the block already cached? for(b = bcache.head.next; b != &bcache.head; b = b->next){ 80100131: 8b 45 f4 mov -0xc(%ebp),%eax 80100134: 8b 40 10 mov 0x10(%eax),%eax 80100137: 89 45 f4 mov %eax,-0xc(%ebp) 8010013a: 81 7d f4 64 15 11 80 cmpl $0x80111564,-0xc(%ebp) 80100141: 75 90 jne 801000d3 <bget+0x20> } // Not cached; recycle some non-busy and clean buffer. // "clean" because B_DIRTY and !B_BUSY means log.c // hasn't yet committed the changes to the buffer. for(b = bcache.head.prev; b != &bcache.head; b = b->prev){ 80100143: a1 70 15 11 80 mov 0x80111570,%eax 80100148: 89 45 f4 mov %eax,-0xc(%ebp) 8010014b: eb 51 jmp 8010019e <bget+0xeb> if((b->flags & B_BUSY) == 0 && (b->flags & B_DIRTY) == 0){ 8010014d: 8b 45 f4 mov -0xc(%ebp),%eax 80100150: 8b 00 mov (%eax),%eax 80100152: 83 e0 01 and $0x1,%eax 80100155: 85 c0 test %eax,%eax 80100157: 75 3c jne 80100195 <bget+0xe2> 80100159: 8b 45 f4 mov -0xc(%ebp),%eax 8010015c: 8b 00 mov (%eax),%eax 8010015e: 83 e0 04 and $0x4,%eax 80100161: 85 c0 test %eax,%eax 80100163: 75 30 jne 80100195 <bget+0xe2> b->dev = dev; 80100165: 8b 45 f4 mov -0xc(%ebp),%eax 80100168: 8b 55 08 mov 0x8(%ebp),%edx 8010016b: 89 50 04 mov %edx,0x4(%eax) b->blockno = blockno; 8010016e: 8b 45 f4 mov -0xc(%ebp),%eax 80100171: 8b 55 0c mov 0xc(%ebp),%edx 80100174: 89 50 08 mov %edx,0x8(%eax) b->flags = B_BUSY; 80100177: 8b 45 f4 mov -0xc(%ebp),%eax 8010017a: c7 00 01 00 00 00 movl $0x1,(%eax) release(&bcache.lock); 80100180: 83 ec 0c sub $0xc,%esp 80100183: 68 60 d6 10 80 push $0x8010d660 80100188: e8 a5 53 00 00 call 80105532 <release> 8010018d: 83 c4 10 add $0x10,%esp return b; 80100190: 8b 45 f4 mov -0xc(%ebp),%eax 80100193: eb 1f jmp 801001b4 <bget+0x101> } // Not cached; recycle some non-busy and clean buffer. // "clean" because B_DIRTY and !B_BUSY means log.c // hasn't yet committed the changes to the buffer. for(b = bcache.head.prev; b != &bcache.head; b = b->prev){ 80100195: 8b 45 f4 mov -0xc(%ebp),%eax 80100198: 8b 40 0c mov 0xc(%eax),%eax 8010019b: 89 45 f4 mov %eax,-0xc(%ebp) 8010019e: 81 7d f4 64 15 11 80 cmpl $0x80111564,-0xc(%ebp) 801001a5: 75 a6 jne 8010014d <bget+0x9a> b->flags = B_BUSY; release(&bcache.lock); return b; } } panic("bget: no buffers"); 801001a7: 83 ec 0c sub $0xc,%esp 801001aa: 68 f7 89 10 80 push $0x801089f7 801001af: e8 b2 03 00 00 call 80100566 <panic> } 801001b4: c9 leave 801001b5: c3 ret 801001b6 <bread>: // Return a B_BUSY buf with the contents of the indicated block. struct buf* bread(uint dev, uint blockno) { 801001b6: 55 push %ebp 801001b7: 89 e5 mov %esp,%ebp 801001b9: 83 ec 18 sub $0x18,%esp struct buf *b; b = bget(dev, blockno); 801001bc: 83 ec 08 sub $0x8,%esp 801001bf: ff 75 0c pushl 0xc(%ebp) 801001c2: ff 75 08 pushl 0x8(%ebp) 801001c5: e8 e9 fe ff ff call 801000b3 <bget> 801001ca: 83 c4 10 add $0x10,%esp 801001cd: 89 45 f4 mov %eax,-0xc(%ebp) if(!(b->flags & B_VALID)) { 801001d0: 8b 45 f4 mov -0xc(%ebp),%eax 801001d3: 8b 00 mov (%eax),%eax 801001d5: 83 e0 02 and $0x2,%eax 801001d8: 85 c0 test %eax,%eax 801001da: 75 0e jne 801001ea <bread+0x34> iderw(b); 801001dc: 83 ec 0c sub $0xc,%esp 801001df: ff 75 f4 pushl -0xc(%ebp) 801001e2: e8 26 27 00 00 call 8010290d <iderw> 801001e7: 83 c4 10 add $0x10,%esp } return b; 801001ea: 8b 45 f4 mov -0xc(%ebp),%eax } 801001ed: c9 leave 801001ee: c3 ret 801001ef <bwrite>: // Write b's contents to disk. Must be B_BUSY. void bwrite(struct buf *b) { 801001ef: 55 push %ebp 801001f0: 89 e5 mov %esp,%ebp 801001f2: 83 ec 08 sub $0x8,%esp if((b->flags & B_BUSY) == 0) 801001f5: 8b 45 08 mov 0x8(%ebp),%eax 801001f8: 8b 00 mov (%eax),%eax 801001fa: 83 e0 01 and $0x1,%eax 801001fd: 85 c0 test %eax,%eax 801001ff: 75 0d jne 8010020e <bwrite+0x1f> panic("bwrite"); 80100201: 83 ec 0c sub $0xc,%esp 80100204: 68 08 8a 10 80 push $0x80108a08 80100209: e8 58 03 00 00 call 80100566 <panic> b->flags |= B_DIRTY; 8010020e: 8b 45 08 mov 0x8(%ebp),%eax 80100211: 8b 00 mov (%eax),%eax 80100213: 83 c8 04 or $0x4,%eax 80100216: 89 c2 mov %eax,%edx 80100218: 8b 45 08 mov 0x8(%ebp),%eax 8010021b: 89 10 mov %edx,(%eax) iderw(b); 8010021d: 83 ec 0c sub $0xc,%esp 80100220: ff 75 08 pushl 0x8(%ebp) 80100223: e8 e5 26 00 00 call 8010290d <iderw> 80100228: 83 c4 10 add $0x10,%esp } 8010022b: 90 nop 8010022c: c9 leave 8010022d: c3 ret 8010022e <brelse>: // Release a B_BUSY buffer. // Move to the head of the MRU list. void brelse(struct buf *b) { 8010022e: 55 push %ebp 8010022f: 89 e5 mov %esp,%ebp 80100231: 83 ec 08 sub $0x8,%esp if((b->flags & B_BUSY) == 0) 80100234: 8b 45 08 mov 0x8(%ebp),%eax 80100237: 8b 00 mov (%eax),%eax 80100239: 83 e0 01 and $0x1,%eax 8010023c: 85 c0 test %eax,%eax 8010023e: 75 0d jne 8010024d <brelse+0x1f> panic("brelse"); 80100240: 83 ec 0c sub $0xc,%esp 80100243: 68 0f 8a 10 80 push $0x80108a0f 80100248: e8 19 03 00 00 call 80100566 <panic> acquire(&bcache.lock); 8010024d: 83 ec 0c sub $0xc,%esp 80100250: 68 60 d6 10 80 push $0x8010d660 80100255: e8 71 52 00 00 call 801054cb <acquire> 8010025a: 83 c4 10 add $0x10,%esp b->next->prev = b->prev; 8010025d: 8b 45 08 mov 0x8(%ebp),%eax 80100260: 8b 40 10 mov 0x10(%eax),%eax 80100263: 8b 55 08 mov 0x8(%ebp),%edx 80100266: 8b 52 0c mov 0xc(%edx),%edx 80100269: 89 50 0c mov %edx,0xc(%eax) b->prev->next = b->next; 8010026c: 8b 45 08 mov 0x8(%ebp),%eax 8010026f: 8b 40 0c mov 0xc(%eax),%eax 80100272: 8b 55 08 mov 0x8(%ebp),%edx 80100275: 8b 52 10 mov 0x10(%edx),%edx 80100278: 89 50 10 mov %edx,0x10(%eax) b->next = bcache.head.next; 8010027b: 8b 15 74 15 11 80 mov 0x80111574,%edx 80100281: 8b 45 08 mov 0x8(%ebp),%eax 80100284: 89 50 10 mov %edx,0x10(%eax) b->prev = &bcache.head; 80100287: 8b 45 08 mov 0x8(%ebp),%eax 8010028a: c7 40 0c 64 15 11 80 movl $0x80111564,0xc(%eax) bcache.head.next->prev = b; 80100291: a1 74 15 11 80 mov 0x80111574,%eax 80100296: 8b 55 08 mov 0x8(%ebp),%edx 80100299: 89 50 0c mov %edx,0xc(%eax) bcache.head.next = b; 8010029c: 8b 45 08 mov 0x8(%ebp),%eax 8010029f: a3 74 15 11 80 mov %eax,0x80111574 b->flags &= ~B_BUSY; 801002a4: 8b 45 08 mov 0x8(%ebp),%eax 801002a7: 8b 00 mov (%eax),%eax 801002a9: 83 e0 fe and $0xfffffffe,%eax 801002ac: 89 c2 mov %eax,%edx 801002ae: 8b 45 08 mov 0x8(%ebp),%eax 801002b1: 89 10 mov %edx,(%eax) wakeup(b); 801002b3: 83 ec 0c sub $0xc,%esp 801002b6: ff 75 08 pushl 0x8(%ebp) 801002b9: e8 f9 4f 00 00 call 801052b7 <wakeup> 801002be: 83 c4 10 add $0x10,%esp release(&bcache.lock); 801002c1: 83 ec 0c sub $0xc,%esp 801002c4: 68 60 d6 10 80 push $0x8010d660 801002c9: e8 64 52 00 00 call 80105532 <release> 801002ce: 83 c4 10 add $0x10,%esp } 801002d1: 90 nop 801002d2: c9 leave 801002d3: c3 ret 801002d4 <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 801002d4: 55 push %ebp 801002d5: 89 e5 mov %esp,%ebp 801002d7: 83 ec 14 sub $0x14,%esp 801002da: 8b 45 08 mov 0x8(%ebp),%eax 801002dd: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801002e1: 0f b7 45 ec movzwl -0x14(%ebp),%eax 801002e5: 89 c2 mov %eax,%edx 801002e7: ec in (%dx),%al 801002e8: 88 45 ff mov %al,-0x1(%ebp) return data; 801002eb: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 801002ef: c9 leave 801002f0: c3 ret 801002f1 <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 801002f1: 55 push %ebp 801002f2: 89 e5 mov %esp,%ebp 801002f4: 83 ec 08 sub $0x8,%esp 801002f7: 8b 55 08 mov 0x8(%ebp),%edx 801002fa: 8b 45 0c mov 0xc(%ebp),%eax 801002fd: 66 89 55 fc mov %dx,-0x4(%ebp) 80100301: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80100304: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80100308: 0f b7 55 fc movzwl -0x4(%ebp),%edx 8010030c: ee out %al,(%dx) } 8010030d: 90 nop 8010030e: c9 leave 8010030f: c3 ret 80100310 <cli>: asm volatile("movw %0, %%gs" : : "r" (v)); } static inline void cli(void) { 80100310: 55 push %ebp 80100311: 89 e5 mov %esp,%ebp asm volatile("cli"); 80100313: fa cli } 80100314: 90 nop 80100315: 5d pop %ebp 80100316: c3 ret 80100317 <printint>: int locking; } cons; static void printint(int xx, int base, int sign) { 80100317: 55 push %ebp 80100318: 89 e5 mov %esp,%ebp 8010031a: 53 push %ebx 8010031b: 83 ec 24 sub $0x24,%esp static char digits[] = "0123456789abcdef"; char buf[16]; int i; uint x; if(sign && (sign = xx < 0)) 8010031e: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80100322: 74 1c je 80100340 <printint+0x29> 80100324: 8b 45 08 mov 0x8(%ebp),%eax 80100327: c1 e8 1f shr $0x1f,%eax 8010032a: 0f b6 c0 movzbl %al,%eax 8010032d: 89 45 10 mov %eax,0x10(%ebp) 80100330: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80100334: 74 0a je 80100340 <printint+0x29> x = -xx; 80100336: 8b 45 08 mov 0x8(%ebp),%eax 80100339: f7 d8 neg %eax 8010033b: 89 45 f0 mov %eax,-0x10(%ebp) 8010033e: eb 06 jmp 80100346 <printint+0x2f> else x = xx; 80100340: 8b 45 08 mov 0x8(%ebp),%eax 80100343: 89 45 f0 mov %eax,-0x10(%ebp) i = 0; 80100346: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) do{ buf[i++] = digits[x % base]; 8010034d: 8b 4d f4 mov -0xc(%ebp),%ecx 80100350: 8d 41 01 lea 0x1(%ecx),%eax 80100353: 89 45 f4 mov %eax,-0xc(%ebp) 80100356: 8b 5d 0c mov 0xc(%ebp),%ebx 80100359: 8b 45 f0 mov -0x10(%ebp),%eax 8010035c: ba 00 00 00 00 mov $0x0,%edx 80100361: f7 f3 div %ebx 80100363: 89 d0 mov %edx,%eax 80100365: 0f b6 80 04 a0 10 80 movzbl -0x7fef5ffc(%eax),%eax 8010036c: 88 44 0d e0 mov %al,-0x20(%ebp,%ecx,1) }while((x /= base) != 0); 80100370: 8b 5d 0c mov 0xc(%ebp),%ebx 80100373: 8b 45 f0 mov -0x10(%ebp),%eax 80100376: ba 00 00 00 00 mov $0x0,%edx 8010037b: f7 f3 div %ebx 8010037d: 89 45 f0 mov %eax,-0x10(%ebp) 80100380: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80100384: 75 c7 jne 8010034d <printint+0x36> if(sign) 80100386: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 8010038a: 74 2a je 801003b6 <printint+0x9f> buf[i++] = '-'; 8010038c: 8b 45 f4 mov -0xc(%ebp),%eax 8010038f: 8d 50 01 lea 0x1(%eax),%edx 80100392: 89 55 f4 mov %edx,-0xc(%ebp) 80100395: c6 44 05 e0 2d movb $0x2d,-0x20(%ebp,%eax,1) while(--i >= 0) 8010039a: eb 1a jmp 801003b6 <printint+0x9f> consputc(buf[i]); 8010039c: 8d 55 e0 lea -0x20(%ebp),%edx 8010039f: 8b 45 f4 mov -0xc(%ebp),%eax 801003a2: 01 d0 add %edx,%eax 801003a4: 0f b6 00 movzbl (%eax),%eax 801003a7: 0f be c0 movsbl %al,%eax 801003aa: 83 ec 0c sub $0xc,%esp 801003ad: 50 push %eax 801003ae: e8 df 03 00 00 call 80100792 <consputc> 801003b3: 83 c4 10 add $0x10,%esp }while((x /= base) != 0); if(sign) buf[i++] = '-'; while(--i >= 0) 801003b6: 83 6d f4 01 subl $0x1,-0xc(%ebp) 801003ba: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801003be: 79 dc jns 8010039c <printint+0x85> consputc(buf[i]); } 801003c0: 90 nop 801003c1: 8b 5d fc mov -0x4(%ebp),%ebx 801003c4: c9 leave 801003c5: c3 ret 801003c6 <cprintf>: //PAGEBREAK: 50 // Print to the console. only understands %d, %x, %p, %s. void cprintf(char *fmt, ...) { 801003c6: 55 push %ebp 801003c7: 89 e5 mov %esp,%ebp 801003c9: 83 ec 28 sub $0x28,%esp int i, c, locking; uint *argp; char *s; locking = cons.locking; 801003cc: a1 f4 c5 10 80 mov 0x8010c5f4,%eax 801003d1: 89 45 e8 mov %eax,-0x18(%ebp) if(locking) 801003d4: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 801003d8: 74 10 je 801003ea <cprintf+0x24> acquire(&cons.lock); 801003da: 83 ec 0c sub $0xc,%esp 801003dd: 68 c0 c5 10 80 push $0x8010c5c0 801003e2: e8 e4 50 00 00 call 801054cb <acquire> 801003e7: 83 c4 10 add $0x10,%esp if (fmt == 0) 801003ea: 8b 45 08 mov 0x8(%ebp),%eax 801003ed: 85 c0 test %eax,%eax 801003ef: 75 0d jne 801003fe <cprintf+0x38> panic("null fmt"); 801003f1: 83 ec 0c sub $0xc,%esp 801003f4: 68 16 8a 10 80 push $0x80108a16 801003f9: e8 68 01 00 00 call 80100566 <panic> argp = (uint*)(void*)(&fmt + 1); 801003fe: 8d 45 0c lea 0xc(%ebp),%eax 80100401: 89 45 f0 mov %eax,-0x10(%ebp) for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 80100404: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 8010040b: e9 1a 01 00 00 jmp 8010052a <cprintf+0x164> if(c != '%'){ 80100410: 83 7d e4 25 cmpl $0x25,-0x1c(%ebp) 80100414: 74 13 je 80100429 <cprintf+0x63> consputc(c); 80100416: 83 ec 0c sub $0xc,%esp 80100419: ff 75 e4 pushl -0x1c(%ebp) 8010041c: e8 71 03 00 00 call 80100792 <consputc> 80100421: 83 c4 10 add $0x10,%esp continue; 80100424: e9 fd 00 00 00 jmp 80100526 <cprintf+0x160> } c = fmt[++i] & 0xff; 80100429: 8b 55 08 mov 0x8(%ebp),%edx 8010042c: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80100430: 8b 45 f4 mov -0xc(%ebp),%eax 80100433: 01 d0 add %edx,%eax 80100435: 0f b6 00 movzbl (%eax),%eax 80100438: 0f be c0 movsbl %al,%eax 8010043b: 25 ff 00 00 00 and $0xff,%eax 80100440: 89 45 e4 mov %eax,-0x1c(%ebp) if(c == 0) 80100443: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 80100447: 0f 84 ff 00 00 00 je 8010054c <cprintf+0x186> break; switch(c){ 8010044d: 8b 45 e4 mov -0x1c(%ebp),%eax 80100450: 83 f8 70 cmp $0x70,%eax 80100453: 74 47 je 8010049c <cprintf+0xd6> 80100455: 83 f8 70 cmp $0x70,%eax 80100458: 7f 13 jg 8010046d <cprintf+0xa7> 8010045a: 83 f8 25 cmp $0x25,%eax 8010045d: 0f 84 98 00 00 00 je 801004fb <cprintf+0x135> 80100463: 83 f8 64 cmp $0x64,%eax 80100466: 74 14 je 8010047c <cprintf+0xb6> 80100468: e9 9d 00 00 00 jmp 8010050a <cprintf+0x144> 8010046d: 83 f8 73 cmp $0x73,%eax 80100470: 74 47 je 801004b9 <cprintf+0xf3> 80100472: 83 f8 78 cmp $0x78,%eax 80100475: 74 25 je 8010049c <cprintf+0xd6> 80100477: e9 8e 00 00 00 jmp 8010050a <cprintf+0x144> case 'd': printint(*argp++, 10, 1); 8010047c: 8b 45 f0 mov -0x10(%ebp),%eax 8010047f: 8d 50 04 lea 0x4(%eax),%edx 80100482: 89 55 f0 mov %edx,-0x10(%ebp) 80100485: 8b 00 mov (%eax),%eax 80100487: 83 ec 04 sub $0x4,%esp 8010048a: 6a 01 push $0x1 8010048c: 6a 0a push $0xa 8010048e: 50 push %eax 8010048f: e8 83 fe ff ff call 80100317 <printint> 80100494: 83 c4 10 add $0x10,%esp break; 80100497: e9 8a 00 00 00 jmp 80100526 <cprintf+0x160> case 'x': case 'p': printint(*argp++, 16, 0); 8010049c: 8b 45 f0 mov -0x10(%ebp),%eax 8010049f: 8d 50 04 lea 0x4(%eax),%edx 801004a2: 89 55 f0 mov %edx,-0x10(%ebp) 801004a5: 8b 00 mov (%eax),%eax 801004a7: 83 ec 04 sub $0x4,%esp 801004aa: 6a 00 push $0x0 801004ac: 6a 10 push $0x10 801004ae: 50 push %eax 801004af: e8 63 fe ff ff call 80100317 <printint> 801004b4: 83 c4 10 add $0x10,%esp break; 801004b7: eb 6d jmp 80100526 <cprintf+0x160> case 's': if((s = (char*)*argp++) == 0) 801004b9: 8b 45 f0 mov -0x10(%ebp),%eax 801004bc: 8d 50 04 lea 0x4(%eax),%edx 801004bf: 89 55 f0 mov %edx,-0x10(%ebp) 801004c2: 8b 00 mov (%eax),%eax 801004c4: 89 45 ec mov %eax,-0x14(%ebp) 801004c7: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 801004cb: 75 22 jne 801004ef <cprintf+0x129> s = "(null)"; 801004cd: c7 45 ec 1f 8a 10 80 movl $0x80108a1f,-0x14(%ebp) for(; *s; s++) 801004d4: eb 19 jmp 801004ef <cprintf+0x129> consputc(*s); 801004d6: 8b 45 ec mov -0x14(%ebp),%eax 801004d9: 0f b6 00 movzbl (%eax),%eax 801004dc: 0f be c0 movsbl %al,%eax 801004df: 83 ec 0c sub $0xc,%esp 801004e2: 50 push %eax 801004e3: e8 aa 02 00 00 call 80100792 <consputc> 801004e8: 83 c4 10 add $0x10,%esp printint(*argp++, 16, 0); break; case 's': if((s = (char*)*argp++) == 0) s = "(null)"; for(; *s; s++) 801004eb: 83 45 ec 01 addl $0x1,-0x14(%ebp) 801004ef: 8b 45 ec mov -0x14(%ebp),%eax 801004f2: 0f b6 00 movzbl (%eax),%eax 801004f5: 84 c0 test %al,%al 801004f7: 75 dd jne 801004d6 <cprintf+0x110> consputc(*s); break; 801004f9: eb 2b jmp 80100526 <cprintf+0x160> case '%': consputc('%'); 801004fb: 83 ec 0c sub $0xc,%esp 801004fe: 6a 25 push $0x25 80100500: e8 8d 02 00 00 call 80100792 <consputc> 80100505: 83 c4 10 add $0x10,%esp break; 80100508: eb 1c jmp 80100526 <cprintf+0x160> default: // Print unknown % sequence to draw attention. consputc('%'); 8010050a: 83 ec 0c sub $0xc,%esp 8010050d: 6a 25 push $0x25 8010050f: e8 7e 02 00 00 call 80100792 <consputc> 80100514: 83 c4 10 add $0x10,%esp consputc(c); 80100517: 83 ec 0c sub $0xc,%esp 8010051a: ff 75 e4 pushl -0x1c(%ebp) 8010051d: e8 70 02 00 00 call 80100792 <consputc> 80100522: 83 c4 10 add $0x10,%esp break; 80100525: 90 nop if (fmt == 0) panic("null fmt"); argp = (uint*)(void*)(&fmt + 1); for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 80100526: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010052a: 8b 55 08 mov 0x8(%ebp),%edx 8010052d: 8b 45 f4 mov -0xc(%ebp),%eax 80100530: 01 d0 add %edx,%eax 80100532: 0f b6 00 movzbl (%eax),%eax 80100535: 0f be c0 movsbl %al,%eax 80100538: 25 ff 00 00 00 and $0xff,%eax 8010053d: 89 45 e4 mov %eax,-0x1c(%ebp) 80100540: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 80100544: 0f 85 c6 fe ff ff jne 80100410 <cprintf+0x4a> 8010054a: eb 01 jmp 8010054d <cprintf+0x187> consputc(c); continue; } c = fmt[++i] & 0xff; if(c == 0) break; 8010054c: 90 nop consputc(c); break; } } if(locking) 8010054d: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 80100551: 74 10 je 80100563 <cprintf+0x19d> release(&cons.lock); 80100553: 83 ec 0c sub $0xc,%esp 80100556: 68 c0 c5 10 80 push $0x8010c5c0 8010055b: e8 d2 4f 00 00 call 80105532 <release> 80100560: 83 c4 10 add $0x10,%esp } 80100563: 90 nop 80100564: c9 leave 80100565: c3 ret 80100566 <panic>: void panic(char *s) { 80100566: 55 push %ebp 80100567: 89 e5 mov %esp,%ebp 80100569: 83 ec 38 sub $0x38,%esp int i; uint pcs[10]; cli(); 8010056c: e8 9f fd ff ff call 80100310 <cli> cons.locking = 0; 80100571: c7 05 f4 c5 10 80 00 movl $0x0,0x8010c5f4 80100578: 00 00 00 cprintf("cpu%d: panic: ", cpu->id); 8010057b: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80100581: 0f b6 00 movzbl (%eax),%eax 80100584: 0f b6 c0 movzbl %al,%eax 80100587: 83 ec 08 sub $0x8,%esp 8010058a: 50 push %eax 8010058b: 68 26 8a 10 80 push $0x80108a26 80100590: e8 31 fe ff ff call 801003c6 <cprintf> 80100595: 83 c4 10 add $0x10,%esp cprintf(s); 80100598: 8b 45 08 mov 0x8(%ebp),%eax 8010059b: 83 ec 0c sub $0xc,%esp 8010059e: 50 push %eax 8010059f: e8 22 fe ff ff call 801003c6 <cprintf> 801005a4: 83 c4 10 add $0x10,%esp cprintf("\n"); 801005a7: 83 ec 0c sub $0xc,%esp 801005aa: 68 35 8a 10 80 push $0x80108a35 801005af: e8 12 fe ff ff call 801003c6 <cprintf> 801005b4: 83 c4 10 add $0x10,%esp getcallerpcs(&s, pcs); 801005b7: 83 ec 08 sub $0x8,%esp 801005ba: 8d 45 cc lea -0x34(%ebp),%eax 801005bd: 50 push %eax 801005be: 8d 45 08 lea 0x8(%ebp),%eax 801005c1: 50 push %eax 801005c2: e8 bd 4f 00 00 call 80105584 <getcallerpcs> 801005c7: 83 c4 10 add $0x10,%esp for(i=0; i<10; i++) 801005ca: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801005d1: eb 1c jmp 801005ef <panic+0x89> cprintf(" %p", pcs[i]); 801005d3: 8b 45 f4 mov -0xc(%ebp),%eax 801005d6: 8b 44 85 cc mov -0x34(%ebp,%eax,4),%eax 801005da: 83 ec 08 sub $0x8,%esp 801005dd: 50 push %eax 801005de: 68 37 8a 10 80 push $0x80108a37 801005e3: e8 de fd ff ff call 801003c6 <cprintf> 801005e8: 83 c4 10 add $0x10,%esp cons.locking = 0; cprintf("cpu%d: panic: ", cpu->id); cprintf(s); cprintf("\n"); getcallerpcs(&s, pcs); for(i=0; i<10; i++) 801005eb: 83 45 f4 01 addl $0x1,-0xc(%ebp) 801005ef: 83 7d f4 09 cmpl $0x9,-0xc(%ebp) 801005f3: 7e de jle 801005d3 <panic+0x6d> cprintf(" %p", pcs[i]); panicked = 1; // freeze other CPU 801005f5: c7 05 a0 c5 10 80 01 movl $0x1,0x8010c5a0 801005fc: 00 00 00 for(;;) ; 801005ff: eb fe jmp 801005ff <panic+0x99> 80100601 <cgaputc>: #define CRTPORT 0x3d4 static ushort *crt = (ushort*)P2V(0xb8000); // CGA memory static void cgaputc(int c) { 80100601: 55 push %ebp 80100602: 89 e5 mov %esp,%ebp 80100604: 83 ec 18 sub $0x18,%esp int pos; // Cursor position: col + 80*row. outb(CRTPORT, 14); 80100607: 6a 0e push $0xe 80100609: 68 d4 03 00 00 push $0x3d4 8010060e: e8 de fc ff ff call 801002f1 <outb> 80100613: 83 c4 08 add $0x8,%esp pos = inb(CRTPORT+1) << 8; 80100616: 68 d5 03 00 00 push $0x3d5 8010061b: e8 b4 fc ff ff call 801002d4 <inb> 80100620: 83 c4 04 add $0x4,%esp 80100623: 0f b6 c0 movzbl %al,%eax 80100626: c1 e0 08 shl $0x8,%eax 80100629: 89 45 f4 mov %eax,-0xc(%ebp) outb(CRTPORT, 15); 8010062c: 6a 0f push $0xf 8010062e: 68 d4 03 00 00 push $0x3d4 80100633: e8 b9 fc ff ff call 801002f1 <outb> 80100638: 83 c4 08 add $0x8,%esp pos |= inb(CRTPORT+1); 8010063b: 68 d5 03 00 00 push $0x3d5 80100640: e8 8f fc ff ff call 801002d4 <inb> 80100645: 83 c4 04 add $0x4,%esp 80100648: 0f b6 c0 movzbl %al,%eax 8010064b: 09 45 f4 or %eax,-0xc(%ebp) if(c == '\n') 8010064e: 83 7d 08 0a cmpl $0xa,0x8(%ebp) 80100652: 75 30 jne 80100684 <cgaputc+0x83> pos += 80 - pos%80; 80100654: 8b 4d f4 mov -0xc(%ebp),%ecx 80100657: ba 67 66 66 66 mov $0x66666667,%edx 8010065c: 89 c8 mov %ecx,%eax 8010065e: f7 ea imul %edx 80100660: c1 fa 05 sar $0x5,%edx 80100663: 89 c8 mov %ecx,%eax 80100665: c1 f8 1f sar $0x1f,%eax 80100668: 29 c2 sub %eax,%edx 8010066a: 89 d0 mov %edx,%eax 8010066c: c1 e0 02 shl $0x2,%eax 8010066f: 01 d0 add %edx,%eax 80100671: c1 e0 04 shl $0x4,%eax 80100674: 29 c1 sub %eax,%ecx 80100676: 89 ca mov %ecx,%edx 80100678: b8 50 00 00 00 mov $0x50,%eax 8010067d: 29 d0 sub %edx,%eax 8010067f: 01 45 f4 add %eax,-0xc(%ebp) 80100682: eb 34 jmp 801006b8 <cgaputc+0xb7> else if(c == BACKSPACE){ 80100684: 81 7d 08 00 01 00 00 cmpl $0x100,0x8(%ebp) 8010068b: 75 0c jne 80100699 <cgaputc+0x98> if(pos > 0) --pos; 8010068d: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80100691: 7e 25 jle 801006b8 <cgaputc+0xb7> 80100693: 83 6d f4 01 subl $0x1,-0xc(%ebp) 80100697: eb 1f jmp 801006b8 <cgaputc+0xb7> } else crt[pos++] = (c&0xff) | 0x0700; // black on white 80100699: 8b 0d 00 a0 10 80 mov 0x8010a000,%ecx 8010069f: 8b 45 f4 mov -0xc(%ebp),%eax 801006a2: 8d 50 01 lea 0x1(%eax),%edx 801006a5: 89 55 f4 mov %edx,-0xc(%ebp) 801006a8: 01 c0 add %eax,%eax 801006aa: 01 c8 add %ecx,%eax 801006ac: 8b 55 08 mov 0x8(%ebp),%edx 801006af: 0f b6 d2 movzbl %dl,%edx 801006b2: 80 ce 07 or $0x7,%dh 801006b5: 66 89 10 mov %dx,(%eax) if(pos < 0 || pos > 25*80) 801006b8: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801006bc: 78 09 js 801006c7 <cgaputc+0xc6> 801006be: 81 7d f4 d0 07 00 00 cmpl $0x7d0,-0xc(%ebp) 801006c5: 7e 0d jle 801006d4 <cgaputc+0xd3> panic("pos under/overflow"); 801006c7: 83 ec 0c sub $0xc,%esp 801006ca: 68 3b 8a 10 80 push $0x80108a3b 801006cf: e8 92 fe ff ff call 80100566 <panic> if((pos/80) >= 24){ // Scroll up. 801006d4: 81 7d f4 7f 07 00 00 cmpl $0x77f,-0xc(%ebp) 801006db: 7e 4c jle 80100729 <cgaputc+0x128> memmove(crt, crt+80, sizeof(crt[0])*23*80); 801006dd: a1 00 a0 10 80 mov 0x8010a000,%eax 801006e2: 8d 90 a0 00 00 00 lea 0xa0(%eax),%edx 801006e8: a1 00 a0 10 80 mov 0x8010a000,%eax 801006ed: 83 ec 04 sub $0x4,%esp 801006f0: 68 60 0e 00 00 push $0xe60 801006f5: 52 push %edx 801006f6: 50 push %eax 801006f7: e8 f1 50 00 00 call 801057ed <memmove> 801006fc: 83 c4 10 add $0x10,%esp pos -= 80; 801006ff: 83 6d f4 50 subl $0x50,-0xc(%ebp) memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos)); 80100703: b8 80 07 00 00 mov $0x780,%eax 80100708: 2b 45 f4 sub -0xc(%ebp),%eax 8010070b: 8d 14 00 lea (%eax,%eax,1),%edx 8010070e: a1 00 a0 10 80 mov 0x8010a000,%eax 80100713: 8b 4d f4 mov -0xc(%ebp),%ecx 80100716: 01 c9 add %ecx,%ecx 80100718: 01 c8 add %ecx,%eax 8010071a: 83 ec 04 sub $0x4,%esp 8010071d: 52 push %edx 8010071e: 6a 00 push $0x0 80100720: 50 push %eax 80100721: e8 08 50 00 00 call 8010572e <memset> 80100726: 83 c4 10 add $0x10,%esp } outb(CRTPORT, 14); 80100729: 83 ec 08 sub $0x8,%esp 8010072c: 6a 0e push $0xe 8010072e: 68 d4 03 00 00 push $0x3d4 80100733: e8 b9 fb ff ff call 801002f1 <outb> 80100738: 83 c4 10 add $0x10,%esp outb(CRTPORT+1, pos>>8); 8010073b: 8b 45 f4 mov -0xc(%ebp),%eax 8010073e: c1 f8 08 sar $0x8,%eax 80100741: 0f b6 c0 movzbl %al,%eax 80100744: 83 ec 08 sub $0x8,%esp 80100747: 50 push %eax 80100748: 68 d5 03 00 00 push $0x3d5 8010074d: e8 9f fb ff ff call 801002f1 <outb> 80100752: 83 c4 10 add $0x10,%esp outb(CRTPORT, 15); 80100755: 83 ec 08 sub $0x8,%esp 80100758: 6a 0f push $0xf 8010075a: 68 d4 03 00 00 push $0x3d4 8010075f: e8 8d fb ff ff call 801002f1 <outb> 80100764: 83 c4 10 add $0x10,%esp outb(CRTPORT+1, pos); 80100767: 8b 45 f4 mov -0xc(%ebp),%eax 8010076a: 0f b6 c0 movzbl %al,%eax 8010076d: 83 ec 08 sub $0x8,%esp 80100770: 50 push %eax 80100771: 68 d5 03 00 00 push $0x3d5 80100776: e8 76 fb ff ff call 801002f1 <outb> 8010077b: 83 c4 10 add $0x10,%esp crt[pos] = ' ' | 0x0700; 8010077e: a1 00 a0 10 80 mov 0x8010a000,%eax 80100783: 8b 55 f4 mov -0xc(%ebp),%edx 80100786: 01 d2 add %edx,%edx 80100788: 01 d0 add %edx,%eax 8010078a: 66 c7 00 20 07 movw $0x720,(%eax) } 8010078f: 90 nop 80100790: c9 leave 80100791: c3 ret 80100792 <consputc>: void consputc(int c) { 80100792: 55 push %ebp 80100793: 89 e5 mov %esp,%ebp 80100795: 83 ec 08 sub $0x8,%esp if(panicked){ 80100798: a1 a0 c5 10 80 mov 0x8010c5a0,%eax 8010079d: 85 c0 test %eax,%eax 8010079f: 74 07 je 801007a8 <consputc+0x16> cli(); 801007a1: e8 6a fb ff ff call 80100310 <cli> for(;;) ; 801007a6: eb fe jmp 801007a6 <consputc+0x14> } if(c == BACKSPACE){ 801007a8: 81 7d 08 00 01 00 00 cmpl $0x100,0x8(%ebp) 801007af: 75 29 jne 801007da <consputc+0x48> uartputc('\b'); uartputc(' '); uartputc('\b'); 801007b1: 83 ec 0c sub $0xc,%esp 801007b4: 6a 08 push $0x8 801007b6: e8 bd 68 00 00 call 80107078 <uartputc> 801007bb: 83 c4 10 add $0x10,%esp 801007be: 83 ec 0c sub $0xc,%esp 801007c1: 6a 20 push $0x20 801007c3: e8 b0 68 00 00 call 80107078 <uartputc> 801007c8: 83 c4 10 add $0x10,%esp 801007cb: 83 ec 0c sub $0xc,%esp 801007ce: 6a 08 push $0x8 801007d0: e8 a3 68 00 00 call 80107078 <uartputc> 801007d5: 83 c4 10 add $0x10,%esp 801007d8: eb 0e jmp 801007e8 <consputc+0x56> } else uartputc(c); 801007da: 83 ec 0c sub $0xc,%esp 801007dd: ff 75 08 pushl 0x8(%ebp) 801007e0: e8 93 68 00 00 call 80107078 <uartputc> 801007e5: 83 c4 10 add $0x10,%esp cgaputc(c); 801007e8: 83 ec 0c sub $0xc,%esp 801007eb: ff 75 08 pushl 0x8(%ebp) 801007ee: e8 0e fe ff ff call 80100601 <cgaputc> 801007f3: 83 c4 10 add $0x10,%esp } 801007f6: 90 nop 801007f7: c9 leave 801007f8: c3 ret 801007f9 <consoleintr>: #define C(x) ((x)-'@') // Control-x void consoleintr(int (*getc)(void)) { 801007f9: 55 push %ebp 801007fa: 89 e5 mov %esp,%ebp 801007fc: 83 ec 18 sub $0x18,%esp int c, doprocdump = 0; 801007ff: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) acquire(&cons.lock); 80100806: 83 ec 0c sub $0xc,%esp 80100809: 68 c0 c5 10 80 push $0x8010c5c0 8010080e: e8 b8 4c 00 00 call 801054cb <acquire> 80100813: 83 c4 10 add $0x10,%esp while((c = getc()) >= 0){ 80100816: e9 44 01 00 00 jmp 8010095f <consoleintr+0x166> switch(c){ 8010081b: 8b 45 f0 mov -0x10(%ebp),%eax 8010081e: 83 f8 10 cmp $0x10,%eax 80100821: 74 1e je 80100841 <consoleintr+0x48> 80100823: 83 f8 10 cmp $0x10,%eax 80100826: 7f 0a jg 80100832 <consoleintr+0x39> 80100828: 83 f8 08 cmp $0x8,%eax 8010082b: 74 6b je 80100898 <consoleintr+0x9f> 8010082d: e9 9b 00 00 00 jmp 801008cd <consoleintr+0xd4> 80100832: 83 f8 15 cmp $0x15,%eax 80100835: 74 33 je 8010086a <consoleintr+0x71> 80100837: 83 f8 7f cmp $0x7f,%eax 8010083a: 74 5c je 80100898 <consoleintr+0x9f> 8010083c: e9 8c 00 00 00 jmp 801008cd <consoleintr+0xd4> case C('P'): // Process listing. doprocdump = 1; // procdump() locks cons.lock indirectly; invoke later 80100841: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) break; 80100848: e9 12 01 00 00 jmp 8010095f <consoleintr+0x166> case C('U'): // Kill line. while(input.e != input.w && input.buf[(input.e-1) % INPUT_BUF] != '\n'){ input.e--; 8010084d: a1 08 18 11 80 mov 0x80111808,%eax 80100852: 83 e8 01 sub $0x1,%eax 80100855: a3 08 18 11 80 mov %eax,0x80111808 consputc(BACKSPACE); 8010085a: 83 ec 0c sub $0xc,%esp 8010085d: 68 00 01 00 00 push $0x100 80100862: e8 2b ff ff ff call 80100792 <consputc> 80100867: 83 c4 10 add $0x10,%esp switch(c){ case C('P'): // Process listing. doprocdump = 1; // procdump() locks cons.lock indirectly; invoke later break; case C('U'): // Kill line. while(input.e != input.w && 8010086a: 8b 15 08 18 11 80 mov 0x80111808,%edx 80100870: a1 04 18 11 80 mov 0x80111804,%eax 80100875: 39 c2 cmp %eax,%edx 80100877: 0f 84 e2 00 00 00 je 8010095f <consoleintr+0x166> input.buf[(input.e-1) % INPUT_BUF] != '\n'){ 8010087d: a1 08 18 11 80 mov 0x80111808,%eax 80100882: 83 e8 01 sub $0x1,%eax 80100885: 83 e0 7f and $0x7f,%eax 80100888: 0f b6 80 80 17 11 80 movzbl -0x7feee880(%eax),%eax switch(c){ case C('P'): // Process listing. doprocdump = 1; // procdump() locks cons.lock indirectly; invoke later break; case C('U'): // Kill line. while(input.e != input.w && 8010088f: 3c 0a cmp $0xa,%al 80100891: 75 ba jne 8010084d <consoleintr+0x54> input.buf[(input.e-1) % INPUT_BUF] != '\n'){ input.e--; consputc(BACKSPACE); } break; 80100893: e9 c7 00 00 00 jmp 8010095f <consoleintr+0x166> case C('H'): case '\x7f': // Backspace if(input.e != input.w){ 80100898: 8b 15 08 18 11 80 mov 0x80111808,%edx 8010089e: a1 04 18 11 80 mov 0x80111804,%eax 801008a3: 39 c2 cmp %eax,%edx 801008a5: 0f 84 b4 00 00 00 je 8010095f <consoleintr+0x166> input.e--; 801008ab: a1 08 18 11 80 mov 0x80111808,%eax 801008b0: 83 e8 01 sub $0x1,%eax 801008b3: a3 08 18 11 80 mov %eax,0x80111808 consputc(BACKSPACE); 801008b8: 83 ec 0c sub $0xc,%esp 801008bb: 68 00 01 00 00 push $0x100 801008c0: e8 cd fe ff ff call 80100792 <consputc> 801008c5: 83 c4 10 add $0x10,%esp } break; 801008c8: e9 92 00 00 00 jmp 8010095f <consoleintr+0x166> default: if(c != 0 && input.e-input.r < INPUT_BUF){ 801008cd: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801008d1: 0f 84 87 00 00 00 je 8010095e <consoleintr+0x165> 801008d7: 8b 15 08 18 11 80 mov 0x80111808,%edx 801008dd: a1 00 18 11 80 mov 0x80111800,%eax 801008e2: 29 c2 sub %eax,%edx 801008e4: 89 d0 mov %edx,%eax 801008e6: 83 f8 7f cmp $0x7f,%eax 801008e9: 77 73 ja 8010095e <consoleintr+0x165> c = (c == '\r') ? '\n' : c; 801008eb: 83 7d f0 0d cmpl $0xd,-0x10(%ebp) 801008ef: 74 05 je 801008f6 <consoleintr+0xfd> 801008f1: 8b 45 f0 mov -0x10(%ebp),%eax 801008f4: eb 05 jmp 801008fb <consoleintr+0x102> 801008f6: b8 0a 00 00 00 mov $0xa,%eax 801008fb: 89 45 f0 mov %eax,-0x10(%ebp) input.buf[input.e++ % INPUT_BUF] = c; 801008fe: a1 08 18 11 80 mov 0x80111808,%eax 80100903: 8d 50 01 lea 0x1(%eax),%edx 80100906: 89 15 08 18 11 80 mov %edx,0x80111808 8010090c: 83 e0 7f and $0x7f,%eax 8010090f: 8b 55 f0 mov -0x10(%ebp),%edx 80100912: 88 90 80 17 11 80 mov %dl,-0x7feee880(%eax) consputc(c); 80100918: 83 ec 0c sub $0xc,%esp 8010091b: ff 75 f0 pushl -0x10(%ebp) 8010091e: e8 6f fe ff ff call 80100792 <consputc> 80100923: 83 c4 10 add $0x10,%esp if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){ 80100926: 83 7d f0 0a cmpl $0xa,-0x10(%ebp) 8010092a: 74 18 je 80100944 <consoleintr+0x14b> 8010092c: 83 7d f0 04 cmpl $0x4,-0x10(%ebp) 80100930: 74 12 je 80100944 <consoleintr+0x14b> 80100932: a1 08 18 11 80 mov 0x80111808,%eax 80100937: 8b 15 00 18 11 80 mov 0x80111800,%edx 8010093d: 83 ea 80 sub $0xffffff80,%edx 80100940: 39 d0 cmp %edx,%eax 80100942: 75 1a jne 8010095e <consoleintr+0x165> input.w = input.e; 80100944: a1 08 18 11 80 mov 0x80111808,%eax 80100949: a3 04 18 11 80 mov %eax,0x80111804 wakeup(&input.r); 8010094e: 83 ec 0c sub $0xc,%esp 80100951: 68 00 18 11 80 push $0x80111800 80100956: e8 5c 49 00 00 call 801052b7 <wakeup> 8010095b: 83 c4 10 add $0x10,%esp } } break; 8010095e: 90 nop consoleintr(int (*getc)(void)) { int c, doprocdump = 0; acquire(&cons.lock); while((c = getc()) >= 0){ 8010095f: 8b 45 08 mov 0x8(%ebp),%eax 80100962: ff d0 call *%eax 80100964: 89 45 f0 mov %eax,-0x10(%ebp) 80100967: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8010096b: 0f 89 aa fe ff ff jns 8010081b <consoleintr+0x22> } } break; } } release(&cons.lock); 80100971: 83 ec 0c sub $0xc,%esp 80100974: 68 c0 c5 10 80 push $0x8010c5c0 80100979: e8 b4 4b 00 00 call 80105532 <release> 8010097e: 83 c4 10 add $0x10,%esp if(doprocdump) { 80100981: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80100985: 74 05 je 8010098c <consoleintr+0x193> procdump(); // now call procdump() wo. cons.lock held 80100987: e8 e9 49 00 00 call 80105375 <procdump> } } 8010098c: 90 nop 8010098d: c9 leave 8010098e: c3 ret 8010098f <consoleread>: int consoleread(struct inode *ip, char *dst, int n) { 8010098f: 55 push %ebp 80100990: 89 e5 mov %esp,%ebp 80100992: 83 ec 18 sub $0x18,%esp uint target; int c; iunlock(ip); 80100995: 83 ec 0c sub $0xc,%esp 80100998: ff 75 08 pushl 0x8(%ebp) 8010099b: e8 28 11 00 00 call 80101ac8 <iunlock> 801009a0: 83 c4 10 add $0x10,%esp target = n; 801009a3: 8b 45 10 mov 0x10(%ebp),%eax 801009a6: 89 45 f4 mov %eax,-0xc(%ebp) acquire(&cons.lock); 801009a9: 83 ec 0c sub $0xc,%esp 801009ac: 68 c0 c5 10 80 push $0x8010c5c0 801009b1: e8 15 4b 00 00 call 801054cb <acquire> 801009b6: 83 c4 10 add $0x10,%esp while(n > 0){ 801009b9: e9 ac 00 00 00 jmp 80100a6a <consoleread+0xdb> while(input.r == input.w){ if(proc->killed){ 801009be: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801009c4: 8b 40 24 mov 0x24(%eax),%eax 801009c7: 85 c0 test %eax,%eax 801009c9: 74 28 je 801009f3 <consoleread+0x64> release(&cons.lock); 801009cb: 83 ec 0c sub $0xc,%esp 801009ce: 68 c0 c5 10 80 push $0x8010c5c0 801009d3: e8 5a 4b 00 00 call 80105532 <release> 801009d8: 83 c4 10 add $0x10,%esp ilock(ip); 801009db: 83 ec 0c sub $0xc,%esp 801009de: ff 75 08 pushl 0x8(%ebp) 801009e1: e8 84 0f 00 00 call 8010196a <ilock> 801009e6: 83 c4 10 add $0x10,%esp return -1; 801009e9: b8 ff ff ff ff mov $0xffffffff,%eax 801009ee: e9 ab 00 00 00 jmp 80100a9e <consoleread+0x10f> } sleep(&input.r, &cons.lock); 801009f3: 83 ec 08 sub $0x8,%esp 801009f6: 68 c0 c5 10 80 push $0x8010c5c0 801009fb: 68 00 18 11 80 push $0x80111800 80100a00: e8 c4 47 00 00 call 801051c9 <sleep> 80100a05: 83 c4 10 add $0x10,%esp iunlock(ip); target = n; acquire(&cons.lock); while(n > 0){ while(input.r == input.w){ 80100a08: 8b 15 00 18 11 80 mov 0x80111800,%edx 80100a0e: a1 04 18 11 80 mov 0x80111804,%eax 80100a13: 39 c2 cmp %eax,%edx 80100a15: 74 a7 je 801009be <consoleread+0x2f> ilock(ip); return -1; } sleep(&input.r, &cons.lock); } c = input.buf[input.r++ % INPUT_BUF]; 80100a17: a1 00 18 11 80 mov 0x80111800,%eax 80100a1c: 8d 50 01 lea 0x1(%eax),%edx 80100a1f: 89 15 00 18 11 80 mov %edx,0x80111800 80100a25: 83 e0 7f and $0x7f,%eax 80100a28: 0f b6 80 80 17 11 80 movzbl -0x7feee880(%eax),%eax 80100a2f: 0f be c0 movsbl %al,%eax 80100a32: 89 45 f0 mov %eax,-0x10(%ebp) if(c == C('D')){ // EOF 80100a35: 83 7d f0 04 cmpl $0x4,-0x10(%ebp) 80100a39: 75 17 jne 80100a52 <consoleread+0xc3> if(n < target){ 80100a3b: 8b 45 10 mov 0x10(%ebp),%eax 80100a3e: 3b 45 f4 cmp -0xc(%ebp),%eax 80100a41: 73 2f jae 80100a72 <consoleread+0xe3> // Save ^D for next time, to make sure // caller gets a 0-byte result. input.r--; 80100a43: a1 00 18 11 80 mov 0x80111800,%eax 80100a48: 83 e8 01 sub $0x1,%eax 80100a4b: a3 00 18 11 80 mov %eax,0x80111800 } break; 80100a50: eb 20 jmp 80100a72 <consoleread+0xe3> } *dst++ = c; 80100a52: 8b 45 0c mov 0xc(%ebp),%eax 80100a55: 8d 50 01 lea 0x1(%eax),%edx 80100a58: 89 55 0c mov %edx,0xc(%ebp) 80100a5b: 8b 55 f0 mov -0x10(%ebp),%edx 80100a5e: 88 10 mov %dl,(%eax) --n; 80100a60: 83 6d 10 01 subl $0x1,0x10(%ebp) if(c == '\n') 80100a64: 83 7d f0 0a cmpl $0xa,-0x10(%ebp) 80100a68: 74 0b je 80100a75 <consoleread+0xe6> int c; iunlock(ip); target = n; acquire(&cons.lock); while(n > 0){ 80100a6a: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80100a6e: 7f 98 jg 80100a08 <consoleread+0x79> 80100a70: eb 04 jmp 80100a76 <consoleread+0xe7> if(n < target){ // Save ^D for next time, to make sure // caller gets a 0-byte result. input.r--; } break; 80100a72: 90 nop 80100a73: eb 01 jmp 80100a76 <consoleread+0xe7> } *dst++ = c; --n; if(c == '\n') break; 80100a75: 90 nop } release(&cons.lock); 80100a76: 83 ec 0c sub $0xc,%esp 80100a79: 68 c0 c5 10 80 push $0x8010c5c0 80100a7e: e8 af 4a 00 00 call 80105532 <release> 80100a83: 83 c4 10 add $0x10,%esp ilock(ip); 80100a86: 83 ec 0c sub $0xc,%esp 80100a89: ff 75 08 pushl 0x8(%ebp) 80100a8c: e8 d9 0e 00 00 call 8010196a <ilock> 80100a91: 83 c4 10 add $0x10,%esp return target - n; 80100a94: 8b 45 10 mov 0x10(%ebp),%eax 80100a97: 8b 55 f4 mov -0xc(%ebp),%edx 80100a9a: 29 c2 sub %eax,%edx 80100a9c: 89 d0 mov %edx,%eax } 80100a9e: c9 leave 80100a9f: c3 ret 80100aa0 <consolewrite>: int consolewrite(struct inode *ip, char *buf, int n) { 80100aa0: 55 push %ebp 80100aa1: 89 e5 mov %esp,%ebp 80100aa3: 83 ec 18 sub $0x18,%esp int i; iunlock(ip); 80100aa6: 83 ec 0c sub $0xc,%esp 80100aa9: ff 75 08 pushl 0x8(%ebp) 80100aac: e8 17 10 00 00 call 80101ac8 <iunlock> 80100ab1: 83 c4 10 add $0x10,%esp acquire(&cons.lock); 80100ab4: 83 ec 0c sub $0xc,%esp 80100ab7: 68 c0 c5 10 80 push $0x8010c5c0 80100abc: e8 0a 4a 00 00 call 801054cb <acquire> 80100ac1: 83 c4 10 add $0x10,%esp for(i = 0; i < n; i++) 80100ac4: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80100acb: eb 21 jmp 80100aee <consolewrite+0x4e> consputc(buf[i] & 0xff); 80100acd: 8b 55 f4 mov -0xc(%ebp),%edx 80100ad0: 8b 45 0c mov 0xc(%ebp),%eax 80100ad3: 01 d0 add %edx,%eax 80100ad5: 0f b6 00 movzbl (%eax),%eax 80100ad8: 0f be c0 movsbl %al,%eax 80100adb: 0f b6 c0 movzbl %al,%eax 80100ade: 83 ec 0c sub $0xc,%esp 80100ae1: 50 push %eax 80100ae2: e8 ab fc ff ff call 80100792 <consputc> 80100ae7: 83 c4 10 add $0x10,%esp { int i; iunlock(ip); acquire(&cons.lock); for(i = 0; i < n; i++) 80100aea: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80100aee: 8b 45 f4 mov -0xc(%ebp),%eax 80100af1: 3b 45 10 cmp 0x10(%ebp),%eax 80100af4: 7c d7 jl 80100acd <consolewrite+0x2d> consputc(buf[i] & 0xff); release(&cons.lock); 80100af6: 83 ec 0c sub $0xc,%esp 80100af9: 68 c0 c5 10 80 push $0x8010c5c0 80100afe: e8 2f 4a 00 00 call 80105532 <release> 80100b03: 83 c4 10 add $0x10,%esp ilock(ip); 80100b06: 83 ec 0c sub $0xc,%esp 80100b09: ff 75 08 pushl 0x8(%ebp) 80100b0c: e8 59 0e 00 00 call 8010196a <ilock> 80100b11: 83 c4 10 add $0x10,%esp return n; 80100b14: 8b 45 10 mov 0x10(%ebp),%eax } 80100b17: c9 leave 80100b18: c3 ret 80100b19 <consoleinit>: void consoleinit(void) { 80100b19: 55 push %ebp 80100b1a: 89 e5 mov %esp,%ebp 80100b1c: 83 ec 08 sub $0x8,%esp initlock(&cons.lock, "console"); 80100b1f: 83 ec 08 sub $0x8,%esp 80100b22: 68 4e 8a 10 80 push $0x80108a4e 80100b27: 68 c0 c5 10 80 push $0x8010c5c0 80100b2c: e8 78 49 00 00 call 801054a9 <initlock> 80100b31: 83 c4 10 add $0x10,%esp devsw[CONSOLE].write = consolewrite; 80100b34: c7 05 cc 21 11 80 a0 movl $0x80100aa0,0x801121cc 80100b3b: 0a 10 80 devsw[CONSOLE].read = consoleread; 80100b3e: c7 05 c8 21 11 80 8f movl $0x8010098f,0x801121c8 80100b45: 09 10 80 cons.locking = 1; 80100b48: c7 05 f4 c5 10 80 01 movl $0x1,0x8010c5f4 80100b4f: 00 00 00 picenable(IRQ_KBD); 80100b52: 83 ec 0c sub $0xc,%esp 80100b55: 6a 01 push $0x1 80100b57: e8 cf 33 00 00 call 80103f2b <picenable> 80100b5c: 83 c4 10 add $0x10,%esp ioapicenable(IRQ_KBD, 0); 80100b5f: 83 ec 08 sub $0x8,%esp 80100b62: 6a 00 push $0x0 80100b64: 6a 01 push $0x1 80100b66: e8 6f 1f 00 00 call 80102ada <ioapicenable> 80100b6b: 83 c4 10 add $0x10,%esp } 80100b6e: 90 nop 80100b6f: c9 leave 80100b70: c3 ret 80100b71 <exec>: #include "x86.h" #include "elf.h" int exec(char *path, char **argv) { 80100b71: 55 push %ebp 80100b72: 89 e5 mov %esp,%ebp 80100b74: 81 ec 18 01 00 00 sub $0x118,%esp struct elfhdr elf; struct inode *ip; struct proghdr ph; pde_t *pgdir, *oldpgdir; begin_op(); 80100b7a: e8 ce 29 00 00 call 8010354d <begin_op> if((ip = namei(path)) == 0){ 80100b7f: 83 ec 0c sub $0xc,%esp 80100b82: ff 75 08 pushl 0x8(%ebp) 80100b85: e8 9e 19 00 00 call 80102528 <namei> 80100b8a: 83 c4 10 add $0x10,%esp 80100b8d: 89 45 d8 mov %eax,-0x28(%ebp) 80100b90: 83 7d d8 00 cmpl $0x0,-0x28(%ebp) 80100b94: 75 0f jne 80100ba5 <exec+0x34> end_op(); 80100b96: e8 3e 2a 00 00 call 801035d9 <end_op> return -1; 80100b9b: b8 ff ff ff ff mov $0xffffffff,%eax 80100ba0: e9 ce 03 00 00 jmp 80100f73 <exec+0x402> } ilock(ip); 80100ba5: 83 ec 0c sub $0xc,%esp 80100ba8: ff 75 d8 pushl -0x28(%ebp) 80100bab: e8 ba 0d 00 00 call 8010196a <ilock> 80100bb0: 83 c4 10 add $0x10,%esp pgdir = 0; 80100bb3: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) // Check ELF header if(readi(ip, (char*)&elf, 0, sizeof(elf)) < sizeof(elf)) 80100bba: 6a 34 push $0x34 80100bbc: 6a 00 push $0x0 80100bbe: 8d 85 0c ff ff ff lea -0xf4(%ebp),%eax 80100bc4: 50 push %eax 80100bc5: ff 75 d8 pushl -0x28(%ebp) 80100bc8: e8 0b 13 00 00 call 80101ed8 <readi> 80100bcd: 83 c4 10 add $0x10,%esp 80100bd0: 83 f8 33 cmp $0x33,%eax 80100bd3: 0f 86 49 03 00 00 jbe 80100f22 <exec+0x3b1> goto bad; if(elf.magic != ELF_MAGIC) 80100bd9: 8b 85 0c ff ff ff mov -0xf4(%ebp),%eax 80100bdf: 3d 7f 45 4c 46 cmp $0x464c457f,%eax 80100be4: 0f 85 3b 03 00 00 jne 80100f25 <exec+0x3b4> goto bad; if((pgdir = setupkvm()) == 0) 80100bea: e8 de 75 00 00 call 801081cd <setupkvm> 80100bef: 89 45 d4 mov %eax,-0x2c(%ebp) 80100bf2: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) 80100bf6: 0f 84 2c 03 00 00 je 80100f28 <exec+0x3b7> goto bad; // Load program into memory. sz = 0; 80100bfc: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ 80100c03: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) 80100c0a: 8b 85 28 ff ff ff mov -0xd8(%ebp),%eax 80100c10: 89 45 e8 mov %eax,-0x18(%ebp) 80100c13: e9 ab 00 00 00 jmp 80100cc3 <exec+0x152> if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) 80100c18: 8b 45 e8 mov -0x18(%ebp),%eax 80100c1b: 6a 20 push $0x20 80100c1d: 50 push %eax 80100c1e: 8d 85 ec fe ff ff lea -0x114(%ebp),%eax 80100c24: 50 push %eax 80100c25: ff 75 d8 pushl -0x28(%ebp) 80100c28: e8 ab 12 00 00 call 80101ed8 <readi> 80100c2d: 83 c4 10 add $0x10,%esp 80100c30: 83 f8 20 cmp $0x20,%eax 80100c33: 0f 85 f2 02 00 00 jne 80100f2b <exec+0x3ba> goto bad; if(ph.type != ELF_PROG_LOAD) 80100c39: 8b 85 ec fe ff ff mov -0x114(%ebp),%eax 80100c3f: 83 f8 01 cmp $0x1,%eax 80100c42: 75 71 jne 80100cb5 <exec+0x144> continue; if(ph.memsz < ph.filesz) 80100c44: 8b 95 00 ff ff ff mov -0x100(%ebp),%edx 80100c4a: 8b 85 fc fe ff ff mov -0x104(%ebp),%eax 80100c50: 39 c2 cmp %eax,%edx 80100c52: 0f 82 d6 02 00 00 jb 80100f2e <exec+0x3bd> goto bad; if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0) 80100c58: 8b 95 f4 fe ff ff mov -0x10c(%ebp),%edx 80100c5e: 8b 85 00 ff ff ff mov -0x100(%ebp),%eax 80100c64: 01 d0 add %edx,%eax 80100c66: 83 ec 04 sub $0x4,%esp 80100c69: 50 push %eax 80100c6a: ff 75 e0 pushl -0x20(%ebp) 80100c6d: ff 75 d4 pushl -0x2c(%ebp) 80100c70: e8 ff 78 00 00 call 80108574 <allocuvm> 80100c75: 83 c4 10 add $0x10,%esp 80100c78: 89 45 e0 mov %eax,-0x20(%ebp) 80100c7b: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 80100c7f: 0f 84 ac 02 00 00 je 80100f31 <exec+0x3c0> goto bad; if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) 80100c85: 8b 95 fc fe ff ff mov -0x104(%ebp),%edx 80100c8b: 8b 85 f0 fe ff ff mov -0x110(%ebp),%eax 80100c91: 8b 8d f4 fe ff ff mov -0x10c(%ebp),%ecx 80100c97: 83 ec 0c sub $0xc,%esp 80100c9a: 52 push %edx 80100c9b: 50 push %eax 80100c9c: ff 75 d8 pushl -0x28(%ebp) 80100c9f: 51 push %ecx 80100ca0: ff 75 d4 pushl -0x2c(%ebp) 80100ca3: e8 f5 77 00 00 call 8010849d <loaduvm> 80100ca8: 83 c4 20 add $0x20,%esp 80100cab: 85 c0 test %eax,%eax 80100cad: 0f 88 81 02 00 00 js 80100f34 <exec+0x3c3> 80100cb3: eb 01 jmp 80100cb6 <exec+0x145> sz = 0; for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) goto bad; if(ph.type != ELF_PROG_LOAD) continue; 80100cb5: 90 nop if((pgdir = setupkvm()) == 0) goto bad; // Load program into memory. sz = 0; for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ 80100cb6: 83 45 ec 01 addl $0x1,-0x14(%ebp) 80100cba: 8b 45 e8 mov -0x18(%ebp),%eax 80100cbd: 83 c0 20 add $0x20,%eax 80100cc0: 89 45 e8 mov %eax,-0x18(%ebp) 80100cc3: 0f b7 85 38 ff ff ff movzwl -0xc8(%ebp),%eax 80100cca: 0f b7 c0 movzwl %ax,%eax 80100ccd: 3b 45 ec cmp -0x14(%ebp),%eax 80100cd0: 0f 8f 42 ff ff ff jg 80100c18 <exec+0xa7> if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0) goto bad; if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) goto bad; } iunlockput(ip); 80100cd6: 83 ec 0c sub $0xc,%esp 80100cd9: ff 75 d8 pushl -0x28(%ebp) 80100cdc: e8 49 0f 00 00 call 80101c2a <iunlockput> 80100ce1: 83 c4 10 add $0x10,%esp end_op(); 80100ce4: e8 f0 28 00 00 call 801035d9 <end_op> ip = 0; 80100ce9: c7 45 d8 00 00 00 00 movl $0x0,-0x28(%ebp) // Allocate two pages at the next page boundary. // Make the first inaccessible. Use the second as the user stack. sz = PGROUNDUP(sz); 80100cf0: 8b 45 e0 mov -0x20(%ebp),%eax 80100cf3: 05 ff 0f 00 00 add $0xfff,%eax 80100cf8: 25 00 f0 ff ff and $0xfffff000,%eax 80100cfd: 89 45 e0 mov %eax,-0x20(%ebp) if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0) 80100d00: 8b 45 e0 mov -0x20(%ebp),%eax 80100d03: 05 00 20 00 00 add $0x2000,%eax 80100d08: 83 ec 04 sub $0x4,%esp 80100d0b: 50 push %eax 80100d0c: ff 75 e0 pushl -0x20(%ebp) 80100d0f: ff 75 d4 pushl -0x2c(%ebp) 80100d12: e8 5d 78 00 00 call 80108574 <allocuvm> 80100d17: 83 c4 10 add $0x10,%esp 80100d1a: 89 45 e0 mov %eax,-0x20(%ebp) 80100d1d: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 80100d21: 0f 84 10 02 00 00 je 80100f37 <exec+0x3c6> goto bad; clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); 80100d27: 8b 45 e0 mov -0x20(%ebp),%eax 80100d2a: 2d 00 20 00 00 sub $0x2000,%eax 80100d2f: 83 ec 08 sub $0x8,%esp 80100d32: 50 push %eax 80100d33: ff 75 d4 pushl -0x2c(%ebp) 80100d36: e8 5f 7a 00 00 call 8010879a <clearpteu> 80100d3b: 83 c4 10 add $0x10,%esp sp = sz; 80100d3e: 8b 45 e0 mov -0x20(%ebp),%eax 80100d41: 89 45 dc mov %eax,-0x24(%ebp) // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { 80100d44: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 80100d4b: e9 96 00 00 00 jmp 80100de6 <exec+0x275> if(argc >= MAXARG) 80100d50: 83 7d e4 1f cmpl $0x1f,-0x1c(%ebp) 80100d54: 0f 87 e0 01 00 00 ja 80100f3a <exec+0x3c9> goto bad; sp = (sp - (strlen(argv[argc]) + 1)) & ~3; 80100d5a: 8b 45 e4 mov -0x1c(%ebp),%eax 80100d5d: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100d64: 8b 45 0c mov 0xc(%ebp),%eax 80100d67: 01 d0 add %edx,%eax 80100d69: 8b 00 mov (%eax),%eax 80100d6b: 83 ec 0c sub $0xc,%esp 80100d6e: 50 push %eax 80100d6f: e8 07 4c 00 00 call 8010597b <strlen> 80100d74: 83 c4 10 add $0x10,%esp 80100d77: 89 c2 mov %eax,%edx 80100d79: 8b 45 dc mov -0x24(%ebp),%eax 80100d7c: 29 d0 sub %edx,%eax 80100d7e: 83 e8 01 sub $0x1,%eax 80100d81: 83 e0 fc and $0xfffffffc,%eax 80100d84: 89 45 dc mov %eax,-0x24(%ebp) if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) 80100d87: 8b 45 e4 mov -0x1c(%ebp),%eax 80100d8a: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100d91: 8b 45 0c mov 0xc(%ebp),%eax 80100d94: 01 d0 add %edx,%eax 80100d96: 8b 00 mov (%eax),%eax 80100d98: 83 ec 0c sub $0xc,%esp 80100d9b: 50 push %eax 80100d9c: e8 da 4b 00 00 call 8010597b <strlen> 80100da1: 83 c4 10 add $0x10,%esp 80100da4: 83 c0 01 add $0x1,%eax 80100da7: 89 c1 mov %eax,%ecx 80100da9: 8b 45 e4 mov -0x1c(%ebp),%eax 80100dac: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100db3: 8b 45 0c mov 0xc(%ebp),%eax 80100db6: 01 d0 add %edx,%eax 80100db8: 8b 00 mov (%eax),%eax 80100dba: 51 push %ecx 80100dbb: 50 push %eax 80100dbc: ff 75 dc pushl -0x24(%ebp) 80100dbf: ff 75 d4 pushl -0x2c(%ebp) 80100dc2: e8 8a 7b 00 00 call 80108951 <copyout> 80100dc7: 83 c4 10 add $0x10,%esp 80100dca: 85 c0 test %eax,%eax 80100dcc: 0f 88 6b 01 00 00 js 80100f3d <exec+0x3cc> goto bad; ustack[3+argc] = sp; 80100dd2: 8b 45 e4 mov -0x1c(%ebp),%eax 80100dd5: 8d 50 03 lea 0x3(%eax),%edx 80100dd8: 8b 45 dc mov -0x24(%ebp),%eax 80100ddb: 89 84 95 40 ff ff ff mov %eax,-0xc0(%ebp,%edx,4) goto bad; clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); sp = sz; // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { 80100de2: 83 45 e4 01 addl $0x1,-0x1c(%ebp) 80100de6: 8b 45 e4 mov -0x1c(%ebp),%eax 80100de9: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100df0: 8b 45 0c mov 0xc(%ebp),%eax 80100df3: 01 d0 add %edx,%eax 80100df5: 8b 00 mov (%eax),%eax 80100df7: 85 c0 test %eax,%eax 80100df9: 0f 85 51 ff ff ff jne 80100d50 <exec+0x1df> sp = (sp - (strlen(argv[argc]) + 1)) & ~3; if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) goto bad; ustack[3+argc] = sp; } ustack[3+argc] = 0; 80100dff: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e02: 83 c0 03 add $0x3,%eax 80100e05: c7 84 85 40 ff ff ff movl $0x0,-0xc0(%ebp,%eax,4) 80100e0c: 00 00 00 00 ustack[0] = 0xffffffff; // fake return PC 80100e10: c7 85 40 ff ff ff ff movl $0xffffffff,-0xc0(%ebp) 80100e17: ff ff ff ustack[1] = argc; 80100e1a: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e1d: 89 85 44 ff ff ff mov %eax,-0xbc(%ebp) ustack[2] = sp - (argc+1)*4; // argv pointer 80100e23: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e26: 83 c0 01 add $0x1,%eax 80100e29: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80100e30: 8b 45 dc mov -0x24(%ebp),%eax 80100e33: 29 d0 sub %edx,%eax 80100e35: 89 85 48 ff ff ff mov %eax,-0xb8(%ebp) sp -= (3+argc+1) * 4; 80100e3b: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e3e: 83 c0 04 add $0x4,%eax 80100e41: c1 e0 02 shl $0x2,%eax 80100e44: 29 45 dc sub %eax,-0x24(%ebp) if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) 80100e47: 8b 45 e4 mov -0x1c(%ebp),%eax 80100e4a: 83 c0 04 add $0x4,%eax 80100e4d: c1 e0 02 shl $0x2,%eax 80100e50: 50 push %eax 80100e51: 8d 85 40 ff ff ff lea -0xc0(%ebp),%eax 80100e57: 50 push %eax 80100e58: ff 75 dc pushl -0x24(%ebp) 80100e5b: ff 75 d4 pushl -0x2c(%ebp) 80100e5e: e8 ee 7a 00 00 call 80108951 <copyout> 80100e63: 83 c4 10 add $0x10,%esp 80100e66: 85 c0 test %eax,%eax 80100e68: 0f 88 d2 00 00 00 js 80100f40 <exec+0x3cf> goto bad; // Save program name for debugging. for(last=s=path; *s; s++) 80100e6e: 8b 45 08 mov 0x8(%ebp),%eax 80100e71: 89 45 f4 mov %eax,-0xc(%ebp) 80100e74: 8b 45 f4 mov -0xc(%ebp),%eax 80100e77: 89 45 f0 mov %eax,-0x10(%ebp) 80100e7a: eb 17 jmp 80100e93 <exec+0x322> if(*s == '/') 80100e7c: 8b 45 f4 mov -0xc(%ebp),%eax 80100e7f: 0f b6 00 movzbl (%eax),%eax 80100e82: 3c 2f cmp $0x2f,%al 80100e84: 75 09 jne 80100e8f <exec+0x31e> last = s+1; 80100e86: 8b 45 f4 mov -0xc(%ebp),%eax 80100e89: 83 c0 01 add $0x1,%eax 80100e8c: 89 45 f0 mov %eax,-0x10(%ebp) sp -= (3+argc+1) * 4; if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) goto bad; // Save program name for debugging. for(last=s=path; *s; s++) 80100e8f: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80100e93: 8b 45 f4 mov -0xc(%ebp),%eax 80100e96: 0f b6 00 movzbl (%eax),%eax 80100e99: 84 c0 test %al,%al 80100e9b: 75 df jne 80100e7c <exec+0x30b> if(*s == '/') last = s+1; safestrcpy(proc->name, last, sizeof(proc->name)); 80100e9d: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ea3: 83 c0 6c add $0x6c,%eax 80100ea6: 83 ec 04 sub $0x4,%esp 80100ea9: 6a 10 push $0x10 80100eab: ff 75 f0 pushl -0x10(%ebp) 80100eae: 50 push %eax 80100eaf: e8 7d 4a 00 00 call 80105931 <safestrcpy> 80100eb4: 83 c4 10 add $0x10,%esp // Commit to the user image. oldpgdir = proc->pgdir; 80100eb7: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ebd: 8b 40 04 mov 0x4(%eax),%eax 80100ec0: 89 45 d0 mov %eax,-0x30(%ebp) proc->pgdir = pgdir; 80100ec3: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ec9: 8b 55 d4 mov -0x2c(%ebp),%edx 80100ecc: 89 50 04 mov %edx,0x4(%eax) proc->sz = sz; 80100ecf: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ed5: 8b 55 e0 mov -0x20(%ebp),%edx 80100ed8: 89 10 mov %edx,(%eax) proc->tf->eip = elf.entry; // main 80100eda: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ee0: 8b 40 18 mov 0x18(%eax),%eax 80100ee3: 8b 95 24 ff ff ff mov -0xdc(%ebp),%edx 80100ee9: 89 50 38 mov %edx,0x38(%eax) proc->tf->esp = sp; 80100eec: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100ef2: 8b 40 18 mov 0x18(%eax),%eax 80100ef5: 8b 55 dc mov -0x24(%ebp),%edx 80100ef8: 89 50 44 mov %edx,0x44(%eax) switchuvm(proc); 80100efb: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80100f01: 83 ec 0c sub $0xc,%esp 80100f04: 50 push %eax 80100f05: e8 aa 73 00 00 call 801082b4 <switchuvm> 80100f0a: 83 c4 10 add $0x10,%esp freevm(oldpgdir); 80100f0d: 83 ec 0c sub $0xc,%esp 80100f10: ff 75 d0 pushl -0x30(%ebp) 80100f13: e8 e2 77 00 00 call 801086fa <freevm> 80100f18: 83 c4 10 add $0x10,%esp return 0; 80100f1b: b8 00 00 00 00 mov $0x0,%eax 80100f20: eb 51 jmp 80100f73 <exec+0x402> ilock(ip); pgdir = 0; // Check ELF header if(readi(ip, (char*)&elf, 0, sizeof(elf)) < sizeof(elf)) goto bad; 80100f22: 90 nop 80100f23: eb 1c jmp 80100f41 <exec+0x3d0> if(elf.magic != ELF_MAGIC) goto bad; 80100f25: 90 nop 80100f26: eb 19 jmp 80100f41 <exec+0x3d0> if((pgdir = setupkvm()) == 0) goto bad; 80100f28: 90 nop 80100f29: eb 16 jmp 80100f41 <exec+0x3d0> // Load program into memory. sz = 0; for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) goto bad; 80100f2b: 90 nop 80100f2c: eb 13 jmp 80100f41 <exec+0x3d0> if(ph.type != ELF_PROG_LOAD) continue; if(ph.memsz < ph.filesz) goto bad; 80100f2e: 90 nop 80100f2f: eb 10 jmp 80100f41 <exec+0x3d0> if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0) goto bad; 80100f31: 90 nop 80100f32: eb 0d jmp 80100f41 <exec+0x3d0> if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) goto bad; 80100f34: 90 nop 80100f35: eb 0a jmp 80100f41 <exec+0x3d0> // Allocate two pages at the next page boundary. // Make the first inaccessible. Use the second as the user stack. sz = PGROUNDUP(sz); if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0) goto bad; 80100f37: 90 nop 80100f38: eb 07 jmp 80100f41 <exec+0x3d0> sp = sz; // Push argument strings, prepare rest of stack in ustack. for(argc = 0; argv[argc]; argc++) { if(argc >= MAXARG) goto bad; 80100f3a: 90 nop 80100f3b: eb 04 jmp 80100f41 <exec+0x3d0> sp = (sp - (strlen(argv[argc]) + 1)) & ~3; if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) goto bad; 80100f3d: 90 nop 80100f3e: eb 01 jmp 80100f41 <exec+0x3d0> ustack[1] = argc; ustack[2] = sp - (argc+1)*4; // argv pointer sp -= (3+argc+1) * 4; if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) goto bad; 80100f40: 90 nop switchuvm(proc); freevm(oldpgdir); return 0; bad: if(pgdir) 80100f41: 83 7d d4 00 cmpl $0x0,-0x2c(%ebp) 80100f45: 74 0e je 80100f55 <exec+0x3e4> freevm(pgdir); 80100f47: 83 ec 0c sub $0xc,%esp 80100f4a: ff 75 d4 pushl -0x2c(%ebp) 80100f4d: e8 a8 77 00 00 call 801086fa <freevm> 80100f52: 83 c4 10 add $0x10,%esp if(ip){ 80100f55: 83 7d d8 00 cmpl $0x0,-0x28(%ebp) 80100f59: 74 13 je 80100f6e <exec+0x3fd> iunlockput(ip); 80100f5b: 83 ec 0c sub $0xc,%esp 80100f5e: ff 75 d8 pushl -0x28(%ebp) 80100f61: e8 c4 0c 00 00 call 80101c2a <iunlockput> 80100f66: 83 c4 10 add $0x10,%esp end_op(); 80100f69: e8 6b 26 00 00 call 801035d9 <end_op> } return -1; 80100f6e: b8 ff ff ff ff mov $0xffffffff,%eax } 80100f73: c9 leave 80100f74: c3 ret 80100f75 <fileinit>: struct file file[NFILE]; } ftable; void fileinit(void) { 80100f75: 55 push %ebp 80100f76: 89 e5 mov %esp,%ebp 80100f78: 83 ec 08 sub $0x8,%esp initlock(&ftable.lock, "ftable"); 80100f7b: 83 ec 08 sub $0x8,%esp 80100f7e: 68 56 8a 10 80 push $0x80108a56 80100f83: 68 20 18 11 80 push $0x80111820 80100f88: e8 1c 45 00 00 call 801054a9 <initlock> 80100f8d: 83 c4 10 add $0x10,%esp } 80100f90: 90 nop 80100f91: c9 leave 80100f92: c3 ret 80100f93 <filealloc>: // Allocate a file structure. struct file* filealloc(void) { 80100f93: 55 push %ebp 80100f94: 89 e5 mov %esp,%ebp 80100f96: 83 ec 18 sub $0x18,%esp struct file *f; acquire(&ftable.lock); 80100f99: 83 ec 0c sub $0xc,%esp 80100f9c: 68 20 18 11 80 push $0x80111820 80100fa1: e8 25 45 00 00 call 801054cb <acquire> 80100fa6: 83 c4 10 add $0x10,%esp for(f = ftable.file; f < ftable.file + NFILE; f++){ 80100fa9: c7 45 f4 54 18 11 80 movl $0x80111854,-0xc(%ebp) 80100fb0: eb 2d jmp 80100fdf <filealloc+0x4c> if(f->ref == 0){ 80100fb2: 8b 45 f4 mov -0xc(%ebp),%eax 80100fb5: 8b 40 04 mov 0x4(%eax),%eax 80100fb8: 85 c0 test %eax,%eax 80100fba: 75 1f jne 80100fdb <filealloc+0x48> f->ref = 1; 80100fbc: 8b 45 f4 mov -0xc(%ebp),%eax 80100fbf: c7 40 04 01 00 00 00 movl $0x1,0x4(%eax) release(&ftable.lock); 80100fc6: 83 ec 0c sub $0xc,%esp 80100fc9: 68 20 18 11 80 push $0x80111820 80100fce: e8 5f 45 00 00 call 80105532 <release> 80100fd3: 83 c4 10 add $0x10,%esp return f; 80100fd6: 8b 45 f4 mov -0xc(%ebp),%eax 80100fd9: eb 23 jmp 80100ffe <filealloc+0x6b> filealloc(void) { struct file *f; acquire(&ftable.lock); for(f = ftable.file; f < ftable.file + NFILE; f++){ 80100fdb: 83 45 f4 18 addl $0x18,-0xc(%ebp) 80100fdf: b8 b4 21 11 80 mov $0x801121b4,%eax 80100fe4: 39 45 f4 cmp %eax,-0xc(%ebp) 80100fe7: 72 c9 jb 80100fb2 <filealloc+0x1f> f->ref = 1; release(&ftable.lock); return f; } } release(&ftable.lock); 80100fe9: 83 ec 0c sub $0xc,%esp 80100fec: 68 20 18 11 80 push $0x80111820 80100ff1: e8 3c 45 00 00 call 80105532 <release> 80100ff6: 83 c4 10 add $0x10,%esp return 0; 80100ff9: b8 00 00 00 00 mov $0x0,%eax } 80100ffe: c9 leave 80100fff: c3 ret 80101000 <filedup>: // Increment ref count for file f. struct file* filedup(struct file *f) { 80101000: 55 push %ebp 80101001: 89 e5 mov %esp,%ebp 80101003: 83 ec 08 sub $0x8,%esp acquire(&ftable.lock); 80101006: 83 ec 0c sub $0xc,%esp 80101009: 68 20 18 11 80 push $0x80111820 8010100e: e8 b8 44 00 00 call 801054cb <acquire> 80101013: 83 c4 10 add $0x10,%esp if(f->ref < 1) 80101016: 8b 45 08 mov 0x8(%ebp),%eax 80101019: 8b 40 04 mov 0x4(%eax),%eax 8010101c: 85 c0 test %eax,%eax 8010101e: 7f 0d jg 8010102d <filedup+0x2d> panic("filedup"); 80101020: 83 ec 0c sub $0xc,%esp 80101023: 68 5d 8a 10 80 push $0x80108a5d 80101028: e8 39 f5 ff ff call 80100566 <panic> f->ref++; 8010102d: 8b 45 08 mov 0x8(%ebp),%eax 80101030: 8b 40 04 mov 0x4(%eax),%eax 80101033: 8d 50 01 lea 0x1(%eax),%edx 80101036: 8b 45 08 mov 0x8(%ebp),%eax 80101039: 89 50 04 mov %edx,0x4(%eax) release(&ftable.lock); 8010103c: 83 ec 0c sub $0xc,%esp 8010103f: 68 20 18 11 80 push $0x80111820 80101044: e8 e9 44 00 00 call 80105532 <release> 80101049: 83 c4 10 add $0x10,%esp return f; 8010104c: 8b 45 08 mov 0x8(%ebp),%eax } 8010104f: c9 leave 80101050: c3 ret 80101051 <fileclose>: // Close file f. (Decrement ref count, close when reaches 0.) void fileclose(struct file *f) { 80101051: 55 push %ebp 80101052: 89 e5 mov %esp,%ebp 80101054: 83 ec 28 sub $0x28,%esp struct file ff; acquire(&ftable.lock); 80101057: 83 ec 0c sub $0xc,%esp 8010105a: 68 20 18 11 80 push $0x80111820 8010105f: e8 67 44 00 00 call 801054cb <acquire> 80101064: 83 c4 10 add $0x10,%esp if(f->ref < 1) 80101067: 8b 45 08 mov 0x8(%ebp),%eax 8010106a: 8b 40 04 mov 0x4(%eax),%eax 8010106d: 85 c0 test %eax,%eax 8010106f: 7f 0d jg 8010107e <fileclose+0x2d> panic("fileclose"); 80101071: 83 ec 0c sub $0xc,%esp 80101074: 68 65 8a 10 80 push $0x80108a65 80101079: e8 e8 f4 ff ff call 80100566 <panic> if(--f->ref > 0){ 8010107e: 8b 45 08 mov 0x8(%ebp),%eax 80101081: 8b 40 04 mov 0x4(%eax),%eax 80101084: 8d 50 ff lea -0x1(%eax),%edx 80101087: 8b 45 08 mov 0x8(%ebp),%eax 8010108a: 89 50 04 mov %edx,0x4(%eax) 8010108d: 8b 45 08 mov 0x8(%ebp),%eax 80101090: 8b 40 04 mov 0x4(%eax),%eax 80101093: 85 c0 test %eax,%eax 80101095: 7e 15 jle 801010ac <fileclose+0x5b> release(&ftable.lock); 80101097: 83 ec 0c sub $0xc,%esp 8010109a: 68 20 18 11 80 push $0x80111820 8010109f: e8 8e 44 00 00 call 80105532 <release> 801010a4: 83 c4 10 add $0x10,%esp 801010a7: e9 8b 00 00 00 jmp 80101137 <fileclose+0xe6> return; } ff = *f; 801010ac: 8b 45 08 mov 0x8(%ebp),%eax 801010af: 8b 10 mov (%eax),%edx 801010b1: 89 55 e0 mov %edx,-0x20(%ebp) 801010b4: 8b 50 04 mov 0x4(%eax),%edx 801010b7: 89 55 e4 mov %edx,-0x1c(%ebp) 801010ba: 8b 50 08 mov 0x8(%eax),%edx 801010bd: 89 55 e8 mov %edx,-0x18(%ebp) 801010c0: 8b 50 0c mov 0xc(%eax),%edx 801010c3: 89 55 ec mov %edx,-0x14(%ebp) 801010c6: 8b 50 10 mov 0x10(%eax),%edx 801010c9: 89 55 f0 mov %edx,-0x10(%ebp) 801010cc: 8b 40 14 mov 0x14(%eax),%eax 801010cf: 89 45 f4 mov %eax,-0xc(%ebp) f->ref = 0; 801010d2: 8b 45 08 mov 0x8(%ebp),%eax 801010d5: c7 40 04 00 00 00 00 movl $0x0,0x4(%eax) f->type = FD_NONE; 801010dc: 8b 45 08 mov 0x8(%ebp),%eax 801010df: c7 00 00 00 00 00 movl $0x0,(%eax) release(&ftable.lock); 801010e5: 83 ec 0c sub $0xc,%esp 801010e8: 68 20 18 11 80 push $0x80111820 801010ed: e8 40 44 00 00 call 80105532 <release> 801010f2: 83 c4 10 add $0x10,%esp if(ff.type == FD_PIPE) 801010f5: 8b 45 e0 mov -0x20(%ebp),%eax 801010f8: 83 f8 01 cmp $0x1,%eax 801010fb: 75 19 jne 80101116 <fileclose+0xc5> pipeclose(ff.pipe, ff.writable); 801010fd: 0f b6 45 e9 movzbl -0x17(%ebp),%eax 80101101: 0f be d0 movsbl %al,%edx 80101104: 8b 45 ec mov -0x14(%ebp),%eax 80101107: 83 ec 08 sub $0x8,%esp 8010110a: 52 push %edx 8010110b: 50 push %eax 8010110c: e8 83 30 00 00 call 80104194 <pipeclose> 80101111: 83 c4 10 add $0x10,%esp 80101114: eb 21 jmp 80101137 <fileclose+0xe6> else if(ff.type == FD_INODE){ 80101116: 8b 45 e0 mov -0x20(%ebp),%eax 80101119: 83 f8 02 cmp $0x2,%eax 8010111c: 75 19 jne 80101137 <fileclose+0xe6> begin_op(); 8010111e: e8 2a 24 00 00 call 8010354d <begin_op> iput(ff.ip); 80101123: 8b 45 f0 mov -0x10(%ebp),%eax 80101126: 83 ec 0c sub $0xc,%esp 80101129: 50 push %eax 8010112a: e8 0b 0a 00 00 call 80101b3a <iput> 8010112f: 83 c4 10 add $0x10,%esp end_op(); 80101132: e8 a2 24 00 00 call 801035d9 <end_op> } } 80101137: c9 leave 80101138: c3 ret 80101139 <filestat>: // Get metadata about file f. int filestat(struct file *f, struct stat *st) { 80101139: 55 push %ebp 8010113a: 89 e5 mov %esp,%ebp 8010113c: 83 ec 08 sub $0x8,%esp if(f->type == FD_INODE){ 8010113f: 8b 45 08 mov 0x8(%ebp),%eax 80101142: 8b 00 mov (%eax),%eax 80101144: 83 f8 02 cmp $0x2,%eax 80101147: 75 40 jne 80101189 <filestat+0x50> ilock(f->ip); 80101149: 8b 45 08 mov 0x8(%ebp),%eax 8010114c: 8b 40 10 mov 0x10(%eax),%eax 8010114f: 83 ec 0c sub $0xc,%esp 80101152: 50 push %eax 80101153: e8 12 08 00 00 call 8010196a <ilock> 80101158: 83 c4 10 add $0x10,%esp stati(f->ip, st); 8010115b: 8b 45 08 mov 0x8(%ebp),%eax 8010115e: 8b 40 10 mov 0x10(%eax),%eax 80101161: 83 ec 08 sub $0x8,%esp 80101164: ff 75 0c pushl 0xc(%ebp) 80101167: 50 push %eax 80101168: e8 25 0d 00 00 call 80101e92 <stati> 8010116d: 83 c4 10 add $0x10,%esp iunlock(f->ip); 80101170: 8b 45 08 mov 0x8(%ebp),%eax 80101173: 8b 40 10 mov 0x10(%eax),%eax 80101176: 83 ec 0c sub $0xc,%esp 80101179: 50 push %eax 8010117a: e8 49 09 00 00 call 80101ac8 <iunlock> 8010117f: 83 c4 10 add $0x10,%esp return 0; 80101182: b8 00 00 00 00 mov $0x0,%eax 80101187: eb 05 jmp 8010118e <filestat+0x55> } return -1; 80101189: b8 ff ff ff ff mov $0xffffffff,%eax } 8010118e: c9 leave 8010118f: c3 ret 80101190 <fileread>: // Read from file f. int fileread(struct file *f, char *addr, int n) { 80101190: 55 push %ebp 80101191: 89 e5 mov %esp,%ebp 80101193: 83 ec 18 sub $0x18,%esp int r; if(f->readable == 0) 80101196: 8b 45 08 mov 0x8(%ebp),%eax 80101199: 0f b6 40 08 movzbl 0x8(%eax),%eax 8010119d: 84 c0 test %al,%al 8010119f: 75 0a jne 801011ab <fileread+0x1b> return -1; 801011a1: b8 ff ff ff ff mov $0xffffffff,%eax 801011a6: e9 9b 00 00 00 jmp 80101246 <fileread+0xb6> if(f->type == FD_PIPE) 801011ab: 8b 45 08 mov 0x8(%ebp),%eax 801011ae: 8b 00 mov (%eax),%eax 801011b0: 83 f8 01 cmp $0x1,%eax 801011b3: 75 1a jne 801011cf <fileread+0x3f> return piperead(f->pipe, addr, n); 801011b5: 8b 45 08 mov 0x8(%ebp),%eax 801011b8: 8b 40 0c mov 0xc(%eax),%eax 801011bb: 83 ec 04 sub $0x4,%esp 801011be: ff 75 10 pushl 0x10(%ebp) 801011c1: ff 75 0c pushl 0xc(%ebp) 801011c4: 50 push %eax 801011c5: e8 72 31 00 00 call 8010433c <piperead> 801011ca: 83 c4 10 add $0x10,%esp 801011cd: eb 77 jmp 80101246 <fileread+0xb6> if(f->type == FD_INODE){ 801011cf: 8b 45 08 mov 0x8(%ebp),%eax 801011d2: 8b 00 mov (%eax),%eax 801011d4: 83 f8 02 cmp $0x2,%eax 801011d7: 75 60 jne 80101239 <fileread+0xa9> ilock(f->ip); 801011d9: 8b 45 08 mov 0x8(%ebp),%eax 801011dc: 8b 40 10 mov 0x10(%eax),%eax 801011df: 83 ec 0c sub $0xc,%esp 801011e2: 50 push %eax 801011e3: e8 82 07 00 00 call 8010196a <ilock> 801011e8: 83 c4 10 add $0x10,%esp if((r = readi(f->ip, addr, f->off, n)) > 0) 801011eb: 8b 4d 10 mov 0x10(%ebp),%ecx 801011ee: 8b 45 08 mov 0x8(%ebp),%eax 801011f1: 8b 50 14 mov 0x14(%eax),%edx 801011f4: 8b 45 08 mov 0x8(%ebp),%eax 801011f7: 8b 40 10 mov 0x10(%eax),%eax 801011fa: 51 push %ecx 801011fb: 52 push %edx 801011fc: ff 75 0c pushl 0xc(%ebp) 801011ff: 50 push %eax 80101200: e8 d3 0c 00 00 call 80101ed8 <readi> 80101205: 83 c4 10 add $0x10,%esp 80101208: 89 45 f4 mov %eax,-0xc(%ebp) 8010120b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010120f: 7e 11 jle 80101222 <fileread+0x92> f->off += r; 80101211: 8b 45 08 mov 0x8(%ebp),%eax 80101214: 8b 50 14 mov 0x14(%eax),%edx 80101217: 8b 45 f4 mov -0xc(%ebp),%eax 8010121a: 01 c2 add %eax,%edx 8010121c: 8b 45 08 mov 0x8(%ebp),%eax 8010121f: 89 50 14 mov %edx,0x14(%eax) iunlock(f->ip); 80101222: 8b 45 08 mov 0x8(%ebp),%eax 80101225: 8b 40 10 mov 0x10(%eax),%eax 80101228: 83 ec 0c sub $0xc,%esp 8010122b: 50 push %eax 8010122c: e8 97 08 00 00 call 80101ac8 <iunlock> 80101231: 83 c4 10 add $0x10,%esp return r; 80101234: 8b 45 f4 mov -0xc(%ebp),%eax 80101237: eb 0d jmp 80101246 <fileread+0xb6> } panic("fileread"); 80101239: 83 ec 0c sub $0xc,%esp 8010123c: 68 6f 8a 10 80 push $0x80108a6f 80101241: e8 20 f3 ff ff call 80100566 <panic> } 80101246: c9 leave 80101247: c3 ret 80101248 <filewrite>: //PAGEBREAK! // Write to file f. int filewrite(struct file *f, char *addr, int n) { 80101248: 55 push %ebp 80101249: 89 e5 mov %esp,%ebp 8010124b: 53 push %ebx 8010124c: 83 ec 14 sub $0x14,%esp int r; if(f->writable == 0) 8010124f: 8b 45 08 mov 0x8(%ebp),%eax 80101252: 0f b6 40 09 movzbl 0x9(%eax),%eax 80101256: 84 c0 test %al,%al 80101258: 75 0a jne 80101264 <filewrite+0x1c> return -1; 8010125a: b8 ff ff ff ff mov $0xffffffff,%eax 8010125f: e9 1b 01 00 00 jmp 8010137f <filewrite+0x137> if(f->type == FD_PIPE) 80101264: 8b 45 08 mov 0x8(%ebp),%eax 80101267: 8b 00 mov (%eax),%eax 80101269: 83 f8 01 cmp $0x1,%eax 8010126c: 75 1d jne 8010128b <filewrite+0x43> return pipewrite(f->pipe, addr, n); 8010126e: 8b 45 08 mov 0x8(%ebp),%eax 80101271: 8b 40 0c mov 0xc(%eax),%eax 80101274: 83 ec 04 sub $0x4,%esp 80101277: ff 75 10 pushl 0x10(%ebp) 8010127a: ff 75 0c pushl 0xc(%ebp) 8010127d: 50 push %eax 8010127e: e8 bb 2f 00 00 call 8010423e <pipewrite> 80101283: 83 c4 10 add $0x10,%esp 80101286: e9 f4 00 00 00 jmp 8010137f <filewrite+0x137> if(f->type == FD_INODE){ 8010128b: 8b 45 08 mov 0x8(%ebp),%eax 8010128e: 8b 00 mov (%eax),%eax 80101290: 83 f8 02 cmp $0x2,%eax 80101293: 0f 85 d9 00 00 00 jne 80101372 <filewrite+0x12a> // the maximum log transaction size, including // i-node, indirect block, allocation blocks, // and 2 blocks of slop for non-aligned writes. // this really belongs lower down, since writei() // might be writing a device like the console. int max = ((LOGSIZE-1-1-2) / 2) * 512; 80101299: c7 45 ec 00 1a 00 00 movl $0x1a00,-0x14(%ebp) int i = 0; 801012a0: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) while(i < n){ 801012a7: e9 a3 00 00 00 jmp 8010134f <filewrite+0x107> int n1 = n - i; 801012ac: 8b 45 10 mov 0x10(%ebp),%eax 801012af: 2b 45 f4 sub -0xc(%ebp),%eax 801012b2: 89 45 f0 mov %eax,-0x10(%ebp) if(n1 > max) 801012b5: 8b 45 f0 mov -0x10(%ebp),%eax 801012b8: 3b 45 ec cmp -0x14(%ebp),%eax 801012bb: 7e 06 jle 801012c3 <filewrite+0x7b> n1 = max; 801012bd: 8b 45 ec mov -0x14(%ebp),%eax 801012c0: 89 45 f0 mov %eax,-0x10(%ebp) begin_op(); 801012c3: e8 85 22 00 00 call 8010354d <begin_op> ilock(f->ip); 801012c8: 8b 45 08 mov 0x8(%ebp),%eax 801012cb: 8b 40 10 mov 0x10(%eax),%eax 801012ce: 83 ec 0c sub $0xc,%esp 801012d1: 50 push %eax 801012d2: e8 93 06 00 00 call 8010196a <ilock> 801012d7: 83 c4 10 add $0x10,%esp if ((r = writei(f->ip, addr + i, f->off, n1)) > 0) 801012da: 8b 4d f0 mov -0x10(%ebp),%ecx 801012dd: 8b 45 08 mov 0x8(%ebp),%eax 801012e0: 8b 50 14 mov 0x14(%eax),%edx 801012e3: 8b 5d f4 mov -0xc(%ebp),%ebx 801012e6: 8b 45 0c mov 0xc(%ebp),%eax 801012e9: 01 c3 add %eax,%ebx 801012eb: 8b 45 08 mov 0x8(%ebp),%eax 801012ee: 8b 40 10 mov 0x10(%eax),%eax 801012f1: 51 push %ecx 801012f2: 52 push %edx 801012f3: 53 push %ebx 801012f4: 50 push %eax 801012f5: e8 35 0d 00 00 call 8010202f <writei> 801012fa: 83 c4 10 add $0x10,%esp 801012fd: 89 45 e8 mov %eax,-0x18(%ebp) 80101300: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 80101304: 7e 11 jle 80101317 <filewrite+0xcf> f->off += r; 80101306: 8b 45 08 mov 0x8(%ebp),%eax 80101309: 8b 50 14 mov 0x14(%eax),%edx 8010130c: 8b 45 e8 mov -0x18(%ebp),%eax 8010130f: 01 c2 add %eax,%edx 80101311: 8b 45 08 mov 0x8(%ebp),%eax 80101314: 89 50 14 mov %edx,0x14(%eax) iunlock(f->ip); 80101317: 8b 45 08 mov 0x8(%ebp),%eax 8010131a: 8b 40 10 mov 0x10(%eax),%eax 8010131d: 83 ec 0c sub $0xc,%esp 80101320: 50 push %eax 80101321: e8 a2 07 00 00 call 80101ac8 <iunlock> 80101326: 83 c4 10 add $0x10,%esp end_op(); 80101329: e8 ab 22 00 00 call 801035d9 <end_op> if(r < 0) 8010132e: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 80101332: 78 29 js 8010135d <filewrite+0x115> break; if(r != n1) 80101334: 8b 45 e8 mov -0x18(%ebp),%eax 80101337: 3b 45 f0 cmp -0x10(%ebp),%eax 8010133a: 74 0d je 80101349 <filewrite+0x101> panic("short filewrite"); 8010133c: 83 ec 0c sub $0xc,%esp 8010133f: 68 78 8a 10 80 push $0x80108a78 80101344: e8 1d f2 ff ff call 80100566 <panic> i += r; 80101349: 8b 45 e8 mov -0x18(%ebp),%eax 8010134c: 01 45 f4 add %eax,-0xc(%ebp) // and 2 blocks of slop for non-aligned writes. // this really belongs lower down, since writei() // might be writing a device like the console. int max = ((LOGSIZE-1-1-2) / 2) * 512; int i = 0; while(i < n){ 8010134f: 8b 45 f4 mov -0xc(%ebp),%eax 80101352: 3b 45 10 cmp 0x10(%ebp),%eax 80101355: 0f 8c 51 ff ff ff jl 801012ac <filewrite+0x64> 8010135b: eb 01 jmp 8010135e <filewrite+0x116> f->off += r; iunlock(f->ip); end_op(); if(r < 0) break; 8010135d: 90 nop if(r != n1) panic("short filewrite"); i += r; } return i == n ? n : -1; 8010135e: 8b 45 f4 mov -0xc(%ebp),%eax 80101361: 3b 45 10 cmp 0x10(%ebp),%eax 80101364: 75 05 jne 8010136b <filewrite+0x123> 80101366: 8b 45 10 mov 0x10(%ebp),%eax 80101369: eb 14 jmp 8010137f <filewrite+0x137> 8010136b: b8 ff ff ff ff mov $0xffffffff,%eax 80101370: eb 0d jmp 8010137f <filewrite+0x137> } panic("filewrite"); 80101372: 83 ec 0c sub $0xc,%esp 80101375: 68 88 8a 10 80 push $0x80108a88 8010137a: e8 e7 f1 ff ff call 80100566 <panic> } 8010137f: 8b 5d fc mov -0x4(%ebp),%ebx 80101382: c9 leave 80101383: c3 ret 80101384 <readsb>: struct superblock sb; // there should be one per dev, but we run with one dev // Read the super block. void readsb(int dev, struct superblock *sb) { 80101384: 55 push %ebp 80101385: 89 e5 mov %esp,%ebp 80101387: 83 ec 18 sub $0x18,%esp struct buf *bp; bp = bread(dev, 1); 8010138a: 8b 45 08 mov 0x8(%ebp),%eax 8010138d: 83 ec 08 sub $0x8,%esp 80101390: 6a 01 push $0x1 80101392: 50 push %eax 80101393: e8 1e ee ff ff call 801001b6 <bread> 80101398: 83 c4 10 add $0x10,%esp 8010139b: 89 45 f4 mov %eax,-0xc(%ebp) memmove(sb, bp->data, sizeof(*sb)); 8010139e: 8b 45 f4 mov -0xc(%ebp),%eax 801013a1: 83 c0 18 add $0x18,%eax 801013a4: 83 ec 04 sub $0x4,%esp 801013a7: 6a 1c push $0x1c 801013a9: 50 push %eax 801013aa: ff 75 0c pushl 0xc(%ebp) 801013ad: e8 3b 44 00 00 call 801057ed <memmove> 801013b2: 83 c4 10 add $0x10,%esp brelse(bp); 801013b5: 83 ec 0c sub $0xc,%esp 801013b8: ff 75 f4 pushl -0xc(%ebp) 801013bb: e8 6e ee ff ff call 8010022e <brelse> 801013c0: 83 c4 10 add $0x10,%esp } 801013c3: 90 nop 801013c4: c9 leave 801013c5: c3 ret 801013c6 <bzero>: // Zero a block. static void bzero(int dev, int bno) { 801013c6: 55 push %ebp 801013c7: 89 e5 mov %esp,%ebp 801013c9: 83 ec 18 sub $0x18,%esp struct buf *bp; bp = bread(dev, bno); 801013cc: 8b 55 0c mov 0xc(%ebp),%edx 801013cf: 8b 45 08 mov 0x8(%ebp),%eax 801013d2: 83 ec 08 sub $0x8,%esp 801013d5: 52 push %edx 801013d6: 50 push %eax 801013d7: e8 da ed ff ff call 801001b6 <bread> 801013dc: 83 c4 10 add $0x10,%esp 801013df: 89 45 f4 mov %eax,-0xc(%ebp) memset(bp->data, 0, BSIZE); 801013e2: 8b 45 f4 mov -0xc(%ebp),%eax 801013e5: 83 c0 18 add $0x18,%eax 801013e8: 83 ec 04 sub $0x4,%esp 801013eb: 68 00 02 00 00 push $0x200 801013f0: 6a 00 push $0x0 801013f2: 50 push %eax 801013f3: e8 36 43 00 00 call 8010572e <memset> 801013f8: 83 c4 10 add $0x10,%esp log_write(bp); 801013fb: 83 ec 0c sub $0xc,%esp 801013fe: ff 75 f4 pushl -0xc(%ebp) 80101401: e8 7f 23 00 00 call 80103785 <log_write> 80101406: 83 c4 10 add $0x10,%esp brelse(bp); 80101409: 83 ec 0c sub $0xc,%esp 8010140c: ff 75 f4 pushl -0xc(%ebp) 8010140f: e8 1a ee ff ff call 8010022e <brelse> 80101414: 83 c4 10 add $0x10,%esp } 80101417: 90 nop 80101418: c9 leave 80101419: c3 ret 8010141a <balloc>: // Blocks. // Allocate a zeroed disk block. static uint balloc(uint dev) { 8010141a: 55 push %ebp 8010141b: 89 e5 mov %esp,%ebp 8010141d: 83 ec 18 sub $0x18,%esp int b, bi, m; struct buf *bp; bp = 0; 80101420: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) for(b = 0; b < sb.size; b += BPB){ 80101427: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 8010142e: e9 13 01 00 00 jmp 80101546 <balloc+0x12c> bp = bread(dev, BBLOCK(b, sb)); 80101433: 8b 45 f4 mov -0xc(%ebp),%eax 80101436: 8d 90 ff 0f 00 00 lea 0xfff(%eax),%edx 8010143c: 85 c0 test %eax,%eax 8010143e: 0f 48 c2 cmovs %edx,%eax 80101441: c1 f8 0c sar $0xc,%eax 80101444: 89 c2 mov %eax,%edx 80101446: a1 38 22 11 80 mov 0x80112238,%eax 8010144b: 01 d0 add %edx,%eax 8010144d: 83 ec 08 sub $0x8,%esp 80101450: 50 push %eax 80101451: ff 75 08 pushl 0x8(%ebp) 80101454: e8 5d ed ff ff call 801001b6 <bread> 80101459: 83 c4 10 add $0x10,%esp 8010145c: 89 45 ec mov %eax,-0x14(%ebp) for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ 8010145f: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 80101466: e9 a6 00 00 00 jmp 80101511 <balloc+0xf7> m = 1 << (bi % 8); 8010146b: 8b 45 f0 mov -0x10(%ebp),%eax 8010146e: 99 cltd 8010146f: c1 ea 1d shr $0x1d,%edx 80101472: 01 d0 add %edx,%eax 80101474: 83 e0 07 and $0x7,%eax 80101477: 29 d0 sub %edx,%eax 80101479: ba 01 00 00 00 mov $0x1,%edx 8010147e: 89 c1 mov %eax,%ecx 80101480: d3 e2 shl %cl,%edx 80101482: 89 d0 mov %edx,%eax 80101484: 89 45 e8 mov %eax,-0x18(%ebp) if((bp->data[bi/8] & m) == 0){ // Is block free? 80101487: 8b 45 f0 mov -0x10(%ebp),%eax 8010148a: 8d 50 07 lea 0x7(%eax),%edx 8010148d: 85 c0 test %eax,%eax 8010148f: 0f 48 c2 cmovs %edx,%eax 80101492: c1 f8 03 sar $0x3,%eax 80101495: 89 c2 mov %eax,%edx 80101497: 8b 45 ec mov -0x14(%ebp),%eax 8010149a: 0f b6 44 10 18 movzbl 0x18(%eax,%edx,1),%eax 8010149f: 0f b6 c0 movzbl %al,%eax 801014a2: 23 45 e8 and -0x18(%ebp),%eax 801014a5: 85 c0 test %eax,%eax 801014a7: 75 64 jne 8010150d <balloc+0xf3> bp->data[bi/8] |= m; // Mark block in use. 801014a9: 8b 45 f0 mov -0x10(%ebp),%eax 801014ac: 8d 50 07 lea 0x7(%eax),%edx 801014af: 85 c0 test %eax,%eax 801014b1: 0f 48 c2 cmovs %edx,%eax 801014b4: c1 f8 03 sar $0x3,%eax 801014b7: 8b 55 ec mov -0x14(%ebp),%edx 801014ba: 0f b6 54 02 18 movzbl 0x18(%edx,%eax,1),%edx 801014bf: 89 d1 mov %edx,%ecx 801014c1: 8b 55 e8 mov -0x18(%ebp),%edx 801014c4: 09 ca or %ecx,%edx 801014c6: 89 d1 mov %edx,%ecx 801014c8: 8b 55 ec mov -0x14(%ebp),%edx 801014cb: 88 4c 02 18 mov %cl,0x18(%edx,%eax,1) log_write(bp); 801014cf: 83 ec 0c sub $0xc,%esp 801014d2: ff 75 ec pushl -0x14(%ebp) 801014d5: e8 ab 22 00 00 call 80103785 <log_write> 801014da: 83 c4 10 add $0x10,%esp brelse(bp); 801014dd: 83 ec 0c sub $0xc,%esp 801014e0: ff 75 ec pushl -0x14(%ebp) 801014e3: e8 46 ed ff ff call 8010022e <brelse> 801014e8: 83 c4 10 add $0x10,%esp bzero(dev, b + bi); 801014eb: 8b 55 f4 mov -0xc(%ebp),%edx 801014ee: 8b 45 f0 mov -0x10(%ebp),%eax 801014f1: 01 c2 add %eax,%edx 801014f3: 8b 45 08 mov 0x8(%ebp),%eax 801014f6: 83 ec 08 sub $0x8,%esp 801014f9: 52 push %edx 801014fa: 50 push %eax 801014fb: e8 c6 fe ff ff call 801013c6 <bzero> 80101500: 83 c4 10 add $0x10,%esp return b + bi; 80101503: 8b 55 f4 mov -0xc(%ebp),%edx 80101506: 8b 45 f0 mov -0x10(%ebp),%eax 80101509: 01 d0 add %edx,%eax 8010150b: eb 57 jmp 80101564 <balloc+0x14a> struct buf *bp; bp = 0; for(b = 0; b < sb.size; b += BPB){ bp = bread(dev, BBLOCK(b, sb)); for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ 8010150d: 83 45 f0 01 addl $0x1,-0x10(%ebp) 80101511: 81 7d f0 ff 0f 00 00 cmpl $0xfff,-0x10(%ebp) 80101518: 7f 17 jg 80101531 <balloc+0x117> 8010151a: 8b 55 f4 mov -0xc(%ebp),%edx 8010151d: 8b 45 f0 mov -0x10(%ebp),%eax 80101520: 01 d0 add %edx,%eax 80101522: 89 c2 mov %eax,%edx 80101524: a1 20 22 11 80 mov 0x80112220,%eax 80101529: 39 c2 cmp %eax,%edx 8010152b: 0f 82 3a ff ff ff jb 8010146b <balloc+0x51> brelse(bp); bzero(dev, b + bi); return b + bi; } } brelse(bp); 80101531: 83 ec 0c sub $0xc,%esp 80101534: ff 75 ec pushl -0x14(%ebp) 80101537: e8 f2 ec ff ff call 8010022e <brelse> 8010153c: 83 c4 10 add $0x10,%esp { int b, bi, m; struct buf *bp; bp = 0; for(b = 0; b < sb.size; b += BPB){ 8010153f: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 80101546: 8b 15 20 22 11 80 mov 0x80112220,%edx 8010154c: 8b 45 f4 mov -0xc(%ebp),%eax 8010154f: 39 c2 cmp %eax,%edx 80101551: 0f 87 dc fe ff ff ja 80101433 <balloc+0x19> return b + bi; } } brelse(bp); } panic("balloc: out of blocks"); 80101557: 83 ec 0c sub $0xc,%esp 8010155a: 68 94 8a 10 80 push $0x80108a94 8010155f: e8 02 f0 ff ff call 80100566 <panic> } 80101564: c9 leave 80101565: c3 ret 80101566 <bfree>: // Free a disk block. static void bfree(int dev, uint b) { 80101566: 55 push %ebp 80101567: 89 e5 mov %esp,%ebp 80101569: 83 ec 18 sub $0x18,%esp struct buf *bp; int bi, m; readsb(dev, &sb); 8010156c: 83 ec 08 sub $0x8,%esp 8010156f: 68 20 22 11 80 push $0x80112220 80101574: ff 75 08 pushl 0x8(%ebp) 80101577: e8 08 fe ff ff call 80101384 <readsb> 8010157c: 83 c4 10 add $0x10,%esp bp = bread(dev, BBLOCK(b, sb)); 8010157f: 8b 45 0c mov 0xc(%ebp),%eax 80101582: c1 e8 0c shr $0xc,%eax 80101585: 89 c2 mov %eax,%edx 80101587: a1 38 22 11 80 mov 0x80112238,%eax 8010158c: 01 c2 add %eax,%edx 8010158e: 8b 45 08 mov 0x8(%ebp),%eax 80101591: 83 ec 08 sub $0x8,%esp 80101594: 52 push %edx 80101595: 50 push %eax 80101596: e8 1b ec ff ff call 801001b6 <bread> 8010159b: 83 c4 10 add $0x10,%esp 8010159e: 89 45 f4 mov %eax,-0xc(%ebp) bi = b % BPB; 801015a1: 8b 45 0c mov 0xc(%ebp),%eax 801015a4: 25 ff 0f 00 00 and $0xfff,%eax 801015a9: 89 45 f0 mov %eax,-0x10(%ebp) m = 1 << (bi % 8); 801015ac: 8b 45 f0 mov -0x10(%ebp),%eax 801015af: 99 cltd 801015b0: c1 ea 1d shr $0x1d,%edx 801015b3: 01 d0 add %edx,%eax 801015b5: 83 e0 07 and $0x7,%eax 801015b8: 29 d0 sub %edx,%eax 801015ba: ba 01 00 00 00 mov $0x1,%edx 801015bf: 89 c1 mov %eax,%ecx 801015c1: d3 e2 shl %cl,%edx 801015c3: 89 d0 mov %edx,%eax 801015c5: 89 45 ec mov %eax,-0x14(%ebp) if((bp->data[bi/8] & m) == 0) 801015c8: 8b 45 f0 mov -0x10(%ebp),%eax 801015cb: 8d 50 07 lea 0x7(%eax),%edx 801015ce: 85 c0 test %eax,%eax 801015d0: 0f 48 c2 cmovs %edx,%eax 801015d3: c1 f8 03 sar $0x3,%eax 801015d6: 89 c2 mov %eax,%edx 801015d8: 8b 45 f4 mov -0xc(%ebp),%eax 801015db: 0f b6 44 10 18 movzbl 0x18(%eax,%edx,1),%eax 801015e0: 0f b6 c0 movzbl %al,%eax 801015e3: 23 45 ec and -0x14(%ebp),%eax 801015e6: 85 c0 test %eax,%eax 801015e8: 75 0d jne 801015f7 <bfree+0x91> panic("freeing free block"); 801015ea: 83 ec 0c sub $0xc,%esp 801015ed: 68 aa 8a 10 80 push $0x80108aaa 801015f2: e8 6f ef ff ff call 80100566 <panic> bp->data[bi/8] &= ~m; 801015f7: 8b 45 f0 mov -0x10(%ebp),%eax 801015fa: 8d 50 07 lea 0x7(%eax),%edx 801015fd: 85 c0 test %eax,%eax 801015ff: 0f 48 c2 cmovs %edx,%eax 80101602: c1 f8 03 sar $0x3,%eax 80101605: 8b 55 f4 mov -0xc(%ebp),%edx 80101608: 0f b6 54 02 18 movzbl 0x18(%edx,%eax,1),%edx 8010160d: 89 d1 mov %edx,%ecx 8010160f: 8b 55 ec mov -0x14(%ebp),%edx 80101612: f7 d2 not %edx 80101614: 21 ca and %ecx,%edx 80101616: 89 d1 mov %edx,%ecx 80101618: 8b 55 f4 mov -0xc(%ebp),%edx 8010161b: 88 4c 02 18 mov %cl,0x18(%edx,%eax,1) log_write(bp); 8010161f: 83 ec 0c sub $0xc,%esp 80101622: ff 75 f4 pushl -0xc(%ebp) 80101625: e8 5b 21 00 00 call 80103785 <log_write> 8010162a: 83 c4 10 add $0x10,%esp brelse(bp); 8010162d: 83 ec 0c sub $0xc,%esp 80101630: ff 75 f4 pushl -0xc(%ebp) 80101633: e8 f6 eb ff ff call 8010022e <brelse> 80101638: 83 c4 10 add $0x10,%esp } 8010163b: 90 nop 8010163c: c9 leave 8010163d: c3 ret 8010163e <iinit>: struct inode inode[NINODE]; } icache; void iinit(int dev) { 8010163e: 55 push %ebp 8010163f: 89 e5 mov %esp,%ebp 80101641: 57 push %edi 80101642: 56 push %esi 80101643: 53 push %ebx 80101644: 83 ec 1c sub $0x1c,%esp initlock(&icache.lock, "icache"); 80101647: 83 ec 08 sub $0x8,%esp 8010164a: 68 bd 8a 10 80 push $0x80108abd 8010164f: 68 40 22 11 80 push $0x80112240 80101654: e8 50 3e 00 00 call 801054a9 <initlock> 80101659: 83 c4 10 add $0x10,%esp readsb(dev, &sb); 8010165c: 83 ec 08 sub $0x8,%esp 8010165f: 68 20 22 11 80 push $0x80112220 80101664: ff 75 08 pushl 0x8(%ebp) 80101667: e8 18 fd ff ff call 80101384 <readsb> 8010166c: 83 c4 10 add $0x10,%esp cprintf("sb: size %d nblocks %d ninodes %d nlog %d logstart %d inodestart %d bmap start %d\n", sb.size, 8010166f: a1 38 22 11 80 mov 0x80112238,%eax 80101674: 89 45 e4 mov %eax,-0x1c(%ebp) 80101677: 8b 3d 34 22 11 80 mov 0x80112234,%edi 8010167d: 8b 35 30 22 11 80 mov 0x80112230,%esi 80101683: 8b 1d 2c 22 11 80 mov 0x8011222c,%ebx 80101689: 8b 0d 28 22 11 80 mov 0x80112228,%ecx 8010168f: 8b 15 24 22 11 80 mov 0x80112224,%edx 80101695: a1 20 22 11 80 mov 0x80112220,%eax 8010169a: ff 75 e4 pushl -0x1c(%ebp) 8010169d: 57 push %edi 8010169e: 56 push %esi 8010169f: 53 push %ebx 801016a0: 51 push %ecx 801016a1: 52 push %edx 801016a2: 50 push %eax 801016a3: 68 c4 8a 10 80 push $0x80108ac4 801016a8: e8 19 ed ff ff call 801003c6 <cprintf> 801016ad: 83 c4 20 add $0x20,%esp sb.nblocks, sb.ninodes, sb.nlog, sb.logstart, sb.inodestart, sb.bmapstart); } 801016b0: 90 nop 801016b1: 8d 65 f4 lea -0xc(%ebp),%esp 801016b4: 5b pop %ebx 801016b5: 5e pop %esi 801016b6: 5f pop %edi 801016b7: 5d pop %ebp 801016b8: c3 ret 801016b9 <ialloc>: //PAGEBREAK! // Allocate a new inode with the given type on device dev. // A free inode has a type of zero. struct inode* ialloc(uint dev, short type) { 801016b9: 55 push %ebp 801016ba: 89 e5 mov %esp,%ebp 801016bc: 83 ec 28 sub $0x28,%esp 801016bf: 8b 45 0c mov 0xc(%ebp),%eax 801016c2: 66 89 45 e4 mov %ax,-0x1c(%ebp) int inum; struct buf *bp; struct dinode *dip; for(inum = 1; inum < sb.ninodes; inum++){ 801016c6: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) 801016cd: e9 9e 00 00 00 jmp 80101770 <ialloc+0xb7> bp = bread(dev, IBLOCK(inum, sb)); 801016d2: 8b 45 f4 mov -0xc(%ebp),%eax 801016d5: c1 e8 03 shr $0x3,%eax 801016d8: 89 c2 mov %eax,%edx 801016da: a1 34 22 11 80 mov 0x80112234,%eax 801016df: 01 d0 add %edx,%eax 801016e1: 83 ec 08 sub $0x8,%esp 801016e4: 50 push %eax 801016e5: ff 75 08 pushl 0x8(%ebp) 801016e8: e8 c9 ea ff ff call 801001b6 <bread> 801016ed: 83 c4 10 add $0x10,%esp 801016f0: 89 45 f0 mov %eax,-0x10(%ebp) dip = (struct dinode*)bp->data + inum%IPB; 801016f3: 8b 45 f0 mov -0x10(%ebp),%eax 801016f6: 8d 50 18 lea 0x18(%eax),%edx 801016f9: 8b 45 f4 mov -0xc(%ebp),%eax 801016fc: 83 e0 07 and $0x7,%eax 801016ff: c1 e0 06 shl $0x6,%eax 80101702: 01 d0 add %edx,%eax 80101704: 89 45 ec mov %eax,-0x14(%ebp) if(dip->type == 0){ // a free inode 80101707: 8b 45 ec mov -0x14(%ebp),%eax 8010170a: 0f b7 00 movzwl (%eax),%eax 8010170d: 66 85 c0 test %ax,%ax 80101710: 75 4c jne 8010175e <ialloc+0xa5> memset(dip, 0, sizeof(*dip)); 80101712: 83 ec 04 sub $0x4,%esp 80101715: 6a 40 push $0x40 80101717: 6a 00 push $0x0 80101719: ff 75 ec pushl -0x14(%ebp) 8010171c: e8 0d 40 00 00 call 8010572e <memset> 80101721: 83 c4 10 add $0x10,%esp dip->type = type; 80101724: 8b 45 ec mov -0x14(%ebp),%eax 80101727: 0f b7 55 e4 movzwl -0x1c(%ebp),%edx 8010172b: 66 89 10 mov %dx,(%eax) log_write(bp); // mark it allocated on the disk 8010172e: 83 ec 0c sub $0xc,%esp 80101731: ff 75 f0 pushl -0x10(%ebp) 80101734: e8 4c 20 00 00 call 80103785 <log_write> 80101739: 83 c4 10 add $0x10,%esp brelse(bp); 8010173c: 83 ec 0c sub $0xc,%esp 8010173f: ff 75 f0 pushl -0x10(%ebp) 80101742: e8 e7 ea ff ff call 8010022e <brelse> 80101747: 83 c4 10 add $0x10,%esp return iget(dev, inum); 8010174a: 8b 45 f4 mov -0xc(%ebp),%eax 8010174d: 83 ec 08 sub $0x8,%esp 80101750: 50 push %eax 80101751: ff 75 08 pushl 0x8(%ebp) 80101754: e8 f8 00 00 00 call 80101851 <iget> 80101759: 83 c4 10 add $0x10,%esp 8010175c: eb 30 jmp 8010178e <ialloc+0xd5> } brelse(bp); 8010175e: 83 ec 0c sub $0xc,%esp 80101761: ff 75 f0 pushl -0x10(%ebp) 80101764: e8 c5 ea ff ff call 8010022e <brelse> 80101769: 83 c4 10 add $0x10,%esp { int inum; struct buf *bp; struct dinode *dip; for(inum = 1; inum < sb.ninodes; inum++){ 8010176c: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80101770: 8b 15 28 22 11 80 mov 0x80112228,%edx 80101776: 8b 45 f4 mov -0xc(%ebp),%eax 80101779: 39 c2 cmp %eax,%edx 8010177b: 0f 87 51 ff ff ff ja 801016d2 <ialloc+0x19> brelse(bp); return iget(dev, inum); } brelse(bp); } panic("ialloc: no inodes"); 80101781: 83 ec 0c sub $0xc,%esp 80101784: 68 17 8b 10 80 push $0x80108b17 80101789: e8 d8 ed ff ff call 80100566 <panic> } 8010178e: c9 leave 8010178f: c3 ret 80101790 <iupdate>: // Copy a modified in-memory inode to disk. void iupdate(struct inode *ip) { 80101790: 55 push %ebp 80101791: 89 e5 mov %esp,%ebp 80101793: 83 ec 18 sub $0x18,%esp struct buf *bp; struct dinode *dip; bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 80101796: 8b 45 08 mov 0x8(%ebp),%eax 80101799: 8b 40 04 mov 0x4(%eax),%eax 8010179c: c1 e8 03 shr $0x3,%eax 8010179f: 89 c2 mov %eax,%edx 801017a1: a1 34 22 11 80 mov 0x80112234,%eax 801017a6: 01 c2 add %eax,%edx 801017a8: 8b 45 08 mov 0x8(%ebp),%eax 801017ab: 8b 00 mov (%eax),%eax 801017ad: 83 ec 08 sub $0x8,%esp 801017b0: 52 push %edx 801017b1: 50 push %eax 801017b2: e8 ff e9 ff ff call 801001b6 <bread> 801017b7: 83 c4 10 add $0x10,%esp 801017ba: 89 45 f4 mov %eax,-0xc(%ebp) dip = (struct dinode*)bp->data + ip->inum%IPB; 801017bd: 8b 45 f4 mov -0xc(%ebp),%eax 801017c0: 8d 50 18 lea 0x18(%eax),%edx 801017c3: 8b 45 08 mov 0x8(%ebp),%eax 801017c6: 8b 40 04 mov 0x4(%eax),%eax 801017c9: 83 e0 07 and $0x7,%eax 801017cc: c1 e0 06 shl $0x6,%eax 801017cf: 01 d0 add %edx,%eax 801017d1: 89 45 f0 mov %eax,-0x10(%ebp) dip->type = ip->type; 801017d4: 8b 45 08 mov 0x8(%ebp),%eax 801017d7: 0f b7 50 10 movzwl 0x10(%eax),%edx 801017db: 8b 45 f0 mov -0x10(%ebp),%eax 801017de: 66 89 10 mov %dx,(%eax) dip->major = ip->major; 801017e1: 8b 45 08 mov 0x8(%ebp),%eax 801017e4: 0f b7 50 12 movzwl 0x12(%eax),%edx 801017e8: 8b 45 f0 mov -0x10(%ebp),%eax 801017eb: 66 89 50 02 mov %dx,0x2(%eax) dip->minor = ip->minor; 801017ef: 8b 45 08 mov 0x8(%ebp),%eax 801017f2: 0f b7 50 14 movzwl 0x14(%eax),%edx 801017f6: 8b 45 f0 mov -0x10(%ebp),%eax 801017f9: 66 89 50 04 mov %dx,0x4(%eax) dip->nlink = ip->nlink; 801017fd: 8b 45 08 mov 0x8(%ebp),%eax 80101800: 0f b7 50 16 movzwl 0x16(%eax),%edx 80101804: 8b 45 f0 mov -0x10(%ebp),%eax 80101807: 66 89 50 06 mov %dx,0x6(%eax) dip->size = ip->size; 8010180b: 8b 45 08 mov 0x8(%ebp),%eax 8010180e: 8b 50 18 mov 0x18(%eax),%edx 80101811: 8b 45 f0 mov -0x10(%ebp),%eax 80101814: 89 50 08 mov %edx,0x8(%eax) memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 80101817: 8b 45 08 mov 0x8(%ebp),%eax 8010181a: 8d 50 1c lea 0x1c(%eax),%edx 8010181d: 8b 45 f0 mov -0x10(%ebp),%eax 80101820: 83 c0 0c add $0xc,%eax 80101823: 83 ec 04 sub $0x4,%esp 80101826: 6a 34 push $0x34 80101828: 52 push %edx 80101829: 50 push %eax 8010182a: e8 be 3f 00 00 call 801057ed <memmove> 8010182f: 83 c4 10 add $0x10,%esp log_write(bp); 80101832: 83 ec 0c sub $0xc,%esp 80101835: ff 75 f4 pushl -0xc(%ebp) 80101838: e8 48 1f 00 00 call 80103785 <log_write> 8010183d: 83 c4 10 add $0x10,%esp brelse(bp); 80101840: 83 ec 0c sub $0xc,%esp 80101843: ff 75 f4 pushl -0xc(%ebp) 80101846: e8 e3 e9 ff ff call 8010022e <brelse> 8010184b: 83 c4 10 add $0x10,%esp } 8010184e: 90 nop 8010184f: c9 leave 80101850: c3 ret 80101851 <iget>: // Find the inode with number inum on device dev // and return the in-memory copy. Does not lock // the inode and does not read it from disk. static struct inode* iget(uint dev, uint inum) { 80101851: 55 push %ebp 80101852: 89 e5 mov %esp,%ebp 80101854: 83 ec 18 sub $0x18,%esp struct inode *ip, *empty; acquire(&icache.lock); 80101857: 83 ec 0c sub $0xc,%esp 8010185a: 68 40 22 11 80 push $0x80112240 8010185f: e8 67 3c 00 00 call 801054cb <acquire> 80101864: 83 c4 10 add $0x10,%esp // Is the inode already cached? empty = 0; 80101867: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 8010186e: c7 45 f4 74 22 11 80 movl $0x80112274,-0xc(%ebp) 80101875: eb 5d jmp 801018d4 <iget+0x83> if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ 80101877: 8b 45 f4 mov -0xc(%ebp),%eax 8010187a: 8b 40 08 mov 0x8(%eax),%eax 8010187d: 85 c0 test %eax,%eax 8010187f: 7e 39 jle 801018ba <iget+0x69> 80101881: 8b 45 f4 mov -0xc(%ebp),%eax 80101884: 8b 00 mov (%eax),%eax 80101886: 3b 45 08 cmp 0x8(%ebp),%eax 80101889: 75 2f jne 801018ba <iget+0x69> 8010188b: 8b 45 f4 mov -0xc(%ebp),%eax 8010188e: 8b 40 04 mov 0x4(%eax),%eax 80101891: 3b 45 0c cmp 0xc(%ebp),%eax 80101894: 75 24 jne 801018ba <iget+0x69> ip->ref++; 80101896: 8b 45 f4 mov -0xc(%ebp),%eax 80101899: 8b 40 08 mov 0x8(%eax),%eax 8010189c: 8d 50 01 lea 0x1(%eax),%edx 8010189f: 8b 45 f4 mov -0xc(%ebp),%eax 801018a2: 89 50 08 mov %edx,0x8(%eax) release(&icache.lock); 801018a5: 83 ec 0c sub $0xc,%esp 801018a8: 68 40 22 11 80 push $0x80112240 801018ad: e8 80 3c 00 00 call 80105532 <release> 801018b2: 83 c4 10 add $0x10,%esp return ip; 801018b5: 8b 45 f4 mov -0xc(%ebp),%eax 801018b8: eb 74 jmp 8010192e <iget+0xdd> } if(empty == 0 && ip->ref == 0) // Remember empty slot. 801018ba: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801018be: 75 10 jne 801018d0 <iget+0x7f> 801018c0: 8b 45 f4 mov -0xc(%ebp),%eax 801018c3: 8b 40 08 mov 0x8(%eax),%eax 801018c6: 85 c0 test %eax,%eax 801018c8: 75 06 jne 801018d0 <iget+0x7f> empty = ip; 801018ca: 8b 45 f4 mov -0xc(%ebp),%eax 801018cd: 89 45 f0 mov %eax,-0x10(%ebp) acquire(&icache.lock); // Is the inode already cached? empty = 0; for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 801018d0: 83 45 f4 50 addl $0x50,-0xc(%ebp) 801018d4: 81 7d f4 14 32 11 80 cmpl $0x80113214,-0xc(%ebp) 801018db: 72 9a jb 80101877 <iget+0x26> if(empty == 0 && ip->ref == 0) // Remember empty slot. empty = ip; } // Recycle an inode cache entry. if(empty == 0) 801018dd: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801018e1: 75 0d jne 801018f0 <iget+0x9f> panic("iget: no inodes"); 801018e3: 83 ec 0c sub $0xc,%esp 801018e6: 68 29 8b 10 80 push $0x80108b29 801018eb: e8 76 ec ff ff call 80100566 <panic> ip = empty; 801018f0: 8b 45 f0 mov -0x10(%ebp),%eax 801018f3: 89 45 f4 mov %eax,-0xc(%ebp) ip->dev = dev; 801018f6: 8b 45 f4 mov -0xc(%ebp),%eax 801018f9: 8b 55 08 mov 0x8(%ebp),%edx 801018fc: 89 10 mov %edx,(%eax) ip->inum = inum; 801018fe: 8b 45 f4 mov -0xc(%ebp),%eax 80101901: 8b 55 0c mov 0xc(%ebp),%edx 80101904: 89 50 04 mov %edx,0x4(%eax) ip->ref = 1; 80101907: 8b 45 f4 mov -0xc(%ebp),%eax 8010190a: c7 40 08 01 00 00 00 movl $0x1,0x8(%eax) ip->flags = 0; 80101911: 8b 45 f4 mov -0xc(%ebp),%eax 80101914: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) release(&icache.lock); 8010191b: 83 ec 0c sub $0xc,%esp 8010191e: 68 40 22 11 80 push $0x80112240 80101923: e8 0a 3c 00 00 call 80105532 <release> 80101928: 83 c4 10 add $0x10,%esp return ip; 8010192b: 8b 45 f4 mov -0xc(%ebp),%eax } 8010192e: c9 leave 8010192f: c3 ret 80101930 <idup>: // Increment reference count for ip. // Returns ip to enable ip = idup(ip1) idiom. struct inode* idup(struct inode *ip) { 80101930: 55 push %ebp 80101931: 89 e5 mov %esp,%ebp 80101933: 83 ec 08 sub $0x8,%esp acquire(&icache.lock); 80101936: 83 ec 0c sub $0xc,%esp 80101939: 68 40 22 11 80 push $0x80112240 8010193e: e8 88 3b 00 00 call 801054cb <acquire> 80101943: 83 c4 10 add $0x10,%esp ip->ref++; 80101946: 8b 45 08 mov 0x8(%ebp),%eax 80101949: 8b 40 08 mov 0x8(%eax),%eax 8010194c: 8d 50 01 lea 0x1(%eax),%edx 8010194f: 8b 45 08 mov 0x8(%ebp),%eax 80101952: 89 50 08 mov %edx,0x8(%eax) release(&icache.lock); 80101955: 83 ec 0c sub $0xc,%esp 80101958: 68 40 22 11 80 push $0x80112240 8010195d: e8 d0 3b 00 00 call 80105532 <release> 80101962: 83 c4 10 add $0x10,%esp return ip; 80101965: 8b 45 08 mov 0x8(%ebp),%eax } 80101968: c9 leave 80101969: c3 ret 8010196a <ilock>: // Lock the given inode. // Reads the inode from disk if necessary. void ilock(struct inode *ip) { 8010196a: 55 push %ebp 8010196b: 89 e5 mov %esp,%ebp 8010196d: 83 ec 18 sub $0x18,%esp struct buf *bp; struct dinode *dip; if(ip == 0 || ip->ref < 1) 80101970: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80101974: 74 0a je 80101980 <ilock+0x16> 80101976: 8b 45 08 mov 0x8(%ebp),%eax 80101979: 8b 40 08 mov 0x8(%eax),%eax 8010197c: 85 c0 test %eax,%eax 8010197e: 7f 0d jg 8010198d <ilock+0x23> panic("ilock"); 80101980: 83 ec 0c sub $0xc,%esp 80101983: 68 39 8b 10 80 push $0x80108b39 80101988: e8 d9 eb ff ff call 80100566 <panic> acquire(&icache.lock); 8010198d: 83 ec 0c sub $0xc,%esp 80101990: 68 40 22 11 80 push $0x80112240 80101995: e8 31 3b 00 00 call 801054cb <acquire> 8010199a: 83 c4 10 add $0x10,%esp while(ip->flags & I_BUSY) 8010199d: eb 13 jmp 801019b2 <ilock+0x48> sleep(ip, &icache.lock); 8010199f: 83 ec 08 sub $0x8,%esp 801019a2: 68 40 22 11 80 push $0x80112240 801019a7: ff 75 08 pushl 0x8(%ebp) 801019aa: e8 1a 38 00 00 call 801051c9 <sleep> 801019af: 83 c4 10 add $0x10,%esp if(ip == 0 || ip->ref < 1) panic("ilock"); acquire(&icache.lock); while(ip->flags & I_BUSY) 801019b2: 8b 45 08 mov 0x8(%ebp),%eax 801019b5: 8b 40 0c mov 0xc(%eax),%eax 801019b8: 83 e0 01 and $0x1,%eax 801019bb: 85 c0 test %eax,%eax 801019bd: 75 e0 jne 8010199f <ilock+0x35> sleep(ip, &icache.lock); ip->flags |= I_BUSY; 801019bf: 8b 45 08 mov 0x8(%ebp),%eax 801019c2: 8b 40 0c mov 0xc(%eax),%eax 801019c5: 83 c8 01 or $0x1,%eax 801019c8: 89 c2 mov %eax,%edx 801019ca: 8b 45 08 mov 0x8(%ebp),%eax 801019cd: 89 50 0c mov %edx,0xc(%eax) release(&icache.lock); 801019d0: 83 ec 0c sub $0xc,%esp 801019d3: 68 40 22 11 80 push $0x80112240 801019d8: e8 55 3b 00 00 call 80105532 <release> 801019dd: 83 c4 10 add $0x10,%esp if(!(ip->flags & I_VALID)){ 801019e0: 8b 45 08 mov 0x8(%ebp),%eax 801019e3: 8b 40 0c mov 0xc(%eax),%eax 801019e6: 83 e0 02 and $0x2,%eax 801019e9: 85 c0 test %eax,%eax 801019eb: 0f 85 d4 00 00 00 jne 80101ac5 <ilock+0x15b> bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801019f1: 8b 45 08 mov 0x8(%ebp),%eax 801019f4: 8b 40 04 mov 0x4(%eax),%eax 801019f7: c1 e8 03 shr $0x3,%eax 801019fa: 89 c2 mov %eax,%edx 801019fc: a1 34 22 11 80 mov 0x80112234,%eax 80101a01: 01 c2 add %eax,%edx 80101a03: 8b 45 08 mov 0x8(%ebp),%eax 80101a06: 8b 00 mov (%eax),%eax 80101a08: 83 ec 08 sub $0x8,%esp 80101a0b: 52 push %edx 80101a0c: 50 push %eax 80101a0d: e8 a4 e7 ff ff call 801001b6 <bread> 80101a12: 83 c4 10 add $0x10,%esp 80101a15: 89 45 f4 mov %eax,-0xc(%ebp) dip = (struct dinode*)bp->data + ip->inum%IPB; 80101a18: 8b 45 f4 mov -0xc(%ebp),%eax 80101a1b: 8d 50 18 lea 0x18(%eax),%edx 80101a1e: 8b 45 08 mov 0x8(%ebp),%eax 80101a21: 8b 40 04 mov 0x4(%eax),%eax 80101a24: 83 e0 07 and $0x7,%eax 80101a27: c1 e0 06 shl $0x6,%eax 80101a2a: 01 d0 add %edx,%eax 80101a2c: 89 45 f0 mov %eax,-0x10(%ebp) ip->type = dip->type; 80101a2f: 8b 45 f0 mov -0x10(%ebp),%eax 80101a32: 0f b7 10 movzwl (%eax),%edx 80101a35: 8b 45 08 mov 0x8(%ebp),%eax 80101a38: 66 89 50 10 mov %dx,0x10(%eax) ip->major = dip->major; 80101a3c: 8b 45 f0 mov -0x10(%ebp),%eax 80101a3f: 0f b7 50 02 movzwl 0x2(%eax),%edx 80101a43: 8b 45 08 mov 0x8(%ebp),%eax 80101a46: 66 89 50 12 mov %dx,0x12(%eax) ip->minor = dip->minor; 80101a4a: 8b 45 f0 mov -0x10(%ebp),%eax 80101a4d: 0f b7 50 04 movzwl 0x4(%eax),%edx 80101a51: 8b 45 08 mov 0x8(%ebp),%eax 80101a54: 66 89 50 14 mov %dx,0x14(%eax) ip->nlink = dip->nlink; 80101a58: 8b 45 f0 mov -0x10(%ebp),%eax 80101a5b: 0f b7 50 06 movzwl 0x6(%eax),%edx 80101a5f: 8b 45 08 mov 0x8(%ebp),%eax 80101a62: 66 89 50 16 mov %dx,0x16(%eax) ip->size = dip->size; 80101a66: 8b 45 f0 mov -0x10(%ebp),%eax 80101a69: 8b 50 08 mov 0x8(%eax),%edx 80101a6c: 8b 45 08 mov 0x8(%ebp),%eax 80101a6f: 89 50 18 mov %edx,0x18(%eax) memmove(ip->addrs, dip->addrs, sizeof(ip->addrs)); 80101a72: 8b 45 f0 mov -0x10(%ebp),%eax 80101a75: 8d 50 0c lea 0xc(%eax),%edx 80101a78: 8b 45 08 mov 0x8(%ebp),%eax 80101a7b: 83 c0 1c add $0x1c,%eax 80101a7e: 83 ec 04 sub $0x4,%esp 80101a81: 6a 34 push $0x34 80101a83: 52 push %edx 80101a84: 50 push %eax 80101a85: e8 63 3d 00 00 call 801057ed <memmove> 80101a8a: 83 c4 10 add $0x10,%esp brelse(bp); 80101a8d: 83 ec 0c sub $0xc,%esp 80101a90: ff 75 f4 pushl -0xc(%ebp) 80101a93: e8 96 e7 ff ff call 8010022e <brelse> 80101a98: 83 c4 10 add $0x10,%esp ip->flags |= I_VALID; 80101a9b: 8b 45 08 mov 0x8(%ebp),%eax 80101a9e: 8b 40 0c mov 0xc(%eax),%eax 80101aa1: 83 c8 02 or $0x2,%eax 80101aa4: 89 c2 mov %eax,%edx 80101aa6: 8b 45 08 mov 0x8(%ebp),%eax 80101aa9: 89 50 0c mov %edx,0xc(%eax) if(ip->type == 0) 80101aac: 8b 45 08 mov 0x8(%ebp),%eax 80101aaf: 0f b7 40 10 movzwl 0x10(%eax),%eax 80101ab3: 66 85 c0 test %ax,%ax 80101ab6: 75 0d jne 80101ac5 <ilock+0x15b> panic("ilock: no type"); 80101ab8: 83 ec 0c sub $0xc,%esp 80101abb: 68 3f 8b 10 80 push $0x80108b3f 80101ac0: e8 a1 ea ff ff call 80100566 <panic> } } 80101ac5: 90 nop 80101ac6: c9 leave 80101ac7: c3 ret 80101ac8 <iunlock>: // Unlock the given inode. void iunlock(struct inode *ip) { 80101ac8: 55 push %ebp 80101ac9: 89 e5 mov %esp,%ebp 80101acb: 83 ec 08 sub $0x8,%esp if(ip == 0 || !(ip->flags & I_BUSY) || ip->ref < 1) 80101ace: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80101ad2: 74 17 je 80101aeb <iunlock+0x23> 80101ad4: 8b 45 08 mov 0x8(%ebp),%eax 80101ad7: 8b 40 0c mov 0xc(%eax),%eax 80101ada: 83 e0 01 and $0x1,%eax 80101add: 85 c0 test %eax,%eax 80101adf: 74 0a je 80101aeb <iunlock+0x23> 80101ae1: 8b 45 08 mov 0x8(%ebp),%eax 80101ae4: 8b 40 08 mov 0x8(%eax),%eax 80101ae7: 85 c0 test %eax,%eax 80101ae9: 7f 0d jg 80101af8 <iunlock+0x30> panic("iunlock"); 80101aeb: 83 ec 0c sub $0xc,%esp 80101aee: 68 4e 8b 10 80 push $0x80108b4e 80101af3: e8 6e ea ff ff call 80100566 <panic> acquire(&icache.lock); 80101af8: 83 ec 0c sub $0xc,%esp 80101afb: 68 40 22 11 80 push $0x80112240 80101b00: e8 c6 39 00 00 call 801054cb <acquire> 80101b05: 83 c4 10 add $0x10,%esp ip->flags &= ~I_BUSY; 80101b08: 8b 45 08 mov 0x8(%ebp),%eax 80101b0b: 8b 40 0c mov 0xc(%eax),%eax 80101b0e: 83 e0 fe and $0xfffffffe,%eax 80101b11: 89 c2 mov %eax,%edx 80101b13: 8b 45 08 mov 0x8(%ebp),%eax 80101b16: 89 50 0c mov %edx,0xc(%eax) wakeup(ip); 80101b19: 83 ec 0c sub $0xc,%esp 80101b1c: ff 75 08 pushl 0x8(%ebp) 80101b1f: e8 93 37 00 00 call 801052b7 <wakeup> 80101b24: 83 c4 10 add $0x10,%esp release(&icache.lock); 80101b27: 83 ec 0c sub $0xc,%esp 80101b2a: 68 40 22 11 80 push $0x80112240 80101b2f: e8 fe 39 00 00 call 80105532 <release> 80101b34: 83 c4 10 add $0x10,%esp } 80101b37: 90 nop 80101b38: c9 leave 80101b39: c3 ret 80101b3a <iput>: // to it, free the inode (and its content) on disk. // All calls to iput() must be inside a transaction in // case it has to free the inode. void iput(struct inode *ip) { 80101b3a: 55 push %ebp 80101b3b: 89 e5 mov %esp,%ebp 80101b3d: 83 ec 08 sub $0x8,%esp acquire(&icache.lock); 80101b40: 83 ec 0c sub $0xc,%esp 80101b43: 68 40 22 11 80 push $0x80112240 80101b48: e8 7e 39 00 00 call 801054cb <acquire> 80101b4d: 83 c4 10 add $0x10,%esp if(ip->ref == 1 && (ip->flags & I_VALID) && ip->nlink == 0){ 80101b50: 8b 45 08 mov 0x8(%ebp),%eax 80101b53: 8b 40 08 mov 0x8(%eax),%eax 80101b56: 83 f8 01 cmp $0x1,%eax 80101b59: 0f 85 a9 00 00 00 jne 80101c08 <iput+0xce> 80101b5f: 8b 45 08 mov 0x8(%ebp),%eax 80101b62: 8b 40 0c mov 0xc(%eax),%eax 80101b65: 83 e0 02 and $0x2,%eax 80101b68: 85 c0 test %eax,%eax 80101b6a: 0f 84 98 00 00 00 je 80101c08 <iput+0xce> 80101b70: 8b 45 08 mov 0x8(%ebp),%eax 80101b73: 0f b7 40 16 movzwl 0x16(%eax),%eax 80101b77: 66 85 c0 test %ax,%ax 80101b7a: 0f 85 88 00 00 00 jne 80101c08 <iput+0xce> // inode has no links and no other references: truncate and free. if(ip->flags & I_BUSY) 80101b80: 8b 45 08 mov 0x8(%ebp),%eax 80101b83: 8b 40 0c mov 0xc(%eax),%eax 80101b86: 83 e0 01 and $0x1,%eax 80101b89: 85 c0 test %eax,%eax 80101b8b: 74 0d je 80101b9a <iput+0x60> panic("iput busy"); 80101b8d: 83 ec 0c sub $0xc,%esp 80101b90: 68 56 8b 10 80 push $0x80108b56 80101b95: e8 cc e9 ff ff call 80100566 <panic> ip->flags |= I_BUSY; 80101b9a: 8b 45 08 mov 0x8(%ebp),%eax 80101b9d: 8b 40 0c mov 0xc(%eax),%eax 80101ba0: 83 c8 01 or $0x1,%eax 80101ba3: 89 c2 mov %eax,%edx 80101ba5: 8b 45 08 mov 0x8(%ebp),%eax 80101ba8: 89 50 0c mov %edx,0xc(%eax) release(&icache.lock); 80101bab: 83 ec 0c sub $0xc,%esp 80101bae: 68 40 22 11 80 push $0x80112240 80101bb3: e8 7a 39 00 00 call 80105532 <release> 80101bb8: 83 c4 10 add $0x10,%esp itrunc(ip); 80101bbb: 83 ec 0c sub $0xc,%esp 80101bbe: ff 75 08 pushl 0x8(%ebp) 80101bc1: e8 a8 01 00 00 call 80101d6e <itrunc> 80101bc6: 83 c4 10 add $0x10,%esp ip->type = 0; 80101bc9: 8b 45 08 mov 0x8(%ebp),%eax 80101bcc: 66 c7 40 10 00 00 movw $0x0,0x10(%eax) iupdate(ip); 80101bd2: 83 ec 0c sub $0xc,%esp 80101bd5: ff 75 08 pushl 0x8(%ebp) 80101bd8: e8 b3 fb ff ff call 80101790 <iupdate> 80101bdd: 83 c4 10 add $0x10,%esp acquire(&icache.lock); 80101be0: 83 ec 0c sub $0xc,%esp 80101be3: 68 40 22 11 80 push $0x80112240 80101be8: e8 de 38 00 00 call 801054cb <acquire> 80101bed: 83 c4 10 add $0x10,%esp ip->flags = 0; 80101bf0: 8b 45 08 mov 0x8(%ebp),%eax 80101bf3: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) wakeup(ip); 80101bfa: 83 ec 0c sub $0xc,%esp 80101bfd: ff 75 08 pushl 0x8(%ebp) 80101c00: e8 b2 36 00 00 call 801052b7 <wakeup> 80101c05: 83 c4 10 add $0x10,%esp } ip->ref--; 80101c08: 8b 45 08 mov 0x8(%ebp),%eax 80101c0b: 8b 40 08 mov 0x8(%eax),%eax 80101c0e: 8d 50 ff lea -0x1(%eax),%edx 80101c11: 8b 45 08 mov 0x8(%ebp),%eax 80101c14: 89 50 08 mov %edx,0x8(%eax) release(&icache.lock); 80101c17: 83 ec 0c sub $0xc,%esp 80101c1a: 68 40 22 11 80 push $0x80112240 80101c1f: e8 0e 39 00 00 call 80105532 <release> 80101c24: 83 c4 10 add $0x10,%esp } 80101c27: 90 nop 80101c28: c9 leave 80101c29: c3 ret 80101c2a <iunlockput>: // Common idiom: unlock, then put. void iunlockput(struct inode *ip) { 80101c2a: 55 push %ebp 80101c2b: 89 e5 mov %esp,%ebp 80101c2d: 83 ec 08 sub $0x8,%esp iunlock(ip); 80101c30: 83 ec 0c sub $0xc,%esp 80101c33: ff 75 08 pushl 0x8(%ebp) 80101c36: e8 8d fe ff ff call 80101ac8 <iunlock> 80101c3b: 83 c4 10 add $0x10,%esp iput(ip); 80101c3e: 83 ec 0c sub $0xc,%esp 80101c41: ff 75 08 pushl 0x8(%ebp) 80101c44: e8 f1 fe ff ff call 80101b3a <iput> 80101c49: 83 c4 10 add $0x10,%esp } 80101c4c: 90 nop 80101c4d: c9 leave 80101c4e: c3 ret 80101c4f <bmap>: // Return the disk block address of the nth block in inode ip. // If there is no such block, bmap allocates one. static uint bmap(struct inode *ip, uint bn) { 80101c4f: 55 push %ebp 80101c50: 89 e5 mov %esp,%ebp 80101c52: 53 push %ebx 80101c53: 83 ec 14 sub $0x14,%esp uint addr, *a; struct buf *bp; if(bn < NDIRECT){ 80101c56: 83 7d 0c 0b cmpl $0xb,0xc(%ebp) 80101c5a: 77 42 ja 80101c9e <bmap+0x4f> if((addr = ip->addrs[bn]) == 0) 80101c5c: 8b 45 08 mov 0x8(%ebp),%eax 80101c5f: 8b 55 0c mov 0xc(%ebp),%edx 80101c62: 83 c2 04 add $0x4,%edx 80101c65: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax 80101c69: 89 45 f4 mov %eax,-0xc(%ebp) 80101c6c: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80101c70: 75 24 jne 80101c96 <bmap+0x47> ip->addrs[bn] = addr = balloc(ip->dev); 80101c72: 8b 45 08 mov 0x8(%ebp),%eax 80101c75: 8b 00 mov (%eax),%eax 80101c77: 83 ec 0c sub $0xc,%esp 80101c7a: 50 push %eax 80101c7b: e8 9a f7 ff ff call 8010141a <balloc> 80101c80: 83 c4 10 add $0x10,%esp 80101c83: 89 45 f4 mov %eax,-0xc(%ebp) 80101c86: 8b 45 08 mov 0x8(%ebp),%eax 80101c89: 8b 55 0c mov 0xc(%ebp),%edx 80101c8c: 8d 4a 04 lea 0x4(%edx),%ecx 80101c8f: 8b 55 f4 mov -0xc(%ebp),%edx 80101c92: 89 54 88 0c mov %edx,0xc(%eax,%ecx,4) return addr; 80101c96: 8b 45 f4 mov -0xc(%ebp),%eax 80101c99: e9 cb 00 00 00 jmp 80101d69 <bmap+0x11a> } bn -= NDIRECT; 80101c9e: 83 6d 0c 0c subl $0xc,0xc(%ebp) if(bn < NINDIRECT){ 80101ca2: 83 7d 0c 7f cmpl $0x7f,0xc(%ebp) 80101ca6: 0f 87 b0 00 00 00 ja 80101d5c <bmap+0x10d> // Load indirect block, allocating if necessary. if((addr = ip->addrs[NDIRECT]) == 0) 80101cac: 8b 45 08 mov 0x8(%ebp),%eax 80101caf: 8b 40 4c mov 0x4c(%eax),%eax 80101cb2: 89 45 f4 mov %eax,-0xc(%ebp) 80101cb5: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80101cb9: 75 1d jne 80101cd8 <bmap+0x89> ip->addrs[NDIRECT] = addr = balloc(ip->dev); 80101cbb: 8b 45 08 mov 0x8(%ebp),%eax 80101cbe: 8b 00 mov (%eax),%eax 80101cc0: 83 ec 0c sub $0xc,%esp 80101cc3: 50 push %eax 80101cc4: e8 51 f7 ff ff call 8010141a <balloc> 80101cc9: 83 c4 10 add $0x10,%esp 80101ccc: 89 45 f4 mov %eax,-0xc(%ebp) 80101ccf: 8b 45 08 mov 0x8(%ebp),%eax 80101cd2: 8b 55 f4 mov -0xc(%ebp),%edx 80101cd5: 89 50 4c mov %edx,0x4c(%eax) bp = bread(ip->dev, addr); 80101cd8: 8b 45 08 mov 0x8(%ebp),%eax 80101cdb: 8b 00 mov (%eax),%eax 80101cdd: 83 ec 08 sub $0x8,%esp 80101ce0: ff 75 f4 pushl -0xc(%ebp) 80101ce3: 50 push %eax 80101ce4: e8 cd e4 ff ff call 801001b6 <bread> 80101ce9: 83 c4 10 add $0x10,%esp 80101cec: 89 45 f0 mov %eax,-0x10(%ebp) a = (uint*)bp->data; 80101cef: 8b 45 f0 mov -0x10(%ebp),%eax 80101cf2: 83 c0 18 add $0x18,%eax 80101cf5: 89 45 ec mov %eax,-0x14(%ebp) if((addr = a[bn]) == 0){ 80101cf8: 8b 45 0c mov 0xc(%ebp),%eax 80101cfb: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101d02: 8b 45 ec mov -0x14(%ebp),%eax 80101d05: 01 d0 add %edx,%eax 80101d07: 8b 00 mov (%eax),%eax 80101d09: 89 45 f4 mov %eax,-0xc(%ebp) 80101d0c: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80101d10: 75 37 jne 80101d49 <bmap+0xfa> a[bn] = addr = balloc(ip->dev); 80101d12: 8b 45 0c mov 0xc(%ebp),%eax 80101d15: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101d1c: 8b 45 ec mov -0x14(%ebp),%eax 80101d1f: 8d 1c 02 lea (%edx,%eax,1),%ebx 80101d22: 8b 45 08 mov 0x8(%ebp),%eax 80101d25: 8b 00 mov (%eax),%eax 80101d27: 83 ec 0c sub $0xc,%esp 80101d2a: 50 push %eax 80101d2b: e8 ea f6 ff ff call 8010141a <balloc> 80101d30: 83 c4 10 add $0x10,%esp 80101d33: 89 45 f4 mov %eax,-0xc(%ebp) 80101d36: 8b 45 f4 mov -0xc(%ebp),%eax 80101d39: 89 03 mov %eax,(%ebx) log_write(bp); 80101d3b: 83 ec 0c sub $0xc,%esp 80101d3e: ff 75 f0 pushl -0x10(%ebp) 80101d41: e8 3f 1a 00 00 call 80103785 <log_write> 80101d46: 83 c4 10 add $0x10,%esp } brelse(bp); 80101d49: 83 ec 0c sub $0xc,%esp 80101d4c: ff 75 f0 pushl -0x10(%ebp) 80101d4f: e8 da e4 ff ff call 8010022e <brelse> 80101d54: 83 c4 10 add $0x10,%esp return addr; 80101d57: 8b 45 f4 mov -0xc(%ebp),%eax 80101d5a: eb 0d jmp 80101d69 <bmap+0x11a> } panic("bmap: out of range"); 80101d5c: 83 ec 0c sub $0xc,%esp 80101d5f: 68 60 8b 10 80 push $0x80108b60 80101d64: e8 fd e7 ff ff call 80100566 <panic> } 80101d69: 8b 5d fc mov -0x4(%ebp),%ebx 80101d6c: c9 leave 80101d6d: c3 ret 80101d6e <itrunc>: // to it (no directory entries referring to it) // and has no in-memory reference to it (is // not an open file or current directory). static void itrunc(struct inode *ip) { 80101d6e: 55 push %ebp 80101d6f: 89 e5 mov %esp,%ebp 80101d71: 83 ec 18 sub $0x18,%esp int i, j; struct buf *bp; uint *a; for(i = 0; i < NDIRECT; i++){ 80101d74: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80101d7b: eb 45 jmp 80101dc2 <itrunc+0x54> if(ip->addrs[i]){ 80101d7d: 8b 45 08 mov 0x8(%ebp),%eax 80101d80: 8b 55 f4 mov -0xc(%ebp),%edx 80101d83: 83 c2 04 add $0x4,%edx 80101d86: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax 80101d8a: 85 c0 test %eax,%eax 80101d8c: 74 30 je 80101dbe <itrunc+0x50> bfree(ip->dev, ip->addrs[i]); 80101d8e: 8b 45 08 mov 0x8(%ebp),%eax 80101d91: 8b 55 f4 mov -0xc(%ebp),%edx 80101d94: 83 c2 04 add $0x4,%edx 80101d97: 8b 44 90 0c mov 0xc(%eax,%edx,4),%eax 80101d9b: 8b 55 08 mov 0x8(%ebp),%edx 80101d9e: 8b 12 mov (%edx),%edx 80101da0: 83 ec 08 sub $0x8,%esp 80101da3: 50 push %eax 80101da4: 52 push %edx 80101da5: e8 bc f7 ff ff call 80101566 <bfree> 80101daa: 83 c4 10 add $0x10,%esp ip->addrs[i] = 0; 80101dad: 8b 45 08 mov 0x8(%ebp),%eax 80101db0: 8b 55 f4 mov -0xc(%ebp),%edx 80101db3: 83 c2 04 add $0x4,%edx 80101db6: c7 44 90 0c 00 00 00 movl $0x0,0xc(%eax,%edx,4) 80101dbd: 00 { int i, j; struct buf *bp; uint *a; for(i = 0; i < NDIRECT; i++){ 80101dbe: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80101dc2: 83 7d f4 0b cmpl $0xb,-0xc(%ebp) 80101dc6: 7e b5 jle 80101d7d <itrunc+0xf> bfree(ip->dev, ip->addrs[i]); ip->addrs[i] = 0; } } if(ip->addrs[NDIRECT]){ 80101dc8: 8b 45 08 mov 0x8(%ebp),%eax 80101dcb: 8b 40 4c mov 0x4c(%eax),%eax 80101dce: 85 c0 test %eax,%eax 80101dd0: 0f 84 a1 00 00 00 je 80101e77 <itrunc+0x109> bp = bread(ip->dev, ip->addrs[NDIRECT]); 80101dd6: 8b 45 08 mov 0x8(%ebp),%eax 80101dd9: 8b 50 4c mov 0x4c(%eax),%edx 80101ddc: 8b 45 08 mov 0x8(%ebp),%eax 80101ddf: 8b 00 mov (%eax),%eax 80101de1: 83 ec 08 sub $0x8,%esp 80101de4: 52 push %edx 80101de5: 50 push %eax 80101de6: e8 cb e3 ff ff call 801001b6 <bread> 80101deb: 83 c4 10 add $0x10,%esp 80101dee: 89 45 ec mov %eax,-0x14(%ebp) a = (uint*)bp->data; 80101df1: 8b 45 ec mov -0x14(%ebp),%eax 80101df4: 83 c0 18 add $0x18,%eax 80101df7: 89 45 e8 mov %eax,-0x18(%ebp) for(j = 0; j < NINDIRECT; j++){ 80101dfa: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 80101e01: eb 3c jmp 80101e3f <itrunc+0xd1> if(a[j]) 80101e03: 8b 45 f0 mov -0x10(%ebp),%eax 80101e06: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101e0d: 8b 45 e8 mov -0x18(%ebp),%eax 80101e10: 01 d0 add %edx,%eax 80101e12: 8b 00 mov (%eax),%eax 80101e14: 85 c0 test %eax,%eax 80101e16: 74 23 je 80101e3b <itrunc+0xcd> bfree(ip->dev, a[j]); 80101e18: 8b 45 f0 mov -0x10(%ebp),%eax 80101e1b: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80101e22: 8b 45 e8 mov -0x18(%ebp),%eax 80101e25: 01 d0 add %edx,%eax 80101e27: 8b 00 mov (%eax),%eax 80101e29: 8b 55 08 mov 0x8(%ebp),%edx 80101e2c: 8b 12 mov (%edx),%edx 80101e2e: 83 ec 08 sub $0x8,%esp 80101e31: 50 push %eax 80101e32: 52 push %edx 80101e33: e8 2e f7 ff ff call 80101566 <bfree> 80101e38: 83 c4 10 add $0x10,%esp } if(ip->addrs[NDIRECT]){ bp = bread(ip->dev, ip->addrs[NDIRECT]); a = (uint*)bp->data; for(j = 0; j < NINDIRECT; j++){ 80101e3b: 83 45 f0 01 addl $0x1,-0x10(%ebp) 80101e3f: 8b 45 f0 mov -0x10(%ebp),%eax 80101e42: 83 f8 7f cmp $0x7f,%eax 80101e45: 76 bc jbe 80101e03 <itrunc+0x95> if(a[j]) bfree(ip->dev, a[j]); } brelse(bp); 80101e47: 83 ec 0c sub $0xc,%esp 80101e4a: ff 75 ec pushl -0x14(%ebp) 80101e4d: e8 dc e3 ff ff call 8010022e <brelse> 80101e52: 83 c4 10 add $0x10,%esp bfree(ip->dev, ip->addrs[NDIRECT]); 80101e55: 8b 45 08 mov 0x8(%ebp),%eax 80101e58: 8b 40 4c mov 0x4c(%eax),%eax 80101e5b: 8b 55 08 mov 0x8(%ebp),%edx 80101e5e: 8b 12 mov (%edx),%edx 80101e60: 83 ec 08 sub $0x8,%esp 80101e63: 50 push %eax 80101e64: 52 push %edx 80101e65: e8 fc f6 ff ff call 80101566 <bfree> 80101e6a: 83 c4 10 add $0x10,%esp ip->addrs[NDIRECT] = 0; 80101e6d: 8b 45 08 mov 0x8(%ebp),%eax 80101e70: c7 40 4c 00 00 00 00 movl $0x0,0x4c(%eax) } ip->size = 0; 80101e77: 8b 45 08 mov 0x8(%ebp),%eax 80101e7a: c7 40 18 00 00 00 00 movl $0x0,0x18(%eax) iupdate(ip); 80101e81: 83 ec 0c sub $0xc,%esp 80101e84: ff 75 08 pushl 0x8(%ebp) 80101e87: e8 04 f9 ff ff call 80101790 <iupdate> 80101e8c: 83 c4 10 add $0x10,%esp } 80101e8f: 90 nop 80101e90: c9 leave 80101e91: c3 ret 80101e92 <stati>: // Copy stat information from inode. void stati(struct inode *ip, struct stat *st) { 80101e92: 55 push %ebp 80101e93: 89 e5 mov %esp,%ebp st->dev = ip->dev; 80101e95: 8b 45 08 mov 0x8(%ebp),%eax 80101e98: 8b 00 mov (%eax),%eax 80101e9a: 89 c2 mov %eax,%edx 80101e9c: 8b 45 0c mov 0xc(%ebp),%eax 80101e9f: 89 50 04 mov %edx,0x4(%eax) st->ino = ip->inum; 80101ea2: 8b 45 08 mov 0x8(%ebp),%eax 80101ea5: 8b 50 04 mov 0x4(%eax),%edx 80101ea8: 8b 45 0c mov 0xc(%ebp),%eax 80101eab: 89 50 08 mov %edx,0x8(%eax) st->type = ip->type; 80101eae: 8b 45 08 mov 0x8(%ebp),%eax 80101eb1: 0f b7 50 10 movzwl 0x10(%eax),%edx 80101eb5: 8b 45 0c mov 0xc(%ebp),%eax 80101eb8: 66 89 10 mov %dx,(%eax) st->nlink = ip->nlink; 80101ebb: 8b 45 08 mov 0x8(%ebp),%eax 80101ebe: 0f b7 50 16 movzwl 0x16(%eax),%edx 80101ec2: 8b 45 0c mov 0xc(%ebp),%eax 80101ec5: 66 89 50 0c mov %dx,0xc(%eax) st->size = ip->size; 80101ec9: 8b 45 08 mov 0x8(%ebp),%eax 80101ecc: 8b 50 18 mov 0x18(%eax),%edx 80101ecf: 8b 45 0c mov 0xc(%ebp),%eax 80101ed2: 89 50 10 mov %edx,0x10(%eax) } 80101ed5: 90 nop 80101ed6: 5d pop %ebp 80101ed7: c3 ret 80101ed8 <readi>: //PAGEBREAK! // Read data from inode. int readi(struct inode *ip, char *dst, uint off, uint n) { 80101ed8: 55 push %ebp 80101ed9: 89 e5 mov %esp,%ebp 80101edb: 83 ec 18 sub $0x18,%esp uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 80101ede: 8b 45 08 mov 0x8(%ebp),%eax 80101ee1: 0f b7 40 10 movzwl 0x10(%eax),%eax 80101ee5: 66 83 f8 03 cmp $0x3,%ax 80101ee9: 75 5c jne 80101f47 <readi+0x6f> if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read) 80101eeb: 8b 45 08 mov 0x8(%ebp),%eax 80101eee: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101ef2: 66 85 c0 test %ax,%ax 80101ef5: 78 20 js 80101f17 <readi+0x3f> 80101ef7: 8b 45 08 mov 0x8(%ebp),%eax 80101efa: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101efe: 66 83 f8 09 cmp $0x9,%ax 80101f02: 7f 13 jg 80101f17 <readi+0x3f> 80101f04: 8b 45 08 mov 0x8(%ebp),%eax 80101f07: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101f0b: 98 cwtl 80101f0c: 8b 04 c5 c0 21 11 80 mov -0x7feede40(,%eax,8),%eax 80101f13: 85 c0 test %eax,%eax 80101f15: 75 0a jne 80101f21 <readi+0x49> return -1; 80101f17: b8 ff ff ff ff mov $0xffffffff,%eax 80101f1c: e9 0c 01 00 00 jmp 8010202d <readi+0x155> return devsw[ip->major].read(ip, dst, n); 80101f21: 8b 45 08 mov 0x8(%ebp),%eax 80101f24: 0f b7 40 12 movzwl 0x12(%eax),%eax 80101f28: 98 cwtl 80101f29: 8b 04 c5 c0 21 11 80 mov -0x7feede40(,%eax,8),%eax 80101f30: 8b 55 14 mov 0x14(%ebp),%edx 80101f33: 83 ec 04 sub $0x4,%esp 80101f36: 52 push %edx 80101f37: ff 75 0c pushl 0xc(%ebp) 80101f3a: ff 75 08 pushl 0x8(%ebp) 80101f3d: ff d0 call *%eax 80101f3f: 83 c4 10 add $0x10,%esp 80101f42: e9 e6 00 00 00 jmp 8010202d <readi+0x155> } if(off > ip->size || off + n < off) 80101f47: 8b 45 08 mov 0x8(%ebp),%eax 80101f4a: 8b 40 18 mov 0x18(%eax),%eax 80101f4d: 3b 45 10 cmp 0x10(%ebp),%eax 80101f50: 72 0d jb 80101f5f <readi+0x87> 80101f52: 8b 55 10 mov 0x10(%ebp),%edx 80101f55: 8b 45 14 mov 0x14(%ebp),%eax 80101f58: 01 d0 add %edx,%eax 80101f5a: 3b 45 10 cmp 0x10(%ebp),%eax 80101f5d: 73 0a jae 80101f69 <readi+0x91> return -1; 80101f5f: b8 ff ff ff ff mov $0xffffffff,%eax 80101f64: e9 c4 00 00 00 jmp 8010202d <readi+0x155> if(off + n > ip->size) 80101f69: 8b 55 10 mov 0x10(%ebp),%edx 80101f6c: 8b 45 14 mov 0x14(%ebp),%eax 80101f6f: 01 c2 add %eax,%edx 80101f71: 8b 45 08 mov 0x8(%ebp),%eax 80101f74: 8b 40 18 mov 0x18(%eax),%eax 80101f77: 39 c2 cmp %eax,%edx 80101f79: 76 0c jbe 80101f87 <readi+0xaf> n = ip->size - off; 80101f7b: 8b 45 08 mov 0x8(%ebp),%eax 80101f7e: 8b 40 18 mov 0x18(%eax),%eax 80101f81: 2b 45 10 sub 0x10(%ebp),%eax 80101f84: 89 45 14 mov %eax,0x14(%ebp) for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 80101f87: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80101f8e: e9 8b 00 00 00 jmp 8010201e <readi+0x146> bp = bread(ip->dev, bmap(ip, off/BSIZE)); 80101f93: 8b 45 10 mov 0x10(%ebp),%eax 80101f96: c1 e8 09 shr $0x9,%eax 80101f99: 83 ec 08 sub $0x8,%esp 80101f9c: 50 push %eax 80101f9d: ff 75 08 pushl 0x8(%ebp) 80101fa0: e8 aa fc ff ff call 80101c4f <bmap> 80101fa5: 83 c4 10 add $0x10,%esp 80101fa8: 89 c2 mov %eax,%edx 80101faa: 8b 45 08 mov 0x8(%ebp),%eax 80101fad: 8b 00 mov (%eax),%eax 80101faf: 83 ec 08 sub $0x8,%esp 80101fb2: 52 push %edx 80101fb3: 50 push %eax 80101fb4: e8 fd e1 ff ff call 801001b6 <bread> 80101fb9: 83 c4 10 add $0x10,%esp 80101fbc: 89 45 f0 mov %eax,-0x10(%ebp) m = min(n - tot, BSIZE - off%BSIZE); 80101fbf: 8b 45 10 mov 0x10(%ebp),%eax 80101fc2: 25 ff 01 00 00 and $0x1ff,%eax 80101fc7: ba 00 02 00 00 mov $0x200,%edx 80101fcc: 29 c2 sub %eax,%edx 80101fce: 8b 45 14 mov 0x14(%ebp),%eax 80101fd1: 2b 45 f4 sub -0xc(%ebp),%eax 80101fd4: 39 c2 cmp %eax,%edx 80101fd6: 0f 46 c2 cmovbe %edx,%eax 80101fd9: 89 45 ec mov %eax,-0x14(%ebp) memmove(dst, bp->data + off%BSIZE, m); 80101fdc: 8b 45 f0 mov -0x10(%ebp),%eax 80101fdf: 8d 50 18 lea 0x18(%eax),%edx 80101fe2: 8b 45 10 mov 0x10(%ebp),%eax 80101fe5: 25 ff 01 00 00 and $0x1ff,%eax 80101fea: 01 d0 add %edx,%eax 80101fec: 83 ec 04 sub $0x4,%esp 80101fef: ff 75 ec pushl -0x14(%ebp) 80101ff2: 50 push %eax 80101ff3: ff 75 0c pushl 0xc(%ebp) 80101ff6: e8 f2 37 00 00 call 801057ed <memmove> 80101ffb: 83 c4 10 add $0x10,%esp brelse(bp); 80101ffe: 83 ec 0c sub $0xc,%esp 80102001: ff 75 f0 pushl -0x10(%ebp) 80102004: e8 25 e2 ff ff call 8010022e <brelse> 80102009: 83 c4 10 add $0x10,%esp if(off > ip->size || off + n < off) return -1; if(off + n > ip->size) n = ip->size - off; for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 8010200c: 8b 45 ec mov -0x14(%ebp),%eax 8010200f: 01 45 f4 add %eax,-0xc(%ebp) 80102012: 8b 45 ec mov -0x14(%ebp),%eax 80102015: 01 45 10 add %eax,0x10(%ebp) 80102018: 8b 45 ec mov -0x14(%ebp),%eax 8010201b: 01 45 0c add %eax,0xc(%ebp) 8010201e: 8b 45 f4 mov -0xc(%ebp),%eax 80102021: 3b 45 14 cmp 0x14(%ebp),%eax 80102024: 0f 82 69 ff ff ff jb 80101f93 <readi+0xbb> bp = bread(ip->dev, bmap(ip, off/BSIZE)); m = min(n - tot, BSIZE - off%BSIZE); memmove(dst, bp->data + off%BSIZE, m); brelse(bp); } return n; 8010202a: 8b 45 14 mov 0x14(%ebp),%eax } 8010202d: c9 leave 8010202e: c3 ret 8010202f <writei>: // PAGEBREAK! // Write data to inode. int writei(struct inode *ip, char *src, uint off, uint n) { 8010202f: 55 push %ebp 80102030: 89 e5 mov %esp,%ebp 80102032: 83 ec 18 sub $0x18,%esp uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 80102035: 8b 45 08 mov 0x8(%ebp),%eax 80102038: 0f b7 40 10 movzwl 0x10(%eax),%eax 8010203c: 66 83 f8 03 cmp $0x3,%ax 80102040: 75 5c jne 8010209e <writei+0x6f> if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write) 80102042: 8b 45 08 mov 0x8(%ebp),%eax 80102045: 0f b7 40 12 movzwl 0x12(%eax),%eax 80102049: 66 85 c0 test %ax,%ax 8010204c: 78 20 js 8010206e <writei+0x3f> 8010204e: 8b 45 08 mov 0x8(%ebp),%eax 80102051: 0f b7 40 12 movzwl 0x12(%eax),%eax 80102055: 66 83 f8 09 cmp $0x9,%ax 80102059: 7f 13 jg 8010206e <writei+0x3f> 8010205b: 8b 45 08 mov 0x8(%ebp),%eax 8010205e: 0f b7 40 12 movzwl 0x12(%eax),%eax 80102062: 98 cwtl 80102063: 8b 04 c5 c4 21 11 80 mov -0x7feede3c(,%eax,8),%eax 8010206a: 85 c0 test %eax,%eax 8010206c: 75 0a jne 80102078 <writei+0x49> return -1; 8010206e: b8 ff ff ff ff mov $0xffffffff,%eax 80102073: e9 3d 01 00 00 jmp 801021b5 <writei+0x186> return devsw[ip->major].write(ip, src, n); 80102078: 8b 45 08 mov 0x8(%ebp),%eax 8010207b: 0f b7 40 12 movzwl 0x12(%eax),%eax 8010207f: 98 cwtl 80102080: 8b 04 c5 c4 21 11 80 mov -0x7feede3c(,%eax,8),%eax 80102087: 8b 55 14 mov 0x14(%ebp),%edx 8010208a: 83 ec 04 sub $0x4,%esp 8010208d: 52 push %edx 8010208e: ff 75 0c pushl 0xc(%ebp) 80102091: ff 75 08 pushl 0x8(%ebp) 80102094: ff d0 call *%eax 80102096: 83 c4 10 add $0x10,%esp 80102099: e9 17 01 00 00 jmp 801021b5 <writei+0x186> } if(off > ip->size || off + n < off) 8010209e: 8b 45 08 mov 0x8(%ebp),%eax 801020a1: 8b 40 18 mov 0x18(%eax),%eax 801020a4: 3b 45 10 cmp 0x10(%ebp),%eax 801020a7: 72 0d jb 801020b6 <writei+0x87> 801020a9: 8b 55 10 mov 0x10(%ebp),%edx 801020ac: 8b 45 14 mov 0x14(%ebp),%eax 801020af: 01 d0 add %edx,%eax 801020b1: 3b 45 10 cmp 0x10(%ebp),%eax 801020b4: 73 0a jae 801020c0 <writei+0x91> return -1; 801020b6: b8 ff ff ff ff mov $0xffffffff,%eax 801020bb: e9 f5 00 00 00 jmp 801021b5 <writei+0x186> if(off + n > MAXFILE*BSIZE) 801020c0: 8b 55 10 mov 0x10(%ebp),%edx 801020c3: 8b 45 14 mov 0x14(%ebp),%eax 801020c6: 01 d0 add %edx,%eax 801020c8: 3d 00 18 01 00 cmp $0x11800,%eax 801020cd: 76 0a jbe 801020d9 <writei+0xaa> return -1; 801020cf: b8 ff ff ff ff mov $0xffffffff,%eax 801020d4: e9 dc 00 00 00 jmp 801021b5 <writei+0x186> for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 801020d9: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801020e0: e9 99 00 00 00 jmp 8010217e <writei+0x14f> bp = bread(ip->dev, bmap(ip, off/BSIZE)); 801020e5: 8b 45 10 mov 0x10(%ebp),%eax 801020e8: c1 e8 09 shr $0x9,%eax 801020eb: 83 ec 08 sub $0x8,%esp 801020ee: 50 push %eax 801020ef: ff 75 08 pushl 0x8(%ebp) 801020f2: e8 58 fb ff ff call 80101c4f <bmap> 801020f7: 83 c4 10 add $0x10,%esp 801020fa: 89 c2 mov %eax,%edx 801020fc: 8b 45 08 mov 0x8(%ebp),%eax 801020ff: 8b 00 mov (%eax),%eax 80102101: 83 ec 08 sub $0x8,%esp 80102104: 52 push %edx 80102105: 50 push %eax 80102106: e8 ab e0 ff ff call 801001b6 <bread> 8010210b: 83 c4 10 add $0x10,%esp 8010210e: 89 45 f0 mov %eax,-0x10(%ebp) m = min(n - tot, BSIZE - off%BSIZE); 80102111: 8b 45 10 mov 0x10(%ebp),%eax 80102114: 25 ff 01 00 00 and $0x1ff,%eax 80102119: ba 00 02 00 00 mov $0x200,%edx 8010211e: 29 c2 sub %eax,%edx 80102120: 8b 45 14 mov 0x14(%ebp),%eax 80102123: 2b 45 f4 sub -0xc(%ebp),%eax 80102126: 39 c2 cmp %eax,%edx 80102128: 0f 46 c2 cmovbe %edx,%eax 8010212b: 89 45 ec mov %eax,-0x14(%ebp) memmove(bp->data + off%BSIZE, src, m); 8010212e: 8b 45 f0 mov -0x10(%ebp),%eax 80102131: 8d 50 18 lea 0x18(%eax),%edx 80102134: 8b 45 10 mov 0x10(%ebp),%eax 80102137: 25 ff 01 00 00 and $0x1ff,%eax 8010213c: 01 d0 add %edx,%eax 8010213e: 83 ec 04 sub $0x4,%esp 80102141: ff 75 ec pushl -0x14(%ebp) 80102144: ff 75 0c pushl 0xc(%ebp) 80102147: 50 push %eax 80102148: e8 a0 36 00 00 call 801057ed <memmove> 8010214d: 83 c4 10 add $0x10,%esp log_write(bp); 80102150: 83 ec 0c sub $0xc,%esp 80102153: ff 75 f0 pushl -0x10(%ebp) 80102156: e8 2a 16 00 00 call 80103785 <log_write> 8010215b: 83 c4 10 add $0x10,%esp brelse(bp); 8010215e: 83 ec 0c sub $0xc,%esp 80102161: ff 75 f0 pushl -0x10(%ebp) 80102164: e8 c5 e0 ff ff call 8010022e <brelse> 80102169: 83 c4 10 add $0x10,%esp if(off > ip->size || off + n < off) return -1; if(off + n > MAXFILE*BSIZE) return -1; for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 8010216c: 8b 45 ec mov -0x14(%ebp),%eax 8010216f: 01 45 f4 add %eax,-0xc(%ebp) 80102172: 8b 45 ec mov -0x14(%ebp),%eax 80102175: 01 45 10 add %eax,0x10(%ebp) 80102178: 8b 45 ec mov -0x14(%ebp),%eax 8010217b: 01 45 0c add %eax,0xc(%ebp) 8010217e: 8b 45 f4 mov -0xc(%ebp),%eax 80102181: 3b 45 14 cmp 0x14(%ebp),%eax 80102184: 0f 82 5b ff ff ff jb 801020e5 <writei+0xb6> memmove(bp->data + off%BSIZE, src, m); log_write(bp); brelse(bp); } if(n > 0 && off > ip->size){ 8010218a: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 8010218e: 74 22 je 801021b2 <writei+0x183> 80102190: 8b 45 08 mov 0x8(%ebp),%eax 80102193: 8b 40 18 mov 0x18(%eax),%eax 80102196: 3b 45 10 cmp 0x10(%ebp),%eax 80102199: 73 17 jae 801021b2 <writei+0x183> ip->size = off; 8010219b: 8b 45 08 mov 0x8(%ebp),%eax 8010219e: 8b 55 10 mov 0x10(%ebp),%edx 801021a1: 89 50 18 mov %edx,0x18(%eax) iupdate(ip); 801021a4: 83 ec 0c sub $0xc,%esp 801021a7: ff 75 08 pushl 0x8(%ebp) 801021aa: e8 e1 f5 ff ff call 80101790 <iupdate> 801021af: 83 c4 10 add $0x10,%esp } return n; 801021b2: 8b 45 14 mov 0x14(%ebp),%eax } 801021b5: c9 leave 801021b6: c3 ret 801021b7 <namecmp>: //PAGEBREAK! // Directories int namecmp(const char *s, const char *t) { 801021b7: 55 push %ebp 801021b8: 89 e5 mov %esp,%ebp 801021ba: 83 ec 08 sub $0x8,%esp return strncmp(s, t, DIRSIZ); 801021bd: 83 ec 04 sub $0x4,%esp 801021c0: 6a 0e push $0xe 801021c2: ff 75 0c pushl 0xc(%ebp) 801021c5: ff 75 08 pushl 0x8(%ebp) 801021c8: e8 b6 36 00 00 call 80105883 <strncmp> 801021cd: 83 c4 10 add $0x10,%esp } 801021d0: c9 leave 801021d1: c3 ret 801021d2 <dirlookup>: // Look for a directory entry in a directory. // If found, set *poff to byte offset of entry. struct inode* dirlookup(struct inode *dp, char *name, uint *poff) { 801021d2: 55 push %ebp 801021d3: 89 e5 mov %esp,%ebp 801021d5: 83 ec 28 sub $0x28,%esp uint off, inum; struct dirent de; if(dp->type != T_DIR) 801021d8: 8b 45 08 mov 0x8(%ebp),%eax 801021db: 0f b7 40 10 movzwl 0x10(%eax),%eax 801021df: 66 83 f8 01 cmp $0x1,%ax 801021e3: 74 0d je 801021f2 <dirlookup+0x20> panic("dirlookup not DIR"); 801021e5: 83 ec 0c sub $0xc,%esp 801021e8: 68 73 8b 10 80 push $0x80108b73 801021ed: e8 74 e3 ff ff call 80100566 <panic> for(off = 0; off < dp->size; off += sizeof(de)){ 801021f2: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801021f9: eb 7b jmp 80102276 <dirlookup+0xa4> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 801021fb: 6a 10 push $0x10 801021fd: ff 75 f4 pushl -0xc(%ebp) 80102200: 8d 45 e0 lea -0x20(%ebp),%eax 80102203: 50 push %eax 80102204: ff 75 08 pushl 0x8(%ebp) 80102207: e8 cc fc ff ff call 80101ed8 <readi> 8010220c: 83 c4 10 add $0x10,%esp 8010220f: 83 f8 10 cmp $0x10,%eax 80102212: 74 0d je 80102221 <dirlookup+0x4f> panic("dirlink read"); 80102214: 83 ec 0c sub $0xc,%esp 80102217: 68 85 8b 10 80 push $0x80108b85 8010221c: e8 45 e3 ff ff call 80100566 <panic> if(de.inum == 0) 80102221: 0f b7 45 e0 movzwl -0x20(%ebp),%eax 80102225: 66 85 c0 test %ax,%ax 80102228: 74 47 je 80102271 <dirlookup+0x9f> continue; if(namecmp(name, de.name) == 0){ 8010222a: 83 ec 08 sub $0x8,%esp 8010222d: 8d 45 e0 lea -0x20(%ebp),%eax 80102230: 83 c0 02 add $0x2,%eax 80102233: 50 push %eax 80102234: ff 75 0c pushl 0xc(%ebp) 80102237: e8 7b ff ff ff call 801021b7 <namecmp> 8010223c: 83 c4 10 add $0x10,%esp 8010223f: 85 c0 test %eax,%eax 80102241: 75 2f jne 80102272 <dirlookup+0xa0> // entry matches path element if(poff) 80102243: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80102247: 74 08 je 80102251 <dirlookup+0x7f> *poff = off; 80102249: 8b 45 10 mov 0x10(%ebp),%eax 8010224c: 8b 55 f4 mov -0xc(%ebp),%edx 8010224f: 89 10 mov %edx,(%eax) inum = de.inum; 80102251: 0f b7 45 e0 movzwl -0x20(%ebp),%eax 80102255: 0f b7 c0 movzwl %ax,%eax 80102258: 89 45 f0 mov %eax,-0x10(%ebp) return iget(dp->dev, inum); 8010225b: 8b 45 08 mov 0x8(%ebp),%eax 8010225e: 8b 00 mov (%eax),%eax 80102260: 83 ec 08 sub $0x8,%esp 80102263: ff 75 f0 pushl -0x10(%ebp) 80102266: 50 push %eax 80102267: e8 e5 f5 ff ff call 80101851 <iget> 8010226c: 83 c4 10 add $0x10,%esp 8010226f: eb 19 jmp 8010228a <dirlookup+0xb8> for(off = 0; off < dp->size; off += sizeof(de)){ if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("dirlink read"); if(de.inum == 0) continue; 80102271: 90 nop struct dirent de; if(dp->type != T_DIR) panic("dirlookup not DIR"); for(off = 0; off < dp->size; off += sizeof(de)){ 80102272: 83 45 f4 10 addl $0x10,-0xc(%ebp) 80102276: 8b 45 08 mov 0x8(%ebp),%eax 80102279: 8b 40 18 mov 0x18(%eax),%eax 8010227c: 3b 45 f4 cmp -0xc(%ebp),%eax 8010227f: 0f 87 76 ff ff ff ja 801021fb <dirlookup+0x29> inum = de.inum; return iget(dp->dev, inum); } } return 0; 80102285: b8 00 00 00 00 mov $0x0,%eax } 8010228a: c9 leave 8010228b: c3 ret 8010228c <dirlink>: // Write a new directory entry (name, inum) into the directory dp. int dirlink(struct inode *dp, char *name, uint inum) { 8010228c: 55 push %ebp 8010228d: 89 e5 mov %esp,%ebp 8010228f: 83 ec 28 sub $0x28,%esp int off; struct dirent de; struct inode *ip; // Check that name is not present. if((ip = dirlookup(dp, name, 0)) != 0){ 80102292: 83 ec 04 sub $0x4,%esp 80102295: 6a 00 push $0x0 80102297: ff 75 0c pushl 0xc(%ebp) 8010229a: ff 75 08 pushl 0x8(%ebp) 8010229d: e8 30 ff ff ff call 801021d2 <dirlookup> 801022a2: 83 c4 10 add $0x10,%esp 801022a5: 89 45 f0 mov %eax,-0x10(%ebp) 801022a8: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801022ac: 74 18 je 801022c6 <dirlink+0x3a> iput(ip); 801022ae: 83 ec 0c sub $0xc,%esp 801022b1: ff 75 f0 pushl -0x10(%ebp) 801022b4: e8 81 f8 ff ff call 80101b3a <iput> 801022b9: 83 c4 10 add $0x10,%esp return -1; 801022bc: b8 ff ff ff ff mov $0xffffffff,%eax 801022c1: e9 9c 00 00 00 jmp 80102362 <dirlink+0xd6> } // Look for an empty dirent. for(off = 0; off < dp->size; off += sizeof(de)){ 801022c6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801022cd: eb 39 jmp 80102308 <dirlink+0x7c> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 801022cf: 8b 45 f4 mov -0xc(%ebp),%eax 801022d2: 6a 10 push $0x10 801022d4: 50 push %eax 801022d5: 8d 45 e0 lea -0x20(%ebp),%eax 801022d8: 50 push %eax 801022d9: ff 75 08 pushl 0x8(%ebp) 801022dc: e8 f7 fb ff ff call 80101ed8 <readi> 801022e1: 83 c4 10 add $0x10,%esp 801022e4: 83 f8 10 cmp $0x10,%eax 801022e7: 74 0d je 801022f6 <dirlink+0x6a> panic("dirlink read"); 801022e9: 83 ec 0c sub $0xc,%esp 801022ec: 68 85 8b 10 80 push $0x80108b85 801022f1: e8 70 e2 ff ff call 80100566 <panic> if(de.inum == 0) 801022f6: 0f b7 45 e0 movzwl -0x20(%ebp),%eax 801022fa: 66 85 c0 test %ax,%ax 801022fd: 74 18 je 80102317 <dirlink+0x8b> iput(ip); return -1; } // Look for an empty dirent. for(off = 0; off < dp->size; off += sizeof(de)){ 801022ff: 8b 45 f4 mov -0xc(%ebp),%eax 80102302: 83 c0 10 add $0x10,%eax 80102305: 89 45 f4 mov %eax,-0xc(%ebp) 80102308: 8b 45 08 mov 0x8(%ebp),%eax 8010230b: 8b 50 18 mov 0x18(%eax),%edx 8010230e: 8b 45 f4 mov -0xc(%ebp),%eax 80102311: 39 c2 cmp %eax,%edx 80102313: 77 ba ja 801022cf <dirlink+0x43> 80102315: eb 01 jmp 80102318 <dirlink+0x8c> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("dirlink read"); if(de.inum == 0) break; 80102317: 90 nop } strncpy(de.name, name, DIRSIZ); 80102318: 83 ec 04 sub $0x4,%esp 8010231b: 6a 0e push $0xe 8010231d: ff 75 0c pushl 0xc(%ebp) 80102320: 8d 45 e0 lea -0x20(%ebp),%eax 80102323: 83 c0 02 add $0x2,%eax 80102326: 50 push %eax 80102327: e8 ad 35 00 00 call 801058d9 <strncpy> 8010232c: 83 c4 10 add $0x10,%esp de.inum = inum; 8010232f: 8b 45 10 mov 0x10(%ebp),%eax 80102332: 66 89 45 e0 mov %ax,-0x20(%ebp) if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80102336: 8b 45 f4 mov -0xc(%ebp),%eax 80102339: 6a 10 push $0x10 8010233b: 50 push %eax 8010233c: 8d 45 e0 lea -0x20(%ebp),%eax 8010233f: 50 push %eax 80102340: ff 75 08 pushl 0x8(%ebp) 80102343: e8 e7 fc ff ff call 8010202f <writei> 80102348: 83 c4 10 add $0x10,%esp 8010234b: 83 f8 10 cmp $0x10,%eax 8010234e: 74 0d je 8010235d <dirlink+0xd1> panic("dirlink"); 80102350: 83 ec 0c sub $0xc,%esp 80102353: 68 92 8b 10 80 push $0x80108b92 80102358: e8 09 e2 ff ff call 80100566 <panic> return 0; 8010235d: b8 00 00 00 00 mov $0x0,%eax } 80102362: c9 leave 80102363: c3 ret 80102364 <skipelem>: // skipelem("a", name) = "", setting name = "a" // skipelem("", name) = skipelem("////", name) = 0 // static char* skipelem(char *path, char *name) { 80102364: 55 push %ebp 80102365: 89 e5 mov %esp,%ebp 80102367: 83 ec 18 sub $0x18,%esp char *s; int len; while(*path == '/') 8010236a: eb 04 jmp 80102370 <skipelem+0xc> path++; 8010236c: 83 45 08 01 addl $0x1,0x8(%ebp) skipelem(char *path, char *name) { char *s; int len; while(*path == '/') 80102370: 8b 45 08 mov 0x8(%ebp),%eax 80102373: 0f b6 00 movzbl (%eax),%eax 80102376: 3c 2f cmp $0x2f,%al 80102378: 74 f2 je 8010236c <skipelem+0x8> path++; if(*path == 0) 8010237a: 8b 45 08 mov 0x8(%ebp),%eax 8010237d: 0f b6 00 movzbl (%eax),%eax 80102380: 84 c0 test %al,%al 80102382: 75 07 jne 8010238b <skipelem+0x27> return 0; 80102384: b8 00 00 00 00 mov $0x0,%eax 80102389: eb 7b jmp 80102406 <skipelem+0xa2> s = path; 8010238b: 8b 45 08 mov 0x8(%ebp),%eax 8010238e: 89 45 f4 mov %eax,-0xc(%ebp) while(*path != '/' && *path != 0) 80102391: eb 04 jmp 80102397 <skipelem+0x33> path++; 80102393: 83 45 08 01 addl $0x1,0x8(%ebp) while(*path == '/') path++; if(*path == 0) return 0; s = path; while(*path != '/' && *path != 0) 80102397: 8b 45 08 mov 0x8(%ebp),%eax 8010239a: 0f b6 00 movzbl (%eax),%eax 8010239d: 3c 2f cmp $0x2f,%al 8010239f: 74 0a je 801023ab <skipelem+0x47> 801023a1: 8b 45 08 mov 0x8(%ebp),%eax 801023a4: 0f b6 00 movzbl (%eax),%eax 801023a7: 84 c0 test %al,%al 801023a9: 75 e8 jne 80102393 <skipelem+0x2f> path++; len = path - s; 801023ab: 8b 55 08 mov 0x8(%ebp),%edx 801023ae: 8b 45 f4 mov -0xc(%ebp),%eax 801023b1: 29 c2 sub %eax,%edx 801023b3: 89 d0 mov %edx,%eax 801023b5: 89 45 f0 mov %eax,-0x10(%ebp) if(len >= DIRSIZ) 801023b8: 83 7d f0 0d cmpl $0xd,-0x10(%ebp) 801023bc: 7e 15 jle 801023d3 <skipelem+0x6f> memmove(name, s, DIRSIZ); 801023be: 83 ec 04 sub $0x4,%esp 801023c1: 6a 0e push $0xe 801023c3: ff 75 f4 pushl -0xc(%ebp) 801023c6: ff 75 0c pushl 0xc(%ebp) 801023c9: e8 1f 34 00 00 call 801057ed <memmove> 801023ce: 83 c4 10 add $0x10,%esp 801023d1: eb 26 jmp 801023f9 <skipelem+0x95> else { memmove(name, s, len); 801023d3: 8b 45 f0 mov -0x10(%ebp),%eax 801023d6: 83 ec 04 sub $0x4,%esp 801023d9: 50 push %eax 801023da: ff 75 f4 pushl -0xc(%ebp) 801023dd: ff 75 0c pushl 0xc(%ebp) 801023e0: e8 08 34 00 00 call 801057ed <memmove> 801023e5: 83 c4 10 add $0x10,%esp name[len] = 0; 801023e8: 8b 55 f0 mov -0x10(%ebp),%edx 801023eb: 8b 45 0c mov 0xc(%ebp),%eax 801023ee: 01 d0 add %edx,%eax 801023f0: c6 00 00 movb $0x0,(%eax) } while(*path == '/') 801023f3: eb 04 jmp 801023f9 <skipelem+0x95> path++; 801023f5: 83 45 08 01 addl $0x1,0x8(%ebp) memmove(name, s, DIRSIZ); else { memmove(name, s, len); name[len] = 0; } while(*path == '/') 801023f9: 8b 45 08 mov 0x8(%ebp),%eax 801023fc: 0f b6 00 movzbl (%eax),%eax 801023ff: 3c 2f cmp $0x2f,%al 80102401: 74 f2 je 801023f5 <skipelem+0x91> path++; return path; 80102403: 8b 45 08 mov 0x8(%ebp),%eax } 80102406: c9 leave 80102407: c3 ret 80102408 <namex>: // If parent != 0, return the inode for the parent and copy the final // path element into name, which must have room for DIRSIZ bytes. // Must be called inside a transaction since it calls iput(). static struct inode* namex(char *path, int nameiparent, char *name) { 80102408: 55 push %ebp 80102409: 89 e5 mov %esp,%ebp 8010240b: 83 ec 18 sub $0x18,%esp struct inode *ip, *next; if(*path == '/') 8010240e: 8b 45 08 mov 0x8(%ebp),%eax 80102411: 0f b6 00 movzbl (%eax),%eax 80102414: 3c 2f cmp $0x2f,%al 80102416: 75 17 jne 8010242f <namex+0x27> ip = iget(ROOTDEV, ROOTINO); 80102418: 83 ec 08 sub $0x8,%esp 8010241b: 6a 01 push $0x1 8010241d: 6a 01 push $0x1 8010241f: e8 2d f4 ff ff call 80101851 <iget> 80102424: 83 c4 10 add $0x10,%esp 80102427: 89 45 f4 mov %eax,-0xc(%ebp) 8010242a: e9 bb 00 00 00 jmp 801024ea <namex+0xe2> else ip = idup(proc->cwd); 8010242f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80102435: 8b 40 68 mov 0x68(%eax),%eax 80102438: 83 ec 0c sub $0xc,%esp 8010243b: 50 push %eax 8010243c: e8 ef f4 ff ff call 80101930 <idup> 80102441: 83 c4 10 add $0x10,%esp 80102444: 89 45 f4 mov %eax,-0xc(%ebp) while((path = skipelem(path, name)) != 0){ 80102447: e9 9e 00 00 00 jmp 801024ea <namex+0xe2> ilock(ip); 8010244c: 83 ec 0c sub $0xc,%esp 8010244f: ff 75 f4 pushl -0xc(%ebp) 80102452: e8 13 f5 ff ff call 8010196a <ilock> 80102457: 83 c4 10 add $0x10,%esp if(ip->type != T_DIR){ 8010245a: 8b 45 f4 mov -0xc(%ebp),%eax 8010245d: 0f b7 40 10 movzwl 0x10(%eax),%eax 80102461: 66 83 f8 01 cmp $0x1,%ax 80102465: 74 18 je 8010247f <namex+0x77> iunlockput(ip); 80102467: 83 ec 0c sub $0xc,%esp 8010246a: ff 75 f4 pushl -0xc(%ebp) 8010246d: e8 b8 f7 ff ff call 80101c2a <iunlockput> 80102472: 83 c4 10 add $0x10,%esp return 0; 80102475: b8 00 00 00 00 mov $0x0,%eax 8010247a: e9 a7 00 00 00 jmp 80102526 <namex+0x11e> } if(nameiparent && *path == '\0'){ 8010247f: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 80102483: 74 20 je 801024a5 <namex+0x9d> 80102485: 8b 45 08 mov 0x8(%ebp),%eax 80102488: 0f b6 00 movzbl (%eax),%eax 8010248b: 84 c0 test %al,%al 8010248d: 75 16 jne 801024a5 <namex+0x9d> // Stop one level early. iunlock(ip); 8010248f: 83 ec 0c sub $0xc,%esp 80102492: ff 75 f4 pushl -0xc(%ebp) 80102495: e8 2e f6 ff ff call 80101ac8 <iunlock> 8010249a: 83 c4 10 add $0x10,%esp return ip; 8010249d: 8b 45 f4 mov -0xc(%ebp),%eax 801024a0: e9 81 00 00 00 jmp 80102526 <namex+0x11e> } if((next = dirlookup(ip, name, 0)) == 0){ 801024a5: 83 ec 04 sub $0x4,%esp 801024a8: 6a 00 push $0x0 801024aa: ff 75 10 pushl 0x10(%ebp) 801024ad: ff 75 f4 pushl -0xc(%ebp) 801024b0: e8 1d fd ff ff call 801021d2 <dirlookup> 801024b5: 83 c4 10 add $0x10,%esp 801024b8: 89 45 f0 mov %eax,-0x10(%ebp) 801024bb: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801024bf: 75 15 jne 801024d6 <namex+0xce> iunlockput(ip); 801024c1: 83 ec 0c sub $0xc,%esp 801024c4: ff 75 f4 pushl -0xc(%ebp) 801024c7: e8 5e f7 ff ff call 80101c2a <iunlockput> 801024cc: 83 c4 10 add $0x10,%esp return 0; 801024cf: b8 00 00 00 00 mov $0x0,%eax 801024d4: eb 50 jmp 80102526 <namex+0x11e> } iunlockput(ip); 801024d6: 83 ec 0c sub $0xc,%esp 801024d9: ff 75 f4 pushl -0xc(%ebp) 801024dc: e8 49 f7 ff ff call 80101c2a <iunlockput> 801024e1: 83 c4 10 add $0x10,%esp ip = next; 801024e4: 8b 45 f0 mov -0x10(%ebp),%eax 801024e7: 89 45 f4 mov %eax,-0xc(%ebp) if(*path == '/') ip = iget(ROOTDEV, ROOTINO); else ip = idup(proc->cwd); while((path = skipelem(path, name)) != 0){ 801024ea: 83 ec 08 sub $0x8,%esp 801024ed: ff 75 10 pushl 0x10(%ebp) 801024f0: ff 75 08 pushl 0x8(%ebp) 801024f3: e8 6c fe ff ff call 80102364 <skipelem> 801024f8: 83 c4 10 add $0x10,%esp 801024fb: 89 45 08 mov %eax,0x8(%ebp) 801024fe: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80102502: 0f 85 44 ff ff ff jne 8010244c <namex+0x44> return 0; } iunlockput(ip); ip = next; } if(nameiparent){ 80102508: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 8010250c: 74 15 je 80102523 <namex+0x11b> iput(ip); 8010250e: 83 ec 0c sub $0xc,%esp 80102511: ff 75 f4 pushl -0xc(%ebp) 80102514: e8 21 f6 ff ff call 80101b3a <iput> 80102519: 83 c4 10 add $0x10,%esp return 0; 8010251c: b8 00 00 00 00 mov $0x0,%eax 80102521: eb 03 jmp 80102526 <namex+0x11e> } return ip; 80102523: 8b 45 f4 mov -0xc(%ebp),%eax } 80102526: c9 leave 80102527: c3 ret 80102528 <namei>: struct inode* namei(char *path) { 80102528: 55 push %ebp 80102529: 89 e5 mov %esp,%ebp 8010252b: 83 ec 18 sub $0x18,%esp char name[DIRSIZ]; return namex(path, 0, name); 8010252e: 83 ec 04 sub $0x4,%esp 80102531: 8d 45 ea lea -0x16(%ebp),%eax 80102534: 50 push %eax 80102535: 6a 00 push $0x0 80102537: ff 75 08 pushl 0x8(%ebp) 8010253a: e8 c9 fe ff ff call 80102408 <namex> 8010253f: 83 c4 10 add $0x10,%esp } 80102542: c9 leave 80102543: c3 ret 80102544 <nameiparent>: struct inode* nameiparent(char *path, char *name) { 80102544: 55 push %ebp 80102545: 89 e5 mov %esp,%ebp 80102547: 83 ec 08 sub $0x8,%esp return namex(path, 1, name); 8010254a: 83 ec 04 sub $0x4,%esp 8010254d: ff 75 0c pushl 0xc(%ebp) 80102550: 6a 01 push $0x1 80102552: ff 75 08 pushl 0x8(%ebp) 80102555: e8 ae fe ff ff call 80102408 <namex> 8010255a: 83 c4 10 add $0x10,%esp } 8010255d: c9 leave 8010255e: c3 ret 8010255f <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 8010255f: 55 push %ebp 80102560: 89 e5 mov %esp,%ebp 80102562: 83 ec 14 sub $0x14,%esp 80102565: 8b 45 08 mov 0x8(%ebp),%eax 80102568: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010256c: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80102570: 89 c2 mov %eax,%edx 80102572: ec in (%dx),%al 80102573: 88 45 ff mov %al,-0x1(%ebp) return data; 80102576: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 8010257a: c9 leave 8010257b: c3 ret 8010257c <insl>: static inline void insl(int port, void *addr, int cnt) { 8010257c: 55 push %ebp 8010257d: 89 e5 mov %esp,%ebp 8010257f: 57 push %edi 80102580: 53 push %ebx asm volatile("cld; rep insl" : 80102581: 8b 55 08 mov 0x8(%ebp),%edx 80102584: 8b 4d 0c mov 0xc(%ebp),%ecx 80102587: 8b 45 10 mov 0x10(%ebp),%eax 8010258a: 89 cb mov %ecx,%ebx 8010258c: 89 df mov %ebx,%edi 8010258e: 89 c1 mov %eax,%ecx 80102590: fc cld 80102591: f3 6d rep insl (%dx),%es:(%edi) 80102593: 89 c8 mov %ecx,%eax 80102595: 89 fb mov %edi,%ebx 80102597: 89 5d 0c mov %ebx,0xc(%ebp) 8010259a: 89 45 10 mov %eax,0x10(%ebp) "=D" (addr), "=c" (cnt) : "d" (port), "0" (addr), "1" (cnt) : "memory", "cc"); } 8010259d: 90 nop 8010259e: 5b pop %ebx 8010259f: 5f pop %edi 801025a0: 5d pop %ebp 801025a1: c3 ret 801025a2 <outb>: static inline void outb(ushort port, uchar data) { 801025a2: 55 push %ebp 801025a3: 89 e5 mov %esp,%ebp 801025a5: 83 ec 08 sub $0x8,%esp 801025a8: 8b 55 08 mov 0x8(%ebp),%edx 801025ab: 8b 45 0c mov 0xc(%ebp),%eax 801025ae: 66 89 55 fc mov %dx,-0x4(%ebp) 801025b2: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801025b5: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 801025b9: 0f b7 55 fc movzwl -0x4(%ebp),%edx 801025bd: ee out %al,(%dx) } 801025be: 90 nop 801025bf: c9 leave 801025c0: c3 ret 801025c1 <outsl>: asm volatile("out %0,%1" : : "a" (data), "d" (port)); } static inline void outsl(int port, const void *addr, int cnt) { 801025c1: 55 push %ebp 801025c2: 89 e5 mov %esp,%ebp 801025c4: 56 push %esi 801025c5: 53 push %ebx asm volatile("cld; rep outsl" : 801025c6: 8b 55 08 mov 0x8(%ebp),%edx 801025c9: 8b 4d 0c mov 0xc(%ebp),%ecx 801025cc: 8b 45 10 mov 0x10(%ebp),%eax 801025cf: 89 cb mov %ecx,%ebx 801025d1: 89 de mov %ebx,%esi 801025d3: 89 c1 mov %eax,%ecx 801025d5: fc cld 801025d6: f3 6f rep outsl %ds:(%esi),(%dx) 801025d8: 89 c8 mov %ecx,%eax 801025da: 89 f3 mov %esi,%ebx 801025dc: 89 5d 0c mov %ebx,0xc(%ebp) 801025df: 89 45 10 mov %eax,0x10(%ebp) "=S" (addr), "=c" (cnt) : "d" (port), "0" (addr), "1" (cnt) : "cc"); } 801025e2: 90 nop 801025e3: 5b pop %ebx 801025e4: 5e pop %esi 801025e5: 5d pop %ebp 801025e6: c3 ret 801025e7 <idewait>: static void idestart(struct buf*); // Wait for IDE disk to become ready. static int idewait(int checkerr) { 801025e7: 55 push %ebp 801025e8: 89 e5 mov %esp,%ebp 801025ea: 83 ec 10 sub $0x10,%esp int r; while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY) 801025ed: 90 nop 801025ee: 68 f7 01 00 00 push $0x1f7 801025f3: e8 67 ff ff ff call 8010255f <inb> 801025f8: 83 c4 04 add $0x4,%esp 801025fb: 0f b6 c0 movzbl %al,%eax 801025fe: 89 45 fc mov %eax,-0x4(%ebp) 80102601: 8b 45 fc mov -0x4(%ebp),%eax 80102604: 25 c0 00 00 00 and $0xc0,%eax 80102609: 83 f8 40 cmp $0x40,%eax 8010260c: 75 e0 jne 801025ee <idewait+0x7> ; if(checkerr && (r & (IDE_DF|IDE_ERR)) != 0) 8010260e: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80102612: 74 11 je 80102625 <idewait+0x3e> 80102614: 8b 45 fc mov -0x4(%ebp),%eax 80102617: 83 e0 21 and $0x21,%eax 8010261a: 85 c0 test %eax,%eax 8010261c: 74 07 je 80102625 <idewait+0x3e> return -1; 8010261e: b8 ff ff ff ff mov $0xffffffff,%eax 80102623: eb 05 jmp 8010262a <idewait+0x43> return 0; 80102625: b8 00 00 00 00 mov $0x0,%eax } 8010262a: c9 leave 8010262b: c3 ret 8010262c <ideinit>: void ideinit(void) { 8010262c: 55 push %ebp 8010262d: 89 e5 mov %esp,%ebp 8010262f: 83 ec 18 sub $0x18,%esp int i; initlock(&idelock, "ide"); 80102632: 83 ec 08 sub $0x8,%esp 80102635: 68 9a 8b 10 80 push $0x80108b9a 8010263a: 68 00 c6 10 80 push $0x8010c600 8010263f: e8 65 2e 00 00 call 801054a9 <initlock> 80102644: 83 c4 10 add $0x10,%esp picenable(IRQ_IDE); 80102647: 83 ec 0c sub $0xc,%esp 8010264a: 6a 0e push $0xe 8010264c: e8 da 18 00 00 call 80103f2b <picenable> 80102651: 83 c4 10 add $0x10,%esp ioapicenable(IRQ_IDE, ncpu - 1); 80102654: a1 40 39 11 80 mov 0x80113940,%eax 80102659: 83 e8 01 sub $0x1,%eax 8010265c: 83 ec 08 sub $0x8,%esp 8010265f: 50 push %eax 80102660: 6a 0e push $0xe 80102662: e8 73 04 00 00 call 80102ada <ioapicenable> 80102667: 83 c4 10 add $0x10,%esp idewait(0); 8010266a: 83 ec 0c sub $0xc,%esp 8010266d: 6a 00 push $0x0 8010266f: e8 73 ff ff ff call 801025e7 <idewait> 80102674: 83 c4 10 add $0x10,%esp // Check if disk 1 is present outb(0x1f6, 0xe0 | (1<<4)); 80102677: 83 ec 08 sub $0x8,%esp 8010267a: 68 f0 00 00 00 push $0xf0 8010267f: 68 f6 01 00 00 push $0x1f6 80102684: e8 19 ff ff ff call 801025a2 <outb> 80102689: 83 c4 10 add $0x10,%esp for(i=0; i<1000; i++){ 8010268c: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80102693: eb 24 jmp 801026b9 <ideinit+0x8d> if(inb(0x1f7) != 0){ 80102695: 83 ec 0c sub $0xc,%esp 80102698: 68 f7 01 00 00 push $0x1f7 8010269d: e8 bd fe ff ff call 8010255f <inb> 801026a2: 83 c4 10 add $0x10,%esp 801026a5: 84 c0 test %al,%al 801026a7: 74 0c je 801026b5 <ideinit+0x89> havedisk1 = 1; 801026a9: c7 05 38 c6 10 80 01 movl $0x1,0x8010c638 801026b0: 00 00 00 break; 801026b3: eb 0d jmp 801026c2 <ideinit+0x96> ioapicenable(IRQ_IDE, ncpu - 1); idewait(0); // Check if disk 1 is present outb(0x1f6, 0xe0 | (1<<4)); for(i=0; i<1000; i++){ 801026b5: 83 45 f4 01 addl $0x1,-0xc(%ebp) 801026b9: 81 7d f4 e7 03 00 00 cmpl $0x3e7,-0xc(%ebp) 801026c0: 7e d3 jle 80102695 <ideinit+0x69> break; } } // Switch back to disk 0. outb(0x1f6, 0xe0 | (0<<4)); 801026c2: 83 ec 08 sub $0x8,%esp 801026c5: 68 e0 00 00 00 push $0xe0 801026ca: 68 f6 01 00 00 push $0x1f6 801026cf: e8 ce fe ff ff call 801025a2 <outb> 801026d4: 83 c4 10 add $0x10,%esp } 801026d7: 90 nop 801026d8: c9 leave 801026d9: c3 ret 801026da <idestart>: // Start the request for b. Caller must hold idelock. static void idestart(struct buf *b) { 801026da: 55 push %ebp 801026db: 89 e5 mov %esp,%ebp 801026dd: 83 ec 18 sub $0x18,%esp if(b == 0) 801026e0: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 801026e4: 75 0d jne 801026f3 <idestart+0x19> panic("idestart"); 801026e6: 83 ec 0c sub $0xc,%esp 801026e9: 68 9e 8b 10 80 push $0x80108b9e 801026ee: e8 73 de ff ff call 80100566 <panic> if(b->blockno >= FSSIZE) 801026f3: 8b 45 08 mov 0x8(%ebp),%eax 801026f6: 8b 40 08 mov 0x8(%eax),%eax 801026f9: 3d e7 03 00 00 cmp $0x3e7,%eax 801026fe: 76 0d jbe 8010270d <idestart+0x33> panic("incorrect blockno"); 80102700: 83 ec 0c sub $0xc,%esp 80102703: 68 a7 8b 10 80 push $0x80108ba7 80102708: e8 59 de ff ff call 80100566 <panic> int sector_per_block = BSIZE/SECTOR_SIZE; 8010270d: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) int sector = b->blockno * sector_per_block; 80102714: 8b 45 08 mov 0x8(%ebp),%eax 80102717: 8b 50 08 mov 0x8(%eax),%edx 8010271a: 8b 45 f4 mov -0xc(%ebp),%eax 8010271d: 0f af c2 imul %edx,%eax 80102720: 89 45 f0 mov %eax,-0x10(%ebp) if (sector_per_block > 7) panic("idestart"); 80102723: 83 7d f4 07 cmpl $0x7,-0xc(%ebp) 80102727: 7e 0d jle 80102736 <idestart+0x5c> 80102729: 83 ec 0c sub $0xc,%esp 8010272c: 68 9e 8b 10 80 push $0x80108b9e 80102731: e8 30 de ff ff call 80100566 <panic> idewait(0); 80102736: 83 ec 0c sub $0xc,%esp 80102739: 6a 00 push $0x0 8010273b: e8 a7 fe ff ff call 801025e7 <idewait> 80102740: 83 c4 10 add $0x10,%esp outb(0x3f6, 0); // generate interrupt 80102743: 83 ec 08 sub $0x8,%esp 80102746: 6a 00 push $0x0 80102748: 68 f6 03 00 00 push $0x3f6 8010274d: e8 50 fe ff ff call 801025a2 <outb> 80102752: 83 c4 10 add $0x10,%esp outb(0x1f2, sector_per_block); // number of sectors 80102755: 8b 45 f4 mov -0xc(%ebp),%eax 80102758: 0f b6 c0 movzbl %al,%eax 8010275b: 83 ec 08 sub $0x8,%esp 8010275e: 50 push %eax 8010275f: 68 f2 01 00 00 push $0x1f2 80102764: e8 39 fe ff ff call 801025a2 <outb> 80102769: 83 c4 10 add $0x10,%esp outb(0x1f3, sector & 0xff); 8010276c: 8b 45 f0 mov -0x10(%ebp),%eax 8010276f: 0f b6 c0 movzbl %al,%eax 80102772: 83 ec 08 sub $0x8,%esp 80102775: 50 push %eax 80102776: 68 f3 01 00 00 push $0x1f3 8010277b: e8 22 fe ff ff call 801025a2 <outb> 80102780: 83 c4 10 add $0x10,%esp outb(0x1f4, (sector >> 8) & 0xff); 80102783: 8b 45 f0 mov -0x10(%ebp),%eax 80102786: c1 f8 08 sar $0x8,%eax 80102789: 0f b6 c0 movzbl %al,%eax 8010278c: 83 ec 08 sub $0x8,%esp 8010278f: 50 push %eax 80102790: 68 f4 01 00 00 push $0x1f4 80102795: e8 08 fe ff ff call 801025a2 <outb> 8010279a: 83 c4 10 add $0x10,%esp outb(0x1f5, (sector >> 16) & 0xff); 8010279d: 8b 45 f0 mov -0x10(%ebp),%eax 801027a0: c1 f8 10 sar $0x10,%eax 801027a3: 0f b6 c0 movzbl %al,%eax 801027a6: 83 ec 08 sub $0x8,%esp 801027a9: 50 push %eax 801027aa: 68 f5 01 00 00 push $0x1f5 801027af: e8 ee fd ff ff call 801025a2 <outb> 801027b4: 83 c4 10 add $0x10,%esp outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f)); 801027b7: 8b 45 08 mov 0x8(%ebp),%eax 801027ba: 8b 40 04 mov 0x4(%eax),%eax 801027bd: 83 e0 01 and $0x1,%eax 801027c0: c1 e0 04 shl $0x4,%eax 801027c3: 89 c2 mov %eax,%edx 801027c5: 8b 45 f0 mov -0x10(%ebp),%eax 801027c8: c1 f8 18 sar $0x18,%eax 801027cb: 83 e0 0f and $0xf,%eax 801027ce: 09 d0 or %edx,%eax 801027d0: 83 c8 e0 or $0xffffffe0,%eax 801027d3: 0f b6 c0 movzbl %al,%eax 801027d6: 83 ec 08 sub $0x8,%esp 801027d9: 50 push %eax 801027da: 68 f6 01 00 00 push $0x1f6 801027df: e8 be fd ff ff call 801025a2 <outb> 801027e4: 83 c4 10 add $0x10,%esp if(b->flags & B_DIRTY){ 801027e7: 8b 45 08 mov 0x8(%ebp),%eax 801027ea: 8b 00 mov (%eax),%eax 801027ec: 83 e0 04 and $0x4,%eax 801027ef: 85 c0 test %eax,%eax 801027f1: 74 30 je 80102823 <idestart+0x149> outb(0x1f7, IDE_CMD_WRITE); 801027f3: 83 ec 08 sub $0x8,%esp 801027f6: 6a 30 push $0x30 801027f8: 68 f7 01 00 00 push $0x1f7 801027fd: e8 a0 fd ff ff call 801025a2 <outb> 80102802: 83 c4 10 add $0x10,%esp outsl(0x1f0, b->data, BSIZE/4); 80102805: 8b 45 08 mov 0x8(%ebp),%eax 80102808: 83 c0 18 add $0x18,%eax 8010280b: 83 ec 04 sub $0x4,%esp 8010280e: 68 80 00 00 00 push $0x80 80102813: 50 push %eax 80102814: 68 f0 01 00 00 push $0x1f0 80102819: e8 a3 fd ff ff call 801025c1 <outsl> 8010281e: 83 c4 10 add $0x10,%esp } else { outb(0x1f7, IDE_CMD_READ); } } 80102821: eb 12 jmp 80102835 <idestart+0x15b> outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f)); if(b->flags & B_DIRTY){ outb(0x1f7, IDE_CMD_WRITE); outsl(0x1f0, b->data, BSIZE/4); } else { outb(0x1f7, IDE_CMD_READ); 80102823: 83 ec 08 sub $0x8,%esp 80102826: 6a 20 push $0x20 80102828: 68 f7 01 00 00 push $0x1f7 8010282d: e8 70 fd ff ff call 801025a2 <outb> 80102832: 83 c4 10 add $0x10,%esp } } 80102835: 90 nop 80102836: c9 leave 80102837: c3 ret 80102838 <ideintr>: // Interrupt handler. void ideintr(void) { 80102838: 55 push %ebp 80102839: 89 e5 mov %esp,%ebp 8010283b: 83 ec 18 sub $0x18,%esp struct buf *b; // First queued buffer is the active request. acquire(&idelock); 8010283e: 83 ec 0c sub $0xc,%esp 80102841: 68 00 c6 10 80 push $0x8010c600 80102846: e8 80 2c 00 00 call 801054cb <acquire> 8010284b: 83 c4 10 add $0x10,%esp if((b = idequeue) == 0){ 8010284e: a1 34 c6 10 80 mov 0x8010c634,%eax 80102853: 89 45 f4 mov %eax,-0xc(%ebp) 80102856: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010285a: 75 15 jne 80102871 <ideintr+0x39> release(&idelock); 8010285c: 83 ec 0c sub $0xc,%esp 8010285f: 68 00 c6 10 80 push $0x8010c600 80102864: e8 c9 2c 00 00 call 80105532 <release> 80102869: 83 c4 10 add $0x10,%esp // cprintf("spurious IDE interrupt\n"); return; 8010286c: e9 9a 00 00 00 jmp 8010290b <ideintr+0xd3> } idequeue = b->qnext; 80102871: 8b 45 f4 mov -0xc(%ebp),%eax 80102874: 8b 40 14 mov 0x14(%eax),%eax 80102877: a3 34 c6 10 80 mov %eax,0x8010c634 // Read data if needed. if(!(b->flags & B_DIRTY) && idewait(1) >= 0) 8010287c: 8b 45 f4 mov -0xc(%ebp),%eax 8010287f: 8b 00 mov (%eax),%eax 80102881: 83 e0 04 and $0x4,%eax 80102884: 85 c0 test %eax,%eax 80102886: 75 2d jne 801028b5 <ideintr+0x7d> 80102888: 83 ec 0c sub $0xc,%esp 8010288b: 6a 01 push $0x1 8010288d: e8 55 fd ff ff call 801025e7 <idewait> 80102892: 83 c4 10 add $0x10,%esp 80102895: 85 c0 test %eax,%eax 80102897: 78 1c js 801028b5 <ideintr+0x7d> insl(0x1f0, b->data, BSIZE/4); 80102899: 8b 45 f4 mov -0xc(%ebp),%eax 8010289c: 83 c0 18 add $0x18,%eax 8010289f: 83 ec 04 sub $0x4,%esp 801028a2: 68 80 00 00 00 push $0x80 801028a7: 50 push %eax 801028a8: 68 f0 01 00 00 push $0x1f0 801028ad: e8 ca fc ff ff call 8010257c <insl> 801028b2: 83 c4 10 add $0x10,%esp // Wake process waiting for this buf. b->flags |= B_VALID; 801028b5: 8b 45 f4 mov -0xc(%ebp),%eax 801028b8: 8b 00 mov (%eax),%eax 801028ba: 83 c8 02 or $0x2,%eax 801028bd: 89 c2 mov %eax,%edx 801028bf: 8b 45 f4 mov -0xc(%ebp),%eax 801028c2: 89 10 mov %edx,(%eax) b->flags &= ~B_DIRTY; 801028c4: 8b 45 f4 mov -0xc(%ebp),%eax 801028c7: 8b 00 mov (%eax),%eax 801028c9: 83 e0 fb and $0xfffffffb,%eax 801028cc: 89 c2 mov %eax,%edx 801028ce: 8b 45 f4 mov -0xc(%ebp),%eax 801028d1: 89 10 mov %edx,(%eax) wakeup(b); 801028d3: 83 ec 0c sub $0xc,%esp 801028d6: ff 75 f4 pushl -0xc(%ebp) 801028d9: e8 d9 29 00 00 call 801052b7 <wakeup> 801028de: 83 c4 10 add $0x10,%esp // Start disk on next buf in queue. if(idequeue != 0) 801028e1: a1 34 c6 10 80 mov 0x8010c634,%eax 801028e6: 85 c0 test %eax,%eax 801028e8: 74 11 je 801028fb <ideintr+0xc3> idestart(idequeue); 801028ea: a1 34 c6 10 80 mov 0x8010c634,%eax 801028ef: 83 ec 0c sub $0xc,%esp 801028f2: 50 push %eax 801028f3: e8 e2 fd ff ff call 801026da <idestart> 801028f8: 83 c4 10 add $0x10,%esp release(&idelock); 801028fb: 83 ec 0c sub $0xc,%esp 801028fe: 68 00 c6 10 80 push $0x8010c600 80102903: e8 2a 2c 00 00 call 80105532 <release> 80102908: 83 c4 10 add $0x10,%esp } 8010290b: c9 leave 8010290c: c3 ret 8010290d <iderw>: // Sync buf with disk. // If B_DIRTY is set, write buf to disk, clear B_DIRTY, set B_VALID. // Else if B_VALID is not set, read buf from disk, set B_VALID. void iderw(struct buf *b) { 8010290d: 55 push %ebp 8010290e: 89 e5 mov %esp,%ebp 80102910: 83 ec 18 sub $0x18,%esp struct buf **pp; if(!(b->flags & B_BUSY)) 80102913: 8b 45 08 mov 0x8(%ebp),%eax 80102916: 8b 00 mov (%eax),%eax 80102918: 83 e0 01 and $0x1,%eax 8010291b: 85 c0 test %eax,%eax 8010291d: 75 0d jne 8010292c <iderw+0x1f> panic("iderw: buf not busy"); 8010291f: 83 ec 0c sub $0xc,%esp 80102922: 68 b9 8b 10 80 push $0x80108bb9 80102927: e8 3a dc ff ff call 80100566 <panic> if((b->flags & (B_VALID|B_DIRTY)) == B_VALID) 8010292c: 8b 45 08 mov 0x8(%ebp),%eax 8010292f: 8b 00 mov (%eax),%eax 80102931: 83 e0 06 and $0x6,%eax 80102934: 83 f8 02 cmp $0x2,%eax 80102937: 75 0d jne 80102946 <iderw+0x39> panic("iderw: nothing to do"); 80102939: 83 ec 0c sub $0xc,%esp 8010293c: 68 cd 8b 10 80 push $0x80108bcd 80102941: e8 20 dc ff ff call 80100566 <panic> if(b->dev != 0 && !havedisk1) 80102946: 8b 45 08 mov 0x8(%ebp),%eax 80102949: 8b 40 04 mov 0x4(%eax),%eax 8010294c: 85 c0 test %eax,%eax 8010294e: 74 16 je 80102966 <iderw+0x59> 80102950: a1 38 c6 10 80 mov 0x8010c638,%eax 80102955: 85 c0 test %eax,%eax 80102957: 75 0d jne 80102966 <iderw+0x59> panic("iderw: ide disk 1 not present"); 80102959: 83 ec 0c sub $0xc,%esp 8010295c: 68 e2 8b 10 80 push $0x80108be2 80102961: e8 00 dc ff ff call 80100566 <panic> acquire(&idelock); //DOC:acquire-lock 80102966: 83 ec 0c sub $0xc,%esp 80102969: 68 00 c6 10 80 push $0x8010c600 8010296e: e8 58 2b 00 00 call 801054cb <acquire> 80102973: 83 c4 10 add $0x10,%esp // Append b to idequeue. b->qnext = 0; 80102976: 8b 45 08 mov 0x8(%ebp),%eax 80102979: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax) for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue 80102980: c7 45 f4 34 c6 10 80 movl $0x8010c634,-0xc(%ebp) 80102987: eb 0b jmp 80102994 <iderw+0x87> 80102989: 8b 45 f4 mov -0xc(%ebp),%eax 8010298c: 8b 00 mov (%eax),%eax 8010298e: 83 c0 14 add $0x14,%eax 80102991: 89 45 f4 mov %eax,-0xc(%ebp) 80102994: 8b 45 f4 mov -0xc(%ebp),%eax 80102997: 8b 00 mov (%eax),%eax 80102999: 85 c0 test %eax,%eax 8010299b: 75 ec jne 80102989 <iderw+0x7c> ; *pp = b; 8010299d: 8b 45 f4 mov -0xc(%ebp),%eax 801029a0: 8b 55 08 mov 0x8(%ebp),%edx 801029a3: 89 10 mov %edx,(%eax) // Start disk if necessary. if(idequeue == b) 801029a5: a1 34 c6 10 80 mov 0x8010c634,%eax 801029aa: 3b 45 08 cmp 0x8(%ebp),%eax 801029ad: 75 23 jne 801029d2 <iderw+0xc5> idestart(b); 801029af: 83 ec 0c sub $0xc,%esp 801029b2: ff 75 08 pushl 0x8(%ebp) 801029b5: e8 20 fd ff ff call 801026da <idestart> 801029ba: 83 c4 10 add $0x10,%esp // Wait for request to finish. while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){ 801029bd: eb 13 jmp 801029d2 <iderw+0xc5> sleep(b, &idelock); 801029bf: 83 ec 08 sub $0x8,%esp 801029c2: 68 00 c6 10 80 push $0x8010c600 801029c7: ff 75 08 pushl 0x8(%ebp) 801029ca: e8 fa 27 00 00 call 801051c9 <sleep> 801029cf: 83 c4 10 add $0x10,%esp // Start disk if necessary. if(idequeue == b) idestart(b); // Wait for request to finish. while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){ 801029d2: 8b 45 08 mov 0x8(%ebp),%eax 801029d5: 8b 00 mov (%eax),%eax 801029d7: 83 e0 06 and $0x6,%eax 801029da: 83 f8 02 cmp $0x2,%eax 801029dd: 75 e0 jne 801029bf <iderw+0xb2> sleep(b, &idelock); } release(&idelock); 801029df: 83 ec 0c sub $0xc,%esp 801029e2: 68 00 c6 10 80 push $0x8010c600 801029e7: e8 46 2b 00 00 call 80105532 <release> 801029ec: 83 c4 10 add $0x10,%esp } 801029ef: 90 nop 801029f0: c9 leave 801029f1: c3 ret 801029f2 <ioapicread>: uint data; }; static uint ioapicread(int reg) { 801029f2: 55 push %ebp 801029f3: 89 e5 mov %esp,%ebp ioapic->reg = reg; 801029f5: a1 14 32 11 80 mov 0x80113214,%eax 801029fa: 8b 55 08 mov 0x8(%ebp),%edx 801029fd: 89 10 mov %edx,(%eax) return ioapic->data; 801029ff: a1 14 32 11 80 mov 0x80113214,%eax 80102a04: 8b 40 10 mov 0x10(%eax),%eax } 80102a07: 5d pop %ebp 80102a08: c3 ret 80102a09 <ioapicwrite>: static void ioapicwrite(int reg, uint data) { 80102a09: 55 push %ebp 80102a0a: 89 e5 mov %esp,%ebp ioapic->reg = reg; 80102a0c: a1 14 32 11 80 mov 0x80113214,%eax 80102a11: 8b 55 08 mov 0x8(%ebp),%edx 80102a14: 89 10 mov %edx,(%eax) ioapic->data = data; 80102a16: a1 14 32 11 80 mov 0x80113214,%eax 80102a1b: 8b 55 0c mov 0xc(%ebp),%edx 80102a1e: 89 50 10 mov %edx,0x10(%eax) } 80102a21: 90 nop 80102a22: 5d pop %ebp 80102a23: c3 ret 80102a24 <ioapicinit>: void ioapicinit(void) { 80102a24: 55 push %ebp 80102a25: 89 e5 mov %esp,%ebp 80102a27: 83 ec 18 sub $0x18,%esp int i, id, maxintr; if(!ismp) 80102a2a: a1 44 33 11 80 mov 0x80113344,%eax 80102a2f: 85 c0 test %eax,%eax 80102a31: 0f 84 a0 00 00 00 je 80102ad7 <ioapicinit+0xb3> return; ioapic = (volatile struct ioapic*)IOAPIC; 80102a37: c7 05 14 32 11 80 00 movl $0xfec00000,0x80113214 80102a3e: 00 c0 fe maxintr = (ioapicread(REG_VER) >> 16) & 0xFF; 80102a41: 6a 01 push $0x1 80102a43: e8 aa ff ff ff call 801029f2 <ioapicread> 80102a48: 83 c4 04 add $0x4,%esp 80102a4b: c1 e8 10 shr $0x10,%eax 80102a4e: 25 ff 00 00 00 and $0xff,%eax 80102a53: 89 45 f0 mov %eax,-0x10(%ebp) id = ioapicread(REG_ID) >> 24; 80102a56: 6a 00 push $0x0 80102a58: e8 95 ff ff ff call 801029f2 <ioapicread> 80102a5d: 83 c4 04 add $0x4,%esp 80102a60: c1 e8 18 shr $0x18,%eax 80102a63: 89 45 ec mov %eax,-0x14(%ebp) if(id != ioapicid) 80102a66: 0f b6 05 40 33 11 80 movzbl 0x80113340,%eax 80102a6d: 0f b6 c0 movzbl %al,%eax 80102a70: 3b 45 ec cmp -0x14(%ebp),%eax 80102a73: 74 10 je 80102a85 <ioapicinit+0x61> cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n"); 80102a75: 83 ec 0c sub $0xc,%esp 80102a78: 68 00 8c 10 80 push $0x80108c00 80102a7d: e8 44 d9 ff ff call 801003c6 <cprintf> 80102a82: 83 c4 10 add $0x10,%esp // Mark all interrupts edge-triggered, active high, disabled, // and not routed to any CPUs. for(i = 0; i <= maxintr; i++){ 80102a85: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80102a8c: eb 3f jmp 80102acd <ioapicinit+0xa9> ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i)); 80102a8e: 8b 45 f4 mov -0xc(%ebp),%eax 80102a91: 83 c0 20 add $0x20,%eax 80102a94: 0d 00 00 01 00 or $0x10000,%eax 80102a99: 89 c2 mov %eax,%edx 80102a9b: 8b 45 f4 mov -0xc(%ebp),%eax 80102a9e: 83 c0 08 add $0x8,%eax 80102aa1: 01 c0 add %eax,%eax 80102aa3: 83 ec 08 sub $0x8,%esp 80102aa6: 52 push %edx 80102aa7: 50 push %eax 80102aa8: e8 5c ff ff ff call 80102a09 <ioapicwrite> 80102aad: 83 c4 10 add $0x10,%esp ioapicwrite(REG_TABLE+2*i+1, 0); 80102ab0: 8b 45 f4 mov -0xc(%ebp),%eax 80102ab3: 83 c0 08 add $0x8,%eax 80102ab6: 01 c0 add %eax,%eax 80102ab8: 83 c0 01 add $0x1,%eax 80102abb: 83 ec 08 sub $0x8,%esp 80102abe: 6a 00 push $0x0 80102ac0: 50 push %eax 80102ac1: e8 43 ff ff ff call 80102a09 <ioapicwrite> 80102ac6: 83 c4 10 add $0x10,%esp if(id != ioapicid) cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n"); // Mark all interrupts edge-triggered, active high, disabled, // and not routed to any CPUs. for(i = 0; i <= maxintr; i++){ 80102ac9: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80102acd: 8b 45 f4 mov -0xc(%ebp),%eax 80102ad0: 3b 45 f0 cmp -0x10(%ebp),%eax 80102ad3: 7e b9 jle 80102a8e <ioapicinit+0x6a> 80102ad5: eb 01 jmp 80102ad8 <ioapicinit+0xb4> ioapicinit(void) { int i, id, maxintr; if(!ismp) return; 80102ad7: 90 nop // and not routed to any CPUs. for(i = 0; i <= maxintr; i++){ ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i)); ioapicwrite(REG_TABLE+2*i+1, 0); } } 80102ad8: c9 leave 80102ad9: c3 ret 80102ada <ioapicenable>: void ioapicenable(int irq, int cpunum) { 80102ada: 55 push %ebp 80102adb: 89 e5 mov %esp,%ebp if(!ismp) 80102add: a1 44 33 11 80 mov 0x80113344,%eax 80102ae2: 85 c0 test %eax,%eax 80102ae4: 74 39 je 80102b1f <ioapicenable+0x45> return; // Mark interrupt edge-triggered, active high, // enabled, and routed to the given cpunum, // which happens to be that cpu's APIC ID. ioapicwrite(REG_TABLE+2*irq, T_IRQ0 + irq); 80102ae6: 8b 45 08 mov 0x8(%ebp),%eax 80102ae9: 83 c0 20 add $0x20,%eax 80102aec: 89 c2 mov %eax,%edx 80102aee: 8b 45 08 mov 0x8(%ebp),%eax 80102af1: 83 c0 08 add $0x8,%eax 80102af4: 01 c0 add %eax,%eax 80102af6: 52 push %edx 80102af7: 50 push %eax 80102af8: e8 0c ff ff ff call 80102a09 <ioapicwrite> 80102afd: 83 c4 08 add $0x8,%esp ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); 80102b00: 8b 45 0c mov 0xc(%ebp),%eax 80102b03: c1 e0 18 shl $0x18,%eax 80102b06: 89 c2 mov %eax,%edx 80102b08: 8b 45 08 mov 0x8(%ebp),%eax 80102b0b: 83 c0 08 add $0x8,%eax 80102b0e: 01 c0 add %eax,%eax 80102b10: 83 c0 01 add $0x1,%eax 80102b13: 52 push %edx 80102b14: 50 push %eax 80102b15: e8 ef fe ff ff call 80102a09 <ioapicwrite> 80102b1a: 83 c4 08 add $0x8,%esp 80102b1d: eb 01 jmp 80102b20 <ioapicenable+0x46> void ioapicenable(int irq, int cpunum) { if(!ismp) return; 80102b1f: 90 nop // Mark interrupt edge-triggered, active high, // enabled, and routed to the given cpunum, // which happens to be that cpu's APIC ID. ioapicwrite(REG_TABLE+2*irq, T_IRQ0 + irq); ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); } 80102b20: c9 leave 80102b21: c3 ret 80102b22 <v2p>: #define KERNBASE 0x80000000 // First kernel virtual address #define KERNLINK (KERNBASE+EXTMEM) // Address where kernel is linked #ifndef __ASSEMBLER__ static inline uint v2p(void *a) { return ((uint) (a)) - KERNBASE; } 80102b22: 55 push %ebp 80102b23: 89 e5 mov %esp,%ebp 80102b25: 8b 45 08 mov 0x8(%ebp),%eax 80102b28: 05 00 00 00 80 add $0x80000000,%eax 80102b2d: 5d pop %ebp 80102b2e: c3 ret 80102b2f <kinit1>: // the pages mapped by entrypgdir on free list. // 2. main() calls kinit2() with the rest of the physical pages // after installing a full page table that maps them on all cores. void kinit1(void *vstart, void *vend) { 80102b2f: 55 push %ebp 80102b30: 89 e5 mov %esp,%ebp 80102b32: 83 ec 08 sub $0x8,%esp initlock(&kmem.lock, "kmem"); 80102b35: 83 ec 08 sub $0x8,%esp 80102b38: 68 32 8c 10 80 push $0x80108c32 80102b3d: 68 20 32 11 80 push $0x80113220 80102b42: e8 62 29 00 00 call 801054a9 <initlock> 80102b47: 83 c4 10 add $0x10,%esp kmem.use_lock = 0; 80102b4a: c7 05 54 32 11 80 00 movl $0x0,0x80113254 80102b51: 00 00 00 freerange(vstart, vend); 80102b54: 83 ec 08 sub $0x8,%esp 80102b57: ff 75 0c pushl 0xc(%ebp) 80102b5a: ff 75 08 pushl 0x8(%ebp) 80102b5d: e8 2a 00 00 00 call 80102b8c <freerange> 80102b62: 83 c4 10 add $0x10,%esp } 80102b65: 90 nop 80102b66: c9 leave 80102b67: c3 ret 80102b68 <kinit2>: void kinit2(void *vstart, void *vend) { 80102b68: 55 push %ebp 80102b69: 89 e5 mov %esp,%ebp 80102b6b: 83 ec 08 sub $0x8,%esp freerange(vstart, vend); 80102b6e: 83 ec 08 sub $0x8,%esp 80102b71: ff 75 0c pushl 0xc(%ebp) 80102b74: ff 75 08 pushl 0x8(%ebp) 80102b77: e8 10 00 00 00 call 80102b8c <freerange> 80102b7c: 83 c4 10 add $0x10,%esp kmem.use_lock = 1; 80102b7f: c7 05 54 32 11 80 01 movl $0x1,0x80113254 80102b86: 00 00 00 } 80102b89: 90 nop 80102b8a: c9 leave 80102b8b: c3 ret 80102b8c <freerange>: void freerange(void *vstart, void *vend) { 80102b8c: 55 push %ebp 80102b8d: 89 e5 mov %esp,%ebp 80102b8f: 83 ec 18 sub $0x18,%esp char *p; p = (char*)PGROUNDUP((uint)vstart); 80102b92: 8b 45 08 mov 0x8(%ebp),%eax 80102b95: 05 ff 0f 00 00 add $0xfff,%eax 80102b9a: 25 00 f0 ff ff and $0xfffff000,%eax 80102b9f: 89 45 f4 mov %eax,-0xc(%ebp) for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102ba2: eb 15 jmp 80102bb9 <freerange+0x2d> kfree(p); 80102ba4: 83 ec 0c sub $0xc,%esp 80102ba7: ff 75 f4 pushl -0xc(%ebp) 80102baa: e8 1a 00 00 00 call 80102bc9 <kfree> 80102baf: 83 c4 10 add $0x10,%esp void freerange(void *vstart, void *vend) { char *p; p = (char*)PGROUNDUP((uint)vstart); for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102bb2: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 80102bb9: 8b 45 f4 mov -0xc(%ebp),%eax 80102bbc: 05 00 10 00 00 add $0x1000,%eax 80102bc1: 3b 45 0c cmp 0xc(%ebp),%eax 80102bc4: 76 de jbe 80102ba4 <freerange+0x18> kfree(p); } 80102bc6: 90 nop 80102bc7: c9 leave 80102bc8: c3 ret 80102bc9 <kfree>: // which normally should have been returned by a // call to kalloc(). (The exception is when // initializing the allocator; see kinit above.) void kfree(char *v) { 80102bc9: 55 push %ebp 80102bca: 89 e5 mov %esp,%ebp 80102bcc: 83 ec 18 sub $0x18,%esp struct run *r; if((uint)v % PGSIZE || v < end || v2p(v) >= PHYSTOP) 80102bcf: 8b 45 08 mov 0x8(%ebp),%eax 80102bd2: 25 ff 0f 00 00 and $0xfff,%eax 80102bd7: 85 c0 test %eax,%eax 80102bd9: 75 1b jne 80102bf6 <kfree+0x2d> 80102bdb: 81 7d 08 7c 66 11 80 cmpl $0x8011667c,0x8(%ebp) 80102be2: 72 12 jb 80102bf6 <kfree+0x2d> 80102be4: ff 75 08 pushl 0x8(%ebp) 80102be7: e8 36 ff ff ff call 80102b22 <v2p> 80102bec: 83 c4 04 add $0x4,%esp 80102bef: 3d ff ff ff 0d cmp $0xdffffff,%eax 80102bf4: 76 0d jbe 80102c03 <kfree+0x3a> panic("kfree"); 80102bf6: 83 ec 0c sub $0xc,%esp 80102bf9: 68 37 8c 10 80 push $0x80108c37 80102bfe: e8 63 d9 ff ff call 80100566 <panic> // Fill with junk to catch dangling refs. memset(v, 1, PGSIZE); 80102c03: 83 ec 04 sub $0x4,%esp 80102c06: 68 00 10 00 00 push $0x1000 80102c0b: 6a 01 push $0x1 80102c0d: ff 75 08 pushl 0x8(%ebp) 80102c10: e8 19 2b 00 00 call 8010572e <memset> 80102c15: 83 c4 10 add $0x10,%esp if(kmem.use_lock) 80102c18: a1 54 32 11 80 mov 0x80113254,%eax 80102c1d: 85 c0 test %eax,%eax 80102c1f: 74 10 je 80102c31 <kfree+0x68> acquire(&kmem.lock); 80102c21: 83 ec 0c sub $0xc,%esp 80102c24: 68 20 32 11 80 push $0x80113220 80102c29: e8 9d 28 00 00 call 801054cb <acquire> 80102c2e: 83 c4 10 add $0x10,%esp r = (struct run*)v; 80102c31: 8b 45 08 mov 0x8(%ebp),%eax 80102c34: 89 45 f4 mov %eax,-0xc(%ebp) r->next = kmem.freelist; 80102c37: 8b 15 58 32 11 80 mov 0x80113258,%edx 80102c3d: 8b 45 f4 mov -0xc(%ebp),%eax 80102c40: 89 10 mov %edx,(%eax) kmem.freelist = r; 80102c42: 8b 45 f4 mov -0xc(%ebp),%eax 80102c45: a3 58 32 11 80 mov %eax,0x80113258 if(kmem.use_lock) 80102c4a: a1 54 32 11 80 mov 0x80113254,%eax 80102c4f: 85 c0 test %eax,%eax 80102c51: 74 10 je 80102c63 <kfree+0x9a> release(&kmem.lock); 80102c53: 83 ec 0c sub $0xc,%esp 80102c56: 68 20 32 11 80 push $0x80113220 80102c5b: e8 d2 28 00 00 call 80105532 <release> 80102c60: 83 c4 10 add $0x10,%esp } 80102c63: 90 nop 80102c64: c9 leave 80102c65: c3 ret 80102c66 <kalloc>: // Allocate one 4096-byte page of physical memory. // Returns a pointer that the kernel can use. // Returns 0 if the memory cannot be allocated. char* kalloc(void) { 80102c66: 55 push %ebp 80102c67: 89 e5 mov %esp,%ebp 80102c69: 83 ec 18 sub $0x18,%esp struct run *r; if(kmem.use_lock) 80102c6c: a1 54 32 11 80 mov 0x80113254,%eax 80102c71: 85 c0 test %eax,%eax 80102c73: 74 10 je 80102c85 <kalloc+0x1f> acquire(&kmem.lock); 80102c75: 83 ec 0c sub $0xc,%esp 80102c78: 68 20 32 11 80 push $0x80113220 80102c7d: e8 49 28 00 00 call 801054cb <acquire> 80102c82: 83 c4 10 add $0x10,%esp r = kmem.freelist; 80102c85: a1 58 32 11 80 mov 0x80113258,%eax 80102c8a: 89 45 f4 mov %eax,-0xc(%ebp) if(r) 80102c8d: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80102c91: 74 0a je 80102c9d <kalloc+0x37> kmem.freelist = r->next; 80102c93: 8b 45 f4 mov -0xc(%ebp),%eax 80102c96: 8b 00 mov (%eax),%eax 80102c98: a3 58 32 11 80 mov %eax,0x80113258 if(kmem.use_lock) 80102c9d: a1 54 32 11 80 mov 0x80113254,%eax 80102ca2: 85 c0 test %eax,%eax 80102ca4: 74 10 je 80102cb6 <kalloc+0x50> release(&kmem.lock); 80102ca6: 83 ec 0c sub $0xc,%esp 80102ca9: 68 20 32 11 80 push $0x80113220 80102cae: e8 7f 28 00 00 call 80105532 <release> 80102cb3: 83 c4 10 add $0x10,%esp return (char*)r; 80102cb6: 8b 45 f4 mov -0xc(%ebp),%eax } 80102cb9: c9 leave 80102cba: c3 ret 80102cbb <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 80102cbb: 55 push %ebp 80102cbc: 89 e5 mov %esp,%ebp 80102cbe: 83 ec 14 sub $0x14,%esp 80102cc1: 8b 45 08 mov 0x8(%ebp),%eax 80102cc4: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102cc8: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80102ccc: 89 c2 mov %eax,%edx 80102cce: ec in (%dx),%al 80102ccf: 88 45 ff mov %al,-0x1(%ebp) return data; 80102cd2: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80102cd6: c9 leave 80102cd7: c3 ret 80102cd8 <kbdgetc>: #include "defs.h" #include "kbd.h" int kbdgetc(void) { 80102cd8: 55 push %ebp 80102cd9: 89 e5 mov %esp,%ebp 80102cdb: 83 ec 10 sub $0x10,%esp static uchar *charcode[4] = { normalmap, shiftmap, ctlmap, ctlmap }; uint st, data, c; st = inb(KBSTATP); 80102cde: 6a 64 push $0x64 80102ce0: e8 d6 ff ff ff call 80102cbb <inb> 80102ce5: 83 c4 04 add $0x4,%esp 80102ce8: 0f b6 c0 movzbl %al,%eax 80102ceb: 89 45 f4 mov %eax,-0xc(%ebp) if((st & KBS_DIB) == 0) 80102cee: 8b 45 f4 mov -0xc(%ebp),%eax 80102cf1: 83 e0 01 and $0x1,%eax 80102cf4: 85 c0 test %eax,%eax 80102cf6: 75 0a jne 80102d02 <kbdgetc+0x2a> return -1; 80102cf8: b8 ff ff ff ff mov $0xffffffff,%eax 80102cfd: e9 23 01 00 00 jmp 80102e25 <kbdgetc+0x14d> data = inb(KBDATAP); 80102d02: 6a 60 push $0x60 80102d04: e8 b2 ff ff ff call 80102cbb <inb> 80102d09: 83 c4 04 add $0x4,%esp 80102d0c: 0f b6 c0 movzbl %al,%eax 80102d0f: 89 45 fc mov %eax,-0x4(%ebp) if(data == 0xE0){ 80102d12: 81 7d fc e0 00 00 00 cmpl $0xe0,-0x4(%ebp) 80102d19: 75 17 jne 80102d32 <kbdgetc+0x5a> shift |= E0ESC; 80102d1b: a1 3c c6 10 80 mov 0x8010c63c,%eax 80102d20: 83 c8 40 or $0x40,%eax 80102d23: a3 3c c6 10 80 mov %eax,0x8010c63c return 0; 80102d28: b8 00 00 00 00 mov $0x0,%eax 80102d2d: e9 f3 00 00 00 jmp 80102e25 <kbdgetc+0x14d> } else if(data & 0x80){ 80102d32: 8b 45 fc mov -0x4(%ebp),%eax 80102d35: 25 80 00 00 00 and $0x80,%eax 80102d3a: 85 c0 test %eax,%eax 80102d3c: 74 45 je 80102d83 <kbdgetc+0xab> // Key released data = (shift & E0ESC ? data : data & 0x7F); 80102d3e: a1 3c c6 10 80 mov 0x8010c63c,%eax 80102d43: 83 e0 40 and $0x40,%eax 80102d46: 85 c0 test %eax,%eax 80102d48: 75 08 jne 80102d52 <kbdgetc+0x7a> 80102d4a: 8b 45 fc mov -0x4(%ebp),%eax 80102d4d: 83 e0 7f and $0x7f,%eax 80102d50: eb 03 jmp 80102d55 <kbdgetc+0x7d> 80102d52: 8b 45 fc mov -0x4(%ebp),%eax 80102d55: 89 45 fc mov %eax,-0x4(%ebp) shift &= ~(shiftcode[data] | E0ESC); 80102d58: 8b 45 fc mov -0x4(%ebp),%eax 80102d5b: 05 20 a0 10 80 add $0x8010a020,%eax 80102d60: 0f b6 00 movzbl (%eax),%eax 80102d63: 83 c8 40 or $0x40,%eax 80102d66: 0f b6 c0 movzbl %al,%eax 80102d69: f7 d0 not %eax 80102d6b: 89 c2 mov %eax,%edx 80102d6d: a1 3c c6 10 80 mov 0x8010c63c,%eax 80102d72: 21 d0 and %edx,%eax 80102d74: a3 3c c6 10 80 mov %eax,0x8010c63c return 0; 80102d79: b8 00 00 00 00 mov $0x0,%eax 80102d7e: e9 a2 00 00 00 jmp 80102e25 <kbdgetc+0x14d> } else if(shift & E0ESC){ 80102d83: a1 3c c6 10 80 mov 0x8010c63c,%eax 80102d88: 83 e0 40 and $0x40,%eax 80102d8b: 85 c0 test %eax,%eax 80102d8d: 74 14 je 80102da3 <kbdgetc+0xcb> // Last character was an E0 escape; or with 0x80 data |= 0x80; 80102d8f: 81 4d fc 80 00 00 00 orl $0x80,-0x4(%ebp) shift &= ~E0ESC; 80102d96: a1 3c c6 10 80 mov 0x8010c63c,%eax 80102d9b: 83 e0 bf and $0xffffffbf,%eax 80102d9e: a3 3c c6 10 80 mov %eax,0x8010c63c } shift |= shiftcode[data]; 80102da3: 8b 45 fc mov -0x4(%ebp),%eax 80102da6: 05 20 a0 10 80 add $0x8010a020,%eax 80102dab: 0f b6 00 movzbl (%eax),%eax 80102dae: 0f b6 d0 movzbl %al,%edx 80102db1: a1 3c c6 10 80 mov 0x8010c63c,%eax 80102db6: 09 d0 or %edx,%eax 80102db8: a3 3c c6 10 80 mov %eax,0x8010c63c shift ^= togglecode[data]; 80102dbd: 8b 45 fc mov -0x4(%ebp),%eax 80102dc0: 05 20 a1 10 80 add $0x8010a120,%eax 80102dc5: 0f b6 00 movzbl (%eax),%eax 80102dc8: 0f b6 d0 movzbl %al,%edx 80102dcb: a1 3c c6 10 80 mov 0x8010c63c,%eax 80102dd0: 31 d0 xor %edx,%eax 80102dd2: a3 3c c6 10 80 mov %eax,0x8010c63c c = charcode[shift & (CTL | SHIFT)][data]; 80102dd7: a1 3c c6 10 80 mov 0x8010c63c,%eax 80102ddc: 83 e0 03 and $0x3,%eax 80102ddf: 8b 14 85 20 a5 10 80 mov -0x7fef5ae0(,%eax,4),%edx 80102de6: 8b 45 fc mov -0x4(%ebp),%eax 80102de9: 01 d0 add %edx,%eax 80102deb: 0f b6 00 movzbl (%eax),%eax 80102dee: 0f b6 c0 movzbl %al,%eax 80102df1: 89 45 f8 mov %eax,-0x8(%ebp) if(shift & CAPSLOCK){ 80102df4: a1 3c c6 10 80 mov 0x8010c63c,%eax 80102df9: 83 e0 08 and $0x8,%eax 80102dfc: 85 c0 test %eax,%eax 80102dfe: 74 22 je 80102e22 <kbdgetc+0x14a> if('a' <= c && c <= 'z') 80102e00: 83 7d f8 60 cmpl $0x60,-0x8(%ebp) 80102e04: 76 0c jbe 80102e12 <kbdgetc+0x13a> 80102e06: 83 7d f8 7a cmpl $0x7a,-0x8(%ebp) 80102e0a: 77 06 ja 80102e12 <kbdgetc+0x13a> c += 'A' - 'a'; 80102e0c: 83 6d f8 20 subl $0x20,-0x8(%ebp) 80102e10: eb 10 jmp 80102e22 <kbdgetc+0x14a> else if('A' <= c && c <= 'Z') 80102e12: 83 7d f8 40 cmpl $0x40,-0x8(%ebp) 80102e16: 76 0a jbe 80102e22 <kbdgetc+0x14a> 80102e18: 83 7d f8 5a cmpl $0x5a,-0x8(%ebp) 80102e1c: 77 04 ja 80102e22 <kbdgetc+0x14a> c += 'a' - 'A'; 80102e1e: 83 45 f8 20 addl $0x20,-0x8(%ebp) } return c; 80102e22: 8b 45 f8 mov -0x8(%ebp),%eax } 80102e25: c9 leave 80102e26: c3 ret 80102e27 <kbdintr>: void kbdintr(void) { 80102e27: 55 push %ebp 80102e28: 89 e5 mov %esp,%ebp 80102e2a: 83 ec 08 sub $0x8,%esp consoleintr(kbdgetc); 80102e2d: 83 ec 0c sub $0xc,%esp 80102e30: 68 d8 2c 10 80 push $0x80102cd8 80102e35: e8 bf d9 ff ff call 801007f9 <consoleintr> 80102e3a: 83 c4 10 add $0x10,%esp } 80102e3d: 90 nop 80102e3e: c9 leave 80102e3f: c3 ret 80102e40 <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 80102e40: 55 push %ebp 80102e41: 89 e5 mov %esp,%ebp 80102e43: 83 ec 14 sub $0x14,%esp 80102e46: 8b 45 08 mov 0x8(%ebp),%eax 80102e49: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102e4d: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80102e51: 89 c2 mov %eax,%edx 80102e53: ec in (%dx),%al 80102e54: 88 45 ff mov %al,-0x1(%ebp) return data; 80102e57: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80102e5b: c9 leave 80102e5c: c3 ret 80102e5d <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 80102e5d: 55 push %ebp 80102e5e: 89 e5 mov %esp,%ebp 80102e60: 83 ec 08 sub $0x8,%esp 80102e63: 8b 55 08 mov 0x8(%ebp),%edx 80102e66: 8b 45 0c mov 0xc(%ebp),%eax 80102e69: 66 89 55 fc mov %dx,-0x4(%ebp) 80102e6d: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102e70: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80102e74: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80102e78: ee out %al,(%dx) } 80102e79: 90 nop 80102e7a: c9 leave 80102e7b: c3 ret 80102e7c <readeflags>: asm volatile("ltr %0" : : "r" (sel)); } static inline uint readeflags(void) { 80102e7c: 55 push %ebp 80102e7d: 89 e5 mov %esp,%ebp 80102e7f: 83 ec 10 sub $0x10,%esp uint eflags; asm volatile("pushfl; popl %0" : "=r" (eflags)); 80102e82: 9c pushf 80102e83: 58 pop %eax 80102e84: 89 45 fc mov %eax,-0x4(%ebp) return eflags; 80102e87: 8b 45 fc mov -0x4(%ebp),%eax } 80102e8a: c9 leave 80102e8b: c3 ret 80102e8c <lapicw>: volatile uint *lapic; // Initialized in mp.c static void lapicw(int index, int value) { 80102e8c: 55 push %ebp 80102e8d: 89 e5 mov %esp,%ebp lapic[index] = value; 80102e8f: a1 5c 32 11 80 mov 0x8011325c,%eax 80102e94: 8b 55 08 mov 0x8(%ebp),%edx 80102e97: c1 e2 02 shl $0x2,%edx 80102e9a: 01 c2 add %eax,%edx 80102e9c: 8b 45 0c mov 0xc(%ebp),%eax 80102e9f: 89 02 mov %eax,(%edx) lapic[ID]; // wait for write to finish, by reading 80102ea1: a1 5c 32 11 80 mov 0x8011325c,%eax 80102ea6: 83 c0 20 add $0x20,%eax 80102ea9: 8b 00 mov (%eax),%eax } 80102eab: 90 nop 80102eac: 5d pop %ebp 80102ead: c3 ret 80102eae <lapicinit>: //PAGEBREAK! void lapicinit(void) { 80102eae: 55 push %ebp 80102eaf: 89 e5 mov %esp,%ebp if(!lapic) 80102eb1: a1 5c 32 11 80 mov 0x8011325c,%eax 80102eb6: 85 c0 test %eax,%eax 80102eb8: 0f 84 0b 01 00 00 je 80102fc9 <lapicinit+0x11b> return; // Enable local APIC; set spurious interrupt vector. lapicw(SVR, ENABLE | (T_IRQ0 + IRQ_SPURIOUS)); 80102ebe: 68 3f 01 00 00 push $0x13f 80102ec3: 6a 3c push $0x3c 80102ec5: e8 c2 ff ff ff call 80102e8c <lapicw> 80102eca: 83 c4 08 add $0x8,%esp // The timer repeatedly counts down at bus frequency // from lapic[TICR] and then issues an interrupt. // If xv6 cared more about precise timekeeping, // TICR would be calibrated using an external time source. lapicw(TDCR, X1); 80102ecd: 6a 0b push $0xb 80102ecf: 68 f8 00 00 00 push $0xf8 80102ed4: e8 b3 ff ff ff call 80102e8c <lapicw> 80102ed9: 83 c4 08 add $0x8,%esp lapicw(TIMER, PERIODIC | (T_IRQ0 + IRQ_TIMER)); 80102edc: 68 20 00 02 00 push $0x20020 80102ee1: 68 c8 00 00 00 push $0xc8 80102ee6: e8 a1 ff ff ff call 80102e8c <lapicw> 80102eeb: 83 c4 08 add $0x8,%esp lapicw(TICR, 10000000); 80102eee: 68 80 96 98 00 push $0x989680 80102ef3: 68 e0 00 00 00 push $0xe0 80102ef8: e8 8f ff ff ff call 80102e8c <lapicw> 80102efd: 83 c4 08 add $0x8,%esp // Disable logical interrupt lines. lapicw(LINT0, MASKED); 80102f00: 68 00 00 01 00 push $0x10000 80102f05: 68 d4 00 00 00 push $0xd4 80102f0a: e8 7d ff ff ff call 80102e8c <lapicw> 80102f0f: 83 c4 08 add $0x8,%esp lapicw(LINT1, MASKED); 80102f12: 68 00 00 01 00 push $0x10000 80102f17: 68 d8 00 00 00 push $0xd8 80102f1c: e8 6b ff ff ff call 80102e8c <lapicw> 80102f21: 83 c4 08 add $0x8,%esp // Disable performance counter overflow interrupts // on machines that provide that interrupt entry. if(((lapic[VER]>>16) & 0xFF) >= 4) 80102f24: a1 5c 32 11 80 mov 0x8011325c,%eax 80102f29: 83 c0 30 add $0x30,%eax 80102f2c: 8b 00 mov (%eax),%eax 80102f2e: c1 e8 10 shr $0x10,%eax 80102f31: 0f b6 c0 movzbl %al,%eax 80102f34: 83 f8 03 cmp $0x3,%eax 80102f37: 76 12 jbe 80102f4b <lapicinit+0x9d> lapicw(PCINT, MASKED); 80102f39: 68 00 00 01 00 push $0x10000 80102f3e: 68 d0 00 00 00 push $0xd0 80102f43: e8 44 ff ff ff call 80102e8c <lapicw> 80102f48: 83 c4 08 add $0x8,%esp // Map error interrupt to IRQ_ERROR. lapicw(ERROR, T_IRQ0 + IRQ_ERROR); 80102f4b: 6a 33 push $0x33 80102f4d: 68 dc 00 00 00 push $0xdc 80102f52: e8 35 ff ff ff call 80102e8c <lapicw> 80102f57: 83 c4 08 add $0x8,%esp // Clear error status register (requires back-to-back writes). lapicw(ESR, 0); 80102f5a: 6a 00 push $0x0 80102f5c: 68 a0 00 00 00 push $0xa0 80102f61: e8 26 ff ff ff call 80102e8c <lapicw> 80102f66: 83 c4 08 add $0x8,%esp lapicw(ESR, 0); 80102f69: 6a 00 push $0x0 80102f6b: 68 a0 00 00 00 push $0xa0 80102f70: e8 17 ff ff ff call 80102e8c <lapicw> 80102f75: 83 c4 08 add $0x8,%esp // Ack any outstanding interrupts. lapicw(EOI, 0); 80102f78: 6a 00 push $0x0 80102f7a: 6a 2c push $0x2c 80102f7c: e8 0b ff ff ff call 80102e8c <lapicw> 80102f81: 83 c4 08 add $0x8,%esp // Send an Init Level De-Assert to synchronise arbitration ID's. lapicw(ICRHI, 0); 80102f84: 6a 00 push $0x0 80102f86: 68 c4 00 00 00 push $0xc4 80102f8b: e8 fc fe ff ff call 80102e8c <lapicw> 80102f90: 83 c4 08 add $0x8,%esp lapicw(ICRLO, BCAST | INIT | LEVEL); 80102f93: 68 00 85 08 00 push $0x88500 80102f98: 68 c0 00 00 00 push $0xc0 80102f9d: e8 ea fe ff ff call 80102e8c <lapicw> 80102fa2: 83 c4 08 add $0x8,%esp while(lapic[ICRLO] & DELIVS) 80102fa5: 90 nop 80102fa6: a1 5c 32 11 80 mov 0x8011325c,%eax 80102fab: 05 00 03 00 00 add $0x300,%eax 80102fb0: 8b 00 mov (%eax),%eax 80102fb2: 25 00 10 00 00 and $0x1000,%eax 80102fb7: 85 c0 test %eax,%eax 80102fb9: 75 eb jne 80102fa6 <lapicinit+0xf8> ; // Enable interrupts on the APIC (but not on the processor). lapicw(TPR, 0); 80102fbb: 6a 00 push $0x0 80102fbd: 6a 20 push $0x20 80102fbf: e8 c8 fe ff ff call 80102e8c <lapicw> 80102fc4: 83 c4 08 add $0x8,%esp 80102fc7: eb 01 jmp 80102fca <lapicinit+0x11c> void lapicinit(void) { if(!lapic) return; 80102fc9: 90 nop while(lapic[ICRLO] & DELIVS) ; // Enable interrupts on the APIC (but not on the processor). lapicw(TPR, 0); } 80102fca: c9 leave 80102fcb: c3 ret 80102fcc <cpunum>: int cpunum(void) { 80102fcc: 55 push %ebp 80102fcd: 89 e5 mov %esp,%ebp 80102fcf: 83 ec 08 sub $0x8,%esp // Cannot call cpu when interrupts are enabled: // result not guaranteed to last long enough to be used! // Would prefer to panic but even printing is chancy here: // almost everything, including cprintf and panic, calls cpu, // often indirectly through acquire and release. if(readeflags()&FL_IF){ 80102fd2: e8 a5 fe ff ff call 80102e7c <readeflags> 80102fd7: 25 00 02 00 00 and $0x200,%eax 80102fdc: 85 c0 test %eax,%eax 80102fde: 74 26 je 80103006 <cpunum+0x3a> static int n; if(n++ == 0) 80102fe0: a1 40 c6 10 80 mov 0x8010c640,%eax 80102fe5: 8d 50 01 lea 0x1(%eax),%edx 80102fe8: 89 15 40 c6 10 80 mov %edx,0x8010c640 80102fee: 85 c0 test %eax,%eax 80102ff0: 75 14 jne 80103006 <cpunum+0x3a> cprintf("cpu called from %x with interrupts enabled\n", 80102ff2: 8b 45 04 mov 0x4(%ebp),%eax 80102ff5: 83 ec 08 sub $0x8,%esp 80102ff8: 50 push %eax 80102ff9: 68 40 8c 10 80 push $0x80108c40 80102ffe: e8 c3 d3 ff ff call 801003c6 <cprintf> 80103003: 83 c4 10 add $0x10,%esp __builtin_return_address(0)); } if(lapic) 80103006: a1 5c 32 11 80 mov 0x8011325c,%eax 8010300b: 85 c0 test %eax,%eax 8010300d: 74 0f je 8010301e <cpunum+0x52> return lapic[ID]>>24; 8010300f: a1 5c 32 11 80 mov 0x8011325c,%eax 80103014: 83 c0 20 add $0x20,%eax 80103017: 8b 00 mov (%eax),%eax 80103019: c1 e8 18 shr $0x18,%eax 8010301c: eb 05 jmp 80103023 <cpunum+0x57> return 0; 8010301e: b8 00 00 00 00 mov $0x0,%eax } 80103023: c9 leave 80103024: c3 ret 80103025 <lapiceoi>: // Acknowledge interrupt. void lapiceoi(void) { 80103025: 55 push %ebp 80103026: 89 e5 mov %esp,%ebp if(lapic) 80103028: a1 5c 32 11 80 mov 0x8011325c,%eax 8010302d: 85 c0 test %eax,%eax 8010302f: 74 0c je 8010303d <lapiceoi+0x18> lapicw(EOI, 0); 80103031: 6a 00 push $0x0 80103033: 6a 2c push $0x2c 80103035: e8 52 fe ff ff call 80102e8c <lapicw> 8010303a: 83 c4 08 add $0x8,%esp } 8010303d: 90 nop 8010303e: c9 leave 8010303f: c3 ret 80103040 <microdelay>: // Spin for a given number of microseconds. // On real hardware would want to tune this dynamically. void microdelay(int us) { 80103040: 55 push %ebp 80103041: 89 e5 mov %esp,%ebp } 80103043: 90 nop 80103044: 5d pop %ebp 80103045: c3 ret 80103046 <lapicstartap>: // Start additional processor running entry code at addr. // See Appendix B of MultiProcessor Specification. void lapicstartap(uchar apicid, uint addr) { 80103046: 55 push %ebp 80103047: 89 e5 mov %esp,%ebp 80103049: 83 ec 14 sub $0x14,%esp 8010304c: 8b 45 08 mov 0x8(%ebp),%eax 8010304f: 88 45 ec mov %al,-0x14(%ebp) ushort *wrv; // "The BSP must initialize CMOS shutdown code to 0AH // and the warm reset vector (DWORD based at 40:67) to point at // the AP startup code prior to the [universal startup algorithm]." outb(CMOS_PORT, 0xF); // offset 0xF is shutdown code 80103052: 6a 0f push $0xf 80103054: 6a 70 push $0x70 80103056: e8 02 fe ff ff call 80102e5d <outb> 8010305b: 83 c4 08 add $0x8,%esp outb(CMOS_PORT+1, 0x0A); 8010305e: 6a 0a push $0xa 80103060: 6a 71 push $0x71 80103062: e8 f6 fd ff ff call 80102e5d <outb> 80103067: 83 c4 08 add $0x8,%esp wrv = (ushort*)P2V((0x40<<4 | 0x67)); // Warm reset vector 8010306a: c7 45 f8 67 04 00 80 movl $0x80000467,-0x8(%ebp) wrv[0] = 0; 80103071: 8b 45 f8 mov -0x8(%ebp),%eax 80103074: 66 c7 00 00 00 movw $0x0,(%eax) wrv[1] = addr >> 4; 80103079: 8b 45 f8 mov -0x8(%ebp),%eax 8010307c: 83 c0 02 add $0x2,%eax 8010307f: 8b 55 0c mov 0xc(%ebp),%edx 80103082: c1 ea 04 shr $0x4,%edx 80103085: 66 89 10 mov %dx,(%eax) // "Universal startup algorithm." // Send INIT (level-triggered) interrupt to reset other CPU. lapicw(ICRHI, apicid<<24); 80103088: 0f b6 45 ec movzbl -0x14(%ebp),%eax 8010308c: c1 e0 18 shl $0x18,%eax 8010308f: 50 push %eax 80103090: 68 c4 00 00 00 push $0xc4 80103095: e8 f2 fd ff ff call 80102e8c <lapicw> 8010309a: 83 c4 08 add $0x8,%esp lapicw(ICRLO, INIT | LEVEL | ASSERT); 8010309d: 68 00 c5 00 00 push $0xc500 801030a2: 68 c0 00 00 00 push $0xc0 801030a7: e8 e0 fd ff ff call 80102e8c <lapicw> 801030ac: 83 c4 08 add $0x8,%esp microdelay(200); 801030af: 68 c8 00 00 00 push $0xc8 801030b4: e8 87 ff ff ff call 80103040 <microdelay> 801030b9: 83 c4 04 add $0x4,%esp lapicw(ICRLO, INIT | LEVEL); 801030bc: 68 00 85 00 00 push $0x8500 801030c1: 68 c0 00 00 00 push $0xc0 801030c6: e8 c1 fd ff ff call 80102e8c <lapicw> 801030cb: 83 c4 08 add $0x8,%esp microdelay(100); // should be 10ms, but too slow in Bochs! 801030ce: 6a 64 push $0x64 801030d0: e8 6b ff ff ff call 80103040 <microdelay> 801030d5: 83 c4 04 add $0x4,%esp // Send startup IPI (twice!) to enter code. // Regular hardware is supposed to only accept a STARTUP // when it is in the halted state due to an INIT. So the second // should be ignored, but it is part of the official Intel algorithm. // Bochs complains about the second one. Too bad for Bochs. for(i = 0; i < 2; i++){ 801030d8: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 801030df: eb 3d jmp 8010311e <lapicstartap+0xd8> lapicw(ICRHI, apicid<<24); 801030e1: 0f b6 45 ec movzbl -0x14(%ebp),%eax 801030e5: c1 e0 18 shl $0x18,%eax 801030e8: 50 push %eax 801030e9: 68 c4 00 00 00 push $0xc4 801030ee: e8 99 fd ff ff call 80102e8c <lapicw> 801030f3: 83 c4 08 add $0x8,%esp lapicw(ICRLO, STARTUP | (addr>>12)); 801030f6: 8b 45 0c mov 0xc(%ebp),%eax 801030f9: c1 e8 0c shr $0xc,%eax 801030fc: 80 cc 06 or $0x6,%ah 801030ff: 50 push %eax 80103100: 68 c0 00 00 00 push $0xc0 80103105: e8 82 fd ff ff call 80102e8c <lapicw> 8010310a: 83 c4 08 add $0x8,%esp microdelay(200); 8010310d: 68 c8 00 00 00 push $0xc8 80103112: e8 29 ff ff ff call 80103040 <microdelay> 80103117: 83 c4 04 add $0x4,%esp // Send startup IPI (twice!) to enter code. // Regular hardware is supposed to only accept a STARTUP // when it is in the halted state due to an INIT. So the second // should be ignored, but it is part of the official Intel algorithm. // Bochs complains about the second one. Too bad for Bochs. for(i = 0; i < 2; i++){ 8010311a: 83 45 fc 01 addl $0x1,-0x4(%ebp) 8010311e: 83 7d fc 01 cmpl $0x1,-0x4(%ebp) 80103122: 7e bd jle 801030e1 <lapicstartap+0x9b> lapicw(ICRHI, apicid<<24); lapicw(ICRLO, STARTUP | (addr>>12)); microdelay(200); } } 80103124: 90 nop 80103125: c9 leave 80103126: c3 ret 80103127 <cmos_read>: #define DAY 0x07 #define MONTH 0x08 #define YEAR 0x09 static uint cmos_read(uint reg) { 80103127: 55 push %ebp 80103128: 89 e5 mov %esp,%ebp outb(CMOS_PORT, reg); 8010312a: 8b 45 08 mov 0x8(%ebp),%eax 8010312d: 0f b6 c0 movzbl %al,%eax 80103130: 50 push %eax 80103131: 6a 70 push $0x70 80103133: e8 25 fd ff ff call 80102e5d <outb> 80103138: 83 c4 08 add $0x8,%esp microdelay(200); 8010313b: 68 c8 00 00 00 push $0xc8 80103140: e8 fb fe ff ff call 80103040 <microdelay> 80103145: 83 c4 04 add $0x4,%esp return inb(CMOS_RETURN); 80103148: 6a 71 push $0x71 8010314a: e8 f1 fc ff ff call 80102e40 <inb> 8010314f: 83 c4 04 add $0x4,%esp 80103152: 0f b6 c0 movzbl %al,%eax } 80103155: c9 leave 80103156: c3 ret 80103157 <fill_rtcdate>: static void fill_rtcdate(struct rtcdate *r) { 80103157: 55 push %ebp 80103158: 89 e5 mov %esp,%ebp r->second = cmos_read(SECS); 8010315a: 6a 00 push $0x0 8010315c: e8 c6 ff ff ff call 80103127 <cmos_read> 80103161: 83 c4 04 add $0x4,%esp 80103164: 89 c2 mov %eax,%edx 80103166: 8b 45 08 mov 0x8(%ebp),%eax 80103169: 89 10 mov %edx,(%eax) r->minute = cmos_read(MINS); 8010316b: 6a 02 push $0x2 8010316d: e8 b5 ff ff ff call 80103127 <cmos_read> 80103172: 83 c4 04 add $0x4,%esp 80103175: 89 c2 mov %eax,%edx 80103177: 8b 45 08 mov 0x8(%ebp),%eax 8010317a: 89 50 04 mov %edx,0x4(%eax) r->hour = cmos_read(HOURS); 8010317d: 6a 04 push $0x4 8010317f: e8 a3 ff ff ff call 80103127 <cmos_read> 80103184: 83 c4 04 add $0x4,%esp 80103187: 89 c2 mov %eax,%edx 80103189: 8b 45 08 mov 0x8(%ebp),%eax 8010318c: 89 50 08 mov %edx,0x8(%eax) r->day = cmos_read(DAY); 8010318f: 6a 07 push $0x7 80103191: e8 91 ff ff ff call 80103127 <cmos_read> 80103196: 83 c4 04 add $0x4,%esp 80103199: 89 c2 mov %eax,%edx 8010319b: 8b 45 08 mov 0x8(%ebp),%eax 8010319e: 89 50 0c mov %edx,0xc(%eax) r->month = cmos_read(MONTH); 801031a1: 6a 08 push $0x8 801031a3: e8 7f ff ff ff call 80103127 <cmos_read> 801031a8: 83 c4 04 add $0x4,%esp 801031ab: 89 c2 mov %eax,%edx 801031ad: 8b 45 08 mov 0x8(%ebp),%eax 801031b0: 89 50 10 mov %edx,0x10(%eax) r->year = cmos_read(YEAR); 801031b3: 6a 09 push $0x9 801031b5: e8 6d ff ff ff call 80103127 <cmos_read> 801031ba: 83 c4 04 add $0x4,%esp 801031bd: 89 c2 mov %eax,%edx 801031bf: 8b 45 08 mov 0x8(%ebp),%eax 801031c2: 89 50 14 mov %edx,0x14(%eax) } 801031c5: 90 nop 801031c6: c9 leave 801031c7: c3 ret 801031c8 <cmostime>: // qemu seems to use 24-hour GWT and the values are BCD encoded void cmostime(struct rtcdate *r) { 801031c8: 55 push %ebp 801031c9: 89 e5 mov %esp,%ebp 801031cb: 83 ec 48 sub $0x48,%esp struct rtcdate t1, t2; int sb, bcd; sb = cmos_read(CMOS_STATB); 801031ce: 6a 0b push $0xb 801031d0: e8 52 ff ff ff call 80103127 <cmos_read> 801031d5: 83 c4 04 add $0x4,%esp 801031d8: 89 45 f4 mov %eax,-0xc(%ebp) bcd = (sb & (1 << 2)) == 0; 801031db: 8b 45 f4 mov -0xc(%ebp),%eax 801031de: 83 e0 04 and $0x4,%eax 801031e1: 85 c0 test %eax,%eax 801031e3: 0f 94 c0 sete %al 801031e6: 0f b6 c0 movzbl %al,%eax 801031e9: 89 45 f0 mov %eax,-0x10(%ebp) // make sure CMOS doesn't modify time while we read it for (;;) { fill_rtcdate(&t1); 801031ec: 8d 45 d8 lea -0x28(%ebp),%eax 801031ef: 50 push %eax 801031f0: e8 62 ff ff ff call 80103157 <fill_rtcdate> 801031f5: 83 c4 04 add $0x4,%esp if (cmos_read(CMOS_STATA) & CMOS_UIP) 801031f8: 6a 0a push $0xa 801031fa: e8 28 ff ff ff call 80103127 <cmos_read> 801031ff: 83 c4 04 add $0x4,%esp 80103202: 25 80 00 00 00 and $0x80,%eax 80103207: 85 c0 test %eax,%eax 80103209: 75 27 jne 80103232 <cmostime+0x6a> continue; fill_rtcdate(&t2); 8010320b: 8d 45 c0 lea -0x40(%ebp),%eax 8010320e: 50 push %eax 8010320f: e8 43 ff ff ff call 80103157 <fill_rtcdate> 80103214: 83 c4 04 add $0x4,%esp if (memcmp(&t1, &t2, sizeof(t1)) == 0) 80103217: 83 ec 04 sub $0x4,%esp 8010321a: 6a 18 push $0x18 8010321c: 8d 45 c0 lea -0x40(%ebp),%eax 8010321f: 50 push %eax 80103220: 8d 45 d8 lea -0x28(%ebp),%eax 80103223: 50 push %eax 80103224: e8 6c 25 00 00 call 80105795 <memcmp> 80103229: 83 c4 10 add $0x10,%esp 8010322c: 85 c0 test %eax,%eax 8010322e: 74 05 je 80103235 <cmostime+0x6d> 80103230: eb ba jmp 801031ec <cmostime+0x24> // make sure CMOS doesn't modify time while we read it for (;;) { fill_rtcdate(&t1); if (cmos_read(CMOS_STATA) & CMOS_UIP) continue; 80103232: 90 nop fill_rtcdate(&t2); if (memcmp(&t1, &t2, sizeof(t1)) == 0) break; } 80103233: eb b7 jmp 801031ec <cmostime+0x24> fill_rtcdate(&t1); if (cmos_read(CMOS_STATA) & CMOS_UIP) continue; fill_rtcdate(&t2); if (memcmp(&t1, &t2, sizeof(t1)) == 0) break; 80103235: 90 nop } // convert if (bcd) { 80103236: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 8010323a: 0f 84 b4 00 00 00 je 801032f4 <cmostime+0x12c> #define CONV(x) (t1.x = ((t1.x >> 4) * 10) + (t1.x & 0xf)) CONV(second); 80103240: 8b 45 d8 mov -0x28(%ebp),%eax 80103243: c1 e8 04 shr $0x4,%eax 80103246: 89 c2 mov %eax,%edx 80103248: 89 d0 mov %edx,%eax 8010324a: c1 e0 02 shl $0x2,%eax 8010324d: 01 d0 add %edx,%eax 8010324f: 01 c0 add %eax,%eax 80103251: 89 c2 mov %eax,%edx 80103253: 8b 45 d8 mov -0x28(%ebp),%eax 80103256: 83 e0 0f and $0xf,%eax 80103259: 01 d0 add %edx,%eax 8010325b: 89 45 d8 mov %eax,-0x28(%ebp) CONV(minute); 8010325e: 8b 45 dc mov -0x24(%ebp),%eax 80103261: c1 e8 04 shr $0x4,%eax 80103264: 89 c2 mov %eax,%edx 80103266: 89 d0 mov %edx,%eax 80103268: c1 e0 02 shl $0x2,%eax 8010326b: 01 d0 add %edx,%eax 8010326d: 01 c0 add %eax,%eax 8010326f: 89 c2 mov %eax,%edx 80103271: 8b 45 dc mov -0x24(%ebp),%eax 80103274: 83 e0 0f and $0xf,%eax 80103277: 01 d0 add %edx,%eax 80103279: 89 45 dc mov %eax,-0x24(%ebp) CONV(hour ); 8010327c: 8b 45 e0 mov -0x20(%ebp),%eax 8010327f: c1 e8 04 shr $0x4,%eax 80103282: 89 c2 mov %eax,%edx 80103284: 89 d0 mov %edx,%eax 80103286: c1 e0 02 shl $0x2,%eax 80103289: 01 d0 add %edx,%eax 8010328b: 01 c0 add %eax,%eax 8010328d: 89 c2 mov %eax,%edx 8010328f: 8b 45 e0 mov -0x20(%ebp),%eax 80103292: 83 e0 0f and $0xf,%eax 80103295: 01 d0 add %edx,%eax 80103297: 89 45 e0 mov %eax,-0x20(%ebp) CONV(day ); 8010329a: 8b 45 e4 mov -0x1c(%ebp),%eax 8010329d: c1 e8 04 shr $0x4,%eax 801032a0: 89 c2 mov %eax,%edx 801032a2: 89 d0 mov %edx,%eax 801032a4: c1 e0 02 shl $0x2,%eax 801032a7: 01 d0 add %edx,%eax 801032a9: 01 c0 add %eax,%eax 801032ab: 89 c2 mov %eax,%edx 801032ad: 8b 45 e4 mov -0x1c(%ebp),%eax 801032b0: 83 e0 0f and $0xf,%eax 801032b3: 01 d0 add %edx,%eax 801032b5: 89 45 e4 mov %eax,-0x1c(%ebp) CONV(month ); 801032b8: 8b 45 e8 mov -0x18(%ebp),%eax 801032bb: c1 e8 04 shr $0x4,%eax 801032be: 89 c2 mov %eax,%edx 801032c0: 89 d0 mov %edx,%eax 801032c2: c1 e0 02 shl $0x2,%eax 801032c5: 01 d0 add %edx,%eax 801032c7: 01 c0 add %eax,%eax 801032c9: 89 c2 mov %eax,%edx 801032cb: 8b 45 e8 mov -0x18(%ebp),%eax 801032ce: 83 e0 0f and $0xf,%eax 801032d1: 01 d0 add %edx,%eax 801032d3: 89 45 e8 mov %eax,-0x18(%ebp) CONV(year ); 801032d6: 8b 45 ec mov -0x14(%ebp),%eax 801032d9: c1 e8 04 shr $0x4,%eax 801032dc: 89 c2 mov %eax,%edx 801032de: 89 d0 mov %edx,%eax 801032e0: c1 e0 02 shl $0x2,%eax 801032e3: 01 d0 add %edx,%eax 801032e5: 01 c0 add %eax,%eax 801032e7: 89 c2 mov %eax,%edx 801032e9: 8b 45 ec mov -0x14(%ebp),%eax 801032ec: 83 e0 0f and $0xf,%eax 801032ef: 01 d0 add %edx,%eax 801032f1: 89 45 ec mov %eax,-0x14(%ebp) #undef CONV } *r = t1; 801032f4: 8b 45 08 mov 0x8(%ebp),%eax 801032f7: 8b 55 d8 mov -0x28(%ebp),%edx 801032fa: 89 10 mov %edx,(%eax) 801032fc: 8b 55 dc mov -0x24(%ebp),%edx 801032ff: 89 50 04 mov %edx,0x4(%eax) 80103302: 8b 55 e0 mov -0x20(%ebp),%edx 80103305: 89 50 08 mov %edx,0x8(%eax) 80103308: 8b 55 e4 mov -0x1c(%ebp),%edx 8010330b: 89 50 0c mov %edx,0xc(%eax) 8010330e: 8b 55 e8 mov -0x18(%ebp),%edx 80103311: 89 50 10 mov %edx,0x10(%eax) 80103314: 8b 55 ec mov -0x14(%ebp),%edx 80103317: 89 50 14 mov %edx,0x14(%eax) r->year += 2000; 8010331a: 8b 45 08 mov 0x8(%ebp),%eax 8010331d: 8b 40 14 mov 0x14(%eax),%eax 80103320: 8d 90 d0 07 00 00 lea 0x7d0(%eax),%edx 80103326: 8b 45 08 mov 0x8(%ebp),%eax 80103329: 89 50 14 mov %edx,0x14(%eax) } 8010332c: 90 nop 8010332d: c9 leave 8010332e: c3 ret 8010332f <initlog>: static void recover_from_log(void); static void commit(); void initlog(int dev) { 8010332f: 55 push %ebp 80103330: 89 e5 mov %esp,%ebp 80103332: 83 ec 28 sub $0x28,%esp if (sizeof(struct logheader) >= BSIZE) panic("initlog: too big logheader"); struct superblock sb; initlock(&log.lock, "log"); 80103335: 83 ec 08 sub $0x8,%esp 80103338: 68 6c 8c 10 80 push $0x80108c6c 8010333d: 68 60 32 11 80 push $0x80113260 80103342: e8 62 21 00 00 call 801054a9 <initlock> 80103347: 83 c4 10 add $0x10,%esp readsb(dev, &sb); 8010334a: 83 ec 08 sub $0x8,%esp 8010334d: 8d 45 dc lea -0x24(%ebp),%eax 80103350: 50 push %eax 80103351: ff 75 08 pushl 0x8(%ebp) 80103354: e8 2b e0 ff ff call 80101384 <readsb> 80103359: 83 c4 10 add $0x10,%esp log.start = sb.logstart; 8010335c: 8b 45 ec mov -0x14(%ebp),%eax 8010335f: a3 94 32 11 80 mov %eax,0x80113294 log.size = sb.nlog; 80103364: 8b 45 e8 mov -0x18(%ebp),%eax 80103367: a3 98 32 11 80 mov %eax,0x80113298 log.dev = dev; 8010336c: 8b 45 08 mov 0x8(%ebp),%eax 8010336f: a3 a4 32 11 80 mov %eax,0x801132a4 recover_from_log(); 80103374: e8 b2 01 00 00 call 8010352b <recover_from_log> } 80103379: 90 nop 8010337a: c9 leave 8010337b: c3 ret 8010337c <install_trans>: // Copy committed blocks from log to their home location static void install_trans(void) { 8010337c: 55 push %ebp 8010337d: 89 e5 mov %esp,%ebp 8010337f: 83 ec 18 sub $0x18,%esp int tail; for (tail = 0; tail < log.lh.n; tail++) { 80103382: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80103389: e9 95 00 00 00 jmp 80103423 <install_trans+0xa7> struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block 8010338e: 8b 15 94 32 11 80 mov 0x80113294,%edx 80103394: 8b 45 f4 mov -0xc(%ebp),%eax 80103397: 01 d0 add %edx,%eax 80103399: 83 c0 01 add $0x1,%eax 8010339c: 89 c2 mov %eax,%edx 8010339e: a1 a4 32 11 80 mov 0x801132a4,%eax 801033a3: 83 ec 08 sub $0x8,%esp 801033a6: 52 push %edx 801033a7: 50 push %eax 801033a8: e8 09 ce ff ff call 801001b6 <bread> 801033ad: 83 c4 10 add $0x10,%esp 801033b0: 89 45 f0 mov %eax,-0x10(%ebp) struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst 801033b3: 8b 45 f4 mov -0xc(%ebp),%eax 801033b6: 83 c0 10 add $0x10,%eax 801033b9: 8b 04 85 6c 32 11 80 mov -0x7feecd94(,%eax,4),%eax 801033c0: 89 c2 mov %eax,%edx 801033c2: a1 a4 32 11 80 mov 0x801132a4,%eax 801033c7: 83 ec 08 sub $0x8,%esp 801033ca: 52 push %edx 801033cb: 50 push %eax 801033cc: e8 e5 cd ff ff call 801001b6 <bread> 801033d1: 83 c4 10 add $0x10,%esp 801033d4: 89 45 ec mov %eax,-0x14(%ebp) memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst 801033d7: 8b 45 f0 mov -0x10(%ebp),%eax 801033da: 8d 50 18 lea 0x18(%eax),%edx 801033dd: 8b 45 ec mov -0x14(%ebp),%eax 801033e0: 83 c0 18 add $0x18,%eax 801033e3: 83 ec 04 sub $0x4,%esp 801033e6: 68 00 02 00 00 push $0x200 801033eb: 52 push %edx 801033ec: 50 push %eax 801033ed: e8 fb 23 00 00 call 801057ed <memmove> 801033f2: 83 c4 10 add $0x10,%esp bwrite(dbuf); // write dst to disk 801033f5: 83 ec 0c sub $0xc,%esp 801033f8: ff 75 ec pushl -0x14(%ebp) 801033fb: e8 ef cd ff ff call 801001ef <bwrite> 80103400: 83 c4 10 add $0x10,%esp brelse(lbuf); 80103403: 83 ec 0c sub $0xc,%esp 80103406: ff 75 f0 pushl -0x10(%ebp) 80103409: e8 20 ce ff ff call 8010022e <brelse> 8010340e: 83 c4 10 add $0x10,%esp brelse(dbuf); 80103411: 83 ec 0c sub $0xc,%esp 80103414: ff 75 ec pushl -0x14(%ebp) 80103417: e8 12 ce ff ff call 8010022e <brelse> 8010341c: 83 c4 10 add $0x10,%esp static void install_trans(void) { int tail; for (tail = 0; tail < log.lh.n; tail++) { 8010341f: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80103423: a1 a8 32 11 80 mov 0x801132a8,%eax 80103428: 3b 45 f4 cmp -0xc(%ebp),%eax 8010342b: 0f 8f 5d ff ff ff jg 8010338e <install_trans+0x12> memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst bwrite(dbuf); // write dst to disk brelse(lbuf); brelse(dbuf); } } 80103431: 90 nop 80103432: c9 leave 80103433: c3 ret 80103434 <read_head>: // Read the log header from disk into the in-memory log header static void read_head(void) { 80103434: 55 push %ebp 80103435: 89 e5 mov %esp,%ebp 80103437: 83 ec 18 sub $0x18,%esp struct buf *buf = bread(log.dev, log.start); 8010343a: a1 94 32 11 80 mov 0x80113294,%eax 8010343f: 89 c2 mov %eax,%edx 80103441: a1 a4 32 11 80 mov 0x801132a4,%eax 80103446: 83 ec 08 sub $0x8,%esp 80103449: 52 push %edx 8010344a: 50 push %eax 8010344b: e8 66 cd ff ff call 801001b6 <bread> 80103450: 83 c4 10 add $0x10,%esp 80103453: 89 45 f0 mov %eax,-0x10(%ebp) struct logheader *lh = (struct logheader *) (buf->data); 80103456: 8b 45 f0 mov -0x10(%ebp),%eax 80103459: 83 c0 18 add $0x18,%eax 8010345c: 89 45 ec mov %eax,-0x14(%ebp) int i; log.lh.n = lh->n; 8010345f: 8b 45 ec mov -0x14(%ebp),%eax 80103462: 8b 00 mov (%eax),%eax 80103464: a3 a8 32 11 80 mov %eax,0x801132a8 for (i = 0; i < log.lh.n; i++) { 80103469: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80103470: eb 1b jmp 8010348d <read_head+0x59> log.lh.block[i] = lh->block[i]; 80103472: 8b 45 ec mov -0x14(%ebp),%eax 80103475: 8b 55 f4 mov -0xc(%ebp),%edx 80103478: 8b 44 90 04 mov 0x4(%eax,%edx,4),%eax 8010347c: 8b 55 f4 mov -0xc(%ebp),%edx 8010347f: 83 c2 10 add $0x10,%edx 80103482: 89 04 95 6c 32 11 80 mov %eax,-0x7feecd94(,%edx,4) { struct buf *buf = bread(log.dev, log.start); struct logheader *lh = (struct logheader *) (buf->data); int i; log.lh.n = lh->n; for (i = 0; i < log.lh.n; i++) { 80103489: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010348d: a1 a8 32 11 80 mov 0x801132a8,%eax 80103492: 3b 45 f4 cmp -0xc(%ebp),%eax 80103495: 7f db jg 80103472 <read_head+0x3e> log.lh.block[i] = lh->block[i]; } brelse(buf); 80103497: 83 ec 0c sub $0xc,%esp 8010349a: ff 75 f0 pushl -0x10(%ebp) 8010349d: e8 8c cd ff ff call 8010022e <brelse> 801034a2: 83 c4 10 add $0x10,%esp } 801034a5: 90 nop 801034a6: c9 leave 801034a7: c3 ret 801034a8 <write_head>: // Write in-memory log header to disk. // This is the true point at which the // current transaction commits. static void write_head(void) { 801034a8: 55 push %ebp 801034a9: 89 e5 mov %esp,%ebp 801034ab: 83 ec 18 sub $0x18,%esp struct buf *buf = bread(log.dev, log.start); 801034ae: a1 94 32 11 80 mov 0x80113294,%eax 801034b3: 89 c2 mov %eax,%edx 801034b5: a1 a4 32 11 80 mov 0x801132a4,%eax 801034ba: 83 ec 08 sub $0x8,%esp 801034bd: 52 push %edx 801034be: 50 push %eax 801034bf: e8 f2 cc ff ff call 801001b6 <bread> 801034c4: 83 c4 10 add $0x10,%esp 801034c7: 89 45 f0 mov %eax,-0x10(%ebp) struct logheader *hb = (struct logheader *) (buf->data); 801034ca: 8b 45 f0 mov -0x10(%ebp),%eax 801034cd: 83 c0 18 add $0x18,%eax 801034d0: 89 45 ec mov %eax,-0x14(%ebp) int i; hb->n = log.lh.n; 801034d3: 8b 15 a8 32 11 80 mov 0x801132a8,%edx 801034d9: 8b 45 ec mov -0x14(%ebp),%eax 801034dc: 89 10 mov %edx,(%eax) for (i = 0; i < log.lh.n; i++) { 801034de: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801034e5: eb 1b jmp 80103502 <write_head+0x5a> hb->block[i] = log.lh.block[i]; 801034e7: 8b 45 f4 mov -0xc(%ebp),%eax 801034ea: 83 c0 10 add $0x10,%eax 801034ed: 8b 0c 85 6c 32 11 80 mov -0x7feecd94(,%eax,4),%ecx 801034f4: 8b 45 ec mov -0x14(%ebp),%eax 801034f7: 8b 55 f4 mov -0xc(%ebp),%edx 801034fa: 89 4c 90 04 mov %ecx,0x4(%eax,%edx,4) { struct buf *buf = bread(log.dev, log.start); struct logheader *hb = (struct logheader *) (buf->data); int i; hb->n = log.lh.n; for (i = 0; i < log.lh.n; i++) { 801034fe: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80103502: a1 a8 32 11 80 mov 0x801132a8,%eax 80103507: 3b 45 f4 cmp -0xc(%ebp),%eax 8010350a: 7f db jg 801034e7 <write_head+0x3f> hb->block[i] = log.lh.block[i]; } bwrite(buf); 8010350c: 83 ec 0c sub $0xc,%esp 8010350f: ff 75 f0 pushl -0x10(%ebp) 80103512: e8 d8 cc ff ff call 801001ef <bwrite> 80103517: 83 c4 10 add $0x10,%esp brelse(buf); 8010351a: 83 ec 0c sub $0xc,%esp 8010351d: ff 75 f0 pushl -0x10(%ebp) 80103520: e8 09 cd ff ff call 8010022e <brelse> 80103525: 83 c4 10 add $0x10,%esp } 80103528: 90 nop 80103529: c9 leave 8010352a: c3 ret 8010352b <recover_from_log>: static void recover_from_log(void) { 8010352b: 55 push %ebp 8010352c: 89 e5 mov %esp,%ebp 8010352e: 83 ec 08 sub $0x8,%esp read_head(); 80103531: e8 fe fe ff ff call 80103434 <read_head> install_trans(); // if committed, copy from log to disk 80103536: e8 41 fe ff ff call 8010337c <install_trans> log.lh.n = 0; 8010353b: c7 05 a8 32 11 80 00 movl $0x0,0x801132a8 80103542: 00 00 00 write_head(); // clear the log 80103545: e8 5e ff ff ff call 801034a8 <write_head> } 8010354a: 90 nop 8010354b: c9 leave 8010354c: c3 ret 8010354d <begin_op>: // called at the start of each FS system call. void begin_op(void) { 8010354d: 55 push %ebp 8010354e: 89 e5 mov %esp,%ebp 80103550: 83 ec 08 sub $0x8,%esp acquire(&log.lock); 80103553: 83 ec 0c sub $0xc,%esp 80103556: 68 60 32 11 80 push $0x80113260 8010355b: e8 6b 1f 00 00 call 801054cb <acquire> 80103560: 83 c4 10 add $0x10,%esp while(1){ if(log.committing){ 80103563: a1 a0 32 11 80 mov 0x801132a0,%eax 80103568: 85 c0 test %eax,%eax 8010356a: 74 17 je 80103583 <begin_op+0x36> sleep(&log, &log.lock); 8010356c: 83 ec 08 sub $0x8,%esp 8010356f: 68 60 32 11 80 push $0x80113260 80103574: 68 60 32 11 80 push $0x80113260 80103579: e8 4b 1c 00 00 call 801051c9 <sleep> 8010357e: 83 c4 10 add $0x10,%esp 80103581: eb e0 jmp 80103563 <begin_op+0x16> } else if(log.lh.n + (log.outstanding+1)*MAXOPBLOCKS > LOGSIZE){ 80103583: 8b 0d a8 32 11 80 mov 0x801132a8,%ecx 80103589: a1 9c 32 11 80 mov 0x8011329c,%eax 8010358e: 8d 50 01 lea 0x1(%eax),%edx 80103591: 89 d0 mov %edx,%eax 80103593: c1 e0 02 shl $0x2,%eax 80103596: 01 d0 add %edx,%eax 80103598: 01 c0 add %eax,%eax 8010359a: 01 c8 add %ecx,%eax 8010359c: 83 f8 1e cmp $0x1e,%eax 8010359f: 7e 17 jle 801035b8 <begin_op+0x6b> // this op might exhaust log space; wait for commit. sleep(&log, &log.lock); 801035a1: 83 ec 08 sub $0x8,%esp 801035a4: 68 60 32 11 80 push $0x80113260 801035a9: 68 60 32 11 80 push $0x80113260 801035ae: e8 16 1c 00 00 call 801051c9 <sleep> 801035b3: 83 c4 10 add $0x10,%esp 801035b6: eb ab jmp 80103563 <begin_op+0x16> } else { log.outstanding += 1; 801035b8: a1 9c 32 11 80 mov 0x8011329c,%eax 801035bd: 83 c0 01 add $0x1,%eax 801035c0: a3 9c 32 11 80 mov %eax,0x8011329c release(&log.lock); 801035c5: 83 ec 0c sub $0xc,%esp 801035c8: 68 60 32 11 80 push $0x80113260 801035cd: e8 60 1f 00 00 call 80105532 <release> 801035d2: 83 c4 10 add $0x10,%esp break; 801035d5: 90 nop } } } 801035d6: 90 nop 801035d7: c9 leave 801035d8: c3 ret 801035d9 <end_op>: // called at the end of each FS system call. // commits if this was the last outstanding operation. void end_op(void) { 801035d9: 55 push %ebp 801035da: 89 e5 mov %esp,%ebp 801035dc: 83 ec 18 sub $0x18,%esp int do_commit = 0; 801035df: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) acquire(&log.lock); 801035e6: 83 ec 0c sub $0xc,%esp 801035e9: 68 60 32 11 80 push $0x80113260 801035ee: e8 d8 1e 00 00 call 801054cb <acquire> 801035f3: 83 c4 10 add $0x10,%esp log.outstanding -= 1; 801035f6: a1 9c 32 11 80 mov 0x8011329c,%eax 801035fb: 83 e8 01 sub $0x1,%eax 801035fe: a3 9c 32 11 80 mov %eax,0x8011329c if(log.committing) 80103603: a1 a0 32 11 80 mov 0x801132a0,%eax 80103608: 85 c0 test %eax,%eax 8010360a: 74 0d je 80103619 <end_op+0x40> panic("log.committing"); 8010360c: 83 ec 0c sub $0xc,%esp 8010360f: 68 70 8c 10 80 push $0x80108c70 80103614: e8 4d cf ff ff call 80100566 <panic> if(log.outstanding == 0){ 80103619: a1 9c 32 11 80 mov 0x8011329c,%eax 8010361e: 85 c0 test %eax,%eax 80103620: 75 13 jne 80103635 <end_op+0x5c> do_commit = 1; 80103622: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) log.committing = 1; 80103629: c7 05 a0 32 11 80 01 movl $0x1,0x801132a0 80103630: 00 00 00 80103633: eb 10 jmp 80103645 <end_op+0x6c> } else { // begin_op() may be waiting for log space. wakeup(&log); 80103635: 83 ec 0c sub $0xc,%esp 80103638: 68 60 32 11 80 push $0x80113260 8010363d: e8 75 1c 00 00 call 801052b7 <wakeup> 80103642: 83 c4 10 add $0x10,%esp } release(&log.lock); 80103645: 83 ec 0c sub $0xc,%esp 80103648: 68 60 32 11 80 push $0x80113260 8010364d: e8 e0 1e 00 00 call 80105532 <release> 80103652: 83 c4 10 add $0x10,%esp if(do_commit){ 80103655: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80103659: 74 3f je 8010369a <end_op+0xc1> // call commit w/o holding locks, since not allowed // to sleep with locks. commit(); 8010365b: e8 f5 00 00 00 call 80103755 <commit> acquire(&log.lock); 80103660: 83 ec 0c sub $0xc,%esp 80103663: 68 60 32 11 80 push $0x80113260 80103668: e8 5e 1e 00 00 call 801054cb <acquire> 8010366d: 83 c4 10 add $0x10,%esp log.committing = 0; 80103670: c7 05 a0 32 11 80 00 movl $0x0,0x801132a0 80103677: 00 00 00 wakeup(&log); 8010367a: 83 ec 0c sub $0xc,%esp 8010367d: 68 60 32 11 80 push $0x80113260 80103682: e8 30 1c 00 00 call 801052b7 <wakeup> 80103687: 83 c4 10 add $0x10,%esp release(&log.lock); 8010368a: 83 ec 0c sub $0xc,%esp 8010368d: 68 60 32 11 80 push $0x80113260 80103692: e8 9b 1e 00 00 call 80105532 <release> 80103697: 83 c4 10 add $0x10,%esp } } 8010369a: 90 nop 8010369b: c9 leave 8010369c: c3 ret 8010369d <write_log>: // Copy modified blocks from cache to log. static void write_log(void) { 8010369d: 55 push %ebp 8010369e: 89 e5 mov %esp,%ebp 801036a0: 83 ec 18 sub $0x18,%esp int tail; for (tail = 0; tail < log.lh.n; tail++) { 801036a3: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801036aa: e9 95 00 00 00 jmp 80103744 <write_log+0xa7> struct buf *to = bread(log.dev, log.start+tail+1); // log block 801036af: 8b 15 94 32 11 80 mov 0x80113294,%edx 801036b5: 8b 45 f4 mov -0xc(%ebp),%eax 801036b8: 01 d0 add %edx,%eax 801036ba: 83 c0 01 add $0x1,%eax 801036bd: 89 c2 mov %eax,%edx 801036bf: a1 a4 32 11 80 mov 0x801132a4,%eax 801036c4: 83 ec 08 sub $0x8,%esp 801036c7: 52 push %edx 801036c8: 50 push %eax 801036c9: e8 e8 ca ff ff call 801001b6 <bread> 801036ce: 83 c4 10 add $0x10,%esp 801036d1: 89 45 f0 mov %eax,-0x10(%ebp) struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block 801036d4: 8b 45 f4 mov -0xc(%ebp),%eax 801036d7: 83 c0 10 add $0x10,%eax 801036da: 8b 04 85 6c 32 11 80 mov -0x7feecd94(,%eax,4),%eax 801036e1: 89 c2 mov %eax,%edx 801036e3: a1 a4 32 11 80 mov 0x801132a4,%eax 801036e8: 83 ec 08 sub $0x8,%esp 801036eb: 52 push %edx 801036ec: 50 push %eax 801036ed: e8 c4 ca ff ff call 801001b6 <bread> 801036f2: 83 c4 10 add $0x10,%esp 801036f5: 89 45 ec mov %eax,-0x14(%ebp) memmove(to->data, from->data, BSIZE); 801036f8: 8b 45 ec mov -0x14(%ebp),%eax 801036fb: 8d 50 18 lea 0x18(%eax),%edx 801036fe: 8b 45 f0 mov -0x10(%ebp),%eax 80103701: 83 c0 18 add $0x18,%eax 80103704: 83 ec 04 sub $0x4,%esp 80103707: 68 00 02 00 00 push $0x200 8010370c: 52 push %edx 8010370d: 50 push %eax 8010370e: e8 da 20 00 00 call 801057ed <memmove> 80103713: 83 c4 10 add $0x10,%esp bwrite(to); // write the log 80103716: 83 ec 0c sub $0xc,%esp 80103719: ff 75 f0 pushl -0x10(%ebp) 8010371c: e8 ce ca ff ff call 801001ef <bwrite> 80103721: 83 c4 10 add $0x10,%esp brelse(from); 80103724: 83 ec 0c sub $0xc,%esp 80103727: ff 75 ec pushl -0x14(%ebp) 8010372a: e8 ff ca ff ff call 8010022e <brelse> 8010372f: 83 c4 10 add $0x10,%esp brelse(to); 80103732: 83 ec 0c sub $0xc,%esp 80103735: ff 75 f0 pushl -0x10(%ebp) 80103738: e8 f1 ca ff ff call 8010022e <brelse> 8010373d: 83 c4 10 add $0x10,%esp static void write_log(void) { int tail; for (tail = 0; tail < log.lh.n; tail++) { 80103740: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80103744: a1 a8 32 11 80 mov 0x801132a8,%eax 80103749: 3b 45 f4 cmp -0xc(%ebp),%eax 8010374c: 0f 8f 5d ff ff ff jg 801036af <write_log+0x12> memmove(to->data, from->data, BSIZE); bwrite(to); // write the log brelse(from); brelse(to); } } 80103752: 90 nop 80103753: c9 leave 80103754: c3 ret 80103755 <commit>: static void commit() { 80103755: 55 push %ebp 80103756: 89 e5 mov %esp,%ebp 80103758: 83 ec 08 sub $0x8,%esp if (log.lh.n > 0) { 8010375b: a1 a8 32 11 80 mov 0x801132a8,%eax 80103760: 85 c0 test %eax,%eax 80103762: 7e 1e jle 80103782 <commit+0x2d> write_log(); // Write modified blocks from cache to log 80103764: e8 34 ff ff ff call 8010369d <write_log> write_head(); // Write header to disk -- the real commit 80103769: e8 3a fd ff ff call 801034a8 <write_head> install_trans(); // Now install writes to home locations 8010376e: e8 09 fc ff ff call 8010337c <install_trans> log.lh.n = 0; 80103773: c7 05 a8 32 11 80 00 movl $0x0,0x801132a8 8010377a: 00 00 00 write_head(); // Erase the transaction from the log 8010377d: e8 26 fd ff ff call 801034a8 <write_head> } } 80103782: 90 nop 80103783: c9 leave 80103784: c3 ret 80103785 <log_write>: // modify bp->data[] // log_write(bp) // brelse(bp) void log_write(struct buf *b) { 80103785: 55 push %ebp 80103786: 89 e5 mov %esp,%ebp 80103788: 83 ec 18 sub $0x18,%esp int i; if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1) 8010378b: a1 a8 32 11 80 mov 0x801132a8,%eax 80103790: 83 f8 1d cmp $0x1d,%eax 80103793: 7f 12 jg 801037a7 <log_write+0x22> 80103795: a1 a8 32 11 80 mov 0x801132a8,%eax 8010379a: 8b 15 98 32 11 80 mov 0x80113298,%edx 801037a0: 83 ea 01 sub $0x1,%edx 801037a3: 39 d0 cmp %edx,%eax 801037a5: 7c 0d jl 801037b4 <log_write+0x2f> panic("too big a transaction"); 801037a7: 83 ec 0c sub $0xc,%esp 801037aa: 68 7f 8c 10 80 push $0x80108c7f 801037af: e8 b2 cd ff ff call 80100566 <panic> if (log.outstanding < 1) 801037b4: a1 9c 32 11 80 mov 0x8011329c,%eax 801037b9: 85 c0 test %eax,%eax 801037bb: 7f 0d jg 801037ca <log_write+0x45> panic("log_write outside of trans"); 801037bd: 83 ec 0c sub $0xc,%esp 801037c0: 68 95 8c 10 80 push $0x80108c95 801037c5: e8 9c cd ff ff call 80100566 <panic> acquire(&log.lock); 801037ca: 83 ec 0c sub $0xc,%esp 801037cd: 68 60 32 11 80 push $0x80113260 801037d2: e8 f4 1c 00 00 call 801054cb <acquire> 801037d7: 83 c4 10 add $0x10,%esp for (i = 0; i < log.lh.n; i++) { 801037da: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801037e1: eb 1d jmp 80103800 <log_write+0x7b> if (log.lh.block[i] == b->blockno) // log absorbtion 801037e3: 8b 45 f4 mov -0xc(%ebp),%eax 801037e6: 83 c0 10 add $0x10,%eax 801037e9: 8b 04 85 6c 32 11 80 mov -0x7feecd94(,%eax,4),%eax 801037f0: 89 c2 mov %eax,%edx 801037f2: 8b 45 08 mov 0x8(%ebp),%eax 801037f5: 8b 40 08 mov 0x8(%eax),%eax 801037f8: 39 c2 cmp %eax,%edx 801037fa: 74 10 je 8010380c <log_write+0x87> panic("too big a transaction"); if (log.outstanding < 1) panic("log_write outside of trans"); acquire(&log.lock); for (i = 0; i < log.lh.n; i++) { 801037fc: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80103800: a1 a8 32 11 80 mov 0x801132a8,%eax 80103805: 3b 45 f4 cmp -0xc(%ebp),%eax 80103808: 7f d9 jg 801037e3 <log_write+0x5e> 8010380a: eb 01 jmp 8010380d <log_write+0x88> if (log.lh.block[i] == b->blockno) // log absorbtion break; 8010380c: 90 nop } log.lh.block[i] = b->blockno; 8010380d: 8b 45 08 mov 0x8(%ebp),%eax 80103810: 8b 40 08 mov 0x8(%eax),%eax 80103813: 89 c2 mov %eax,%edx 80103815: 8b 45 f4 mov -0xc(%ebp),%eax 80103818: 83 c0 10 add $0x10,%eax 8010381b: 89 14 85 6c 32 11 80 mov %edx,-0x7feecd94(,%eax,4) if (i == log.lh.n) 80103822: a1 a8 32 11 80 mov 0x801132a8,%eax 80103827: 3b 45 f4 cmp -0xc(%ebp),%eax 8010382a: 75 0d jne 80103839 <log_write+0xb4> log.lh.n++; 8010382c: a1 a8 32 11 80 mov 0x801132a8,%eax 80103831: 83 c0 01 add $0x1,%eax 80103834: a3 a8 32 11 80 mov %eax,0x801132a8 b->flags |= B_DIRTY; // prevent eviction 80103839: 8b 45 08 mov 0x8(%ebp),%eax 8010383c: 8b 00 mov (%eax),%eax 8010383e: 83 c8 04 or $0x4,%eax 80103841: 89 c2 mov %eax,%edx 80103843: 8b 45 08 mov 0x8(%ebp),%eax 80103846: 89 10 mov %edx,(%eax) release(&log.lock); 80103848: 83 ec 0c sub $0xc,%esp 8010384b: 68 60 32 11 80 push $0x80113260 80103850: e8 dd 1c 00 00 call 80105532 <release> 80103855: 83 c4 10 add $0x10,%esp } 80103858: 90 nop 80103859: c9 leave 8010385a: c3 ret 8010385b <v2p>: 8010385b: 55 push %ebp 8010385c: 89 e5 mov %esp,%ebp 8010385e: 8b 45 08 mov 0x8(%ebp),%eax 80103861: 05 00 00 00 80 add $0x80000000,%eax 80103866: 5d pop %ebp 80103867: c3 ret 80103868 <p2v>: static inline void *p2v(uint a) { return (void *) ((a) + KERNBASE); } 80103868: 55 push %ebp 80103869: 89 e5 mov %esp,%ebp 8010386b: 8b 45 08 mov 0x8(%ebp),%eax 8010386e: 05 00 00 00 80 add $0x80000000,%eax 80103873: 5d pop %ebp 80103874: c3 ret 80103875 <xchg>: asm volatile("sti"); } static inline uint xchg(volatile uint *addr, uint newval) { 80103875: 55 push %ebp 80103876: 89 e5 mov %esp,%ebp 80103878: 83 ec 10 sub $0x10,%esp uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 8010387b: 8b 55 08 mov 0x8(%ebp),%edx 8010387e: 8b 45 0c mov 0xc(%ebp),%eax 80103881: 8b 4d 08 mov 0x8(%ebp),%ecx 80103884: f0 87 02 lock xchg %eax,(%edx) 80103887: 89 45 fc mov %eax,-0x4(%ebp) "+m" (*addr), "=a" (result) : "1" (newval) : "cc"); return result; 8010388a: 8b 45 fc mov -0x4(%ebp),%eax } 8010388d: c9 leave 8010388e: c3 ret 8010388f <main>: // Bootstrap processor starts running C code here. // Allocate a real stack and switch to it, first // doing some setup required for memory allocator to work. int main(void) { 8010388f: 8d 4c 24 04 lea 0x4(%esp),%ecx 80103893: 83 e4 f0 and $0xfffffff0,%esp 80103896: ff 71 fc pushl -0x4(%ecx) 80103899: 55 push %ebp 8010389a: 89 e5 mov %esp,%ebp 8010389c: 51 push %ecx 8010389d: 83 ec 04 sub $0x4,%esp kinit1(end, P2V(4*1024*1024)); // phys page allocator 801038a0: 83 ec 08 sub $0x8,%esp 801038a3: 68 00 00 40 80 push $0x80400000 801038a8: 68 7c 66 11 80 push $0x8011667c 801038ad: e8 7d f2 ff ff call 80102b2f <kinit1> 801038b2: 83 c4 10 add $0x10,%esp kvmalloc(); // kernel page table 801038b5: e8 c5 49 00 00 call 8010827f <kvmalloc> mpinit(); // collect info about this machine 801038ba: e8 43 04 00 00 call 80103d02 <mpinit> lapicinit(); 801038bf: e8 ea f5 ff ff call 80102eae <lapicinit> seginit(); // set up segments 801038c4: e8 5f 43 00 00 call 80107c28 <seginit> cprintf("\ncpu%d: starting xv6\n\n", cpu->id); 801038c9: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801038cf: 0f b6 00 movzbl (%eax),%eax 801038d2: 0f b6 c0 movzbl %al,%eax 801038d5: 83 ec 08 sub $0x8,%esp 801038d8: 50 push %eax 801038d9: 68 b0 8c 10 80 push $0x80108cb0 801038de: e8 e3 ca ff ff call 801003c6 <cprintf> 801038e3: 83 c4 10 add $0x10,%esp picinit(); // interrupt controller 801038e6: e8 6d 06 00 00 call 80103f58 <picinit> ioapicinit(); // another interrupt controller 801038eb: e8 34 f1 ff ff call 80102a24 <ioapicinit> consoleinit(); // I/O devices & their interrupts 801038f0: e8 24 d2 ff ff call 80100b19 <consoleinit> uartinit(); // serial port 801038f5: e8 8a 36 00 00 call 80106f84 <uartinit> pinit(); // process table 801038fa: e8 56 0b 00 00 call 80104455 <pinit> tvinit(); // trap vectors 801038ff: e8 4a 32 00 00 call 80106b4e <tvinit> binit(); // buffer cache 80103904: e8 2b c7 ff ff call 80100034 <binit> fileinit(); // file table 80103909: e8 67 d6 ff ff call 80100f75 <fileinit> ideinit(); // disk 8010390e: e8 19 ed ff ff call 8010262c <ideinit> if(!ismp) 80103913: a1 44 33 11 80 mov 0x80113344,%eax 80103918: 85 c0 test %eax,%eax 8010391a: 75 05 jne 80103921 <main+0x92> timerinit(); // uniprocessor timer 8010391c: e8 8a 31 00 00 call 80106aab <timerinit> startothers(); // start other processors 80103921: e8 7f 00 00 00 call 801039a5 <startothers> kinit2(P2V(4*1024*1024), P2V(PHYSTOP)); // must come after startothers() 80103926: 83 ec 08 sub $0x8,%esp 80103929: 68 00 00 00 8e push $0x8e000000 8010392e: 68 00 00 40 80 push $0x80400000 80103933: e8 30 f2 ff ff call 80102b68 <kinit2> 80103938: 83 c4 10 add $0x10,%esp userinit(); // first user process 8010393b: e8 ac 0c 00 00 call 801045ec <userinit> // Finish setting up this processor in mpmain. mpmain(); 80103940: e8 1a 00 00 00 call 8010395f <mpmain> 80103945 <mpenter>: } // Other CPUs jump here from entryother.S. static void mpenter(void) { 80103945: 55 push %ebp 80103946: 89 e5 mov %esp,%ebp 80103948: 83 ec 08 sub $0x8,%esp switchkvm(); 8010394b: e8 47 49 00 00 call 80108297 <switchkvm> seginit(); 80103950: e8 d3 42 00 00 call 80107c28 <seginit> lapicinit(); 80103955: e8 54 f5 ff ff call 80102eae <lapicinit> mpmain(); 8010395a: e8 00 00 00 00 call 8010395f <mpmain> 8010395f <mpmain>: } // Common CPU setup code. static void mpmain(void) { 8010395f: 55 push %ebp 80103960: 89 e5 mov %esp,%ebp 80103962: 83 ec 08 sub $0x8,%esp cprintf("cpu%d: starting\n", cpu->id); 80103965: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010396b: 0f b6 00 movzbl (%eax),%eax 8010396e: 0f b6 c0 movzbl %al,%eax 80103971: 83 ec 08 sub $0x8,%esp 80103974: 50 push %eax 80103975: 68 c7 8c 10 80 push $0x80108cc7 8010397a: e8 47 ca ff ff call 801003c6 <cprintf> 8010397f: 83 c4 10 add $0x10,%esp idtinit(); // load idt register 80103982: e8 3d 33 00 00 call 80106cc4 <idtinit> xchg(&cpu->started, 1); // tell startothers() we're up 80103987: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010398d: 05 a8 00 00 00 add $0xa8,%eax 80103992: 83 ec 08 sub $0x8,%esp 80103995: 6a 01 push $0x1 80103997: 50 push %eax 80103998: e8 d8 fe ff ff call 80103875 <xchg> 8010399d: 83 c4 10 add $0x10,%esp scheduler(); // start running processes 801039a0: e8 f8 11 00 00 call 80104b9d <scheduler> 801039a5 <startothers>: pde_t entrypgdir[]; // For entry.S // Start the non-boot (AP) processors. static void startothers(void) { 801039a5: 55 push %ebp 801039a6: 89 e5 mov %esp,%ebp 801039a8: 53 push %ebx 801039a9: 83 ec 14 sub $0x14,%esp char *stack; // Write entry code to unused memory at 0x7000. // The linker has placed the image of entryother.S in // _binary_entryother_start. code = p2v(0x7000); 801039ac: 68 00 70 00 00 push $0x7000 801039b1: e8 b2 fe ff ff call 80103868 <p2v> 801039b6: 83 c4 04 add $0x4,%esp 801039b9: 89 45 f0 mov %eax,-0x10(%ebp) memmove(code, _binary_entryother_start, (uint)_binary_entryother_size); 801039bc: b8 8a 00 00 00 mov $0x8a,%eax 801039c1: 83 ec 04 sub $0x4,%esp 801039c4: 50 push %eax 801039c5: 68 0c c5 10 80 push $0x8010c50c 801039ca: ff 75 f0 pushl -0x10(%ebp) 801039cd: e8 1b 1e 00 00 call 801057ed <memmove> 801039d2: 83 c4 10 add $0x10,%esp for(c = cpus; c < cpus+ncpu; c++){ 801039d5: c7 45 f4 60 33 11 80 movl $0x80113360,-0xc(%ebp) 801039dc: e9 90 00 00 00 jmp 80103a71 <startothers+0xcc> if(c == cpus+cpunum()) // We've started already. 801039e1: e8 e6 f5 ff ff call 80102fcc <cpunum> 801039e6: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 801039ec: 05 60 33 11 80 add $0x80113360,%eax 801039f1: 3b 45 f4 cmp -0xc(%ebp),%eax 801039f4: 74 73 je 80103a69 <startothers+0xc4> continue; // Tell entryother.S what stack to use, where to enter, and what // pgdir to use. We cannot use kpgdir yet, because the AP processor // is running in low memory, so we use entrypgdir for the APs too. stack = kalloc(); 801039f6: e8 6b f2 ff ff call 80102c66 <kalloc> 801039fb: 89 45 ec mov %eax,-0x14(%ebp) *(void**)(code-4) = stack + KSTACKSIZE; 801039fe: 8b 45 f0 mov -0x10(%ebp),%eax 80103a01: 83 e8 04 sub $0x4,%eax 80103a04: 8b 55 ec mov -0x14(%ebp),%edx 80103a07: 81 c2 00 10 00 00 add $0x1000,%edx 80103a0d: 89 10 mov %edx,(%eax) *(void**)(code-8) = mpenter; 80103a0f: 8b 45 f0 mov -0x10(%ebp),%eax 80103a12: 83 e8 08 sub $0x8,%eax 80103a15: c7 00 45 39 10 80 movl $0x80103945,(%eax) *(int**)(code-12) = (void *) v2p(entrypgdir); 80103a1b: 8b 45 f0 mov -0x10(%ebp),%eax 80103a1e: 8d 58 f4 lea -0xc(%eax),%ebx 80103a21: 83 ec 0c sub $0xc,%esp 80103a24: 68 00 b0 10 80 push $0x8010b000 80103a29: e8 2d fe ff ff call 8010385b <v2p> 80103a2e: 83 c4 10 add $0x10,%esp 80103a31: 89 03 mov %eax,(%ebx) lapicstartap(c->id, v2p(code)); 80103a33: 83 ec 0c sub $0xc,%esp 80103a36: ff 75 f0 pushl -0x10(%ebp) 80103a39: e8 1d fe ff ff call 8010385b <v2p> 80103a3e: 83 c4 10 add $0x10,%esp 80103a41: 89 c2 mov %eax,%edx 80103a43: 8b 45 f4 mov -0xc(%ebp),%eax 80103a46: 0f b6 00 movzbl (%eax),%eax 80103a49: 0f b6 c0 movzbl %al,%eax 80103a4c: 83 ec 08 sub $0x8,%esp 80103a4f: 52 push %edx 80103a50: 50 push %eax 80103a51: e8 f0 f5 ff ff call 80103046 <lapicstartap> 80103a56: 83 c4 10 add $0x10,%esp // wait for cpu to finish mpmain() while(c->started == 0) 80103a59: 90 nop 80103a5a: 8b 45 f4 mov -0xc(%ebp),%eax 80103a5d: 8b 80 a8 00 00 00 mov 0xa8(%eax),%eax 80103a63: 85 c0 test %eax,%eax 80103a65: 74 f3 je 80103a5a <startothers+0xb5> 80103a67: eb 01 jmp 80103a6a <startothers+0xc5> code = p2v(0x7000); memmove(code, _binary_entryother_start, (uint)_binary_entryother_size); for(c = cpus; c < cpus+ncpu; c++){ if(c == cpus+cpunum()) // We've started already. continue; 80103a69: 90 nop // The linker has placed the image of entryother.S in // _binary_entryother_start. code = p2v(0x7000); memmove(code, _binary_entryother_start, (uint)_binary_entryother_size); for(c = cpus; c < cpus+ncpu; c++){ 80103a6a: 81 45 f4 bc 00 00 00 addl $0xbc,-0xc(%ebp) 80103a71: a1 40 39 11 80 mov 0x80113940,%eax 80103a76: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80103a7c: 05 60 33 11 80 add $0x80113360,%eax 80103a81: 3b 45 f4 cmp -0xc(%ebp),%eax 80103a84: 0f 87 57 ff ff ff ja 801039e1 <startothers+0x3c> // wait for cpu to finish mpmain() while(c->started == 0) ; } } 80103a8a: 90 nop 80103a8b: 8b 5d fc mov -0x4(%ebp),%ebx 80103a8e: c9 leave 80103a8f: c3 ret 80103a90 <p2v>: 80103a90: 55 push %ebp 80103a91: 89 e5 mov %esp,%ebp 80103a93: 8b 45 08 mov 0x8(%ebp),%eax 80103a96: 05 00 00 00 80 add $0x80000000,%eax 80103a9b: 5d pop %ebp 80103a9c: c3 ret 80103a9d <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 80103a9d: 55 push %ebp 80103a9e: 89 e5 mov %esp,%ebp 80103aa0: 83 ec 14 sub $0x14,%esp 80103aa3: 8b 45 08 mov 0x8(%ebp),%eax 80103aa6: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80103aaa: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80103aae: 89 c2 mov %eax,%edx 80103ab0: ec in (%dx),%al 80103ab1: 88 45 ff mov %al,-0x1(%ebp) return data; 80103ab4: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80103ab8: c9 leave 80103ab9: c3 ret 80103aba <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 80103aba: 55 push %ebp 80103abb: 89 e5 mov %esp,%ebp 80103abd: 83 ec 08 sub $0x8,%esp 80103ac0: 8b 55 08 mov 0x8(%ebp),%edx 80103ac3: 8b 45 0c mov 0xc(%ebp),%eax 80103ac6: 66 89 55 fc mov %dx,-0x4(%ebp) 80103aca: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80103acd: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80103ad1: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80103ad5: ee out %al,(%dx) } 80103ad6: 90 nop 80103ad7: c9 leave 80103ad8: c3 ret 80103ad9 <mpbcpu>: int ncpu; uchar ioapicid; int mpbcpu(void) { 80103ad9: 55 push %ebp 80103ada: 89 e5 mov %esp,%ebp return bcpu-cpus; 80103adc: a1 44 c6 10 80 mov 0x8010c644,%eax 80103ae1: 89 c2 mov %eax,%edx 80103ae3: b8 60 33 11 80 mov $0x80113360,%eax 80103ae8: 29 c2 sub %eax,%edx 80103aea: 89 d0 mov %edx,%eax 80103aec: c1 f8 02 sar $0x2,%eax 80103aef: 69 c0 cf 46 7d 67 imul $0x677d46cf,%eax,%eax } 80103af5: 5d pop %ebp 80103af6: c3 ret 80103af7 <sum>: static uchar sum(uchar *addr, int len) { 80103af7: 55 push %ebp 80103af8: 89 e5 mov %esp,%ebp 80103afa: 83 ec 10 sub $0x10,%esp int i, sum; sum = 0; 80103afd: c7 45 f8 00 00 00 00 movl $0x0,-0x8(%ebp) for(i=0; i<len; i++) 80103b04: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 80103b0b: eb 15 jmp 80103b22 <sum+0x2b> sum += addr[i]; 80103b0d: 8b 55 fc mov -0x4(%ebp),%edx 80103b10: 8b 45 08 mov 0x8(%ebp),%eax 80103b13: 01 d0 add %edx,%eax 80103b15: 0f b6 00 movzbl (%eax),%eax 80103b18: 0f b6 c0 movzbl %al,%eax 80103b1b: 01 45 f8 add %eax,-0x8(%ebp) sum(uchar *addr, int len) { int i, sum; sum = 0; for(i=0; i<len; i++) 80103b1e: 83 45 fc 01 addl $0x1,-0x4(%ebp) 80103b22: 8b 45 fc mov -0x4(%ebp),%eax 80103b25: 3b 45 0c cmp 0xc(%ebp),%eax 80103b28: 7c e3 jl 80103b0d <sum+0x16> sum += addr[i]; return sum; 80103b2a: 8b 45 f8 mov -0x8(%ebp),%eax } 80103b2d: c9 leave 80103b2e: c3 ret 80103b2f <mpsearch1>: // Look for an MP structure in the len bytes at addr. static struct mp* mpsearch1(uint a, int len) { 80103b2f: 55 push %ebp 80103b30: 89 e5 mov %esp,%ebp 80103b32: 83 ec 18 sub $0x18,%esp uchar *e, *p, *addr; addr = p2v(a); 80103b35: ff 75 08 pushl 0x8(%ebp) 80103b38: e8 53 ff ff ff call 80103a90 <p2v> 80103b3d: 83 c4 04 add $0x4,%esp 80103b40: 89 45 f0 mov %eax,-0x10(%ebp) e = addr+len; 80103b43: 8b 55 0c mov 0xc(%ebp),%edx 80103b46: 8b 45 f0 mov -0x10(%ebp),%eax 80103b49: 01 d0 add %edx,%eax 80103b4b: 89 45 ec mov %eax,-0x14(%ebp) for(p = addr; p < e; p += sizeof(struct mp)) 80103b4e: 8b 45 f0 mov -0x10(%ebp),%eax 80103b51: 89 45 f4 mov %eax,-0xc(%ebp) 80103b54: eb 36 jmp 80103b8c <mpsearch1+0x5d> if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0) 80103b56: 83 ec 04 sub $0x4,%esp 80103b59: 6a 04 push $0x4 80103b5b: 68 d8 8c 10 80 push $0x80108cd8 80103b60: ff 75 f4 pushl -0xc(%ebp) 80103b63: e8 2d 1c 00 00 call 80105795 <memcmp> 80103b68: 83 c4 10 add $0x10,%esp 80103b6b: 85 c0 test %eax,%eax 80103b6d: 75 19 jne 80103b88 <mpsearch1+0x59> 80103b6f: 83 ec 08 sub $0x8,%esp 80103b72: 6a 10 push $0x10 80103b74: ff 75 f4 pushl -0xc(%ebp) 80103b77: e8 7b ff ff ff call 80103af7 <sum> 80103b7c: 83 c4 10 add $0x10,%esp 80103b7f: 84 c0 test %al,%al 80103b81: 75 05 jne 80103b88 <mpsearch1+0x59> return (struct mp*)p; 80103b83: 8b 45 f4 mov -0xc(%ebp),%eax 80103b86: eb 11 jmp 80103b99 <mpsearch1+0x6a> { uchar *e, *p, *addr; addr = p2v(a); e = addr+len; for(p = addr; p < e; p += sizeof(struct mp)) 80103b88: 83 45 f4 10 addl $0x10,-0xc(%ebp) 80103b8c: 8b 45 f4 mov -0xc(%ebp),%eax 80103b8f: 3b 45 ec cmp -0x14(%ebp),%eax 80103b92: 72 c2 jb 80103b56 <mpsearch1+0x27> if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0) return (struct mp*)p; return 0; 80103b94: b8 00 00 00 00 mov $0x0,%eax } 80103b99: c9 leave 80103b9a: c3 ret 80103b9b <mpsearch>: // 1) in the first KB of the EBDA; // 2) in the last KB of system base memory; // 3) in the BIOS ROM between 0xE0000 and 0xFFFFF. static struct mp* mpsearch(void) { 80103b9b: 55 push %ebp 80103b9c: 89 e5 mov %esp,%ebp 80103b9e: 83 ec 18 sub $0x18,%esp uchar *bda; uint p; struct mp *mp; bda = (uchar *) P2V(0x400); 80103ba1: c7 45 f4 00 04 00 80 movl $0x80000400,-0xc(%ebp) if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4)){ 80103ba8: 8b 45 f4 mov -0xc(%ebp),%eax 80103bab: 83 c0 0f add $0xf,%eax 80103bae: 0f b6 00 movzbl (%eax),%eax 80103bb1: 0f b6 c0 movzbl %al,%eax 80103bb4: c1 e0 08 shl $0x8,%eax 80103bb7: 89 c2 mov %eax,%edx 80103bb9: 8b 45 f4 mov -0xc(%ebp),%eax 80103bbc: 83 c0 0e add $0xe,%eax 80103bbf: 0f b6 00 movzbl (%eax),%eax 80103bc2: 0f b6 c0 movzbl %al,%eax 80103bc5: 09 d0 or %edx,%eax 80103bc7: c1 e0 04 shl $0x4,%eax 80103bca: 89 45 f0 mov %eax,-0x10(%ebp) 80103bcd: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80103bd1: 74 21 je 80103bf4 <mpsearch+0x59> if((mp = mpsearch1(p, 1024))) 80103bd3: 83 ec 08 sub $0x8,%esp 80103bd6: 68 00 04 00 00 push $0x400 80103bdb: ff 75 f0 pushl -0x10(%ebp) 80103bde: e8 4c ff ff ff call 80103b2f <mpsearch1> 80103be3: 83 c4 10 add $0x10,%esp 80103be6: 89 45 ec mov %eax,-0x14(%ebp) 80103be9: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80103bed: 74 51 je 80103c40 <mpsearch+0xa5> return mp; 80103bef: 8b 45 ec mov -0x14(%ebp),%eax 80103bf2: eb 61 jmp 80103c55 <mpsearch+0xba> } else { p = ((bda[0x14]<<8)|bda[0x13])*1024; 80103bf4: 8b 45 f4 mov -0xc(%ebp),%eax 80103bf7: 83 c0 14 add $0x14,%eax 80103bfa: 0f b6 00 movzbl (%eax),%eax 80103bfd: 0f b6 c0 movzbl %al,%eax 80103c00: c1 e0 08 shl $0x8,%eax 80103c03: 89 c2 mov %eax,%edx 80103c05: 8b 45 f4 mov -0xc(%ebp),%eax 80103c08: 83 c0 13 add $0x13,%eax 80103c0b: 0f b6 00 movzbl (%eax),%eax 80103c0e: 0f b6 c0 movzbl %al,%eax 80103c11: 09 d0 or %edx,%eax 80103c13: c1 e0 0a shl $0xa,%eax 80103c16: 89 45 f0 mov %eax,-0x10(%ebp) if((mp = mpsearch1(p-1024, 1024))) 80103c19: 8b 45 f0 mov -0x10(%ebp),%eax 80103c1c: 2d 00 04 00 00 sub $0x400,%eax 80103c21: 83 ec 08 sub $0x8,%esp 80103c24: 68 00 04 00 00 push $0x400 80103c29: 50 push %eax 80103c2a: e8 00 ff ff ff call 80103b2f <mpsearch1> 80103c2f: 83 c4 10 add $0x10,%esp 80103c32: 89 45 ec mov %eax,-0x14(%ebp) 80103c35: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80103c39: 74 05 je 80103c40 <mpsearch+0xa5> return mp; 80103c3b: 8b 45 ec mov -0x14(%ebp),%eax 80103c3e: eb 15 jmp 80103c55 <mpsearch+0xba> } return mpsearch1(0xF0000, 0x10000); 80103c40: 83 ec 08 sub $0x8,%esp 80103c43: 68 00 00 01 00 push $0x10000 80103c48: 68 00 00 0f 00 push $0xf0000 80103c4d: e8 dd fe ff ff call 80103b2f <mpsearch1> 80103c52: 83 c4 10 add $0x10,%esp } 80103c55: c9 leave 80103c56: c3 ret 80103c57 <mpconfig>: // Check for correct signature, calculate the checksum and, // if correct, check the version. // To do: check extended table checksum. static struct mpconf* mpconfig(struct mp **pmp) { 80103c57: 55 push %ebp 80103c58: 89 e5 mov %esp,%ebp 80103c5a: 83 ec 18 sub $0x18,%esp struct mpconf *conf; struct mp *mp; if((mp = mpsearch()) == 0 || mp->physaddr == 0) 80103c5d: e8 39 ff ff ff call 80103b9b <mpsearch> 80103c62: 89 45 f4 mov %eax,-0xc(%ebp) 80103c65: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80103c69: 74 0a je 80103c75 <mpconfig+0x1e> 80103c6b: 8b 45 f4 mov -0xc(%ebp),%eax 80103c6e: 8b 40 04 mov 0x4(%eax),%eax 80103c71: 85 c0 test %eax,%eax 80103c73: 75 0a jne 80103c7f <mpconfig+0x28> return 0; 80103c75: b8 00 00 00 00 mov $0x0,%eax 80103c7a: e9 81 00 00 00 jmp 80103d00 <mpconfig+0xa9> conf = (struct mpconf*) p2v((uint) mp->physaddr); 80103c7f: 8b 45 f4 mov -0xc(%ebp),%eax 80103c82: 8b 40 04 mov 0x4(%eax),%eax 80103c85: 83 ec 0c sub $0xc,%esp 80103c88: 50 push %eax 80103c89: e8 02 fe ff ff call 80103a90 <p2v> 80103c8e: 83 c4 10 add $0x10,%esp 80103c91: 89 45 f0 mov %eax,-0x10(%ebp) if(memcmp(conf, "PCMP", 4) != 0) 80103c94: 83 ec 04 sub $0x4,%esp 80103c97: 6a 04 push $0x4 80103c99: 68 dd 8c 10 80 push $0x80108cdd 80103c9e: ff 75 f0 pushl -0x10(%ebp) 80103ca1: e8 ef 1a 00 00 call 80105795 <memcmp> 80103ca6: 83 c4 10 add $0x10,%esp 80103ca9: 85 c0 test %eax,%eax 80103cab: 74 07 je 80103cb4 <mpconfig+0x5d> return 0; 80103cad: b8 00 00 00 00 mov $0x0,%eax 80103cb2: eb 4c jmp 80103d00 <mpconfig+0xa9> if(conf->version != 1 && conf->version != 4) 80103cb4: 8b 45 f0 mov -0x10(%ebp),%eax 80103cb7: 0f b6 40 06 movzbl 0x6(%eax),%eax 80103cbb: 3c 01 cmp $0x1,%al 80103cbd: 74 12 je 80103cd1 <mpconfig+0x7a> 80103cbf: 8b 45 f0 mov -0x10(%ebp),%eax 80103cc2: 0f b6 40 06 movzbl 0x6(%eax),%eax 80103cc6: 3c 04 cmp $0x4,%al 80103cc8: 74 07 je 80103cd1 <mpconfig+0x7a> return 0; 80103cca: b8 00 00 00 00 mov $0x0,%eax 80103ccf: eb 2f jmp 80103d00 <mpconfig+0xa9> if(sum((uchar*)conf, conf->length) != 0) 80103cd1: 8b 45 f0 mov -0x10(%ebp),%eax 80103cd4: 0f b7 40 04 movzwl 0x4(%eax),%eax 80103cd8: 0f b7 c0 movzwl %ax,%eax 80103cdb: 83 ec 08 sub $0x8,%esp 80103cde: 50 push %eax 80103cdf: ff 75 f0 pushl -0x10(%ebp) 80103ce2: e8 10 fe ff ff call 80103af7 <sum> 80103ce7: 83 c4 10 add $0x10,%esp 80103cea: 84 c0 test %al,%al 80103cec: 74 07 je 80103cf5 <mpconfig+0x9e> return 0; 80103cee: b8 00 00 00 00 mov $0x0,%eax 80103cf3: eb 0b jmp 80103d00 <mpconfig+0xa9> *pmp = mp; 80103cf5: 8b 45 08 mov 0x8(%ebp),%eax 80103cf8: 8b 55 f4 mov -0xc(%ebp),%edx 80103cfb: 89 10 mov %edx,(%eax) return conf; 80103cfd: 8b 45 f0 mov -0x10(%ebp),%eax } 80103d00: c9 leave 80103d01: c3 ret 80103d02 <mpinit>: void mpinit(void) { 80103d02: 55 push %ebp 80103d03: 89 e5 mov %esp,%ebp 80103d05: 83 ec 28 sub $0x28,%esp struct mp *mp; struct mpconf *conf; struct mpproc *proc; struct mpioapic *ioapic; bcpu = &cpus[0]; 80103d08: c7 05 44 c6 10 80 60 movl $0x80113360,0x8010c644 80103d0f: 33 11 80 if((conf = mpconfig(&mp)) == 0) 80103d12: 83 ec 0c sub $0xc,%esp 80103d15: 8d 45 e0 lea -0x20(%ebp),%eax 80103d18: 50 push %eax 80103d19: e8 39 ff ff ff call 80103c57 <mpconfig> 80103d1e: 83 c4 10 add $0x10,%esp 80103d21: 89 45 f0 mov %eax,-0x10(%ebp) 80103d24: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80103d28: 0f 84 96 01 00 00 je 80103ec4 <mpinit+0x1c2> return; ismp = 1; 80103d2e: c7 05 44 33 11 80 01 movl $0x1,0x80113344 80103d35: 00 00 00 lapic = (uint*)conf->lapicaddr; 80103d38: 8b 45 f0 mov -0x10(%ebp),%eax 80103d3b: 8b 40 24 mov 0x24(%eax),%eax 80103d3e: a3 5c 32 11 80 mov %eax,0x8011325c for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 80103d43: 8b 45 f0 mov -0x10(%ebp),%eax 80103d46: 83 c0 2c add $0x2c,%eax 80103d49: 89 45 f4 mov %eax,-0xc(%ebp) 80103d4c: 8b 45 f0 mov -0x10(%ebp),%eax 80103d4f: 0f b7 40 04 movzwl 0x4(%eax),%eax 80103d53: 0f b7 d0 movzwl %ax,%edx 80103d56: 8b 45 f0 mov -0x10(%ebp),%eax 80103d59: 01 d0 add %edx,%eax 80103d5b: 89 45 ec mov %eax,-0x14(%ebp) 80103d5e: e9 f2 00 00 00 jmp 80103e55 <mpinit+0x153> switch(*p){ 80103d63: 8b 45 f4 mov -0xc(%ebp),%eax 80103d66: 0f b6 00 movzbl (%eax),%eax 80103d69: 0f b6 c0 movzbl %al,%eax 80103d6c: 83 f8 04 cmp $0x4,%eax 80103d6f: 0f 87 bc 00 00 00 ja 80103e31 <mpinit+0x12f> 80103d75: 8b 04 85 20 8d 10 80 mov -0x7fef72e0(,%eax,4),%eax 80103d7c: ff e0 jmp *%eax case MPPROC: proc = (struct mpproc*)p; 80103d7e: 8b 45 f4 mov -0xc(%ebp),%eax 80103d81: 89 45 e8 mov %eax,-0x18(%ebp) if(ncpu != proc->apicid){ 80103d84: 8b 45 e8 mov -0x18(%ebp),%eax 80103d87: 0f b6 40 01 movzbl 0x1(%eax),%eax 80103d8b: 0f b6 d0 movzbl %al,%edx 80103d8e: a1 40 39 11 80 mov 0x80113940,%eax 80103d93: 39 c2 cmp %eax,%edx 80103d95: 74 2b je 80103dc2 <mpinit+0xc0> cprintf("mpinit: ncpu=%d apicid=%d\n", ncpu, proc->apicid); 80103d97: 8b 45 e8 mov -0x18(%ebp),%eax 80103d9a: 0f b6 40 01 movzbl 0x1(%eax),%eax 80103d9e: 0f b6 d0 movzbl %al,%edx 80103da1: a1 40 39 11 80 mov 0x80113940,%eax 80103da6: 83 ec 04 sub $0x4,%esp 80103da9: 52 push %edx 80103daa: 50 push %eax 80103dab: 68 e2 8c 10 80 push $0x80108ce2 80103db0: e8 11 c6 ff ff call 801003c6 <cprintf> 80103db5: 83 c4 10 add $0x10,%esp ismp = 0; 80103db8: c7 05 44 33 11 80 00 movl $0x0,0x80113344 80103dbf: 00 00 00 } if(proc->flags & MPBOOT) 80103dc2: 8b 45 e8 mov -0x18(%ebp),%eax 80103dc5: 0f b6 40 03 movzbl 0x3(%eax),%eax 80103dc9: 0f b6 c0 movzbl %al,%eax 80103dcc: 83 e0 02 and $0x2,%eax 80103dcf: 85 c0 test %eax,%eax 80103dd1: 74 15 je 80103de8 <mpinit+0xe6> bcpu = &cpus[ncpu]; 80103dd3: a1 40 39 11 80 mov 0x80113940,%eax 80103dd8: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80103dde: 05 60 33 11 80 add $0x80113360,%eax 80103de3: a3 44 c6 10 80 mov %eax,0x8010c644 cpus[ncpu].id = ncpu; 80103de8: a1 40 39 11 80 mov 0x80113940,%eax 80103ded: 8b 15 40 39 11 80 mov 0x80113940,%edx 80103df3: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80103df9: 05 60 33 11 80 add $0x80113360,%eax 80103dfe: 88 10 mov %dl,(%eax) ncpu++; 80103e00: a1 40 39 11 80 mov 0x80113940,%eax 80103e05: 83 c0 01 add $0x1,%eax 80103e08: a3 40 39 11 80 mov %eax,0x80113940 p += sizeof(struct mpproc); 80103e0d: 83 45 f4 14 addl $0x14,-0xc(%ebp) continue; 80103e11: eb 42 jmp 80103e55 <mpinit+0x153> case MPIOAPIC: ioapic = (struct mpioapic*)p; 80103e13: 8b 45 f4 mov -0xc(%ebp),%eax 80103e16: 89 45 e4 mov %eax,-0x1c(%ebp) ioapicid = ioapic->apicno; 80103e19: 8b 45 e4 mov -0x1c(%ebp),%eax 80103e1c: 0f b6 40 01 movzbl 0x1(%eax),%eax 80103e20: a2 40 33 11 80 mov %al,0x80113340 p += sizeof(struct mpioapic); 80103e25: 83 45 f4 08 addl $0x8,-0xc(%ebp) continue; 80103e29: eb 2a jmp 80103e55 <mpinit+0x153> case MPBUS: case MPIOINTR: case MPLINTR: p += 8; 80103e2b: 83 45 f4 08 addl $0x8,-0xc(%ebp) continue; 80103e2f: eb 24 jmp 80103e55 <mpinit+0x153> default: cprintf("mpinit: unknown config type %x\n", *p); 80103e31: 8b 45 f4 mov -0xc(%ebp),%eax 80103e34: 0f b6 00 movzbl (%eax),%eax 80103e37: 0f b6 c0 movzbl %al,%eax 80103e3a: 83 ec 08 sub $0x8,%esp 80103e3d: 50 push %eax 80103e3e: 68 00 8d 10 80 push $0x80108d00 80103e43: e8 7e c5 ff ff call 801003c6 <cprintf> 80103e48: 83 c4 10 add $0x10,%esp ismp = 0; 80103e4b: c7 05 44 33 11 80 00 movl $0x0,0x80113344 80103e52: 00 00 00 bcpu = &cpus[0]; if((conf = mpconfig(&mp)) == 0) return; ismp = 1; lapic = (uint*)conf->lapicaddr; for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 80103e55: 8b 45 f4 mov -0xc(%ebp),%eax 80103e58: 3b 45 ec cmp -0x14(%ebp),%eax 80103e5b: 0f 82 02 ff ff ff jb 80103d63 <mpinit+0x61> default: cprintf("mpinit: unknown config type %x\n", *p); ismp = 0; } } if(!ismp){ 80103e61: a1 44 33 11 80 mov 0x80113344,%eax 80103e66: 85 c0 test %eax,%eax 80103e68: 75 1d jne 80103e87 <mpinit+0x185> // Didn't like what we found; fall back to no MP. ncpu = 1; 80103e6a: c7 05 40 39 11 80 01 movl $0x1,0x80113940 80103e71: 00 00 00 lapic = 0; 80103e74: c7 05 5c 32 11 80 00 movl $0x0,0x8011325c 80103e7b: 00 00 00 ioapicid = 0; 80103e7e: c6 05 40 33 11 80 00 movb $0x0,0x80113340 return; 80103e85: eb 3e jmp 80103ec5 <mpinit+0x1c3> } if(mp->imcrp){ 80103e87: 8b 45 e0 mov -0x20(%ebp),%eax 80103e8a: 0f b6 40 0c movzbl 0xc(%eax),%eax 80103e8e: 84 c0 test %al,%al 80103e90: 74 33 je 80103ec5 <mpinit+0x1c3> // Bochs doesn't support IMCR, so this doesn't run on Bochs. // But it would on real hardware. outb(0x22, 0x70); // Select IMCR 80103e92: 83 ec 08 sub $0x8,%esp 80103e95: 6a 70 push $0x70 80103e97: 6a 22 push $0x22 80103e99: e8 1c fc ff ff call 80103aba <outb> 80103e9e: 83 c4 10 add $0x10,%esp outb(0x23, inb(0x23) | 1); // Mask external interrupts. 80103ea1: 83 ec 0c sub $0xc,%esp 80103ea4: 6a 23 push $0x23 80103ea6: e8 f2 fb ff ff call 80103a9d <inb> 80103eab: 83 c4 10 add $0x10,%esp 80103eae: 83 c8 01 or $0x1,%eax 80103eb1: 0f b6 c0 movzbl %al,%eax 80103eb4: 83 ec 08 sub $0x8,%esp 80103eb7: 50 push %eax 80103eb8: 6a 23 push $0x23 80103eba: e8 fb fb ff ff call 80103aba <outb> 80103ebf: 83 c4 10 add $0x10,%esp 80103ec2: eb 01 jmp 80103ec5 <mpinit+0x1c3> struct mpproc *proc; struct mpioapic *ioapic; bcpu = &cpus[0]; if((conf = mpconfig(&mp)) == 0) return; 80103ec4: 90 nop // Bochs doesn't support IMCR, so this doesn't run on Bochs. // But it would on real hardware. outb(0x22, 0x70); // Select IMCR outb(0x23, inb(0x23) | 1); // Mask external interrupts. } } 80103ec5: c9 leave 80103ec6: c3 ret 80103ec7 <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 80103ec7: 55 push %ebp 80103ec8: 89 e5 mov %esp,%ebp 80103eca: 83 ec 08 sub $0x8,%esp 80103ecd: 8b 55 08 mov 0x8(%ebp),%edx 80103ed0: 8b 45 0c mov 0xc(%ebp),%eax 80103ed3: 66 89 55 fc mov %dx,-0x4(%ebp) 80103ed7: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80103eda: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80103ede: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80103ee2: ee out %al,(%dx) } 80103ee3: 90 nop 80103ee4: c9 leave 80103ee5: c3 ret 80103ee6 <picsetmask>: // Initial IRQ mask has interrupt 2 enabled (for slave 8259A). static ushort irqmask = 0xFFFF & ~(1<<IRQ_SLAVE); static void picsetmask(ushort mask) { 80103ee6: 55 push %ebp 80103ee7: 89 e5 mov %esp,%ebp 80103ee9: 83 ec 04 sub $0x4,%esp 80103eec: 8b 45 08 mov 0x8(%ebp),%eax 80103eef: 66 89 45 fc mov %ax,-0x4(%ebp) irqmask = mask; 80103ef3: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80103ef7: 66 a3 00 c0 10 80 mov %ax,0x8010c000 outb(IO_PIC1+1, mask); 80103efd: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80103f01: 0f b6 c0 movzbl %al,%eax 80103f04: 50 push %eax 80103f05: 6a 21 push $0x21 80103f07: e8 bb ff ff ff call 80103ec7 <outb> 80103f0c: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, mask >> 8); 80103f0f: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80103f13: 66 c1 e8 08 shr $0x8,%ax 80103f17: 0f b6 c0 movzbl %al,%eax 80103f1a: 50 push %eax 80103f1b: 68 a1 00 00 00 push $0xa1 80103f20: e8 a2 ff ff ff call 80103ec7 <outb> 80103f25: 83 c4 08 add $0x8,%esp } 80103f28: 90 nop 80103f29: c9 leave 80103f2a: c3 ret 80103f2b <picenable>: void picenable(int irq) { 80103f2b: 55 push %ebp 80103f2c: 89 e5 mov %esp,%ebp picsetmask(irqmask & ~(1<<irq)); 80103f2e: 8b 45 08 mov 0x8(%ebp),%eax 80103f31: ba 01 00 00 00 mov $0x1,%edx 80103f36: 89 c1 mov %eax,%ecx 80103f38: d3 e2 shl %cl,%edx 80103f3a: 89 d0 mov %edx,%eax 80103f3c: f7 d0 not %eax 80103f3e: 89 c2 mov %eax,%edx 80103f40: 0f b7 05 00 c0 10 80 movzwl 0x8010c000,%eax 80103f47: 21 d0 and %edx,%eax 80103f49: 0f b7 c0 movzwl %ax,%eax 80103f4c: 50 push %eax 80103f4d: e8 94 ff ff ff call 80103ee6 <picsetmask> 80103f52: 83 c4 04 add $0x4,%esp } 80103f55: 90 nop 80103f56: c9 leave 80103f57: c3 ret 80103f58 <picinit>: // Initialize the 8259A interrupt controllers. void picinit(void) { 80103f58: 55 push %ebp 80103f59: 89 e5 mov %esp,%ebp // mask all interrupts outb(IO_PIC1+1, 0xFF); 80103f5b: 68 ff 00 00 00 push $0xff 80103f60: 6a 21 push $0x21 80103f62: e8 60 ff ff ff call 80103ec7 <outb> 80103f67: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, 0xFF); 80103f6a: 68 ff 00 00 00 push $0xff 80103f6f: 68 a1 00 00 00 push $0xa1 80103f74: e8 4e ff ff ff call 80103ec7 <outb> 80103f79: 83 c4 08 add $0x8,%esp // ICW1: 0001g0hi // g: 0 = edge triggering, 1 = level triggering // h: 0 = cascaded PICs, 1 = master only // i: 0 = no ICW4, 1 = ICW4 required outb(IO_PIC1, 0x11); 80103f7c: 6a 11 push $0x11 80103f7e: 6a 20 push $0x20 80103f80: e8 42 ff ff ff call 80103ec7 <outb> 80103f85: 83 c4 08 add $0x8,%esp // ICW2: Vector offset outb(IO_PIC1+1, T_IRQ0); 80103f88: 6a 20 push $0x20 80103f8a: 6a 21 push $0x21 80103f8c: e8 36 ff ff ff call 80103ec7 <outb> 80103f91: 83 c4 08 add $0x8,%esp // ICW3: (master PIC) bit mask of IR lines connected to slaves // (slave PIC) 3-bit # of slave's connection to master outb(IO_PIC1+1, 1<<IRQ_SLAVE); 80103f94: 6a 04 push $0x4 80103f96: 6a 21 push $0x21 80103f98: e8 2a ff ff ff call 80103ec7 <outb> 80103f9d: 83 c4 08 add $0x8,%esp // m: 0 = slave PIC, 1 = master PIC // (ignored when b is 0, as the master/slave role // can be hardwired). // a: 1 = Automatic EOI mode // p: 0 = MCS-80/85 mode, 1 = intel x86 mode outb(IO_PIC1+1, 0x3); 80103fa0: 6a 03 push $0x3 80103fa2: 6a 21 push $0x21 80103fa4: e8 1e ff ff ff call 80103ec7 <outb> 80103fa9: 83 c4 08 add $0x8,%esp // Set up slave (8259A-2) outb(IO_PIC2, 0x11); // ICW1 80103fac: 6a 11 push $0x11 80103fae: 68 a0 00 00 00 push $0xa0 80103fb3: e8 0f ff ff ff call 80103ec7 <outb> 80103fb8: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, T_IRQ0 + 8); // ICW2 80103fbb: 6a 28 push $0x28 80103fbd: 68 a1 00 00 00 push $0xa1 80103fc2: e8 00 ff ff ff call 80103ec7 <outb> 80103fc7: 83 c4 08 add $0x8,%esp outb(IO_PIC2+1, IRQ_SLAVE); // ICW3 80103fca: 6a 02 push $0x2 80103fcc: 68 a1 00 00 00 push $0xa1 80103fd1: e8 f1 fe ff ff call 80103ec7 <outb> 80103fd6: 83 c4 08 add $0x8,%esp // NB Automatic EOI mode doesn't tend to work on the slave. // Linux source code says it's "to be investigated". outb(IO_PIC2+1, 0x3); // ICW4 80103fd9: 6a 03 push $0x3 80103fdb: 68 a1 00 00 00 push $0xa1 80103fe0: e8 e2 fe ff ff call 80103ec7 <outb> 80103fe5: 83 c4 08 add $0x8,%esp // OCW3: 0ef01prs // ef: 0x = NOP, 10 = clear specific mask, 11 = set specific mask // p: 0 = no polling, 1 = polling mode // rs: 0x = NOP, 10 = read IRR, 11 = read ISR outb(IO_PIC1, 0x68); // clear specific mask 80103fe8: 6a 68 push $0x68 80103fea: 6a 20 push $0x20 80103fec: e8 d6 fe ff ff call 80103ec7 <outb> 80103ff1: 83 c4 08 add $0x8,%esp outb(IO_PIC1, 0x0a); // read IRR by default 80103ff4: 6a 0a push $0xa 80103ff6: 6a 20 push $0x20 80103ff8: e8 ca fe ff ff call 80103ec7 <outb> 80103ffd: 83 c4 08 add $0x8,%esp outb(IO_PIC2, 0x68); // OCW3 80104000: 6a 68 push $0x68 80104002: 68 a0 00 00 00 push $0xa0 80104007: e8 bb fe ff ff call 80103ec7 <outb> 8010400c: 83 c4 08 add $0x8,%esp outb(IO_PIC2, 0x0a); // OCW3 8010400f: 6a 0a push $0xa 80104011: 68 a0 00 00 00 push $0xa0 80104016: e8 ac fe ff ff call 80103ec7 <outb> 8010401b: 83 c4 08 add $0x8,%esp if(irqmask != 0xFFFF) 8010401e: 0f b7 05 00 c0 10 80 movzwl 0x8010c000,%eax 80104025: 66 83 f8 ff cmp $0xffff,%ax 80104029: 74 13 je 8010403e <picinit+0xe6> picsetmask(irqmask); 8010402b: 0f b7 05 00 c0 10 80 movzwl 0x8010c000,%eax 80104032: 0f b7 c0 movzwl %ax,%eax 80104035: 50 push %eax 80104036: e8 ab fe ff ff call 80103ee6 <picsetmask> 8010403b: 83 c4 04 add $0x4,%esp } 8010403e: 90 nop 8010403f: c9 leave 80104040: c3 ret 80104041 <pipealloc>: int writeopen; // write fd is still open }; int pipealloc(struct file **f0, struct file **f1) { 80104041: 55 push %ebp 80104042: 89 e5 mov %esp,%ebp 80104044: 83 ec 18 sub $0x18,%esp struct pipe *p; p = 0; 80104047: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) *f0 = *f1 = 0; 8010404e: 8b 45 0c mov 0xc(%ebp),%eax 80104051: c7 00 00 00 00 00 movl $0x0,(%eax) 80104057: 8b 45 0c mov 0xc(%ebp),%eax 8010405a: 8b 10 mov (%eax),%edx 8010405c: 8b 45 08 mov 0x8(%ebp),%eax 8010405f: 89 10 mov %edx,(%eax) if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0) 80104061: e8 2d cf ff ff call 80100f93 <filealloc> 80104066: 89 c2 mov %eax,%edx 80104068: 8b 45 08 mov 0x8(%ebp),%eax 8010406b: 89 10 mov %edx,(%eax) 8010406d: 8b 45 08 mov 0x8(%ebp),%eax 80104070: 8b 00 mov (%eax),%eax 80104072: 85 c0 test %eax,%eax 80104074: 0f 84 cb 00 00 00 je 80104145 <pipealloc+0x104> 8010407a: e8 14 cf ff ff call 80100f93 <filealloc> 8010407f: 89 c2 mov %eax,%edx 80104081: 8b 45 0c mov 0xc(%ebp),%eax 80104084: 89 10 mov %edx,(%eax) 80104086: 8b 45 0c mov 0xc(%ebp),%eax 80104089: 8b 00 mov (%eax),%eax 8010408b: 85 c0 test %eax,%eax 8010408d: 0f 84 b2 00 00 00 je 80104145 <pipealloc+0x104> goto bad; if((p = (struct pipe*)kalloc()) == 0) 80104093: e8 ce eb ff ff call 80102c66 <kalloc> 80104098: 89 45 f4 mov %eax,-0xc(%ebp) 8010409b: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010409f: 0f 84 9f 00 00 00 je 80104144 <pipealloc+0x103> goto bad; p->readopen = 1; 801040a5: 8b 45 f4 mov -0xc(%ebp),%eax 801040a8: c7 80 3c 02 00 00 01 movl $0x1,0x23c(%eax) 801040af: 00 00 00 p->writeopen = 1; 801040b2: 8b 45 f4 mov -0xc(%ebp),%eax 801040b5: c7 80 40 02 00 00 01 movl $0x1,0x240(%eax) 801040bc: 00 00 00 p->nwrite = 0; 801040bf: 8b 45 f4 mov -0xc(%ebp),%eax 801040c2: c7 80 38 02 00 00 00 movl $0x0,0x238(%eax) 801040c9: 00 00 00 p->nread = 0; 801040cc: 8b 45 f4 mov -0xc(%ebp),%eax 801040cf: c7 80 34 02 00 00 00 movl $0x0,0x234(%eax) 801040d6: 00 00 00 initlock(&p->lock, "pipe"); 801040d9: 8b 45 f4 mov -0xc(%ebp),%eax 801040dc: 83 ec 08 sub $0x8,%esp 801040df: 68 34 8d 10 80 push $0x80108d34 801040e4: 50 push %eax 801040e5: e8 bf 13 00 00 call 801054a9 <initlock> 801040ea: 83 c4 10 add $0x10,%esp (*f0)->type = FD_PIPE; 801040ed: 8b 45 08 mov 0x8(%ebp),%eax 801040f0: 8b 00 mov (%eax),%eax 801040f2: c7 00 01 00 00 00 movl $0x1,(%eax) (*f0)->readable = 1; 801040f8: 8b 45 08 mov 0x8(%ebp),%eax 801040fb: 8b 00 mov (%eax),%eax 801040fd: c6 40 08 01 movb $0x1,0x8(%eax) (*f0)->writable = 0; 80104101: 8b 45 08 mov 0x8(%ebp),%eax 80104104: 8b 00 mov (%eax),%eax 80104106: c6 40 09 00 movb $0x0,0x9(%eax) (*f0)->pipe = p; 8010410a: 8b 45 08 mov 0x8(%ebp),%eax 8010410d: 8b 00 mov (%eax),%eax 8010410f: 8b 55 f4 mov -0xc(%ebp),%edx 80104112: 89 50 0c mov %edx,0xc(%eax) (*f1)->type = FD_PIPE; 80104115: 8b 45 0c mov 0xc(%ebp),%eax 80104118: 8b 00 mov (%eax),%eax 8010411a: c7 00 01 00 00 00 movl $0x1,(%eax) (*f1)->readable = 0; 80104120: 8b 45 0c mov 0xc(%ebp),%eax 80104123: 8b 00 mov (%eax),%eax 80104125: c6 40 08 00 movb $0x0,0x8(%eax) (*f1)->writable = 1; 80104129: 8b 45 0c mov 0xc(%ebp),%eax 8010412c: 8b 00 mov (%eax),%eax 8010412e: c6 40 09 01 movb $0x1,0x9(%eax) (*f1)->pipe = p; 80104132: 8b 45 0c mov 0xc(%ebp),%eax 80104135: 8b 00 mov (%eax),%eax 80104137: 8b 55 f4 mov -0xc(%ebp),%edx 8010413a: 89 50 0c mov %edx,0xc(%eax) return 0; 8010413d: b8 00 00 00 00 mov $0x0,%eax 80104142: eb 4e jmp 80104192 <pipealloc+0x151> p = 0; *f0 = *f1 = 0; if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0) goto bad; if((p = (struct pipe*)kalloc()) == 0) goto bad; 80104144: 90 nop (*f1)->pipe = p; return 0; //PAGEBREAK: 20 bad: if(p) 80104145: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80104149: 74 0e je 80104159 <pipealloc+0x118> kfree((char*)p); 8010414b: 83 ec 0c sub $0xc,%esp 8010414e: ff 75 f4 pushl -0xc(%ebp) 80104151: e8 73 ea ff ff call 80102bc9 <kfree> 80104156: 83 c4 10 add $0x10,%esp if(*f0) 80104159: 8b 45 08 mov 0x8(%ebp),%eax 8010415c: 8b 00 mov (%eax),%eax 8010415e: 85 c0 test %eax,%eax 80104160: 74 11 je 80104173 <pipealloc+0x132> fileclose(*f0); 80104162: 8b 45 08 mov 0x8(%ebp),%eax 80104165: 8b 00 mov (%eax),%eax 80104167: 83 ec 0c sub $0xc,%esp 8010416a: 50 push %eax 8010416b: e8 e1 ce ff ff call 80101051 <fileclose> 80104170: 83 c4 10 add $0x10,%esp if(*f1) 80104173: 8b 45 0c mov 0xc(%ebp),%eax 80104176: 8b 00 mov (%eax),%eax 80104178: 85 c0 test %eax,%eax 8010417a: 74 11 je 8010418d <pipealloc+0x14c> fileclose(*f1); 8010417c: 8b 45 0c mov 0xc(%ebp),%eax 8010417f: 8b 00 mov (%eax),%eax 80104181: 83 ec 0c sub $0xc,%esp 80104184: 50 push %eax 80104185: e8 c7 ce ff ff call 80101051 <fileclose> 8010418a: 83 c4 10 add $0x10,%esp return -1; 8010418d: b8 ff ff ff ff mov $0xffffffff,%eax } 80104192: c9 leave 80104193: c3 ret 80104194 <pipeclose>: void pipeclose(struct pipe *p, int writable) { 80104194: 55 push %ebp 80104195: 89 e5 mov %esp,%ebp 80104197: 83 ec 08 sub $0x8,%esp acquire(&p->lock); 8010419a: 8b 45 08 mov 0x8(%ebp),%eax 8010419d: 83 ec 0c sub $0xc,%esp 801041a0: 50 push %eax 801041a1: e8 25 13 00 00 call 801054cb <acquire> 801041a6: 83 c4 10 add $0x10,%esp if(writable){ 801041a9: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 801041ad: 74 23 je 801041d2 <pipeclose+0x3e> p->writeopen = 0; 801041af: 8b 45 08 mov 0x8(%ebp),%eax 801041b2: c7 80 40 02 00 00 00 movl $0x0,0x240(%eax) 801041b9: 00 00 00 wakeup(&p->nread); 801041bc: 8b 45 08 mov 0x8(%ebp),%eax 801041bf: 05 34 02 00 00 add $0x234,%eax 801041c4: 83 ec 0c sub $0xc,%esp 801041c7: 50 push %eax 801041c8: e8 ea 10 00 00 call 801052b7 <wakeup> 801041cd: 83 c4 10 add $0x10,%esp 801041d0: eb 21 jmp 801041f3 <pipeclose+0x5f> } else { p->readopen = 0; 801041d2: 8b 45 08 mov 0x8(%ebp),%eax 801041d5: c7 80 3c 02 00 00 00 movl $0x0,0x23c(%eax) 801041dc: 00 00 00 wakeup(&p->nwrite); 801041df: 8b 45 08 mov 0x8(%ebp),%eax 801041e2: 05 38 02 00 00 add $0x238,%eax 801041e7: 83 ec 0c sub $0xc,%esp 801041ea: 50 push %eax 801041eb: e8 c7 10 00 00 call 801052b7 <wakeup> 801041f0: 83 c4 10 add $0x10,%esp } if(p->readopen == 0 && p->writeopen == 0){ 801041f3: 8b 45 08 mov 0x8(%ebp),%eax 801041f6: 8b 80 3c 02 00 00 mov 0x23c(%eax),%eax 801041fc: 85 c0 test %eax,%eax 801041fe: 75 2c jne 8010422c <pipeclose+0x98> 80104200: 8b 45 08 mov 0x8(%ebp),%eax 80104203: 8b 80 40 02 00 00 mov 0x240(%eax),%eax 80104209: 85 c0 test %eax,%eax 8010420b: 75 1f jne 8010422c <pipeclose+0x98> release(&p->lock); 8010420d: 8b 45 08 mov 0x8(%ebp),%eax 80104210: 83 ec 0c sub $0xc,%esp 80104213: 50 push %eax 80104214: e8 19 13 00 00 call 80105532 <release> 80104219: 83 c4 10 add $0x10,%esp kfree((char*)p); 8010421c: 83 ec 0c sub $0xc,%esp 8010421f: ff 75 08 pushl 0x8(%ebp) 80104222: e8 a2 e9 ff ff call 80102bc9 <kfree> 80104227: 83 c4 10 add $0x10,%esp 8010422a: eb 0f jmp 8010423b <pipeclose+0xa7> } else release(&p->lock); 8010422c: 8b 45 08 mov 0x8(%ebp),%eax 8010422f: 83 ec 0c sub $0xc,%esp 80104232: 50 push %eax 80104233: e8 fa 12 00 00 call 80105532 <release> 80104238: 83 c4 10 add $0x10,%esp } 8010423b: 90 nop 8010423c: c9 leave 8010423d: c3 ret 8010423e <pipewrite>: //PAGEBREAK: 40 int pipewrite(struct pipe *p, char *addr, int n) { 8010423e: 55 push %ebp 8010423f: 89 e5 mov %esp,%ebp 80104241: 83 ec 18 sub $0x18,%esp int i; acquire(&p->lock); 80104244: 8b 45 08 mov 0x8(%ebp),%eax 80104247: 83 ec 0c sub $0xc,%esp 8010424a: 50 push %eax 8010424b: e8 7b 12 00 00 call 801054cb <acquire> 80104250: 83 c4 10 add $0x10,%esp for(i = 0; i < n; i++){ 80104253: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 8010425a: e9 ad 00 00 00 jmp 8010430c <pipewrite+0xce> while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full if(p->readopen == 0 || proc->killed){ 8010425f: 8b 45 08 mov 0x8(%ebp),%eax 80104262: 8b 80 3c 02 00 00 mov 0x23c(%eax),%eax 80104268: 85 c0 test %eax,%eax 8010426a: 74 0d je 80104279 <pipewrite+0x3b> 8010426c: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104272: 8b 40 24 mov 0x24(%eax),%eax 80104275: 85 c0 test %eax,%eax 80104277: 74 19 je 80104292 <pipewrite+0x54> release(&p->lock); 80104279: 8b 45 08 mov 0x8(%ebp),%eax 8010427c: 83 ec 0c sub $0xc,%esp 8010427f: 50 push %eax 80104280: e8 ad 12 00 00 call 80105532 <release> 80104285: 83 c4 10 add $0x10,%esp return -1; 80104288: b8 ff ff ff ff mov $0xffffffff,%eax 8010428d: e9 a8 00 00 00 jmp 8010433a <pipewrite+0xfc> } wakeup(&p->nread); 80104292: 8b 45 08 mov 0x8(%ebp),%eax 80104295: 05 34 02 00 00 add $0x234,%eax 8010429a: 83 ec 0c sub $0xc,%esp 8010429d: 50 push %eax 8010429e: e8 14 10 00 00 call 801052b7 <wakeup> 801042a3: 83 c4 10 add $0x10,%esp sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep 801042a6: 8b 45 08 mov 0x8(%ebp),%eax 801042a9: 8b 55 08 mov 0x8(%ebp),%edx 801042ac: 81 c2 38 02 00 00 add $0x238,%edx 801042b2: 83 ec 08 sub $0x8,%esp 801042b5: 50 push %eax 801042b6: 52 push %edx 801042b7: e8 0d 0f 00 00 call 801051c9 <sleep> 801042bc: 83 c4 10 add $0x10,%esp { int i; acquire(&p->lock); for(i = 0; i < n; i++){ while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full 801042bf: 8b 45 08 mov 0x8(%ebp),%eax 801042c2: 8b 90 38 02 00 00 mov 0x238(%eax),%edx 801042c8: 8b 45 08 mov 0x8(%ebp),%eax 801042cb: 8b 80 34 02 00 00 mov 0x234(%eax),%eax 801042d1: 05 00 02 00 00 add $0x200,%eax 801042d6: 39 c2 cmp %eax,%edx 801042d8: 74 85 je 8010425f <pipewrite+0x21> return -1; } wakeup(&p->nread); sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep } p->data[p->nwrite++ % PIPESIZE] = addr[i]; 801042da: 8b 45 08 mov 0x8(%ebp),%eax 801042dd: 8b 80 38 02 00 00 mov 0x238(%eax),%eax 801042e3: 8d 48 01 lea 0x1(%eax),%ecx 801042e6: 8b 55 08 mov 0x8(%ebp),%edx 801042e9: 89 8a 38 02 00 00 mov %ecx,0x238(%edx) 801042ef: 25 ff 01 00 00 and $0x1ff,%eax 801042f4: 89 c1 mov %eax,%ecx 801042f6: 8b 55 f4 mov -0xc(%ebp),%edx 801042f9: 8b 45 0c mov 0xc(%ebp),%eax 801042fc: 01 d0 add %edx,%eax 801042fe: 0f b6 10 movzbl (%eax),%edx 80104301: 8b 45 08 mov 0x8(%ebp),%eax 80104304: 88 54 08 34 mov %dl,0x34(%eax,%ecx,1) pipewrite(struct pipe *p, char *addr, int n) { int i; acquire(&p->lock); for(i = 0; i < n; i++){ 80104308: 83 45 f4 01 addl $0x1,-0xc(%ebp) 8010430c: 8b 45 f4 mov -0xc(%ebp),%eax 8010430f: 3b 45 10 cmp 0x10(%ebp),%eax 80104312: 7c ab jl 801042bf <pipewrite+0x81> wakeup(&p->nread); sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep } p->data[p->nwrite++ % PIPESIZE] = addr[i]; } wakeup(&p->nread); //DOC: pipewrite-wakeup1 80104314: 8b 45 08 mov 0x8(%ebp),%eax 80104317: 05 34 02 00 00 add $0x234,%eax 8010431c: 83 ec 0c sub $0xc,%esp 8010431f: 50 push %eax 80104320: e8 92 0f 00 00 call 801052b7 <wakeup> 80104325: 83 c4 10 add $0x10,%esp release(&p->lock); 80104328: 8b 45 08 mov 0x8(%ebp),%eax 8010432b: 83 ec 0c sub $0xc,%esp 8010432e: 50 push %eax 8010432f: e8 fe 11 00 00 call 80105532 <release> 80104334: 83 c4 10 add $0x10,%esp return n; 80104337: 8b 45 10 mov 0x10(%ebp),%eax } 8010433a: c9 leave 8010433b: c3 ret 8010433c <piperead>: int piperead(struct pipe *p, char *addr, int n) { 8010433c: 55 push %ebp 8010433d: 89 e5 mov %esp,%ebp 8010433f: 53 push %ebx 80104340: 83 ec 14 sub $0x14,%esp int i; acquire(&p->lock); 80104343: 8b 45 08 mov 0x8(%ebp),%eax 80104346: 83 ec 0c sub $0xc,%esp 80104349: 50 push %eax 8010434a: e8 7c 11 00 00 call 801054cb <acquire> 8010434f: 83 c4 10 add $0x10,%esp while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty 80104352: eb 3f jmp 80104393 <piperead+0x57> if(proc->killed){ 80104354: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010435a: 8b 40 24 mov 0x24(%eax),%eax 8010435d: 85 c0 test %eax,%eax 8010435f: 74 19 je 8010437a <piperead+0x3e> release(&p->lock); 80104361: 8b 45 08 mov 0x8(%ebp),%eax 80104364: 83 ec 0c sub $0xc,%esp 80104367: 50 push %eax 80104368: e8 c5 11 00 00 call 80105532 <release> 8010436d: 83 c4 10 add $0x10,%esp return -1; 80104370: b8 ff ff ff ff mov $0xffffffff,%eax 80104375: e9 bf 00 00 00 jmp 80104439 <piperead+0xfd> } sleep(&p->nread, &p->lock); //DOC: piperead-sleep 8010437a: 8b 45 08 mov 0x8(%ebp),%eax 8010437d: 8b 55 08 mov 0x8(%ebp),%edx 80104380: 81 c2 34 02 00 00 add $0x234,%edx 80104386: 83 ec 08 sub $0x8,%esp 80104389: 50 push %eax 8010438a: 52 push %edx 8010438b: e8 39 0e 00 00 call 801051c9 <sleep> 80104390: 83 c4 10 add $0x10,%esp piperead(struct pipe *p, char *addr, int n) { int i; acquire(&p->lock); while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty 80104393: 8b 45 08 mov 0x8(%ebp),%eax 80104396: 8b 90 34 02 00 00 mov 0x234(%eax),%edx 8010439c: 8b 45 08 mov 0x8(%ebp),%eax 8010439f: 8b 80 38 02 00 00 mov 0x238(%eax),%eax 801043a5: 39 c2 cmp %eax,%edx 801043a7: 75 0d jne 801043b6 <piperead+0x7a> 801043a9: 8b 45 08 mov 0x8(%ebp),%eax 801043ac: 8b 80 40 02 00 00 mov 0x240(%eax),%eax 801043b2: 85 c0 test %eax,%eax 801043b4: 75 9e jne 80104354 <piperead+0x18> release(&p->lock); return -1; } sleep(&p->nread, &p->lock); //DOC: piperead-sleep } for(i = 0; i < n; i++){ //DOC: piperead-copy 801043b6: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801043bd: eb 49 jmp 80104408 <piperead+0xcc> if(p->nread == p->nwrite) 801043bf: 8b 45 08 mov 0x8(%ebp),%eax 801043c2: 8b 90 34 02 00 00 mov 0x234(%eax),%edx 801043c8: 8b 45 08 mov 0x8(%ebp),%eax 801043cb: 8b 80 38 02 00 00 mov 0x238(%eax),%eax 801043d1: 39 c2 cmp %eax,%edx 801043d3: 74 3d je 80104412 <piperead+0xd6> break; addr[i] = p->data[p->nread++ % PIPESIZE]; 801043d5: 8b 55 f4 mov -0xc(%ebp),%edx 801043d8: 8b 45 0c mov 0xc(%ebp),%eax 801043db: 8d 1c 02 lea (%edx,%eax,1),%ebx 801043de: 8b 45 08 mov 0x8(%ebp),%eax 801043e1: 8b 80 34 02 00 00 mov 0x234(%eax),%eax 801043e7: 8d 48 01 lea 0x1(%eax),%ecx 801043ea: 8b 55 08 mov 0x8(%ebp),%edx 801043ed: 89 8a 34 02 00 00 mov %ecx,0x234(%edx) 801043f3: 25 ff 01 00 00 and $0x1ff,%eax 801043f8: 89 c2 mov %eax,%edx 801043fa: 8b 45 08 mov 0x8(%ebp),%eax 801043fd: 0f b6 44 10 34 movzbl 0x34(%eax,%edx,1),%eax 80104402: 88 03 mov %al,(%ebx) release(&p->lock); return -1; } sleep(&p->nread, &p->lock); //DOC: piperead-sleep } for(i = 0; i < n; i++){ //DOC: piperead-copy 80104404: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80104408: 8b 45 f4 mov -0xc(%ebp),%eax 8010440b: 3b 45 10 cmp 0x10(%ebp),%eax 8010440e: 7c af jl 801043bf <piperead+0x83> 80104410: eb 01 jmp 80104413 <piperead+0xd7> if(p->nread == p->nwrite) break; 80104412: 90 nop addr[i] = p->data[p->nread++ % PIPESIZE]; } wakeup(&p->nwrite); //DOC: piperead-wakeup 80104413: 8b 45 08 mov 0x8(%ebp),%eax 80104416: 05 38 02 00 00 add $0x238,%eax 8010441b: 83 ec 0c sub $0xc,%esp 8010441e: 50 push %eax 8010441f: e8 93 0e 00 00 call 801052b7 <wakeup> 80104424: 83 c4 10 add $0x10,%esp release(&p->lock); 80104427: 8b 45 08 mov 0x8(%ebp),%eax 8010442a: 83 ec 0c sub $0xc,%esp 8010442d: 50 push %eax 8010442e: e8 ff 10 00 00 call 80105532 <release> 80104433: 83 c4 10 add $0x10,%esp return i; 80104436: 8b 45 f4 mov -0xc(%ebp),%eax } 80104439: 8b 5d fc mov -0x4(%ebp),%ebx 8010443c: c9 leave 8010443d: c3 ret 8010443e <readeflags>: asm volatile("ltr %0" : : "r" (sel)); } static inline uint readeflags(void) { 8010443e: 55 push %ebp 8010443f: 89 e5 mov %esp,%ebp 80104441: 83 ec 10 sub $0x10,%esp uint eflags; asm volatile("pushfl; popl %0" : "=r" (eflags)); 80104444: 9c pushf 80104445: 58 pop %eax 80104446: 89 45 fc mov %eax,-0x4(%ebp) return eflags; 80104449: 8b 45 fc mov -0x4(%ebp),%eax } 8010444c: c9 leave 8010444d: c3 ret 8010444e <sti>: asm volatile("cli"); } static inline void sti(void) { 8010444e: 55 push %ebp 8010444f: 89 e5 mov %esp,%ebp asm volatile("sti"); 80104451: fb sti } 80104452: 90 nop 80104453: 5d pop %ebp 80104454: c3 ret 80104455 <pinit>: static void wakeup1(void *chan); void pinit(void) { 80104455: 55 push %ebp 80104456: 89 e5 mov %esp,%ebp 80104458: 83 ec 08 sub $0x8,%esp initlock(&ptable.lock, "ptable"); 8010445b: 83 ec 08 sub $0x8,%esp 8010445e: 68 3c 8d 10 80 push $0x80108d3c 80104463: 68 80 39 11 80 push $0x80113980 80104468: e8 3c 10 00 00 call 801054a9 <initlock> 8010446d: 83 c4 10 add $0x10,%esp } 80104470: 90 nop 80104471: c9 leave 80104472: c3 ret 80104473 <printptable>: void printptable(){ 80104473: 55 push %ebp 80104474: 89 e5 mov %esp,%ebp 80104476: 83 ec 08 sub $0x8,%esp cprintf("fq: %d, aq: %d, eq: %d \n", ptable.ftop, ptable.atop, ptable.etop); 80104479: 8b 0d bc 5d 11 80 mov 0x80115dbc,%ecx 8010447f: 8b 15 b8 5d 11 80 mov 0x80115db8,%edx 80104485: a1 b4 5d 11 80 mov 0x80115db4,%eax 8010448a: 51 push %ecx 8010448b: 52 push %edx 8010448c: 50 push %eax 8010448d: 68 43 8d 10 80 push $0x80108d43 80104492: e8 2f bf ff ff call 801003c6 <cprintf> 80104497: 83 c4 10 add $0x10,%esp } 8010449a: 90 nop 8010449b: c9 leave 8010449c: c3 ret 8010449d <allocproc>: // If found, change state to EMBRYO and initialize // state required to run in the kernel. // Otherwise return 0. static struct proc* allocproc(void) { 8010449d: 55 push %ebp 8010449e: 89 e5 mov %esp,%ebp 801044a0: 83 ec 18 sub $0x18,%esp struct proc *p; char *sp; acquire(&ptable.lock); 801044a3: 83 ec 0c sub $0xc,%esp 801044a6: 68 80 39 11 80 push $0x80113980 801044ab: e8 1b 10 00 00 call 801054cb <acquire> 801044b0: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 801044b3: c7 45 f4 b4 39 11 80 movl $0x801139b4,-0xc(%ebp) 801044ba: eb 11 jmp 801044cd <allocproc+0x30> if(p->state == UNUSED) 801044bc: 8b 45 f4 mov -0xc(%ebp),%eax 801044bf: 8b 40 0c mov 0xc(%eax),%eax 801044c2: 85 c0 test %eax,%eax 801044c4: 74 2a je 801044f0 <allocproc+0x53> { struct proc *p; char *sp; acquire(&ptable.lock); for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 801044c6: 81 45 f4 84 00 00 00 addl $0x84,-0xc(%ebp) 801044cd: 81 7d f4 b4 5a 11 80 cmpl $0x80115ab4,-0xc(%ebp) 801044d4: 72 e6 jb 801044bc <allocproc+0x1f> if(p->state == UNUSED) goto found; release(&ptable.lock); 801044d6: 83 ec 0c sub $0xc,%esp 801044d9: 68 80 39 11 80 push $0x80113980 801044de: e8 4f 10 00 00 call 80105532 <release> 801044e3: 83 c4 10 add $0x10,%esp return 0; 801044e6: b8 00 00 00 00 mov $0x0,%eax 801044eb: e9 fa 00 00 00 jmp 801045ea <allocproc+0x14d> char *sp; acquire(&ptable.lock); for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) if(p->state == UNUSED) goto found; 801044f0: 90 nop release(&ptable.lock); return 0; found: p->state = EMBRYO; 801044f1: 8b 45 f4 mov -0xc(%ebp),%eax 801044f4: c7 40 0c 01 00 00 00 movl $0x1,0xc(%eax) p->pid = nextpid++; 801044fb: a1 04 c0 10 80 mov 0x8010c004,%eax 80104500: 8d 50 01 lea 0x1(%eax),%edx 80104503: 89 15 04 c0 10 80 mov %edx,0x8010c004 80104509: 8b 55 f4 mov -0xc(%ebp),%edx 8010450c: 89 42 10 mov %eax,0x10(%edx) p->queuetype = 2; 8010450f: 8b 45 f4 mov -0xc(%ebp),%eax 80104512: c7 40 7c 02 00 00 00 movl $0x2,0x7c(%eax) p->quantumsize = 0; 80104519: 8b 45 f4 mov -0xc(%ebp),%eax 8010451c: c7 80 80 00 00 00 00 movl $0x0,0x80(%eax) 80104523: 00 00 00 //cprintf("New proc, fqsize: %d, name: %s", fq.size,p->name); //fq.proc[fq.size] = p; //fq.size++; ptable.fq[ptable.ftop] = p; 80104526: a1 b4 5d 11 80 mov 0x80115db4,%eax 8010452b: 8d 90 4c 08 00 00 lea 0x84c(%eax),%edx 80104531: 8b 45 f4 mov -0xc(%ebp),%eax 80104534: 89 04 95 84 39 11 80 mov %eax,-0x7feec67c(,%edx,4) ptable.ftop++; 8010453b: a1 b4 5d 11 80 mov 0x80115db4,%eax 80104540: 83 c0 01 add $0x1,%eax 80104543: a3 b4 5d 11 80 mov %eax,0x80115db4 ptable.numRan++; 80104548: a1 c0 5d 11 80 mov 0x80115dc0,%eax 8010454d: 83 c0 01 add $0x1,%eax 80104550: a3 c0 5d 11 80 mov %eax,0x80115dc0 release(&ptable.lock); 80104555: 83 ec 0c sub $0xc,%esp 80104558: 68 80 39 11 80 push $0x80113980 8010455d: e8 d0 0f 00 00 call 80105532 <release> 80104562: 83 c4 10 add $0x10,%esp // Allocate kernel stack. if((p->kstack = kalloc()) == 0){ 80104565: e8 fc e6 ff ff call 80102c66 <kalloc> 8010456a: 89 c2 mov %eax,%edx 8010456c: 8b 45 f4 mov -0xc(%ebp),%eax 8010456f: 89 50 08 mov %edx,0x8(%eax) 80104572: 8b 45 f4 mov -0xc(%ebp),%eax 80104575: 8b 40 08 mov 0x8(%eax),%eax 80104578: 85 c0 test %eax,%eax 8010457a: 75 11 jne 8010458d <allocproc+0xf0> p->state = UNUSED; 8010457c: 8b 45 f4 mov -0xc(%ebp),%eax 8010457f: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) return 0; 80104586: b8 00 00 00 00 mov $0x0,%eax 8010458b: eb 5d jmp 801045ea <allocproc+0x14d> } // cprintf("Here stacked"); sp = p->kstack + KSTACKSIZE; 8010458d: 8b 45 f4 mov -0xc(%ebp),%eax 80104590: 8b 40 08 mov 0x8(%eax),%eax 80104593: 05 00 10 00 00 add $0x1000,%eax 80104598: 89 45 f0 mov %eax,-0x10(%ebp) // Leave room for trap frame. sp -= sizeof *p->tf; 8010459b: 83 6d f0 4c subl $0x4c,-0x10(%ebp) p->tf = (struct trapframe*)sp; 8010459f: 8b 45 f4 mov -0xc(%ebp),%eax 801045a2: 8b 55 f0 mov -0x10(%ebp),%edx 801045a5: 89 50 18 mov %edx,0x18(%eax) // Set up new context to start executing at forkret, // which returns to trapret. sp -= 4; 801045a8: 83 6d f0 04 subl $0x4,-0x10(%ebp) *(uint*)sp = (uint)trapret; 801045ac: ba 08 6b 10 80 mov $0x80106b08,%edx 801045b1: 8b 45 f0 mov -0x10(%ebp),%eax 801045b4: 89 10 mov %edx,(%eax) sp -= sizeof *p->context; 801045b6: 83 6d f0 14 subl $0x14,-0x10(%ebp) p->context = (struct context*)sp; 801045ba: 8b 45 f4 mov -0xc(%ebp),%eax 801045bd: 8b 55 f0 mov -0x10(%ebp),%edx 801045c0: 89 50 1c mov %edx,0x1c(%eax) memset(p->context, 0, sizeof *p->context); 801045c3: 8b 45 f4 mov -0xc(%ebp),%eax 801045c6: 8b 40 1c mov 0x1c(%eax),%eax 801045c9: 83 ec 04 sub $0x4,%esp 801045cc: 6a 14 push $0x14 801045ce: 6a 00 push $0x0 801045d0: 50 push %eax 801045d1: e8 58 11 00 00 call 8010572e <memset> 801045d6: 83 c4 10 add $0x10,%esp p->context->eip = (uint)forkret; 801045d9: 8b 45 f4 mov -0xc(%ebp),%eax 801045dc: 8b 40 1c mov 0x1c(%eax),%eax 801045df: ba 83 51 10 80 mov $0x80105183,%edx 801045e4: 89 50 10 mov %edx,0x10(%eax) return p; 801045e7: 8b 45 f4 mov -0xc(%ebp),%eax } 801045ea: c9 leave 801045eb: c3 ret 801045ec <userinit>: //PAGEBREAK: 32 // Set up first user process. void userinit(void) { 801045ec: 55 push %ebp 801045ed: 89 e5 mov %esp,%ebp 801045ef: 83 ec 18 sub $0x18,%esp struct proc *p; extern char _binary_initcode_start[], _binary_initcode_size[]; p = allocproc(); 801045f2: e8 a6 fe ff ff call 8010449d <allocproc> 801045f7: 89 45 f4 mov %eax,-0xc(%ebp) initproc = p; 801045fa: 8b 45 f4 mov -0xc(%ebp),%eax 801045fd: a3 48 c6 10 80 mov %eax,0x8010c648 if((p->pgdir = setupkvm()) == 0) 80104602: e8 c6 3b 00 00 call 801081cd <setupkvm> 80104607: 89 c2 mov %eax,%edx 80104609: 8b 45 f4 mov -0xc(%ebp),%eax 8010460c: 89 50 04 mov %edx,0x4(%eax) 8010460f: 8b 45 f4 mov -0xc(%ebp),%eax 80104612: 8b 40 04 mov 0x4(%eax),%eax 80104615: 85 c0 test %eax,%eax 80104617: 75 0d jne 80104626 <userinit+0x3a> panic("userinit: out of memory?"); 80104619: 83 ec 0c sub $0xc,%esp 8010461c: 68 5d 8d 10 80 push $0x80108d5d 80104621: e8 40 bf ff ff call 80100566 <panic> inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size); 80104626: ba 2c 00 00 00 mov $0x2c,%edx 8010462b: 8b 45 f4 mov -0xc(%ebp),%eax 8010462e: 8b 40 04 mov 0x4(%eax),%eax 80104631: 83 ec 04 sub $0x4,%esp 80104634: 52 push %edx 80104635: 68 e0 c4 10 80 push $0x8010c4e0 8010463a: 50 push %eax 8010463b: e8 e7 3d 00 00 call 80108427 <inituvm> 80104640: 83 c4 10 add $0x10,%esp p->sz = PGSIZE; 80104643: 8b 45 f4 mov -0xc(%ebp),%eax 80104646: c7 00 00 10 00 00 movl $0x1000,(%eax) memset(p->tf, 0, sizeof(*p->tf)); 8010464c: 8b 45 f4 mov -0xc(%ebp),%eax 8010464f: 8b 40 18 mov 0x18(%eax),%eax 80104652: 83 ec 04 sub $0x4,%esp 80104655: 6a 4c push $0x4c 80104657: 6a 00 push $0x0 80104659: 50 push %eax 8010465a: e8 cf 10 00 00 call 8010572e <memset> 8010465f: 83 c4 10 add $0x10,%esp p->tf->cs = (SEG_UCODE << 3) | DPL_USER; 80104662: 8b 45 f4 mov -0xc(%ebp),%eax 80104665: 8b 40 18 mov 0x18(%eax),%eax 80104668: 66 c7 40 3c 23 00 movw $0x23,0x3c(%eax) p->tf->ds = (SEG_UDATA << 3) | DPL_USER; 8010466e: 8b 45 f4 mov -0xc(%ebp),%eax 80104671: 8b 40 18 mov 0x18(%eax),%eax 80104674: 66 c7 40 2c 2b 00 movw $0x2b,0x2c(%eax) p->tf->es = p->tf->ds; 8010467a: 8b 45 f4 mov -0xc(%ebp),%eax 8010467d: 8b 40 18 mov 0x18(%eax),%eax 80104680: 8b 55 f4 mov -0xc(%ebp),%edx 80104683: 8b 52 18 mov 0x18(%edx),%edx 80104686: 0f b7 52 2c movzwl 0x2c(%edx),%edx 8010468a: 66 89 50 28 mov %dx,0x28(%eax) p->tf->ss = p->tf->ds; 8010468e: 8b 45 f4 mov -0xc(%ebp),%eax 80104691: 8b 40 18 mov 0x18(%eax),%eax 80104694: 8b 55 f4 mov -0xc(%ebp),%edx 80104697: 8b 52 18 mov 0x18(%edx),%edx 8010469a: 0f b7 52 2c movzwl 0x2c(%edx),%edx 8010469e: 66 89 50 48 mov %dx,0x48(%eax) p->tf->eflags = FL_IF; 801046a2: 8b 45 f4 mov -0xc(%ebp),%eax 801046a5: 8b 40 18 mov 0x18(%eax),%eax 801046a8: c7 40 40 00 02 00 00 movl $0x200,0x40(%eax) p->tf->esp = PGSIZE; 801046af: 8b 45 f4 mov -0xc(%ebp),%eax 801046b2: 8b 40 18 mov 0x18(%eax),%eax 801046b5: c7 40 44 00 10 00 00 movl $0x1000,0x44(%eax) p->tf->eip = 0; // beginning of initcode.S 801046bc: 8b 45 f4 mov -0xc(%ebp),%eax 801046bf: 8b 40 18 mov 0x18(%eax),%eax 801046c2: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) safestrcpy(p->name, "initcode", sizeof(p->name)); 801046c9: 8b 45 f4 mov -0xc(%ebp),%eax 801046cc: 83 c0 6c add $0x6c,%eax 801046cf: 83 ec 04 sub $0x4,%esp 801046d2: 6a 10 push $0x10 801046d4: 68 76 8d 10 80 push $0x80108d76 801046d9: 50 push %eax 801046da: e8 52 12 00 00 call 80105931 <safestrcpy> 801046df: 83 c4 10 add $0x10,%esp p->cwd = namei("/"); 801046e2: 83 ec 0c sub $0xc,%esp 801046e5: 68 7f 8d 10 80 push $0x80108d7f 801046ea: e8 39 de ff ff call 80102528 <namei> 801046ef: 83 c4 10 add $0x10,%esp 801046f2: 89 c2 mov %eax,%edx 801046f4: 8b 45 f4 mov -0xc(%ebp),%eax 801046f7: 89 50 68 mov %edx,0x68(%eax) p->state = RUNNABLE; 801046fa: 8b 45 f4 mov -0xc(%ebp),%eax 801046fd: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) //printptable(); } 80104704: 90 nop 80104705: c9 leave 80104706: c3 ret 80104707 <growproc>: // Grow current process's memory by n bytes. // Return 0 on success, -1 on failure. int growproc(int n) { 80104707: 55 push %ebp 80104708: 89 e5 mov %esp,%ebp 8010470a: 83 ec 18 sub $0x18,%esp uint sz; sz = proc->sz; 8010470d: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104713: 8b 00 mov (%eax),%eax 80104715: 89 45 f4 mov %eax,-0xc(%ebp) if(n > 0){ 80104718: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 8010471c: 7e 31 jle 8010474f <growproc+0x48> if((sz = allocuvm(proc->pgdir, sz, sz + n)) == 0) 8010471e: 8b 55 08 mov 0x8(%ebp),%edx 80104721: 8b 45 f4 mov -0xc(%ebp),%eax 80104724: 01 c2 add %eax,%edx 80104726: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010472c: 8b 40 04 mov 0x4(%eax),%eax 8010472f: 83 ec 04 sub $0x4,%esp 80104732: 52 push %edx 80104733: ff 75 f4 pushl -0xc(%ebp) 80104736: 50 push %eax 80104737: e8 38 3e 00 00 call 80108574 <allocuvm> 8010473c: 83 c4 10 add $0x10,%esp 8010473f: 89 45 f4 mov %eax,-0xc(%ebp) 80104742: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80104746: 75 3e jne 80104786 <growproc+0x7f> return -1; 80104748: b8 ff ff ff ff mov $0xffffffff,%eax 8010474d: eb 59 jmp 801047a8 <growproc+0xa1> } else if(n < 0){ 8010474f: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80104753: 79 31 jns 80104786 <growproc+0x7f> if((sz = deallocuvm(proc->pgdir, sz, sz + n)) == 0) 80104755: 8b 55 08 mov 0x8(%ebp),%edx 80104758: 8b 45 f4 mov -0xc(%ebp),%eax 8010475b: 01 c2 add %eax,%edx 8010475d: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104763: 8b 40 04 mov 0x4(%eax),%eax 80104766: 83 ec 04 sub $0x4,%esp 80104769: 52 push %edx 8010476a: ff 75 f4 pushl -0xc(%ebp) 8010476d: 50 push %eax 8010476e: e8 ca 3e 00 00 call 8010863d <deallocuvm> 80104773: 83 c4 10 add $0x10,%esp 80104776: 89 45 f4 mov %eax,-0xc(%ebp) 80104779: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010477d: 75 07 jne 80104786 <growproc+0x7f> return -1; 8010477f: b8 ff ff ff ff mov $0xffffffff,%eax 80104784: eb 22 jmp 801047a8 <growproc+0xa1> } proc->sz = sz; 80104786: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010478c: 8b 55 f4 mov -0xc(%ebp),%edx 8010478f: 89 10 mov %edx,(%eax) switchuvm(proc); 80104791: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104797: 83 ec 0c sub $0xc,%esp 8010479a: 50 push %eax 8010479b: e8 14 3b 00 00 call 801082b4 <switchuvm> 801047a0: 83 c4 10 add $0x10,%esp return 0; 801047a3: b8 00 00 00 00 mov $0x0,%eax } 801047a8: c9 leave 801047a9: c3 ret 801047aa <fork>: // Create a new process copying p as the parent. // Sets up stack to return as if from system call. // Caller must set state of returned proc to RUNNABLE. int fork(void) { 801047aa: 55 push %ebp 801047ab: 89 e5 mov %esp,%ebp 801047ad: 57 push %edi 801047ae: 56 push %esi 801047af: 53 push %ebx 801047b0: 83 ec 1c sub $0x1c,%esp int i, pid; struct proc *np; // Allocate process. if((np = allocproc()) == 0) 801047b3: e8 e5 fc ff ff call 8010449d <allocproc> 801047b8: 89 45 e0 mov %eax,-0x20(%ebp) 801047bb: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 801047bf: 75 0a jne 801047cb <fork+0x21> return -1; 801047c1: b8 ff ff ff ff mov $0xffffffff,%eax 801047c6: e9 68 01 00 00 jmp 80104933 <fork+0x189> // Copy process state from p. if((np->pgdir = copyuvm(proc->pgdir, proc->sz)) == 0){ 801047cb: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801047d1: 8b 10 mov (%eax),%edx 801047d3: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801047d9: 8b 40 04 mov 0x4(%eax),%eax 801047dc: 83 ec 08 sub $0x8,%esp 801047df: 52 push %edx 801047e0: 50 push %eax 801047e1: e8 f5 3f 00 00 call 801087db <copyuvm> 801047e6: 83 c4 10 add $0x10,%esp 801047e9: 89 c2 mov %eax,%edx 801047eb: 8b 45 e0 mov -0x20(%ebp),%eax 801047ee: 89 50 04 mov %edx,0x4(%eax) 801047f1: 8b 45 e0 mov -0x20(%ebp),%eax 801047f4: 8b 40 04 mov 0x4(%eax),%eax 801047f7: 85 c0 test %eax,%eax 801047f9: 75 30 jne 8010482b <fork+0x81> kfree(np->kstack); 801047fb: 8b 45 e0 mov -0x20(%ebp),%eax 801047fe: 8b 40 08 mov 0x8(%eax),%eax 80104801: 83 ec 0c sub $0xc,%esp 80104804: 50 push %eax 80104805: e8 bf e3 ff ff call 80102bc9 <kfree> 8010480a: 83 c4 10 add $0x10,%esp np->kstack = 0; 8010480d: 8b 45 e0 mov -0x20(%ebp),%eax 80104810: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) np->state = UNUSED; 80104817: 8b 45 e0 mov -0x20(%ebp),%eax 8010481a: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) return -1; 80104821: b8 ff ff ff ff mov $0xffffffff,%eax 80104826: e9 08 01 00 00 jmp 80104933 <fork+0x189> } np->sz = proc->sz; 8010482b: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104831: 8b 10 mov (%eax),%edx 80104833: 8b 45 e0 mov -0x20(%ebp),%eax 80104836: 89 10 mov %edx,(%eax) np->parent = proc; 80104838: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx 8010483f: 8b 45 e0 mov -0x20(%ebp),%eax 80104842: 89 50 14 mov %edx,0x14(%eax) *np->tf = *proc->tf; 80104845: 8b 45 e0 mov -0x20(%ebp),%eax 80104848: 8b 50 18 mov 0x18(%eax),%edx 8010484b: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104851: 8b 40 18 mov 0x18(%eax),%eax 80104854: 89 c3 mov %eax,%ebx 80104856: b8 13 00 00 00 mov $0x13,%eax 8010485b: 89 d7 mov %edx,%edi 8010485d: 89 de mov %ebx,%esi 8010485f: 89 c1 mov %eax,%ecx 80104861: f3 a5 rep movsl %ds:(%esi),%es:(%edi) // Clear %eax so that fork returns 0 in the child. np->tf->eax = 0; 80104863: 8b 45 e0 mov -0x20(%ebp),%eax 80104866: 8b 40 18 mov 0x18(%eax),%eax 80104869: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax) for(i = 0; i < NOFILE; i++) 80104870: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 80104877: eb 43 jmp 801048bc <fork+0x112> if(proc->ofile[i]) 80104879: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010487f: 8b 55 e4 mov -0x1c(%ebp),%edx 80104882: 83 c2 08 add $0x8,%edx 80104885: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80104889: 85 c0 test %eax,%eax 8010488b: 74 2b je 801048b8 <fork+0x10e> np->ofile[i] = filedup(proc->ofile[i]); 8010488d: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104893: 8b 55 e4 mov -0x1c(%ebp),%edx 80104896: 83 c2 08 add $0x8,%edx 80104899: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 8010489d: 83 ec 0c sub $0xc,%esp 801048a0: 50 push %eax 801048a1: e8 5a c7 ff ff call 80101000 <filedup> 801048a6: 83 c4 10 add $0x10,%esp 801048a9: 89 c1 mov %eax,%ecx 801048ab: 8b 45 e0 mov -0x20(%ebp),%eax 801048ae: 8b 55 e4 mov -0x1c(%ebp),%edx 801048b1: 83 c2 08 add $0x8,%edx 801048b4: 89 4c 90 08 mov %ecx,0x8(%eax,%edx,4) *np->tf = *proc->tf; // Clear %eax so that fork returns 0 in the child. np->tf->eax = 0; for(i = 0; i < NOFILE; i++) 801048b8: 83 45 e4 01 addl $0x1,-0x1c(%ebp) 801048bc: 83 7d e4 0f cmpl $0xf,-0x1c(%ebp) 801048c0: 7e b7 jle 80104879 <fork+0xcf> if(proc->ofile[i]) np->ofile[i] = filedup(proc->ofile[i]); np->cwd = idup(proc->cwd); 801048c2: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801048c8: 8b 40 68 mov 0x68(%eax),%eax 801048cb: 83 ec 0c sub $0xc,%esp 801048ce: 50 push %eax 801048cf: e8 5c d0 ff ff call 80101930 <idup> 801048d4: 83 c4 10 add $0x10,%esp 801048d7: 89 c2 mov %eax,%edx 801048d9: 8b 45 e0 mov -0x20(%ebp),%eax 801048dc: 89 50 68 mov %edx,0x68(%eax) safestrcpy(np->name, proc->name, sizeof(proc->name)); 801048df: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801048e5: 8d 50 6c lea 0x6c(%eax),%edx 801048e8: 8b 45 e0 mov -0x20(%ebp),%eax 801048eb: 83 c0 6c add $0x6c,%eax 801048ee: 83 ec 04 sub $0x4,%esp 801048f1: 6a 10 push $0x10 801048f3: 52 push %edx 801048f4: 50 push %eax 801048f5: e8 37 10 00 00 call 80105931 <safestrcpy> 801048fa: 83 c4 10 add $0x10,%esp pid = np->pid; 801048fd: 8b 45 e0 mov -0x20(%ebp),%eax 80104900: 8b 40 10 mov 0x10(%eax),%eax 80104903: 89 45 dc mov %eax,-0x24(%ebp) // lock to force the compiler to emit the np->state write last. acquire(&ptable.lock); 80104906: 83 ec 0c sub $0xc,%esp 80104909: 68 80 39 11 80 push $0x80113980 8010490e: e8 b8 0b 00 00 call 801054cb <acquire> 80104913: 83 c4 10 add $0x10,%esp np->state = RUNNABLE; 80104916: 8b 45 e0 mov -0x20(%ebp),%eax 80104919: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) release(&ptable.lock); 80104920: 83 ec 0c sub $0xc,%esp 80104923: 68 80 39 11 80 push $0x80113980 80104928: e8 05 0c 00 00 call 80105532 <release> 8010492d: 83 c4 10 add $0x10,%esp return pid; 80104930: 8b 45 dc mov -0x24(%ebp),%eax } 80104933: 8d 65 f4 lea -0xc(%ebp),%esp 80104936: 5b pop %ebx 80104937: 5e pop %esi 80104938: 5f pop %edi 80104939: 5d pop %ebp 8010493a: c3 ret 8010493b <exit>: // Exit the current process. Does not return. // An exited process remains in the zombie state // until its parent calls wait() to find out it exited. void exit(void) { 8010493b: 55 push %ebp 8010493c: 89 e5 mov %esp,%ebp 8010493e: 83 ec 18 sub $0x18,%esp struct proc *p; int fd; if(proc == initproc) 80104941: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx 80104948: a1 48 c6 10 80 mov 0x8010c648,%eax 8010494d: 39 c2 cmp %eax,%edx 8010494f: 75 0d jne 8010495e <exit+0x23> panic("init exiting"); 80104951: 83 ec 0c sub $0xc,%esp 80104954: 68 81 8d 10 80 push $0x80108d81 80104959: e8 08 bc ff ff call 80100566 <panic> // Close all open files. for(fd = 0; fd < NOFILE; fd++){ 8010495e: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 80104965: eb 48 jmp 801049af <exit+0x74> if(proc->ofile[fd]){ 80104967: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010496d: 8b 55 f0 mov -0x10(%ebp),%edx 80104970: 83 c2 08 add $0x8,%edx 80104973: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80104977: 85 c0 test %eax,%eax 80104979: 74 30 je 801049ab <exit+0x70> fileclose(proc->ofile[fd]); 8010497b: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104981: 8b 55 f0 mov -0x10(%ebp),%edx 80104984: 83 c2 08 add $0x8,%edx 80104987: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 8010498b: 83 ec 0c sub $0xc,%esp 8010498e: 50 push %eax 8010498f: e8 bd c6 ff ff call 80101051 <fileclose> 80104994: 83 c4 10 add $0x10,%esp proc->ofile[fd] = 0; 80104997: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010499d: 8b 55 f0 mov -0x10(%ebp),%edx 801049a0: 83 c2 08 add $0x8,%edx 801049a3: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4) 801049aa: 00 if(proc == initproc) panic("init exiting"); // Close all open files. for(fd = 0; fd < NOFILE; fd++){ 801049ab: 83 45 f0 01 addl $0x1,-0x10(%ebp) 801049af: 83 7d f0 0f cmpl $0xf,-0x10(%ebp) 801049b3: 7e b2 jle 80104967 <exit+0x2c> fileclose(proc->ofile[fd]); proc->ofile[fd] = 0; } } begin_op(); 801049b5: e8 93 eb ff ff call 8010354d <begin_op> iput(proc->cwd); 801049ba: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801049c0: 8b 40 68 mov 0x68(%eax),%eax 801049c3: 83 ec 0c sub $0xc,%esp 801049c6: 50 push %eax 801049c7: e8 6e d1 ff ff call 80101b3a <iput> 801049cc: 83 c4 10 add $0x10,%esp end_op(); 801049cf: e8 05 ec ff ff call 801035d9 <end_op> proc->cwd = 0; 801049d4: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801049da: c7 40 68 00 00 00 00 movl $0x0,0x68(%eax) acquire(&ptable.lock); 801049e1: 83 ec 0c sub $0xc,%esp 801049e4: 68 80 39 11 80 push $0x80113980 801049e9: e8 dd 0a 00 00 call 801054cb <acquire> 801049ee: 83 c4 10 add $0x10,%esp // Parent might be sleeping in wait(). wakeup1(proc->parent); 801049f1: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801049f7: 8b 40 14 mov 0x14(%eax),%eax 801049fa: 83 ec 0c sub $0xc,%esp 801049fd: 50 push %eax 801049fe: e8 72 08 00 00 call 80105275 <wakeup1> 80104a03: 83 c4 10 add $0x10,%esp // Pass abandoned children to init. for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104a06: c7 45 f4 b4 39 11 80 movl $0x801139b4,-0xc(%ebp) 80104a0d: eb 3f jmp 80104a4e <exit+0x113> if(p->parent == proc){ 80104a0f: 8b 45 f4 mov -0xc(%ebp),%eax 80104a12: 8b 50 14 mov 0x14(%eax),%edx 80104a15: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104a1b: 39 c2 cmp %eax,%edx 80104a1d: 75 28 jne 80104a47 <exit+0x10c> p->parent = initproc; 80104a1f: 8b 15 48 c6 10 80 mov 0x8010c648,%edx 80104a25: 8b 45 f4 mov -0xc(%ebp),%eax 80104a28: 89 50 14 mov %edx,0x14(%eax) if(p->state == ZOMBIE) 80104a2b: 8b 45 f4 mov -0xc(%ebp),%eax 80104a2e: 8b 40 0c mov 0xc(%eax),%eax 80104a31: 83 f8 05 cmp $0x5,%eax 80104a34: 75 11 jne 80104a47 <exit+0x10c> wakeup1(initproc); 80104a36: a1 48 c6 10 80 mov 0x8010c648,%eax 80104a3b: 83 ec 0c sub $0xc,%esp 80104a3e: 50 push %eax 80104a3f: e8 31 08 00 00 call 80105275 <wakeup1> 80104a44: 83 c4 10 add $0x10,%esp // Parent might be sleeping in wait(). wakeup1(proc->parent); // Pass abandoned children to init. for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104a47: 81 45 f4 84 00 00 00 addl $0x84,-0xc(%ebp) 80104a4e: 81 7d f4 b4 5a 11 80 cmpl $0x80115ab4,-0xc(%ebp) 80104a55: 72 b8 jb 80104a0f <exit+0xd4> wakeup1(initproc); } } // Jump into the scheduler, never to return. proc->state = ZOMBIE; 80104a57: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104a5d: c7 40 0c 05 00 00 00 movl $0x5,0xc(%eax) sched(); 80104a64: e8 23 06 00 00 call 8010508c <sched> panic("zombie exit"); 80104a69: 83 ec 0c sub $0xc,%esp 80104a6c: 68 8e 8d 10 80 push $0x80108d8e 80104a71: e8 f0 ba ff ff call 80100566 <panic> 80104a76 <wait>: // Wait for a child process to exit and return its pid. // Return -1 if this process has no children. int wait(void) { 80104a76: 55 push %ebp 80104a77: 89 e5 mov %esp,%ebp 80104a79: 83 ec 18 sub $0x18,%esp struct proc *p; int havekids, pid; acquire(&ptable.lock); 80104a7c: 83 ec 0c sub $0xc,%esp 80104a7f: 68 80 39 11 80 push $0x80113980 80104a84: e8 42 0a 00 00 call 801054cb <acquire> 80104a89: 83 c4 10 add $0x10,%esp for(;;){ // Scan through table looking for zombie children. havekids = 0; 80104a8c: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104a93: c7 45 f4 b4 39 11 80 movl $0x801139b4,-0xc(%ebp) 80104a9a: e9 a9 00 00 00 jmp 80104b48 <wait+0xd2> if(p->parent != proc) 80104a9f: 8b 45 f4 mov -0xc(%ebp),%eax 80104aa2: 8b 50 14 mov 0x14(%eax),%edx 80104aa5: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104aab: 39 c2 cmp %eax,%edx 80104aad: 0f 85 8d 00 00 00 jne 80104b40 <wait+0xca> continue; havekids = 1; 80104ab3: c7 45 f0 01 00 00 00 movl $0x1,-0x10(%ebp) if(p->state == ZOMBIE){ 80104aba: 8b 45 f4 mov -0xc(%ebp),%eax 80104abd: 8b 40 0c mov 0xc(%eax),%eax 80104ac0: 83 f8 05 cmp $0x5,%eax 80104ac3: 75 7c jne 80104b41 <wait+0xcb> // Found one. pid = p->pid; 80104ac5: 8b 45 f4 mov -0xc(%ebp),%eax 80104ac8: 8b 40 10 mov 0x10(%eax),%eax 80104acb: 89 45 ec mov %eax,-0x14(%ebp) kfree(p->kstack); 80104ace: 8b 45 f4 mov -0xc(%ebp),%eax 80104ad1: 8b 40 08 mov 0x8(%eax),%eax 80104ad4: 83 ec 0c sub $0xc,%esp 80104ad7: 50 push %eax 80104ad8: e8 ec e0 ff ff call 80102bc9 <kfree> 80104add: 83 c4 10 add $0x10,%esp p->kstack = 0; 80104ae0: 8b 45 f4 mov -0xc(%ebp),%eax 80104ae3: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) freevm(p->pgdir); 80104aea: 8b 45 f4 mov -0xc(%ebp),%eax 80104aed: 8b 40 04 mov 0x4(%eax),%eax 80104af0: 83 ec 0c sub $0xc,%esp 80104af3: 50 push %eax 80104af4: e8 01 3c 00 00 call 801086fa <freevm> 80104af9: 83 c4 10 add $0x10,%esp p->state = UNUSED; 80104afc: 8b 45 f4 mov -0xc(%ebp),%eax 80104aff: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) p->pid = 0; 80104b06: 8b 45 f4 mov -0xc(%ebp),%eax 80104b09: c7 40 10 00 00 00 00 movl $0x0,0x10(%eax) p->parent = 0; 80104b10: 8b 45 f4 mov -0xc(%ebp),%eax 80104b13: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax) p->name[0] = 0; 80104b1a: 8b 45 f4 mov -0xc(%ebp),%eax 80104b1d: c6 40 6c 00 movb $0x0,0x6c(%eax) p->killed = 0; 80104b21: 8b 45 f4 mov -0xc(%ebp),%eax 80104b24: c7 40 24 00 00 00 00 movl $0x0,0x24(%eax) release(&ptable.lock); 80104b2b: 83 ec 0c sub $0xc,%esp 80104b2e: 68 80 39 11 80 push $0x80113980 80104b33: e8 fa 09 00 00 call 80105532 <release> 80104b38: 83 c4 10 add $0x10,%esp return pid; 80104b3b: 8b 45 ec mov -0x14(%ebp),%eax 80104b3e: eb 5b jmp 80104b9b <wait+0x125> for(;;){ // Scan through table looking for zombie children. havekids = 0; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ if(p->parent != proc) continue; 80104b40: 90 nop acquire(&ptable.lock); for(;;){ // Scan through table looking for zombie children. havekids = 0; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104b41: 81 45 f4 84 00 00 00 addl $0x84,-0xc(%ebp) 80104b48: 81 7d f4 b4 5a 11 80 cmpl $0x80115ab4,-0xc(%ebp) 80104b4f: 0f 82 4a ff ff ff jb 80104a9f <wait+0x29> return pid; } } // No point waiting if we don't have any children. if(!havekids || proc->killed){ 80104b55: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80104b59: 74 0d je 80104b68 <wait+0xf2> 80104b5b: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104b61: 8b 40 24 mov 0x24(%eax),%eax 80104b64: 85 c0 test %eax,%eax 80104b66: 74 17 je 80104b7f <wait+0x109> release(&ptable.lock); 80104b68: 83 ec 0c sub $0xc,%esp 80104b6b: 68 80 39 11 80 push $0x80113980 80104b70: e8 bd 09 00 00 call 80105532 <release> 80104b75: 83 c4 10 add $0x10,%esp return -1; 80104b78: b8 ff ff ff ff mov $0xffffffff,%eax 80104b7d: eb 1c jmp 80104b9b <wait+0x125> } // Wait for children to exit. (See wakeup1 call in proc_exit.) sleep(proc, &ptable.lock); //DOC: wait-sleep 80104b7f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104b85: 83 ec 08 sub $0x8,%esp 80104b88: 68 80 39 11 80 push $0x80113980 80104b8d: 50 push %eax 80104b8e: e8 36 06 00 00 call 801051c9 <sleep> 80104b93: 83 c4 10 add $0x10,%esp } 80104b96: e9 f1 fe ff ff jmp 80104a8c <wait+0x16> } 80104b9b: c9 leave 80104b9c: c3 ret 80104b9d <scheduler>: // via swtch back to the scheduler. int aprev, eprev; void scheduler(void) { 80104b9d: 55 push %ebp 80104b9e: 89 e5 mov %esp,%ebp 80104ba0: 83 ec 28 sub $0x28,%esp struct proc *p; //struct proc *q; cprintf("Starting Scheduler \n"); 80104ba3: 83 ec 0c sub $0xc,%esp 80104ba6: 68 9a 8d 10 80 push $0x80108d9a 80104bab: e8 16 b8 ff ff call 801003c6 <cprintf> 80104bb0: 83 c4 10 add $0x10,%esp //printptable(); aprev = ptable.atop; 80104bb3: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104bb8: a3 c4 5d 11 80 mov %eax,0x80115dc4 eprev = ptable.etop; 80104bbd: a1 bc 5d 11 80 mov 0x80115dbc,%eax 80104bc2: a3 60 39 11 80 mov %eax,0x80113960 for(;;){ // Enable interrupts on this processor. sti(); 80104bc7: e8 82 f8 ff ff call 8010444e <sti> // Loop over process table looking for process to run. acquire(&ptable.lock); 80104bcc: 83 ec 0c sub $0xc,%esp 80104bcf: 68 80 39 11 80 push $0x80113980 80104bd4: e8 f2 08 00 00 call 801054cb <acquire> 80104bd9: 83 c4 10 add $0x10,%esp //cprintf("Searching through fq for procs"); if(ptable.atop != aprev || ptable.etop != eprev){ 80104bdc: 8b 15 b8 5d 11 80 mov 0x80115db8,%edx 80104be2: a1 c4 5d 11 80 mov 0x80115dc4,%eax 80104be7: 39 c2 cmp %eax,%edx 80104be9: 75 0f jne 80104bfa <scheduler+0x5d> 80104beb: 8b 15 bc 5d 11 80 mov 0x80115dbc,%edx 80104bf1: a1 60 39 11 80 mov 0x80113960,%eax 80104bf6: 39 c2 cmp %eax,%edx 80104bf8: 74 14 je 80104c0e <scheduler+0x71> //printptable(); aprev = ptable.atop; 80104bfa: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104bff: a3 c4 5d 11 80 mov %eax,0x80115dc4 eprev = ptable.etop; 80104c04: a1 bc 5d 11 80 mov 0x80115dbc,%eax 80104c09: a3 60 39 11 80 mov %eax,0x80113960 } int fflag = 0; 80104c0e: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) for(int i = 0; i < NPROC; ++i ){ 80104c15: c7 45 f0 00 00 00 00 movl $0x0,-0x10(%ebp) 80104c1c: e9 2f 01 00 00 jmp 80104d50 <scheduler+0x1b3> p = &ptable.proc[i]; 80104c21: 8b 45 f0 mov -0x10(%ebp),%eax 80104c24: c1 e0 02 shl $0x2,%eax 80104c27: 89 c2 mov %eax,%edx 80104c29: c1 e2 05 shl $0x5,%edx 80104c2c: 01 d0 add %edx,%eax 80104c2e: 83 c0 30 add $0x30,%eax 80104c31: 05 80 39 11 80 add $0x80113980,%eax 80104c36: 83 c0 04 add $0x4,%eax 80104c39: 89 45 e4 mov %eax,-0x1c(%ebp) if(p->state != RUNNABLE || p->queuetype != 2){ 80104c3c: 8b 45 e4 mov -0x1c(%ebp),%eax 80104c3f: 8b 40 0c mov 0xc(%eax),%eax 80104c42: 83 f8 03 cmp $0x3,%eax 80104c45: 0f 85 00 01 00 00 jne 80104d4b <scheduler+0x1ae> 80104c4b: 8b 45 e4 mov -0x1c(%ebp),%eax 80104c4e: 8b 40 7c mov 0x7c(%eax),%eax 80104c51: 83 f8 02 cmp $0x2,%eax 80104c54: 0f 85 f1 00 00 00 jne 80104d4b <scheduler+0x1ae> continue; } fflag = 1; 80104c5a: c7 45 f4 01 00 00 00 movl $0x1,-0xc(%ebp) //cprintf("pid: %d in fq with qtype %d \n",p->pid, p->queuetype); // printptable(); // Switch to chosen process. It is the process's job // to release ptable.lock and then reacquire it // before jumping back to us. proc = p; 80104c61: 8b 45 e4 mov -0x1c(%ebp),%eax 80104c64: 65 a3 04 00 00 00 mov %eax,%gs:0x4 switchuvm(p); 80104c6a: 83 ec 0c sub $0xc,%esp 80104c6d: ff 75 e4 pushl -0x1c(%ebp) 80104c70: e8 3f 36 00 00 call 801082b4 <switchuvm> 80104c75: 83 c4 10 add $0x10,%esp p->state = RUNNING; 80104c78: 8b 45 e4 mov -0x1c(%ebp),%eax 80104c7b: c7 40 0c 04 00 00 00 movl $0x4,0xc(%eax) if(p->parent != 0 && p->parent->name[0] == 's' && p->parent->name[1] == 'h'){ 80104c82: 8b 45 e4 mov -0x1c(%ebp),%eax 80104c85: 8b 40 14 mov 0x14(%eax),%eax 80104c88: 85 c0 test %eax,%eax 80104c8a: 74 33 je 80104cbf <scheduler+0x122> 80104c8c: 8b 45 e4 mov -0x1c(%ebp),%eax 80104c8f: 8b 40 14 mov 0x14(%eax),%eax 80104c92: 0f b6 40 6c movzbl 0x6c(%eax),%eax 80104c96: 3c 73 cmp $0x73,%al 80104c98: 75 25 jne 80104cbf <scheduler+0x122> 80104c9a: 8b 45 e4 mov -0x1c(%ebp),%eax 80104c9d: 8b 40 14 mov 0x14(%eax),%eax 80104ca0: 0f b6 40 6d movzbl 0x6d(%eax),%eax 80104ca4: 3c 68 cmp $0x68,%al 80104ca6: 75 17 jne 80104cbf <scheduler+0x122> cprintf("Process spin %d has consumed 10 ms in FQ\n", p->pid); 80104ca8: 8b 45 e4 mov -0x1c(%ebp),%eax 80104cab: 8b 40 10 mov 0x10(%eax),%eax 80104cae: 83 ec 08 sub $0x8,%esp 80104cb1: 50 push %eax 80104cb2: 68 b0 8d 10 80 push $0x80108db0 80104cb7: e8 0a b7 ff ff call 801003c6 <cprintf> 80104cbc: 83 c4 10 add $0x10,%esp } swtch(&cpu->scheduler, proc->context); 80104cbf: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104cc5: 8b 40 1c mov 0x1c(%eax),%eax 80104cc8: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80104ccf: 83 c2 04 add $0x4,%edx 80104cd2: 83 ec 08 sub $0x8,%esp 80104cd5: 50 push %eax 80104cd6: 52 push %edx 80104cd7: e8 c6 0c 00 00 call 801059a2 <swtch> 80104cdc: 83 c4 10 add $0x10,%esp switchkvm(); 80104cdf: e8 b3 35 00 00 call 80108297 <switchkvm> p->quantumsize += 10; 80104ce4: 8b 45 e4 mov -0x1c(%ebp),%eax 80104ce7: 8b 80 80 00 00 00 mov 0x80(%eax),%eax 80104ced: 8d 50 0a lea 0xa(%eax),%edx 80104cf0: 8b 45 e4 mov -0x1c(%ebp),%eax 80104cf3: 89 90 80 00 00 00 mov %edx,0x80(%eax) if(p->quantumsize >= 10 && p->state != ZOMBIE){ 80104cf9: 8b 45 e4 mov -0x1c(%ebp),%eax 80104cfc: 8b 80 80 00 00 00 mov 0x80(%eax),%eax 80104d02: 83 f8 09 cmp $0x9,%eax 80104d05: 7e 37 jle 80104d3e <scheduler+0x1a1> 80104d07: 8b 45 e4 mov -0x1c(%ebp),%eax 80104d0a: 8b 40 0c mov 0xc(%eax),%eax 80104d0d: 83 f8 05 cmp $0x5,%eax 80104d10: 74 2c je 80104d3e <scheduler+0x1a1> //cprintf("Set queuetype to 1\n"); p->queuetype = 1; 80104d12: 8b 45 e4 mov -0x1c(%ebp),%eax 80104d15: c7 40 7c 01 00 00 00 movl $0x1,0x7c(%eax) //cprintf("move pd (%d) to aq\n", p->pid); ptable.aq[ptable.atop] = p; 80104d1c: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104d21: 8d 90 8c 08 00 00 lea 0x88c(%eax),%edx 80104d27: 8b 45 e4 mov -0x1c(%ebp),%eax 80104d2a: 89 04 95 84 39 11 80 mov %eax,-0x7feec67c(,%edx,4) ptable.atop++; 80104d31: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104d36: 83 c0 01 add $0x1,%eax 80104d39: a3 b8 5d 11 80 mov %eax,0x80115db8 } //cprintf("loop\n"); // Process is done running for now. // It should have changed its p->state before coming back. proc = 0; 80104d3e: 65 c7 05 04 00 00 00 movl $0x0,%gs:0x4 80104d45: 00 00 00 00 80104d49: eb 01 jmp 80104d4c <scheduler+0x1af> int fflag = 0; for(int i = 0; i < NPROC; ++i ){ p = &ptable.proc[i]; if(p->state != RUNNABLE || p->queuetype != 2){ continue; 80104d4b: 90 nop eprev = ptable.etop; } int fflag = 0; for(int i = 0; i < NPROC; ++i ){ 80104d4c: 83 45 f0 01 addl $0x1,-0x10(%ebp) 80104d50: 83 7d f0 3f cmpl $0x3f,-0x10(%ebp) 80104d54: 0f 8e c7 fe ff ff jle 80104c21 <scheduler+0x84> // Process is done running for now. // It should have changed its p->state before coming back. proc = 0; } if(fflag == 1){ 80104d5a: 83 7d f4 01 cmpl $0x1,-0xc(%ebp) 80104d5e: 75 15 jne 80104d75 <scheduler+0x1d8> release(&ptable.lock); 80104d60: 83 ec 0c sub $0xc,%esp 80104d63: 68 80 39 11 80 push $0x80113980 80104d68: e8 c5 07 00 00 call 80105532 <release> 80104d6d: 83 c4 10 add $0x10,%esp continue; 80104d70: e9 12 03 00 00 jmp 80105087 <scheduler+0x4ea> } if(ptable.atop > 0){ 80104d75: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104d7a: 85 c0 test %eax,%eax 80104d7c: 0f 8e 41 02 00 00 jle 80104fc3 <scheduler+0x426> //cprintf("Running aq functions, %d \n", ptable.aq[ptable.atop-1]->pid); for(int i = 0; i < ptable.atop; ++i){ 80104d82: c7 45 ec 00 00 00 00 movl $0x0,-0x14(%ebp) 80104d89: e9 22 02 00 00 jmp 80104fb0 <scheduler+0x413> p = ptable.aq[ptable.atop-1]; 80104d8e: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104d93: 83 e8 01 sub $0x1,%eax 80104d96: 05 8c 08 00 00 add $0x88c,%eax 80104d9b: 8b 04 85 84 39 11 80 mov -0x7feec67c(,%eax,4),%eax 80104da2: 89 45 e4 mov %eax,-0x1c(%ebp) //cprintf("pid in aq: %d state: %d \n ", p->pid, p->state); if(p == 0 || p->state != RUNNABLE || p->queuetype != 1){ 80104da5: 83 7d e4 00 cmpl $0x0,-0x1c(%ebp) 80104da9: 74 1a je 80104dc5 <scheduler+0x228> 80104dab: 8b 45 e4 mov -0x1c(%ebp),%eax 80104dae: 8b 40 0c mov 0xc(%eax),%eax 80104db1: 83 f8 03 cmp $0x3,%eax 80104db4: 75 0f jne 80104dc5 <scheduler+0x228> 80104db6: 8b 45 e4 mov -0x1c(%ebp),%eax 80104db9: 8b 40 7c mov 0x7c(%eax),%eax 80104dbc: 83 f8 01 cmp $0x1,%eax 80104dbf: 0f 84 92 00 00 00 je 80104e57 <scheduler+0x2ba> // cprintf("pid in aq: %d not runnable, state: %d, qtype: %d, atop: %d \n", p->pid, p->state,p->queuetype, ptable.atop); if(p->state == SLEEPING){ 80104dc5: 8b 45 e4 mov -0x1c(%ebp),%eax 80104dc8: 8b 40 0c mov 0xc(%eax),%eax 80104dcb: 83 f8 02 cmp $0x2,%eax 80104dce: 75 2f jne 80104dff <scheduler+0x262> ptable.aq[ptable.atop-1] = 0; 80104dd0: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104dd5: 83 e8 01 sub $0x1,%eax 80104dd8: 05 8c 08 00 00 add $0x88c,%eax 80104ddd: c7 04 85 84 39 11 80 movl $0x0,-0x7feec67c(,%eax,4) 80104de4: 00 00 00 00 ptable.atop--; 80104de8: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104ded: 83 e8 01 sub $0x1,%eax 80104df0: a3 b8 5d 11 80 mov %eax,0x80115db8 p->queuetype = 2; 80104df5: 8b 45 e4 mov -0x1c(%ebp),%eax 80104df8: c7 40 7c 02 00 00 00 movl $0x2,0x7c(%eax) } if(p->state == EMBRYO || p->state == UNUSED || p->state == ZOMBIE){ 80104dff: 8b 45 e4 mov -0x1c(%ebp),%eax 80104e02: 8b 40 0c mov 0xc(%eax),%eax 80104e05: 83 f8 01 cmp $0x1,%eax 80104e08: 74 19 je 80104e23 <scheduler+0x286> 80104e0a: 8b 45 e4 mov -0x1c(%ebp),%eax 80104e0d: 8b 40 0c mov 0xc(%eax),%eax 80104e10: 85 c0 test %eax,%eax 80104e12: 74 0f je 80104e23 <scheduler+0x286> 80104e14: 8b 45 e4 mov -0x1c(%ebp),%eax 80104e17: 8b 40 0c mov 0xc(%eax),%eax 80104e1a: 83 f8 05 cmp $0x5,%eax 80104e1d: 0f 85 88 01 00 00 jne 80104fab <scheduler+0x40e> ptable.aq[ptable.atop-1] = 0; 80104e23: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104e28: 83 e8 01 sub $0x1,%eax 80104e2b: 05 8c 08 00 00 add $0x88c,%eax 80104e30: c7 04 85 84 39 11 80 movl $0x0,-0x7feec67c(,%eax,4) 80104e37: 00 00 00 00 ptable.atop--; 80104e3b: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104e40: 83 e8 01 sub $0x1,%eax 80104e43: a3 b8 5d 11 80 mov %eax,0x80115db8 p->queuetype = 2; 80104e48: 8b 45 e4 mov -0x1c(%ebp),%eax 80104e4b: c7 40 7c 02 00 00 00 movl $0x2,0x7c(%eax) } continue; 80104e52: e9 54 01 00 00 jmp 80104fab <scheduler+0x40e> } //cprintf("executing aq pid: %d with queuetype: %d and quantsize %d \n", p->pid, p->queuetype, p->quantumsize); //aflag = 1; proc = p; 80104e57: 8b 45 e4 mov -0x1c(%ebp),%eax 80104e5a: 65 a3 04 00 00 00 mov %eax,%gs:0x4 switchuvm(p); 80104e60: 83 ec 0c sub $0xc,%esp 80104e63: ff 75 e4 pushl -0x1c(%ebp) 80104e66: e8 49 34 00 00 call 801082b4 <switchuvm> 80104e6b: 83 c4 10 add $0x10,%esp if(p->parent != 0 && p->parent->name[0] == 's' && p->parent->name[1] == 'h'){ 80104e6e: 8b 45 e4 mov -0x1c(%ebp),%eax 80104e71: 8b 40 14 mov 0x14(%eax),%eax 80104e74: 85 c0 test %eax,%eax 80104e76: 74 3d je 80104eb5 <scheduler+0x318> 80104e78: 8b 45 e4 mov -0x1c(%ebp),%eax 80104e7b: 8b 40 14 mov 0x14(%eax),%eax 80104e7e: 0f b6 40 6c movzbl 0x6c(%eax),%eax 80104e82: 3c 73 cmp $0x73,%al 80104e84: 75 2f jne 80104eb5 <scheduler+0x318> 80104e86: 8b 45 e4 mov -0x1c(%ebp),%eax 80104e89: 8b 40 14 mov 0x14(%eax),%eax 80104e8c: 0f b6 40 6d movzbl 0x6d(%eax),%eax 80104e90: 3c 68 cmp $0x68,%al 80104e92: 75 21 jne 80104eb5 <scheduler+0x318> cprintf("Process Spin %d has consumed %d ms in AQ\n", p->pid, p->quantumsize); 80104e94: 8b 45 e4 mov -0x1c(%ebp),%eax 80104e97: 8b 90 80 00 00 00 mov 0x80(%eax),%edx 80104e9d: 8b 45 e4 mov -0x1c(%ebp),%eax 80104ea0: 8b 40 10 mov 0x10(%eax),%eax 80104ea3: 83 ec 04 sub $0x4,%esp 80104ea6: 52 push %edx 80104ea7: 50 push %eax 80104ea8: 68 dc 8d 10 80 push $0x80108ddc 80104ead: e8 14 b5 ff ff call 801003c6 <cprintf> 80104eb2: 83 c4 10 add $0x10,%esp } p->state = RUNNING; 80104eb5: 8b 45 e4 mov -0x1c(%ebp),%eax 80104eb8: c7 40 0c 04 00 00 00 movl $0x4,0xc(%eax) swtch(&cpu->scheduler, proc->context); 80104ebf: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80104ec5: 8b 40 1c mov 0x1c(%eax),%eax 80104ec8: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80104ecf: 83 c2 04 add $0x4,%edx 80104ed2: 83 ec 08 sub $0x8,%esp 80104ed5: 50 push %eax 80104ed6: 52 push %edx 80104ed7: e8 c6 0a 00 00 call 801059a2 <swtch> 80104edc: 83 c4 10 add $0x10,%esp switchkvm(); 80104edf: e8 b3 33 00 00 call 80108297 <switchkvm> p->quantumsize += 10; 80104ee4: 8b 45 e4 mov -0x1c(%ebp),%eax 80104ee7: 8b 80 80 00 00 00 mov 0x80(%eax),%eax 80104eed: 8d 50 0a lea 0xa(%eax),%edx 80104ef0: 8b 45 e4 mov -0x1c(%ebp),%eax 80104ef3: 89 90 80 00 00 00 mov %edx,0x80(%eax) if(p->quantumsize >= 30 && p->state != ZOMBIE){ 80104ef9: 8b 45 e4 mov -0x1c(%ebp),%eax 80104efc: 8b 80 80 00 00 00 mov 0x80(%eax),%eax 80104f02: 83 f8 1d cmp $0x1d,%eax 80104f05: 7e 5c jle 80104f63 <scheduler+0x3c6> 80104f07: 8b 45 e4 mov -0x1c(%ebp),%eax 80104f0a: 8b 40 0c mov 0xc(%eax),%eax 80104f0d: 83 f8 05 cmp $0x5,%eax 80104f10: 74 51 je 80104f63 <scheduler+0x3c6> p->queuetype = 0; 80104f12: 8b 45 e4 mov -0x1c(%ebp),%eax 80104f15: c7 40 7c 00 00 00 00 movl $0x0,0x7c(%eax) ptable.eq[ptable.etop] = p; 80104f1c: a1 bc 5d 11 80 mov 0x80115dbc,%eax 80104f21: 8d 90 cc 08 00 00 lea 0x8cc(%eax),%edx 80104f27: 8b 45 e4 mov -0x1c(%ebp),%eax 80104f2a: 89 04 95 84 39 11 80 mov %eax,-0x7feec67c(,%edx,4) ptable.etop++; 80104f31: a1 bc 5d 11 80 mov 0x80115dbc,%eax 80104f36: 83 c0 01 add $0x1,%eax 80104f39: a3 bc 5d 11 80 mov %eax,0x80115dbc ptable.aq[ptable.atop-1] = 0; 80104f3e: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104f43: 83 e8 01 sub $0x1,%eax 80104f46: 05 8c 08 00 00 add $0x88c,%eax 80104f4b: c7 04 85 84 39 11 80 movl $0x0,-0x7feec67c(,%eax,4) 80104f52: 00 00 00 00 ptable.atop--; 80104f56: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104f5b: 83 e8 01 sub $0x1,%eax 80104f5e: a3 b8 5d 11 80 mov %eax,0x80115db8 //cprintf("Demoted pid: %d to eq\n", p->pid); } if(p->state == ZOMBIE || p->state == EMBRYO){ 80104f63: 8b 45 e4 mov -0x1c(%ebp),%eax 80104f66: 8b 40 0c mov 0xc(%eax),%eax 80104f69: 83 f8 05 cmp $0x5,%eax 80104f6c: 74 0b je 80104f79 <scheduler+0x3dc> 80104f6e: 8b 45 e4 mov -0x1c(%ebp),%eax 80104f71: 8b 40 0c mov 0xc(%eax),%eax 80104f74: 83 f8 01 cmp $0x1,%eax 80104f77: 75 25 jne 80104f9e <scheduler+0x401> ptable.aq[ptable.atop-1] = 0; 80104f79: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104f7e: 83 e8 01 sub $0x1,%eax 80104f81: 05 8c 08 00 00 add $0x88c,%eax 80104f86: c7 04 85 84 39 11 80 movl $0x0,-0x7feec67c(,%eax,4) 80104f8d: 00 00 00 00 ptable.atop--; 80104f91: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104f96: 83 e8 01 sub $0x1,%eax 80104f99: a3 b8 5d 11 80 mov %eax,0x80115db8 } proc = 0; 80104f9e: 65 c7 05 04 00 00 00 movl $0x0,%gs:0x4 80104fa5: 00 00 00 00 80104fa9: eb 01 jmp 80104fac <scheduler+0x40f> if(p->state == EMBRYO || p->state == UNUSED || p->state == ZOMBIE){ ptable.aq[ptable.atop-1] = 0; ptable.atop--; p->queuetype = 2; } continue; 80104fab: 90 nop continue; } if(ptable.atop > 0){ //cprintf("Running aq functions, %d \n", ptable.aq[ptable.atop-1]->pid); for(int i = 0; i < ptable.atop; ++i){ 80104fac: 83 45 ec 01 addl $0x1,-0x14(%ebp) 80104fb0: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104fb5: 3b 45 ec cmp -0x14(%ebp),%eax 80104fb8: 0f 8f d0 fd ff ff jg 80104d8e <scheduler+0x1f1> 80104fbe: e9 b4 00 00 00 jmp 80105077 <scheduler+0x4da> ptable.atop--; } proc = 0; } } else if(ptable.atop == 0 && ptable.etop > 0){ 80104fc3: a1 b8 5d 11 80 mov 0x80115db8,%eax 80104fc8: 85 c0 test %eax,%eax 80104fca: 0f 85 a7 00 00 00 jne 80105077 <scheduler+0x4da> 80104fd0: a1 bc 5d 11 80 mov 0x80115dbc,%eax 80104fd5: 85 c0 test %eax,%eax 80104fd7: 0f 8e 9a 00 00 00 jle 80105077 <scheduler+0x4da> //cprintf("aq is empty now...\n"); //printptable(); //cprintf("Moving eQ to Aq\n"); for(int i = 0; i < ptable.etop; ++i){ 80104fdd: c7 45 e8 00 00 00 00 movl $0x0,-0x18(%ebp) 80104fe4: eb 79 jmp 8010505f <scheduler+0x4c2> ptable.aq[ptable.atop] = ptable.eq[i]; 80104fe6: 8b 15 b8 5d 11 80 mov 0x80115db8,%edx 80104fec: 8b 45 e8 mov -0x18(%ebp),%eax 80104fef: 05 cc 08 00 00 add $0x8cc,%eax 80104ff4: 8b 04 85 84 39 11 80 mov -0x7feec67c(,%eax,4),%eax 80104ffb: 81 c2 8c 08 00 00 add $0x88c,%edx 80105001: 89 04 95 84 39 11 80 mov %eax,-0x7feec67c(,%edx,4) ptable.aq[ptable.atop]->quantumsize = 10; 80105008: a1 b8 5d 11 80 mov 0x80115db8,%eax 8010500d: 05 8c 08 00 00 add $0x88c,%eax 80105012: 8b 04 85 84 39 11 80 mov -0x7feec67c(,%eax,4),%eax 80105019: c7 80 80 00 00 00 0a movl $0xa,0x80(%eax) 80105020: 00 00 00 ptable.aq[ptable.atop]->queuetype = 1; 80105023: a1 b8 5d 11 80 mov 0x80115db8,%eax 80105028: 05 8c 08 00 00 add $0x88c,%eax 8010502d: 8b 04 85 84 39 11 80 mov -0x7feec67c(,%eax,4),%eax 80105034: c7 40 7c 01 00 00 00 movl $0x1,0x7c(%eax) ptable.atop++; 8010503b: a1 b8 5d 11 80 mov 0x80115db8,%eax 80105040: 83 c0 01 add $0x1,%eax 80105043: a3 b8 5d 11 80 mov %eax,0x80115db8 ptable.eq[i] = 0; 80105048: 8b 45 e8 mov -0x18(%ebp),%eax 8010504b: 05 cc 08 00 00 add $0x8cc,%eax 80105050: c7 04 85 84 39 11 80 movl $0x0,-0x7feec67c(,%eax,4) 80105057: 00 00 00 00 } else if(ptable.atop == 0 && ptable.etop > 0){ //cprintf("aq is empty now...\n"); //printptable(); //cprintf("Moving eQ to Aq\n"); for(int i = 0; i < ptable.etop; ++i){ 8010505b: 83 45 e8 01 addl $0x1,-0x18(%ebp) 8010505f: a1 bc 5d 11 80 mov 0x80115dbc,%eax 80105064: 3b 45 e8 cmp -0x18(%ebp),%eax 80105067: 0f 8f 79 ff ff ff jg 80104fe6 <scheduler+0x449> ptable.atop++; ptable.eq[i] = 0; //cprintf("Doing the switch...\n"); // printptable(); } ptable.etop = 0; 8010506d: c7 05 bc 5d 11 80 00 movl $0x0,0x80115dbc 80105074: 00 00 00 switchkvm(); p->quantumsize += 10; proc=0; }*/ release(&ptable.lock); 80105077: 83 ec 0c sub $0xc,%esp 8010507a: 68 80 39 11 80 push $0x80113980 8010507f: e8 ae 04 00 00 call 80105532 <release> 80105084: 83 c4 10 add $0x10,%esp } 80105087: e9 3b fb ff ff jmp 80104bc7 <scheduler+0x2a> 8010508c <sched>: // Enter scheduler. Must hold only ptable.lock // and have changed proc->state. void sched(void) { 8010508c: 55 push %ebp 8010508d: 89 e5 mov %esp,%ebp 8010508f: 83 ec 18 sub $0x18,%esp int intena; if(!holding(&ptable.lock)) 80105092: 83 ec 0c sub $0xc,%esp 80105095: 68 80 39 11 80 push $0x80113980 8010509a: e8 5f 05 00 00 call 801055fe <holding> 8010509f: 83 c4 10 add $0x10,%esp 801050a2: 85 c0 test %eax,%eax 801050a4: 75 0d jne 801050b3 <sched+0x27> panic("sched ptable.lock"); 801050a6: 83 ec 0c sub $0xc,%esp 801050a9: 68 06 8e 10 80 push $0x80108e06 801050ae: e8 b3 b4 ff ff call 80100566 <panic> if(cpu->ncli != 1) 801050b3: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801050b9: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax 801050bf: 83 f8 01 cmp $0x1,%eax 801050c2: 74 0d je 801050d1 <sched+0x45> panic("sched locks"); 801050c4: 83 ec 0c sub $0xc,%esp 801050c7: 68 18 8e 10 80 push $0x80108e18 801050cc: e8 95 b4 ff ff call 80100566 <panic> if(proc->state == RUNNING) 801050d1: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801050d7: 8b 40 0c mov 0xc(%eax),%eax 801050da: 83 f8 04 cmp $0x4,%eax 801050dd: 75 0d jne 801050ec <sched+0x60> panic("sched running"); 801050df: 83 ec 0c sub $0xc,%esp 801050e2: 68 24 8e 10 80 push $0x80108e24 801050e7: e8 7a b4 ff ff call 80100566 <panic> if(readeflags()&FL_IF) 801050ec: e8 4d f3 ff ff call 8010443e <readeflags> 801050f1: 25 00 02 00 00 and $0x200,%eax 801050f6: 85 c0 test %eax,%eax 801050f8: 74 0d je 80105107 <sched+0x7b> panic("sched interruptible"); 801050fa: 83 ec 0c sub $0xc,%esp 801050fd: 68 32 8e 10 80 push $0x80108e32 80105102: e8 5f b4 ff ff call 80100566 <panic> intena = cpu->intena; 80105107: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010510d: 8b 80 b0 00 00 00 mov 0xb0(%eax),%eax 80105113: 89 45 f4 mov %eax,-0xc(%ebp) swtch(&proc->context, cpu->scheduler); 80105116: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010511c: 8b 40 04 mov 0x4(%eax),%eax 8010511f: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx 80105126: 83 c2 1c add $0x1c,%edx 80105129: 83 ec 08 sub $0x8,%esp 8010512c: 50 push %eax 8010512d: 52 push %edx 8010512e: e8 6f 08 00 00 call 801059a2 <swtch> 80105133: 83 c4 10 add $0x10,%esp cpu->intena = intena; 80105136: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010513c: 8b 55 f4 mov -0xc(%ebp),%edx 8010513f: 89 90 b0 00 00 00 mov %edx,0xb0(%eax) } 80105145: 90 nop 80105146: c9 leave 80105147: c3 ret 80105148 <yield>: // Give up the CPU for one scheduling round. void yield(void) { 80105148: 55 push %ebp 80105149: 89 e5 mov %esp,%ebp 8010514b: 83 ec 08 sub $0x8,%esp acquire(&ptable.lock); //DOC: yieldlock 8010514e: 83 ec 0c sub $0xc,%esp 80105151: 68 80 39 11 80 push $0x80113980 80105156: e8 70 03 00 00 call 801054cb <acquire> 8010515b: 83 c4 10 add $0x10,%esp proc->state = RUNNABLE; 8010515e: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105164: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) sched(); 8010516b: e8 1c ff ff ff call 8010508c <sched> release(&ptable.lock); 80105170: 83 ec 0c sub $0xc,%esp 80105173: 68 80 39 11 80 push $0x80113980 80105178: e8 b5 03 00 00 call 80105532 <release> 8010517d: 83 c4 10 add $0x10,%esp } 80105180: 90 nop 80105181: c9 leave 80105182: c3 ret 80105183 <forkret>: // A fork child's very first scheduling by scheduler() // will swtch here. "Return" to user space. void forkret(void) { 80105183: 55 push %ebp 80105184: 89 e5 mov %esp,%ebp 80105186: 83 ec 08 sub $0x8,%esp static int first = 1; // Still holding ptable.lock from scheduler. release(&ptable.lock); 80105189: 83 ec 0c sub $0xc,%esp 8010518c: 68 80 39 11 80 push $0x80113980 80105191: e8 9c 03 00 00 call 80105532 <release> 80105196: 83 c4 10 add $0x10,%esp if (first) { 80105199: a1 08 c0 10 80 mov 0x8010c008,%eax 8010519e: 85 c0 test %eax,%eax 801051a0: 74 24 je 801051c6 <forkret+0x43> // Some initialization functions must be run in the context // of a regular process (e.g., they call sleep), and thus cannot // be run from main(). first = 0; 801051a2: c7 05 08 c0 10 80 00 movl $0x0,0x8010c008 801051a9: 00 00 00 iinit(ROOTDEV); 801051ac: 83 ec 0c sub $0xc,%esp 801051af: 6a 01 push $0x1 801051b1: e8 88 c4 ff ff call 8010163e <iinit> 801051b6: 83 c4 10 add $0x10,%esp initlog(ROOTDEV); 801051b9: 83 ec 0c sub $0xc,%esp 801051bc: 6a 01 push $0x1 801051be: e8 6c e1 ff ff call 8010332f <initlog> 801051c3: 83 c4 10 add $0x10,%esp } // Return to "caller", actually trapret (see allocproc). } 801051c6: 90 nop 801051c7: c9 leave 801051c8: c3 ret 801051c9 <sleep>: // Atomically release lock and sleep on chan. // Reacquires lock when awakened. void sleep(void *chan, struct spinlock *lk) { 801051c9: 55 push %ebp 801051ca: 89 e5 mov %esp,%ebp 801051cc: 83 ec 08 sub $0x8,%esp if(proc == 0) 801051cf: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801051d5: 85 c0 test %eax,%eax 801051d7: 75 0d jne 801051e6 <sleep+0x1d> panic("sleep"); 801051d9: 83 ec 0c sub $0xc,%esp 801051dc: 68 46 8e 10 80 push $0x80108e46 801051e1: e8 80 b3 ff ff call 80100566 <panic> if(lk == 0) 801051e6: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 801051ea: 75 0d jne 801051f9 <sleep+0x30> panic("sleep without lk"); 801051ec: 83 ec 0c sub $0xc,%esp 801051ef: 68 4c 8e 10 80 push $0x80108e4c 801051f4: e8 6d b3 ff ff call 80100566 <panic> // change p->state and then call sched. // Once we hold ptable.lock, we can be // guaranteed that we won't miss any wakeup // (wakeup runs with ptable.lock locked), // so it's okay to release lk. if(lk != &ptable.lock){ //DOC: sleeplock0 801051f9: 81 7d 0c 80 39 11 80 cmpl $0x80113980,0xc(%ebp) 80105200: 74 1e je 80105220 <sleep+0x57> acquire(&ptable.lock); //DOC: sleeplock1 80105202: 83 ec 0c sub $0xc,%esp 80105205: 68 80 39 11 80 push $0x80113980 8010520a: e8 bc 02 00 00 call 801054cb <acquire> 8010520f: 83 c4 10 add $0x10,%esp release(lk); 80105212: 83 ec 0c sub $0xc,%esp 80105215: ff 75 0c pushl 0xc(%ebp) 80105218: e8 15 03 00 00 call 80105532 <release> 8010521d: 83 c4 10 add $0x10,%esp } // Go to sleep. proc->chan = chan; 80105220: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105226: 8b 55 08 mov 0x8(%ebp),%edx 80105229: 89 50 20 mov %edx,0x20(%eax) proc->state = SLEEPING; 8010522c: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105232: c7 40 0c 02 00 00 00 movl $0x2,0xc(%eax) sched(); 80105239: e8 4e fe ff ff call 8010508c <sched> // Tidy up. proc->chan = 0; 8010523e: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105244: c7 40 20 00 00 00 00 movl $0x0,0x20(%eax) // Reacquire original lock. if(lk != &ptable.lock){ //DOC: sleeplock2 8010524b: 81 7d 0c 80 39 11 80 cmpl $0x80113980,0xc(%ebp) 80105252: 74 1e je 80105272 <sleep+0xa9> release(&ptable.lock); 80105254: 83 ec 0c sub $0xc,%esp 80105257: 68 80 39 11 80 push $0x80113980 8010525c: e8 d1 02 00 00 call 80105532 <release> 80105261: 83 c4 10 add $0x10,%esp acquire(lk); 80105264: 83 ec 0c sub $0xc,%esp 80105267: ff 75 0c pushl 0xc(%ebp) 8010526a: e8 5c 02 00 00 call 801054cb <acquire> 8010526f: 83 c4 10 add $0x10,%esp } } 80105272: 90 nop 80105273: c9 leave 80105274: c3 ret 80105275 <wakeup1>: //PAGEBREAK! // Wake up all processes sleeping on chan. // The ptable lock must be held. static void wakeup1(void *chan) { 80105275: 55 push %ebp 80105276: 89 e5 mov %esp,%ebp 80105278: 83 ec 10 sub $0x10,%esp struct proc *p; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 8010527b: c7 45 fc b4 39 11 80 movl $0x801139b4,-0x4(%ebp) 80105282: eb 27 jmp 801052ab <wakeup1+0x36> if(p->state == SLEEPING && p->chan == chan) 80105284: 8b 45 fc mov -0x4(%ebp),%eax 80105287: 8b 40 0c mov 0xc(%eax),%eax 8010528a: 83 f8 02 cmp $0x2,%eax 8010528d: 75 15 jne 801052a4 <wakeup1+0x2f> 8010528f: 8b 45 fc mov -0x4(%ebp),%eax 80105292: 8b 40 20 mov 0x20(%eax),%eax 80105295: 3b 45 08 cmp 0x8(%ebp),%eax 80105298: 75 0a jne 801052a4 <wakeup1+0x2f> p->state = RUNNABLE; 8010529a: 8b 45 fc mov -0x4(%ebp),%eax 8010529d: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) static void wakeup1(void *chan) { struct proc *p; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 801052a4: 81 45 fc 84 00 00 00 addl $0x84,-0x4(%ebp) 801052ab: 81 7d fc b4 5a 11 80 cmpl $0x80115ab4,-0x4(%ebp) 801052b2: 72 d0 jb 80105284 <wakeup1+0xf> if(p->state == SLEEPING && p->chan == chan) p->state = RUNNABLE; } 801052b4: 90 nop 801052b5: c9 leave 801052b6: c3 ret 801052b7 <wakeup>: // Wake up all processes sleeping on chan. void wakeup(void *chan) { 801052b7: 55 push %ebp 801052b8: 89 e5 mov %esp,%ebp 801052ba: 83 ec 08 sub $0x8,%esp acquire(&ptable.lock); 801052bd: 83 ec 0c sub $0xc,%esp 801052c0: 68 80 39 11 80 push $0x80113980 801052c5: e8 01 02 00 00 call 801054cb <acquire> 801052ca: 83 c4 10 add $0x10,%esp wakeup1(chan); 801052cd: 83 ec 0c sub $0xc,%esp 801052d0: ff 75 08 pushl 0x8(%ebp) 801052d3: e8 9d ff ff ff call 80105275 <wakeup1> 801052d8: 83 c4 10 add $0x10,%esp release(&ptable.lock); 801052db: 83 ec 0c sub $0xc,%esp 801052de: 68 80 39 11 80 push $0x80113980 801052e3: e8 4a 02 00 00 call 80105532 <release> 801052e8: 83 c4 10 add $0x10,%esp } 801052eb: 90 nop 801052ec: c9 leave 801052ed: c3 ret 801052ee <kill>: // Kill the process with the given pid. // Process won't exit until it returns // to user space (see trap in trap.c). int kill(int pid) { 801052ee: 55 push %ebp 801052ef: 89 e5 mov %esp,%ebp 801052f1: 83 ec 18 sub $0x18,%esp struct proc *p; acquire(&ptable.lock); 801052f4: 83 ec 0c sub $0xc,%esp 801052f7: 68 80 39 11 80 push $0x80113980 801052fc: e8 ca 01 00 00 call 801054cb <acquire> 80105301: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80105304: c7 45 f4 b4 39 11 80 movl $0x801139b4,-0xc(%ebp) 8010530b: eb 48 jmp 80105355 <kill+0x67> if(p->pid == pid){ 8010530d: 8b 45 f4 mov -0xc(%ebp),%eax 80105310: 8b 40 10 mov 0x10(%eax),%eax 80105313: 3b 45 08 cmp 0x8(%ebp),%eax 80105316: 75 36 jne 8010534e <kill+0x60> p->killed = 1; 80105318: 8b 45 f4 mov -0xc(%ebp),%eax 8010531b: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax) // Wake process from sleep if necessary. if(p->state == SLEEPING) 80105322: 8b 45 f4 mov -0xc(%ebp),%eax 80105325: 8b 40 0c mov 0xc(%eax),%eax 80105328: 83 f8 02 cmp $0x2,%eax 8010532b: 75 0a jne 80105337 <kill+0x49> p->state = RUNNABLE; 8010532d: 8b 45 f4 mov -0xc(%ebp),%eax 80105330: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) release(&ptable.lock); 80105337: 83 ec 0c sub $0xc,%esp 8010533a: 68 80 39 11 80 push $0x80113980 8010533f: e8 ee 01 00 00 call 80105532 <release> 80105344: 83 c4 10 add $0x10,%esp return 0; 80105347: b8 00 00 00 00 mov $0x0,%eax 8010534c: eb 25 jmp 80105373 <kill+0x85> kill(int pid) { struct proc *p; acquire(&ptable.lock); for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 8010534e: 81 45 f4 84 00 00 00 addl $0x84,-0xc(%ebp) 80105355: 81 7d f4 b4 5a 11 80 cmpl $0x80115ab4,-0xc(%ebp) 8010535c: 72 af jb 8010530d <kill+0x1f> p->state = RUNNABLE; release(&ptable.lock); return 0; } } release(&ptable.lock); 8010535e: 83 ec 0c sub $0xc,%esp 80105361: 68 80 39 11 80 push $0x80113980 80105366: e8 c7 01 00 00 call 80105532 <release> 8010536b: 83 c4 10 add $0x10,%esp return -1; 8010536e: b8 ff ff ff ff mov $0xffffffff,%eax } 80105373: c9 leave 80105374: c3 ret 80105375 <procdump>: // Print a process listing to console. For debugging. // Runs when user types ^P on console. // No lock to avoid wedging a stuck machine further. void procdump(void) { 80105375: 55 push %ebp 80105376: 89 e5 mov %esp,%ebp 80105378: 83 ec 48 sub $0x48,%esp int i; struct proc *p; char *state; uint pc[10]; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 8010537b: c7 45 f0 b4 39 11 80 movl $0x801139b4,-0x10(%ebp) 80105382: e9 da 00 00 00 jmp 80105461 <procdump+0xec> if(p->state == UNUSED) 80105387: 8b 45 f0 mov -0x10(%ebp),%eax 8010538a: 8b 40 0c mov 0xc(%eax),%eax 8010538d: 85 c0 test %eax,%eax 8010538f: 0f 84 c4 00 00 00 je 80105459 <procdump+0xe4> continue; if(p->state >= 0 && p->state < NELEM(states) && states[p->state]) 80105395: 8b 45 f0 mov -0x10(%ebp),%eax 80105398: 8b 40 0c mov 0xc(%eax),%eax 8010539b: 83 f8 05 cmp $0x5,%eax 8010539e: 77 23 ja 801053c3 <procdump+0x4e> 801053a0: 8b 45 f0 mov -0x10(%ebp),%eax 801053a3: 8b 40 0c mov 0xc(%eax),%eax 801053a6: 8b 04 85 0c c0 10 80 mov -0x7fef3ff4(,%eax,4),%eax 801053ad: 85 c0 test %eax,%eax 801053af: 74 12 je 801053c3 <procdump+0x4e> state = states[p->state]; 801053b1: 8b 45 f0 mov -0x10(%ebp),%eax 801053b4: 8b 40 0c mov 0xc(%eax),%eax 801053b7: 8b 04 85 0c c0 10 80 mov -0x7fef3ff4(,%eax,4),%eax 801053be: 89 45 ec mov %eax,-0x14(%ebp) 801053c1: eb 07 jmp 801053ca <procdump+0x55> else state = "???"; 801053c3: c7 45 ec 5d 8e 10 80 movl $0x80108e5d,-0x14(%ebp) cprintf("%d %s %s", p->pid, state, p->name); 801053ca: 8b 45 f0 mov -0x10(%ebp),%eax 801053cd: 8d 50 6c lea 0x6c(%eax),%edx 801053d0: 8b 45 f0 mov -0x10(%ebp),%eax 801053d3: 8b 40 10 mov 0x10(%eax),%eax 801053d6: 52 push %edx 801053d7: ff 75 ec pushl -0x14(%ebp) 801053da: 50 push %eax 801053db: 68 61 8e 10 80 push $0x80108e61 801053e0: e8 e1 af ff ff call 801003c6 <cprintf> 801053e5: 83 c4 10 add $0x10,%esp if(p->state == SLEEPING){ 801053e8: 8b 45 f0 mov -0x10(%ebp),%eax 801053eb: 8b 40 0c mov 0xc(%eax),%eax 801053ee: 83 f8 02 cmp $0x2,%eax 801053f1: 75 54 jne 80105447 <procdump+0xd2> getcallerpcs((uint*)p->context->ebp+2, pc); 801053f3: 8b 45 f0 mov -0x10(%ebp),%eax 801053f6: 8b 40 1c mov 0x1c(%eax),%eax 801053f9: 8b 40 0c mov 0xc(%eax),%eax 801053fc: 83 c0 08 add $0x8,%eax 801053ff: 89 c2 mov %eax,%edx 80105401: 83 ec 08 sub $0x8,%esp 80105404: 8d 45 c4 lea -0x3c(%ebp),%eax 80105407: 50 push %eax 80105408: 52 push %edx 80105409: e8 76 01 00 00 call 80105584 <getcallerpcs> 8010540e: 83 c4 10 add $0x10,%esp for(i=0; i<10 && pc[i] != 0; i++) 80105411: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80105418: eb 1c jmp 80105436 <procdump+0xc1> cprintf(" %p", pc[i]); 8010541a: 8b 45 f4 mov -0xc(%ebp),%eax 8010541d: 8b 44 85 c4 mov -0x3c(%ebp,%eax,4),%eax 80105421: 83 ec 08 sub $0x8,%esp 80105424: 50 push %eax 80105425: 68 6a 8e 10 80 push $0x80108e6a 8010542a: e8 97 af ff ff call 801003c6 <cprintf> 8010542f: 83 c4 10 add $0x10,%esp else state = "???"; cprintf("%d %s %s", p->pid, state, p->name); if(p->state == SLEEPING){ getcallerpcs((uint*)p->context->ebp+2, pc); for(i=0; i<10 && pc[i] != 0; i++) 80105432: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80105436: 83 7d f4 09 cmpl $0x9,-0xc(%ebp) 8010543a: 7f 0b jg 80105447 <procdump+0xd2> 8010543c: 8b 45 f4 mov -0xc(%ebp),%eax 8010543f: 8b 44 85 c4 mov -0x3c(%ebp,%eax,4),%eax 80105443: 85 c0 test %eax,%eax 80105445: 75 d3 jne 8010541a <procdump+0xa5> cprintf(" %p", pc[i]); } cprintf("\n"); 80105447: 83 ec 0c sub $0xc,%esp 8010544a: 68 6e 8e 10 80 push $0x80108e6e 8010544f: e8 72 af ff ff call 801003c6 <cprintf> 80105454: 83 c4 10 add $0x10,%esp 80105457: eb 01 jmp 8010545a <procdump+0xe5> char *state; uint pc[10]; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ if(p->state == UNUSED) continue; 80105459: 90 nop int i; struct proc *p; char *state; uint pc[10]; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 8010545a: 81 45 f0 84 00 00 00 addl $0x84,-0x10(%ebp) 80105461: 81 7d f0 b4 5a 11 80 cmpl $0x80115ab4,-0x10(%ebp) 80105468: 0f 82 19 ff ff ff jb 80105387 <procdump+0x12> for(i=0; i<10 && pc[i] != 0; i++) cprintf(" %p", pc[i]); } cprintf("\n"); } } 8010546e: 90 nop 8010546f: c9 leave 80105470: c3 ret 80105471 <readeflags>: asm volatile("ltr %0" : : "r" (sel)); } static inline uint readeflags(void) { 80105471: 55 push %ebp 80105472: 89 e5 mov %esp,%ebp 80105474: 83 ec 10 sub $0x10,%esp uint eflags; asm volatile("pushfl; popl %0" : "=r" (eflags)); 80105477: 9c pushf 80105478: 58 pop %eax 80105479: 89 45 fc mov %eax,-0x4(%ebp) return eflags; 8010547c: 8b 45 fc mov -0x4(%ebp),%eax } 8010547f: c9 leave 80105480: c3 ret 80105481 <cli>: asm volatile("movw %0, %%gs" : : "r" (v)); } static inline void cli(void) { 80105481: 55 push %ebp 80105482: 89 e5 mov %esp,%ebp asm volatile("cli"); 80105484: fa cli } 80105485: 90 nop 80105486: 5d pop %ebp 80105487: c3 ret 80105488 <sti>: static inline void sti(void) { 80105488: 55 push %ebp 80105489: 89 e5 mov %esp,%ebp asm volatile("sti"); 8010548b: fb sti } 8010548c: 90 nop 8010548d: 5d pop %ebp 8010548e: c3 ret 8010548f <xchg>: static inline uint xchg(volatile uint *addr, uint newval) { 8010548f: 55 push %ebp 80105490: 89 e5 mov %esp,%ebp 80105492: 83 ec 10 sub $0x10,%esp uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 80105495: 8b 55 08 mov 0x8(%ebp),%edx 80105498: 8b 45 0c mov 0xc(%ebp),%eax 8010549b: 8b 4d 08 mov 0x8(%ebp),%ecx 8010549e: f0 87 02 lock xchg %eax,(%edx) 801054a1: 89 45 fc mov %eax,-0x4(%ebp) "+m" (*addr), "=a" (result) : "1" (newval) : "cc"); return result; 801054a4: 8b 45 fc mov -0x4(%ebp),%eax } 801054a7: c9 leave 801054a8: c3 ret 801054a9 <initlock>: #include "proc.h" #include "spinlock.h" void initlock(struct spinlock *lk, char *name) { 801054a9: 55 push %ebp 801054aa: 89 e5 mov %esp,%ebp lk->name = name; 801054ac: 8b 45 08 mov 0x8(%ebp),%eax 801054af: 8b 55 0c mov 0xc(%ebp),%edx 801054b2: 89 50 04 mov %edx,0x4(%eax) lk->locked = 0; 801054b5: 8b 45 08 mov 0x8(%ebp),%eax 801054b8: c7 00 00 00 00 00 movl $0x0,(%eax) lk->cpu = 0; 801054be: 8b 45 08 mov 0x8(%ebp),%eax 801054c1: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) } 801054c8: 90 nop 801054c9: 5d pop %ebp 801054ca: c3 ret 801054cb <acquire>: // Loops (spins) until the lock is acquired. // Holding a lock for a long time may cause // other CPUs to waste time spinning to acquire it. void acquire(struct spinlock *lk) { 801054cb: 55 push %ebp 801054cc: 89 e5 mov %esp,%ebp 801054ce: 83 ec 08 sub $0x8,%esp pushcli(); // disable interrupts to avoid deadlock. 801054d1: e8 52 01 00 00 call 80105628 <pushcli> if(holding(lk)) 801054d6: 8b 45 08 mov 0x8(%ebp),%eax 801054d9: 83 ec 0c sub $0xc,%esp 801054dc: 50 push %eax 801054dd: e8 1c 01 00 00 call 801055fe <holding> 801054e2: 83 c4 10 add $0x10,%esp 801054e5: 85 c0 test %eax,%eax 801054e7: 74 0d je 801054f6 <acquire+0x2b> panic("acquire"); 801054e9: 83 ec 0c sub $0xc,%esp 801054ec: 68 9a 8e 10 80 push $0x80108e9a 801054f1: e8 70 b0 ff ff call 80100566 <panic> // The xchg is atomic. // It also serializes, so that reads after acquire are not // reordered before it. while(xchg(&lk->locked, 1) != 0) 801054f6: 90 nop 801054f7: 8b 45 08 mov 0x8(%ebp),%eax 801054fa: 83 ec 08 sub $0x8,%esp 801054fd: 6a 01 push $0x1 801054ff: 50 push %eax 80105500: e8 8a ff ff ff call 8010548f <xchg> 80105505: 83 c4 10 add $0x10,%esp 80105508: 85 c0 test %eax,%eax 8010550a: 75 eb jne 801054f7 <acquire+0x2c> ; // Record info about lock acquisition for debugging. lk->cpu = cpu; 8010550c: 8b 45 08 mov 0x8(%ebp),%eax 8010550f: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80105516: 89 50 08 mov %edx,0x8(%eax) getcallerpcs(&lk, lk->pcs); 80105519: 8b 45 08 mov 0x8(%ebp),%eax 8010551c: 83 c0 0c add $0xc,%eax 8010551f: 83 ec 08 sub $0x8,%esp 80105522: 50 push %eax 80105523: 8d 45 08 lea 0x8(%ebp),%eax 80105526: 50 push %eax 80105527: e8 58 00 00 00 call 80105584 <getcallerpcs> 8010552c: 83 c4 10 add $0x10,%esp } 8010552f: 90 nop 80105530: c9 leave 80105531: c3 ret 80105532 <release>: // Release the lock. void release(struct spinlock *lk) { 80105532: 55 push %ebp 80105533: 89 e5 mov %esp,%ebp 80105535: 83 ec 08 sub $0x8,%esp if(!holding(lk)) 80105538: 83 ec 0c sub $0xc,%esp 8010553b: ff 75 08 pushl 0x8(%ebp) 8010553e: e8 bb 00 00 00 call 801055fe <holding> 80105543: 83 c4 10 add $0x10,%esp 80105546: 85 c0 test %eax,%eax 80105548: 75 0d jne 80105557 <release+0x25> panic("release"); 8010554a: 83 ec 0c sub $0xc,%esp 8010554d: 68 a2 8e 10 80 push $0x80108ea2 80105552: e8 0f b0 ff ff call 80100566 <panic> lk->pcs[0] = 0; 80105557: 8b 45 08 mov 0x8(%ebp),%eax 8010555a: c7 40 0c 00 00 00 00 movl $0x0,0xc(%eax) lk->cpu = 0; 80105561: 8b 45 08 mov 0x8(%ebp),%eax 80105564: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) // But the 2007 Intel 64 Architecture Memory Ordering White // Paper says that Intel 64 and IA-32 will not move a load // after a store. So lock->locked = 0 would work here. // The xchg being asm volatile ensures gcc emits it after // the above assignments (and after the critical section). xchg(&lk->locked, 0); 8010556b: 8b 45 08 mov 0x8(%ebp),%eax 8010556e: 83 ec 08 sub $0x8,%esp 80105571: 6a 00 push $0x0 80105573: 50 push %eax 80105574: e8 16 ff ff ff call 8010548f <xchg> 80105579: 83 c4 10 add $0x10,%esp popcli(); 8010557c: e8 ec 00 00 00 call 8010566d <popcli> } 80105581: 90 nop 80105582: c9 leave 80105583: c3 ret 80105584 <getcallerpcs>: // Record the current call stack in pcs[] by following the %ebp chain. void getcallerpcs(void *v, uint pcs[]) { 80105584: 55 push %ebp 80105585: 89 e5 mov %esp,%ebp 80105587: 83 ec 10 sub $0x10,%esp uint *ebp; int i; ebp = (uint*)v - 2; 8010558a: 8b 45 08 mov 0x8(%ebp),%eax 8010558d: 83 e8 08 sub $0x8,%eax 80105590: 89 45 fc mov %eax,-0x4(%ebp) for(i = 0; i < 10; i++){ 80105593: c7 45 f8 00 00 00 00 movl $0x0,-0x8(%ebp) 8010559a: eb 38 jmp 801055d4 <getcallerpcs+0x50> if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) 8010559c: 83 7d fc 00 cmpl $0x0,-0x4(%ebp) 801055a0: 74 53 je 801055f5 <getcallerpcs+0x71> 801055a2: 81 7d fc ff ff ff 7f cmpl $0x7fffffff,-0x4(%ebp) 801055a9: 76 4a jbe 801055f5 <getcallerpcs+0x71> 801055ab: 83 7d fc ff cmpl $0xffffffff,-0x4(%ebp) 801055af: 74 44 je 801055f5 <getcallerpcs+0x71> break; pcs[i] = ebp[1]; // saved %eip 801055b1: 8b 45 f8 mov -0x8(%ebp),%eax 801055b4: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 801055bb: 8b 45 0c mov 0xc(%ebp),%eax 801055be: 01 c2 add %eax,%edx 801055c0: 8b 45 fc mov -0x4(%ebp),%eax 801055c3: 8b 40 04 mov 0x4(%eax),%eax 801055c6: 89 02 mov %eax,(%edx) ebp = (uint*)ebp[0]; // saved %ebp 801055c8: 8b 45 fc mov -0x4(%ebp),%eax 801055cb: 8b 00 mov (%eax),%eax 801055cd: 89 45 fc mov %eax,-0x4(%ebp) { uint *ebp; int i; ebp = (uint*)v - 2; for(i = 0; i < 10; i++){ 801055d0: 83 45 f8 01 addl $0x1,-0x8(%ebp) 801055d4: 83 7d f8 09 cmpl $0x9,-0x8(%ebp) 801055d8: 7e c2 jle 8010559c <getcallerpcs+0x18> if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) break; pcs[i] = ebp[1]; // saved %eip ebp = (uint*)ebp[0]; // saved %ebp } for(; i < 10; i++) 801055da: eb 19 jmp 801055f5 <getcallerpcs+0x71> pcs[i] = 0; 801055dc: 8b 45 f8 mov -0x8(%ebp),%eax 801055df: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 801055e6: 8b 45 0c mov 0xc(%ebp),%eax 801055e9: 01 d0 add %edx,%eax 801055eb: c7 00 00 00 00 00 movl $0x0,(%eax) if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) break; pcs[i] = ebp[1]; // saved %eip ebp = (uint*)ebp[0]; // saved %ebp } for(; i < 10; i++) 801055f1: 83 45 f8 01 addl $0x1,-0x8(%ebp) 801055f5: 83 7d f8 09 cmpl $0x9,-0x8(%ebp) 801055f9: 7e e1 jle 801055dc <getcallerpcs+0x58> pcs[i] = 0; } 801055fb: 90 nop 801055fc: c9 leave 801055fd: c3 ret 801055fe <holding>: // Check whether this cpu is holding the lock. int holding(struct spinlock *lock) { 801055fe: 55 push %ebp 801055ff: 89 e5 mov %esp,%ebp return lock->locked && lock->cpu == cpu; 80105601: 8b 45 08 mov 0x8(%ebp),%eax 80105604: 8b 00 mov (%eax),%eax 80105606: 85 c0 test %eax,%eax 80105608: 74 17 je 80105621 <holding+0x23> 8010560a: 8b 45 08 mov 0x8(%ebp),%eax 8010560d: 8b 50 08 mov 0x8(%eax),%edx 80105610: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80105616: 39 c2 cmp %eax,%edx 80105618: 75 07 jne 80105621 <holding+0x23> 8010561a: b8 01 00 00 00 mov $0x1,%eax 8010561f: eb 05 jmp 80105626 <holding+0x28> 80105621: b8 00 00 00 00 mov $0x0,%eax } 80105626: 5d pop %ebp 80105627: c3 ret 80105628 <pushcli>: // it takes two popcli to undo two pushcli. Also, if interrupts // are off, then pushcli, popcli leaves them off. void pushcli(void) { 80105628: 55 push %ebp 80105629: 89 e5 mov %esp,%ebp 8010562b: 83 ec 10 sub $0x10,%esp int eflags; eflags = readeflags(); 8010562e: e8 3e fe ff ff call 80105471 <readeflags> 80105633: 89 45 fc mov %eax,-0x4(%ebp) cli(); 80105636: e8 46 fe ff ff call 80105481 <cli> if(cpu->ncli++ == 0) 8010563b: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 80105642: 8b 82 ac 00 00 00 mov 0xac(%edx),%eax 80105648: 8d 48 01 lea 0x1(%eax),%ecx 8010564b: 89 8a ac 00 00 00 mov %ecx,0xac(%edx) 80105651: 85 c0 test %eax,%eax 80105653: 75 15 jne 8010566a <pushcli+0x42> cpu->intena = eflags & FL_IF; 80105655: 65 a1 00 00 00 00 mov %gs:0x0,%eax 8010565b: 8b 55 fc mov -0x4(%ebp),%edx 8010565e: 81 e2 00 02 00 00 and $0x200,%edx 80105664: 89 90 b0 00 00 00 mov %edx,0xb0(%eax) } 8010566a: 90 nop 8010566b: c9 leave 8010566c: c3 ret 8010566d <popcli>: void popcli(void) { 8010566d: 55 push %ebp 8010566e: 89 e5 mov %esp,%ebp 80105670: 83 ec 08 sub $0x8,%esp if(readeflags()&FL_IF) 80105673: e8 f9 fd ff ff call 80105471 <readeflags> 80105678: 25 00 02 00 00 and $0x200,%eax 8010567d: 85 c0 test %eax,%eax 8010567f: 74 0d je 8010568e <popcli+0x21> panic("popcli - interruptible"); 80105681: 83 ec 0c sub $0xc,%esp 80105684: 68 aa 8e 10 80 push $0x80108eaa 80105689: e8 d8 ae ff ff call 80100566 <panic> if(--cpu->ncli < 0) 8010568e: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80105694: 8b 90 ac 00 00 00 mov 0xac(%eax),%edx 8010569a: 83 ea 01 sub $0x1,%edx 8010569d: 89 90 ac 00 00 00 mov %edx,0xac(%eax) 801056a3: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax 801056a9: 85 c0 test %eax,%eax 801056ab: 79 0d jns 801056ba <popcli+0x4d> panic("popcli"); 801056ad: 83 ec 0c sub $0xc,%esp 801056b0: 68 c1 8e 10 80 push $0x80108ec1 801056b5: e8 ac ae ff ff call 80100566 <panic> if(cpu->ncli == 0 && cpu->intena) 801056ba: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801056c0: 8b 80 ac 00 00 00 mov 0xac(%eax),%eax 801056c6: 85 c0 test %eax,%eax 801056c8: 75 15 jne 801056df <popcli+0x72> 801056ca: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801056d0: 8b 80 b0 00 00 00 mov 0xb0(%eax),%eax 801056d6: 85 c0 test %eax,%eax 801056d8: 74 05 je 801056df <popcli+0x72> sti(); 801056da: e8 a9 fd ff ff call 80105488 <sti> } 801056df: 90 nop 801056e0: c9 leave 801056e1: c3 ret 801056e2 <stosb>: "cc"); } static inline void stosb(void *addr, int data, int cnt) { 801056e2: 55 push %ebp 801056e3: 89 e5 mov %esp,%ebp 801056e5: 57 push %edi 801056e6: 53 push %ebx asm volatile("cld; rep stosb" : 801056e7: 8b 4d 08 mov 0x8(%ebp),%ecx 801056ea: 8b 55 10 mov 0x10(%ebp),%edx 801056ed: 8b 45 0c mov 0xc(%ebp),%eax 801056f0: 89 cb mov %ecx,%ebx 801056f2: 89 df mov %ebx,%edi 801056f4: 89 d1 mov %edx,%ecx 801056f6: fc cld 801056f7: f3 aa rep stos %al,%es:(%edi) 801056f9: 89 ca mov %ecx,%edx 801056fb: 89 fb mov %edi,%ebx 801056fd: 89 5d 08 mov %ebx,0x8(%ebp) 80105700: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 80105703: 90 nop 80105704: 5b pop %ebx 80105705: 5f pop %edi 80105706: 5d pop %ebp 80105707: c3 ret 80105708 <stosl>: static inline void stosl(void *addr, int data, int cnt) { 80105708: 55 push %ebp 80105709: 89 e5 mov %esp,%ebp 8010570b: 57 push %edi 8010570c: 53 push %ebx asm volatile("cld; rep stosl" : 8010570d: 8b 4d 08 mov 0x8(%ebp),%ecx 80105710: 8b 55 10 mov 0x10(%ebp),%edx 80105713: 8b 45 0c mov 0xc(%ebp),%eax 80105716: 89 cb mov %ecx,%ebx 80105718: 89 df mov %ebx,%edi 8010571a: 89 d1 mov %edx,%ecx 8010571c: fc cld 8010571d: f3 ab rep stos %eax,%es:(%edi) 8010571f: 89 ca mov %ecx,%edx 80105721: 89 fb mov %edi,%ebx 80105723: 89 5d 08 mov %ebx,0x8(%ebp) 80105726: 89 55 10 mov %edx,0x10(%ebp) "=D" (addr), "=c" (cnt) : "0" (addr), "1" (cnt), "a" (data) : "memory", "cc"); } 80105729: 90 nop 8010572a: 5b pop %ebx 8010572b: 5f pop %edi 8010572c: 5d pop %ebp 8010572d: c3 ret 8010572e <memset>: #include "types.h" #include "x86.h" void* memset(void *dst, int c, uint n) { 8010572e: 55 push %ebp 8010572f: 89 e5 mov %esp,%ebp if ((int)dst%4 == 0 && n%4 == 0){ 80105731: 8b 45 08 mov 0x8(%ebp),%eax 80105734: 83 e0 03 and $0x3,%eax 80105737: 85 c0 test %eax,%eax 80105739: 75 43 jne 8010577e <memset+0x50> 8010573b: 8b 45 10 mov 0x10(%ebp),%eax 8010573e: 83 e0 03 and $0x3,%eax 80105741: 85 c0 test %eax,%eax 80105743: 75 39 jne 8010577e <memset+0x50> c &= 0xFF; 80105745: 81 65 0c ff 00 00 00 andl $0xff,0xc(%ebp) stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4); 8010574c: 8b 45 10 mov 0x10(%ebp),%eax 8010574f: c1 e8 02 shr $0x2,%eax 80105752: 89 c1 mov %eax,%ecx 80105754: 8b 45 0c mov 0xc(%ebp),%eax 80105757: c1 e0 18 shl $0x18,%eax 8010575a: 89 c2 mov %eax,%edx 8010575c: 8b 45 0c mov 0xc(%ebp),%eax 8010575f: c1 e0 10 shl $0x10,%eax 80105762: 09 c2 or %eax,%edx 80105764: 8b 45 0c mov 0xc(%ebp),%eax 80105767: c1 e0 08 shl $0x8,%eax 8010576a: 09 d0 or %edx,%eax 8010576c: 0b 45 0c or 0xc(%ebp),%eax 8010576f: 51 push %ecx 80105770: 50 push %eax 80105771: ff 75 08 pushl 0x8(%ebp) 80105774: e8 8f ff ff ff call 80105708 <stosl> 80105779: 83 c4 0c add $0xc,%esp 8010577c: eb 12 jmp 80105790 <memset+0x62> } else stosb(dst, c, n); 8010577e: 8b 45 10 mov 0x10(%ebp),%eax 80105781: 50 push %eax 80105782: ff 75 0c pushl 0xc(%ebp) 80105785: ff 75 08 pushl 0x8(%ebp) 80105788: e8 55 ff ff ff call 801056e2 <stosb> 8010578d: 83 c4 0c add $0xc,%esp return dst; 80105790: 8b 45 08 mov 0x8(%ebp),%eax } 80105793: c9 leave 80105794: c3 ret 80105795 <memcmp>: int memcmp(const void *v1, const void *v2, uint n) { 80105795: 55 push %ebp 80105796: 89 e5 mov %esp,%ebp 80105798: 83 ec 10 sub $0x10,%esp const uchar *s1, *s2; s1 = v1; 8010579b: 8b 45 08 mov 0x8(%ebp),%eax 8010579e: 89 45 fc mov %eax,-0x4(%ebp) s2 = v2; 801057a1: 8b 45 0c mov 0xc(%ebp),%eax 801057a4: 89 45 f8 mov %eax,-0x8(%ebp) while(n-- > 0){ 801057a7: eb 30 jmp 801057d9 <memcmp+0x44> if(*s1 != *s2) 801057a9: 8b 45 fc mov -0x4(%ebp),%eax 801057ac: 0f b6 10 movzbl (%eax),%edx 801057af: 8b 45 f8 mov -0x8(%ebp),%eax 801057b2: 0f b6 00 movzbl (%eax),%eax 801057b5: 38 c2 cmp %al,%dl 801057b7: 74 18 je 801057d1 <memcmp+0x3c> return *s1 - *s2; 801057b9: 8b 45 fc mov -0x4(%ebp),%eax 801057bc: 0f b6 00 movzbl (%eax),%eax 801057bf: 0f b6 d0 movzbl %al,%edx 801057c2: 8b 45 f8 mov -0x8(%ebp),%eax 801057c5: 0f b6 00 movzbl (%eax),%eax 801057c8: 0f b6 c0 movzbl %al,%eax 801057cb: 29 c2 sub %eax,%edx 801057cd: 89 d0 mov %edx,%eax 801057cf: eb 1a jmp 801057eb <memcmp+0x56> s1++, s2++; 801057d1: 83 45 fc 01 addl $0x1,-0x4(%ebp) 801057d5: 83 45 f8 01 addl $0x1,-0x8(%ebp) { const uchar *s1, *s2; s1 = v1; s2 = v2; while(n-- > 0){ 801057d9: 8b 45 10 mov 0x10(%ebp),%eax 801057dc: 8d 50 ff lea -0x1(%eax),%edx 801057df: 89 55 10 mov %edx,0x10(%ebp) 801057e2: 85 c0 test %eax,%eax 801057e4: 75 c3 jne 801057a9 <memcmp+0x14> if(*s1 != *s2) return *s1 - *s2; s1++, s2++; } return 0; 801057e6: b8 00 00 00 00 mov $0x0,%eax } 801057eb: c9 leave 801057ec: c3 ret 801057ed <memmove>: void* memmove(void *dst, const void *src, uint n) { 801057ed: 55 push %ebp 801057ee: 89 e5 mov %esp,%ebp 801057f0: 83 ec 10 sub $0x10,%esp const char *s; char *d; s = src; 801057f3: 8b 45 0c mov 0xc(%ebp),%eax 801057f6: 89 45 fc mov %eax,-0x4(%ebp) d = dst; 801057f9: 8b 45 08 mov 0x8(%ebp),%eax 801057fc: 89 45 f8 mov %eax,-0x8(%ebp) if(s < d && s + n > d){ 801057ff: 8b 45 fc mov -0x4(%ebp),%eax 80105802: 3b 45 f8 cmp -0x8(%ebp),%eax 80105805: 73 54 jae 8010585b <memmove+0x6e> 80105807: 8b 55 fc mov -0x4(%ebp),%edx 8010580a: 8b 45 10 mov 0x10(%ebp),%eax 8010580d: 01 d0 add %edx,%eax 8010580f: 3b 45 f8 cmp -0x8(%ebp),%eax 80105812: 76 47 jbe 8010585b <memmove+0x6e> s += n; 80105814: 8b 45 10 mov 0x10(%ebp),%eax 80105817: 01 45 fc add %eax,-0x4(%ebp) d += n; 8010581a: 8b 45 10 mov 0x10(%ebp),%eax 8010581d: 01 45 f8 add %eax,-0x8(%ebp) while(n-- > 0) 80105820: eb 13 jmp 80105835 <memmove+0x48> *--d = *--s; 80105822: 83 6d f8 01 subl $0x1,-0x8(%ebp) 80105826: 83 6d fc 01 subl $0x1,-0x4(%ebp) 8010582a: 8b 45 fc mov -0x4(%ebp),%eax 8010582d: 0f b6 10 movzbl (%eax),%edx 80105830: 8b 45 f8 mov -0x8(%ebp),%eax 80105833: 88 10 mov %dl,(%eax) s = src; d = dst; if(s < d && s + n > d){ s += n; d += n; while(n-- > 0) 80105835: 8b 45 10 mov 0x10(%ebp),%eax 80105838: 8d 50 ff lea -0x1(%eax),%edx 8010583b: 89 55 10 mov %edx,0x10(%ebp) 8010583e: 85 c0 test %eax,%eax 80105840: 75 e0 jne 80105822 <memmove+0x35> const char *s; char *d; s = src; d = dst; if(s < d && s + n > d){ 80105842: eb 24 jmp 80105868 <memmove+0x7b> d += n; while(n-- > 0) *--d = *--s; } else while(n-- > 0) *d++ = *s++; 80105844: 8b 45 f8 mov -0x8(%ebp),%eax 80105847: 8d 50 01 lea 0x1(%eax),%edx 8010584a: 89 55 f8 mov %edx,-0x8(%ebp) 8010584d: 8b 55 fc mov -0x4(%ebp),%edx 80105850: 8d 4a 01 lea 0x1(%edx),%ecx 80105853: 89 4d fc mov %ecx,-0x4(%ebp) 80105856: 0f b6 12 movzbl (%edx),%edx 80105859: 88 10 mov %dl,(%eax) s += n; d += n; while(n-- > 0) *--d = *--s; } else while(n-- > 0) 8010585b: 8b 45 10 mov 0x10(%ebp),%eax 8010585e: 8d 50 ff lea -0x1(%eax),%edx 80105861: 89 55 10 mov %edx,0x10(%ebp) 80105864: 85 c0 test %eax,%eax 80105866: 75 dc jne 80105844 <memmove+0x57> *d++ = *s++; return dst; 80105868: 8b 45 08 mov 0x8(%ebp),%eax } 8010586b: c9 leave 8010586c: c3 ret 8010586d <memcpy>: // memcpy exists to placate GCC. Use memmove. void* memcpy(void *dst, const void *src, uint n) { 8010586d: 55 push %ebp 8010586e: 89 e5 mov %esp,%ebp return memmove(dst, src, n); 80105870: ff 75 10 pushl 0x10(%ebp) 80105873: ff 75 0c pushl 0xc(%ebp) 80105876: ff 75 08 pushl 0x8(%ebp) 80105879: e8 6f ff ff ff call 801057ed <memmove> 8010587e: 83 c4 0c add $0xc,%esp } 80105881: c9 leave 80105882: c3 ret 80105883 <strncmp>: int strncmp(const char *p, const char *q, uint n) { 80105883: 55 push %ebp 80105884: 89 e5 mov %esp,%ebp while(n > 0 && *p && *p == *q) 80105886: eb 0c jmp 80105894 <strncmp+0x11> n--, p++, q++; 80105888: 83 6d 10 01 subl $0x1,0x10(%ebp) 8010588c: 83 45 08 01 addl $0x1,0x8(%ebp) 80105890: 83 45 0c 01 addl $0x1,0xc(%ebp) } int strncmp(const char *p, const char *q, uint n) { while(n > 0 && *p && *p == *q) 80105894: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80105898: 74 1a je 801058b4 <strncmp+0x31> 8010589a: 8b 45 08 mov 0x8(%ebp),%eax 8010589d: 0f b6 00 movzbl (%eax),%eax 801058a0: 84 c0 test %al,%al 801058a2: 74 10 je 801058b4 <strncmp+0x31> 801058a4: 8b 45 08 mov 0x8(%ebp),%eax 801058a7: 0f b6 10 movzbl (%eax),%edx 801058aa: 8b 45 0c mov 0xc(%ebp),%eax 801058ad: 0f b6 00 movzbl (%eax),%eax 801058b0: 38 c2 cmp %al,%dl 801058b2: 74 d4 je 80105888 <strncmp+0x5> n--, p++, q++; if(n == 0) 801058b4: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 801058b8: 75 07 jne 801058c1 <strncmp+0x3e> return 0; 801058ba: b8 00 00 00 00 mov $0x0,%eax 801058bf: eb 16 jmp 801058d7 <strncmp+0x54> return (uchar)*p - (uchar)*q; 801058c1: 8b 45 08 mov 0x8(%ebp),%eax 801058c4: 0f b6 00 movzbl (%eax),%eax 801058c7: 0f b6 d0 movzbl %al,%edx 801058ca: 8b 45 0c mov 0xc(%ebp),%eax 801058cd: 0f b6 00 movzbl (%eax),%eax 801058d0: 0f b6 c0 movzbl %al,%eax 801058d3: 29 c2 sub %eax,%edx 801058d5: 89 d0 mov %edx,%eax } 801058d7: 5d pop %ebp 801058d8: c3 ret 801058d9 <strncpy>: char* strncpy(char *s, const char *t, int n) { 801058d9: 55 push %ebp 801058da: 89 e5 mov %esp,%ebp 801058dc: 83 ec 10 sub $0x10,%esp char *os; os = s; 801058df: 8b 45 08 mov 0x8(%ebp),%eax 801058e2: 89 45 fc mov %eax,-0x4(%ebp) while(n-- > 0 && (*s++ = *t++) != 0) 801058e5: 90 nop 801058e6: 8b 45 10 mov 0x10(%ebp),%eax 801058e9: 8d 50 ff lea -0x1(%eax),%edx 801058ec: 89 55 10 mov %edx,0x10(%ebp) 801058ef: 85 c0 test %eax,%eax 801058f1: 7e 2c jle 8010591f <strncpy+0x46> 801058f3: 8b 45 08 mov 0x8(%ebp),%eax 801058f6: 8d 50 01 lea 0x1(%eax),%edx 801058f9: 89 55 08 mov %edx,0x8(%ebp) 801058fc: 8b 55 0c mov 0xc(%ebp),%edx 801058ff: 8d 4a 01 lea 0x1(%edx),%ecx 80105902: 89 4d 0c mov %ecx,0xc(%ebp) 80105905: 0f b6 12 movzbl (%edx),%edx 80105908: 88 10 mov %dl,(%eax) 8010590a: 0f b6 00 movzbl (%eax),%eax 8010590d: 84 c0 test %al,%al 8010590f: 75 d5 jne 801058e6 <strncpy+0xd> ; while(n-- > 0) 80105911: eb 0c jmp 8010591f <strncpy+0x46> *s++ = 0; 80105913: 8b 45 08 mov 0x8(%ebp),%eax 80105916: 8d 50 01 lea 0x1(%eax),%edx 80105919: 89 55 08 mov %edx,0x8(%ebp) 8010591c: c6 00 00 movb $0x0,(%eax) char *os; os = s; while(n-- > 0 && (*s++ = *t++) != 0) ; while(n-- > 0) 8010591f: 8b 45 10 mov 0x10(%ebp),%eax 80105922: 8d 50 ff lea -0x1(%eax),%edx 80105925: 89 55 10 mov %edx,0x10(%ebp) 80105928: 85 c0 test %eax,%eax 8010592a: 7f e7 jg 80105913 <strncpy+0x3a> *s++ = 0; return os; 8010592c: 8b 45 fc mov -0x4(%ebp),%eax } 8010592f: c9 leave 80105930: c3 ret 80105931 <safestrcpy>: // Like strncpy but guaranteed to NUL-terminate. char* safestrcpy(char *s, const char *t, int n) { 80105931: 55 push %ebp 80105932: 89 e5 mov %esp,%ebp 80105934: 83 ec 10 sub $0x10,%esp char *os; os = s; 80105937: 8b 45 08 mov 0x8(%ebp),%eax 8010593a: 89 45 fc mov %eax,-0x4(%ebp) if(n <= 0) 8010593d: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80105941: 7f 05 jg 80105948 <safestrcpy+0x17> return os; 80105943: 8b 45 fc mov -0x4(%ebp),%eax 80105946: eb 31 jmp 80105979 <safestrcpy+0x48> while(--n > 0 && (*s++ = *t++) != 0) 80105948: 83 6d 10 01 subl $0x1,0x10(%ebp) 8010594c: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80105950: 7e 1e jle 80105970 <safestrcpy+0x3f> 80105952: 8b 45 08 mov 0x8(%ebp),%eax 80105955: 8d 50 01 lea 0x1(%eax),%edx 80105958: 89 55 08 mov %edx,0x8(%ebp) 8010595b: 8b 55 0c mov 0xc(%ebp),%edx 8010595e: 8d 4a 01 lea 0x1(%edx),%ecx 80105961: 89 4d 0c mov %ecx,0xc(%ebp) 80105964: 0f b6 12 movzbl (%edx),%edx 80105967: 88 10 mov %dl,(%eax) 80105969: 0f b6 00 movzbl (%eax),%eax 8010596c: 84 c0 test %al,%al 8010596e: 75 d8 jne 80105948 <safestrcpy+0x17> ; *s = 0; 80105970: 8b 45 08 mov 0x8(%ebp),%eax 80105973: c6 00 00 movb $0x0,(%eax) return os; 80105976: 8b 45 fc mov -0x4(%ebp),%eax } 80105979: c9 leave 8010597a: c3 ret 8010597b <strlen>: int strlen(const char *s) { 8010597b: 55 push %ebp 8010597c: 89 e5 mov %esp,%ebp 8010597e: 83 ec 10 sub $0x10,%esp int n; for(n = 0; s[n]; n++) 80105981: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 80105988: eb 04 jmp 8010598e <strlen+0x13> 8010598a: 83 45 fc 01 addl $0x1,-0x4(%ebp) 8010598e: 8b 55 fc mov -0x4(%ebp),%edx 80105991: 8b 45 08 mov 0x8(%ebp),%eax 80105994: 01 d0 add %edx,%eax 80105996: 0f b6 00 movzbl (%eax),%eax 80105999: 84 c0 test %al,%al 8010599b: 75 ed jne 8010598a <strlen+0xf> ; return n; 8010599d: 8b 45 fc mov -0x4(%ebp),%eax } 801059a0: c9 leave 801059a1: c3 ret 801059a2 <swtch>: # Save current register context in old # and then load register context from new. .globl swtch swtch: movl 4(%esp), %eax 801059a2: 8b 44 24 04 mov 0x4(%esp),%eax movl 8(%esp), %edx 801059a6: 8b 54 24 08 mov 0x8(%esp),%edx # Save old callee-save registers pushl %ebp 801059aa: 55 push %ebp pushl %ebx 801059ab: 53 push %ebx pushl %esi 801059ac: 56 push %esi pushl %edi 801059ad: 57 push %edi # Switch stacks movl %esp, (%eax) 801059ae: 89 20 mov %esp,(%eax) movl %edx, %esp 801059b0: 89 d4 mov %edx,%esp # Load new callee-save registers popl %edi 801059b2: 5f pop %edi popl %esi 801059b3: 5e pop %esi popl %ebx 801059b4: 5b pop %ebx popl %ebp 801059b5: 5d pop %ebp ret 801059b6: c3 ret 801059b7 <fetchint>: // to a saved program counter, and then the first argument. // Fetch the int at addr from the current process. int fetchint(uint addr, int *ip) { 801059b7: 55 push %ebp 801059b8: 89 e5 mov %esp,%ebp if(addr >= proc->sz || addr+4 > proc->sz) 801059ba: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801059c0: 8b 00 mov (%eax),%eax 801059c2: 3b 45 08 cmp 0x8(%ebp),%eax 801059c5: 76 12 jbe 801059d9 <fetchint+0x22> 801059c7: 8b 45 08 mov 0x8(%ebp),%eax 801059ca: 8d 50 04 lea 0x4(%eax),%edx 801059cd: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801059d3: 8b 00 mov (%eax),%eax 801059d5: 39 c2 cmp %eax,%edx 801059d7: 76 07 jbe 801059e0 <fetchint+0x29> return -1; 801059d9: b8 ff ff ff ff mov $0xffffffff,%eax 801059de: eb 0f jmp 801059ef <fetchint+0x38> *ip = *(int*)(addr); 801059e0: 8b 45 08 mov 0x8(%ebp),%eax 801059e3: 8b 10 mov (%eax),%edx 801059e5: 8b 45 0c mov 0xc(%ebp),%eax 801059e8: 89 10 mov %edx,(%eax) return 0; 801059ea: b8 00 00 00 00 mov $0x0,%eax } 801059ef: 5d pop %ebp 801059f0: c3 ret 801059f1 <fetchstr>: // Fetch the nul-terminated string at addr from the current process. // Doesn't actually copy the string - just sets *pp to point at it. // Returns length of string, not including nul. int fetchstr(uint addr, char **pp) { 801059f1: 55 push %ebp 801059f2: 89 e5 mov %esp,%ebp 801059f4: 83 ec 10 sub $0x10,%esp char *s, *ep; if(addr >= proc->sz) 801059f7: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801059fd: 8b 00 mov (%eax),%eax 801059ff: 3b 45 08 cmp 0x8(%ebp),%eax 80105a02: 77 07 ja 80105a0b <fetchstr+0x1a> return -1; 80105a04: b8 ff ff ff ff mov $0xffffffff,%eax 80105a09: eb 46 jmp 80105a51 <fetchstr+0x60> *pp = (char*)addr; 80105a0b: 8b 55 08 mov 0x8(%ebp),%edx 80105a0e: 8b 45 0c mov 0xc(%ebp),%eax 80105a11: 89 10 mov %edx,(%eax) ep = (char*)proc->sz; 80105a13: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105a19: 8b 00 mov (%eax),%eax 80105a1b: 89 45 f8 mov %eax,-0x8(%ebp) for(s = *pp; s < ep; s++) 80105a1e: 8b 45 0c mov 0xc(%ebp),%eax 80105a21: 8b 00 mov (%eax),%eax 80105a23: 89 45 fc mov %eax,-0x4(%ebp) 80105a26: eb 1c jmp 80105a44 <fetchstr+0x53> if(*s == 0) 80105a28: 8b 45 fc mov -0x4(%ebp),%eax 80105a2b: 0f b6 00 movzbl (%eax),%eax 80105a2e: 84 c0 test %al,%al 80105a30: 75 0e jne 80105a40 <fetchstr+0x4f> return s - *pp; 80105a32: 8b 55 fc mov -0x4(%ebp),%edx 80105a35: 8b 45 0c mov 0xc(%ebp),%eax 80105a38: 8b 00 mov (%eax),%eax 80105a3a: 29 c2 sub %eax,%edx 80105a3c: 89 d0 mov %edx,%eax 80105a3e: eb 11 jmp 80105a51 <fetchstr+0x60> if(addr >= proc->sz) return -1; *pp = (char*)addr; ep = (char*)proc->sz; for(s = *pp; s < ep; s++) 80105a40: 83 45 fc 01 addl $0x1,-0x4(%ebp) 80105a44: 8b 45 fc mov -0x4(%ebp),%eax 80105a47: 3b 45 f8 cmp -0x8(%ebp),%eax 80105a4a: 72 dc jb 80105a28 <fetchstr+0x37> if(*s == 0) return s - *pp; return -1; 80105a4c: b8 ff ff ff ff mov $0xffffffff,%eax } 80105a51: c9 leave 80105a52: c3 ret 80105a53 <argint>: // Fetch the nth 32-bit system call argument. int argint(int n, int *ip) { 80105a53: 55 push %ebp 80105a54: 89 e5 mov %esp,%ebp return fetchint(proc->tf->esp + 4 + 4*n, ip); 80105a56: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105a5c: 8b 40 18 mov 0x18(%eax),%eax 80105a5f: 8b 40 44 mov 0x44(%eax),%eax 80105a62: 8b 55 08 mov 0x8(%ebp),%edx 80105a65: c1 e2 02 shl $0x2,%edx 80105a68: 01 d0 add %edx,%eax 80105a6a: 83 c0 04 add $0x4,%eax 80105a6d: ff 75 0c pushl 0xc(%ebp) 80105a70: 50 push %eax 80105a71: e8 41 ff ff ff call 801059b7 <fetchint> 80105a76: 83 c4 08 add $0x8,%esp } 80105a79: c9 leave 80105a7a: c3 ret 80105a7b <argptr>: // Fetch the nth word-sized system call argument as a pointer // to a block of memory of size n bytes. Check that the pointer // lies within the process address space. int argptr(int n, char **pp, int size) { 80105a7b: 55 push %ebp 80105a7c: 89 e5 mov %esp,%ebp 80105a7e: 83 ec 10 sub $0x10,%esp int i; if(argint(n, &i) < 0) 80105a81: 8d 45 fc lea -0x4(%ebp),%eax 80105a84: 50 push %eax 80105a85: ff 75 08 pushl 0x8(%ebp) 80105a88: e8 c6 ff ff ff call 80105a53 <argint> 80105a8d: 83 c4 08 add $0x8,%esp 80105a90: 85 c0 test %eax,%eax 80105a92: 79 07 jns 80105a9b <argptr+0x20> return -1; 80105a94: b8 ff ff ff ff mov $0xffffffff,%eax 80105a99: eb 3b jmp 80105ad6 <argptr+0x5b> if((uint)i >= proc->sz || (uint)i+size > proc->sz) 80105a9b: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105aa1: 8b 00 mov (%eax),%eax 80105aa3: 8b 55 fc mov -0x4(%ebp),%edx 80105aa6: 39 d0 cmp %edx,%eax 80105aa8: 76 16 jbe 80105ac0 <argptr+0x45> 80105aaa: 8b 45 fc mov -0x4(%ebp),%eax 80105aad: 89 c2 mov %eax,%edx 80105aaf: 8b 45 10 mov 0x10(%ebp),%eax 80105ab2: 01 c2 add %eax,%edx 80105ab4: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105aba: 8b 00 mov (%eax),%eax 80105abc: 39 c2 cmp %eax,%edx 80105abe: 76 07 jbe 80105ac7 <argptr+0x4c> return -1; 80105ac0: b8 ff ff ff ff mov $0xffffffff,%eax 80105ac5: eb 0f jmp 80105ad6 <argptr+0x5b> *pp = (char*)i; 80105ac7: 8b 45 fc mov -0x4(%ebp),%eax 80105aca: 89 c2 mov %eax,%edx 80105acc: 8b 45 0c mov 0xc(%ebp),%eax 80105acf: 89 10 mov %edx,(%eax) return 0; 80105ad1: b8 00 00 00 00 mov $0x0,%eax } 80105ad6: c9 leave 80105ad7: c3 ret 80105ad8 <argstr>: // Check that the pointer is valid and the string is nul-terminated. // (There is no shared writable memory, so the string can't change // between this check and being used by the kernel.) int argstr(int n, char **pp) { 80105ad8: 55 push %ebp 80105ad9: 89 e5 mov %esp,%ebp 80105adb: 83 ec 10 sub $0x10,%esp int addr; if(argint(n, &addr) < 0) 80105ade: 8d 45 fc lea -0x4(%ebp),%eax 80105ae1: 50 push %eax 80105ae2: ff 75 08 pushl 0x8(%ebp) 80105ae5: e8 69 ff ff ff call 80105a53 <argint> 80105aea: 83 c4 08 add $0x8,%esp 80105aed: 85 c0 test %eax,%eax 80105aef: 79 07 jns 80105af8 <argstr+0x20> return -1; 80105af1: b8 ff ff ff ff mov $0xffffffff,%eax 80105af6: eb 0f jmp 80105b07 <argstr+0x2f> return fetchstr(addr, pp); 80105af8: 8b 45 fc mov -0x4(%ebp),%eax 80105afb: ff 75 0c pushl 0xc(%ebp) 80105afe: 50 push %eax 80105aff: e8 ed fe ff ff call 801059f1 <fetchstr> 80105b04: 83 c4 08 add $0x8,%esp } 80105b07: c9 leave 80105b08: c3 ret 80105b09 <syscall>: [SYS_close] sys_close, }; void syscall(void) { 80105b09: 55 push %ebp 80105b0a: 89 e5 mov %esp,%ebp 80105b0c: 53 push %ebx 80105b0d: 83 ec 14 sub $0x14,%esp int num; num = proc->tf->eax; 80105b10: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105b16: 8b 40 18 mov 0x18(%eax),%eax 80105b19: 8b 40 1c mov 0x1c(%eax),%eax 80105b1c: 89 45 f4 mov %eax,-0xc(%ebp) if(num > 0 && num < NELEM(syscalls) && syscalls[num]) { 80105b1f: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105b23: 7e 30 jle 80105b55 <syscall+0x4c> 80105b25: 8b 45 f4 mov -0xc(%ebp),%eax 80105b28: 83 f8 15 cmp $0x15,%eax 80105b2b: 77 28 ja 80105b55 <syscall+0x4c> 80105b2d: 8b 45 f4 mov -0xc(%ebp),%eax 80105b30: 8b 04 85 40 c0 10 80 mov -0x7fef3fc0(,%eax,4),%eax 80105b37: 85 c0 test %eax,%eax 80105b39: 74 1a je 80105b55 <syscall+0x4c> proc->tf->eax = syscalls[num](); 80105b3b: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105b41: 8b 58 18 mov 0x18(%eax),%ebx 80105b44: 8b 45 f4 mov -0xc(%ebp),%eax 80105b47: 8b 04 85 40 c0 10 80 mov -0x7fef3fc0(,%eax,4),%eax 80105b4e: ff d0 call *%eax 80105b50: 89 43 1c mov %eax,0x1c(%ebx) 80105b53: eb 34 jmp 80105b89 <syscall+0x80> } else { cprintf("%d %s: unknown sys call %d\n", proc->pid, proc->name, num); 80105b55: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105b5b: 8d 50 6c lea 0x6c(%eax),%edx 80105b5e: 65 a1 04 00 00 00 mov %gs:0x4,%eax num = proc->tf->eax; if(num > 0 && num < NELEM(syscalls) && syscalls[num]) { proc->tf->eax = syscalls[num](); } else { cprintf("%d %s: unknown sys call %d\n", 80105b64: 8b 40 10 mov 0x10(%eax),%eax 80105b67: ff 75 f4 pushl -0xc(%ebp) 80105b6a: 52 push %edx 80105b6b: 50 push %eax 80105b6c: 68 c8 8e 10 80 push $0x80108ec8 80105b71: e8 50 a8 ff ff call 801003c6 <cprintf> 80105b76: 83 c4 10 add $0x10,%esp proc->pid, proc->name, num); proc->tf->eax = -1; 80105b79: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105b7f: 8b 40 18 mov 0x18(%eax),%eax 80105b82: c7 40 1c ff ff ff ff movl $0xffffffff,0x1c(%eax) } } 80105b89: 90 nop 80105b8a: 8b 5d fc mov -0x4(%ebp),%ebx 80105b8d: c9 leave 80105b8e: c3 ret 80105b8f <argfd>: // Fetch the nth word-sized system call argument as a file descriptor // and return both the descriptor and the corresponding struct file. static int argfd(int n, int *pfd, struct file **pf) { 80105b8f: 55 push %ebp 80105b90: 89 e5 mov %esp,%ebp 80105b92: 83 ec 18 sub $0x18,%esp int fd; struct file *f; if(argint(n, &fd) < 0) 80105b95: 83 ec 08 sub $0x8,%esp 80105b98: 8d 45 f0 lea -0x10(%ebp),%eax 80105b9b: 50 push %eax 80105b9c: ff 75 08 pushl 0x8(%ebp) 80105b9f: e8 af fe ff ff call 80105a53 <argint> 80105ba4: 83 c4 10 add $0x10,%esp 80105ba7: 85 c0 test %eax,%eax 80105ba9: 79 07 jns 80105bb2 <argfd+0x23> return -1; 80105bab: b8 ff ff ff ff mov $0xffffffff,%eax 80105bb0: eb 50 jmp 80105c02 <argfd+0x73> if(fd < 0 || fd >= NOFILE || (f=proc->ofile[fd]) == 0) 80105bb2: 8b 45 f0 mov -0x10(%ebp),%eax 80105bb5: 85 c0 test %eax,%eax 80105bb7: 78 21 js 80105bda <argfd+0x4b> 80105bb9: 8b 45 f0 mov -0x10(%ebp),%eax 80105bbc: 83 f8 0f cmp $0xf,%eax 80105bbf: 7f 19 jg 80105bda <argfd+0x4b> 80105bc1: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105bc7: 8b 55 f0 mov -0x10(%ebp),%edx 80105bca: 83 c2 08 add $0x8,%edx 80105bcd: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80105bd1: 89 45 f4 mov %eax,-0xc(%ebp) 80105bd4: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105bd8: 75 07 jne 80105be1 <argfd+0x52> return -1; 80105bda: b8 ff ff ff ff mov $0xffffffff,%eax 80105bdf: eb 21 jmp 80105c02 <argfd+0x73> if(pfd) 80105be1: 83 7d 0c 00 cmpl $0x0,0xc(%ebp) 80105be5: 74 08 je 80105bef <argfd+0x60> *pfd = fd; 80105be7: 8b 55 f0 mov -0x10(%ebp),%edx 80105bea: 8b 45 0c mov 0xc(%ebp),%eax 80105bed: 89 10 mov %edx,(%eax) if(pf) 80105bef: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 80105bf3: 74 08 je 80105bfd <argfd+0x6e> *pf = f; 80105bf5: 8b 45 10 mov 0x10(%ebp),%eax 80105bf8: 8b 55 f4 mov -0xc(%ebp),%edx 80105bfb: 89 10 mov %edx,(%eax) return 0; 80105bfd: b8 00 00 00 00 mov $0x0,%eax } 80105c02: c9 leave 80105c03: c3 ret 80105c04 <fdalloc>: // Allocate a file descriptor for the given file. // Takes over file reference from caller on success. static int fdalloc(struct file *f) { 80105c04: 55 push %ebp 80105c05: 89 e5 mov %esp,%ebp 80105c07: 83 ec 10 sub $0x10,%esp int fd; for(fd = 0; fd < NOFILE; fd++){ 80105c0a: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp) 80105c11: eb 30 jmp 80105c43 <fdalloc+0x3f> if(proc->ofile[fd] == 0){ 80105c13: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105c19: 8b 55 fc mov -0x4(%ebp),%edx 80105c1c: 83 c2 08 add $0x8,%edx 80105c1f: 8b 44 90 08 mov 0x8(%eax,%edx,4),%eax 80105c23: 85 c0 test %eax,%eax 80105c25: 75 18 jne 80105c3f <fdalloc+0x3b> proc->ofile[fd] = f; 80105c27: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105c2d: 8b 55 fc mov -0x4(%ebp),%edx 80105c30: 8d 4a 08 lea 0x8(%edx),%ecx 80105c33: 8b 55 08 mov 0x8(%ebp),%edx 80105c36: 89 54 88 08 mov %edx,0x8(%eax,%ecx,4) return fd; 80105c3a: 8b 45 fc mov -0x4(%ebp),%eax 80105c3d: eb 0f jmp 80105c4e <fdalloc+0x4a> static int fdalloc(struct file *f) { int fd; for(fd = 0; fd < NOFILE; fd++){ 80105c3f: 83 45 fc 01 addl $0x1,-0x4(%ebp) 80105c43: 83 7d fc 0f cmpl $0xf,-0x4(%ebp) 80105c47: 7e ca jle 80105c13 <fdalloc+0xf> if(proc->ofile[fd] == 0){ proc->ofile[fd] = f; return fd; } } return -1; 80105c49: b8 ff ff ff ff mov $0xffffffff,%eax } 80105c4e: c9 leave 80105c4f: c3 ret 80105c50 <sys_dup>: int sys_dup(void) { 80105c50: 55 push %ebp 80105c51: 89 e5 mov %esp,%ebp 80105c53: 83 ec 18 sub $0x18,%esp struct file *f; int fd; if(argfd(0, 0, &f) < 0) 80105c56: 83 ec 04 sub $0x4,%esp 80105c59: 8d 45 f0 lea -0x10(%ebp),%eax 80105c5c: 50 push %eax 80105c5d: 6a 00 push $0x0 80105c5f: 6a 00 push $0x0 80105c61: e8 29 ff ff ff call 80105b8f <argfd> 80105c66: 83 c4 10 add $0x10,%esp 80105c69: 85 c0 test %eax,%eax 80105c6b: 79 07 jns 80105c74 <sys_dup+0x24> return -1; 80105c6d: b8 ff ff ff ff mov $0xffffffff,%eax 80105c72: eb 31 jmp 80105ca5 <sys_dup+0x55> if((fd=fdalloc(f)) < 0) 80105c74: 8b 45 f0 mov -0x10(%ebp),%eax 80105c77: 83 ec 0c sub $0xc,%esp 80105c7a: 50 push %eax 80105c7b: e8 84 ff ff ff call 80105c04 <fdalloc> 80105c80: 83 c4 10 add $0x10,%esp 80105c83: 89 45 f4 mov %eax,-0xc(%ebp) 80105c86: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105c8a: 79 07 jns 80105c93 <sys_dup+0x43> return -1; 80105c8c: b8 ff ff ff ff mov $0xffffffff,%eax 80105c91: eb 12 jmp 80105ca5 <sys_dup+0x55> filedup(f); 80105c93: 8b 45 f0 mov -0x10(%ebp),%eax 80105c96: 83 ec 0c sub $0xc,%esp 80105c99: 50 push %eax 80105c9a: e8 61 b3 ff ff call 80101000 <filedup> 80105c9f: 83 c4 10 add $0x10,%esp return fd; 80105ca2: 8b 45 f4 mov -0xc(%ebp),%eax } 80105ca5: c9 leave 80105ca6: c3 ret 80105ca7 <sys_read>: int sys_read(void) { 80105ca7: 55 push %ebp 80105ca8: 89 e5 mov %esp,%ebp 80105caa: 83 ec 18 sub $0x18,%esp struct file *f; int n; char *p; if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 80105cad: 83 ec 04 sub $0x4,%esp 80105cb0: 8d 45 f4 lea -0xc(%ebp),%eax 80105cb3: 50 push %eax 80105cb4: 6a 00 push $0x0 80105cb6: 6a 00 push $0x0 80105cb8: e8 d2 fe ff ff call 80105b8f <argfd> 80105cbd: 83 c4 10 add $0x10,%esp 80105cc0: 85 c0 test %eax,%eax 80105cc2: 78 2e js 80105cf2 <sys_read+0x4b> 80105cc4: 83 ec 08 sub $0x8,%esp 80105cc7: 8d 45 f0 lea -0x10(%ebp),%eax 80105cca: 50 push %eax 80105ccb: 6a 02 push $0x2 80105ccd: e8 81 fd ff ff call 80105a53 <argint> 80105cd2: 83 c4 10 add $0x10,%esp 80105cd5: 85 c0 test %eax,%eax 80105cd7: 78 19 js 80105cf2 <sys_read+0x4b> 80105cd9: 8b 45 f0 mov -0x10(%ebp),%eax 80105cdc: 83 ec 04 sub $0x4,%esp 80105cdf: 50 push %eax 80105ce0: 8d 45 ec lea -0x14(%ebp),%eax 80105ce3: 50 push %eax 80105ce4: 6a 01 push $0x1 80105ce6: e8 90 fd ff ff call 80105a7b <argptr> 80105ceb: 83 c4 10 add $0x10,%esp 80105cee: 85 c0 test %eax,%eax 80105cf0: 79 07 jns 80105cf9 <sys_read+0x52> return -1; 80105cf2: b8 ff ff ff ff mov $0xffffffff,%eax 80105cf7: eb 17 jmp 80105d10 <sys_read+0x69> return fileread(f, p, n); 80105cf9: 8b 4d f0 mov -0x10(%ebp),%ecx 80105cfc: 8b 55 ec mov -0x14(%ebp),%edx 80105cff: 8b 45 f4 mov -0xc(%ebp),%eax 80105d02: 83 ec 04 sub $0x4,%esp 80105d05: 51 push %ecx 80105d06: 52 push %edx 80105d07: 50 push %eax 80105d08: e8 83 b4 ff ff call 80101190 <fileread> 80105d0d: 83 c4 10 add $0x10,%esp } 80105d10: c9 leave 80105d11: c3 ret 80105d12 <sys_write>: int sys_write(void) { 80105d12: 55 push %ebp 80105d13: 89 e5 mov %esp,%ebp 80105d15: 83 ec 18 sub $0x18,%esp struct file *f; int n; char *p; if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0) 80105d18: 83 ec 04 sub $0x4,%esp 80105d1b: 8d 45 f4 lea -0xc(%ebp),%eax 80105d1e: 50 push %eax 80105d1f: 6a 00 push $0x0 80105d21: 6a 00 push $0x0 80105d23: e8 67 fe ff ff call 80105b8f <argfd> 80105d28: 83 c4 10 add $0x10,%esp 80105d2b: 85 c0 test %eax,%eax 80105d2d: 78 2e js 80105d5d <sys_write+0x4b> 80105d2f: 83 ec 08 sub $0x8,%esp 80105d32: 8d 45 f0 lea -0x10(%ebp),%eax 80105d35: 50 push %eax 80105d36: 6a 02 push $0x2 80105d38: e8 16 fd ff ff call 80105a53 <argint> 80105d3d: 83 c4 10 add $0x10,%esp 80105d40: 85 c0 test %eax,%eax 80105d42: 78 19 js 80105d5d <sys_write+0x4b> 80105d44: 8b 45 f0 mov -0x10(%ebp),%eax 80105d47: 83 ec 04 sub $0x4,%esp 80105d4a: 50 push %eax 80105d4b: 8d 45 ec lea -0x14(%ebp),%eax 80105d4e: 50 push %eax 80105d4f: 6a 01 push $0x1 80105d51: e8 25 fd ff ff call 80105a7b <argptr> 80105d56: 83 c4 10 add $0x10,%esp 80105d59: 85 c0 test %eax,%eax 80105d5b: 79 07 jns 80105d64 <sys_write+0x52> return -1; 80105d5d: b8 ff ff ff ff mov $0xffffffff,%eax 80105d62: eb 17 jmp 80105d7b <sys_write+0x69> return filewrite(f, p, n); 80105d64: 8b 4d f0 mov -0x10(%ebp),%ecx 80105d67: 8b 55 ec mov -0x14(%ebp),%edx 80105d6a: 8b 45 f4 mov -0xc(%ebp),%eax 80105d6d: 83 ec 04 sub $0x4,%esp 80105d70: 51 push %ecx 80105d71: 52 push %edx 80105d72: 50 push %eax 80105d73: e8 d0 b4 ff ff call 80101248 <filewrite> 80105d78: 83 c4 10 add $0x10,%esp } 80105d7b: c9 leave 80105d7c: c3 ret 80105d7d <sys_close>: int sys_close(void) { 80105d7d: 55 push %ebp 80105d7e: 89 e5 mov %esp,%ebp 80105d80: 83 ec 18 sub $0x18,%esp int fd; struct file *f; if(argfd(0, &fd, &f) < 0) 80105d83: 83 ec 04 sub $0x4,%esp 80105d86: 8d 45 f0 lea -0x10(%ebp),%eax 80105d89: 50 push %eax 80105d8a: 8d 45 f4 lea -0xc(%ebp),%eax 80105d8d: 50 push %eax 80105d8e: 6a 00 push $0x0 80105d90: e8 fa fd ff ff call 80105b8f <argfd> 80105d95: 83 c4 10 add $0x10,%esp 80105d98: 85 c0 test %eax,%eax 80105d9a: 79 07 jns 80105da3 <sys_close+0x26> return -1; 80105d9c: b8 ff ff ff ff mov $0xffffffff,%eax 80105da1: eb 28 jmp 80105dcb <sys_close+0x4e> proc->ofile[fd] = 0; 80105da3: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80105da9: 8b 55 f4 mov -0xc(%ebp),%edx 80105dac: 83 c2 08 add $0x8,%edx 80105daf: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4) 80105db6: 00 fileclose(f); 80105db7: 8b 45 f0 mov -0x10(%ebp),%eax 80105dba: 83 ec 0c sub $0xc,%esp 80105dbd: 50 push %eax 80105dbe: e8 8e b2 ff ff call 80101051 <fileclose> 80105dc3: 83 c4 10 add $0x10,%esp return 0; 80105dc6: b8 00 00 00 00 mov $0x0,%eax } 80105dcb: c9 leave 80105dcc: c3 ret 80105dcd <sys_fstat>: int sys_fstat(void) { 80105dcd: 55 push %ebp 80105dce: 89 e5 mov %esp,%ebp 80105dd0: 83 ec 18 sub $0x18,%esp struct file *f; struct stat *st; if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0) 80105dd3: 83 ec 04 sub $0x4,%esp 80105dd6: 8d 45 f4 lea -0xc(%ebp),%eax 80105dd9: 50 push %eax 80105dda: 6a 00 push $0x0 80105ddc: 6a 00 push $0x0 80105dde: e8 ac fd ff ff call 80105b8f <argfd> 80105de3: 83 c4 10 add $0x10,%esp 80105de6: 85 c0 test %eax,%eax 80105de8: 78 17 js 80105e01 <sys_fstat+0x34> 80105dea: 83 ec 04 sub $0x4,%esp 80105ded: 6a 14 push $0x14 80105def: 8d 45 f0 lea -0x10(%ebp),%eax 80105df2: 50 push %eax 80105df3: 6a 01 push $0x1 80105df5: e8 81 fc ff ff call 80105a7b <argptr> 80105dfa: 83 c4 10 add $0x10,%esp 80105dfd: 85 c0 test %eax,%eax 80105dff: 79 07 jns 80105e08 <sys_fstat+0x3b> return -1; 80105e01: b8 ff ff ff ff mov $0xffffffff,%eax 80105e06: eb 13 jmp 80105e1b <sys_fstat+0x4e> return filestat(f, st); 80105e08: 8b 55 f0 mov -0x10(%ebp),%edx 80105e0b: 8b 45 f4 mov -0xc(%ebp),%eax 80105e0e: 83 ec 08 sub $0x8,%esp 80105e11: 52 push %edx 80105e12: 50 push %eax 80105e13: e8 21 b3 ff ff call 80101139 <filestat> 80105e18: 83 c4 10 add $0x10,%esp } 80105e1b: c9 leave 80105e1c: c3 ret 80105e1d <sys_link>: // Create the path new as a link to the same inode as old. int sys_link(void) { 80105e1d: 55 push %ebp 80105e1e: 89 e5 mov %esp,%ebp 80105e20: 83 ec 28 sub $0x28,%esp char name[DIRSIZ], *new, *old; struct inode *dp, *ip; if(argstr(0, &old) < 0 || argstr(1, &new) < 0) 80105e23: 83 ec 08 sub $0x8,%esp 80105e26: 8d 45 d8 lea -0x28(%ebp),%eax 80105e29: 50 push %eax 80105e2a: 6a 00 push $0x0 80105e2c: e8 a7 fc ff ff call 80105ad8 <argstr> 80105e31: 83 c4 10 add $0x10,%esp 80105e34: 85 c0 test %eax,%eax 80105e36: 78 15 js 80105e4d <sys_link+0x30> 80105e38: 83 ec 08 sub $0x8,%esp 80105e3b: 8d 45 dc lea -0x24(%ebp),%eax 80105e3e: 50 push %eax 80105e3f: 6a 01 push $0x1 80105e41: e8 92 fc ff ff call 80105ad8 <argstr> 80105e46: 83 c4 10 add $0x10,%esp 80105e49: 85 c0 test %eax,%eax 80105e4b: 79 0a jns 80105e57 <sys_link+0x3a> return -1; 80105e4d: b8 ff ff ff ff mov $0xffffffff,%eax 80105e52: e9 68 01 00 00 jmp 80105fbf <sys_link+0x1a2> begin_op(); 80105e57: e8 f1 d6 ff ff call 8010354d <begin_op> if((ip = namei(old)) == 0){ 80105e5c: 8b 45 d8 mov -0x28(%ebp),%eax 80105e5f: 83 ec 0c sub $0xc,%esp 80105e62: 50 push %eax 80105e63: e8 c0 c6 ff ff call 80102528 <namei> 80105e68: 83 c4 10 add $0x10,%esp 80105e6b: 89 45 f4 mov %eax,-0xc(%ebp) 80105e6e: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80105e72: 75 0f jne 80105e83 <sys_link+0x66> end_op(); 80105e74: e8 60 d7 ff ff call 801035d9 <end_op> return -1; 80105e79: b8 ff ff ff ff mov $0xffffffff,%eax 80105e7e: e9 3c 01 00 00 jmp 80105fbf <sys_link+0x1a2> } ilock(ip); 80105e83: 83 ec 0c sub $0xc,%esp 80105e86: ff 75 f4 pushl -0xc(%ebp) 80105e89: e8 dc ba ff ff call 8010196a <ilock> 80105e8e: 83 c4 10 add $0x10,%esp if(ip->type == T_DIR){ 80105e91: 8b 45 f4 mov -0xc(%ebp),%eax 80105e94: 0f b7 40 10 movzwl 0x10(%eax),%eax 80105e98: 66 83 f8 01 cmp $0x1,%ax 80105e9c: 75 1d jne 80105ebb <sys_link+0x9e> iunlockput(ip); 80105e9e: 83 ec 0c sub $0xc,%esp 80105ea1: ff 75 f4 pushl -0xc(%ebp) 80105ea4: e8 81 bd ff ff call 80101c2a <iunlockput> 80105ea9: 83 c4 10 add $0x10,%esp end_op(); 80105eac: e8 28 d7 ff ff call 801035d9 <end_op> return -1; 80105eb1: b8 ff ff ff ff mov $0xffffffff,%eax 80105eb6: e9 04 01 00 00 jmp 80105fbf <sys_link+0x1a2> } ip->nlink++; 80105ebb: 8b 45 f4 mov -0xc(%ebp),%eax 80105ebe: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105ec2: 83 c0 01 add $0x1,%eax 80105ec5: 89 c2 mov %eax,%edx 80105ec7: 8b 45 f4 mov -0xc(%ebp),%eax 80105eca: 66 89 50 16 mov %dx,0x16(%eax) iupdate(ip); 80105ece: 83 ec 0c sub $0xc,%esp 80105ed1: ff 75 f4 pushl -0xc(%ebp) 80105ed4: e8 b7 b8 ff ff call 80101790 <iupdate> 80105ed9: 83 c4 10 add $0x10,%esp iunlock(ip); 80105edc: 83 ec 0c sub $0xc,%esp 80105edf: ff 75 f4 pushl -0xc(%ebp) 80105ee2: e8 e1 bb ff ff call 80101ac8 <iunlock> 80105ee7: 83 c4 10 add $0x10,%esp if((dp = nameiparent(new, name)) == 0) 80105eea: 8b 45 dc mov -0x24(%ebp),%eax 80105eed: 83 ec 08 sub $0x8,%esp 80105ef0: 8d 55 e2 lea -0x1e(%ebp),%edx 80105ef3: 52 push %edx 80105ef4: 50 push %eax 80105ef5: e8 4a c6 ff ff call 80102544 <nameiparent> 80105efa: 83 c4 10 add $0x10,%esp 80105efd: 89 45 f0 mov %eax,-0x10(%ebp) 80105f00: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80105f04: 74 71 je 80105f77 <sys_link+0x15a> goto bad; ilock(dp); 80105f06: 83 ec 0c sub $0xc,%esp 80105f09: ff 75 f0 pushl -0x10(%ebp) 80105f0c: e8 59 ba ff ff call 8010196a <ilock> 80105f11: 83 c4 10 add $0x10,%esp if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){ 80105f14: 8b 45 f0 mov -0x10(%ebp),%eax 80105f17: 8b 10 mov (%eax),%edx 80105f19: 8b 45 f4 mov -0xc(%ebp),%eax 80105f1c: 8b 00 mov (%eax),%eax 80105f1e: 39 c2 cmp %eax,%edx 80105f20: 75 1d jne 80105f3f <sys_link+0x122> 80105f22: 8b 45 f4 mov -0xc(%ebp),%eax 80105f25: 8b 40 04 mov 0x4(%eax),%eax 80105f28: 83 ec 04 sub $0x4,%esp 80105f2b: 50 push %eax 80105f2c: 8d 45 e2 lea -0x1e(%ebp),%eax 80105f2f: 50 push %eax 80105f30: ff 75 f0 pushl -0x10(%ebp) 80105f33: e8 54 c3 ff ff call 8010228c <dirlink> 80105f38: 83 c4 10 add $0x10,%esp 80105f3b: 85 c0 test %eax,%eax 80105f3d: 79 10 jns 80105f4f <sys_link+0x132> iunlockput(dp); 80105f3f: 83 ec 0c sub $0xc,%esp 80105f42: ff 75 f0 pushl -0x10(%ebp) 80105f45: e8 e0 bc ff ff call 80101c2a <iunlockput> 80105f4a: 83 c4 10 add $0x10,%esp goto bad; 80105f4d: eb 29 jmp 80105f78 <sys_link+0x15b> } iunlockput(dp); 80105f4f: 83 ec 0c sub $0xc,%esp 80105f52: ff 75 f0 pushl -0x10(%ebp) 80105f55: e8 d0 bc ff ff call 80101c2a <iunlockput> 80105f5a: 83 c4 10 add $0x10,%esp iput(ip); 80105f5d: 83 ec 0c sub $0xc,%esp 80105f60: ff 75 f4 pushl -0xc(%ebp) 80105f63: e8 d2 bb ff ff call 80101b3a <iput> 80105f68: 83 c4 10 add $0x10,%esp end_op(); 80105f6b: e8 69 d6 ff ff call 801035d9 <end_op> return 0; 80105f70: b8 00 00 00 00 mov $0x0,%eax 80105f75: eb 48 jmp 80105fbf <sys_link+0x1a2> ip->nlink++; iupdate(ip); iunlock(ip); if((dp = nameiparent(new, name)) == 0) goto bad; 80105f77: 90 nop end_op(); return 0; bad: ilock(ip); 80105f78: 83 ec 0c sub $0xc,%esp 80105f7b: ff 75 f4 pushl -0xc(%ebp) 80105f7e: e8 e7 b9 ff ff call 8010196a <ilock> 80105f83: 83 c4 10 add $0x10,%esp ip->nlink--; 80105f86: 8b 45 f4 mov -0xc(%ebp),%eax 80105f89: 0f b7 40 16 movzwl 0x16(%eax),%eax 80105f8d: 83 e8 01 sub $0x1,%eax 80105f90: 89 c2 mov %eax,%edx 80105f92: 8b 45 f4 mov -0xc(%ebp),%eax 80105f95: 66 89 50 16 mov %dx,0x16(%eax) iupdate(ip); 80105f99: 83 ec 0c sub $0xc,%esp 80105f9c: ff 75 f4 pushl -0xc(%ebp) 80105f9f: e8 ec b7 ff ff call 80101790 <iupdate> 80105fa4: 83 c4 10 add $0x10,%esp iunlockput(ip); 80105fa7: 83 ec 0c sub $0xc,%esp 80105faa: ff 75 f4 pushl -0xc(%ebp) 80105fad: e8 78 bc ff ff call 80101c2a <iunlockput> 80105fb2: 83 c4 10 add $0x10,%esp end_op(); 80105fb5: e8 1f d6 ff ff call 801035d9 <end_op> return -1; 80105fba: b8 ff ff ff ff mov $0xffffffff,%eax } 80105fbf: c9 leave 80105fc0: c3 ret 80105fc1 <isdirempty>: // Is the directory dp empty except for "." and ".." ? static int isdirempty(struct inode *dp) { 80105fc1: 55 push %ebp 80105fc2: 89 e5 mov %esp,%ebp 80105fc4: 83 ec 28 sub $0x28,%esp int off; struct dirent de; for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){ 80105fc7: c7 45 f4 20 00 00 00 movl $0x20,-0xc(%ebp) 80105fce: eb 40 jmp 80106010 <isdirempty+0x4f> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80105fd0: 8b 45 f4 mov -0xc(%ebp),%eax 80105fd3: 6a 10 push $0x10 80105fd5: 50 push %eax 80105fd6: 8d 45 e4 lea -0x1c(%ebp),%eax 80105fd9: 50 push %eax 80105fda: ff 75 08 pushl 0x8(%ebp) 80105fdd: e8 f6 be ff ff call 80101ed8 <readi> 80105fe2: 83 c4 10 add $0x10,%esp 80105fe5: 83 f8 10 cmp $0x10,%eax 80105fe8: 74 0d je 80105ff7 <isdirempty+0x36> panic("isdirempty: readi"); 80105fea: 83 ec 0c sub $0xc,%esp 80105fed: 68 e4 8e 10 80 push $0x80108ee4 80105ff2: e8 6f a5 ff ff call 80100566 <panic> if(de.inum != 0) 80105ff7: 0f b7 45 e4 movzwl -0x1c(%ebp),%eax 80105ffb: 66 85 c0 test %ax,%ax 80105ffe: 74 07 je 80106007 <isdirempty+0x46> return 0; 80106000: b8 00 00 00 00 mov $0x0,%eax 80106005: eb 1b jmp 80106022 <isdirempty+0x61> isdirempty(struct inode *dp) { int off; struct dirent de; for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){ 80106007: 8b 45 f4 mov -0xc(%ebp),%eax 8010600a: 83 c0 10 add $0x10,%eax 8010600d: 89 45 f4 mov %eax,-0xc(%ebp) 80106010: 8b 45 08 mov 0x8(%ebp),%eax 80106013: 8b 50 18 mov 0x18(%eax),%edx 80106016: 8b 45 f4 mov -0xc(%ebp),%eax 80106019: 39 c2 cmp %eax,%edx 8010601b: 77 b3 ja 80105fd0 <isdirempty+0xf> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) panic("isdirempty: readi"); if(de.inum != 0) return 0; } return 1; 8010601d: b8 01 00 00 00 mov $0x1,%eax } 80106022: c9 leave 80106023: c3 ret 80106024 <sys_unlink>: //PAGEBREAK! int sys_unlink(void) { 80106024: 55 push %ebp 80106025: 89 e5 mov %esp,%ebp 80106027: 83 ec 38 sub $0x38,%esp struct inode *ip, *dp; struct dirent de; char name[DIRSIZ], *path; uint off; if(argstr(0, &path) < 0) 8010602a: 83 ec 08 sub $0x8,%esp 8010602d: 8d 45 cc lea -0x34(%ebp),%eax 80106030: 50 push %eax 80106031: 6a 00 push $0x0 80106033: e8 a0 fa ff ff call 80105ad8 <argstr> 80106038: 83 c4 10 add $0x10,%esp 8010603b: 85 c0 test %eax,%eax 8010603d: 79 0a jns 80106049 <sys_unlink+0x25> return -1; 8010603f: b8 ff ff ff ff mov $0xffffffff,%eax 80106044: e9 bc 01 00 00 jmp 80106205 <sys_unlink+0x1e1> begin_op(); 80106049: e8 ff d4 ff ff call 8010354d <begin_op> if((dp = nameiparent(path, name)) == 0){ 8010604e: 8b 45 cc mov -0x34(%ebp),%eax 80106051: 83 ec 08 sub $0x8,%esp 80106054: 8d 55 d2 lea -0x2e(%ebp),%edx 80106057: 52 push %edx 80106058: 50 push %eax 80106059: e8 e6 c4 ff ff call 80102544 <nameiparent> 8010605e: 83 c4 10 add $0x10,%esp 80106061: 89 45 f4 mov %eax,-0xc(%ebp) 80106064: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80106068: 75 0f jne 80106079 <sys_unlink+0x55> end_op(); 8010606a: e8 6a d5 ff ff call 801035d9 <end_op> return -1; 8010606f: b8 ff ff ff ff mov $0xffffffff,%eax 80106074: e9 8c 01 00 00 jmp 80106205 <sys_unlink+0x1e1> } ilock(dp); 80106079: 83 ec 0c sub $0xc,%esp 8010607c: ff 75 f4 pushl -0xc(%ebp) 8010607f: e8 e6 b8 ff ff call 8010196a <ilock> 80106084: 83 c4 10 add $0x10,%esp // Cannot unlink "." or "..". if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0) 80106087: 83 ec 08 sub $0x8,%esp 8010608a: 68 f6 8e 10 80 push $0x80108ef6 8010608f: 8d 45 d2 lea -0x2e(%ebp),%eax 80106092: 50 push %eax 80106093: e8 1f c1 ff ff call 801021b7 <namecmp> 80106098: 83 c4 10 add $0x10,%esp 8010609b: 85 c0 test %eax,%eax 8010609d: 0f 84 4a 01 00 00 je 801061ed <sys_unlink+0x1c9> 801060a3: 83 ec 08 sub $0x8,%esp 801060a6: 68 f8 8e 10 80 push $0x80108ef8 801060ab: 8d 45 d2 lea -0x2e(%ebp),%eax 801060ae: 50 push %eax 801060af: e8 03 c1 ff ff call 801021b7 <namecmp> 801060b4: 83 c4 10 add $0x10,%esp 801060b7: 85 c0 test %eax,%eax 801060b9: 0f 84 2e 01 00 00 je 801061ed <sys_unlink+0x1c9> goto bad; if((ip = dirlookup(dp, name, &off)) == 0) 801060bf: 83 ec 04 sub $0x4,%esp 801060c2: 8d 45 c8 lea -0x38(%ebp),%eax 801060c5: 50 push %eax 801060c6: 8d 45 d2 lea -0x2e(%ebp),%eax 801060c9: 50 push %eax 801060ca: ff 75 f4 pushl -0xc(%ebp) 801060cd: e8 00 c1 ff ff call 801021d2 <dirlookup> 801060d2: 83 c4 10 add $0x10,%esp 801060d5: 89 45 f0 mov %eax,-0x10(%ebp) 801060d8: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801060dc: 0f 84 0a 01 00 00 je 801061ec <sys_unlink+0x1c8> goto bad; ilock(ip); 801060e2: 83 ec 0c sub $0xc,%esp 801060e5: ff 75 f0 pushl -0x10(%ebp) 801060e8: e8 7d b8 ff ff call 8010196a <ilock> 801060ed: 83 c4 10 add $0x10,%esp if(ip->nlink < 1) 801060f0: 8b 45 f0 mov -0x10(%ebp),%eax 801060f3: 0f b7 40 16 movzwl 0x16(%eax),%eax 801060f7: 66 85 c0 test %ax,%ax 801060fa: 7f 0d jg 80106109 <sys_unlink+0xe5> panic("unlink: nlink < 1"); 801060fc: 83 ec 0c sub $0xc,%esp 801060ff: 68 fb 8e 10 80 push $0x80108efb 80106104: e8 5d a4 ff ff call 80100566 <panic> if(ip->type == T_DIR && !isdirempty(ip)){ 80106109: 8b 45 f0 mov -0x10(%ebp),%eax 8010610c: 0f b7 40 10 movzwl 0x10(%eax),%eax 80106110: 66 83 f8 01 cmp $0x1,%ax 80106114: 75 25 jne 8010613b <sys_unlink+0x117> 80106116: 83 ec 0c sub $0xc,%esp 80106119: ff 75 f0 pushl -0x10(%ebp) 8010611c: e8 a0 fe ff ff call 80105fc1 <isdirempty> 80106121: 83 c4 10 add $0x10,%esp 80106124: 85 c0 test %eax,%eax 80106126: 75 13 jne 8010613b <sys_unlink+0x117> iunlockput(ip); 80106128: 83 ec 0c sub $0xc,%esp 8010612b: ff 75 f0 pushl -0x10(%ebp) 8010612e: e8 f7 ba ff ff call 80101c2a <iunlockput> 80106133: 83 c4 10 add $0x10,%esp goto bad; 80106136: e9 b2 00 00 00 jmp 801061ed <sys_unlink+0x1c9> } memset(&de, 0, sizeof(de)); 8010613b: 83 ec 04 sub $0x4,%esp 8010613e: 6a 10 push $0x10 80106140: 6a 00 push $0x0 80106142: 8d 45 e0 lea -0x20(%ebp),%eax 80106145: 50 push %eax 80106146: e8 e3 f5 ff ff call 8010572e <memset> 8010614b: 83 c4 10 add $0x10,%esp if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 8010614e: 8b 45 c8 mov -0x38(%ebp),%eax 80106151: 6a 10 push $0x10 80106153: 50 push %eax 80106154: 8d 45 e0 lea -0x20(%ebp),%eax 80106157: 50 push %eax 80106158: ff 75 f4 pushl -0xc(%ebp) 8010615b: e8 cf be ff ff call 8010202f <writei> 80106160: 83 c4 10 add $0x10,%esp 80106163: 83 f8 10 cmp $0x10,%eax 80106166: 74 0d je 80106175 <sys_unlink+0x151> panic("unlink: writei"); 80106168: 83 ec 0c sub $0xc,%esp 8010616b: 68 0d 8f 10 80 push $0x80108f0d 80106170: e8 f1 a3 ff ff call 80100566 <panic> if(ip->type == T_DIR){ 80106175: 8b 45 f0 mov -0x10(%ebp),%eax 80106178: 0f b7 40 10 movzwl 0x10(%eax),%eax 8010617c: 66 83 f8 01 cmp $0x1,%ax 80106180: 75 21 jne 801061a3 <sys_unlink+0x17f> dp->nlink--; 80106182: 8b 45 f4 mov -0xc(%ebp),%eax 80106185: 0f b7 40 16 movzwl 0x16(%eax),%eax 80106189: 83 e8 01 sub $0x1,%eax 8010618c: 89 c2 mov %eax,%edx 8010618e: 8b 45 f4 mov -0xc(%ebp),%eax 80106191: 66 89 50 16 mov %dx,0x16(%eax) iupdate(dp); 80106195: 83 ec 0c sub $0xc,%esp 80106198: ff 75 f4 pushl -0xc(%ebp) 8010619b: e8 f0 b5 ff ff call 80101790 <iupdate> 801061a0: 83 c4 10 add $0x10,%esp } iunlockput(dp); 801061a3: 83 ec 0c sub $0xc,%esp 801061a6: ff 75 f4 pushl -0xc(%ebp) 801061a9: e8 7c ba ff ff call 80101c2a <iunlockput> 801061ae: 83 c4 10 add $0x10,%esp ip->nlink--; 801061b1: 8b 45 f0 mov -0x10(%ebp),%eax 801061b4: 0f b7 40 16 movzwl 0x16(%eax),%eax 801061b8: 83 e8 01 sub $0x1,%eax 801061bb: 89 c2 mov %eax,%edx 801061bd: 8b 45 f0 mov -0x10(%ebp),%eax 801061c0: 66 89 50 16 mov %dx,0x16(%eax) iupdate(ip); 801061c4: 83 ec 0c sub $0xc,%esp 801061c7: ff 75 f0 pushl -0x10(%ebp) 801061ca: e8 c1 b5 ff ff call 80101790 <iupdate> 801061cf: 83 c4 10 add $0x10,%esp iunlockput(ip); 801061d2: 83 ec 0c sub $0xc,%esp 801061d5: ff 75 f0 pushl -0x10(%ebp) 801061d8: e8 4d ba ff ff call 80101c2a <iunlockput> 801061dd: 83 c4 10 add $0x10,%esp end_op(); 801061e0: e8 f4 d3 ff ff call 801035d9 <end_op> return 0; 801061e5: b8 00 00 00 00 mov $0x0,%eax 801061ea: eb 19 jmp 80106205 <sys_unlink+0x1e1> // Cannot unlink "." or "..". if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0) goto bad; if((ip = dirlookup(dp, name, &off)) == 0) goto bad; 801061ec: 90 nop end_op(); return 0; bad: iunlockput(dp); 801061ed: 83 ec 0c sub $0xc,%esp 801061f0: ff 75 f4 pushl -0xc(%ebp) 801061f3: e8 32 ba ff ff call 80101c2a <iunlockput> 801061f8: 83 c4 10 add $0x10,%esp end_op(); 801061fb: e8 d9 d3 ff ff call 801035d9 <end_op> return -1; 80106200: b8 ff ff ff ff mov $0xffffffff,%eax } 80106205: c9 leave 80106206: c3 ret 80106207 <create>: static struct inode* create(char *path, short type, short major, short minor) { 80106207: 55 push %ebp 80106208: 89 e5 mov %esp,%ebp 8010620a: 83 ec 38 sub $0x38,%esp 8010620d: 8b 4d 0c mov 0xc(%ebp),%ecx 80106210: 8b 55 10 mov 0x10(%ebp),%edx 80106213: 8b 45 14 mov 0x14(%ebp),%eax 80106216: 66 89 4d d4 mov %cx,-0x2c(%ebp) 8010621a: 66 89 55 d0 mov %dx,-0x30(%ebp) 8010621e: 66 89 45 cc mov %ax,-0x34(%ebp) uint off; struct inode *ip, *dp; char name[DIRSIZ]; if((dp = nameiparent(path, name)) == 0) 80106222: 83 ec 08 sub $0x8,%esp 80106225: 8d 45 de lea -0x22(%ebp),%eax 80106228: 50 push %eax 80106229: ff 75 08 pushl 0x8(%ebp) 8010622c: e8 13 c3 ff ff call 80102544 <nameiparent> 80106231: 83 c4 10 add $0x10,%esp 80106234: 89 45 f4 mov %eax,-0xc(%ebp) 80106237: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010623b: 75 0a jne 80106247 <create+0x40> return 0; 8010623d: b8 00 00 00 00 mov $0x0,%eax 80106242: e9 90 01 00 00 jmp 801063d7 <create+0x1d0> ilock(dp); 80106247: 83 ec 0c sub $0xc,%esp 8010624a: ff 75 f4 pushl -0xc(%ebp) 8010624d: e8 18 b7 ff ff call 8010196a <ilock> 80106252: 83 c4 10 add $0x10,%esp if((ip = dirlookup(dp, name, &off)) != 0){ 80106255: 83 ec 04 sub $0x4,%esp 80106258: 8d 45 ec lea -0x14(%ebp),%eax 8010625b: 50 push %eax 8010625c: 8d 45 de lea -0x22(%ebp),%eax 8010625f: 50 push %eax 80106260: ff 75 f4 pushl -0xc(%ebp) 80106263: e8 6a bf ff ff call 801021d2 <dirlookup> 80106268: 83 c4 10 add $0x10,%esp 8010626b: 89 45 f0 mov %eax,-0x10(%ebp) 8010626e: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80106272: 74 50 je 801062c4 <create+0xbd> iunlockput(dp); 80106274: 83 ec 0c sub $0xc,%esp 80106277: ff 75 f4 pushl -0xc(%ebp) 8010627a: e8 ab b9 ff ff call 80101c2a <iunlockput> 8010627f: 83 c4 10 add $0x10,%esp ilock(ip); 80106282: 83 ec 0c sub $0xc,%esp 80106285: ff 75 f0 pushl -0x10(%ebp) 80106288: e8 dd b6 ff ff call 8010196a <ilock> 8010628d: 83 c4 10 add $0x10,%esp if(type == T_FILE && ip->type == T_FILE) 80106290: 66 83 7d d4 02 cmpw $0x2,-0x2c(%ebp) 80106295: 75 15 jne 801062ac <create+0xa5> 80106297: 8b 45 f0 mov -0x10(%ebp),%eax 8010629a: 0f b7 40 10 movzwl 0x10(%eax),%eax 8010629e: 66 83 f8 02 cmp $0x2,%ax 801062a2: 75 08 jne 801062ac <create+0xa5> return ip; 801062a4: 8b 45 f0 mov -0x10(%ebp),%eax 801062a7: e9 2b 01 00 00 jmp 801063d7 <create+0x1d0> iunlockput(ip); 801062ac: 83 ec 0c sub $0xc,%esp 801062af: ff 75 f0 pushl -0x10(%ebp) 801062b2: e8 73 b9 ff ff call 80101c2a <iunlockput> 801062b7: 83 c4 10 add $0x10,%esp return 0; 801062ba: b8 00 00 00 00 mov $0x0,%eax 801062bf: e9 13 01 00 00 jmp 801063d7 <create+0x1d0> } if((ip = ialloc(dp->dev, type)) == 0) 801062c4: 0f bf 55 d4 movswl -0x2c(%ebp),%edx 801062c8: 8b 45 f4 mov -0xc(%ebp),%eax 801062cb: 8b 00 mov (%eax),%eax 801062cd: 83 ec 08 sub $0x8,%esp 801062d0: 52 push %edx 801062d1: 50 push %eax 801062d2: e8 e2 b3 ff ff call 801016b9 <ialloc> 801062d7: 83 c4 10 add $0x10,%esp 801062da: 89 45 f0 mov %eax,-0x10(%ebp) 801062dd: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801062e1: 75 0d jne 801062f0 <create+0xe9> panic("create: ialloc"); 801062e3: 83 ec 0c sub $0xc,%esp 801062e6: 68 1c 8f 10 80 push $0x80108f1c 801062eb: e8 76 a2 ff ff call 80100566 <panic> ilock(ip); 801062f0: 83 ec 0c sub $0xc,%esp 801062f3: ff 75 f0 pushl -0x10(%ebp) 801062f6: e8 6f b6 ff ff call 8010196a <ilock> 801062fb: 83 c4 10 add $0x10,%esp ip->major = major; 801062fe: 8b 45 f0 mov -0x10(%ebp),%eax 80106301: 0f b7 55 d0 movzwl -0x30(%ebp),%edx 80106305: 66 89 50 12 mov %dx,0x12(%eax) ip->minor = minor; 80106309: 8b 45 f0 mov -0x10(%ebp),%eax 8010630c: 0f b7 55 cc movzwl -0x34(%ebp),%edx 80106310: 66 89 50 14 mov %dx,0x14(%eax) ip->nlink = 1; 80106314: 8b 45 f0 mov -0x10(%ebp),%eax 80106317: 66 c7 40 16 01 00 movw $0x1,0x16(%eax) iupdate(ip); 8010631d: 83 ec 0c sub $0xc,%esp 80106320: ff 75 f0 pushl -0x10(%ebp) 80106323: e8 68 b4 ff ff call 80101790 <iupdate> 80106328: 83 c4 10 add $0x10,%esp if(type == T_DIR){ // Create . and .. entries. 8010632b: 66 83 7d d4 01 cmpw $0x1,-0x2c(%ebp) 80106330: 75 6a jne 8010639c <create+0x195> dp->nlink++; // for ".." 80106332: 8b 45 f4 mov -0xc(%ebp),%eax 80106335: 0f b7 40 16 movzwl 0x16(%eax),%eax 80106339: 83 c0 01 add $0x1,%eax 8010633c: 89 c2 mov %eax,%edx 8010633e: 8b 45 f4 mov -0xc(%ebp),%eax 80106341: 66 89 50 16 mov %dx,0x16(%eax) iupdate(dp); 80106345: 83 ec 0c sub $0xc,%esp 80106348: ff 75 f4 pushl -0xc(%ebp) 8010634b: e8 40 b4 ff ff call 80101790 <iupdate> 80106350: 83 c4 10 add $0x10,%esp // No ip->nlink++ for ".": avoid cyclic ref count. if(dirlink(ip, ".", ip->inum) < 0 || dirlink(ip, "..", dp->inum) < 0) 80106353: 8b 45 f0 mov -0x10(%ebp),%eax 80106356: 8b 40 04 mov 0x4(%eax),%eax 80106359: 83 ec 04 sub $0x4,%esp 8010635c: 50 push %eax 8010635d: 68 f6 8e 10 80 push $0x80108ef6 80106362: ff 75 f0 pushl -0x10(%ebp) 80106365: e8 22 bf ff ff call 8010228c <dirlink> 8010636a: 83 c4 10 add $0x10,%esp 8010636d: 85 c0 test %eax,%eax 8010636f: 78 1e js 8010638f <create+0x188> 80106371: 8b 45 f4 mov -0xc(%ebp),%eax 80106374: 8b 40 04 mov 0x4(%eax),%eax 80106377: 83 ec 04 sub $0x4,%esp 8010637a: 50 push %eax 8010637b: 68 f8 8e 10 80 push $0x80108ef8 80106380: ff 75 f0 pushl -0x10(%ebp) 80106383: e8 04 bf ff ff call 8010228c <dirlink> 80106388: 83 c4 10 add $0x10,%esp 8010638b: 85 c0 test %eax,%eax 8010638d: 79 0d jns 8010639c <create+0x195> panic("create dots"); 8010638f: 83 ec 0c sub $0xc,%esp 80106392: 68 2b 8f 10 80 push $0x80108f2b 80106397: e8 ca a1 ff ff call 80100566 <panic> } if(dirlink(dp, name, ip->inum) < 0) 8010639c: 8b 45 f0 mov -0x10(%ebp),%eax 8010639f: 8b 40 04 mov 0x4(%eax),%eax 801063a2: 83 ec 04 sub $0x4,%esp 801063a5: 50 push %eax 801063a6: 8d 45 de lea -0x22(%ebp),%eax 801063a9: 50 push %eax 801063aa: ff 75 f4 pushl -0xc(%ebp) 801063ad: e8 da be ff ff call 8010228c <dirlink> 801063b2: 83 c4 10 add $0x10,%esp 801063b5: 85 c0 test %eax,%eax 801063b7: 79 0d jns 801063c6 <create+0x1bf> panic("create: dirlink"); 801063b9: 83 ec 0c sub $0xc,%esp 801063bc: 68 37 8f 10 80 push $0x80108f37 801063c1: e8 a0 a1 ff ff call 80100566 <panic> iunlockput(dp); 801063c6: 83 ec 0c sub $0xc,%esp 801063c9: ff 75 f4 pushl -0xc(%ebp) 801063cc: e8 59 b8 ff ff call 80101c2a <iunlockput> 801063d1: 83 c4 10 add $0x10,%esp return ip; 801063d4: 8b 45 f0 mov -0x10(%ebp),%eax } 801063d7: c9 leave 801063d8: c3 ret 801063d9 <sys_open>: int sys_open(void) { 801063d9: 55 push %ebp 801063da: 89 e5 mov %esp,%ebp 801063dc: 83 ec 28 sub $0x28,%esp char *path; int fd, omode; struct file *f; struct inode *ip; if(argstr(0, &path) < 0 || argint(1, &omode) < 0) 801063df: 83 ec 08 sub $0x8,%esp 801063e2: 8d 45 e8 lea -0x18(%ebp),%eax 801063e5: 50 push %eax 801063e6: 6a 00 push $0x0 801063e8: e8 eb f6 ff ff call 80105ad8 <argstr> 801063ed: 83 c4 10 add $0x10,%esp 801063f0: 85 c0 test %eax,%eax 801063f2: 78 15 js 80106409 <sys_open+0x30> 801063f4: 83 ec 08 sub $0x8,%esp 801063f7: 8d 45 e4 lea -0x1c(%ebp),%eax 801063fa: 50 push %eax 801063fb: 6a 01 push $0x1 801063fd: e8 51 f6 ff ff call 80105a53 <argint> 80106402: 83 c4 10 add $0x10,%esp 80106405: 85 c0 test %eax,%eax 80106407: 79 0a jns 80106413 <sys_open+0x3a> return -1; 80106409: b8 ff ff ff ff mov $0xffffffff,%eax 8010640e: e9 61 01 00 00 jmp 80106574 <sys_open+0x19b> begin_op(); 80106413: e8 35 d1 ff ff call 8010354d <begin_op> if(omode & O_CREATE){ 80106418: 8b 45 e4 mov -0x1c(%ebp),%eax 8010641b: 25 00 02 00 00 and $0x200,%eax 80106420: 85 c0 test %eax,%eax 80106422: 74 2a je 8010644e <sys_open+0x75> ip = create(path, T_FILE, 0, 0); 80106424: 8b 45 e8 mov -0x18(%ebp),%eax 80106427: 6a 00 push $0x0 80106429: 6a 00 push $0x0 8010642b: 6a 02 push $0x2 8010642d: 50 push %eax 8010642e: e8 d4 fd ff ff call 80106207 <create> 80106433: 83 c4 10 add $0x10,%esp 80106436: 89 45 f4 mov %eax,-0xc(%ebp) if(ip == 0){ 80106439: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 8010643d: 75 75 jne 801064b4 <sys_open+0xdb> end_op(); 8010643f: e8 95 d1 ff ff call 801035d9 <end_op> return -1; 80106444: b8 ff ff ff ff mov $0xffffffff,%eax 80106449: e9 26 01 00 00 jmp 80106574 <sys_open+0x19b> } } else { if((ip = namei(path)) == 0){ 8010644e: 8b 45 e8 mov -0x18(%ebp),%eax 80106451: 83 ec 0c sub $0xc,%esp 80106454: 50 push %eax 80106455: e8 ce c0 ff ff call 80102528 <namei> 8010645a: 83 c4 10 add $0x10,%esp 8010645d: 89 45 f4 mov %eax,-0xc(%ebp) 80106460: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80106464: 75 0f jne 80106475 <sys_open+0x9c> end_op(); 80106466: e8 6e d1 ff ff call 801035d9 <end_op> return -1; 8010646b: b8 ff ff ff ff mov $0xffffffff,%eax 80106470: e9 ff 00 00 00 jmp 80106574 <sys_open+0x19b> } ilock(ip); 80106475: 83 ec 0c sub $0xc,%esp 80106478: ff 75 f4 pushl -0xc(%ebp) 8010647b: e8 ea b4 ff ff call 8010196a <ilock> 80106480: 83 c4 10 add $0x10,%esp if(ip->type == T_DIR && omode != O_RDONLY){ 80106483: 8b 45 f4 mov -0xc(%ebp),%eax 80106486: 0f b7 40 10 movzwl 0x10(%eax),%eax 8010648a: 66 83 f8 01 cmp $0x1,%ax 8010648e: 75 24 jne 801064b4 <sys_open+0xdb> 80106490: 8b 45 e4 mov -0x1c(%ebp),%eax 80106493: 85 c0 test %eax,%eax 80106495: 74 1d je 801064b4 <sys_open+0xdb> iunlockput(ip); 80106497: 83 ec 0c sub $0xc,%esp 8010649a: ff 75 f4 pushl -0xc(%ebp) 8010649d: e8 88 b7 ff ff call 80101c2a <iunlockput> 801064a2: 83 c4 10 add $0x10,%esp end_op(); 801064a5: e8 2f d1 ff ff call 801035d9 <end_op> return -1; 801064aa: b8 ff ff ff ff mov $0xffffffff,%eax 801064af: e9 c0 00 00 00 jmp 80106574 <sys_open+0x19b> } } if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){ 801064b4: e8 da aa ff ff call 80100f93 <filealloc> 801064b9: 89 45 f0 mov %eax,-0x10(%ebp) 801064bc: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801064c0: 74 17 je 801064d9 <sys_open+0x100> 801064c2: 83 ec 0c sub $0xc,%esp 801064c5: ff 75 f0 pushl -0x10(%ebp) 801064c8: e8 37 f7 ff ff call 80105c04 <fdalloc> 801064cd: 83 c4 10 add $0x10,%esp 801064d0: 89 45 ec mov %eax,-0x14(%ebp) 801064d3: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 801064d7: 79 2e jns 80106507 <sys_open+0x12e> if(f) 801064d9: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801064dd: 74 0e je 801064ed <sys_open+0x114> fileclose(f); 801064df: 83 ec 0c sub $0xc,%esp 801064e2: ff 75 f0 pushl -0x10(%ebp) 801064e5: e8 67 ab ff ff call 80101051 <fileclose> 801064ea: 83 c4 10 add $0x10,%esp iunlockput(ip); 801064ed: 83 ec 0c sub $0xc,%esp 801064f0: ff 75 f4 pushl -0xc(%ebp) 801064f3: e8 32 b7 ff ff call 80101c2a <iunlockput> 801064f8: 83 c4 10 add $0x10,%esp end_op(); 801064fb: e8 d9 d0 ff ff call 801035d9 <end_op> return -1; 80106500: b8 ff ff ff ff mov $0xffffffff,%eax 80106505: eb 6d jmp 80106574 <sys_open+0x19b> } iunlock(ip); 80106507: 83 ec 0c sub $0xc,%esp 8010650a: ff 75 f4 pushl -0xc(%ebp) 8010650d: e8 b6 b5 ff ff call 80101ac8 <iunlock> 80106512: 83 c4 10 add $0x10,%esp end_op(); 80106515: e8 bf d0 ff ff call 801035d9 <end_op> f->type = FD_INODE; 8010651a: 8b 45 f0 mov -0x10(%ebp),%eax 8010651d: c7 00 02 00 00 00 movl $0x2,(%eax) f->ip = ip; 80106523: 8b 45 f0 mov -0x10(%ebp),%eax 80106526: 8b 55 f4 mov -0xc(%ebp),%edx 80106529: 89 50 10 mov %edx,0x10(%eax) f->off = 0; 8010652c: 8b 45 f0 mov -0x10(%ebp),%eax 8010652f: c7 40 14 00 00 00 00 movl $0x0,0x14(%eax) f->readable = !(omode & O_WRONLY); 80106536: 8b 45 e4 mov -0x1c(%ebp),%eax 80106539: 83 e0 01 and $0x1,%eax 8010653c: 85 c0 test %eax,%eax 8010653e: 0f 94 c0 sete %al 80106541: 89 c2 mov %eax,%edx 80106543: 8b 45 f0 mov -0x10(%ebp),%eax 80106546: 88 50 08 mov %dl,0x8(%eax) f->writable = (omode & O_WRONLY) || (omode & O_RDWR); 80106549: 8b 45 e4 mov -0x1c(%ebp),%eax 8010654c: 83 e0 01 and $0x1,%eax 8010654f: 85 c0 test %eax,%eax 80106551: 75 0a jne 8010655d <sys_open+0x184> 80106553: 8b 45 e4 mov -0x1c(%ebp),%eax 80106556: 83 e0 02 and $0x2,%eax 80106559: 85 c0 test %eax,%eax 8010655b: 74 07 je 80106564 <sys_open+0x18b> 8010655d: b8 01 00 00 00 mov $0x1,%eax 80106562: eb 05 jmp 80106569 <sys_open+0x190> 80106564: b8 00 00 00 00 mov $0x0,%eax 80106569: 89 c2 mov %eax,%edx 8010656b: 8b 45 f0 mov -0x10(%ebp),%eax 8010656e: 88 50 09 mov %dl,0x9(%eax) return fd; 80106571: 8b 45 ec mov -0x14(%ebp),%eax } 80106574: c9 leave 80106575: c3 ret 80106576 <sys_mkdir>: int sys_mkdir(void) { 80106576: 55 push %ebp 80106577: 89 e5 mov %esp,%ebp 80106579: 83 ec 18 sub $0x18,%esp char *path; struct inode *ip; begin_op(); 8010657c: e8 cc cf ff ff call 8010354d <begin_op> if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){ 80106581: 83 ec 08 sub $0x8,%esp 80106584: 8d 45 f0 lea -0x10(%ebp),%eax 80106587: 50 push %eax 80106588: 6a 00 push $0x0 8010658a: e8 49 f5 ff ff call 80105ad8 <argstr> 8010658f: 83 c4 10 add $0x10,%esp 80106592: 85 c0 test %eax,%eax 80106594: 78 1b js 801065b1 <sys_mkdir+0x3b> 80106596: 8b 45 f0 mov -0x10(%ebp),%eax 80106599: 6a 00 push $0x0 8010659b: 6a 00 push $0x0 8010659d: 6a 01 push $0x1 8010659f: 50 push %eax 801065a0: e8 62 fc ff ff call 80106207 <create> 801065a5: 83 c4 10 add $0x10,%esp 801065a8: 89 45 f4 mov %eax,-0xc(%ebp) 801065ab: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801065af: 75 0c jne 801065bd <sys_mkdir+0x47> end_op(); 801065b1: e8 23 d0 ff ff call 801035d9 <end_op> return -1; 801065b6: b8 ff ff ff ff mov $0xffffffff,%eax 801065bb: eb 18 jmp 801065d5 <sys_mkdir+0x5f> } iunlockput(ip); 801065bd: 83 ec 0c sub $0xc,%esp 801065c0: ff 75 f4 pushl -0xc(%ebp) 801065c3: e8 62 b6 ff ff call 80101c2a <iunlockput> 801065c8: 83 c4 10 add $0x10,%esp end_op(); 801065cb: e8 09 d0 ff ff call 801035d9 <end_op> return 0; 801065d0: b8 00 00 00 00 mov $0x0,%eax } 801065d5: c9 leave 801065d6: c3 ret 801065d7 <sys_mknod>: int sys_mknod(void) { 801065d7: 55 push %ebp 801065d8: 89 e5 mov %esp,%ebp 801065da: 83 ec 28 sub $0x28,%esp struct inode *ip; char *path; int len; int major, minor; begin_op(); 801065dd: e8 6b cf ff ff call 8010354d <begin_op> if((len=argstr(0, &path)) < 0 || 801065e2: 83 ec 08 sub $0x8,%esp 801065e5: 8d 45 ec lea -0x14(%ebp),%eax 801065e8: 50 push %eax 801065e9: 6a 00 push $0x0 801065eb: e8 e8 f4 ff ff call 80105ad8 <argstr> 801065f0: 83 c4 10 add $0x10,%esp 801065f3: 89 45 f4 mov %eax,-0xc(%ebp) 801065f6: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801065fa: 78 4f js 8010664b <sys_mknod+0x74> argint(1, &major) < 0 || 801065fc: 83 ec 08 sub $0x8,%esp 801065ff: 8d 45 e8 lea -0x18(%ebp),%eax 80106602: 50 push %eax 80106603: 6a 01 push $0x1 80106605: e8 49 f4 ff ff call 80105a53 <argint> 8010660a: 83 c4 10 add $0x10,%esp char *path; int len; int major, minor; begin_op(); if((len=argstr(0, &path)) < 0 || 8010660d: 85 c0 test %eax,%eax 8010660f: 78 3a js 8010664b <sys_mknod+0x74> argint(1, &major) < 0 || argint(2, &minor) < 0 || 80106611: 83 ec 08 sub $0x8,%esp 80106614: 8d 45 e4 lea -0x1c(%ebp),%eax 80106617: 50 push %eax 80106618: 6a 02 push $0x2 8010661a: e8 34 f4 ff ff call 80105a53 <argint> 8010661f: 83 c4 10 add $0x10,%esp int len; int major, minor; begin_op(); if((len=argstr(0, &path)) < 0 || argint(1, &major) < 0 || 80106622: 85 c0 test %eax,%eax 80106624: 78 25 js 8010664b <sys_mknod+0x74> argint(2, &minor) < 0 || (ip = create(path, T_DEV, major, minor)) == 0){ 80106626: 8b 45 e4 mov -0x1c(%ebp),%eax 80106629: 0f bf c8 movswl %ax,%ecx 8010662c: 8b 45 e8 mov -0x18(%ebp),%eax 8010662f: 0f bf d0 movswl %ax,%edx 80106632: 8b 45 ec mov -0x14(%ebp),%eax int major, minor; begin_op(); if((len=argstr(0, &path)) < 0 || argint(1, &major) < 0 || argint(2, &minor) < 0 || 80106635: 51 push %ecx 80106636: 52 push %edx 80106637: 6a 03 push $0x3 80106639: 50 push %eax 8010663a: e8 c8 fb ff ff call 80106207 <create> 8010663f: 83 c4 10 add $0x10,%esp 80106642: 89 45 f0 mov %eax,-0x10(%ebp) 80106645: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80106649: 75 0c jne 80106657 <sys_mknod+0x80> (ip = create(path, T_DEV, major, minor)) == 0){ end_op(); 8010664b: e8 89 cf ff ff call 801035d9 <end_op> return -1; 80106650: b8 ff ff ff ff mov $0xffffffff,%eax 80106655: eb 18 jmp 8010666f <sys_mknod+0x98> } iunlockput(ip); 80106657: 83 ec 0c sub $0xc,%esp 8010665a: ff 75 f0 pushl -0x10(%ebp) 8010665d: e8 c8 b5 ff ff call 80101c2a <iunlockput> 80106662: 83 c4 10 add $0x10,%esp end_op(); 80106665: e8 6f cf ff ff call 801035d9 <end_op> return 0; 8010666a: b8 00 00 00 00 mov $0x0,%eax } 8010666f: c9 leave 80106670: c3 ret 80106671 <sys_chdir>: int sys_chdir(void) { 80106671: 55 push %ebp 80106672: 89 e5 mov %esp,%ebp 80106674: 83 ec 18 sub $0x18,%esp char *path; struct inode *ip; begin_op(); 80106677: e8 d1 ce ff ff call 8010354d <begin_op> if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){ 8010667c: 83 ec 08 sub $0x8,%esp 8010667f: 8d 45 f0 lea -0x10(%ebp),%eax 80106682: 50 push %eax 80106683: 6a 00 push $0x0 80106685: e8 4e f4 ff ff call 80105ad8 <argstr> 8010668a: 83 c4 10 add $0x10,%esp 8010668d: 85 c0 test %eax,%eax 8010668f: 78 18 js 801066a9 <sys_chdir+0x38> 80106691: 8b 45 f0 mov -0x10(%ebp),%eax 80106694: 83 ec 0c sub $0xc,%esp 80106697: 50 push %eax 80106698: e8 8b be ff ff call 80102528 <namei> 8010669d: 83 c4 10 add $0x10,%esp 801066a0: 89 45 f4 mov %eax,-0xc(%ebp) 801066a3: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801066a7: 75 0c jne 801066b5 <sys_chdir+0x44> end_op(); 801066a9: e8 2b cf ff ff call 801035d9 <end_op> return -1; 801066ae: b8 ff ff ff ff mov $0xffffffff,%eax 801066b3: eb 6e jmp 80106723 <sys_chdir+0xb2> } ilock(ip); 801066b5: 83 ec 0c sub $0xc,%esp 801066b8: ff 75 f4 pushl -0xc(%ebp) 801066bb: e8 aa b2 ff ff call 8010196a <ilock> 801066c0: 83 c4 10 add $0x10,%esp if(ip->type != T_DIR){ 801066c3: 8b 45 f4 mov -0xc(%ebp),%eax 801066c6: 0f b7 40 10 movzwl 0x10(%eax),%eax 801066ca: 66 83 f8 01 cmp $0x1,%ax 801066ce: 74 1a je 801066ea <sys_chdir+0x79> iunlockput(ip); 801066d0: 83 ec 0c sub $0xc,%esp 801066d3: ff 75 f4 pushl -0xc(%ebp) 801066d6: e8 4f b5 ff ff call 80101c2a <iunlockput> 801066db: 83 c4 10 add $0x10,%esp end_op(); 801066de: e8 f6 ce ff ff call 801035d9 <end_op> return -1; 801066e3: b8 ff ff ff ff mov $0xffffffff,%eax 801066e8: eb 39 jmp 80106723 <sys_chdir+0xb2> } iunlock(ip); 801066ea: 83 ec 0c sub $0xc,%esp 801066ed: ff 75 f4 pushl -0xc(%ebp) 801066f0: e8 d3 b3 ff ff call 80101ac8 <iunlock> 801066f5: 83 c4 10 add $0x10,%esp iput(proc->cwd); 801066f8: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801066fe: 8b 40 68 mov 0x68(%eax),%eax 80106701: 83 ec 0c sub $0xc,%esp 80106704: 50 push %eax 80106705: e8 30 b4 ff ff call 80101b3a <iput> 8010670a: 83 c4 10 add $0x10,%esp end_op(); 8010670d: e8 c7 ce ff ff call 801035d9 <end_op> proc->cwd = ip; 80106712: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106718: 8b 55 f4 mov -0xc(%ebp),%edx 8010671b: 89 50 68 mov %edx,0x68(%eax) return 0; 8010671e: b8 00 00 00 00 mov $0x0,%eax } 80106723: c9 leave 80106724: c3 ret 80106725 <sys_exec>: int sys_exec(void) { 80106725: 55 push %ebp 80106726: 89 e5 mov %esp,%ebp 80106728: 81 ec 98 00 00 00 sub $0x98,%esp char *path, *argv[MAXARG]; int i; uint uargv, uarg; if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){ 8010672e: 83 ec 08 sub $0x8,%esp 80106731: 8d 45 f0 lea -0x10(%ebp),%eax 80106734: 50 push %eax 80106735: 6a 00 push $0x0 80106737: e8 9c f3 ff ff call 80105ad8 <argstr> 8010673c: 83 c4 10 add $0x10,%esp 8010673f: 85 c0 test %eax,%eax 80106741: 78 18 js 8010675b <sys_exec+0x36> 80106743: 83 ec 08 sub $0x8,%esp 80106746: 8d 85 6c ff ff ff lea -0x94(%ebp),%eax 8010674c: 50 push %eax 8010674d: 6a 01 push $0x1 8010674f: e8 ff f2 ff ff call 80105a53 <argint> 80106754: 83 c4 10 add $0x10,%esp 80106757: 85 c0 test %eax,%eax 80106759: 79 0a jns 80106765 <sys_exec+0x40> return -1; 8010675b: b8 ff ff ff ff mov $0xffffffff,%eax 80106760: e9 c6 00 00 00 jmp 8010682b <sys_exec+0x106> } memset(argv, 0, sizeof(argv)); 80106765: 83 ec 04 sub $0x4,%esp 80106768: 68 80 00 00 00 push $0x80 8010676d: 6a 00 push $0x0 8010676f: 8d 85 70 ff ff ff lea -0x90(%ebp),%eax 80106775: 50 push %eax 80106776: e8 b3 ef ff ff call 8010572e <memset> 8010677b: 83 c4 10 add $0x10,%esp for(i=0;; i++){ 8010677e: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) if(i >= NELEM(argv)) 80106785: 8b 45 f4 mov -0xc(%ebp),%eax 80106788: 83 f8 1f cmp $0x1f,%eax 8010678b: 76 0a jbe 80106797 <sys_exec+0x72> return -1; 8010678d: b8 ff ff ff ff mov $0xffffffff,%eax 80106792: e9 94 00 00 00 jmp 8010682b <sys_exec+0x106> if(fetchint(uargv+4*i, (int*)&uarg) < 0) 80106797: 8b 45 f4 mov -0xc(%ebp),%eax 8010679a: c1 e0 02 shl $0x2,%eax 8010679d: 89 c2 mov %eax,%edx 8010679f: 8b 85 6c ff ff ff mov -0x94(%ebp),%eax 801067a5: 01 c2 add %eax,%edx 801067a7: 83 ec 08 sub $0x8,%esp 801067aa: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax 801067b0: 50 push %eax 801067b1: 52 push %edx 801067b2: e8 00 f2 ff ff call 801059b7 <fetchint> 801067b7: 83 c4 10 add $0x10,%esp 801067ba: 85 c0 test %eax,%eax 801067bc: 79 07 jns 801067c5 <sys_exec+0xa0> return -1; 801067be: b8 ff ff ff ff mov $0xffffffff,%eax 801067c3: eb 66 jmp 8010682b <sys_exec+0x106> if(uarg == 0){ 801067c5: 8b 85 68 ff ff ff mov -0x98(%ebp),%eax 801067cb: 85 c0 test %eax,%eax 801067cd: 75 27 jne 801067f6 <sys_exec+0xd1> argv[i] = 0; 801067cf: 8b 45 f4 mov -0xc(%ebp),%eax 801067d2: c7 84 85 70 ff ff ff movl $0x0,-0x90(%ebp,%eax,4) 801067d9: 00 00 00 00 break; 801067dd: 90 nop } if(fetchstr(uarg, &argv[i]) < 0) return -1; } return exec(path, argv); 801067de: 8b 45 f0 mov -0x10(%ebp),%eax 801067e1: 83 ec 08 sub $0x8,%esp 801067e4: 8d 95 70 ff ff ff lea -0x90(%ebp),%edx 801067ea: 52 push %edx 801067eb: 50 push %eax 801067ec: e8 80 a3 ff ff call 80100b71 <exec> 801067f1: 83 c4 10 add $0x10,%esp 801067f4: eb 35 jmp 8010682b <sys_exec+0x106> return -1; if(uarg == 0){ argv[i] = 0; break; } if(fetchstr(uarg, &argv[i]) < 0) 801067f6: 8d 85 70 ff ff ff lea -0x90(%ebp),%eax 801067fc: 8b 55 f4 mov -0xc(%ebp),%edx 801067ff: c1 e2 02 shl $0x2,%edx 80106802: 01 c2 add %eax,%edx 80106804: 8b 85 68 ff ff ff mov -0x98(%ebp),%eax 8010680a: 83 ec 08 sub $0x8,%esp 8010680d: 52 push %edx 8010680e: 50 push %eax 8010680f: e8 dd f1 ff ff call 801059f1 <fetchstr> 80106814: 83 c4 10 add $0x10,%esp 80106817: 85 c0 test %eax,%eax 80106819: 79 07 jns 80106822 <sys_exec+0xfd> return -1; 8010681b: b8 ff ff ff ff mov $0xffffffff,%eax 80106820: eb 09 jmp 8010682b <sys_exec+0x106> if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){ return -1; } memset(argv, 0, sizeof(argv)); for(i=0;; i++){ 80106822: 83 45 f4 01 addl $0x1,-0xc(%ebp) argv[i] = 0; break; } if(fetchstr(uarg, &argv[i]) < 0) return -1; } 80106826: e9 5a ff ff ff jmp 80106785 <sys_exec+0x60> return exec(path, argv); } 8010682b: c9 leave 8010682c: c3 ret 8010682d <sys_pipe>: int sys_pipe(void) { 8010682d: 55 push %ebp 8010682e: 89 e5 mov %esp,%ebp 80106830: 83 ec 28 sub $0x28,%esp int *fd; struct file *rf, *wf; int fd0, fd1; if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0) 80106833: 83 ec 04 sub $0x4,%esp 80106836: 6a 08 push $0x8 80106838: 8d 45 ec lea -0x14(%ebp),%eax 8010683b: 50 push %eax 8010683c: 6a 00 push $0x0 8010683e: e8 38 f2 ff ff call 80105a7b <argptr> 80106843: 83 c4 10 add $0x10,%esp 80106846: 85 c0 test %eax,%eax 80106848: 79 0a jns 80106854 <sys_pipe+0x27> return -1; 8010684a: b8 ff ff ff ff mov $0xffffffff,%eax 8010684f: e9 af 00 00 00 jmp 80106903 <sys_pipe+0xd6> if(pipealloc(&rf, &wf) < 0) 80106854: 83 ec 08 sub $0x8,%esp 80106857: 8d 45 e4 lea -0x1c(%ebp),%eax 8010685a: 50 push %eax 8010685b: 8d 45 e8 lea -0x18(%ebp),%eax 8010685e: 50 push %eax 8010685f: e8 dd d7 ff ff call 80104041 <pipealloc> 80106864: 83 c4 10 add $0x10,%esp 80106867: 85 c0 test %eax,%eax 80106869: 79 0a jns 80106875 <sys_pipe+0x48> return -1; 8010686b: b8 ff ff ff ff mov $0xffffffff,%eax 80106870: e9 8e 00 00 00 jmp 80106903 <sys_pipe+0xd6> fd0 = -1; 80106875: c7 45 f4 ff ff ff ff movl $0xffffffff,-0xc(%ebp) if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){ 8010687c: 8b 45 e8 mov -0x18(%ebp),%eax 8010687f: 83 ec 0c sub $0xc,%esp 80106882: 50 push %eax 80106883: e8 7c f3 ff ff call 80105c04 <fdalloc> 80106888: 83 c4 10 add $0x10,%esp 8010688b: 89 45 f4 mov %eax,-0xc(%ebp) 8010688e: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 80106892: 78 18 js 801068ac <sys_pipe+0x7f> 80106894: 8b 45 e4 mov -0x1c(%ebp),%eax 80106897: 83 ec 0c sub $0xc,%esp 8010689a: 50 push %eax 8010689b: e8 64 f3 ff ff call 80105c04 <fdalloc> 801068a0: 83 c4 10 add $0x10,%esp 801068a3: 89 45 f0 mov %eax,-0x10(%ebp) 801068a6: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801068aa: 79 3f jns 801068eb <sys_pipe+0xbe> if(fd0 >= 0) 801068ac: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801068b0: 78 14 js 801068c6 <sys_pipe+0x99> proc->ofile[fd0] = 0; 801068b2: 65 a1 04 00 00 00 mov %gs:0x4,%eax 801068b8: 8b 55 f4 mov -0xc(%ebp),%edx 801068bb: 83 c2 08 add $0x8,%edx 801068be: c7 44 90 08 00 00 00 movl $0x0,0x8(%eax,%edx,4) 801068c5: 00 fileclose(rf); 801068c6: 8b 45 e8 mov -0x18(%ebp),%eax 801068c9: 83 ec 0c sub $0xc,%esp 801068cc: 50 push %eax 801068cd: e8 7f a7 ff ff call 80101051 <fileclose> 801068d2: 83 c4 10 add $0x10,%esp fileclose(wf); 801068d5: 8b 45 e4 mov -0x1c(%ebp),%eax 801068d8: 83 ec 0c sub $0xc,%esp 801068db: 50 push %eax 801068dc: e8 70 a7 ff ff call 80101051 <fileclose> 801068e1: 83 c4 10 add $0x10,%esp return -1; 801068e4: b8 ff ff ff ff mov $0xffffffff,%eax 801068e9: eb 18 jmp 80106903 <sys_pipe+0xd6> } fd[0] = fd0; 801068eb: 8b 45 ec mov -0x14(%ebp),%eax 801068ee: 8b 55 f4 mov -0xc(%ebp),%edx 801068f1: 89 10 mov %edx,(%eax) fd[1] = fd1; 801068f3: 8b 45 ec mov -0x14(%ebp),%eax 801068f6: 8d 50 04 lea 0x4(%eax),%edx 801068f9: 8b 45 f0 mov -0x10(%ebp),%eax 801068fc: 89 02 mov %eax,(%edx) return 0; 801068fe: b8 00 00 00 00 mov $0x0,%eax } 80106903: c9 leave 80106904: c3 ret 80106905 <sys_fork>: #include "mmu.h" #include "proc.h" int sys_fork(void) { 80106905: 55 push %ebp 80106906: 89 e5 mov %esp,%ebp 80106908: 83 ec 08 sub $0x8,%esp return fork(); 8010690b: e8 9a de ff ff call 801047aa <fork> } 80106910: c9 leave 80106911: c3 ret 80106912 <sys_exit>: int sys_exit(void) { 80106912: 55 push %ebp 80106913: 89 e5 mov %esp,%ebp 80106915: 83 ec 08 sub $0x8,%esp exit(); 80106918: e8 1e e0 ff ff call 8010493b <exit> return 0; // not reached 8010691d: b8 00 00 00 00 mov $0x0,%eax } 80106922: c9 leave 80106923: c3 ret 80106924 <sys_wait>: int sys_wait(void) { 80106924: 55 push %ebp 80106925: 89 e5 mov %esp,%ebp 80106927: 83 ec 08 sub $0x8,%esp return wait(); 8010692a: e8 47 e1 ff ff call 80104a76 <wait> } 8010692f: c9 leave 80106930: c3 ret 80106931 <sys_kill>: int sys_kill(void) { 80106931: 55 push %ebp 80106932: 89 e5 mov %esp,%ebp 80106934: 83 ec 18 sub $0x18,%esp int pid; if(argint(0, &pid) < 0) 80106937: 83 ec 08 sub $0x8,%esp 8010693a: 8d 45 f4 lea -0xc(%ebp),%eax 8010693d: 50 push %eax 8010693e: 6a 00 push $0x0 80106940: e8 0e f1 ff ff call 80105a53 <argint> 80106945: 83 c4 10 add $0x10,%esp 80106948: 85 c0 test %eax,%eax 8010694a: 79 07 jns 80106953 <sys_kill+0x22> return -1; 8010694c: b8 ff ff ff ff mov $0xffffffff,%eax 80106951: eb 0f jmp 80106962 <sys_kill+0x31> return kill(pid); 80106953: 8b 45 f4 mov -0xc(%ebp),%eax 80106956: 83 ec 0c sub $0xc,%esp 80106959: 50 push %eax 8010695a: e8 8f e9 ff ff call 801052ee <kill> 8010695f: 83 c4 10 add $0x10,%esp } 80106962: c9 leave 80106963: c3 ret 80106964 <sys_getpid>: int sys_getpid(void) { 80106964: 55 push %ebp 80106965: 89 e5 mov %esp,%ebp return proc->pid; 80106967: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010696d: 8b 40 10 mov 0x10(%eax),%eax } 80106970: 5d pop %ebp 80106971: c3 ret 80106972 <sys_sbrk>: int sys_sbrk(void) { 80106972: 55 push %ebp 80106973: 89 e5 mov %esp,%ebp 80106975: 83 ec 18 sub $0x18,%esp int addr; int n; if(argint(0, &n) < 0) 80106978: 83 ec 08 sub $0x8,%esp 8010697b: 8d 45 f0 lea -0x10(%ebp),%eax 8010697e: 50 push %eax 8010697f: 6a 00 push $0x0 80106981: e8 cd f0 ff ff call 80105a53 <argint> 80106986: 83 c4 10 add $0x10,%esp 80106989: 85 c0 test %eax,%eax 8010698b: 79 07 jns 80106994 <sys_sbrk+0x22> return -1; 8010698d: b8 ff ff ff ff mov $0xffffffff,%eax 80106992: eb 28 jmp 801069bc <sys_sbrk+0x4a> addr = proc->sz; 80106994: 65 a1 04 00 00 00 mov %gs:0x4,%eax 8010699a: 8b 00 mov (%eax),%eax 8010699c: 89 45 f4 mov %eax,-0xc(%ebp) if(growproc(n) < 0) 8010699f: 8b 45 f0 mov -0x10(%ebp),%eax 801069a2: 83 ec 0c sub $0xc,%esp 801069a5: 50 push %eax 801069a6: e8 5c dd ff ff call 80104707 <growproc> 801069ab: 83 c4 10 add $0x10,%esp 801069ae: 85 c0 test %eax,%eax 801069b0: 79 07 jns 801069b9 <sys_sbrk+0x47> return -1; 801069b2: b8 ff ff ff ff mov $0xffffffff,%eax 801069b7: eb 03 jmp 801069bc <sys_sbrk+0x4a> return addr; 801069b9: 8b 45 f4 mov -0xc(%ebp),%eax } 801069bc: c9 leave 801069bd: c3 ret 801069be <sys_sleep>: int sys_sleep(void) { 801069be: 55 push %ebp 801069bf: 89 e5 mov %esp,%ebp 801069c1: 83 ec 18 sub $0x18,%esp int n; uint ticks0; if(argint(0, &n) < 0) 801069c4: 83 ec 08 sub $0x8,%esp 801069c7: 8d 45 f0 lea -0x10(%ebp),%eax 801069ca: 50 push %eax 801069cb: 6a 00 push $0x0 801069cd: e8 81 f0 ff ff call 80105a53 <argint> 801069d2: 83 c4 10 add $0x10,%esp 801069d5: 85 c0 test %eax,%eax 801069d7: 79 07 jns 801069e0 <sys_sleep+0x22> return -1; 801069d9: b8 ff ff ff ff mov $0xffffffff,%eax 801069de: eb 77 jmp 80106a57 <sys_sleep+0x99> acquire(&tickslock); 801069e0: 83 ec 0c sub $0xc,%esp 801069e3: 68 e0 5d 11 80 push $0x80115de0 801069e8: e8 de ea ff ff call 801054cb <acquire> 801069ed: 83 c4 10 add $0x10,%esp ticks0 = ticks; 801069f0: a1 20 66 11 80 mov 0x80116620,%eax 801069f5: 89 45 f4 mov %eax,-0xc(%ebp) while(ticks - ticks0 < n){ 801069f8: eb 39 jmp 80106a33 <sys_sleep+0x75> if(proc->killed){ 801069fa: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106a00: 8b 40 24 mov 0x24(%eax),%eax 80106a03: 85 c0 test %eax,%eax 80106a05: 74 17 je 80106a1e <sys_sleep+0x60> release(&tickslock); 80106a07: 83 ec 0c sub $0xc,%esp 80106a0a: 68 e0 5d 11 80 push $0x80115de0 80106a0f: e8 1e eb ff ff call 80105532 <release> 80106a14: 83 c4 10 add $0x10,%esp return -1; 80106a17: b8 ff ff ff ff mov $0xffffffff,%eax 80106a1c: eb 39 jmp 80106a57 <sys_sleep+0x99> } sleep(&ticks, &tickslock); 80106a1e: 83 ec 08 sub $0x8,%esp 80106a21: 68 e0 5d 11 80 push $0x80115de0 80106a26: 68 20 66 11 80 push $0x80116620 80106a2b: e8 99 e7 ff ff call 801051c9 <sleep> 80106a30: 83 c4 10 add $0x10,%esp if(argint(0, &n) < 0) return -1; acquire(&tickslock); ticks0 = ticks; while(ticks - ticks0 < n){ 80106a33: a1 20 66 11 80 mov 0x80116620,%eax 80106a38: 2b 45 f4 sub -0xc(%ebp),%eax 80106a3b: 8b 55 f0 mov -0x10(%ebp),%edx 80106a3e: 39 d0 cmp %edx,%eax 80106a40: 72 b8 jb 801069fa <sys_sleep+0x3c> release(&tickslock); return -1; } sleep(&ticks, &tickslock); } release(&tickslock); 80106a42: 83 ec 0c sub $0xc,%esp 80106a45: 68 e0 5d 11 80 push $0x80115de0 80106a4a: e8 e3 ea ff ff call 80105532 <release> 80106a4f: 83 c4 10 add $0x10,%esp return 0; 80106a52: b8 00 00 00 00 mov $0x0,%eax } 80106a57: c9 leave 80106a58: c3 ret 80106a59 <sys_uptime>: // return how many clock tick interrupts have occurred // since start. int sys_uptime(void) { 80106a59: 55 push %ebp 80106a5a: 89 e5 mov %esp,%ebp 80106a5c: 83 ec 18 sub $0x18,%esp uint xticks; acquire(&tickslock); 80106a5f: 83 ec 0c sub $0xc,%esp 80106a62: 68 e0 5d 11 80 push $0x80115de0 80106a67: e8 5f ea ff ff call 801054cb <acquire> 80106a6c: 83 c4 10 add $0x10,%esp xticks = ticks; 80106a6f: a1 20 66 11 80 mov 0x80116620,%eax 80106a74: 89 45 f4 mov %eax,-0xc(%ebp) release(&tickslock); 80106a77: 83 ec 0c sub $0xc,%esp 80106a7a: 68 e0 5d 11 80 push $0x80115de0 80106a7f: e8 ae ea ff ff call 80105532 <release> 80106a84: 83 c4 10 add $0x10,%esp return xticks; 80106a87: 8b 45 f4 mov -0xc(%ebp),%eax } 80106a8a: c9 leave 80106a8b: c3 ret 80106a8c <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 80106a8c: 55 push %ebp 80106a8d: 89 e5 mov %esp,%ebp 80106a8f: 83 ec 08 sub $0x8,%esp 80106a92: 8b 55 08 mov 0x8(%ebp),%edx 80106a95: 8b 45 0c mov 0xc(%ebp),%eax 80106a98: 66 89 55 fc mov %dx,-0x4(%ebp) 80106a9c: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80106a9f: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80106aa3: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80106aa7: ee out %al,(%dx) } 80106aa8: 90 nop 80106aa9: c9 leave 80106aaa: c3 ret 80106aab <timerinit>: #define TIMER_RATEGEN 0x04 // mode 2, rate generator #define TIMER_16BIT 0x30 // r/w counter 16 bits, LSB first void timerinit(void) { 80106aab: 55 push %ebp 80106aac: 89 e5 mov %esp,%ebp 80106aae: 83 ec 08 sub $0x8,%esp // Interrupt 100 times/sec. outb(TIMER_MODE, TIMER_SEL0 | TIMER_RATEGEN | TIMER_16BIT); 80106ab1: 6a 34 push $0x34 80106ab3: 6a 43 push $0x43 80106ab5: e8 d2 ff ff ff call 80106a8c <outb> 80106aba: 83 c4 08 add $0x8,%esp outb(IO_TIMER1, TIMER_DIV(100) % 256); 80106abd: 68 9c 00 00 00 push $0x9c 80106ac2: 6a 40 push $0x40 80106ac4: e8 c3 ff ff ff call 80106a8c <outb> 80106ac9: 83 c4 08 add $0x8,%esp outb(IO_TIMER1, TIMER_DIV(100) / 256); 80106acc: 6a 2e push $0x2e 80106ace: 6a 40 push $0x40 80106ad0: e8 b7 ff ff ff call 80106a8c <outb> 80106ad5: 83 c4 08 add $0x8,%esp picenable(IRQ_TIMER); 80106ad8: 83 ec 0c sub $0xc,%esp 80106adb: 6a 00 push $0x0 80106add: e8 49 d4 ff ff call 80103f2b <picenable> 80106ae2: 83 c4 10 add $0x10,%esp } 80106ae5: 90 nop 80106ae6: c9 leave 80106ae7: c3 ret 80106ae8 <alltraps>: # vectors.S sends all traps here. .globl alltraps alltraps: # Build trap frame. pushl %ds 80106ae8: 1e push %ds pushl %es 80106ae9: 06 push %es pushl %fs 80106aea: 0f a0 push %fs pushl %gs 80106aec: 0f a8 push %gs pushal 80106aee: 60 pusha # Set up data and per-cpu segments. movw $(SEG_KDATA<<3), %ax 80106aef: 66 b8 10 00 mov $0x10,%ax movw %ax, %ds 80106af3: 8e d8 mov %eax,%ds movw %ax, %es 80106af5: 8e c0 mov %eax,%es movw $(SEG_KCPU<<3), %ax 80106af7: 66 b8 18 00 mov $0x18,%ax movw %ax, %fs 80106afb: 8e e0 mov %eax,%fs movw %ax, %gs 80106afd: 8e e8 mov %eax,%gs # Call trap(tf), where tf=%esp pushl %esp 80106aff: 54 push %esp call trap 80106b00: e8 d7 01 00 00 call 80106cdc <trap> addl $4, %esp 80106b05: 83 c4 04 add $0x4,%esp 80106b08 <trapret>: # Return falls through to trapret... .globl trapret trapret: popal 80106b08: 61 popa popl %gs 80106b09: 0f a9 pop %gs popl %fs 80106b0b: 0f a1 pop %fs popl %es 80106b0d: 07 pop %es popl %ds 80106b0e: 1f pop %ds addl $0x8, %esp # trapno and errcode 80106b0f: 83 c4 08 add $0x8,%esp iret 80106b12: cf iret 80106b13 <lidt>: struct gatedesc; static inline void lidt(struct gatedesc *p, int size) { 80106b13: 55 push %ebp 80106b14: 89 e5 mov %esp,%ebp 80106b16: 83 ec 10 sub $0x10,%esp volatile ushort pd[3]; pd[0] = size-1; 80106b19: 8b 45 0c mov 0xc(%ebp),%eax 80106b1c: 83 e8 01 sub $0x1,%eax 80106b1f: 66 89 45 fa mov %ax,-0x6(%ebp) pd[1] = (uint)p; 80106b23: 8b 45 08 mov 0x8(%ebp),%eax 80106b26: 66 89 45 fc mov %ax,-0x4(%ebp) pd[2] = (uint)p >> 16; 80106b2a: 8b 45 08 mov 0x8(%ebp),%eax 80106b2d: c1 e8 10 shr $0x10,%eax 80106b30: 66 89 45 fe mov %ax,-0x2(%ebp) asm volatile("lidt (%0)" : : "r" (pd)); 80106b34: 8d 45 fa lea -0x6(%ebp),%eax 80106b37: 0f 01 18 lidtl (%eax) } 80106b3a: 90 nop 80106b3b: c9 leave 80106b3c: c3 ret 80106b3d <rcr2>: return result; } static inline uint rcr2(void) { 80106b3d: 55 push %ebp 80106b3e: 89 e5 mov %esp,%ebp 80106b40: 83 ec 10 sub $0x10,%esp uint val; asm volatile("movl %%cr2,%0" : "=r" (val)); 80106b43: 0f 20 d0 mov %cr2,%eax 80106b46: 89 45 fc mov %eax,-0x4(%ebp) return val; 80106b49: 8b 45 fc mov -0x4(%ebp),%eax } 80106b4c: c9 leave 80106b4d: c3 ret 80106b4e <tvinit>: struct spinlock tickslock; uint ticks; void tvinit(void) { 80106b4e: 55 push %ebp 80106b4f: 89 e5 mov %esp,%ebp 80106b51: 83 ec 18 sub $0x18,%esp int i; for(i = 0; i < 256; i++) 80106b54: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80106b5b: e9 c3 00 00 00 jmp 80106c23 <tvinit+0xd5> SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0); 80106b60: 8b 45 f4 mov -0xc(%ebp),%eax 80106b63: 8b 04 85 98 c0 10 80 mov -0x7fef3f68(,%eax,4),%eax 80106b6a: 89 c2 mov %eax,%edx 80106b6c: 8b 45 f4 mov -0xc(%ebp),%eax 80106b6f: 66 89 14 c5 20 5e 11 mov %dx,-0x7feea1e0(,%eax,8) 80106b76: 80 80106b77: 8b 45 f4 mov -0xc(%ebp),%eax 80106b7a: 66 c7 04 c5 22 5e 11 movw $0x8,-0x7feea1de(,%eax,8) 80106b81: 80 08 00 80106b84: 8b 45 f4 mov -0xc(%ebp),%eax 80106b87: 0f b6 14 c5 24 5e 11 movzbl -0x7feea1dc(,%eax,8),%edx 80106b8e: 80 80106b8f: 83 e2 e0 and $0xffffffe0,%edx 80106b92: 88 14 c5 24 5e 11 80 mov %dl,-0x7feea1dc(,%eax,8) 80106b99: 8b 45 f4 mov -0xc(%ebp),%eax 80106b9c: 0f b6 14 c5 24 5e 11 movzbl -0x7feea1dc(,%eax,8),%edx 80106ba3: 80 80106ba4: 83 e2 1f and $0x1f,%edx 80106ba7: 88 14 c5 24 5e 11 80 mov %dl,-0x7feea1dc(,%eax,8) 80106bae: 8b 45 f4 mov -0xc(%ebp),%eax 80106bb1: 0f b6 14 c5 25 5e 11 movzbl -0x7feea1db(,%eax,8),%edx 80106bb8: 80 80106bb9: 83 e2 f0 and $0xfffffff0,%edx 80106bbc: 83 ca 0e or $0xe,%edx 80106bbf: 88 14 c5 25 5e 11 80 mov %dl,-0x7feea1db(,%eax,8) 80106bc6: 8b 45 f4 mov -0xc(%ebp),%eax 80106bc9: 0f b6 14 c5 25 5e 11 movzbl -0x7feea1db(,%eax,8),%edx 80106bd0: 80 80106bd1: 83 e2 ef and $0xffffffef,%edx 80106bd4: 88 14 c5 25 5e 11 80 mov %dl,-0x7feea1db(,%eax,8) 80106bdb: 8b 45 f4 mov -0xc(%ebp),%eax 80106bde: 0f b6 14 c5 25 5e 11 movzbl -0x7feea1db(,%eax,8),%edx 80106be5: 80 80106be6: 83 e2 9f and $0xffffff9f,%edx 80106be9: 88 14 c5 25 5e 11 80 mov %dl,-0x7feea1db(,%eax,8) 80106bf0: 8b 45 f4 mov -0xc(%ebp),%eax 80106bf3: 0f b6 14 c5 25 5e 11 movzbl -0x7feea1db(,%eax,8),%edx 80106bfa: 80 80106bfb: 83 ca 80 or $0xffffff80,%edx 80106bfe: 88 14 c5 25 5e 11 80 mov %dl,-0x7feea1db(,%eax,8) 80106c05: 8b 45 f4 mov -0xc(%ebp),%eax 80106c08: 8b 04 85 98 c0 10 80 mov -0x7fef3f68(,%eax,4),%eax 80106c0f: c1 e8 10 shr $0x10,%eax 80106c12: 89 c2 mov %eax,%edx 80106c14: 8b 45 f4 mov -0xc(%ebp),%eax 80106c17: 66 89 14 c5 26 5e 11 mov %dx,-0x7feea1da(,%eax,8) 80106c1e: 80 void tvinit(void) { int i; for(i = 0; i < 256; i++) 80106c1f: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80106c23: 81 7d f4 ff 00 00 00 cmpl $0xff,-0xc(%ebp) 80106c2a: 0f 8e 30 ff ff ff jle 80106b60 <tvinit+0x12> SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0); SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER); 80106c30: a1 98 c1 10 80 mov 0x8010c198,%eax 80106c35: 66 a3 20 60 11 80 mov %ax,0x80116020 80106c3b: 66 c7 05 22 60 11 80 movw $0x8,0x80116022 80106c42: 08 00 80106c44: 0f b6 05 24 60 11 80 movzbl 0x80116024,%eax 80106c4b: 83 e0 e0 and $0xffffffe0,%eax 80106c4e: a2 24 60 11 80 mov %al,0x80116024 80106c53: 0f b6 05 24 60 11 80 movzbl 0x80116024,%eax 80106c5a: 83 e0 1f and $0x1f,%eax 80106c5d: a2 24 60 11 80 mov %al,0x80116024 80106c62: 0f b6 05 25 60 11 80 movzbl 0x80116025,%eax 80106c69: 83 c8 0f or $0xf,%eax 80106c6c: a2 25 60 11 80 mov %al,0x80116025 80106c71: 0f b6 05 25 60 11 80 movzbl 0x80116025,%eax 80106c78: 83 e0 ef and $0xffffffef,%eax 80106c7b: a2 25 60 11 80 mov %al,0x80116025 80106c80: 0f b6 05 25 60 11 80 movzbl 0x80116025,%eax 80106c87: 83 c8 60 or $0x60,%eax 80106c8a: a2 25 60 11 80 mov %al,0x80116025 80106c8f: 0f b6 05 25 60 11 80 movzbl 0x80116025,%eax 80106c96: 83 c8 80 or $0xffffff80,%eax 80106c99: a2 25 60 11 80 mov %al,0x80116025 80106c9e: a1 98 c1 10 80 mov 0x8010c198,%eax 80106ca3: c1 e8 10 shr $0x10,%eax 80106ca6: 66 a3 26 60 11 80 mov %ax,0x80116026 initlock(&tickslock, "time"); 80106cac: 83 ec 08 sub $0x8,%esp 80106caf: 68 48 8f 10 80 push $0x80108f48 80106cb4: 68 e0 5d 11 80 push $0x80115de0 80106cb9: e8 eb e7 ff ff call 801054a9 <initlock> 80106cbe: 83 c4 10 add $0x10,%esp } 80106cc1: 90 nop 80106cc2: c9 leave 80106cc3: c3 ret 80106cc4 <idtinit>: void idtinit(void) { 80106cc4: 55 push %ebp 80106cc5: 89 e5 mov %esp,%ebp lidt(idt, sizeof(idt)); 80106cc7: 68 00 08 00 00 push $0x800 80106ccc: 68 20 5e 11 80 push $0x80115e20 80106cd1: e8 3d fe ff ff call 80106b13 <lidt> 80106cd6: 83 c4 08 add $0x8,%esp } 80106cd9: 90 nop 80106cda: c9 leave 80106cdb: c3 ret 80106cdc <trap>: //PAGEBREAK: 41 void trap(struct trapframe *tf) { 80106cdc: 55 push %ebp 80106cdd: 89 e5 mov %esp,%ebp 80106cdf: 57 push %edi 80106ce0: 56 push %esi 80106ce1: 53 push %ebx 80106ce2: 83 ec 1c sub $0x1c,%esp if(tf->trapno == T_SYSCALL){ 80106ce5: 8b 45 08 mov 0x8(%ebp),%eax 80106ce8: 8b 40 30 mov 0x30(%eax),%eax 80106ceb: 83 f8 40 cmp $0x40,%eax 80106cee: 75 3e jne 80106d2e <trap+0x52> if(proc->killed) 80106cf0: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106cf6: 8b 40 24 mov 0x24(%eax),%eax 80106cf9: 85 c0 test %eax,%eax 80106cfb: 74 05 je 80106d02 <trap+0x26> exit(); 80106cfd: e8 39 dc ff ff call 8010493b <exit> proc->tf = tf; 80106d02: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106d08: 8b 55 08 mov 0x8(%ebp),%edx 80106d0b: 89 50 18 mov %edx,0x18(%eax) syscall(); 80106d0e: e8 f6 ed ff ff call 80105b09 <syscall> if(proc->killed) 80106d13: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106d19: 8b 40 24 mov 0x24(%eax),%eax 80106d1c: 85 c0 test %eax,%eax 80106d1e: 0f 84 1b 02 00 00 je 80106f3f <trap+0x263> exit(); 80106d24: e8 12 dc ff ff call 8010493b <exit> return; 80106d29: e9 11 02 00 00 jmp 80106f3f <trap+0x263> } switch(tf->trapno){ 80106d2e: 8b 45 08 mov 0x8(%ebp),%eax 80106d31: 8b 40 30 mov 0x30(%eax),%eax 80106d34: 83 e8 20 sub $0x20,%eax 80106d37: 83 f8 1f cmp $0x1f,%eax 80106d3a: 0f 87 c0 00 00 00 ja 80106e00 <trap+0x124> 80106d40: 8b 04 85 f0 8f 10 80 mov -0x7fef7010(,%eax,4),%eax 80106d47: ff e0 jmp *%eax case T_IRQ0 + IRQ_TIMER: if(cpu->id == 0){ 80106d49: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80106d4f: 0f b6 00 movzbl (%eax),%eax 80106d52: 84 c0 test %al,%al 80106d54: 75 3d jne 80106d93 <trap+0xb7> acquire(&tickslock); 80106d56: 83 ec 0c sub $0xc,%esp 80106d59: 68 e0 5d 11 80 push $0x80115de0 80106d5e: e8 68 e7 ff ff call 801054cb <acquire> 80106d63: 83 c4 10 add $0x10,%esp ticks++; 80106d66: a1 20 66 11 80 mov 0x80116620,%eax 80106d6b: 83 c0 01 add $0x1,%eax 80106d6e: a3 20 66 11 80 mov %eax,0x80116620 wakeup(&ticks); 80106d73: 83 ec 0c sub $0xc,%esp 80106d76: 68 20 66 11 80 push $0x80116620 80106d7b: e8 37 e5 ff ff call 801052b7 <wakeup> 80106d80: 83 c4 10 add $0x10,%esp release(&tickslock); 80106d83: 83 ec 0c sub $0xc,%esp 80106d86: 68 e0 5d 11 80 push $0x80115de0 80106d8b: e8 a2 e7 ff ff call 80105532 <release> 80106d90: 83 c4 10 add $0x10,%esp } lapiceoi(); 80106d93: e8 8d c2 ff ff call 80103025 <lapiceoi> break; 80106d98: e9 1c 01 00 00 jmp 80106eb9 <trap+0x1dd> case T_IRQ0 + IRQ_IDE: ideintr(); 80106d9d: e8 96 ba ff ff call 80102838 <ideintr> lapiceoi(); 80106da2: e8 7e c2 ff ff call 80103025 <lapiceoi> break; 80106da7: e9 0d 01 00 00 jmp 80106eb9 <trap+0x1dd> case T_IRQ0 + IRQ_IDE+1: // Bochs generates spurious IDE1 interrupts. break; case T_IRQ0 + IRQ_KBD: kbdintr(); 80106dac: e8 76 c0 ff ff call 80102e27 <kbdintr> lapiceoi(); 80106db1: e8 6f c2 ff ff call 80103025 <lapiceoi> break; 80106db6: e9 fe 00 00 00 jmp 80106eb9 <trap+0x1dd> case T_IRQ0 + IRQ_COM1: uartintr(); 80106dbb: e8 60 03 00 00 call 80107120 <uartintr> lapiceoi(); 80106dc0: e8 60 c2 ff ff call 80103025 <lapiceoi> break; 80106dc5: e9 ef 00 00 00 jmp 80106eb9 <trap+0x1dd> case T_IRQ0 + 7: case T_IRQ0 + IRQ_SPURIOUS: cprintf("cpu%d: spurious interrupt at %x:%x\n", 80106dca: 8b 45 08 mov 0x8(%ebp),%eax 80106dcd: 8b 48 38 mov 0x38(%eax),%ecx cpu->id, tf->cs, tf->eip); 80106dd0: 8b 45 08 mov 0x8(%ebp),%eax 80106dd3: 0f b7 40 3c movzwl 0x3c(%eax),%eax uartintr(); lapiceoi(); break; case T_IRQ0 + 7: case T_IRQ0 + IRQ_SPURIOUS: cprintf("cpu%d: spurious interrupt at %x:%x\n", 80106dd7: 0f b7 d0 movzwl %ax,%edx cpu->id, tf->cs, tf->eip); 80106dda: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80106de0: 0f b6 00 movzbl (%eax),%eax uartintr(); lapiceoi(); break; case T_IRQ0 + 7: case T_IRQ0 + IRQ_SPURIOUS: cprintf("cpu%d: spurious interrupt at %x:%x\n", 80106de3: 0f b6 c0 movzbl %al,%eax 80106de6: 51 push %ecx 80106de7: 52 push %edx 80106de8: 50 push %eax 80106de9: 68 50 8f 10 80 push $0x80108f50 80106dee: e8 d3 95 ff ff call 801003c6 <cprintf> 80106df3: 83 c4 10 add $0x10,%esp cpu->id, tf->cs, tf->eip); lapiceoi(); 80106df6: e8 2a c2 ff ff call 80103025 <lapiceoi> break; 80106dfb: e9 b9 00 00 00 jmp 80106eb9 <trap+0x1dd> //PAGEBREAK: 13 default: if(proc == 0 || (tf->cs&3) == 0){ 80106e00: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106e06: 85 c0 test %eax,%eax 80106e08: 74 11 je 80106e1b <trap+0x13f> 80106e0a: 8b 45 08 mov 0x8(%ebp),%eax 80106e0d: 0f b7 40 3c movzwl 0x3c(%eax),%eax 80106e11: 0f b7 c0 movzwl %ax,%eax 80106e14: 83 e0 03 and $0x3,%eax 80106e17: 85 c0 test %eax,%eax 80106e19: 75 40 jne 80106e5b <trap+0x17f> // In kernel, it must be our mistake. cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", 80106e1b: e8 1d fd ff ff call 80106b3d <rcr2> 80106e20: 89 c3 mov %eax,%ebx 80106e22: 8b 45 08 mov 0x8(%ebp),%eax 80106e25: 8b 48 38 mov 0x38(%eax),%ecx tf->trapno, cpu->id, tf->eip, rcr2()); 80106e28: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80106e2e: 0f b6 00 movzbl (%eax),%eax //PAGEBREAK: 13 default: if(proc == 0 || (tf->cs&3) == 0){ // In kernel, it must be our mistake. cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", 80106e31: 0f b6 d0 movzbl %al,%edx 80106e34: 8b 45 08 mov 0x8(%ebp),%eax 80106e37: 8b 40 30 mov 0x30(%eax),%eax 80106e3a: 83 ec 0c sub $0xc,%esp 80106e3d: 53 push %ebx 80106e3e: 51 push %ecx 80106e3f: 52 push %edx 80106e40: 50 push %eax 80106e41: 68 74 8f 10 80 push $0x80108f74 80106e46: e8 7b 95 ff ff call 801003c6 <cprintf> 80106e4b: 83 c4 20 add $0x20,%esp tf->trapno, cpu->id, tf->eip, rcr2()); panic("trap"); 80106e4e: 83 ec 0c sub $0xc,%esp 80106e51: 68 a6 8f 10 80 push $0x80108fa6 80106e56: e8 0b 97 ff ff call 80100566 <panic> } // In user space, assume process misbehaved. cprintf("pid %d %s: trap %d err %d on cpu %d " 80106e5b: e8 dd fc ff ff call 80106b3d <rcr2> 80106e60: 89 45 e4 mov %eax,-0x1c(%ebp) 80106e63: 8b 45 08 mov 0x8(%ebp),%eax 80106e66: 8b 70 38 mov 0x38(%eax),%esi "eip 0x%x addr 0x%x--kill proc\n", proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, 80106e69: 65 a1 00 00 00 00 mov %gs:0x0,%eax 80106e6f: 0f b6 00 movzbl (%eax),%eax cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", tf->trapno, cpu->id, tf->eip, rcr2()); panic("trap"); } // In user space, assume process misbehaved. cprintf("pid %d %s: trap %d err %d on cpu %d " 80106e72: 0f b6 d8 movzbl %al,%ebx 80106e75: 8b 45 08 mov 0x8(%ebp),%eax 80106e78: 8b 48 34 mov 0x34(%eax),%ecx 80106e7b: 8b 45 08 mov 0x8(%ebp),%eax 80106e7e: 8b 50 30 mov 0x30(%eax),%edx "eip 0x%x addr 0x%x--kill proc\n", proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, 80106e81: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106e87: 8d 78 6c lea 0x6c(%eax),%edi 80106e8a: 65 a1 04 00 00 00 mov %gs:0x4,%eax cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n", tf->trapno, cpu->id, tf->eip, rcr2()); panic("trap"); } // In user space, assume process misbehaved. cprintf("pid %d %s: trap %d err %d on cpu %d " 80106e90: 8b 40 10 mov 0x10(%eax),%eax 80106e93: ff 75 e4 pushl -0x1c(%ebp) 80106e96: 56 push %esi 80106e97: 53 push %ebx 80106e98: 51 push %ecx 80106e99: 52 push %edx 80106e9a: 57 push %edi 80106e9b: 50 push %eax 80106e9c: 68 ac 8f 10 80 push $0x80108fac 80106ea1: e8 20 95 ff ff call 801003c6 <cprintf> 80106ea6: 83 c4 20 add $0x20,%esp "eip 0x%x addr 0x%x--kill proc\n", proc->pid, proc->name, tf->trapno, tf->err, cpu->id, tf->eip, rcr2()); proc->killed = 1; 80106ea9: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106eaf: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax) 80106eb6: eb 01 jmp 80106eb9 <trap+0x1dd> ideintr(); lapiceoi(); break; case T_IRQ0 + IRQ_IDE+1: // Bochs generates spurious IDE1 interrupts. break; 80106eb8: 90 nop } // Force process exit if it has been killed and is in user space. // (If it is still executing in the kernel, let it keep running // until it gets to the regular system call return.) if(proc && proc->killed && (tf->cs&3) == DPL_USER) 80106eb9: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106ebf: 85 c0 test %eax,%eax 80106ec1: 74 24 je 80106ee7 <trap+0x20b> 80106ec3: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106ec9: 8b 40 24 mov 0x24(%eax),%eax 80106ecc: 85 c0 test %eax,%eax 80106ece: 74 17 je 80106ee7 <trap+0x20b> 80106ed0: 8b 45 08 mov 0x8(%ebp),%eax 80106ed3: 0f b7 40 3c movzwl 0x3c(%eax),%eax 80106ed7: 0f b7 c0 movzwl %ax,%eax 80106eda: 83 e0 03 and $0x3,%eax 80106edd: 83 f8 03 cmp $0x3,%eax 80106ee0: 75 05 jne 80106ee7 <trap+0x20b> exit(); 80106ee2: e8 54 da ff ff call 8010493b <exit> // Force process to give up CPU on clock tick. // If interrupts were on while locks held, would need to check nlock. if(proc && proc->state == RUNNING && tf->trapno == T_IRQ0+IRQ_TIMER) 80106ee7: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106eed: 85 c0 test %eax,%eax 80106eef: 74 1e je 80106f0f <trap+0x233> 80106ef1: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106ef7: 8b 40 0c mov 0xc(%eax),%eax 80106efa: 83 f8 04 cmp $0x4,%eax 80106efd: 75 10 jne 80106f0f <trap+0x233> 80106eff: 8b 45 08 mov 0x8(%ebp),%eax 80106f02: 8b 40 30 mov 0x30(%eax),%eax 80106f05: 83 f8 20 cmp $0x20,%eax 80106f08: 75 05 jne 80106f0f <trap+0x233> yield(); 80106f0a: e8 39 e2 ff ff call 80105148 <yield> // Check if the process has been killed since we yielded if(proc && proc->killed && (tf->cs&3) == DPL_USER) 80106f0f: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106f15: 85 c0 test %eax,%eax 80106f17: 74 27 je 80106f40 <trap+0x264> 80106f19: 65 a1 04 00 00 00 mov %gs:0x4,%eax 80106f1f: 8b 40 24 mov 0x24(%eax),%eax 80106f22: 85 c0 test %eax,%eax 80106f24: 74 1a je 80106f40 <trap+0x264> 80106f26: 8b 45 08 mov 0x8(%ebp),%eax 80106f29: 0f b7 40 3c movzwl 0x3c(%eax),%eax 80106f2d: 0f b7 c0 movzwl %ax,%eax 80106f30: 83 e0 03 and $0x3,%eax 80106f33: 83 f8 03 cmp $0x3,%eax 80106f36: 75 08 jne 80106f40 <trap+0x264> exit(); 80106f38: e8 fe d9 ff ff call 8010493b <exit> 80106f3d: eb 01 jmp 80106f40 <trap+0x264> exit(); proc->tf = tf; syscall(); if(proc->killed) exit(); return; 80106f3f: 90 nop yield(); // Check if the process has been killed since we yielded if(proc && proc->killed && (tf->cs&3) == DPL_USER) exit(); } 80106f40: 8d 65 f4 lea -0xc(%ebp),%esp 80106f43: 5b pop %ebx 80106f44: 5e pop %esi 80106f45: 5f pop %edi 80106f46: 5d pop %ebp 80106f47: c3 ret 80106f48 <inb>: // Routines to let C code use special x86 instructions. static inline uchar inb(ushort port) { 80106f48: 55 push %ebp 80106f49: 89 e5 mov %esp,%ebp 80106f4b: 83 ec 14 sub $0x14,%esp 80106f4e: 8b 45 08 mov 0x8(%ebp),%eax 80106f51: 66 89 45 ec mov %ax,-0x14(%ebp) uchar data; asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80106f55: 0f b7 45 ec movzwl -0x14(%ebp),%eax 80106f59: 89 c2 mov %eax,%edx 80106f5b: ec in (%dx),%al 80106f5c: 88 45 ff mov %al,-0x1(%ebp) return data; 80106f5f: 0f b6 45 ff movzbl -0x1(%ebp),%eax } 80106f63: c9 leave 80106f64: c3 ret 80106f65 <outb>: "memory", "cc"); } static inline void outb(ushort port, uchar data) { 80106f65: 55 push %ebp 80106f66: 89 e5 mov %esp,%ebp 80106f68: 83 ec 08 sub $0x8,%esp 80106f6b: 8b 55 08 mov 0x8(%ebp),%edx 80106f6e: 8b 45 0c mov 0xc(%ebp),%eax 80106f71: 66 89 55 fc mov %dx,-0x4(%ebp) 80106f75: 88 45 f8 mov %al,-0x8(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80106f78: 0f b6 45 f8 movzbl -0x8(%ebp),%eax 80106f7c: 0f b7 55 fc movzwl -0x4(%ebp),%edx 80106f80: ee out %al,(%dx) } 80106f81: 90 nop 80106f82: c9 leave 80106f83: c3 ret 80106f84 <uartinit>: static int uart; // is there a uart? void uartinit(void) { 80106f84: 55 push %ebp 80106f85: 89 e5 mov %esp,%ebp 80106f87: 83 ec 18 sub $0x18,%esp char *p; // Turn off the FIFO outb(COM1+2, 0); 80106f8a: 6a 00 push $0x0 80106f8c: 68 fa 03 00 00 push $0x3fa 80106f91: e8 cf ff ff ff call 80106f65 <outb> 80106f96: 83 c4 08 add $0x8,%esp // 9600 baud, 8 data bits, 1 stop bit, parity off. outb(COM1+3, 0x80); // Unlock divisor 80106f99: 68 80 00 00 00 push $0x80 80106f9e: 68 fb 03 00 00 push $0x3fb 80106fa3: e8 bd ff ff ff call 80106f65 <outb> 80106fa8: 83 c4 08 add $0x8,%esp outb(COM1+0, 115200/9600); 80106fab: 6a 0c push $0xc 80106fad: 68 f8 03 00 00 push $0x3f8 80106fb2: e8 ae ff ff ff call 80106f65 <outb> 80106fb7: 83 c4 08 add $0x8,%esp outb(COM1+1, 0); 80106fba: 6a 00 push $0x0 80106fbc: 68 f9 03 00 00 push $0x3f9 80106fc1: e8 9f ff ff ff call 80106f65 <outb> 80106fc6: 83 c4 08 add $0x8,%esp outb(COM1+3, 0x03); // Lock divisor, 8 data bits. 80106fc9: 6a 03 push $0x3 80106fcb: 68 fb 03 00 00 push $0x3fb 80106fd0: e8 90 ff ff ff call 80106f65 <outb> 80106fd5: 83 c4 08 add $0x8,%esp outb(COM1+4, 0); 80106fd8: 6a 00 push $0x0 80106fda: 68 fc 03 00 00 push $0x3fc 80106fdf: e8 81 ff ff ff call 80106f65 <outb> 80106fe4: 83 c4 08 add $0x8,%esp outb(COM1+1, 0x01); // Enable receive interrupts. 80106fe7: 6a 01 push $0x1 80106fe9: 68 f9 03 00 00 push $0x3f9 80106fee: e8 72 ff ff ff call 80106f65 <outb> 80106ff3: 83 c4 08 add $0x8,%esp // If status is 0xFF, no serial port. if(inb(COM1+5) == 0xFF) 80106ff6: 68 fd 03 00 00 push $0x3fd 80106ffb: e8 48 ff ff ff call 80106f48 <inb> 80107000: 83 c4 04 add $0x4,%esp 80107003: 3c ff cmp $0xff,%al 80107005: 74 6e je 80107075 <uartinit+0xf1> return; uart = 1; 80107007: c7 05 4c c6 10 80 01 movl $0x1,0x8010c64c 8010700e: 00 00 00 // Acknowledge pre-existing interrupt conditions; // enable interrupts. inb(COM1+2); 80107011: 68 fa 03 00 00 push $0x3fa 80107016: e8 2d ff ff ff call 80106f48 <inb> 8010701b: 83 c4 04 add $0x4,%esp inb(COM1+0); 8010701e: 68 f8 03 00 00 push $0x3f8 80107023: e8 20 ff ff ff call 80106f48 <inb> 80107028: 83 c4 04 add $0x4,%esp picenable(IRQ_COM1); 8010702b: 83 ec 0c sub $0xc,%esp 8010702e: 6a 04 push $0x4 80107030: e8 f6 ce ff ff call 80103f2b <picenable> 80107035: 83 c4 10 add $0x10,%esp ioapicenable(IRQ_COM1, 0); 80107038: 83 ec 08 sub $0x8,%esp 8010703b: 6a 00 push $0x0 8010703d: 6a 04 push $0x4 8010703f: e8 96 ba ff ff call 80102ada <ioapicenable> 80107044: 83 c4 10 add $0x10,%esp // Announce that we're here. for(p="xv6...\n"; *p; p++) 80107047: c7 45 f4 70 90 10 80 movl $0x80109070,-0xc(%ebp) 8010704e: eb 19 jmp 80107069 <uartinit+0xe5> uartputc(*p); 80107050: 8b 45 f4 mov -0xc(%ebp),%eax 80107053: 0f b6 00 movzbl (%eax),%eax 80107056: 0f be c0 movsbl %al,%eax 80107059: 83 ec 0c sub $0xc,%esp 8010705c: 50 push %eax 8010705d: e8 16 00 00 00 call 80107078 <uartputc> 80107062: 83 c4 10 add $0x10,%esp inb(COM1+0); picenable(IRQ_COM1); ioapicenable(IRQ_COM1, 0); // Announce that we're here. for(p="xv6...\n"; *p; p++) 80107065: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80107069: 8b 45 f4 mov -0xc(%ebp),%eax 8010706c: 0f b6 00 movzbl (%eax),%eax 8010706f: 84 c0 test %al,%al 80107071: 75 dd jne 80107050 <uartinit+0xcc> 80107073: eb 01 jmp 80107076 <uartinit+0xf2> outb(COM1+4, 0); outb(COM1+1, 0x01); // Enable receive interrupts. // If status is 0xFF, no serial port. if(inb(COM1+5) == 0xFF) return; 80107075: 90 nop ioapicenable(IRQ_COM1, 0); // Announce that we're here. for(p="xv6...\n"; *p; p++) uartputc(*p); } 80107076: c9 leave 80107077: c3 ret 80107078 <uartputc>: void uartputc(int c) { 80107078: 55 push %ebp 80107079: 89 e5 mov %esp,%ebp 8010707b: 83 ec 18 sub $0x18,%esp int i; if(!uart) 8010707e: a1 4c c6 10 80 mov 0x8010c64c,%eax 80107083: 85 c0 test %eax,%eax 80107085: 74 53 je 801070da <uartputc+0x62> return; for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) 80107087: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 8010708e: eb 11 jmp 801070a1 <uartputc+0x29> microdelay(10); 80107090: 83 ec 0c sub $0xc,%esp 80107093: 6a 0a push $0xa 80107095: e8 a6 bf ff ff call 80103040 <microdelay> 8010709a: 83 c4 10 add $0x10,%esp { int i; if(!uart) return; for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) 8010709d: 83 45 f4 01 addl $0x1,-0xc(%ebp) 801070a1: 83 7d f4 7f cmpl $0x7f,-0xc(%ebp) 801070a5: 7f 1a jg 801070c1 <uartputc+0x49> 801070a7: 83 ec 0c sub $0xc,%esp 801070aa: 68 fd 03 00 00 push $0x3fd 801070af: e8 94 fe ff ff call 80106f48 <inb> 801070b4: 83 c4 10 add $0x10,%esp 801070b7: 0f b6 c0 movzbl %al,%eax 801070ba: 83 e0 20 and $0x20,%eax 801070bd: 85 c0 test %eax,%eax 801070bf: 74 cf je 80107090 <uartputc+0x18> microdelay(10); outb(COM1+0, c); 801070c1: 8b 45 08 mov 0x8(%ebp),%eax 801070c4: 0f b6 c0 movzbl %al,%eax 801070c7: 83 ec 08 sub $0x8,%esp 801070ca: 50 push %eax 801070cb: 68 f8 03 00 00 push $0x3f8 801070d0: e8 90 fe ff ff call 80106f65 <outb> 801070d5: 83 c4 10 add $0x10,%esp 801070d8: eb 01 jmp 801070db <uartputc+0x63> uartputc(int c) { int i; if(!uart) return; 801070da: 90 nop for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++) microdelay(10); outb(COM1+0, c); } 801070db: c9 leave 801070dc: c3 ret 801070dd <uartgetc>: static int uartgetc(void) { 801070dd: 55 push %ebp 801070de: 89 e5 mov %esp,%ebp if(!uart) 801070e0: a1 4c c6 10 80 mov 0x8010c64c,%eax 801070e5: 85 c0 test %eax,%eax 801070e7: 75 07 jne 801070f0 <uartgetc+0x13> return -1; 801070e9: b8 ff ff ff ff mov $0xffffffff,%eax 801070ee: eb 2e jmp 8010711e <uartgetc+0x41> if(!(inb(COM1+5) & 0x01)) 801070f0: 68 fd 03 00 00 push $0x3fd 801070f5: e8 4e fe ff ff call 80106f48 <inb> 801070fa: 83 c4 04 add $0x4,%esp 801070fd: 0f b6 c0 movzbl %al,%eax 80107100: 83 e0 01 and $0x1,%eax 80107103: 85 c0 test %eax,%eax 80107105: 75 07 jne 8010710e <uartgetc+0x31> return -1; 80107107: b8 ff ff ff ff mov $0xffffffff,%eax 8010710c: eb 10 jmp 8010711e <uartgetc+0x41> return inb(COM1+0); 8010710e: 68 f8 03 00 00 push $0x3f8 80107113: e8 30 fe ff ff call 80106f48 <inb> 80107118: 83 c4 04 add $0x4,%esp 8010711b: 0f b6 c0 movzbl %al,%eax } 8010711e: c9 leave 8010711f: c3 ret 80107120 <uartintr>: void uartintr(void) { 80107120: 55 push %ebp 80107121: 89 e5 mov %esp,%ebp 80107123: 83 ec 08 sub $0x8,%esp consoleintr(uartgetc); 80107126: 83 ec 0c sub $0xc,%esp 80107129: 68 dd 70 10 80 push $0x801070dd 8010712e: e8 c6 96 ff ff call 801007f9 <consoleintr> 80107133: 83 c4 10 add $0x10,%esp } 80107136: 90 nop 80107137: c9 leave 80107138: c3 ret 80107139 <vector0>: # generated by vectors.pl - do not edit # handlers .globl alltraps .globl vector0 vector0: pushl $0 80107139: 6a 00 push $0x0 pushl $0 8010713b: 6a 00 push $0x0 jmp alltraps 8010713d: e9 a6 f9 ff ff jmp 80106ae8 <alltraps> 80107142 <vector1>: .globl vector1 vector1: pushl $0 80107142: 6a 00 push $0x0 pushl $1 80107144: 6a 01 push $0x1 jmp alltraps 80107146: e9 9d f9 ff ff jmp 80106ae8 <alltraps> 8010714b <vector2>: .globl vector2 vector2: pushl $0 8010714b: 6a 00 push $0x0 pushl $2 8010714d: 6a 02 push $0x2 jmp alltraps 8010714f: e9 94 f9 ff ff jmp 80106ae8 <alltraps> 80107154 <vector3>: .globl vector3 vector3: pushl $0 80107154: 6a 00 push $0x0 pushl $3 80107156: 6a 03 push $0x3 jmp alltraps 80107158: e9 8b f9 ff ff jmp 80106ae8 <alltraps> 8010715d <vector4>: .globl vector4 vector4: pushl $0 8010715d: 6a 00 push $0x0 pushl $4 8010715f: 6a 04 push $0x4 jmp alltraps 80107161: e9 82 f9 ff ff jmp 80106ae8 <alltraps> 80107166 <vector5>: .globl vector5 vector5: pushl $0 80107166: 6a 00 push $0x0 pushl $5 80107168: 6a 05 push $0x5 jmp alltraps 8010716a: e9 79 f9 ff ff jmp 80106ae8 <alltraps> 8010716f <vector6>: .globl vector6 vector6: pushl $0 8010716f: 6a 00 push $0x0 pushl $6 80107171: 6a 06 push $0x6 jmp alltraps 80107173: e9 70 f9 ff ff jmp 80106ae8 <alltraps> 80107178 <vector7>: .globl vector7 vector7: pushl $0 80107178: 6a 00 push $0x0 pushl $7 8010717a: 6a 07 push $0x7 jmp alltraps 8010717c: e9 67 f9 ff ff jmp 80106ae8 <alltraps> 80107181 <vector8>: .globl vector8 vector8: pushl $8 80107181: 6a 08 push $0x8 jmp alltraps 80107183: e9 60 f9 ff ff jmp 80106ae8 <alltraps> 80107188 <vector9>: .globl vector9 vector9: pushl $0 80107188: 6a 00 push $0x0 pushl $9 8010718a: 6a 09 push $0x9 jmp alltraps 8010718c: e9 57 f9 ff ff jmp 80106ae8 <alltraps> 80107191 <vector10>: .globl vector10 vector10: pushl $10 80107191: 6a 0a push $0xa jmp alltraps 80107193: e9 50 f9 ff ff jmp 80106ae8 <alltraps> 80107198 <vector11>: .globl vector11 vector11: pushl $11 80107198: 6a 0b push $0xb jmp alltraps 8010719a: e9 49 f9 ff ff jmp 80106ae8 <alltraps> 8010719f <vector12>: .globl vector12 vector12: pushl $12 8010719f: 6a 0c push $0xc jmp alltraps 801071a1: e9 42 f9 ff ff jmp 80106ae8 <alltraps> 801071a6 <vector13>: .globl vector13 vector13: pushl $13 801071a6: 6a 0d push $0xd jmp alltraps 801071a8: e9 3b f9 ff ff jmp 80106ae8 <alltraps> 801071ad <vector14>: .globl vector14 vector14: pushl $14 801071ad: 6a 0e push $0xe jmp alltraps 801071af: e9 34 f9 ff ff jmp 80106ae8 <alltraps> 801071b4 <vector15>: .globl vector15 vector15: pushl $0 801071b4: 6a 00 push $0x0 pushl $15 801071b6: 6a 0f push $0xf jmp alltraps 801071b8: e9 2b f9 ff ff jmp 80106ae8 <alltraps> 801071bd <vector16>: .globl vector16 vector16: pushl $0 801071bd: 6a 00 push $0x0 pushl $16 801071bf: 6a 10 push $0x10 jmp alltraps 801071c1: e9 22 f9 ff ff jmp 80106ae8 <alltraps> 801071c6 <vector17>: .globl vector17 vector17: pushl $17 801071c6: 6a 11 push $0x11 jmp alltraps 801071c8: e9 1b f9 ff ff jmp 80106ae8 <alltraps> 801071cd <vector18>: .globl vector18 vector18: pushl $0 801071cd: 6a 00 push $0x0 pushl $18 801071cf: 6a 12 push $0x12 jmp alltraps 801071d1: e9 12 f9 ff ff jmp 80106ae8 <alltraps> 801071d6 <vector19>: .globl vector19 vector19: pushl $0 801071d6: 6a 00 push $0x0 pushl $19 801071d8: 6a 13 push $0x13 jmp alltraps 801071da: e9 09 f9 ff ff jmp 80106ae8 <alltraps> 801071df <vector20>: .globl vector20 vector20: pushl $0 801071df: 6a 00 push $0x0 pushl $20 801071e1: 6a 14 push $0x14 jmp alltraps 801071e3: e9 00 f9 ff ff jmp 80106ae8 <alltraps> 801071e8 <vector21>: .globl vector21 vector21: pushl $0 801071e8: 6a 00 push $0x0 pushl $21 801071ea: 6a 15 push $0x15 jmp alltraps 801071ec: e9 f7 f8 ff ff jmp 80106ae8 <alltraps> 801071f1 <vector22>: .globl vector22 vector22: pushl $0 801071f1: 6a 00 push $0x0 pushl $22 801071f3: 6a 16 push $0x16 jmp alltraps 801071f5: e9 ee f8 ff ff jmp 80106ae8 <alltraps> 801071fa <vector23>: .globl vector23 vector23: pushl $0 801071fa: 6a 00 push $0x0 pushl $23 801071fc: 6a 17 push $0x17 jmp alltraps 801071fe: e9 e5 f8 ff ff jmp 80106ae8 <alltraps> 80107203 <vector24>: .globl vector24 vector24: pushl $0 80107203: 6a 00 push $0x0 pushl $24 80107205: 6a 18 push $0x18 jmp alltraps 80107207: e9 dc f8 ff ff jmp 80106ae8 <alltraps> 8010720c <vector25>: .globl vector25 vector25: pushl $0 8010720c: 6a 00 push $0x0 pushl $25 8010720e: 6a 19 push $0x19 jmp alltraps 80107210: e9 d3 f8 ff ff jmp 80106ae8 <alltraps> 80107215 <vector26>: .globl vector26 vector26: pushl $0 80107215: 6a 00 push $0x0 pushl $26 80107217: 6a 1a push $0x1a jmp alltraps 80107219: e9 ca f8 ff ff jmp 80106ae8 <alltraps> 8010721e <vector27>: .globl vector27 vector27: pushl $0 8010721e: 6a 00 push $0x0 pushl $27 80107220: 6a 1b push $0x1b jmp alltraps 80107222: e9 c1 f8 ff ff jmp 80106ae8 <alltraps> 80107227 <vector28>: .globl vector28 vector28: pushl $0 80107227: 6a 00 push $0x0 pushl $28 80107229: 6a 1c push $0x1c jmp alltraps 8010722b: e9 b8 f8 ff ff jmp 80106ae8 <alltraps> 80107230 <vector29>: .globl vector29 vector29: pushl $0 80107230: 6a 00 push $0x0 pushl $29 80107232: 6a 1d push $0x1d jmp alltraps 80107234: e9 af f8 ff ff jmp 80106ae8 <alltraps> 80107239 <vector30>: .globl vector30 vector30: pushl $0 80107239: 6a 00 push $0x0 pushl $30 8010723b: 6a 1e push $0x1e jmp alltraps 8010723d: e9 a6 f8 ff ff jmp 80106ae8 <alltraps> 80107242 <vector31>: .globl vector31 vector31: pushl $0 80107242: 6a 00 push $0x0 pushl $31 80107244: 6a 1f push $0x1f jmp alltraps 80107246: e9 9d f8 ff ff jmp 80106ae8 <alltraps> 8010724b <vector32>: .globl vector32 vector32: pushl $0 8010724b: 6a 00 push $0x0 pushl $32 8010724d: 6a 20 push $0x20 jmp alltraps 8010724f: e9 94 f8 ff ff jmp 80106ae8 <alltraps> 80107254 <vector33>: .globl vector33 vector33: pushl $0 80107254: 6a 00 push $0x0 pushl $33 80107256: 6a 21 push $0x21 jmp alltraps 80107258: e9 8b f8 ff ff jmp 80106ae8 <alltraps> 8010725d <vector34>: .globl vector34 vector34: pushl $0 8010725d: 6a 00 push $0x0 pushl $34 8010725f: 6a 22 push $0x22 jmp alltraps 80107261: e9 82 f8 ff ff jmp 80106ae8 <alltraps> 80107266 <vector35>: .globl vector35 vector35: pushl $0 80107266: 6a 00 push $0x0 pushl $35 80107268: 6a 23 push $0x23 jmp alltraps 8010726a: e9 79 f8 ff ff jmp 80106ae8 <alltraps> 8010726f <vector36>: .globl vector36 vector36: pushl $0 8010726f: 6a 00 push $0x0 pushl $36 80107271: 6a 24 push $0x24 jmp alltraps 80107273: e9 70 f8 ff ff jmp 80106ae8 <alltraps> 80107278 <vector37>: .globl vector37 vector37: pushl $0 80107278: 6a 00 push $0x0 pushl $37 8010727a: 6a 25 push $0x25 jmp alltraps 8010727c: e9 67 f8 ff ff jmp 80106ae8 <alltraps> 80107281 <vector38>: .globl vector38 vector38: pushl $0 80107281: 6a 00 push $0x0 pushl $38 80107283: 6a 26 push $0x26 jmp alltraps 80107285: e9 5e f8 ff ff jmp 80106ae8 <alltraps> 8010728a <vector39>: .globl vector39 vector39: pushl $0 8010728a: 6a 00 push $0x0 pushl $39 8010728c: 6a 27 push $0x27 jmp alltraps 8010728e: e9 55 f8 ff ff jmp 80106ae8 <alltraps> 80107293 <vector40>: .globl vector40 vector40: pushl $0 80107293: 6a 00 push $0x0 pushl $40 80107295: 6a 28 push $0x28 jmp alltraps 80107297: e9 4c f8 ff ff jmp 80106ae8 <alltraps> 8010729c <vector41>: .globl vector41 vector41: pushl $0 8010729c: 6a 00 push $0x0 pushl $41 8010729e: 6a 29 push $0x29 jmp alltraps 801072a0: e9 43 f8 ff ff jmp 80106ae8 <alltraps> 801072a5 <vector42>: .globl vector42 vector42: pushl $0 801072a5: 6a 00 push $0x0 pushl $42 801072a7: 6a 2a push $0x2a jmp alltraps 801072a9: e9 3a f8 ff ff jmp 80106ae8 <alltraps> 801072ae <vector43>: .globl vector43 vector43: pushl $0 801072ae: 6a 00 push $0x0 pushl $43 801072b0: 6a 2b push $0x2b jmp alltraps 801072b2: e9 31 f8 ff ff jmp 80106ae8 <alltraps> 801072b7 <vector44>: .globl vector44 vector44: pushl $0 801072b7: 6a 00 push $0x0 pushl $44 801072b9: 6a 2c push $0x2c jmp alltraps 801072bb: e9 28 f8 ff ff jmp 80106ae8 <alltraps> 801072c0 <vector45>: .globl vector45 vector45: pushl $0 801072c0: 6a 00 push $0x0 pushl $45 801072c2: 6a 2d push $0x2d jmp alltraps 801072c4: e9 1f f8 ff ff jmp 80106ae8 <alltraps> 801072c9 <vector46>: .globl vector46 vector46: pushl $0 801072c9: 6a 00 push $0x0 pushl $46 801072cb: 6a 2e push $0x2e jmp alltraps 801072cd: e9 16 f8 ff ff jmp 80106ae8 <alltraps> 801072d2 <vector47>: .globl vector47 vector47: pushl $0 801072d2: 6a 00 push $0x0 pushl $47 801072d4: 6a 2f push $0x2f jmp alltraps 801072d6: e9 0d f8 ff ff jmp 80106ae8 <alltraps> 801072db <vector48>: .globl vector48 vector48: pushl $0 801072db: 6a 00 push $0x0 pushl $48 801072dd: 6a 30 push $0x30 jmp alltraps 801072df: e9 04 f8 ff ff jmp 80106ae8 <alltraps> 801072e4 <vector49>: .globl vector49 vector49: pushl $0 801072e4: 6a 00 push $0x0 pushl $49 801072e6: 6a 31 push $0x31 jmp alltraps 801072e8: e9 fb f7 ff ff jmp 80106ae8 <alltraps> 801072ed <vector50>: .globl vector50 vector50: pushl $0 801072ed: 6a 00 push $0x0 pushl $50 801072ef: 6a 32 push $0x32 jmp alltraps 801072f1: e9 f2 f7 ff ff jmp 80106ae8 <alltraps> 801072f6 <vector51>: .globl vector51 vector51: pushl $0 801072f6: 6a 00 push $0x0 pushl $51 801072f8: 6a 33 push $0x33 jmp alltraps 801072fa: e9 e9 f7 ff ff jmp 80106ae8 <alltraps> 801072ff <vector52>: .globl vector52 vector52: pushl $0 801072ff: 6a 00 push $0x0 pushl $52 80107301: 6a 34 push $0x34 jmp alltraps 80107303: e9 e0 f7 ff ff jmp 80106ae8 <alltraps> 80107308 <vector53>: .globl vector53 vector53: pushl $0 80107308: 6a 00 push $0x0 pushl $53 8010730a: 6a 35 push $0x35 jmp alltraps 8010730c: e9 d7 f7 ff ff jmp 80106ae8 <alltraps> 80107311 <vector54>: .globl vector54 vector54: pushl $0 80107311: 6a 00 push $0x0 pushl $54 80107313: 6a 36 push $0x36 jmp alltraps 80107315: e9 ce f7 ff ff jmp 80106ae8 <alltraps> 8010731a <vector55>: .globl vector55 vector55: pushl $0 8010731a: 6a 00 push $0x0 pushl $55 8010731c: 6a 37 push $0x37 jmp alltraps 8010731e: e9 c5 f7 ff ff jmp 80106ae8 <alltraps> 80107323 <vector56>: .globl vector56 vector56: pushl $0 80107323: 6a 00 push $0x0 pushl $56 80107325: 6a 38 push $0x38 jmp alltraps 80107327: e9 bc f7 ff ff jmp 80106ae8 <alltraps> 8010732c <vector57>: .globl vector57 vector57: pushl $0 8010732c: 6a 00 push $0x0 pushl $57 8010732e: 6a 39 push $0x39 jmp alltraps 80107330: e9 b3 f7 ff ff jmp 80106ae8 <alltraps> 80107335 <vector58>: .globl vector58 vector58: pushl $0 80107335: 6a 00 push $0x0 pushl $58 80107337: 6a 3a push $0x3a jmp alltraps 80107339: e9 aa f7 ff ff jmp 80106ae8 <alltraps> 8010733e <vector59>: .globl vector59 vector59: pushl $0 8010733e: 6a 00 push $0x0 pushl $59 80107340: 6a 3b push $0x3b jmp alltraps 80107342: e9 a1 f7 ff ff jmp 80106ae8 <alltraps> 80107347 <vector60>: .globl vector60 vector60: pushl $0 80107347: 6a 00 push $0x0 pushl $60 80107349: 6a 3c push $0x3c jmp alltraps 8010734b: e9 98 f7 ff ff jmp 80106ae8 <alltraps> 80107350 <vector61>: .globl vector61 vector61: pushl $0 80107350: 6a 00 push $0x0 pushl $61 80107352: 6a 3d push $0x3d jmp alltraps 80107354: e9 8f f7 ff ff jmp 80106ae8 <alltraps> 80107359 <vector62>: .globl vector62 vector62: pushl $0 80107359: 6a 00 push $0x0 pushl $62 8010735b: 6a 3e push $0x3e jmp alltraps 8010735d: e9 86 f7 ff ff jmp 80106ae8 <alltraps> 80107362 <vector63>: .globl vector63 vector63: pushl $0 80107362: 6a 00 push $0x0 pushl $63 80107364: 6a 3f push $0x3f jmp alltraps 80107366: e9 7d f7 ff ff jmp 80106ae8 <alltraps> 8010736b <vector64>: .globl vector64 vector64: pushl $0 8010736b: 6a 00 push $0x0 pushl $64 8010736d: 6a 40 push $0x40 jmp alltraps 8010736f: e9 74 f7 ff ff jmp 80106ae8 <alltraps> 80107374 <vector65>: .globl vector65 vector65: pushl $0 80107374: 6a 00 push $0x0 pushl $65 80107376: 6a 41 push $0x41 jmp alltraps 80107378: e9 6b f7 ff ff jmp 80106ae8 <alltraps> 8010737d <vector66>: .globl vector66 vector66: pushl $0 8010737d: 6a 00 push $0x0 pushl $66 8010737f: 6a 42 push $0x42 jmp alltraps 80107381: e9 62 f7 ff ff jmp 80106ae8 <alltraps> 80107386 <vector67>: .globl vector67 vector67: pushl $0 80107386: 6a 00 push $0x0 pushl $67 80107388: 6a 43 push $0x43 jmp alltraps 8010738a: e9 59 f7 ff ff jmp 80106ae8 <alltraps> 8010738f <vector68>: .globl vector68 vector68: pushl $0 8010738f: 6a 00 push $0x0 pushl $68 80107391: 6a 44 push $0x44 jmp alltraps 80107393: e9 50 f7 ff ff jmp 80106ae8 <alltraps> 80107398 <vector69>: .globl vector69 vector69: pushl $0 80107398: 6a 00 push $0x0 pushl $69 8010739a: 6a 45 push $0x45 jmp alltraps 8010739c: e9 47 f7 ff ff jmp 80106ae8 <alltraps> 801073a1 <vector70>: .globl vector70 vector70: pushl $0 801073a1: 6a 00 push $0x0 pushl $70 801073a3: 6a 46 push $0x46 jmp alltraps 801073a5: e9 3e f7 ff ff jmp 80106ae8 <alltraps> 801073aa <vector71>: .globl vector71 vector71: pushl $0 801073aa: 6a 00 push $0x0 pushl $71 801073ac: 6a 47 push $0x47 jmp alltraps 801073ae: e9 35 f7 ff ff jmp 80106ae8 <alltraps> 801073b3 <vector72>: .globl vector72 vector72: pushl $0 801073b3: 6a 00 push $0x0 pushl $72 801073b5: 6a 48 push $0x48 jmp alltraps 801073b7: e9 2c f7 ff ff jmp 80106ae8 <alltraps> 801073bc <vector73>: .globl vector73 vector73: pushl $0 801073bc: 6a 00 push $0x0 pushl $73 801073be: 6a 49 push $0x49 jmp alltraps 801073c0: e9 23 f7 ff ff jmp 80106ae8 <alltraps> 801073c5 <vector74>: .globl vector74 vector74: pushl $0 801073c5: 6a 00 push $0x0 pushl $74 801073c7: 6a 4a push $0x4a jmp alltraps 801073c9: e9 1a f7 ff ff jmp 80106ae8 <alltraps> 801073ce <vector75>: .globl vector75 vector75: pushl $0 801073ce: 6a 00 push $0x0 pushl $75 801073d0: 6a 4b push $0x4b jmp alltraps 801073d2: e9 11 f7 ff ff jmp 80106ae8 <alltraps> 801073d7 <vector76>: .globl vector76 vector76: pushl $0 801073d7: 6a 00 push $0x0 pushl $76 801073d9: 6a 4c push $0x4c jmp alltraps 801073db: e9 08 f7 ff ff jmp 80106ae8 <alltraps> 801073e0 <vector77>: .globl vector77 vector77: pushl $0 801073e0: 6a 00 push $0x0 pushl $77 801073e2: 6a 4d push $0x4d jmp alltraps 801073e4: e9 ff f6 ff ff jmp 80106ae8 <alltraps> 801073e9 <vector78>: .globl vector78 vector78: pushl $0 801073e9: 6a 00 push $0x0 pushl $78 801073eb: 6a 4e push $0x4e jmp alltraps 801073ed: e9 f6 f6 ff ff jmp 80106ae8 <alltraps> 801073f2 <vector79>: .globl vector79 vector79: pushl $0 801073f2: 6a 00 push $0x0 pushl $79 801073f4: 6a 4f push $0x4f jmp alltraps 801073f6: e9 ed f6 ff ff jmp 80106ae8 <alltraps> 801073fb <vector80>: .globl vector80 vector80: pushl $0 801073fb: 6a 00 push $0x0 pushl $80 801073fd: 6a 50 push $0x50 jmp alltraps 801073ff: e9 e4 f6 ff ff jmp 80106ae8 <alltraps> 80107404 <vector81>: .globl vector81 vector81: pushl $0 80107404: 6a 00 push $0x0 pushl $81 80107406: 6a 51 push $0x51 jmp alltraps 80107408: e9 db f6 ff ff jmp 80106ae8 <alltraps> 8010740d <vector82>: .globl vector82 vector82: pushl $0 8010740d: 6a 00 push $0x0 pushl $82 8010740f: 6a 52 push $0x52 jmp alltraps 80107411: e9 d2 f6 ff ff jmp 80106ae8 <alltraps> 80107416 <vector83>: .globl vector83 vector83: pushl $0 80107416: 6a 00 push $0x0 pushl $83 80107418: 6a 53 push $0x53 jmp alltraps 8010741a: e9 c9 f6 ff ff jmp 80106ae8 <alltraps> 8010741f <vector84>: .globl vector84 vector84: pushl $0 8010741f: 6a 00 push $0x0 pushl $84 80107421: 6a 54 push $0x54 jmp alltraps 80107423: e9 c0 f6 ff ff jmp 80106ae8 <alltraps> 80107428 <vector85>: .globl vector85 vector85: pushl $0 80107428: 6a 00 push $0x0 pushl $85 8010742a: 6a 55 push $0x55 jmp alltraps 8010742c: e9 b7 f6 ff ff jmp 80106ae8 <alltraps> 80107431 <vector86>: .globl vector86 vector86: pushl $0 80107431: 6a 00 push $0x0 pushl $86 80107433: 6a 56 push $0x56 jmp alltraps 80107435: e9 ae f6 ff ff jmp 80106ae8 <alltraps> 8010743a <vector87>: .globl vector87 vector87: pushl $0 8010743a: 6a 00 push $0x0 pushl $87 8010743c: 6a 57 push $0x57 jmp alltraps 8010743e: e9 a5 f6 ff ff jmp 80106ae8 <alltraps> 80107443 <vector88>: .globl vector88 vector88: pushl $0 80107443: 6a 00 push $0x0 pushl $88 80107445: 6a 58 push $0x58 jmp alltraps 80107447: e9 9c f6 ff ff jmp 80106ae8 <alltraps> 8010744c <vector89>: .globl vector89 vector89: pushl $0 8010744c: 6a 00 push $0x0 pushl $89 8010744e: 6a 59 push $0x59 jmp alltraps 80107450: e9 93 f6 ff ff jmp 80106ae8 <alltraps> 80107455 <vector90>: .globl vector90 vector90: pushl $0 80107455: 6a 00 push $0x0 pushl $90 80107457: 6a 5a push $0x5a jmp alltraps 80107459: e9 8a f6 ff ff jmp 80106ae8 <alltraps> 8010745e <vector91>: .globl vector91 vector91: pushl $0 8010745e: 6a 00 push $0x0 pushl $91 80107460: 6a 5b push $0x5b jmp alltraps 80107462: e9 81 f6 ff ff jmp 80106ae8 <alltraps> 80107467 <vector92>: .globl vector92 vector92: pushl $0 80107467: 6a 00 push $0x0 pushl $92 80107469: 6a 5c push $0x5c jmp alltraps 8010746b: e9 78 f6 ff ff jmp 80106ae8 <alltraps> 80107470 <vector93>: .globl vector93 vector93: pushl $0 80107470: 6a 00 push $0x0 pushl $93 80107472: 6a 5d push $0x5d jmp alltraps 80107474: e9 6f f6 ff ff jmp 80106ae8 <alltraps> 80107479 <vector94>: .globl vector94 vector94: pushl $0 80107479: 6a 00 push $0x0 pushl $94 8010747b: 6a 5e push $0x5e jmp alltraps 8010747d: e9 66 f6 ff ff jmp 80106ae8 <alltraps> 80107482 <vector95>: .globl vector95 vector95: pushl $0 80107482: 6a 00 push $0x0 pushl $95 80107484: 6a 5f push $0x5f jmp alltraps 80107486: e9 5d f6 ff ff jmp 80106ae8 <alltraps> 8010748b <vector96>: .globl vector96 vector96: pushl $0 8010748b: 6a 00 push $0x0 pushl $96 8010748d: 6a 60 push $0x60 jmp alltraps 8010748f: e9 54 f6 ff ff jmp 80106ae8 <alltraps> 80107494 <vector97>: .globl vector97 vector97: pushl $0 80107494: 6a 00 push $0x0 pushl $97 80107496: 6a 61 push $0x61 jmp alltraps 80107498: e9 4b f6 ff ff jmp 80106ae8 <alltraps> 8010749d <vector98>: .globl vector98 vector98: pushl $0 8010749d: 6a 00 push $0x0 pushl $98 8010749f: 6a 62 push $0x62 jmp alltraps 801074a1: e9 42 f6 ff ff jmp 80106ae8 <alltraps> 801074a6 <vector99>: .globl vector99 vector99: pushl $0 801074a6: 6a 00 push $0x0 pushl $99 801074a8: 6a 63 push $0x63 jmp alltraps 801074aa: e9 39 f6 ff ff jmp 80106ae8 <alltraps> 801074af <vector100>: .globl vector100 vector100: pushl $0 801074af: 6a 00 push $0x0 pushl $100 801074b1: 6a 64 push $0x64 jmp alltraps 801074b3: e9 30 f6 ff ff jmp 80106ae8 <alltraps> 801074b8 <vector101>: .globl vector101 vector101: pushl $0 801074b8: 6a 00 push $0x0 pushl $101 801074ba: 6a 65 push $0x65 jmp alltraps 801074bc: e9 27 f6 ff ff jmp 80106ae8 <alltraps> 801074c1 <vector102>: .globl vector102 vector102: pushl $0 801074c1: 6a 00 push $0x0 pushl $102 801074c3: 6a 66 push $0x66 jmp alltraps 801074c5: e9 1e f6 ff ff jmp 80106ae8 <alltraps> 801074ca <vector103>: .globl vector103 vector103: pushl $0 801074ca: 6a 00 push $0x0 pushl $103 801074cc: 6a 67 push $0x67 jmp alltraps 801074ce: e9 15 f6 ff ff jmp 80106ae8 <alltraps> 801074d3 <vector104>: .globl vector104 vector104: pushl $0 801074d3: 6a 00 push $0x0 pushl $104 801074d5: 6a 68 push $0x68 jmp alltraps 801074d7: e9 0c f6 ff ff jmp 80106ae8 <alltraps> 801074dc <vector105>: .globl vector105 vector105: pushl $0 801074dc: 6a 00 push $0x0 pushl $105 801074de: 6a 69 push $0x69 jmp alltraps 801074e0: e9 03 f6 ff ff jmp 80106ae8 <alltraps> 801074e5 <vector106>: .globl vector106 vector106: pushl $0 801074e5: 6a 00 push $0x0 pushl $106 801074e7: 6a 6a push $0x6a jmp alltraps 801074e9: e9 fa f5 ff ff jmp 80106ae8 <alltraps> 801074ee <vector107>: .globl vector107 vector107: pushl $0 801074ee: 6a 00 push $0x0 pushl $107 801074f0: 6a 6b push $0x6b jmp alltraps 801074f2: e9 f1 f5 ff ff jmp 80106ae8 <alltraps> 801074f7 <vector108>: .globl vector108 vector108: pushl $0 801074f7: 6a 00 push $0x0 pushl $108 801074f9: 6a 6c push $0x6c jmp alltraps 801074fb: e9 e8 f5 ff ff jmp 80106ae8 <alltraps> 80107500 <vector109>: .globl vector109 vector109: pushl $0 80107500: 6a 00 push $0x0 pushl $109 80107502: 6a 6d push $0x6d jmp alltraps 80107504: e9 df f5 ff ff jmp 80106ae8 <alltraps> 80107509 <vector110>: .globl vector110 vector110: pushl $0 80107509: 6a 00 push $0x0 pushl $110 8010750b: 6a 6e push $0x6e jmp alltraps 8010750d: e9 d6 f5 ff ff jmp 80106ae8 <alltraps> 80107512 <vector111>: .globl vector111 vector111: pushl $0 80107512: 6a 00 push $0x0 pushl $111 80107514: 6a 6f push $0x6f jmp alltraps 80107516: e9 cd f5 ff ff jmp 80106ae8 <alltraps> 8010751b <vector112>: .globl vector112 vector112: pushl $0 8010751b: 6a 00 push $0x0 pushl $112 8010751d: 6a 70 push $0x70 jmp alltraps 8010751f: e9 c4 f5 ff ff jmp 80106ae8 <alltraps> 80107524 <vector113>: .globl vector113 vector113: pushl $0 80107524: 6a 00 push $0x0 pushl $113 80107526: 6a 71 push $0x71 jmp alltraps 80107528: e9 bb f5 ff ff jmp 80106ae8 <alltraps> 8010752d <vector114>: .globl vector114 vector114: pushl $0 8010752d: 6a 00 push $0x0 pushl $114 8010752f: 6a 72 push $0x72 jmp alltraps 80107531: e9 b2 f5 ff ff jmp 80106ae8 <alltraps> 80107536 <vector115>: .globl vector115 vector115: pushl $0 80107536: 6a 00 push $0x0 pushl $115 80107538: 6a 73 push $0x73 jmp alltraps 8010753a: e9 a9 f5 ff ff jmp 80106ae8 <alltraps> 8010753f <vector116>: .globl vector116 vector116: pushl $0 8010753f: 6a 00 push $0x0 pushl $116 80107541: 6a 74 push $0x74 jmp alltraps 80107543: e9 a0 f5 ff ff jmp 80106ae8 <alltraps> 80107548 <vector117>: .globl vector117 vector117: pushl $0 80107548: 6a 00 push $0x0 pushl $117 8010754a: 6a 75 push $0x75 jmp alltraps 8010754c: e9 97 f5 ff ff jmp 80106ae8 <alltraps> 80107551 <vector118>: .globl vector118 vector118: pushl $0 80107551: 6a 00 push $0x0 pushl $118 80107553: 6a 76 push $0x76 jmp alltraps 80107555: e9 8e f5 ff ff jmp 80106ae8 <alltraps> 8010755a <vector119>: .globl vector119 vector119: pushl $0 8010755a: 6a 00 push $0x0 pushl $119 8010755c: 6a 77 push $0x77 jmp alltraps 8010755e: e9 85 f5 ff ff jmp 80106ae8 <alltraps> 80107563 <vector120>: .globl vector120 vector120: pushl $0 80107563: 6a 00 push $0x0 pushl $120 80107565: 6a 78 push $0x78 jmp alltraps 80107567: e9 7c f5 ff ff jmp 80106ae8 <alltraps> 8010756c <vector121>: .globl vector121 vector121: pushl $0 8010756c: 6a 00 push $0x0 pushl $121 8010756e: 6a 79 push $0x79 jmp alltraps 80107570: e9 73 f5 ff ff jmp 80106ae8 <alltraps> 80107575 <vector122>: .globl vector122 vector122: pushl $0 80107575: 6a 00 push $0x0 pushl $122 80107577: 6a 7a push $0x7a jmp alltraps 80107579: e9 6a f5 ff ff jmp 80106ae8 <alltraps> 8010757e <vector123>: .globl vector123 vector123: pushl $0 8010757e: 6a 00 push $0x0 pushl $123 80107580: 6a 7b push $0x7b jmp alltraps 80107582: e9 61 f5 ff ff jmp 80106ae8 <alltraps> 80107587 <vector124>: .globl vector124 vector124: pushl $0 80107587: 6a 00 push $0x0 pushl $124 80107589: 6a 7c push $0x7c jmp alltraps 8010758b: e9 58 f5 ff ff jmp 80106ae8 <alltraps> 80107590 <vector125>: .globl vector125 vector125: pushl $0 80107590: 6a 00 push $0x0 pushl $125 80107592: 6a 7d push $0x7d jmp alltraps 80107594: e9 4f f5 ff ff jmp 80106ae8 <alltraps> 80107599 <vector126>: .globl vector126 vector126: pushl $0 80107599: 6a 00 push $0x0 pushl $126 8010759b: 6a 7e push $0x7e jmp alltraps 8010759d: e9 46 f5 ff ff jmp 80106ae8 <alltraps> 801075a2 <vector127>: .globl vector127 vector127: pushl $0 801075a2: 6a 00 push $0x0 pushl $127 801075a4: 6a 7f push $0x7f jmp alltraps 801075a6: e9 3d f5 ff ff jmp 80106ae8 <alltraps> 801075ab <vector128>: .globl vector128 vector128: pushl $0 801075ab: 6a 00 push $0x0 pushl $128 801075ad: 68 80 00 00 00 push $0x80 jmp alltraps 801075b2: e9 31 f5 ff ff jmp 80106ae8 <alltraps> 801075b7 <vector129>: .globl vector129 vector129: pushl $0 801075b7: 6a 00 push $0x0 pushl $129 801075b9: 68 81 00 00 00 push $0x81 jmp alltraps 801075be: e9 25 f5 ff ff jmp 80106ae8 <alltraps> 801075c3 <vector130>: .globl vector130 vector130: pushl $0 801075c3: 6a 00 push $0x0 pushl $130 801075c5: 68 82 00 00 00 push $0x82 jmp alltraps 801075ca: e9 19 f5 ff ff jmp 80106ae8 <alltraps> 801075cf <vector131>: .globl vector131 vector131: pushl $0 801075cf: 6a 00 push $0x0 pushl $131 801075d1: 68 83 00 00 00 push $0x83 jmp alltraps 801075d6: e9 0d f5 ff ff jmp 80106ae8 <alltraps> 801075db <vector132>: .globl vector132 vector132: pushl $0 801075db: 6a 00 push $0x0 pushl $132 801075dd: 68 84 00 00 00 push $0x84 jmp alltraps 801075e2: e9 01 f5 ff ff jmp 80106ae8 <alltraps> 801075e7 <vector133>: .globl vector133 vector133: pushl $0 801075e7: 6a 00 push $0x0 pushl $133 801075e9: 68 85 00 00 00 push $0x85 jmp alltraps 801075ee: e9 f5 f4 ff ff jmp 80106ae8 <alltraps> 801075f3 <vector134>: .globl vector134 vector134: pushl $0 801075f3: 6a 00 push $0x0 pushl $134 801075f5: 68 86 00 00 00 push $0x86 jmp alltraps 801075fa: e9 e9 f4 ff ff jmp 80106ae8 <alltraps> 801075ff <vector135>: .globl vector135 vector135: pushl $0 801075ff: 6a 00 push $0x0 pushl $135 80107601: 68 87 00 00 00 push $0x87 jmp alltraps 80107606: e9 dd f4 ff ff jmp 80106ae8 <alltraps> 8010760b <vector136>: .globl vector136 vector136: pushl $0 8010760b: 6a 00 push $0x0 pushl $136 8010760d: 68 88 00 00 00 push $0x88 jmp alltraps 80107612: e9 d1 f4 ff ff jmp 80106ae8 <alltraps> 80107617 <vector137>: .globl vector137 vector137: pushl $0 80107617: 6a 00 push $0x0 pushl $137 80107619: 68 89 00 00 00 push $0x89 jmp alltraps 8010761e: e9 c5 f4 ff ff jmp 80106ae8 <alltraps> 80107623 <vector138>: .globl vector138 vector138: pushl $0 80107623: 6a 00 push $0x0 pushl $138 80107625: 68 8a 00 00 00 push $0x8a jmp alltraps 8010762a: e9 b9 f4 ff ff jmp 80106ae8 <alltraps> 8010762f <vector139>: .globl vector139 vector139: pushl $0 8010762f: 6a 00 push $0x0 pushl $139 80107631: 68 8b 00 00 00 push $0x8b jmp alltraps 80107636: e9 ad f4 ff ff jmp 80106ae8 <alltraps> 8010763b <vector140>: .globl vector140 vector140: pushl $0 8010763b: 6a 00 push $0x0 pushl $140 8010763d: 68 8c 00 00 00 push $0x8c jmp alltraps 80107642: e9 a1 f4 ff ff jmp 80106ae8 <alltraps> 80107647 <vector141>: .globl vector141 vector141: pushl $0 80107647: 6a 00 push $0x0 pushl $141 80107649: 68 8d 00 00 00 push $0x8d jmp alltraps 8010764e: e9 95 f4 ff ff jmp 80106ae8 <alltraps> 80107653 <vector142>: .globl vector142 vector142: pushl $0 80107653: 6a 00 push $0x0 pushl $142 80107655: 68 8e 00 00 00 push $0x8e jmp alltraps 8010765a: e9 89 f4 ff ff jmp 80106ae8 <alltraps> 8010765f <vector143>: .globl vector143 vector143: pushl $0 8010765f: 6a 00 push $0x0 pushl $143 80107661: 68 8f 00 00 00 push $0x8f jmp alltraps 80107666: e9 7d f4 ff ff jmp 80106ae8 <alltraps> 8010766b <vector144>: .globl vector144 vector144: pushl $0 8010766b: 6a 00 push $0x0 pushl $144 8010766d: 68 90 00 00 00 push $0x90 jmp alltraps 80107672: e9 71 f4 ff ff jmp 80106ae8 <alltraps> 80107677 <vector145>: .globl vector145 vector145: pushl $0 80107677: 6a 00 push $0x0 pushl $145 80107679: 68 91 00 00 00 push $0x91 jmp alltraps 8010767e: e9 65 f4 ff ff jmp 80106ae8 <alltraps> 80107683 <vector146>: .globl vector146 vector146: pushl $0 80107683: 6a 00 push $0x0 pushl $146 80107685: 68 92 00 00 00 push $0x92 jmp alltraps 8010768a: e9 59 f4 ff ff jmp 80106ae8 <alltraps> 8010768f <vector147>: .globl vector147 vector147: pushl $0 8010768f: 6a 00 push $0x0 pushl $147 80107691: 68 93 00 00 00 push $0x93 jmp alltraps 80107696: e9 4d f4 ff ff jmp 80106ae8 <alltraps> 8010769b <vector148>: .globl vector148 vector148: pushl $0 8010769b: 6a 00 push $0x0 pushl $148 8010769d: 68 94 00 00 00 push $0x94 jmp alltraps 801076a2: e9 41 f4 ff ff jmp 80106ae8 <alltraps> 801076a7 <vector149>: .globl vector149 vector149: pushl $0 801076a7: 6a 00 push $0x0 pushl $149 801076a9: 68 95 00 00 00 push $0x95 jmp alltraps 801076ae: e9 35 f4 ff ff jmp 80106ae8 <alltraps> 801076b3 <vector150>: .globl vector150 vector150: pushl $0 801076b3: 6a 00 push $0x0 pushl $150 801076b5: 68 96 00 00 00 push $0x96 jmp alltraps 801076ba: e9 29 f4 ff ff jmp 80106ae8 <alltraps> 801076bf <vector151>: .globl vector151 vector151: pushl $0 801076bf: 6a 00 push $0x0 pushl $151 801076c1: 68 97 00 00 00 push $0x97 jmp alltraps 801076c6: e9 1d f4 ff ff jmp 80106ae8 <alltraps> 801076cb <vector152>: .globl vector152 vector152: pushl $0 801076cb: 6a 00 push $0x0 pushl $152 801076cd: 68 98 00 00 00 push $0x98 jmp alltraps 801076d2: e9 11 f4 ff ff jmp 80106ae8 <alltraps> 801076d7 <vector153>: .globl vector153 vector153: pushl $0 801076d7: 6a 00 push $0x0 pushl $153 801076d9: 68 99 00 00 00 push $0x99 jmp alltraps 801076de: e9 05 f4 ff ff jmp 80106ae8 <alltraps> 801076e3 <vector154>: .globl vector154 vector154: pushl $0 801076e3: 6a 00 push $0x0 pushl $154 801076e5: 68 9a 00 00 00 push $0x9a jmp alltraps 801076ea: e9 f9 f3 ff ff jmp 80106ae8 <alltraps> 801076ef <vector155>: .globl vector155 vector155: pushl $0 801076ef: 6a 00 push $0x0 pushl $155 801076f1: 68 9b 00 00 00 push $0x9b jmp alltraps 801076f6: e9 ed f3 ff ff jmp 80106ae8 <alltraps> 801076fb <vector156>: .globl vector156 vector156: pushl $0 801076fb: 6a 00 push $0x0 pushl $156 801076fd: 68 9c 00 00 00 push $0x9c jmp alltraps 80107702: e9 e1 f3 ff ff jmp 80106ae8 <alltraps> 80107707 <vector157>: .globl vector157 vector157: pushl $0 80107707: 6a 00 push $0x0 pushl $157 80107709: 68 9d 00 00 00 push $0x9d jmp alltraps 8010770e: e9 d5 f3 ff ff jmp 80106ae8 <alltraps> 80107713 <vector158>: .globl vector158 vector158: pushl $0 80107713: 6a 00 push $0x0 pushl $158 80107715: 68 9e 00 00 00 push $0x9e jmp alltraps 8010771a: e9 c9 f3 ff ff jmp 80106ae8 <alltraps> 8010771f <vector159>: .globl vector159 vector159: pushl $0 8010771f: 6a 00 push $0x0 pushl $159 80107721: 68 9f 00 00 00 push $0x9f jmp alltraps 80107726: e9 bd f3 ff ff jmp 80106ae8 <alltraps> 8010772b <vector160>: .globl vector160 vector160: pushl $0 8010772b: 6a 00 push $0x0 pushl $160 8010772d: 68 a0 00 00 00 push $0xa0 jmp alltraps 80107732: e9 b1 f3 ff ff jmp 80106ae8 <alltraps> 80107737 <vector161>: .globl vector161 vector161: pushl $0 80107737: 6a 00 push $0x0 pushl $161 80107739: 68 a1 00 00 00 push $0xa1 jmp alltraps 8010773e: e9 a5 f3 ff ff jmp 80106ae8 <alltraps> 80107743 <vector162>: .globl vector162 vector162: pushl $0 80107743: 6a 00 push $0x0 pushl $162 80107745: 68 a2 00 00 00 push $0xa2 jmp alltraps 8010774a: e9 99 f3 ff ff jmp 80106ae8 <alltraps> 8010774f <vector163>: .globl vector163 vector163: pushl $0 8010774f: 6a 00 push $0x0 pushl $163 80107751: 68 a3 00 00 00 push $0xa3 jmp alltraps 80107756: e9 8d f3 ff ff jmp 80106ae8 <alltraps> 8010775b <vector164>: .globl vector164 vector164: pushl $0 8010775b: 6a 00 push $0x0 pushl $164 8010775d: 68 a4 00 00 00 push $0xa4 jmp alltraps 80107762: e9 81 f3 ff ff jmp 80106ae8 <alltraps> 80107767 <vector165>: .globl vector165 vector165: pushl $0 80107767: 6a 00 push $0x0 pushl $165 80107769: 68 a5 00 00 00 push $0xa5 jmp alltraps 8010776e: e9 75 f3 ff ff jmp 80106ae8 <alltraps> 80107773 <vector166>: .globl vector166 vector166: pushl $0 80107773: 6a 00 push $0x0 pushl $166 80107775: 68 a6 00 00 00 push $0xa6 jmp alltraps 8010777a: e9 69 f3 ff ff jmp 80106ae8 <alltraps> 8010777f <vector167>: .globl vector167 vector167: pushl $0 8010777f: 6a 00 push $0x0 pushl $167 80107781: 68 a7 00 00 00 push $0xa7 jmp alltraps 80107786: e9 5d f3 ff ff jmp 80106ae8 <alltraps> 8010778b <vector168>: .globl vector168 vector168: pushl $0 8010778b: 6a 00 push $0x0 pushl $168 8010778d: 68 a8 00 00 00 push $0xa8 jmp alltraps 80107792: e9 51 f3 ff ff jmp 80106ae8 <alltraps> 80107797 <vector169>: .globl vector169 vector169: pushl $0 80107797: 6a 00 push $0x0 pushl $169 80107799: 68 a9 00 00 00 push $0xa9 jmp alltraps 8010779e: e9 45 f3 ff ff jmp 80106ae8 <alltraps> 801077a3 <vector170>: .globl vector170 vector170: pushl $0 801077a3: 6a 00 push $0x0 pushl $170 801077a5: 68 aa 00 00 00 push $0xaa jmp alltraps 801077aa: e9 39 f3 ff ff jmp 80106ae8 <alltraps> 801077af <vector171>: .globl vector171 vector171: pushl $0 801077af: 6a 00 push $0x0 pushl $171 801077b1: 68 ab 00 00 00 push $0xab jmp alltraps 801077b6: e9 2d f3 ff ff jmp 80106ae8 <alltraps> 801077bb <vector172>: .globl vector172 vector172: pushl $0 801077bb: 6a 00 push $0x0 pushl $172 801077bd: 68 ac 00 00 00 push $0xac jmp alltraps 801077c2: e9 21 f3 ff ff jmp 80106ae8 <alltraps> 801077c7 <vector173>: .globl vector173 vector173: pushl $0 801077c7: 6a 00 push $0x0 pushl $173 801077c9: 68 ad 00 00 00 push $0xad jmp alltraps 801077ce: e9 15 f3 ff ff jmp 80106ae8 <alltraps> 801077d3 <vector174>: .globl vector174 vector174: pushl $0 801077d3: 6a 00 push $0x0 pushl $174 801077d5: 68 ae 00 00 00 push $0xae jmp alltraps 801077da: e9 09 f3 ff ff jmp 80106ae8 <alltraps> 801077df <vector175>: .globl vector175 vector175: pushl $0 801077df: 6a 00 push $0x0 pushl $175 801077e1: 68 af 00 00 00 push $0xaf jmp alltraps 801077e6: e9 fd f2 ff ff jmp 80106ae8 <alltraps> 801077eb <vector176>: .globl vector176 vector176: pushl $0 801077eb: 6a 00 push $0x0 pushl $176 801077ed: 68 b0 00 00 00 push $0xb0 jmp alltraps 801077f2: e9 f1 f2 ff ff jmp 80106ae8 <alltraps> 801077f7 <vector177>: .globl vector177 vector177: pushl $0 801077f7: 6a 00 push $0x0 pushl $177 801077f9: 68 b1 00 00 00 push $0xb1 jmp alltraps 801077fe: e9 e5 f2 ff ff jmp 80106ae8 <alltraps> 80107803 <vector178>: .globl vector178 vector178: pushl $0 80107803: 6a 00 push $0x0 pushl $178 80107805: 68 b2 00 00 00 push $0xb2 jmp alltraps 8010780a: e9 d9 f2 ff ff jmp 80106ae8 <alltraps> 8010780f <vector179>: .globl vector179 vector179: pushl $0 8010780f: 6a 00 push $0x0 pushl $179 80107811: 68 b3 00 00 00 push $0xb3 jmp alltraps 80107816: e9 cd f2 ff ff jmp 80106ae8 <alltraps> 8010781b <vector180>: .globl vector180 vector180: pushl $0 8010781b: 6a 00 push $0x0 pushl $180 8010781d: 68 b4 00 00 00 push $0xb4 jmp alltraps 80107822: e9 c1 f2 ff ff jmp 80106ae8 <alltraps> 80107827 <vector181>: .globl vector181 vector181: pushl $0 80107827: 6a 00 push $0x0 pushl $181 80107829: 68 b5 00 00 00 push $0xb5 jmp alltraps 8010782e: e9 b5 f2 ff ff jmp 80106ae8 <alltraps> 80107833 <vector182>: .globl vector182 vector182: pushl $0 80107833: 6a 00 push $0x0 pushl $182 80107835: 68 b6 00 00 00 push $0xb6 jmp alltraps 8010783a: e9 a9 f2 ff ff jmp 80106ae8 <alltraps> 8010783f <vector183>: .globl vector183 vector183: pushl $0 8010783f: 6a 00 push $0x0 pushl $183 80107841: 68 b7 00 00 00 push $0xb7 jmp alltraps 80107846: e9 9d f2 ff ff jmp 80106ae8 <alltraps> 8010784b <vector184>: .globl vector184 vector184: pushl $0 8010784b: 6a 00 push $0x0 pushl $184 8010784d: 68 b8 00 00 00 push $0xb8 jmp alltraps 80107852: e9 91 f2 ff ff jmp 80106ae8 <alltraps> 80107857 <vector185>: .globl vector185 vector185: pushl $0 80107857: 6a 00 push $0x0 pushl $185 80107859: 68 b9 00 00 00 push $0xb9 jmp alltraps 8010785e: e9 85 f2 ff ff jmp 80106ae8 <alltraps> 80107863 <vector186>: .globl vector186 vector186: pushl $0 80107863: 6a 00 push $0x0 pushl $186 80107865: 68 ba 00 00 00 push $0xba jmp alltraps 8010786a: e9 79 f2 ff ff jmp 80106ae8 <alltraps> 8010786f <vector187>: .globl vector187 vector187: pushl $0 8010786f: 6a 00 push $0x0 pushl $187 80107871: 68 bb 00 00 00 push $0xbb jmp alltraps 80107876: e9 6d f2 ff ff jmp 80106ae8 <alltraps> 8010787b <vector188>: .globl vector188 vector188: pushl $0 8010787b: 6a 00 push $0x0 pushl $188 8010787d: 68 bc 00 00 00 push $0xbc jmp alltraps 80107882: e9 61 f2 ff ff jmp 80106ae8 <alltraps> 80107887 <vector189>: .globl vector189 vector189: pushl $0 80107887: 6a 00 push $0x0 pushl $189 80107889: 68 bd 00 00 00 push $0xbd jmp alltraps 8010788e: e9 55 f2 ff ff jmp 80106ae8 <alltraps> 80107893 <vector190>: .globl vector190 vector190: pushl $0 80107893: 6a 00 push $0x0 pushl $190 80107895: 68 be 00 00 00 push $0xbe jmp alltraps 8010789a: e9 49 f2 ff ff jmp 80106ae8 <alltraps> 8010789f <vector191>: .globl vector191 vector191: pushl $0 8010789f: 6a 00 push $0x0 pushl $191 801078a1: 68 bf 00 00 00 push $0xbf jmp alltraps 801078a6: e9 3d f2 ff ff jmp 80106ae8 <alltraps> 801078ab <vector192>: .globl vector192 vector192: pushl $0 801078ab: 6a 00 push $0x0 pushl $192 801078ad: 68 c0 00 00 00 push $0xc0 jmp alltraps 801078b2: e9 31 f2 ff ff jmp 80106ae8 <alltraps> 801078b7 <vector193>: .globl vector193 vector193: pushl $0 801078b7: 6a 00 push $0x0 pushl $193 801078b9: 68 c1 00 00 00 push $0xc1 jmp alltraps 801078be: e9 25 f2 ff ff jmp 80106ae8 <alltraps> 801078c3 <vector194>: .globl vector194 vector194: pushl $0 801078c3: 6a 00 push $0x0 pushl $194 801078c5: 68 c2 00 00 00 push $0xc2 jmp alltraps 801078ca: e9 19 f2 ff ff jmp 80106ae8 <alltraps> 801078cf <vector195>: .globl vector195 vector195: pushl $0 801078cf: 6a 00 push $0x0 pushl $195 801078d1: 68 c3 00 00 00 push $0xc3 jmp alltraps 801078d6: e9 0d f2 ff ff jmp 80106ae8 <alltraps> 801078db <vector196>: .globl vector196 vector196: pushl $0 801078db: 6a 00 push $0x0 pushl $196 801078dd: 68 c4 00 00 00 push $0xc4 jmp alltraps 801078e2: e9 01 f2 ff ff jmp 80106ae8 <alltraps> 801078e7 <vector197>: .globl vector197 vector197: pushl $0 801078e7: 6a 00 push $0x0 pushl $197 801078e9: 68 c5 00 00 00 push $0xc5 jmp alltraps 801078ee: e9 f5 f1 ff ff jmp 80106ae8 <alltraps> 801078f3 <vector198>: .globl vector198 vector198: pushl $0 801078f3: 6a 00 push $0x0 pushl $198 801078f5: 68 c6 00 00 00 push $0xc6 jmp alltraps 801078fa: e9 e9 f1 ff ff jmp 80106ae8 <alltraps> 801078ff <vector199>: .globl vector199 vector199: pushl $0 801078ff: 6a 00 push $0x0 pushl $199 80107901: 68 c7 00 00 00 push $0xc7 jmp alltraps 80107906: e9 dd f1 ff ff jmp 80106ae8 <alltraps> 8010790b <vector200>: .globl vector200 vector200: pushl $0 8010790b: 6a 00 push $0x0 pushl $200 8010790d: 68 c8 00 00 00 push $0xc8 jmp alltraps 80107912: e9 d1 f1 ff ff jmp 80106ae8 <alltraps> 80107917 <vector201>: .globl vector201 vector201: pushl $0 80107917: 6a 00 push $0x0 pushl $201 80107919: 68 c9 00 00 00 push $0xc9 jmp alltraps 8010791e: e9 c5 f1 ff ff jmp 80106ae8 <alltraps> 80107923 <vector202>: .globl vector202 vector202: pushl $0 80107923: 6a 00 push $0x0 pushl $202 80107925: 68 ca 00 00 00 push $0xca jmp alltraps 8010792a: e9 b9 f1 ff ff jmp 80106ae8 <alltraps> 8010792f <vector203>: .globl vector203 vector203: pushl $0 8010792f: 6a 00 push $0x0 pushl $203 80107931: 68 cb 00 00 00 push $0xcb jmp alltraps 80107936: e9 ad f1 ff ff jmp 80106ae8 <alltraps> 8010793b <vector204>: .globl vector204 vector204: pushl $0 8010793b: 6a 00 push $0x0 pushl $204 8010793d: 68 cc 00 00 00 push $0xcc jmp alltraps 80107942: e9 a1 f1 ff ff jmp 80106ae8 <alltraps> 80107947 <vector205>: .globl vector205 vector205: pushl $0 80107947: 6a 00 push $0x0 pushl $205 80107949: 68 cd 00 00 00 push $0xcd jmp alltraps 8010794e: e9 95 f1 ff ff jmp 80106ae8 <alltraps> 80107953 <vector206>: .globl vector206 vector206: pushl $0 80107953: 6a 00 push $0x0 pushl $206 80107955: 68 ce 00 00 00 push $0xce jmp alltraps 8010795a: e9 89 f1 ff ff jmp 80106ae8 <alltraps> 8010795f <vector207>: .globl vector207 vector207: pushl $0 8010795f: 6a 00 push $0x0 pushl $207 80107961: 68 cf 00 00 00 push $0xcf jmp alltraps 80107966: e9 7d f1 ff ff jmp 80106ae8 <alltraps> 8010796b <vector208>: .globl vector208 vector208: pushl $0 8010796b: 6a 00 push $0x0 pushl $208 8010796d: 68 d0 00 00 00 push $0xd0 jmp alltraps 80107972: e9 71 f1 ff ff jmp 80106ae8 <alltraps> 80107977 <vector209>: .globl vector209 vector209: pushl $0 80107977: 6a 00 push $0x0 pushl $209 80107979: 68 d1 00 00 00 push $0xd1 jmp alltraps 8010797e: e9 65 f1 ff ff jmp 80106ae8 <alltraps> 80107983 <vector210>: .globl vector210 vector210: pushl $0 80107983: 6a 00 push $0x0 pushl $210 80107985: 68 d2 00 00 00 push $0xd2 jmp alltraps 8010798a: e9 59 f1 ff ff jmp 80106ae8 <alltraps> 8010798f <vector211>: .globl vector211 vector211: pushl $0 8010798f: 6a 00 push $0x0 pushl $211 80107991: 68 d3 00 00 00 push $0xd3 jmp alltraps 80107996: e9 4d f1 ff ff jmp 80106ae8 <alltraps> 8010799b <vector212>: .globl vector212 vector212: pushl $0 8010799b: 6a 00 push $0x0 pushl $212 8010799d: 68 d4 00 00 00 push $0xd4 jmp alltraps 801079a2: e9 41 f1 ff ff jmp 80106ae8 <alltraps> 801079a7 <vector213>: .globl vector213 vector213: pushl $0 801079a7: 6a 00 push $0x0 pushl $213 801079a9: 68 d5 00 00 00 push $0xd5 jmp alltraps 801079ae: e9 35 f1 ff ff jmp 80106ae8 <alltraps> 801079b3 <vector214>: .globl vector214 vector214: pushl $0 801079b3: 6a 00 push $0x0 pushl $214 801079b5: 68 d6 00 00 00 push $0xd6 jmp alltraps 801079ba: e9 29 f1 ff ff jmp 80106ae8 <alltraps> 801079bf <vector215>: .globl vector215 vector215: pushl $0 801079bf: 6a 00 push $0x0 pushl $215 801079c1: 68 d7 00 00 00 push $0xd7 jmp alltraps 801079c6: e9 1d f1 ff ff jmp 80106ae8 <alltraps> 801079cb <vector216>: .globl vector216 vector216: pushl $0 801079cb: 6a 00 push $0x0 pushl $216 801079cd: 68 d8 00 00 00 push $0xd8 jmp alltraps 801079d2: e9 11 f1 ff ff jmp 80106ae8 <alltraps> 801079d7 <vector217>: .globl vector217 vector217: pushl $0 801079d7: 6a 00 push $0x0 pushl $217 801079d9: 68 d9 00 00 00 push $0xd9 jmp alltraps 801079de: e9 05 f1 ff ff jmp 80106ae8 <alltraps> 801079e3 <vector218>: .globl vector218 vector218: pushl $0 801079e3: 6a 00 push $0x0 pushl $218 801079e5: 68 da 00 00 00 push $0xda jmp alltraps 801079ea: e9 f9 f0 ff ff jmp 80106ae8 <alltraps> 801079ef <vector219>: .globl vector219 vector219: pushl $0 801079ef: 6a 00 push $0x0 pushl $219 801079f1: 68 db 00 00 00 push $0xdb jmp alltraps 801079f6: e9 ed f0 ff ff jmp 80106ae8 <alltraps> 801079fb <vector220>: .globl vector220 vector220: pushl $0 801079fb: 6a 00 push $0x0 pushl $220 801079fd: 68 dc 00 00 00 push $0xdc jmp alltraps 80107a02: e9 e1 f0 ff ff jmp 80106ae8 <alltraps> 80107a07 <vector221>: .globl vector221 vector221: pushl $0 80107a07: 6a 00 push $0x0 pushl $221 80107a09: 68 dd 00 00 00 push $0xdd jmp alltraps 80107a0e: e9 d5 f0 ff ff jmp 80106ae8 <alltraps> 80107a13 <vector222>: .globl vector222 vector222: pushl $0 80107a13: 6a 00 push $0x0 pushl $222 80107a15: 68 de 00 00 00 push $0xde jmp alltraps 80107a1a: e9 c9 f0 ff ff jmp 80106ae8 <alltraps> 80107a1f <vector223>: .globl vector223 vector223: pushl $0 80107a1f: 6a 00 push $0x0 pushl $223 80107a21: 68 df 00 00 00 push $0xdf jmp alltraps 80107a26: e9 bd f0 ff ff jmp 80106ae8 <alltraps> 80107a2b <vector224>: .globl vector224 vector224: pushl $0 80107a2b: 6a 00 push $0x0 pushl $224 80107a2d: 68 e0 00 00 00 push $0xe0 jmp alltraps 80107a32: e9 b1 f0 ff ff jmp 80106ae8 <alltraps> 80107a37 <vector225>: .globl vector225 vector225: pushl $0 80107a37: 6a 00 push $0x0 pushl $225 80107a39: 68 e1 00 00 00 push $0xe1 jmp alltraps 80107a3e: e9 a5 f0 ff ff jmp 80106ae8 <alltraps> 80107a43 <vector226>: .globl vector226 vector226: pushl $0 80107a43: 6a 00 push $0x0 pushl $226 80107a45: 68 e2 00 00 00 push $0xe2 jmp alltraps 80107a4a: e9 99 f0 ff ff jmp 80106ae8 <alltraps> 80107a4f <vector227>: .globl vector227 vector227: pushl $0 80107a4f: 6a 00 push $0x0 pushl $227 80107a51: 68 e3 00 00 00 push $0xe3 jmp alltraps 80107a56: e9 8d f0 ff ff jmp 80106ae8 <alltraps> 80107a5b <vector228>: .globl vector228 vector228: pushl $0 80107a5b: 6a 00 push $0x0 pushl $228 80107a5d: 68 e4 00 00 00 push $0xe4 jmp alltraps 80107a62: e9 81 f0 ff ff jmp 80106ae8 <alltraps> 80107a67 <vector229>: .globl vector229 vector229: pushl $0 80107a67: 6a 00 push $0x0 pushl $229 80107a69: 68 e5 00 00 00 push $0xe5 jmp alltraps 80107a6e: e9 75 f0 ff ff jmp 80106ae8 <alltraps> 80107a73 <vector230>: .globl vector230 vector230: pushl $0 80107a73: 6a 00 push $0x0 pushl $230 80107a75: 68 e6 00 00 00 push $0xe6 jmp alltraps 80107a7a: e9 69 f0 ff ff jmp 80106ae8 <alltraps> 80107a7f <vector231>: .globl vector231 vector231: pushl $0 80107a7f: 6a 00 push $0x0 pushl $231 80107a81: 68 e7 00 00 00 push $0xe7 jmp alltraps 80107a86: e9 5d f0 ff ff jmp 80106ae8 <alltraps> 80107a8b <vector232>: .globl vector232 vector232: pushl $0 80107a8b: 6a 00 push $0x0 pushl $232 80107a8d: 68 e8 00 00 00 push $0xe8 jmp alltraps 80107a92: e9 51 f0 ff ff jmp 80106ae8 <alltraps> 80107a97 <vector233>: .globl vector233 vector233: pushl $0 80107a97: 6a 00 push $0x0 pushl $233 80107a99: 68 e9 00 00 00 push $0xe9 jmp alltraps 80107a9e: e9 45 f0 ff ff jmp 80106ae8 <alltraps> 80107aa3 <vector234>: .globl vector234 vector234: pushl $0 80107aa3: 6a 00 push $0x0 pushl $234 80107aa5: 68 ea 00 00 00 push $0xea jmp alltraps 80107aaa: e9 39 f0 ff ff jmp 80106ae8 <alltraps> 80107aaf <vector235>: .globl vector235 vector235: pushl $0 80107aaf: 6a 00 push $0x0 pushl $235 80107ab1: 68 eb 00 00 00 push $0xeb jmp alltraps 80107ab6: e9 2d f0 ff ff jmp 80106ae8 <alltraps> 80107abb <vector236>: .globl vector236 vector236: pushl $0 80107abb: 6a 00 push $0x0 pushl $236 80107abd: 68 ec 00 00 00 push $0xec jmp alltraps 80107ac2: e9 21 f0 ff ff jmp 80106ae8 <alltraps> 80107ac7 <vector237>: .globl vector237 vector237: pushl $0 80107ac7: 6a 00 push $0x0 pushl $237 80107ac9: 68 ed 00 00 00 push $0xed jmp alltraps 80107ace: e9 15 f0 ff ff jmp 80106ae8 <alltraps> 80107ad3 <vector238>: .globl vector238 vector238: pushl $0 80107ad3: 6a 00 push $0x0 pushl $238 80107ad5: 68 ee 00 00 00 push $0xee jmp alltraps 80107ada: e9 09 f0 ff ff jmp 80106ae8 <alltraps> 80107adf <vector239>: .globl vector239 vector239: pushl $0 80107adf: 6a 00 push $0x0 pushl $239 80107ae1: 68 ef 00 00 00 push $0xef jmp alltraps 80107ae6: e9 fd ef ff ff jmp 80106ae8 <alltraps> 80107aeb <vector240>: .globl vector240 vector240: pushl $0 80107aeb: 6a 00 push $0x0 pushl $240 80107aed: 68 f0 00 00 00 push $0xf0 jmp alltraps 80107af2: e9 f1 ef ff ff jmp 80106ae8 <alltraps> 80107af7 <vector241>: .globl vector241 vector241: pushl $0 80107af7: 6a 00 push $0x0 pushl $241 80107af9: 68 f1 00 00 00 push $0xf1 jmp alltraps 80107afe: e9 e5 ef ff ff jmp 80106ae8 <alltraps> 80107b03 <vector242>: .globl vector242 vector242: pushl $0 80107b03: 6a 00 push $0x0 pushl $242 80107b05: 68 f2 00 00 00 push $0xf2 jmp alltraps 80107b0a: e9 d9 ef ff ff jmp 80106ae8 <alltraps> 80107b0f <vector243>: .globl vector243 vector243: pushl $0 80107b0f: 6a 00 push $0x0 pushl $243 80107b11: 68 f3 00 00 00 push $0xf3 jmp alltraps 80107b16: e9 cd ef ff ff jmp 80106ae8 <alltraps> 80107b1b <vector244>: .globl vector244 vector244: pushl $0 80107b1b: 6a 00 push $0x0 pushl $244 80107b1d: 68 f4 00 00 00 push $0xf4 jmp alltraps 80107b22: e9 c1 ef ff ff jmp 80106ae8 <alltraps> 80107b27 <vector245>: .globl vector245 vector245: pushl $0 80107b27: 6a 00 push $0x0 pushl $245 80107b29: 68 f5 00 00 00 push $0xf5 jmp alltraps 80107b2e: e9 b5 ef ff ff jmp 80106ae8 <alltraps> 80107b33 <vector246>: .globl vector246 vector246: pushl $0 80107b33: 6a 00 push $0x0 pushl $246 80107b35: 68 f6 00 00 00 push $0xf6 jmp alltraps 80107b3a: e9 a9 ef ff ff jmp 80106ae8 <alltraps> 80107b3f <vector247>: .globl vector247 vector247: pushl $0 80107b3f: 6a 00 push $0x0 pushl $247 80107b41: 68 f7 00 00 00 push $0xf7 jmp alltraps 80107b46: e9 9d ef ff ff jmp 80106ae8 <alltraps> 80107b4b <vector248>: .globl vector248 vector248: pushl $0 80107b4b: 6a 00 push $0x0 pushl $248 80107b4d: 68 f8 00 00 00 push $0xf8 jmp alltraps 80107b52: e9 91 ef ff ff jmp 80106ae8 <alltraps> 80107b57 <vector249>: .globl vector249 vector249: pushl $0 80107b57: 6a 00 push $0x0 pushl $249 80107b59: 68 f9 00 00 00 push $0xf9 jmp alltraps 80107b5e: e9 85 ef ff ff jmp 80106ae8 <alltraps> 80107b63 <vector250>: .globl vector250 vector250: pushl $0 80107b63: 6a 00 push $0x0 pushl $250 80107b65: 68 fa 00 00 00 push $0xfa jmp alltraps 80107b6a: e9 79 ef ff ff jmp 80106ae8 <alltraps> 80107b6f <vector251>: .globl vector251 vector251: pushl $0 80107b6f: 6a 00 push $0x0 pushl $251 80107b71: 68 fb 00 00 00 push $0xfb jmp alltraps 80107b76: e9 6d ef ff ff jmp 80106ae8 <alltraps> 80107b7b <vector252>: .globl vector252 vector252: pushl $0 80107b7b: 6a 00 push $0x0 pushl $252 80107b7d: 68 fc 00 00 00 push $0xfc jmp alltraps 80107b82: e9 61 ef ff ff jmp 80106ae8 <alltraps> 80107b87 <vector253>: .globl vector253 vector253: pushl $0 80107b87: 6a 00 push $0x0 pushl $253 80107b89: 68 fd 00 00 00 push $0xfd jmp alltraps 80107b8e: e9 55 ef ff ff jmp 80106ae8 <alltraps> 80107b93 <vector254>: .globl vector254 vector254: pushl $0 80107b93: 6a 00 push $0x0 pushl $254 80107b95: 68 fe 00 00 00 push $0xfe jmp alltraps 80107b9a: e9 49 ef ff ff jmp 80106ae8 <alltraps> 80107b9f <vector255>: .globl vector255 vector255: pushl $0 80107b9f: 6a 00 push $0x0 pushl $255 80107ba1: 68 ff 00 00 00 push $0xff jmp alltraps 80107ba6: e9 3d ef ff ff jmp 80106ae8 <alltraps> 80107bab <lgdt>: struct segdesc; static inline void lgdt(struct segdesc *p, int size) { 80107bab: 55 push %ebp 80107bac: 89 e5 mov %esp,%ebp 80107bae: 83 ec 10 sub $0x10,%esp volatile ushort pd[3]; pd[0] = size-1; 80107bb1: 8b 45 0c mov 0xc(%ebp),%eax 80107bb4: 83 e8 01 sub $0x1,%eax 80107bb7: 66 89 45 fa mov %ax,-0x6(%ebp) pd[1] = (uint)p; 80107bbb: 8b 45 08 mov 0x8(%ebp),%eax 80107bbe: 66 89 45 fc mov %ax,-0x4(%ebp) pd[2] = (uint)p >> 16; 80107bc2: 8b 45 08 mov 0x8(%ebp),%eax 80107bc5: c1 e8 10 shr $0x10,%eax 80107bc8: 66 89 45 fe mov %ax,-0x2(%ebp) asm volatile("lgdt (%0)" : : "r" (pd)); 80107bcc: 8d 45 fa lea -0x6(%ebp),%eax 80107bcf: 0f 01 10 lgdtl (%eax) } 80107bd2: 90 nop 80107bd3: c9 leave 80107bd4: c3 ret 80107bd5 <ltr>: asm volatile("lidt (%0)" : : "r" (pd)); } static inline void ltr(ushort sel) { 80107bd5: 55 push %ebp 80107bd6: 89 e5 mov %esp,%ebp 80107bd8: 83 ec 04 sub $0x4,%esp 80107bdb: 8b 45 08 mov 0x8(%ebp),%eax 80107bde: 66 89 45 fc mov %ax,-0x4(%ebp) asm volatile("ltr %0" : : "r" (sel)); 80107be2: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80107be6: 0f 00 d8 ltr %ax } 80107be9: 90 nop 80107bea: c9 leave 80107beb: c3 ret 80107bec <loadgs>: return eflags; } static inline void loadgs(ushort v) { 80107bec: 55 push %ebp 80107bed: 89 e5 mov %esp,%ebp 80107bef: 83 ec 04 sub $0x4,%esp 80107bf2: 8b 45 08 mov 0x8(%ebp),%eax 80107bf5: 66 89 45 fc mov %ax,-0x4(%ebp) asm volatile("movw %0, %%gs" : : "r" (v)); 80107bf9: 0f b7 45 fc movzwl -0x4(%ebp),%eax 80107bfd: 8e e8 mov %eax,%gs } 80107bff: 90 nop 80107c00: c9 leave 80107c01: c3 ret 80107c02 <lcr3>: return val; } static inline void lcr3(uint val) { 80107c02: 55 push %ebp 80107c03: 89 e5 mov %esp,%ebp asm volatile("movl %0,%%cr3" : : "r" (val)); 80107c05: 8b 45 08 mov 0x8(%ebp),%eax 80107c08: 0f 22 d8 mov %eax,%cr3 } 80107c0b: 90 nop 80107c0c: 5d pop %ebp 80107c0d: c3 ret 80107c0e <v2p>: #define KERNBASE 0x80000000 // First kernel virtual address #define KERNLINK (KERNBASE+EXTMEM) // Address where kernel is linked #ifndef __ASSEMBLER__ static inline uint v2p(void *a) { return ((uint) (a)) - KERNBASE; } 80107c0e: 55 push %ebp 80107c0f: 89 e5 mov %esp,%ebp 80107c11: 8b 45 08 mov 0x8(%ebp),%eax 80107c14: 05 00 00 00 80 add $0x80000000,%eax 80107c19: 5d pop %ebp 80107c1a: c3 ret 80107c1b <p2v>: static inline void *p2v(uint a) { return (void *) ((a) + KERNBASE); } 80107c1b: 55 push %ebp 80107c1c: 89 e5 mov %esp,%ebp 80107c1e: 8b 45 08 mov 0x8(%ebp),%eax 80107c21: 05 00 00 00 80 add $0x80000000,%eax 80107c26: 5d pop %ebp 80107c27: c3 ret 80107c28 <seginit>: // Set up CPU's kernel segment descriptors. // Run once on entry on each CPU. void seginit(void) { 80107c28: 55 push %ebp 80107c29: 89 e5 mov %esp,%ebp 80107c2b: 53 push %ebx 80107c2c: 83 ec 14 sub $0x14,%esp // Map "logical" addresses to virtual addresses using identity map. // Cannot share a CODE descriptor for both kernel and user // because it would have to have DPL_USR, but the CPU forbids // an interrupt from CPL=0 to DPL=3. c = &cpus[cpunum()]; 80107c2f: e8 98 b3 ff ff call 80102fcc <cpunum> 80107c34: 69 c0 bc 00 00 00 imul $0xbc,%eax,%eax 80107c3a: 05 60 33 11 80 add $0x80113360,%eax 80107c3f: 89 45 f4 mov %eax,-0xc(%ebp) c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0); 80107c42: 8b 45 f4 mov -0xc(%ebp),%eax 80107c45: 66 c7 40 78 ff ff movw $0xffff,0x78(%eax) 80107c4b: 8b 45 f4 mov -0xc(%ebp),%eax 80107c4e: 66 c7 40 7a 00 00 movw $0x0,0x7a(%eax) 80107c54: 8b 45 f4 mov -0xc(%ebp),%eax 80107c57: c6 40 7c 00 movb $0x0,0x7c(%eax) 80107c5b: 8b 45 f4 mov -0xc(%ebp),%eax 80107c5e: 0f b6 50 7d movzbl 0x7d(%eax),%edx 80107c62: 83 e2 f0 and $0xfffffff0,%edx 80107c65: 83 ca 0a or $0xa,%edx 80107c68: 88 50 7d mov %dl,0x7d(%eax) 80107c6b: 8b 45 f4 mov -0xc(%ebp),%eax 80107c6e: 0f b6 50 7d movzbl 0x7d(%eax),%edx 80107c72: 83 ca 10 or $0x10,%edx 80107c75: 88 50 7d mov %dl,0x7d(%eax) 80107c78: 8b 45 f4 mov -0xc(%ebp),%eax 80107c7b: 0f b6 50 7d movzbl 0x7d(%eax),%edx 80107c7f: 83 e2 9f and $0xffffff9f,%edx 80107c82: 88 50 7d mov %dl,0x7d(%eax) 80107c85: 8b 45 f4 mov -0xc(%ebp),%eax 80107c88: 0f b6 50 7d movzbl 0x7d(%eax),%edx 80107c8c: 83 ca 80 or $0xffffff80,%edx 80107c8f: 88 50 7d mov %dl,0x7d(%eax) 80107c92: 8b 45 f4 mov -0xc(%ebp),%eax 80107c95: 0f b6 50 7e movzbl 0x7e(%eax),%edx 80107c99: 83 ca 0f or $0xf,%edx 80107c9c: 88 50 7e mov %dl,0x7e(%eax) 80107c9f: 8b 45 f4 mov -0xc(%ebp),%eax 80107ca2: 0f b6 50 7e movzbl 0x7e(%eax),%edx 80107ca6: 83 e2 ef and $0xffffffef,%edx 80107ca9: 88 50 7e mov %dl,0x7e(%eax) 80107cac: 8b 45 f4 mov -0xc(%ebp),%eax 80107caf: 0f b6 50 7e movzbl 0x7e(%eax),%edx 80107cb3: 83 e2 df and $0xffffffdf,%edx 80107cb6: 88 50 7e mov %dl,0x7e(%eax) 80107cb9: 8b 45 f4 mov -0xc(%ebp),%eax 80107cbc: 0f b6 50 7e movzbl 0x7e(%eax),%edx 80107cc0: 83 ca 40 or $0x40,%edx 80107cc3: 88 50 7e mov %dl,0x7e(%eax) 80107cc6: 8b 45 f4 mov -0xc(%ebp),%eax 80107cc9: 0f b6 50 7e movzbl 0x7e(%eax),%edx 80107ccd: 83 ca 80 or $0xffffff80,%edx 80107cd0: 88 50 7e mov %dl,0x7e(%eax) 80107cd3: 8b 45 f4 mov -0xc(%ebp),%eax 80107cd6: c6 40 7f 00 movb $0x0,0x7f(%eax) c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0); 80107cda: 8b 45 f4 mov -0xc(%ebp),%eax 80107cdd: 66 c7 80 80 00 00 00 movw $0xffff,0x80(%eax) 80107ce4: ff ff 80107ce6: 8b 45 f4 mov -0xc(%ebp),%eax 80107ce9: 66 c7 80 82 00 00 00 movw $0x0,0x82(%eax) 80107cf0: 00 00 80107cf2: 8b 45 f4 mov -0xc(%ebp),%eax 80107cf5: c6 80 84 00 00 00 00 movb $0x0,0x84(%eax) 80107cfc: 8b 45 f4 mov -0xc(%ebp),%eax 80107cff: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 80107d06: 83 e2 f0 and $0xfffffff0,%edx 80107d09: 83 ca 02 or $0x2,%edx 80107d0c: 88 90 85 00 00 00 mov %dl,0x85(%eax) 80107d12: 8b 45 f4 mov -0xc(%ebp),%eax 80107d15: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 80107d1c: 83 ca 10 or $0x10,%edx 80107d1f: 88 90 85 00 00 00 mov %dl,0x85(%eax) 80107d25: 8b 45 f4 mov -0xc(%ebp),%eax 80107d28: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 80107d2f: 83 e2 9f and $0xffffff9f,%edx 80107d32: 88 90 85 00 00 00 mov %dl,0x85(%eax) 80107d38: 8b 45 f4 mov -0xc(%ebp),%eax 80107d3b: 0f b6 90 85 00 00 00 movzbl 0x85(%eax),%edx 80107d42: 83 ca 80 or $0xffffff80,%edx 80107d45: 88 90 85 00 00 00 mov %dl,0x85(%eax) 80107d4b: 8b 45 f4 mov -0xc(%ebp),%eax 80107d4e: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 80107d55: 83 ca 0f or $0xf,%edx 80107d58: 88 90 86 00 00 00 mov %dl,0x86(%eax) 80107d5e: 8b 45 f4 mov -0xc(%ebp),%eax 80107d61: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 80107d68: 83 e2 ef and $0xffffffef,%edx 80107d6b: 88 90 86 00 00 00 mov %dl,0x86(%eax) 80107d71: 8b 45 f4 mov -0xc(%ebp),%eax 80107d74: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 80107d7b: 83 e2 df and $0xffffffdf,%edx 80107d7e: 88 90 86 00 00 00 mov %dl,0x86(%eax) 80107d84: 8b 45 f4 mov -0xc(%ebp),%eax 80107d87: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 80107d8e: 83 ca 40 or $0x40,%edx 80107d91: 88 90 86 00 00 00 mov %dl,0x86(%eax) 80107d97: 8b 45 f4 mov -0xc(%ebp),%eax 80107d9a: 0f b6 90 86 00 00 00 movzbl 0x86(%eax),%edx 80107da1: 83 ca 80 or $0xffffff80,%edx 80107da4: 88 90 86 00 00 00 mov %dl,0x86(%eax) 80107daa: 8b 45 f4 mov -0xc(%ebp),%eax 80107dad: c6 80 87 00 00 00 00 movb $0x0,0x87(%eax) c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER); 80107db4: 8b 45 f4 mov -0xc(%ebp),%eax 80107db7: 66 c7 80 90 00 00 00 movw $0xffff,0x90(%eax) 80107dbe: ff ff 80107dc0: 8b 45 f4 mov -0xc(%ebp),%eax 80107dc3: 66 c7 80 92 00 00 00 movw $0x0,0x92(%eax) 80107dca: 00 00 80107dcc: 8b 45 f4 mov -0xc(%ebp),%eax 80107dcf: c6 80 94 00 00 00 00 movb $0x0,0x94(%eax) 80107dd6: 8b 45 f4 mov -0xc(%ebp),%eax 80107dd9: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 80107de0: 83 e2 f0 and $0xfffffff0,%edx 80107de3: 83 ca 0a or $0xa,%edx 80107de6: 88 90 95 00 00 00 mov %dl,0x95(%eax) 80107dec: 8b 45 f4 mov -0xc(%ebp),%eax 80107def: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 80107df6: 83 ca 10 or $0x10,%edx 80107df9: 88 90 95 00 00 00 mov %dl,0x95(%eax) 80107dff: 8b 45 f4 mov -0xc(%ebp),%eax 80107e02: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 80107e09: 83 ca 60 or $0x60,%edx 80107e0c: 88 90 95 00 00 00 mov %dl,0x95(%eax) 80107e12: 8b 45 f4 mov -0xc(%ebp),%eax 80107e15: 0f b6 90 95 00 00 00 movzbl 0x95(%eax),%edx 80107e1c: 83 ca 80 or $0xffffff80,%edx 80107e1f: 88 90 95 00 00 00 mov %dl,0x95(%eax) 80107e25: 8b 45 f4 mov -0xc(%ebp),%eax 80107e28: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 80107e2f: 83 ca 0f or $0xf,%edx 80107e32: 88 90 96 00 00 00 mov %dl,0x96(%eax) 80107e38: 8b 45 f4 mov -0xc(%ebp),%eax 80107e3b: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 80107e42: 83 e2 ef and $0xffffffef,%edx 80107e45: 88 90 96 00 00 00 mov %dl,0x96(%eax) 80107e4b: 8b 45 f4 mov -0xc(%ebp),%eax 80107e4e: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 80107e55: 83 e2 df and $0xffffffdf,%edx 80107e58: 88 90 96 00 00 00 mov %dl,0x96(%eax) 80107e5e: 8b 45 f4 mov -0xc(%ebp),%eax 80107e61: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 80107e68: 83 ca 40 or $0x40,%edx 80107e6b: 88 90 96 00 00 00 mov %dl,0x96(%eax) 80107e71: 8b 45 f4 mov -0xc(%ebp),%eax 80107e74: 0f b6 90 96 00 00 00 movzbl 0x96(%eax),%edx 80107e7b: 83 ca 80 or $0xffffff80,%edx 80107e7e: 88 90 96 00 00 00 mov %dl,0x96(%eax) 80107e84: 8b 45 f4 mov -0xc(%ebp),%eax 80107e87: c6 80 97 00 00 00 00 movb $0x0,0x97(%eax) c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER); 80107e8e: 8b 45 f4 mov -0xc(%ebp),%eax 80107e91: 66 c7 80 98 00 00 00 movw $0xffff,0x98(%eax) 80107e98: ff ff 80107e9a: 8b 45 f4 mov -0xc(%ebp),%eax 80107e9d: 66 c7 80 9a 00 00 00 movw $0x0,0x9a(%eax) 80107ea4: 00 00 80107ea6: 8b 45 f4 mov -0xc(%ebp),%eax 80107ea9: c6 80 9c 00 00 00 00 movb $0x0,0x9c(%eax) 80107eb0: 8b 45 f4 mov -0xc(%ebp),%eax 80107eb3: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107eba: 83 e2 f0 and $0xfffffff0,%edx 80107ebd: 83 ca 02 or $0x2,%edx 80107ec0: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107ec6: 8b 45 f4 mov -0xc(%ebp),%eax 80107ec9: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107ed0: 83 ca 10 or $0x10,%edx 80107ed3: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107ed9: 8b 45 f4 mov -0xc(%ebp),%eax 80107edc: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107ee3: 83 ca 60 or $0x60,%edx 80107ee6: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107eec: 8b 45 f4 mov -0xc(%ebp),%eax 80107eef: 0f b6 90 9d 00 00 00 movzbl 0x9d(%eax),%edx 80107ef6: 83 ca 80 or $0xffffff80,%edx 80107ef9: 88 90 9d 00 00 00 mov %dl,0x9d(%eax) 80107eff: 8b 45 f4 mov -0xc(%ebp),%eax 80107f02: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107f09: 83 ca 0f or $0xf,%edx 80107f0c: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107f12: 8b 45 f4 mov -0xc(%ebp),%eax 80107f15: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107f1c: 83 e2 ef and $0xffffffef,%edx 80107f1f: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107f25: 8b 45 f4 mov -0xc(%ebp),%eax 80107f28: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107f2f: 83 e2 df and $0xffffffdf,%edx 80107f32: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107f38: 8b 45 f4 mov -0xc(%ebp),%eax 80107f3b: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107f42: 83 ca 40 or $0x40,%edx 80107f45: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107f4b: 8b 45 f4 mov -0xc(%ebp),%eax 80107f4e: 0f b6 90 9e 00 00 00 movzbl 0x9e(%eax),%edx 80107f55: 83 ca 80 or $0xffffff80,%edx 80107f58: 88 90 9e 00 00 00 mov %dl,0x9e(%eax) 80107f5e: 8b 45 f4 mov -0xc(%ebp),%eax 80107f61: c6 80 9f 00 00 00 00 movb $0x0,0x9f(%eax) // Map cpu, and curproc c->gdt[SEG_KCPU] = SEG(STA_W, &c->cpu, 8, 0); 80107f68: 8b 45 f4 mov -0xc(%ebp),%eax 80107f6b: 05 b4 00 00 00 add $0xb4,%eax 80107f70: 89 c3 mov %eax,%ebx 80107f72: 8b 45 f4 mov -0xc(%ebp),%eax 80107f75: 05 b4 00 00 00 add $0xb4,%eax 80107f7a: c1 e8 10 shr $0x10,%eax 80107f7d: 89 c2 mov %eax,%edx 80107f7f: 8b 45 f4 mov -0xc(%ebp),%eax 80107f82: 05 b4 00 00 00 add $0xb4,%eax 80107f87: c1 e8 18 shr $0x18,%eax 80107f8a: 89 c1 mov %eax,%ecx 80107f8c: 8b 45 f4 mov -0xc(%ebp),%eax 80107f8f: 66 c7 80 88 00 00 00 movw $0x0,0x88(%eax) 80107f96: 00 00 80107f98: 8b 45 f4 mov -0xc(%ebp),%eax 80107f9b: 66 89 98 8a 00 00 00 mov %bx,0x8a(%eax) 80107fa2: 8b 45 f4 mov -0xc(%ebp),%eax 80107fa5: 88 90 8c 00 00 00 mov %dl,0x8c(%eax) 80107fab: 8b 45 f4 mov -0xc(%ebp),%eax 80107fae: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107fb5: 83 e2 f0 and $0xfffffff0,%edx 80107fb8: 83 ca 02 or $0x2,%edx 80107fbb: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107fc1: 8b 45 f4 mov -0xc(%ebp),%eax 80107fc4: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107fcb: 83 ca 10 or $0x10,%edx 80107fce: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107fd4: 8b 45 f4 mov -0xc(%ebp),%eax 80107fd7: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107fde: 83 e2 9f and $0xffffff9f,%edx 80107fe1: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107fe7: 8b 45 f4 mov -0xc(%ebp),%eax 80107fea: 0f b6 90 8d 00 00 00 movzbl 0x8d(%eax),%edx 80107ff1: 83 ca 80 or $0xffffff80,%edx 80107ff4: 88 90 8d 00 00 00 mov %dl,0x8d(%eax) 80107ffa: 8b 45 f4 mov -0xc(%ebp),%eax 80107ffd: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80108004: 83 e2 f0 and $0xfffffff0,%edx 80108007: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 8010800d: 8b 45 f4 mov -0xc(%ebp),%eax 80108010: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80108017: 83 e2 ef and $0xffffffef,%edx 8010801a: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80108020: 8b 45 f4 mov -0xc(%ebp),%eax 80108023: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 8010802a: 83 e2 df and $0xffffffdf,%edx 8010802d: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80108033: 8b 45 f4 mov -0xc(%ebp),%eax 80108036: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 8010803d: 83 ca 40 or $0x40,%edx 80108040: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80108046: 8b 45 f4 mov -0xc(%ebp),%eax 80108049: 0f b6 90 8e 00 00 00 movzbl 0x8e(%eax),%edx 80108050: 83 ca 80 or $0xffffff80,%edx 80108053: 88 90 8e 00 00 00 mov %dl,0x8e(%eax) 80108059: 8b 45 f4 mov -0xc(%ebp),%eax 8010805c: 88 88 8f 00 00 00 mov %cl,0x8f(%eax) lgdt(c->gdt, sizeof(c->gdt)); 80108062: 8b 45 f4 mov -0xc(%ebp),%eax 80108065: 83 c0 70 add $0x70,%eax 80108068: 83 ec 08 sub $0x8,%esp 8010806b: 6a 38 push $0x38 8010806d: 50 push %eax 8010806e: e8 38 fb ff ff call 80107bab <lgdt> 80108073: 83 c4 10 add $0x10,%esp loadgs(SEG_KCPU << 3); 80108076: 83 ec 0c sub $0xc,%esp 80108079: 6a 18 push $0x18 8010807b: e8 6c fb ff ff call 80107bec <loadgs> 80108080: 83 c4 10 add $0x10,%esp // Initialize cpu-local storage. cpu = c; 80108083: 8b 45 f4 mov -0xc(%ebp),%eax 80108086: 65 a3 00 00 00 00 mov %eax,%gs:0x0 proc = 0; 8010808c: 65 c7 05 04 00 00 00 movl $0x0,%gs:0x4 80108093: 00 00 00 00 } 80108097: 90 nop 80108098: 8b 5d fc mov -0x4(%ebp),%ebx 8010809b: c9 leave 8010809c: c3 ret 8010809d <walkpgdir>: // Return the address of the PTE in page table pgdir // that corresponds to virtual address va. If alloc!=0, // create any required page table pages. static pte_t * walkpgdir(pde_t *pgdir, const void *va, int alloc) { 8010809d: 55 push %ebp 8010809e: 89 e5 mov %esp,%ebp 801080a0: 83 ec 18 sub $0x18,%esp pde_t *pde; pte_t *pgtab; pde = &pgdir[PDX(va)]; 801080a3: 8b 45 0c mov 0xc(%ebp),%eax 801080a6: c1 e8 16 shr $0x16,%eax 801080a9: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 801080b0: 8b 45 08 mov 0x8(%ebp),%eax 801080b3: 01 d0 add %edx,%eax 801080b5: 89 45 f0 mov %eax,-0x10(%ebp) if(*pde & PTE_P){ 801080b8: 8b 45 f0 mov -0x10(%ebp),%eax 801080bb: 8b 00 mov (%eax),%eax 801080bd: 83 e0 01 and $0x1,%eax 801080c0: 85 c0 test %eax,%eax 801080c2: 74 18 je 801080dc <walkpgdir+0x3f> pgtab = (pte_t*)p2v(PTE_ADDR(*pde)); 801080c4: 8b 45 f0 mov -0x10(%ebp),%eax 801080c7: 8b 00 mov (%eax),%eax 801080c9: 25 00 f0 ff ff and $0xfffff000,%eax 801080ce: 50 push %eax 801080cf: e8 47 fb ff ff call 80107c1b <p2v> 801080d4: 83 c4 04 add $0x4,%esp 801080d7: 89 45 f4 mov %eax,-0xc(%ebp) 801080da: eb 48 jmp 80108124 <walkpgdir+0x87> } else { if(!alloc || (pgtab = (pte_t*)kalloc()) == 0) 801080dc: 83 7d 10 00 cmpl $0x0,0x10(%ebp) 801080e0: 74 0e je 801080f0 <walkpgdir+0x53> 801080e2: e8 7f ab ff ff call 80102c66 <kalloc> 801080e7: 89 45 f4 mov %eax,-0xc(%ebp) 801080ea: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801080ee: 75 07 jne 801080f7 <walkpgdir+0x5a> return 0; 801080f0: b8 00 00 00 00 mov $0x0,%eax 801080f5: eb 44 jmp 8010813b <walkpgdir+0x9e> // Make sure all those PTE_P bits are zero. memset(pgtab, 0, PGSIZE); 801080f7: 83 ec 04 sub $0x4,%esp 801080fa: 68 00 10 00 00 push $0x1000 801080ff: 6a 00 push $0x0 80108101: ff 75 f4 pushl -0xc(%ebp) 80108104: e8 25 d6 ff ff call 8010572e <memset> 80108109: 83 c4 10 add $0x10,%esp // The permissions here are overly generous, but they can // be further restricted by the permissions in the page table // entries, if necessary. *pde = v2p(pgtab) | PTE_P | PTE_W | PTE_U; 8010810c: 83 ec 0c sub $0xc,%esp 8010810f: ff 75 f4 pushl -0xc(%ebp) 80108112: e8 f7 fa ff ff call 80107c0e <v2p> 80108117: 83 c4 10 add $0x10,%esp 8010811a: 83 c8 07 or $0x7,%eax 8010811d: 89 c2 mov %eax,%edx 8010811f: 8b 45 f0 mov -0x10(%ebp),%eax 80108122: 89 10 mov %edx,(%eax) } return &pgtab[PTX(va)]; 80108124: 8b 45 0c mov 0xc(%ebp),%eax 80108127: c1 e8 0c shr $0xc,%eax 8010812a: 25 ff 03 00 00 and $0x3ff,%eax 8010812f: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80108136: 8b 45 f4 mov -0xc(%ebp),%eax 80108139: 01 d0 add %edx,%eax } 8010813b: c9 leave 8010813c: c3 ret 8010813d <mappages>: // Create PTEs for virtual addresses starting at va that refer to // physical addresses starting at pa. va and size might not // be page-aligned. static int mappages(pde_t *pgdir, void *va, uint size, uint pa, int perm) { 8010813d: 55 push %ebp 8010813e: 89 e5 mov %esp,%ebp 80108140: 83 ec 18 sub $0x18,%esp char *a, *last; pte_t *pte; a = (char*)PGROUNDDOWN((uint)va); 80108143: 8b 45 0c mov 0xc(%ebp),%eax 80108146: 25 00 f0 ff ff and $0xfffff000,%eax 8010814b: 89 45 f4 mov %eax,-0xc(%ebp) last = (char*)PGROUNDDOWN(((uint)va) + size - 1); 8010814e: 8b 55 0c mov 0xc(%ebp),%edx 80108151: 8b 45 10 mov 0x10(%ebp),%eax 80108154: 01 d0 add %edx,%eax 80108156: 83 e8 01 sub $0x1,%eax 80108159: 25 00 f0 ff ff and $0xfffff000,%eax 8010815e: 89 45 f0 mov %eax,-0x10(%ebp) for(;;){ if((pte = walkpgdir(pgdir, a, 1)) == 0) 80108161: 83 ec 04 sub $0x4,%esp 80108164: 6a 01 push $0x1 80108166: ff 75 f4 pushl -0xc(%ebp) 80108169: ff 75 08 pushl 0x8(%ebp) 8010816c: e8 2c ff ff ff call 8010809d <walkpgdir> 80108171: 83 c4 10 add $0x10,%esp 80108174: 89 45 ec mov %eax,-0x14(%ebp) 80108177: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 8010817b: 75 07 jne 80108184 <mappages+0x47> return -1; 8010817d: b8 ff ff ff ff mov $0xffffffff,%eax 80108182: eb 47 jmp 801081cb <mappages+0x8e> if(*pte & PTE_P) 80108184: 8b 45 ec mov -0x14(%ebp),%eax 80108187: 8b 00 mov (%eax),%eax 80108189: 83 e0 01 and $0x1,%eax 8010818c: 85 c0 test %eax,%eax 8010818e: 74 0d je 8010819d <mappages+0x60> panic("remap"); 80108190: 83 ec 0c sub $0xc,%esp 80108193: 68 78 90 10 80 push $0x80109078 80108198: e8 c9 83 ff ff call 80100566 <panic> *pte = pa | perm | PTE_P; 8010819d: 8b 45 18 mov 0x18(%ebp),%eax 801081a0: 0b 45 14 or 0x14(%ebp),%eax 801081a3: 83 c8 01 or $0x1,%eax 801081a6: 89 c2 mov %eax,%edx 801081a8: 8b 45 ec mov -0x14(%ebp),%eax 801081ab: 89 10 mov %edx,(%eax) if(a == last) 801081ad: 8b 45 f4 mov -0xc(%ebp),%eax 801081b0: 3b 45 f0 cmp -0x10(%ebp),%eax 801081b3: 74 10 je 801081c5 <mappages+0x88> break; a += PGSIZE; 801081b5: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) pa += PGSIZE; 801081bc: 81 45 14 00 10 00 00 addl $0x1000,0x14(%ebp) } 801081c3: eb 9c jmp 80108161 <mappages+0x24> return -1; if(*pte & PTE_P) panic("remap"); *pte = pa | perm | PTE_P; if(a == last) break; 801081c5: 90 nop a += PGSIZE; pa += PGSIZE; } return 0; 801081c6: b8 00 00 00 00 mov $0x0,%eax } 801081cb: c9 leave 801081cc: c3 ret 801081cd <setupkvm>: }; // Set up kernel part of a page table. pde_t* setupkvm(void) { 801081cd: 55 push %ebp 801081ce: 89 e5 mov %esp,%ebp 801081d0: 53 push %ebx 801081d1: 83 ec 14 sub $0x14,%esp pde_t *pgdir; struct kmap *k; if((pgdir = (pde_t*)kalloc()) == 0) 801081d4: e8 8d aa ff ff call 80102c66 <kalloc> 801081d9: 89 45 f0 mov %eax,-0x10(%ebp) 801081dc: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801081e0: 75 0a jne 801081ec <setupkvm+0x1f> return 0; 801081e2: b8 00 00 00 00 mov $0x0,%eax 801081e7: e9 8e 00 00 00 jmp 8010827a <setupkvm+0xad> memset(pgdir, 0, PGSIZE); 801081ec: 83 ec 04 sub $0x4,%esp 801081ef: 68 00 10 00 00 push $0x1000 801081f4: 6a 00 push $0x0 801081f6: ff 75 f0 pushl -0x10(%ebp) 801081f9: e8 30 d5 ff ff call 8010572e <memset> 801081fe: 83 c4 10 add $0x10,%esp if (p2v(PHYSTOP) > (void*)DEVSPACE) 80108201: 83 ec 0c sub $0xc,%esp 80108204: 68 00 00 00 0e push $0xe000000 80108209: e8 0d fa ff ff call 80107c1b <p2v> 8010820e: 83 c4 10 add $0x10,%esp 80108211: 3d 00 00 00 fe cmp $0xfe000000,%eax 80108216: 76 0d jbe 80108225 <setupkvm+0x58> panic("PHYSTOP too high"); 80108218: 83 ec 0c sub $0xc,%esp 8010821b: 68 7e 90 10 80 push $0x8010907e 80108220: e8 41 83 ff ff call 80100566 <panic> for(k = kmap; k < &kmap[NELEM(kmap)]; k++) 80108225: c7 45 f4 a0 c4 10 80 movl $0x8010c4a0,-0xc(%ebp) 8010822c: eb 40 jmp 8010826e <setupkvm+0xa1> if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, 8010822e: 8b 45 f4 mov -0xc(%ebp),%eax 80108231: 8b 48 0c mov 0xc(%eax),%ecx (uint)k->phys_start, k->perm) < 0) 80108234: 8b 45 f4 mov -0xc(%ebp),%eax 80108237: 8b 50 04 mov 0x4(%eax),%edx return 0; memset(pgdir, 0, PGSIZE); if (p2v(PHYSTOP) > (void*)DEVSPACE) panic("PHYSTOP too high"); for(k = kmap; k < &kmap[NELEM(kmap)]; k++) if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, 8010823a: 8b 45 f4 mov -0xc(%ebp),%eax 8010823d: 8b 58 08 mov 0x8(%eax),%ebx 80108240: 8b 45 f4 mov -0xc(%ebp),%eax 80108243: 8b 40 04 mov 0x4(%eax),%eax 80108246: 29 c3 sub %eax,%ebx 80108248: 8b 45 f4 mov -0xc(%ebp),%eax 8010824b: 8b 00 mov (%eax),%eax 8010824d: 83 ec 0c sub $0xc,%esp 80108250: 51 push %ecx 80108251: 52 push %edx 80108252: 53 push %ebx 80108253: 50 push %eax 80108254: ff 75 f0 pushl -0x10(%ebp) 80108257: e8 e1 fe ff ff call 8010813d <mappages> 8010825c: 83 c4 20 add $0x20,%esp 8010825f: 85 c0 test %eax,%eax 80108261: 79 07 jns 8010826a <setupkvm+0x9d> (uint)k->phys_start, k->perm) < 0) return 0; 80108263: b8 00 00 00 00 mov $0x0,%eax 80108268: eb 10 jmp 8010827a <setupkvm+0xad> if((pgdir = (pde_t*)kalloc()) == 0) return 0; memset(pgdir, 0, PGSIZE); if (p2v(PHYSTOP) > (void*)DEVSPACE) panic("PHYSTOP too high"); for(k = kmap; k < &kmap[NELEM(kmap)]; k++) 8010826a: 83 45 f4 10 addl $0x10,-0xc(%ebp) 8010826e: 81 7d f4 e0 c4 10 80 cmpl $0x8010c4e0,-0xc(%ebp) 80108275: 72 b7 jb 8010822e <setupkvm+0x61> if(mappages(pgdir, k->virt, k->phys_end - k->phys_start, (uint)k->phys_start, k->perm) < 0) return 0; return pgdir; 80108277: 8b 45 f0 mov -0x10(%ebp),%eax } 8010827a: 8b 5d fc mov -0x4(%ebp),%ebx 8010827d: c9 leave 8010827e: c3 ret 8010827f <kvmalloc>: // Allocate one page table for the machine for the kernel address // space for scheduler processes. void kvmalloc(void) { 8010827f: 55 push %ebp 80108280: 89 e5 mov %esp,%ebp 80108282: 83 ec 08 sub $0x8,%esp kpgdir = setupkvm(); 80108285: e8 43 ff ff ff call 801081cd <setupkvm> 8010828a: a3 78 66 11 80 mov %eax,0x80116678 switchkvm(); 8010828f: e8 03 00 00 00 call 80108297 <switchkvm> } 80108294: 90 nop 80108295: c9 leave 80108296: c3 ret 80108297 <switchkvm>: // Switch h/w page table register to the kernel-only page table, // for when no process is running. void switchkvm(void) { 80108297: 55 push %ebp 80108298: 89 e5 mov %esp,%ebp lcr3(v2p(kpgdir)); // switch to the kernel page table 8010829a: a1 78 66 11 80 mov 0x80116678,%eax 8010829f: 50 push %eax 801082a0: e8 69 f9 ff ff call 80107c0e <v2p> 801082a5: 83 c4 04 add $0x4,%esp 801082a8: 50 push %eax 801082a9: e8 54 f9 ff ff call 80107c02 <lcr3> 801082ae: 83 c4 04 add $0x4,%esp } 801082b1: 90 nop 801082b2: c9 leave 801082b3: c3 ret 801082b4 <switchuvm>: // Switch TSS and h/w page table to correspond to process p. void switchuvm(struct proc *p) { 801082b4: 55 push %ebp 801082b5: 89 e5 mov %esp,%ebp 801082b7: 56 push %esi 801082b8: 53 push %ebx pushcli(); 801082b9: e8 6a d3 ff ff call 80105628 <pushcli> cpu->gdt[SEG_TSS] = SEG16(STS_T32A, &cpu->ts, sizeof(cpu->ts)-1, 0); 801082be: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801082c4: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 801082cb: 83 c2 08 add $0x8,%edx 801082ce: 89 d6 mov %edx,%esi 801082d0: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 801082d7: 83 c2 08 add $0x8,%edx 801082da: c1 ea 10 shr $0x10,%edx 801082dd: 89 d3 mov %edx,%ebx 801082df: 65 8b 15 00 00 00 00 mov %gs:0x0,%edx 801082e6: 83 c2 08 add $0x8,%edx 801082e9: c1 ea 18 shr $0x18,%edx 801082ec: 89 d1 mov %edx,%ecx 801082ee: 66 c7 80 a0 00 00 00 movw $0x67,0xa0(%eax) 801082f5: 67 00 801082f7: 66 89 b0 a2 00 00 00 mov %si,0xa2(%eax) 801082fe: 88 98 a4 00 00 00 mov %bl,0xa4(%eax) 80108304: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 8010830b: 83 e2 f0 and $0xfffffff0,%edx 8010830e: 83 ca 09 or $0x9,%edx 80108311: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 80108317: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 8010831e: 83 ca 10 or $0x10,%edx 80108321: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 80108327: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 8010832e: 83 e2 9f and $0xffffff9f,%edx 80108331: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 80108337: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 8010833e: 83 ca 80 or $0xffffff80,%edx 80108341: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) 80108347: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 8010834e: 83 e2 f0 and $0xfffffff0,%edx 80108351: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 80108357: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 8010835e: 83 e2 ef and $0xffffffef,%edx 80108361: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 80108367: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 8010836e: 83 e2 df and $0xffffffdf,%edx 80108371: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 80108377: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 8010837e: 83 ca 40 or $0x40,%edx 80108381: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 80108387: 0f b6 90 a6 00 00 00 movzbl 0xa6(%eax),%edx 8010838e: 83 e2 7f and $0x7f,%edx 80108391: 88 90 a6 00 00 00 mov %dl,0xa6(%eax) 80108397: 88 88 a7 00 00 00 mov %cl,0xa7(%eax) cpu->gdt[SEG_TSS].s = 0; 8010839d: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801083a3: 0f b6 90 a5 00 00 00 movzbl 0xa5(%eax),%edx 801083aa: 83 e2 ef and $0xffffffef,%edx 801083ad: 88 90 a5 00 00 00 mov %dl,0xa5(%eax) cpu->ts.ss0 = SEG_KDATA << 3; 801083b3: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801083b9: 66 c7 40 10 10 00 movw $0x10,0x10(%eax) cpu->ts.esp0 = (uint)proc->kstack + KSTACKSIZE; 801083bf: 65 a1 00 00 00 00 mov %gs:0x0,%eax 801083c5: 65 8b 15 04 00 00 00 mov %gs:0x4,%edx 801083cc: 8b 52 08 mov 0x8(%edx),%edx 801083cf: 81 c2 00 10 00 00 add $0x1000,%edx 801083d5: 89 50 0c mov %edx,0xc(%eax) ltr(SEG_TSS << 3); 801083d8: 83 ec 0c sub $0xc,%esp 801083db: 6a 30 push $0x30 801083dd: e8 f3 f7 ff ff call 80107bd5 <ltr> 801083e2: 83 c4 10 add $0x10,%esp if(p->pgdir == 0) 801083e5: 8b 45 08 mov 0x8(%ebp),%eax 801083e8: 8b 40 04 mov 0x4(%eax),%eax 801083eb: 85 c0 test %eax,%eax 801083ed: 75 0d jne 801083fc <switchuvm+0x148> panic("switchuvm: no pgdir"); 801083ef: 83 ec 0c sub $0xc,%esp 801083f2: 68 8f 90 10 80 push $0x8010908f 801083f7: e8 6a 81 ff ff call 80100566 <panic> lcr3(v2p(p->pgdir)); // switch to new address space 801083fc: 8b 45 08 mov 0x8(%ebp),%eax 801083ff: 8b 40 04 mov 0x4(%eax),%eax 80108402: 83 ec 0c sub $0xc,%esp 80108405: 50 push %eax 80108406: e8 03 f8 ff ff call 80107c0e <v2p> 8010840b: 83 c4 10 add $0x10,%esp 8010840e: 83 ec 0c sub $0xc,%esp 80108411: 50 push %eax 80108412: e8 eb f7 ff ff call 80107c02 <lcr3> 80108417: 83 c4 10 add $0x10,%esp popcli(); 8010841a: e8 4e d2 ff ff call 8010566d <popcli> } 8010841f: 90 nop 80108420: 8d 65 f8 lea -0x8(%ebp),%esp 80108423: 5b pop %ebx 80108424: 5e pop %esi 80108425: 5d pop %ebp 80108426: c3 ret 80108427 <inituvm>: // Load the initcode into address 0 of pgdir. // sz must be less than a page. void inituvm(pde_t *pgdir, char *init, uint sz) { 80108427: 55 push %ebp 80108428: 89 e5 mov %esp,%ebp 8010842a: 83 ec 18 sub $0x18,%esp char *mem; if(sz >= PGSIZE) 8010842d: 81 7d 10 ff 0f 00 00 cmpl $0xfff,0x10(%ebp) 80108434: 76 0d jbe 80108443 <inituvm+0x1c> panic("inituvm: more than a page"); 80108436: 83 ec 0c sub $0xc,%esp 80108439: 68 a3 90 10 80 push $0x801090a3 8010843e: e8 23 81 ff ff call 80100566 <panic> mem = kalloc(); 80108443: e8 1e a8 ff ff call 80102c66 <kalloc> 80108448: 89 45 f4 mov %eax,-0xc(%ebp) memset(mem, 0, PGSIZE); 8010844b: 83 ec 04 sub $0x4,%esp 8010844e: 68 00 10 00 00 push $0x1000 80108453: 6a 00 push $0x0 80108455: ff 75 f4 pushl -0xc(%ebp) 80108458: e8 d1 d2 ff ff call 8010572e <memset> 8010845d: 83 c4 10 add $0x10,%esp mappages(pgdir, 0, PGSIZE, v2p(mem), PTE_W|PTE_U); 80108460: 83 ec 0c sub $0xc,%esp 80108463: ff 75 f4 pushl -0xc(%ebp) 80108466: e8 a3 f7 ff ff call 80107c0e <v2p> 8010846b: 83 c4 10 add $0x10,%esp 8010846e: 83 ec 0c sub $0xc,%esp 80108471: 6a 06 push $0x6 80108473: 50 push %eax 80108474: 68 00 10 00 00 push $0x1000 80108479: 6a 00 push $0x0 8010847b: ff 75 08 pushl 0x8(%ebp) 8010847e: e8 ba fc ff ff call 8010813d <mappages> 80108483: 83 c4 20 add $0x20,%esp memmove(mem, init, sz); 80108486: 83 ec 04 sub $0x4,%esp 80108489: ff 75 10 pushl 0x10(%ebp) 8010848c: ff 75 0c pushl 0xc(%ebp) 8010848f: ff 75 f4 pushl -0xc(%ebp) 80108492: e8 56 d3 ff ff call 801057ed <memmove> 80108497: 83 c4 10 add $0x10,%esp } 8010849a: 90 nop 8010849b: c9 leave 8010849c: c3 ret 8010849d <loaduvm>: // Load a program segment into pgdir. addr must be page-aligned // and the pages from addr to addr+sz must already be mapped. int loaduvm(pde_t *pgdir, char *addr, struct inode *ip, uint offset, uint sz) { 8010849d: 55 push %ebp 8010849e: 89 e5 mov %esp,%ebp 801084a0: 53 push %ebx 801084a1: 83 ec 14 sub $0x14,%esp uint i, pa, n; pte_t *pte; if((uint) addr % PGSIZE != 0) 801084a4: 8b 45 0c mov 0xc(%ebp),%eax 801084a7: 25 ff 0f 00 00 and $0xfff,%eax 801084ac: 85 c0 test %eax,%eax 801084ae: 74 0d je 801084bd <loaduvm+0x20> panic("loaduvm: addr must be page aligned"); 801084b0: 83 ec 0c sub $0xc,%esp 801084b3: 68 c0 90 10 80 push $0x801090c0 801084b8: e8 a9 80 ff ff call 80100566 <panic> for(i = 0; i < sz; i += PGSIZE){ 801084bd: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 801084c4: e9 95 00 00 00 jmp 8010855e <loaduvm+0xc1> if((pte = walkpgdir(pgdir, addr+i, 0)) == 0) 801084c9: 8b 55 0c mov 0xc(%ebp),%edx 801084cc: 8b 45 f4 mov -0xc(%ebp),%eax 801084cf: 01 d0 add %edx,%eax 801084d1: 83 ec 04 sub $0x4,%esp 801084d4: 6a 00 push $0x0 801084d6: 50 push %eax 801084d7: ff 75 08 pushl 0x8(%ebp) 801084da: e8 be fb ff ff call 8010809d <walkpgdir> 801084df: 83 c4 10 add $0x10,%esp 801084e2: 89 45 ec mov %eax,-0x14(%ebp) 801084e5: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 801084e9: 75 0d jne 801084f8 <loaduvm+0x5b> panic("loaduvm: address should exist"); 801084eb: 83 ec 0c sub $0xc,%esp 801084ee: 68 e3 90 10 80 push $0x801090e3 801084f3: e8 6e 80 ff ff call 80100566 <panic> pa = PTE_ADDR(*pte); 801084f8: 8b 45 ec mov -0x14(%ebp),%eax 801084fb: 8b 00 mov (%eax),%eax 801084fd: 25 00 f0 ff ff and $0xfffff000,%eax 80108502: 89 45 e8 mov %eax,-0x18(%ebp) if(sz - i < PGSIZE) 80108505: 8b 45 18 mov 0x18(%ebp),%eax 80108508: 2b 45 f4 sub -0xc(%ebp),%eax 8010850b: 3d ff 0f 00 00 cmp $0xfff,%eax 80108510: 77 0b ja 8010851d <loaduvm+0x80> n = sz - i; 80108512: 8b 45 18 mov 0x18(%ebp),%eax 80108515: 2b 45 f4 sub -0xc(%ebp),%eax 80108518: 89 45 f0 mov %eax,-0x10(%ebp) 8010851b: eb 07 jmp 80108524 <loaduvm+0x87> else n = PGSIZE; 8010851d: c7 45 f0 00 10 00 00 movl $0x1000,-0x10(%ebp) if(readi(ip, p2v(pa), offset+i, n) != n) 80108524: 8b 55 14 mov 0x14(%ebp),%edx 80108527: 8b 45 f4 mov -0xc(%ebp),%eax 8010852a: 8d 1c 02 lea (%edx,%eax,1),%ebx 8010852d: 83 ec 0c sub $0xc,%esp 80108530: ff 75 e8 pushl -0x18(%ebp) 80108533: e8 e3 f6 ff ff call 80107c1b <p2v> 80108538: 83 c4 10 add $0x10,%esp 8010853b: ff 75 f0 pushl -0x10(%ebp) 8010853e: 53 push %ebx 8010853f: 50 push %eax 80108540: ff 75 10 pushl 0x10(%ebp) 80108543: e8 90 99 ff ff call 80101ed8 <readi> 80108548: 83 c4 10 add $0x10,%esp 8010854b: 3b 45 f0 cmp -0x10(%ebp),%eax 8010854e: 74 07 je 80108557 <loaduvm+0xba> return -1; 80108550: b8 ff ff ff ff mov $0xffffffff,%eax 80108555: eb 18 jmp 8010856f <loaduvm+0xd2> uint i, pa, n; pte_t *pte; if((uint) addr % PGSIZE != 0) panic("loaduvm: addr must be page aligned"); for(i = 0; i < sz; i += PGSIZE){ 80108557: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 8010855e: 8b 45 f4 mov -0xc(%ebp),%eax 80108561: 3b 45 18 cmp 0x18(%ebp),%eax 80108564: 0f 82 5f ff ff ff jb 801084c9 <loaduvm+0x2c> else n = PGSIZE; if(readi(ip, p2v(pa), offset+i, n) != n) return -1; } return 0; 8010856a: b8 00 00 00 00 mov $0x0,%eax } 8010856f: 8b 5d fc mov -0x4(%ebp),%ebx 80108572: c9 leave 80108573: c3 ret 80108574 <allocuvm>: // Allocate page tables and physical memory to grow process from oldsz to // newsz, which need not be page aligned. Returns new size or 0 on error. int allocuvm(pde_t *pgdir, uint oldsz, uint newsz) { 80108574: 55 push %ebp 80108575: 89 e5 mov %esp,%ebp 80108577: 83 ec 18 sub $0x18,%esp char *mem; uint a; if(newsz >= KERNBASE) 8010857a: 8b 45 10 mov 0x10(%ebp),%eax 8010857d: 85 c0 test %eax,%eax 8010857f: 79 0a jns 8010858b <allocuvm+0x17> return 0; 80108581: b8 00 00 00 00 mov $0x0,%eax 80108586: e9 b0 00 00 00 jmp 8010863b <allocuvm+0xc7> if(newsz < oldsz) 8010858b: 8b 45 10 mov 0x10(%ebp),%eax 8010858e: 3b 45 0c cmp 0xc(%ebp),%eax 80108591: 73 08 jae 8010859b <allocuvm+0x27> return oldsz; 80108593: 8b 45 0c mov 0xc(%ebp),%eax 80108596: e9 a0 00 00 00 jmp 8010863b <allocuvm+0xc7> a = PGROUNDUP(oldsz); 8010859b: 8b 45 0c mov 0xc(%ebp),%eax 8010859e: 05 ff 0f 00 00 add $0xfff,%eax 801085a3: 25 00 f0 ff ff and $0xfffff000,%eax 801085a8: 89 45 f4 mov %eax,-0xc(%ebp) for(; a < newsz; a += PGSIZE){ 801085ab: eb 7f jmp 8010862c <allocuvm+0xb8> mem = kalloc(); 801085ad: e8 b4 a6 ff ff call 80102c66 <kalloc> 801085b2: 89 45 f0 mov %eax,-0x10(%ebp) if(mem == 0){ 801085b5: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801085b9: 75 2b jne 801085e6 <allocuvm+0x72> cprintf("allocuvm out of memory\n"); 801085bb: 83 ec 0c sub $0xc,%esp 801085be: 68 01 91 10 80 push $0x80109101 801085c3: e8 fe 7d ff ff call 801003c6 <cprintf> 801085c8: 83 c4 10 add $0x10,%esp deallocuvm(pgdir, newsz, oldsz); 801085cb: 83 ec 04 sub $0x4,%esp 801085ce: ff 75 0c pushl 0xc(%ebp) 801085d1: ff 75 10 pushl 0x10(%ebp) 801085d4: ff 75 08 pushl 0x8(%ebp) 801085d7: e8 61 00 00 00 call 8010863d <deallocuvm> 801085dc: 83 c4 10 add $0x10,%esp return 0; 801085df: b8 00 00 00 00 mov $0x0,%eax 801085e4: eb 55 jmp 8010863b <allocuvm+0xc7> } memset(mem, 0, PGSIZE); 801085e6: 83 ec 04 sub $0x4,%esp 801085e9: 68 00 10 00 00 push $0x1000 801085ee: 6a 00 push $0x0 801085f0: ff 75 f0 pushl -0x10(%ebp) 801085f3: e8 36 d1 ff ff call 8010572e <memset> 801085f8: 83 c4 10 add $0x10,%esp mappages(pgdir, (char*)a, PGSIZE, v2p(mem), PTE_W|PTE_U); 801085fb: 83 ec 0c sub $0xc,%esp 801085fe: ff 75 f0 pushl -0x10(%ebp) 80108601: e8 08 f6 ff ff call 80107c0e <v2p> 80108606: 83 c4 10 add $0x10,%esp 80108609: 89 c2 mov %eax,%edx 8010860b: 8b 45 f4 mov -0xc(%ebp),%eax 8010860e: 83 ec 0c sub $0xc,%esp 80108611: 6a 06 push $0x6 80108613: 52 push %edx 80108614: 68 00 10 00 00 push $0x1000 80108619: 50 push %eax 8010861a: ff 75 08 pushl 0x8(%ebp) 8010861d: e8 1b fb ff ff call 8010813d <mappages> 80108622: 83 c4 20 add $0x20,%esp return 0; if(newsz < oldsz) return oldsz; a = PGROUNDUP(oldsz); for(; a < newsz; a += PGSIZE){ 80108625: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 8010862c: 8b 45 f4 mov -0xc(%ebp),%eax 8010862f: 3b 45 10 cmp 0x10(%ebp),%eax 80108632: 0f 82 75 ff ff ff jb 801085ad <allocuvm+0x39> return 0; } memset(mem, 0, PGSIZE); mappages(pgdir, (char*)a, PGSIZE, v2p(mem), PTE_W|PTE_U); } return newsz; 80108638: 8b 45 10 mov 0x10(%ebp),%eax } 8010863b: c9 leave 8010863c: c3 ret 8010863d <deallocuvm>: // newsz. oldsz and newsz need not be page-aligned, nor does newsz // need to be less than oldsz. oldsz can be larger than the actual // process size. Returns the new process size. int deallocuvm(pde_t *pgdir, uint oldsz, uint newsz) { 8010863d: 55 push %ebp 8010863e: 89 e5 mov %esp,%ebp 80108640: 83 ec 18 sub $0x18,%esp pte_t *pte; uint a, pa; if(newsz >= oldsz) 80108643: 8b 45 10 mov 0x10(%ebp),%eax 80108646: 3b 45 0c cmp 0xc(%ebp),%eax 80108649: 72 08 jb 80108653 <deallocuvm+0x16> return oldsz; 8010864b: 8b 45 0c mov 0xc(%ebp),%eax 8010864e: e9 a5 00 00 00 jmp 801086f8 <deallocuvm+0xbb> a = PGROUNDUP(newsz); 80108653: 8b 45 10 mov 0x10(%ebp),%eax 80108656: 05 ff 0f 00 00 add $0xfff,%eax 8010865b: 25 00 f0 ff ff and $0xfffff000,%eax 80108660: 89 45 f4 mov %eax,-0xc(%ebp) for(; a < oldsz; a += PGSIZE){ 80108663: e9 81 00 00 00 jmp 801086e9 <deallocuvm+0xac> pte = walkpgdir(pgdir, (char*)a, 0); 80108668: 8b 45 f4 mov -0xc(%ebp),%eax 8010866b: 83 ec 04 sub $0x4,%esp 8010866e: 6a 00 push $0x0 80108670: 50 push %eax 80108671: ff 75 08 pushl 0x8(%ebp) 80108674: e8 24 fa ff ff call 8010809d <walkpgdir> 80108679: 83 c4 10 add $0x10,%esp 8010867c: 89 45 f0 mov %eax,-0x10(%ebp) if(!pte) 8010867f: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 80108683: 75 09 jne 8010868e <deallocuvm+0x51> a += (NPTENTRIES - 1) * PGSIZE; 80108685: 81 45 f4 00 f0 3f 00 addl $0x3ff000,-0xc(%ebp) 8010868c: eb 54 jmp 801086e2 <deallocuvm+0xa5> else if((*pte & PTE_P) != 0){ 8010868e: 8b 45 f0 mov -0x10(%ebp),%eax 80108691: 8b 00 mov (%eax),%eax 80108693: 83 e0 01 and $0x1,%eax 80108696: 85 c0 test %eax,%eax 80108698: 74 48 je 801086e2 <deallocuvm+0xa5> pa = PTE_ADDR(*pte); 8010869a: 8b 45 f0 mov -0x10(%ebp),%eax 8010869d: 8b 00 mov (%eax),%eax 8010869f: 25 00 f0 ff ff and $0xfffff000,%eax 801086a4: 89 45 ec mov %eax,-0x14(%ebp) if(pa == 0) 801086a7: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 801086ab: 75 0d jne 801086ba <deallocuvm+0x7d> panic("kfree"); 801086ad: 83 ec 0c sub $0xc,%esp 801086b0: 68 19 91 10 80 push $0x80109119 801086b5: e8 ac 7e ff ff call 80100566 <panic> char *v = p2v(pa); 801086ba: 83 ec 0c sub $0xc,%esp 801086bd: ff 75 ec pushl -0x14(%ebp) 801086c0: e8 56 f5 ff ff call 80107c1b <p2v> 801086c5: 83 c4 10 add $0x10,%esp 801086c8: 89 45 e8 mov %eax,-0x18(%ebp) kfree(v); 801086cb: 83 ec 0c sub $0xc,%esp 801086ce: ff 75 e8 pushl -0x18(%ebp) 801086d1: e8 f3 a4 ff ff call 80102bc9 <kfree> 801086d6: 83 c4 10 add $0x10,%esp *pte = 0; 801086d9: 8b 45 f0 mov -0x10(%ebp),%eax 801086dc: c7 00 00 00 00 00 movl $0x0,(%eax) if(newsz >= oldsz) return oldsz; a = PGROUNDUP(newsz); for(; a < oldsz; a += PGSIZE){ 801086e2: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 801086e9: 8b 45 f4 mov -0xc(%ebp),%eax 801086ec: 3b 45 0c cmp 0xc(%ebp),%eax 801086ef: 0f 82 73 ff ff ff jb 80108668 <deallocuvm+0x2b> char *v = p2v(pa); kfree(v); *pte = 0; } } return newsz; 801086f5: 8b 45 10 mov 0x10(%ebp),%eax } 801086f8: c9 leave 801086f9: c3 ret 801086fa <freevm>: // Free a page table and all the physical memory pages // in the user part. void freevm(pde_t *pgdir) { 801086fa: 55 push %ebp 801086fb: 89 e5 mov %esp,%ebp 801086fd: 83 ec 18 sub $0x18,%esp uint i; if(pgdir == 0) 80108700: 83 7d 08 00 cmpl $0x0,0x8(%ebp) 80108704: 75 0d jne 80108713 <freevm+0x19> panic("freevm: no pgdir"); 80108706: 83 ec 0c sub $0xc,%esp 80108709: 68 1f 91 10 80 push $0x8010911f 8010870e: e8 53 7e ff ff call 80100566 <panic> deallocuvm(pgdir, KERNBASE, 0); 80108713: 83 ec 04 sub $0x4,%esp 80108716: 6a 00 push $0x0 80108718: 68 00 00 00 80 push $0x80000000 8010871d: ff 75 08 pushl 0x8(%ebp) 80108720: e8 18 ff ff ff call 8010863d <deallocuvm> 80108725: 83 c4 10 add $0x10,%esp for(i = 0; i < NPDENTRIES; i++){ 80108728: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 8010872f: eb 4f jmp 80108780 <freevm+0x86> if(pgdir[i] & PTE_P){ 80108731: 8b 45 f4 mov -0xc(%ebp),%eax 80108734: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 8010873b: 8b 45 08 mov 0x8(%ebp),%eax 8010873e: 01 d0 add %edx,%eax 80108740: 8b 00 mov (%eax),%eax 80108742: 83 e0 01 and $0x1,%eax 80108745: 85 c0 test %eax,%eax 80108747: 74 33 je 8010877c <freevm+0x82> char * v = p2v(PTE_ADDR(pgdir[i])); 80108749: 8b 45 f4 mov -0xc(%ebp),%eax 8010874c: 8d 14 85 00 00 00 00 lea 0x0(,%eax,4),%edx 80108753: 8b 45 08 mov 0x8(%ebp),%eax 80108756: 01 d0 add %edx,%eax 80108758: 8b 00 mov (%eax),%eax 8010875a: 25 00 f0 ff ff and $0xfffff000,%eax 8010875f: 83 ec 0c sub $0xc,%esp 80108762: 50 push %eax 80108763: e8 b3 f4 ff ff call 80107c1b <p2v> 80108768: 83 c4 10 add $0x10,%esp 8010876b: 89 45 f0 mov %eax,-0x10(%ebp) kfree(v); 8010876e: 83 ec 0c sub $0xc,%esp 80108771: ff 75 f0 pushl -0x10(%ebp) 80108774: e8 50 a4 ff ff call 80102bc9 <kfree> 80108779: 83 c4 10 add $0x10,%esp uint i; if(pgdir == 0) panic("freevm: no pgdir"); deallocuvm(pgdir, KERNBASE, 0); for(i = 0; i < NPDENTRIES; i++){ 8010877c: 83 45 f4 01 addl $0x1,-0xc(%ebp) 80108780: 81 7d f4 ff 03 00 00 cmpl $0x3ff,-0xc(%ebp) 80108787: 76 a8 jbe 80108731 <freevm+0x37> if(pgdir[i] & PTE_P){ char * v = p2v(PTE_ADDR(pgdir[i])); kfree(v); } } kfree((char*)pgdir); 80108789: 83 ec 0c sub $0xc,%esp 8010878c: ff 75 08 pushl 0x8(%ebp) 8010878f: e8 35 a4 ff ff call 80102bc9 <kfree> 80108794: 83 c4 10 add $0x10,%esp } 80108797: 90 nop 80108798: c9 leave 80108799: c3 ret 8010879a <clearpteu>: // Clear PTE_U on a page. Used to create an inaccessible // page beneath the user stack. void clearpteu(pde_t *pgdir, char *uva) { 8010879a: 55 push %ebp 8010879b: 89 e5 mov %esp,%ebp 8010879d: 83 ec 18 sub $0x18,%esp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 801087a0: 83 ec 04 sub $0x4,%esp 801087a3: 6a 00 push $0x0 801087a5: ff 75 0c pushl 0xc(%ebp) 801087a8: ff 75 08 pushl 0x8(%ebp) 801087ab: e8 ed f8 ff ff call 8010809d <walkpgdir> 801087b0: 83 c4 10 add $0x10,%esp 801087b3: 89 45 f4 mov %eax,-0xc(%ebp) if(pte == 0) 801087b6: 83 7d f4 00 cmpl $0x0,-0xc(%ebp) 801087ba: 75 0d jne 801087c9 <clearpteu+0x2f> panic("clearpteu"); 801087bc: 83 ec 0c sub $0xc,%esp 801087bf: 68 30 91 10 80 push $0x80109130 801087c4: e8 9d 7d ff ff call 80100566 <panic> *pte &= ~PTE_U; 801087c9: 8b 45 f4 mov -0xc(%ebp),%eax 801087cc: 8b 00 mov (%eax),%eax 801087ce: 83 e0 fb and $0xfffffffb,%eax 801087d1: 89 c2 mov %eax,%edx 801087d3: 8b 45 f4 mov -0xc(%ebp),%eax 801087d6: 89 10 mov %edx,(%eax) } 801087d8: 90 nop 801087d9: c9 leave 801087da: c3 ret 801087db <copyuvm>: // Given a parent process's page table, create a copy // of it for a child. pde_t* copyuvm(pde_t *pgdir, uint sz) { 801087db: 55 push %ebp 801087dc: 89 e5 mov %esp,%ebp 801087de: 53 push %ebx 801087df: 83 ec 24 sub $0x24,%esp pde_t *d; pte_t *pte; uint pa, i, flags; char *mem; if((d = setupkvm()) == 0) 801087e2: e8 e6 f9 ff ff call 801081cd <setupkvm> 801087e7: 89 45 f0 mov %eax,-0x10(%ebp) 801087ea: 83 7d f0 00 cmpl $0x0,-0x10(%ebp) 801087ee: 75 0a jne 801087fa <copyuvm+0x1f> return 0; 801087f0: b8 00 00 00 00 mov $0x0,%eax 801087f5: e9 f8 00 00 00 jmp 801088f2 <copyuvm+0x117> for(i = 0; i < sz; i += PGSIZE){ 801087fa: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp) 80108801: e9 c4 00 00 00 jmp 801088ca <copyuvm+0xef> if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0) 80108806: 8b 45 f4 mov -0xc(%ebp),%eax 80108809: 83 ec 04 sub $0x4,%esp 8010880c: 6a 00 push $0x0 8010880e: 50 push %eax 8010880f: ff 75 08 pushl 0x8(%ebp) 80108812: e8 86 f8 ff ff call 8010809d <walkpgdir> 80108817: 83 c4 10 add $0x10,%esp 8010881a: 89 45 ec mov %eax,-0x14(%ebp) 8010881d: 83 7d ec 00 cmpl $0x0,-0x14(%ebp) 80108821: 75 0d jne 80108830 <copyuvm+0x55> panic("copyuvm: pte should exist"); 80108823: 83 ec 0c sub $0xc,%esp 80108826: 68 3a 91 10 80 push $0x8010913a 8010882b: e8 36 7d ff ff call 80100566 <panic> if(!(*pte & PTE_P)) 80108830: 8b 45 ec mov -0x14(%ebp),%eax 80108833: 8b 00 mov (%eax),%eax 80108835: 83 e0 01 and $0x1,%eax 80108838: 85 c0 test %eax,%eax 8010883a: 75 0d jne 80108849 <copyuvm+0x6e> panic("copyuvm: page not present"); 8010883c: 83 ec 0c sub $0xc,%esp 8010883f: 68 54 91 10 80 push $0x80109154 80108844: e8 1d 7d ff ff call 80100566 <panic> pa = PTE_ADDR(*pte); 80108849: 8b 45 ec mov -0x14(%ebp),%eax 8010884c: 8b 00 mov (%eax),%eax 8010884e: 25 00 f0 ff ff and $0xfffff000,%eax 80108853: 89 45 e8 mov %eax,-0x18(%ebp) flags = PTE_FLAGS(*pte); 80108856: 8b 45 ec mov -0x14(%ebp),%eax 80108859: 8b 00 mov (%eax),%eax 8010885b: 25 ff 0f 00 00 and $0xfff,%eax 80108860: 89 45 e4 mov %eax,-0x1c(%ebp) if((mem = kalloc()) == 0) 80108863: e8 fe a3 ff ff call 80102c66 <kalloc> 80108868: 89 45 e0 mov %eax,-0x20(%ebp) 8010886b: 83 7d e0 00 cmpl $0x0,-0x20(%ebp) 8010886f: 74 6a je 801088db <copyuvm+0x100> goto bad; memmove(mem, (char*)p2v(pa), PGSIZE); 80108871: 83 ec 0c sub $0xc,%esp 80108874: ff 75 e8 pushl -0x18(%ebp) 80108877: e8 9f f3 ff ff call 80107c1b <p2v> 8010887c: 83 c4 10 add $0x10,%esp 8010887f: 83 ec 04 sub $0x4,%esp 80108882: 68 00 10 00 00 push $0x1000 80108887: 50 push %eax 80108888: ff 75 e0 pushl -0x20(%ebp) 8010888b: e8 5d cf ff ff call 801057ed <memmove> 80108890: 83 c4 10 add $0x10,%esp if(mappages(d, (void*)i, PGSIZE, v2p(mem), flags) < 0) 80108893: 8b 5d e4 mov -0x1c(%ebp),%ebx 80108896: 83 ec 0c sub $0xc,%esp 80108899: ff 75 e0 pushl -0x20(%ebp) 8010889c: e8 6d f3 ff ff call 80107c0e <v2p> 801088a1: 83 c4 10 add $0x10,%esp 801088a4: 89 c2 mov %eax,%edx 801088a6: 8b 45 f4 mov -0xc(%ebp),%eax 801088a9: 83 ec 0c sub $0xc,%esp 801088ac: 53 push %ebx 801088ad: 52 push %edx 801088ae: 68 00 10 00 00 push $0x1000 801088b3: 50 push %eax 801088b4: ff 75 f0 pushl -0x10(%ebp) 801088b7: e8 81 f8 ff ff call 8010813d <mappages> 801088bc: 83 c4 20 add $0x20,%esp 801088bf: 85 c0 test %eax,%eax 801088c1: 78 1b js 801088de <copyuvm+0x103> uint pa, i, flags; char *mem; if((d = setupkvm()) == 0) return 0; for(i = 0; i < sz; i += PGSIZE){ 801088c3: 81 45 f4 00 10 00 00 addl $0x1000,-0xc(%ebp) 801088ca: 8b 45 f4 mov -0xc(%ebp),%eax 801088cd: 3b 45 0c cmp 0xc(%ebp),%eax 801088d0: 0f 82 30 ff ff ff jb 80108806 <copyuvm+0x2b> goto bad; memmove(mem, (char*)p2v(pa), PGSIZE); if(mappages(d, (void*)i, PGSIZE, v2p(mem), flags) < 0) goto bad; } return d; 801088d6: 8b 45 f0 mov -0x10(%ebp),%eax 801088d9: eb 17 jmp 801088f2 <copyuvm+0x117> if(!(*pte & PTE_P)) panic("copyuvm: page not present"); pa = PTE_ADDR(*pte); flags = PTE_FLAGS(*pte); if((mem = kalloc()) == 0) goto bad; 801088db: 90 nop 801088dc: eb 01 jmp 801088df <copyuvm+0x104> memmove(mem, (char*)p2v(pa), PGSIZE); if(mappages(d, (void*)i, PGSIZE, v2p(mem), flags) < 0) goto bad; 801088de: 90 nop } return d; bad: freevm(d); 801088df: 83 ec 0c sub $0xc,%esp 801088e2: ff 75 f0 pushl -0x10(%ebp) 801088e5: e8 10 fe ff ff call 801086fa <freevm> 801088ea: 83 c4 10 add $0x10,%esp return 0; 801088ed: b8 00 00 00 00 mov $0x0,%eax } 801088f2: 8b 5d fc mov -0x4(%ebp),%ebx 801088f5: c9 leave 801088f6: c3 ret 801088f7 <uva2ka>: //PAGEBREAK! // Map user virtual address to kernel address. char* uva2ka(pde_t *pgdir, char *uva) { 801088f7: 55 push %ebp 801088f8: 89 e5 mov %esp,%ebp 801088fa: 83 ec 18 sub $0x18,%esp pte_t *pte; pte = walkpgdir(pgdir, uva, 0); 801088fd: 83 ec 04 sub $0x4,%esp 80108900: 6a 00 push $0x0 80108902: ff 75 0c pushl 0xc(%ebp) 80108905: ff 75 08 pushl 0x8(%ebp) 80108908: e8 90 f7 ff ff call 8010809d <walkpgdir> 8010890d: 83 c4 10 add $0x10,%esp 80108910: 89 45 f4 mov %eax,-0xc(%ebp) if((*pte & PTE_P) == 0) 80108913: 8b 45 f4 mov -0xc(%ebp),%eax 80108916: 8b 00 mov (%eax),%eax 80108918: 83 e0 01 and $0x1,%eax 8010891b: 85 c0 test %eax,%eax 8010891d: 75 07 jne 80108926 <uva2ka+0x2f> return 0; 8010891f: b8 00 00 00 00 mov $0x0,%eax 80108924: eb 29 jmp 8010894f <uva2ka+0x58> if((*pte & PTE_U) == 0) 80108926: 8b 45 f4 mov -0xc(%ebp),%eax 80108929: 8b 00 mov (%eax),%eax 8010892b: 83 e0 04 and $0x4,%eax 8010892e: 85 c0 test %eax,%eax 80108930: 75 07 jne 80108939 <uva2ka+0x42> return 0; 80108932: b8 00 00 00 00 mov $0x0,%eax 80108937: eb 16 jmp 8010894f <uva2ka+0x58> return (char*)p2v(PTE_ADDR(*pte)); 80108939: 8b 45 f4 mov -0xc(%ebp),%eax 8010893c: 8b 00 mov (%eax),%eax 8010893e: 25 00 f0 ff ff and $0xfffff000,%eax 80108943: 83 ec 0c sub $0xc,%esp 80108946: 50 push %eax 80108947: e8 cf f2 ff ff call 80107c1b <p2v> 8010894c: 83 c4 10 add $0x10,%esp } 8010894f: c9 leave 80108950: c3 ret 80108951 <copyout>: // Copy len bytes from p to user address va in page table pgdir. // Most useful when pgdir is not the current page table. // uva2ka ensures this only works for PTE_U pages. int copyout(pde_t *pgdir, uint va, void *p, uint len) { 80108951: 55 push %ebp 80108952: 89 e5 mov %esp,%ebp 80108954: 83 ec 18 sub $0x18,%esp char *buf, *pa0; uint n, va0; buf = (char*)p; 80108957: 8b 45 10 mov 0x10(%ebp),%eax 8010895a: 89 45 f4 mov %eax,-0xc(%ebp) while(len > 0){ 8010895d: eb 7f jmp 801089de <copyout+0x8d> va0 = (uint)PGROUNDDOWN(va); 8010895f: 8b 45 0c mov 0xc(%ebp),%eax 80108962: 25 00 f0 ff ff and $0xfffff000,%eax 80108967: 89 45 ec mov %eax,-0x14(%ebp) pa0 = uva2ka(pgdir, (char*)va0); 8010896a: 8b 45 ec mov -0x14(%ebp),%eax 8010896d: 83 ec 08 sub $0x8,%esp 80108970: 50 push %eax 80108971: ff 75 08 pushl 0x8(%ebp) 80108974: e8 7e ff ff ff call 801088f7 <uva2ka> 80108979: 83 c4 10 add $0x10,%esp 8010897c: 89 45 e8 mov %eax,-0x18(%ebp) if(pa0 == 0) 8010897f: 83 7d e8 00 cmpl $0x0,-0x18(%ebp) 80108983: 75 07 jne 8010898c <copyout+0x3b> return -1; 80108985: b8 ff ff ff ff mov $0xffffffff,%eax 8010898a: eb 61 jmp 801089ed <copyout+0x9c> n = PGSIZE - (va - va0); 8010898c: 8b 45 ec mov -0x14(%ebp),%eax 8010898f: 2b 45 0c sub 0xc(%ebp),%eax 80108992: 05 00 10 00 00 add $0x1000,%eax 80108997: 89 45 f0 mov %eax,-0x10(%ebp) if(n > len) 8010899a: 8b 45 f0 mov -0x10(%ebp),%eax 8010899d: 3b 45 14 cmp 0x14(%ebp),%eax 801089a0: 76 06 jbe 801089a8 <copyout+0x57> n = len; 801089a2: 8b 45 14 mov 0x14(%ebp),%eax 801089a5: 89 45 f0 mov %eax,-0x10(%ebp) memmove(pa0 + (va - va0), buf, n); 801089a8: 8b 45 0c mov 0xc(%ebp),%eax 801089ab: 2b 45 ec sub -0x14(%ebp),%eax 801089ae: 89 c2 mov %eax,%edx 801089b0: 8b 45 e8 mov -0x18(%ebp),%eax 801089b3: 01 d0 add %edx,%eax 801089b5: 83 ec 04 sub $0x4,%esp 801089b8: ff 75 f0 pushl -0x10(%ebp) 801089bb: ff 75 f4 pushl -0xc(%ebp) 801089be: 50 push %eax 801089bf: e8 29 ce ff ff call 801057ed <memmove> 801089c4: 83 c4 10 add $0x10,%esp len -= n; 801089c7: 8b 45 f0 mov -0x10(%ebp),%eax 801089ca: 29 45 14 sub %eax,0x14(%ebp) buf += n; 801089cd: 8b 45 f0 mov -0x10(%ebp),%eax 801089d0: 01 45 f4 add %eax,-0xc(%ebp) va = va0 + PGSIZE; 801089d3: 8b 45 ec mov -0x14(%ebp),%eax 801089d6: 05 00 10 00 00 add $0x1000,%eax 801089db: 89 45 0c mov %eax,0xc(%ebp) { char *buf, *pa0; uint n, va0; buf = (char*)p; while(len > 0){ 801089de: 83 7d 14 00 cmpl $0x0,0x14(%ebp) 801089e2: 0f 85 77 ff ff ff jne 8010895f <copyout+0xe> memmove(pa0 + (va - va0), buf, n); len -= n; buf += n; va = va0 + PGSIZE; } return 0; 801089e8: b8 00 00 00 00 mov $0x0,%eax } 801089ed: c9 leave 801089ee: c3 ret
38.144742
128
0.528287
167d4187d31a78b1908cffdeff63d16061b9eb8f
7,487
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_1753.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_1753.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_/i9-9900K_12_0xca_notsx.log_21829_1753.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r11 push %r12 push %r13 push %r15 push %r9 push %rbx push %rcx push %rdi push %rsi lea addresses_A_ht+0xde1d, %r15 nop nop nop and $58433, %r13 mov (%r15), %r11d nop nop nop nop nop and %r12, %r12 lea addresses_normal_ht+0x11efd, %rbx sub %r9, %r9 movw $0x6162, (%rbx) nop nop nop add $60705, %r11 lea addresses_A_ht+0x7549, %rsi lea addresses_D_ht+0xfefd, %rdi nop inc %r12 mov $31, %rcx rep movsq nop cmp %rdi, %rdi lea addresses_D_ht+0xf8fd, %r15 nop nop sub %rbx, %rbx mov $0x6162636465666768, %r12 movq %r12, %xmm7 vmovups %ymm7, (%r15) nop nop nop nop xor %r13, %r13 lea addresses_WT_ht+0x148ad, %r9 nop nop nop add %rdi, %rdi movb $0x61, (%r9) nop nop xor $33446, %r12 lea addresses_A_ht+0x9689, %rsi lea addresses_UC_ht+0x1d7fd, %rdi nop nop nop nop sub %r12, %r12 mov $39, %rcx rep movsq dec %rbx lea addresses_WT_ht+0x10245, %r9 nop nop nop nop sub $25409, %rbx mov $0x6162636465666768, %r11 movq %r11, (%r9) nop nop nop nop nop and %r9, %r9 lea addresses_WT_ht+0x90fd, %r13 nop nop nop and %rbx, %rbx movb $0x61, (%r13) add $7218, %r15 lea addresses_WT_ht+0x74fd, %rsi lea addresses_A_ht+0xafd, %rdi nop nop nop nop inc %rbx mov $64, %rcx rep movsw nop nop add $1545, %r9 lea addresses_D_ht+0x186fd, %rdi nop nop nop nop nop sub %rbx, %rbx movb $0x61, (%rdi) xor $38441, %rdi lea addresses_WC_ht+0x1bb21, %r11 cmp $37845, %rdi movw $0x6162, (%r11) nop add %rcx, %rcx lea addresses_WT_ht+0x747d, %rsi lea addresses_D_ht+0x69fd, %rdi and $38936, %r13 mov $61, %rcx rep movsq nop nop nop and $56735, %r9 lea addresses_D_ht+0x4c8d, %r13 nop nop add $1255, %rdi vmovups (%r13), %ymm7 vextracti128 $0, %ymm7, %xmm7 vpextrq $0, %xmm7, %r9 nop nop nop nop xor %r15, %r15 pop %rsi pop %rdi pop %rcx pop %rbx pop %r9 pop %r15 pop %r13 pop %r12 pop %r11 ret .global s_faulty_load s_faulty_load: push %r9 push %rax push %rbp push %rcx push %rdi push %rdx push %rsi // REPMOV lea addresses_A+0x141fd, %rsi lea addresses_A+0x78fd, %rdi clflush (%rdi) nop nop nop and %r9, %r9 mov $1, %rcx rep movsb sub $61058, %rdx // Faulty Load lea addresses_WC+0xc4fd, %rsi nop nop nop nop nop and %rax, %rax mov (%rsi), %rbp lea oracles, %r9 and $0xff, %rbp shlq $12, %rbp mov (%r9,%rbp,1), %rbp pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %rax pop %r9 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WC', 'NT': True, 'AVXalign': False, 'size': 32, 'congruent': 0}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_A'}, 'dst': {'same': False, 'congruent': 10, 'type': 'addresses_A'}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_WC', 'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 4}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_normal_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 9}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 0, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_D_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 10}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 2, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 4, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 3}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': True, 'size': 1, 'congruent': 10}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 11, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_A_ht'}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 9}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 1}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 7, 'type': 'addresses_D_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4}} {'38': 21829} 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 */
34.502304
2,999
0.655136
5e0c05272e212c00f25efc71ddc568cc612d4ca9
512
asm
Assembly
libsrc/stdio/kc/fputc_cons.asm
RC2014Z80/z88dk
e5b9447b970e5fae26544b6d8aa5957c98ba0e6a
[ "ClArtistic" ]
8
2017-01-18T12:02:17.000Z
2021-06-12T09:40:28.000Z
libsrc/stdio/kc/fputc_cons.asm
RC2014Z80/z88dk
e5b9447b970e5fae26544b6d8aa5957c98ba0e6a
[ "ClArtistic" ]
1
2017-03-06T07:41:56.000Z
2017-03-06T07:41:56.000Z
libsrc/stdio/kc/fputc_cons.asm
RC2014Z80/z88dk
e5b9447b970e5fae26544b6d8aa5957c98ba0e6a
[ "ClArtistic" ]
3
2017-03-07T03:19:40.000Z
2021-09-15T17:59:19.000Z
; ; Console routines for the Robotron VEB KC85/2,3,4 ; ; By Stefano Bodrato - Oct. 2016 ; ; $Id: fputc_cons.asm,v 1.2 2016-10-10 07:09:14 stefano Exp $ ; SECTION code_clib PUBLIC fputc_cons_native INCLUDE "caos.def" .fputc_cons_native ld ix,$1f0 ld hl,2 add hl,sp ld a,(hl) IF STANDARDESCAPECHARS cp 10 ELSE cp 13 ENDIF jr nz,nocr call PV1 defb FNCRT IF STANDARDESCAPECHARS ld c,13 call PV1 defb FNCRT ld c,10 ELSE call PV1 defb FNCRT ld c,10 ENDIF .nocr call PV1 defb FNCRT ret
12.487805
61
0.703125
14d0fedc931effd5df3e58a4578931932bec112a
702
asm
Assembly
oeis/209/A209595.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/209/A209595.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/209/A209595.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A209595: Number of 4X4 0..n arrays with every element equal to a diagonal or antidiagonal reflection ; Submitted by Jamie Morken(s2) ; 9216,1476225,51380224,791015625,7316407296,47738317081,241591910400,1007680691889,3610000000000,11438404249041,32754285674496,86161557405625,210866643477504,484962978515625,1056630674292736,2195417357588961,4373822352614400,8393429706929569,15575040000000000,28038879924355881,49109297241342976,83888685207639225,140058068552515584,228977203369140625,367175615794430976,578348190053869041,895995219253657600,1366877800992353049,2055495690000000000,3049836855855560521,4468696730258374656 add $0,2 mov $1,$0 mul $0,2 pow $1,5 mul $0,$1 sub $1,$0 pow $1,2 mov $0,$1
54
489
0.858974
7403e8dbc1c5fabf336eecf83384ce0ecbb294e8
4,016
asm
Assembly
Library/Trans/Graphics/Bitmap/Tif/Export/exportMain.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Trans/Graphics/Bitmap/Tif/Export/exportMain.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Trans/Graphics/Bitmap/Tif/Export/exportMain.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: Impex- Tif Graphics Translation Library FILE: exportMain.asm AUTHOR: Maryann Simmons 1/92 ROUTINES: Name Description ---- ----------- GLB TransExport perform export of a GString into Tif file format INT GraphicsGetExportOptions returns the bitcount to be used by the DIB library, as well as pushes the TIF export compression type for the C translation library call. REVISION HISTORY: Name Date Description ---- ---- ----------- DESCRIPTION: This file contains the main interface to the export side of the tif library $Id: exportMain.asm,v 1.1 97/04/07 11:27:25 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ifdef __HIGHC__ MAINEXPORTC segment word public 'CODE' global ExportTif:far MAINEXPORTC ends else global EXPORTTIF:far endif ExportCode segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TransExport %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: perform export of a GString into Tif file format CALLED BY: GLOBAL PASS: ds:si ExportFrame RETURN: ax - TransError error code, clear if no error bx - handle to block containing Error String if ax = TE_CUSTOM DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: none REVISION HISTORY: Name Date Description ---- ---- ----------- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TransExport proc far uses cx .enter ifdef __HIGHC__ mov bx,vseg _ExportTif ;segment of the main Tif export routine mov ax,offset _ExportTif ;offset of the main Tif export routine else mov bx,vseg EXPORTTIF ;segment of the main Tif export routine mov ax,offset EXPORTTIF ;offset of the main Tif export routine endif mov cx,2 ;num bytes required for export options call GraphicsExportCommon ;call the common code to export to Tif .leave ret TransExport endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GraphicsGetExportOptions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: returns the bitcount to be used by the DIB library, as well as pushes the TIF export compression type for the C translation library call. CALLED BY: GraphicsExportCommon PASS: ds:si - ExportFrame ss:bp - location to put the export options RETURN: si - Bit Count DESTROYED: nothing PSEUDO CODE/STRATEGY: * save away the return address so that the format can be pushed on the stack for the upcoming C routine call * Lock down the Export Options block * extract the Bitcount to be returned * push the TIF compression format * restore the return address to the stack KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- MS 6/ 8/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GraphicsGetExportOptions proc near uses ax,bx,ds .enter mov bx,ds:[si].EF_exportOptions tst bx ;handle to options block jz setDefault call MemLock ;takes bx=handle,ret ax = address jc setDefault ;unable to lock Options Block segmov ds,ax ;address of options block clr ah mov al,ds:[TEO_bitCount] ;get bitcount mov si,ax ;si export Option( bit count) mov ax,ds:[TEO_compress] mov ss:[bp],ax ;save compression format call MemUnlock ;have extracted necessary data done: .leave ret setDefault: mov si,1 ; set default bitcount to monochrome mov ax, TIF_AUTOCMPR ; set default to auto compression mov ss:[bp], ax jmp done GraphicsGetExportOptions endp ExportCode ends
23.904762
79
0.591882
fbf2ebc825a73124460fd4cae216a1a7d5f309cd
746
asm
Assembly
oeis/060/A060692.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/060/A060692.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/060/A060692.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A060692: Number of parts if 3^n is partitioned into parts of size 2^n as far as possible and into parts of size 1^n. ; Submitted by Jon Maiga ; 2,3,6,6,26,36,28,186,265,738,1105,3186,5269,15516,29728,55761,35228,235278,441475,272526,1861166,3478866,6231073,1899171,5672262,50533341,17325482,186108951,21328109,63792576,1264831925,3794064336,7086578554,12668830332,20825165704,28113574581,84337447497,253007428122,484137005869,352888332501,1058648411505,3175920355518,5129677236955,15388975733121,10982471143916,68131659570654,134026045609411,120602876730246,80333228399083,240999047575749,722996186294997,2168987124236616,2003359593366790 add $0,1 mov $1,3 pow $1,$0 mov $2,2 pow $2,$0 sub $1,$2 sub $1,1 sub $2,1 mod $1,$2 mov $0,$1 add $0,2
46.625
496
0.810992
d7cf0583ddbc8133ae66ecf3a13422bbc525a657
803
asm
Assembly
programs/oeis/266/A266450.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/266/A266450.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/266/A266450.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A266450: Total number of OFF (white) cells after n iterations of the "Rule 25" elementary cellular automaton starting with a single ON (black) cell. ; 0,2,5,9,14,19,28,33,46,51,68,73,94,99,124,129,158,163,196,201,238,243,284,289,334,339,388,393,446,451,508,513,574,579,644,649,718,723,796,801,878,883,964,969,1054,1059,1148,1153,1246,1251,1348,1353,1454,1459,1564,1569,1678,1683,1796,1801,1918,1923,2044,2049,2174,2179,2308,2313,2446,2451,2588,2593,2734,2739,2884,2889,3038,3043,3196,3201,3358,3363,3524,3529,3694,3699,3868,3873,4046,4051,4228,4233,4414,4419,4604,4609,4798,4803,4996,5001 lpb $0 mov $2,$0 sub $0,1 seq $2,266449 ; Number of OFF (white) cells in the n-th iteration of the "Rule 25" elementary cellular automaton starting with a single ON (black) cell. add $1,$2 lpe mov $0,$1
73
439
0.744707
08292d412947a48ec92763acc7733659a5cfa127
664
asm
Assembly
programs/oeis/319/A319697.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/319/A319697.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/319/A319697.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A319697: Sum of even squarefree divisors of n. ; 0,2,0,2,0,8,0,2,0,12,0,8,0,16,0,2,0,8,0,12,0,24,0,8,0,28,0,16,0,48,0,2,0,36,0,8,0,40,0,12,0,64,0,24,0,48,0,8,0,12,0,28,0,8,0,16,0,60,0,48,0,64,0,2,0,96,0,36,0,96,0,8,0,76,0,40,0,112,0,12,0,84,0,64,0,88,0,24,0,48,0,48,0,96,0,8,0,16,0,12 mov $3,2 mov $8,$0 lpb $3 mov $0,$8 sub $3,1 add $0,$3 sub $0,1 mov $5,$0 mov $6,0 mov $7,$0 add $7,1 lpb $7 mov $0,$5 sub $7,2 sub $0,$7 seq $0,48250 ; Sum of the squarefree divisors of n. add $6,$0 lpe mov $2,$3 mov $4,$6 lpb $2 mov $1,$4 sub $2,1 lpe lpe lpb $8 sub $1,$4 mov $8,0 lpe div $1,3 mul $1,2 mov $0,$1
18.444444
237
0.533133
0e9f6f6125edb283f84861c9e78cf2e3e875e4c2
1,937
asm
Assembly
programs/oeis/017/A017715.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/017/A017715.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/017/A017715.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A017715: Binomial coefficients C(n,51). ; 1,52,1378,24804,341055,3819816,36288252,300674088,2217471399,14783142660,90177170226,508271323092,2668424446233,13136858812224,60992558771040,268367258592576,1123787895356412,4495151581425648,17231414395464984,63484158299081520,225368761961739396,772692898154535072,2563935525694593648,8249183865278257824,25778699578994555700,78367246720143449328,232087615286578676856,670475333050116177584,1891698261105684929612,5218477961670854978240,14089890496511308441248,37270032926255719102656,96669147902475771422514,246066921933574690893672,615167304833936727234180,1511553949020530244061128,3652922043466281423147726,8688030806081966628027024,20348282677402500786694872,46957575409390386430834320,106828484056363129130148078,239712695931351411706673736,530792398133706697350491844,1160336870338800687231307752,2505272788231501483794869010,5344581948227203165429053888,11270096716913884935796048416,23499350601224696249106654144,48467410615025936013782474172,98913082887808032681188722800,199804427433372226016001220056,399608854866744452032002440112,791532924062974587678774064068,1553196681180176549407405710624,3020104657850343290514399992880,5820565340584297978082298168096,11121437347187855065264391142612,21072197078882251702606214796528,39601197958589059234208231255544,73832741956691466368862804035760,136590572619879212782396187466156,250789248088958554616858573708352,457083629581488978575887400468448,827103710671265770756367677038144,1486201980112430681827848169677915,2652298918354491678338929041271356,4701802627992053429782646936799222,8280786717956153801706751321526988,14491376756423269152986814812672229,25202394358996989831281417065516920,43564138820551939565500735213250676,74856689240948403197057601352346232,127880177453286855461640068976924813,217221123345309179140320117166283244,366927573218427667466756954672775750,616438323006958481344151683850263260 add $0,51 bin $0,51
322.833333
1,873
0.949406
e50276f43e78400d5dd7102dee1a33b12a0d0289
4,882
asm
Assembly
libsrc/_DEVELOPMENT/stdio/z80/output_helpers/__stdio_send_output.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/stdio/z80/output_helpers/__stdio_send_output.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
libsrc/_DEVELOPMENT/stdio/z80/output_helpers/__stdio_send_output.asm
meesokim/z88dk
5763c7778f19a71d936b3200374059d267066bb2
[ "ClArtistic" ]
null
null
null
SECTION code_stdio PUBLIC __stdio_send_output PUBLIC __stdio_send_output_buffer, __stdio_send_output_chars PUBLIC __stdio_printf_padding_width PUBLIC __stdio_printf_padding_width_bc, __stdio_printf_padding_width_hl PUBLIC __stdio_printf_padding_precision PUBLIC __stdio_printf_padding_precision_bc, __stdio_printf_padding_precision_hl EXTERN STDIO_MSG_PUTC, STDIO_MSG_WRIT EXTERN l_jpix, l_addu_hl_bc ; ALL VFPRINTF OUTPUT PASSES THROUGH THESE FUNCTIONS ; HL' IS USED TO TRACK TOTAL NUMBER OF CHARS OUTPUT ON STREAM ; ; OTHER HIGH LEVEL OUTPUT SHOULD USE __STDIO_SEND_OUTPUT_RAW __stdio_printf_padding_precision_hl: ; output length zeroes on stream ; ; enter : ix = FILE * ; hl = length (0 means no output) ; hl' = output tally (num chars output so far) ; ; exit : ix = FILE * ; hl' = output tally (updated) ; carry set indicates stream error ; ; uses : possibly all except ix ld c,l ld b,h ; fall through __stdio_printf_padding_precision: __stdio_printf_padding_precision_bc: ; output length zeroes on stream ; ; enter : ix = FILE * ; bc = length (0 means no output) ; hl' = output tally (num chars output so far) ; ; exit : ix = FILE * ; hl' = output tally (updated) ; carry set indicates stream error ; ; uses : possibly all except ix ld e,'0' jr __stdio_send_output_chars __stdio_printf_padding_width_hl: ; output length spaces on stream ; ; enter : ix = FILE * ; hl = length (0 means no output) ; hl' = output tally (num chars output so far) ; ; exit : ix = FILE * ; hl' = output tally (updated) ; carry set indicates stream error ; ; uses : possibly all except ix ld c,l ld b,h ; fall through __stdio_printf_padding_width: __stdio_printf_padding_width_bc: ; output length spaces on stream ; ; enter : ix = FILE * ; bc = length (0 means no output) ; hl' = output tally (num chars output so far) ; ; exit : ix = FILE * ; hl' = output tally (updated) ; carry set indicates stream error ; ; uses : possibly all except ix ld e,' ' ; fall through __stdio_send_output_chars: ; write char to output length times ; ; enter : ix = FILE * ; e = char c ; bc = length (0 means no output) ; hl' = output tally (num chars output so far) ; ; exit : ix = FILE * ; hl' = output tally (updated) ; carry set indicates stream error ; ; uses : possibly all except ix ld a,b or c ret z ld a,STDIO_MSG_PUTC jr __stdio_send_output __stdio_send_output_buffer: ; write buffer to stream ; ; enter : ix = FILE * ; hl = char *buffer ; bc = length (0 means no output) ; hl' = output tally (num chars output so far) ; ; exit : ix = FILE * ; hl' = output tally (updated) ; carry set indicates stream error ; ; uses : possibly all except ix ld a,b or c ret z ld a,STDIO_MSG_WRIT ; fall through __stdio_send_output: ; write chars to stream ; all output from vfprintf passes through this function ; ; enter : ix = FILE * ; hl' = output tally (num chars output so far) ; ; if output repeated char ; ; a = STDIO_MSG_PUTC ; bc = length > 0 ; e = char ; ; if output buffer ; ; a = STDIO_MSG_WRIT ; bc = length > 0 ; hl = void *buffer ; ; NOTE : hl' used by high level stdio to track chars output ; ; exit : ix = FILE * ; hl' = updated output tally ; carry set indicates stream error ; ; uses : possibly all except ix push bc exx ex (sp),hl ; ix = FILE * ; hl = length ; STDIO_MSG params in EXX set ; stack = output tally call l_jpix ; output chars to file push hl ; careful not to alter more exx registers exx ; this is done to speed up sprintf() pop hl pop bc ; ix = FILE * ; bc = output tally ; hl = num chars successfully output ; carry set if error occurred jr c, error_detected call l_addu_hl_bc ; update tally or a ; no error exit: push hl exx pop hl ; hl' = updated output tally exx ret error_detected: set 3,(ix+3) ; set stream error indicator ; update tally and exit with error indicator on call l_addu_hl_bc ; update tally scf ; indicate stream error jr exit
22.813084
79
0.57415
94f05274cf416be47f2da94ca1b32580195363b5
316
asm
Assembly
helloworld/macros_system.asm
yevgeniy-logachev/nesdev
70b3a2c669e709b2acfdbc771fdeb2af4f435f48
[ "MIT" ]
1
2018-09-05T18:32:34.000Z
2018-09-05T18:32:34.000Z
helloworld/macros_system.asm
yevgeniy-logachev/nesdev
70b3a2c669e709b2acfdbc771fdeb2af4f435f48
[ "MIT" ]
null
null
null
helloworld/macros_system.asm
yevgeniy-logachev/nesdev
70b3a2c669e709b2acfdbc771fdeb2af4f435f48
[ "MIT" ]
1
2020-07-04T20:24:42.000Z
2020-07-04T20:24:42.000Z
PPUInit .macro LDA #%10010000 ; enable NMI, sprites from Pattern Table 0, background from Pattern Table 1 STA $2000 LDA #%00011110 ; enable sprites, enable background, no clipping on left side STA $2001 .endm ; Wait for vertical blanking VBlankWait .macro VWait\@: BIT $2002 BPL VWait\@ .endm
21.066667
94
0.705696
a59becc0a49b676f3f2412e22c0489c988f81873
379
asm
Assembly
tests/testAssembler/testCases/prog.asm
1sand0s/Lc3B-Assembler
050ed50e2b9f594a5ed510b6c5d4ed120e779981
[ "MIT" ]
null
null
null
tests/testAssembler/testCases/prog.asm
1sand0s/Lc3B-Assembler
050ed50e2b9f594a5ed510b6c5d4ed120e779981
[ "MIT" ]
null
null
null
tests/testAssembler/testCases/prog.asm
1sand0s/Lc3B-Assembler
050ed50e2b9f594a5ed510b6c5d4ed120e779981
[ "MIT" ]
null
null
null
;This program counts from 10 to 0 .ORIG x3000 LEA R0, TEN ;This instruction will be loaded into memory location x3000 LDW R1, R0, #31 START RSHFL R1, R1, #15 BRZ DONE BR START ;blank line DONE TRAP x25 ;The last executable instruction TEN .FILL x-00A ;This is 10 in 2's comp, hexadecimal NOP RET JMP R0 JSR DONE JSRR R6 .END;The pseudo-op, delimiting the source program BR START
21.055556
71
0.762533
8e486957f424c7f3ada165592ff48690bf3c40e1
1,537
asm
Assembly
src/03-rainbow/rainbow.asm
HudsonSchumaker/Atari-2600
310332a8576e0f36338cb269880a204f0df9cefa
[ "MIT" ]
null
null
null
src/03-rainbow/rainbow.asm
HudsonSchumaker/Atari-2600
310332a8576e0f36338cb269880a204f0df9cefa
[ "MIT" ]
null
null
null
src/03-rainbow/rainbow.asm
HudsonSchumaker/Atari-2600
310332a8576e0f36338cb269880a204f0df9cefa
[ "MIT" ]
null
null
null
; Hudson Schumaker ; SchumakerTeam Lab processor 6502 include "vcs.h" include "macro.h" seg code org $F000 Start: CLEAN_START ; call macro to safely clear RAM and TIA ; Start a new frame by turning on VBLANK and VSYNC StartFrame: lda #2 ; same as binary value %00000010 sta VBLANK ; turn on VBLANK sta VSYNC ; turn on VSYNC ; Generate the three lines of VSYNC sta WSYNC ; first scanline sta WSYNC ; second scanline sta WSYNC ; third scanline lda #0 sta VSYNC ; turn off VSYNC ; Let the TIA output the recommended 37 scanlines of VBLANK ldx #37 ; X = 37 (to count 37 scanlines) LoopVBlank: sta WSYNC ; hit WSYNC and wait for the next scanline dex ; X-- bne LoopVBlank ; loop while X != 0 lda #0 sta VBLANK ; turn off VBLANK ; Draw 192 visible scanlines (kernel) ldx #192 ; counter for 192 visible scanlines LoopVisible: stx COLUBK ; set the background color sta WSYNC ; wait for the next scanline dex ; X-- bne LoopVisible ; loop while X != 0 ; Output 30 more VBLANK lines (overscan) to complete our frame lda #2 sta VBLANK ; hit and turn on VBLANK again ldx #30 ; counter for 30 scanlines LoopOverscan: sta WSYNC ; wait for the next scanline dex ; X-- bne LoopOverscan ; loop while X != 0 jmp StartFrame ; go to next frame ; Complete my ROM size to 4KB org $FFFC .word Start .word Start
24.396825
62
0.625895
140ff9ab05a996e903ec74addcc8d70504f1af73
1,230
asm
Assembly
libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc_imod_callee.asm
ahjelm/z88dk
c4de367f39a76b41f6390ceeab77737e148178fa
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc_imod_callee.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/math/float/am9511/c/sdcc/cam32_sdcc_imod_callee.asm
C-Chads/z88dk
a4141a8e51205c6414b4ae3263b633c4265778e6
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; int __imod_callee (int left, int right) SECTION code_clib SECTION code_fp_am9511 PUBLIC _am9511_imod_callee PUBLIC cam32_sdcc_imods_callee, cam32_sdcc_imodu_callee EXTERN cam32_sdcc_ireadr_callee, asm_am9511_imod_callee DEFC _am9511_imod_callee = cam32_sdcc_imods_callee .cam32_sdcc_imods_callee ; modulus sdcc int by sdcc int ; ; enter : stack = sdcc_int right, sdcc_int left, ret ; ; exit : DEHL = sdcc_int(left/right) ; ; uses : af, bc, de, hl, af', bc', de', hl' call cam32_sdcc_ireadr_callee jp asm_am9511_imod_callee ; enter stack = sdcc_int left, ret ; DEHL = sdcc_int right ; return DEHL = sdcc_int .cam32_sdcc_imodu_callee ; modulus sdcc int by sdcc int ; ; enter : stack = sdcc_int right, sdcc_int left, ret ; ; exit : DEHL = sdcc_int(left/right) ; ; uses : af, bc, de, hl, af', bc', de', hl' call cam32_sdcc_ireadr_callee res 7,h ; unsigned divisor jp asm_am9511_imod_callee ; enter stack = sdcc_int left, ret ; DEHL = sdcc_int right ; return DEHL = sdcc_int
27.333333
66
0.605691
485fdf52f1e24bfe75f7c5df9cb5dc888f021e3d
1,985
asm
Assembly
programs/oeis/271/A271997.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/271/A271997.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/271/A271997.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A271997: The icosagen sequence : a(n) = A018227(n)-5, for n >= 2. ; 5,13,31,49,81,113,163,213,285,357,455,553,681,809,971,1133,1333,1533,1775,2017,2305,2593,2931,3269,3661,4053,4503,4953,5465,5977,6555,7133,7781,8429,9151,9873,10673,11473,12355,13237,14205,15173,16231,17289,18441,19593,20843,22093,23445,24797,26255,27713,29281,30849,32531,34213,36013,37813,39735,41657,43705,45753,47931,50109,52421,54733,57183,59633,62225,64817,67555,70293,73181,76069,79111,82153,85353,88553,91915,95277,98805,102333,106031,109729,113601,117473,121523,125573,129805,134037,138455,142873,147481,152089,156891,161693,166693,171693,176895,182097,187505,192913,198531,204149,209981,215813,221863,227913,234185,240457,246955,253453,260181,266909,273871,280833,288033,295233,302675,310117,317805,325493,333431,341369,349561,357753,366203,374653,383365,392077,401055,410033,419281,428529,438051,447573,457373,467173,477255,487337,497705,508073,518731,529389,540341,551293,562543,573793,585345,596897,608755,620613,632781,644949,657431,669913,682713,695513,708635,721757,735205,748653,762431,776209,790321,804433,818883,833333,848125,862917,878055,893193,908681,924169,940011,955853,972053,988253,1004815,1021377,1038305,1055233,1072531,1089829,1107501,1125173,1143223,1161273,1179705,1198137,1216955,1235773,1254981,1274189,1293791,1313393,1333393,1353393,1373795,1394197,1415005,1435813,1457031,1478249,1499881,1521513,1543563,1565613,1588085,1610557,1633455,1656353,1679681,1703009,1726771,1750533,1774733,1798933,1823575,1848217,1873305,1898393,1923931,1949469,1975461,2001453,2027903,2054353,2081265,2108177,2135555,2162933,2190781,2218629,2246951,2275273,2304073,2332873,2362155,2391437,2421205,2450973,2481231,2511489,2542241,2572993,2604243,2635493,2667245,2698997 mov $2,$0 add $2,1 mov $6,$0 lpb $2 mov $0,$6 sub $2,1 sub $0,$2 mov $3,1 mov $4,$0 mov $5,5 lpb $0 mov $0,0 div $4,2 add $3,$4 add $3,1 mov $5,$3 mul $5,$3 mul $5,2 lpe add $1,$5 lpe
79.4
1,685
0.793451
ce898a6980188c369ed43b75382b82a5d3d0f026
394
asm
Assembly
oeis/132/A132169.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/132/A132169.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/132/A132169.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A132169: Irregular triangle read by rows. A141616(n)/4. ; Submitted by Jon Maiga ; 2,3,6,4,8,5,12,10,6,15,12,7,20,18,14,8,24,21,16,9,30,28,24,18,10,35,32,27,20,11,42,40,36,30,22,12,48,45,40,33,24,13,56,54,50,44,36,26,14,63,60,55,48,39,28,15,72,70,66,60,52,42,30,16 lpb $0 add $1,$2 sub $0,$1 cmp $2,0 sub $0,$2 lpe add $2,$1 add $2,2 add $0,$2 add $1,$2 add $1,1 sub $1,$0 mul $0,$1
21.888889
183
0.614213
308ffeee3d3895e8ab534b1201bd80846ad09505
696
asm
Assembly
oeis/020/A020572.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/020/A020572.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/020/A020572.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A020572: Expansion of 1/((1-6x)(1-7x)(1-10x)). ; Submitted by Jamie Morken(s2) ; 1,23,357,4675,55781,628803,6831637,72401555,754291461,7764923683,79263766517,804302170035,8126850016741,81868359076163,822960967286997,8260021493532115,82815918789863621,829686041539878243,8307649950844145077,83152635616298999795,832062965076432904101,8324407850109069761923,83270657518207724932757,832893418032119494125075,8330246818652828976450181,83311685085137757940599203,833181539723372036216882037,8332269242828050637314299955,83325875488383032763976853861,833281073150201299164498502083 add $0,1 mov $3,1 lpb $0 sub $0,1 add $2,$3 add $1,$2 mul $1,6 mul $2,10 mul $3,7 lpe mov $0,$1 div $0,6
40.941176
496
0.827586
d9afaa1dac319120366ebd9a72b42df08e00d4da
681
asm
Assembly
oeis/021/A021704.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/021/A021704.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/021/A021704.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A021704: Expansion of 1/((1-x)(1-3x)(1-9x)(1-12x)). ; Submitted by Jon Maiga ; 1,25,430,6370,87451,1148875,14682760,184262740,2283789301,28059228925,342594651490,4164091223110,50445694121551,609637726848175,7354257305858620,88598528944951480,1066309318875820201,12823854570531174625,154139539543147216150,1851954036790468071850,22243964501945160341251,267112218567493505936275,3207008423707333379396080,38499057292564843540968220,462123293383470133029860701,5546690973455870962135421125,66571194757158519650417630410,798952464767094860186540984590 add $0,2 lpb $0 sub $0,1 add $2,2 mul $2,9 sub $2,9 mul $3,12 add $3,$1 mul $1,3 add $1,$2 lpe mov $0,$3 div $0,9
37.833333
470
0.81351
fe9aea9362b27955a6b492f3be12cd8b60546c77
933
asm
Assembly
sk/sfx/A5.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
9
2017-10-09T20:28:45.000Z
2021-06-29T21:19:20.000Z
sk/sfx/A5.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
12
2018-08-01T13:52:20.000Z
2022-02-21T02:19:37.000Z
sk/sfx/A5.asm
Cancer52/flamedriver
9ee6cf02c137dcd63e85a559907284283421e7ba
[ "0BSD" ]
2
2018-02-17T19:50:36.000Z
2019-10-30T19:28:06.000Z
Sound_A5_Header: smpsHeaderStartSong 3 smpsHeaderVoice Sound_A5_Voices smpsHeaderTempoSFX $01 smpsHeaderChanSFX $01 smpsHeaderSFXChannel cFM5, Sound_A5_FM5, $20, $06 ; FM5 Data Sound_A5_FM5: smpsSetvoice $00 smpsModSet $01, $01, $0F, $F4 dc.b nD1, $33 smpsStop Sound_A5_Voices: ; Voice $00 ; $05 ; $05, $30, $79, $30, $07, $0C, $08, $0F, $00, $00, $00, $00 ; $01, $00, $01, $00, $0F, $0F, $2F, $0F, $4D, $81, $86, $8D smpsVcAlgorithm $05 smpsVcFeedback $00 smpsVcUnusedBits $00 smpsVcDetune $03, $07, $03, $00 smpsVcCoarseFreq $00, $09, $00, $05 smpsVcRateScale $00, $00, $00, $00 smpsVcAttackRate $0F, $08, $0C, $07 smpsVcAmpMod $00, $00, $00, $00 smpsVcDecayRate1 $00, $00, $00, $00 smpsVcDecayRate2 $00, $01, $00, $01 smpsVcDecayLevel $00, $02, $00, $00 smpsVcReleaseRate $0F, $0F, $0F, $0F smpsVcTotalLevel $0D, $06, $01, $4D
26.657143
62
0.606645
9a0eb5e6d243d2224618339c6a62f2380e33aa17
6,016
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1331.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1331.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_1331.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r15 push %rbp push %rbx push %rcx push %rdi push %rsi lea addresses_WT_ht+0x88dd, %rsi lea addresses_UC_ht+0x317c, %rdi clflush (%rsi) clflush (%rdi) nop add %r15, %r15 mov $35, %rcx rep movsq mfence lea addresses_normal_ht+0x151e8, %rbp nop cmp $18553, %r12 mov (%rbp), %bx nop nop xor $59454, %rbx lea addresses_WC_ht+0x1c5af, %rbx nop nop add $61248, %rcx movl $0x61626364, (%rbx) nop nop nop and $57101, %rsi lea addresses_D_ht+0xf30f, %rdi nop nop nop and %r12, %r12 and $0xffffffffffffffc0, %rdi vmovntdqa (%rdi), %ymm3 vextracti128 $0, %ymm3, %xmm3 vpextrq $0, %xmm3, %rbp nop nop nop and $34446, %rdi lea addresses_WT_ht+0x1440f, %rsi lea addresses_D_ht+0x690f, %rdi clflush (%rsi) nop nop nop nop dec %r10 mov $118, %rcx rep movsb add $10300, %r10 lea addresses_WT_ht+0x1400f, %r15 nop nop add $56017, %r10 vmovups (%r15), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %rbx nop nop nop nop nop and $31343, %rbp lea addresses_A_ht+0x500f, %rcx nop nop nop and %rbp, %rbp mov $0x6162636465666768, %r15 movq %r15, (%rcx) nop nop add %r10, %r10 pop %rsi pop %rdi pop %rcx pop %rbx pop %rbp pop %r15 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r8 push %r9 push %rbp push %rbx push %rcx // Store lea addresses_WC+0x1200f, %r12 nop nop nop cmp $62968, %rcx movl $0x51525354, (%r12) sub $33322, %rbp // Faulty Load lea addresses_WC+0x1e80f, %r10 nop nop inc %r9 mov (%r10), %r8d lea oracles, %rbx and $0xff, %r8 shlq $12, %r8 mov (%rbx,%r8,1), %r8 pop %rcx pop %rbx pop %rbp pop %r9 pop %r8 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 4, 'NT': False, 'type': 'addresses_WC'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 1, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 0, 'same': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 5, 'AVXalign': False, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 32, 'NT': True, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_D_ht'}} {'src': {'congruent': 11, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WT_ht'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 10, 'AVXalign': False, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_A_ht'}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
40.375839
2,999
0.659741
01ba6659538d6533ffa2f8ed20381d76e96e6482
1,267
asm
Assembly
fox32rom/integer.asm
ry755/fox32
5c06c23941e4a1efae0440a6e8cf31d3f0714256
[ "MIT" ]
6
2022-01-27T06:55:52.000Z
2022-03-13T22:21:17.000Z
fox32rom/integer.asm
ry755/fox32
5c06c23941e4a1efae0440a6e8cf31d3f0714256
[ "MIT" ]
null
null
null
fox32rom/integer.asm
ry755/fox32
5c06c23941e4a1efae0440a6e8cf31d3f0714256
[ "MIT" ]
null
null
null
; integer routines ; convert ASCII string into an integer ; thanks to lua for helping with this :3 ; inputs: ; r0: pointer to null-terminated string ; r1: radix (i.e. 10 for decimal, 16 for hexadecimal) ; outputs: ; r0: integer string_to_int: push r2 push r3 mov r3, 0 string_to_int_loop: movz.8 r2, [r0] inc r0 cmp r2, 0 ifz jmp string_to_int_end ; if (digit >= '0' && digit <= '9') { ; digit -= '0'; ; } else if (digit >= 'A' && digit <= 'Z') { ; digit -= 'A' - 10 ; } else if (digit >= 'a' && digit <= 'z') { ; digit -= 'a' - 10 ; } else { ; continue; ; } cmp r2, '0' iflt jmp string_to_int_loop_2 cmp r2, '9' ifgt jmp string_to_int_loop_2 sub r2, '0' jmp string_to_int_loop_end string_to_int_loop_2: cmp r2, 'A' iflt jmp string_to_int_loop_3 cmp r2, 'Z' ifgt jmp string_to_int_loop_3 sub r2, 0x37 ; 'A' - 10 jmp string_to_int_loop_end string_to_int_loop_3: cmp r2, 'a' iflt jmp string_to_int_loop cmp r2, 'z' ifgt jmp string_to_int_loop sub r2, 0x57 ; 'a' - 10 string_to_int_loop_end: mul r3, r1 add r3, r2 jmp string_to_int_loop string_to_int_end: mov r0, r3 pop r3 pop r2 ret
19.796875
53
0.591949
706960c3cf8d8605a262adaa6d2fb4d1c8237731
5,841
asm
Assembly
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_622.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_622.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_zr_/i7-7700_9_0xca.log_21829_622.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r15 push %r8 push %rbp push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0xc64a, %r8 and %r15, %r15 mov $0x6162636465666768, %r10 movq %r10, %xmm5 vmovups %ymm5, (%r8) nop and $46461, %rbp lea addresses_D_ht+0x13eca, %rsi lea addresses_WC_ht+0x99ca, %rdi nop nop add %rdx, %rdx mov $20, %rcx rep movsq nop nop nop nop nop add %rdi, %rdi lea addresses_D_ht+0x12eca, %rsi lea addresses_UC_ht+0x8d4a, %rdi nop nop nop nop nop xor %rdx, %rdx mov $26, %rcx rep movsb nop nop nop cmp %rdi, %rdi lea addresses_UC_ht+0x12282, %r15 nop nop nop nop nop dec %rcx mov $0x6162636465666768, %rdx movq %rdx, %xmm5 and $0xffffffffffffffc0, %r15 vmovaps %ymm5, (%r15) nop nop nop nop and %rdi, %rdi lea addresses_WT_ht+0x54ca, %rsi lea addresses_WT_ht+0x8efa, %rdi nop and %rdx, %rdx mov $40, %rcx rep movsb nop nop sub $42164, %rbp pop %rsi pop %rdx pop %rdi pop %rcx pop %rbp pop %r8 pop %r15 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r13 push %rbx push %rcx push %rdi push %rdx // Store lea addresses_WC+0x5b4a, %rbx nop dec %rcx movl $0x51525354, (%rbx) nop nop nop nop xor $32782, %rdx // Store lea addresses_RW+0xbc8a, %rbx nop nop xor $4008, %r13 mov $0x5152535455565758, %rdx movq %rdx, (%rbx) nop nop cmp %r10, %r10 // Faulty Load lea addresses_WT+0x1c84a, %rcx nop nop nop xor %rdi, %rdi movups (%rcx), %xmm5 vpextrq $1, %xmm5, %r11 lea oracles, %rcx and $0xff, %r11 shlq $12, %r11 mov (%rcx,%r11,1), %r11 pop %rdx pop %rdi pop %rcx pop %rbx pop %r13 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'congruent': 0, 'AVXalign': False, 'same': False, 'size': 2, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': True, 'same': False, 'size': 4, 'NT': False, 'type': 'addresses_WC'}} {'OP': 'STOR', 'dst': {'congruent': 4, 'AVXalign': True, 'same': False, 'size': 8, 'NT': False, 'type': 'addresses_RW'}} [Faulty Load] {'src': {'congruent': 0, 'AVXalign': False, 'same': True, 'size': 16, 'NT': False, 'type': 'addresses_WT'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'congruent': 8, 'AVXalign': False, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 7, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 7, 'same': False, 'type': 'addresses_WC_ht'}} {'src': {'congruent': 5, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM', 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}} {'OP': 'STOR', 'dst': {'congruent': 3, 'AVXalign': True, 'same': False, 'size': 32, 'NT': False, 'type': 'addresses_UC_ht'}} {'src': {'congruent': 6, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM', 'dst': {'congruent': 3, 'same': False, 'type': 'addresses_WT_ht'}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
38.94
2,999
0.661359
44a50fc3609c96c14d0e877bced2c8ee374909e5
714
asm
Assembly
oeis/254/A254683.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/254/A254683.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/254/A254683.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A254683: Fifth partial sums of sixth powers (A001014). ; Submitted by Christian Krause ; 1,69,1064,8736,49350,216342,787968,2489448,7024407,18074875,43072848,96186272,203145852,408774588,788378400,1464523344,2631173181,4587701601,7785938104,12894168000,20882898530,33138238770,51609935520,79002476280,119019229875,176671362231,258665256864,373884405184,533984229816,754121084600,1053839758272,1458147216288,1998804068793,2715869375037,3659538909000,4892321941728,6491606967742,8552672641422,11192206520768,14552401067400,18805703750799,24160306080051,30866464966896,39223759039584 lpb $0 mov $2,$0 sub $0,1 seq $2,254645 ; Fourth partial sums of sixth powers (A001014). add $1,$2 lpe mov $0,$1 add $0,1
54.923077
493
0.834734
2c1582e45538ca895f7f094bbabfca597417ef0b
4,534
asm
Assembly
coverage/IN_CTS/0242-COVERAGE-apfloat-1106-1815-1881/work/variant/1_spirv_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
null
null
null
coverage/IN_CTS/0242-COVERAGE-apfloat-1106-1815-1881/work/variant/1_spirv_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
47
2021-03-11T07:42:51.000Z
2022-03-14T06:30:14.000Z
coverage/IN_CTS/0242-COVERAGE-apfloat-1106-1815-1881/work/variant/1_spirv_asm/shader.frag.asm
asuonpaa/ShaderTests
6a3672040dcfa0d164d313224446496d1775a15e
[ "Apache-2.0" ]
4
2021-03-09T13:37:19.000Z
2022-02-25T07:32:11.000Z
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 8 ; Bound: 79 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %55 OpExecutionMode %4 OriginUpperLeft OpSource ESSL 310 OpName %4 "main" OpName %8 "f0" OpName %12 "s1" OpName %23 "buf0" OpMemberName %23 0 "_GLF_uniform_float_values" OpName %25 "" OpName %32 "f1" OpName %55 "_GLF_color" OpName %57 "buf1" OpMemberName %57 0 "_GLF_uniform_int_values" OpName %59 "" OpDecorate %22 ArrayStride 16 OpMemberDecorate %23 0 Offset 0 OpDecorate %23 Block OpDecorate %25 DescriptorSet 0 OpDecorate %25 Binding 0 OpDecorate %55 Location 0 OpDecorate %56 ArrayStride 16 OpMemberDecorate %57 0 Offset 0 OpDecorate %57 Block OpDecorate %59 DescriptorSet 0 OpDecorate %59 Binding 1 %2 = OpTypeVoid %3 = OpTypeFunction %2 %6 = OpTypeFloat 32 %7 = OpTypePointer Function %6 %9 = OpConstant %6 10 %10 = OpConstant %6 9.99999997e-07 %13 = OpConstant %6 0x1.b38fb8p-127 %15 = OpConstant %6 0 %16 = OpTypeBool %20 = OpTypeInt 32 0 %21 = OpConstant %20 2 %22 = OpTypeArray %6 %21 %23 = OpTypeStruct %22 %24 = OpTypePointer Uniform %23 %25 = OpVariable %24 Uniform %26 = OpTypeInt 32 1 %27 = OpConstant %26 0 %28 = OpConstant %26 1 %29 = OpTypePointer Uniform %6 %53 = OpTypeVector %6 4 %54 = OpTypePointer Output %53 %55 = OpVariable %54 Output %56 = OpTypeArray %26 %21 %57 = OpTypeStruct %56 %58 = OpTypePointer Uniform %57 %59 = OpVariable %58 Uniform %60 = OpTypePointer Uniform %26 %4 = OpFunction %2 None %3 %5 = OpLabel %8 = OpVariable %7 Function %12 = OpVariable %7 Function %32 = OpVariable %7 Function %11 = OpFMod %6 %9 %10 OpStore %8 %11 OpStore %12 %13 %14 = OpLoad %6 %12 %17 = OpFOrdEqual %16 %14 %15 OpSelectionMerge %19 None OpBranchConditional %17 %18 %19 %18 = OpLabel %30 = OpAccessChain %29 %25 %27 %28 %31 = OpLoad %6 %30 OpStore %12 %31 OpBranch %19 %19 = OpLabel %33 = OpLoad %6 %12 %34 = OpFMod %6 %9 %33 OpStore %32 %34 %35 = OpLoad %6 %8 %36 = OpAccessChain %29 %25 %27 %27 %37 = OpLoad %6 %36 %38 = OpFNegate %6 %37 %39 = OpFOrdGreaterThan %16 %35 %38 OpSelectionMerge %41 None OpBranchConditional %39 %40 %41 %40 = OpLabel %42 = OpLoad %6 %8 %43 = OpAccessChain %29 %25 %27 %27 %44 = OpLoad %6 %43 %45 = OpFOrdLessThan %16 %42 %44 OpBranch %41 %41 = OpLabel %46 = OpPhi %16 %39 %19 %45 %40 %47 = OpLoad %6 %8 %48 = OpLoad %6 %32 %49 = OpFOrdEqual %16 %47 %48 %50 = OpLogicalOr %16 %46 %49 OpSelectionMerge %52 None OpBranchConditional %50 %51 %74 %51 = OpLabel %61 = OpAccessChain %60 %59 %27 %28 %62 = OpLoad %26 %61 %63 = OpConvertSToF %6 %62 %64 = OpAccessChain %60 %59 %27 %27 %65 = OpLoad %26 %64 %66 = OpConvertSToF %6 %65 %67 = OpAccessChain %60 %59 %27 %27 %68 = OpLoad %26 %67 %69 = OpConvertSToF %6 %68 %70 = OpAccessChain %60 %59 %27 %28 %71 = OpLoad %26 %70 %72 = OpConvertSToF %6 %71 %73 = OpCompositeConstruct %53 %63 %66 %69 %72 OpStore %55 %73 OpBranch %52 %74 = OpLabel %75 = OpAccessChain %60 %59 %27 %27 %76 = OpLoad %26 %75 %77 = OpConvertSToF %6 %76 %78 = OpCompositeConstruct %53 %77 %77 %77 %77 OpStore %55 %78 OpBranch %52 %52 = OpLabel OpReturn OpFunctionEnd
35.147287
61
0.484561
4cbce4153cbadd6fc6f243f2c0df0eaf9344e214
399
asm
Assembly
oeis/063/A063215.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/063/A063215.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/063/A063215.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A063215: Dimension of the space of weight 2n cuspidal newforms for Gamma_0( 47 ). ; Submitted by Jamie Morken(s2) ; 4,11,19,27,35,41,51,57,65,73,81,87,97,103,111,119,127,133,143,149,157,165,173,179,189,195,203,211,219,225,235,241,249,257,265,271,281,287,295,303,311,317,327,333,341,349,357,363,373,379 mov $1,$0 mul $0,7 div $1,3 mul $1,2 mov $2,$0 trn $0,3 mod $0,2 add $0,$1 add $0,$2 add $0,4
26.6
187
0.686717
80ad153c0f19c2c9bf46cfa717ad2f3885717982
715
asm
Assembly
oeis/097/A097783.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/097/A097783.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/097/A097783.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A097783: Chebyshev polynomials S(n,11) + S(n-1,11) with Diophantine property. ; Submitted by Jon Maiga ; 1,12,131,1429,15588,170039,1854841,20233212,220710491,2407582189,26262693588,286482047279,3125039826481,34088956044012,371853476657651,4056299287190149,44247438682433988,482665526219583719,5265073349732986921,57433141320843272412,626499481179543009611,6834061151654129833309,74548173187015885156788,813195843905520606891359,8870606109773710790648161,96763471363605298090238412,1055527578889884568201974371,11514039896425124952131479669,125598911281786489905244301988,1370073984203226264005555842199 mov $2,1 lpb $0 sub $0,1 add $3,1 mov $1,$3 mul $1,9 add $2,$1 add $3,$2 lpe mov $0,$3 add $0,1
44.6875
500
0.837762
896e1856adf88ebb5d4c9f5b14af9d2b9fd09fc7
1,709
asm
Assembly
programs/oeis/052/A052548.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/052/A052548.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/052/A052548.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A052548: a(n) = 2^n + 2. ; 3,4,6,10,18,34,66,130,258,514,1026,2050,4098,8194,16386,32770,65538,131074,262146,524290,1048578,2097154,4194306,8388610,16777218,33554434,67108866,134217730,268435458,536870914,1073741826,2147483650,4294967298,8589934594,17179869186,34359738370,68719476738,137438953474,274877906946,549755813890,1099511627778,2199023255554,4398046511106,8796093022210,17592186044418,35184372088834,70368744177666,140737488355330,281474976710658,562949953421314,1125899906842626,2251799813685250,4503599627370498,9007199254740994,18014398509481986,36028797018963970,72057594037927938,144115188075855874,288230376151711746,576460752303423490,1152921504606846978,2305843009213693954,4611686018427387906,9223372036854775810,18446744073709551618,36893488147419103234,73786976294838206466,147573952589676412930,295147905179352825858,590295810358705651714,1180591620717411303426,2361183241434822606850,4722366482869645213698,9444732965739290427394,18889465931478580854786,37778931862957161709570,75557863725914323419138,151115727451828646838274,302231454903657293676546,604462909807314587353090,1208925819614629174706178,2417851639229258349412354,4835703278458516698824706,9671406556917033397649410,19342813113834066795298818,38685626227668133590597634,77371252455336267181195266,154742504910672534362390530,309485009821345068724781058,618970019642690137449562114,1237940039285380274899124226,2475880078570760549798248450,4951760157141521099596496898,9903520314283042199192993794,19807040628566084398385987586,39614081257132168796771975170,79228162514264337593543950338,158456325028528675187087900674,316912650057057350374175801346,633825300114114700748351602690 mov $1,2 pow $1,$0 add $1,2 mov $0,$1
213.625
1,642
0.920421
b0ab17756e15969a9fb4cce33954c0a82952b7d7
5,893
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2620.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2620.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2620.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %r15 push %rbx push %rcx lea addresses_normal_ht+0x1abaa, %rbx nop nop nop add %r14, %r14 mov (%rbx), %r12w nop nop nop nop nop and %r10, %r10 lea addresses_WT_ht+0x9542, %rcx nop nop add %r11, %r11 movw $0x6162, (%rcx) nop and $3737, %r15 lea addresses_D_ht+0x15d4a, %rcx nop nop nop add $31746, %r10 mov (%rcx), %r11 nop sub $59364, %r15 pop %rcx pop %rbx pop %r15 pop %r14 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r14 push %r15 push %r8 push %rcx push %rdi push %rsi // Load lea addresses_normal+0x1954a, %rsi nop nop nop nop add %r14, %r14 mov (%rsi), %edi nop nop xor %r11, %r11 // Store lea addresses_UC+0x1a86a, %r11 nop nop nop nop nop sub $43294, %r8 movl $0x51525354, (%r11) nop and %rdi, %rdi // REPMOV lea addresses_WC+0xe44a, %rsi lea addresses_UC+0xb4a, %rdi sub $56342, %r8 mov $48, %rcx rep movsw nop nop nop dec %rdi // Store lea addresses_WT+0x893a, %r14 add $52300, %rdi mov $0x5152535455565758, %r12 movq %r12, %xmm7 movups %xmm7, (%r14) nop and $56702, %rcx // Load lea addresses_normal+0x7d4a, %rdi nop nop nop nop nop add $45636, %r14 vmovups (%rdi), %ymm5 vextracti128 $0, %ymm5, %xmm5 vpextrq $1, %xmm5, %r8 nop and %r11, %r11 // Faulty Load lea addresses_D+0xe54a, %r15 dec %rsi movups (%r15), %xmm2 vpextrq $1, %xmm2, %r12 lea oracles, %rsi and $0xff, %r12 shlq $12, %r12 mov (%rsi,%r12,1), %r12 pop %rsi pop %rdi pop %rcx pop %r8 pop %r15 pop %r14 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_D', 'same': False, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal', 'same': False, 'size': 4, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WC', 'congruent': 6, 'same': False}, 'dst': {'type': 'addresses_UC', 'congruent': 8, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 16, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_normal', 'same': False, 'size': 32, 'congruent': 11, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} [Faulty Load] {'src': {'type': 'addresses_D', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_normal_ht', 'same': True, 'size': 2, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_D_ht', 'same': False, 'size': 8, 'congruent': 8, 'NT': True, 'AVXalign': False}, 'OP': 'LOAD'} {'36': 21829} 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 */
38.769737
2,999
0.654675
31393d4333655a370a551611e7673e15a7c1fbaa
6,720
asm
Assembly
Transynther/x86/_processed/US/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_1954.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/US/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_1954.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/US/_ht_zr_/i3-7100_9_0xca_notsx.log_21829_1954.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %r9 push %rax push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1c418, %rsi nop nop nop sub %rax, %rax movw $0x6162, (%rsi) add $2836, %r9 lea addresses_WC_ht+0x12c7d, %rcx add $36250, %r9 mov (%rcx), %r14 nop nop nop nop nop cmp $56479, %r9 lea addresses_normal_ht+0x14498, %rcx nop nop nop nop cmp $14459, %r10 mov (%rcx), %r9d nop nop nop nop cmp %r9, %r9 lea addresses_A_ht+0x140d4, %r10 nop nop nop sub $14801, %r9 movw $0x6162, (%r10) nop nop sub $4066, %r14 lea addresses_normal_ht+0xc498, %r14 nop nop nop nop nop xor $17439, %rax and $0xffffffffffffffc0, %r14 movntdqa (%r14), %xmm3 vpextrq $1, %xmm3, %rdx nop nop cmp %rdx, %rdx lea addresses_WT_ht+0x5c98, %rax nop add %rsi, %rsi movb (%rax), %dl dec %rdx lea addresses_normal_ht+0x14e98, %rsi lea addresses_A_ht+0x2098, %rdi nop nop nop nop nop inc %r9 mov $7, %rcx rep movsl nop nop nop nop nop xor $54166, %r10 lea addresses_WT_ht+0x1b498, %rsi lea addresses_normal_ht+0x1298, %rdi nop nop nop nop nop sub %r14, %r14 mov $106, %rcx rep movsq and $11810, %r14 pop %rsi pop %rdx pop %rdi pop %rcx pop %rax pop %r9 pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r11 push %r12 push %r13 push %rax push %rbx push %rdi // Store lea addresses_RW+0x1cf88, %rax nop nop nop nop dec %r12 movw $0x5152, (%rax) nop nop nop nop sub %r11, %r11 // Load lea addresses_RW+0x12860, %rbx nop dec %r10 vmovups (%rbx), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %r12 nop cmp $38908, %rdi // Store lea addresses_US+0x1d498, %r12 xor $57806, %rax movw $0x5152, (%r12) nop nop dec %rbx // Faulty Load lea addresses_US+0x1d498, %r13 nop nop nop nop nop and $43733, %rbx vmovups (%r13), %ymm6 vextracti128 $1, %ymm6, %xmm6 vpextrq $0, %xmm6, %r12 lea oracles, %rdi and $0xff, %r12 shlq $12, %r12 mov (%rdi,%r12,1), %r12 pop %rdi pop %rbx pop %rax pop %r13 pop %r12 pop %r11 pop %r10 ret /* <gen_faulty_load> [REF] {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_RW', 'size': 2, 'AVXalign': False}} {'src': {'same': False, 'congruent': 3, 'NT': False, 'type': 'addresses_RW', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 2, 'AVXalign': False}} [Faulty Load] {'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_US', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': True, 'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': False}} {'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_normal_ht', 'size': 4, 'AVXalign': False}, 'OP': 'LOAD'} {'OP': 'STOR', 'dst': {'same': False, 'congruent': 1, 'NT': False, 'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False}} {'src': {'same': False, 'congruent': 11, 'NT': True, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'same': False, 'congruent': 11, 'NT': False, 'type': 'addresses_WT_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_A_ht', 'congruent': 9, 'same': False}} {'src': {'type': 'addresses_WT_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_normal_ht', 'congruent': 9, 'same': False}} {'00': 21783, '49': 46} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
35.368421
2,999
0.656399
d156d2258e97fb781081d94f2ee29baec7e0f876
6,548
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_826.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_826.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_zr_/i9-9900K_12_0xca.log_21829_826.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r14 push %r15 push %r8 push %r9 push %rax push %rbx push %rcx push %rdi push %rsi lea addresses_D_ht+0x3c9a, %r14 nop nop nop and $28807, %rax movw $0x6162, (%r14) nop sub $56337, %rbx lea addresses_normal_ht+0x4c9a, %rbx lfence mov (%rbx), %r8w nop nop nop nop nop dec %r8 lea addresses_UC_ht+0xc49a, %r8 nop cmp %rdi, %rdi mov $0x6162636465666768, %r9 movq %r9, %xmm2 vmovups %ymm2, (%r8) nop and $26683, %rdi lea addresses_WT_ht+0xa49a, %r9 nop xor $23707, %r14 mov $0x6162636465666768, %r15 movq %r15, (%r9) nop nop nop nop nop cmp $35703, %rax lea addresses_A_ht+0x1ecf2, %rbx add $54876, %r14 movb (%rbx), %r9b nop nop nop nop sub %rax, %rax lea addresses_A_ht+0x309a, %r9 clflush (%r9) nop sub %rdi, %rdi mov $0x6162636465666768, %r8 movq %r8, %xmm5 and $0xffffffffffffffc0, %r9 movaps %xmm5, (%r9) nop nop nop nop xor %r9, %r9 lea addresses_normal_ht+0x1349a, %rax nop cmp %r9, %r9 mov (%rax), %rbx nop nop nop nop cmp %r14, %r14 lea addresses_A_ht+0x10c9a, %rbx dec %r9 movb (%rbx), %r8b nop nop nop xor $45750, %r9 lea addresses_UC_ht+0x1c49a, %rsi lea addresses_WT_ht+0x895a, %rdi nop nop nop nop sub $26489, %rax mov $64, %rcx rep movsb cmp $30752, %rsi lea addresses_UC_ht+0xba1a, %r15 nop add $33094, %r9 movb (%r15), %cl nop nop nop sub %r14, %r14 lea addresses_UC_ht+0x1482a, %r8 nop nop nop nop inc %rax movl $0x61626364, (%r8) nop cmp $62147, %r8 pop %rsi pop %rdi pop %rcx pop %rbx pop %rax pop %r9 pop %r8 pop %r15 pop %r14 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r8 push %rax push %rcx push %rdx // Faulty Load lea addresses_UC+0x149a, %rdx nop nop nop xor $29785, %r14 mov (%rdx), %r8d lea oracles, %rdx and $0xff, %r8 shlq $12, %r8 mov (%rdx,%r8,1), %r8 pop %rdx pop %rcx pop %rax pop %r8 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_UC', 'same': False, 'AVXalign': False, 'congruent': 0}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 4, 'NT': False, 'type': 'addresses_UC', 'same': True, 'AVXalign': True, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_WT_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'OP': 'STOR', 'dst': {'size': 16, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': True, 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': True, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 10}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 11}} {'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_UC_ht', 'congruent': 11}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 6}} {'OP': 'LOAD', 'src': {'size': 1, 'NT': True, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 3}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
38.069767
2,999
0.655773
cae07296a36e22cd3105bb2551f005831bee03fd
430
asm
Assembly
programs/oeis/100/A100007.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/100/A100007.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/100/A100007.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A100007: Number of unitary divisors of 2n-1 (d such that d divides 2n-1, GCD(d,(2n-1)/d)=1). Bisection of A034444. ; 1,2,2,2,2,2,2,4,2,2,4,2,2,2,2,2,4,4,2,4,2,2,4,2,2,4,2,4,4,2,2,4,4,2,4,2,2,4,4,2,2,2,4,4,2,4,4,4,2,4,2,2,8,2,2,4,2,4,4,4,2,4,2,2,4,2,4,4,2,2,4,4,4,4,2,2,4,4,2,4,4,2,8,2,2,4,2,4,4,2,2,4,4,4,4,2,2,8,2,2,4,4,4,4,4 mul $0,2 cal $0,309307 ; Number of unitary divisors of n (excluding 1). add $0,4 mov $1,$0 sub $1,3
47.777778
211
0.588372
3df1335bef3cdf913aa7dd0ad25755a8656378d7
3,526
asm
Assembly
bootloader/startup.asm
DKrepsky/CC3200-Bootloader
1ec3e176a902199b3e23e9362642665ff34ea6f8
[ "MIT" ]
1
2019-12-16T12:55:40.000Z
2019-12-16T12:55:40.000Z
bootloader/startup.asm
DKrepsky/CC3200-Bootloader
1ec3e176a902199b3e23e9362642665ff34ea6f8
[ "MIT" ]
null
null
null
bootloader/startup.asm
DKrepsky/CC3200-Bootloader
1ec3e176a902199b3e23e9362642665ff34ea6f8
[ "MIT" ]
1
2019-12-16T12:57:24.000Z
2019-12-16T12:57:24.000Z
/* * The MIT License (MIT) * * Copyright (c) 2015 Akenge Engenharia * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ /*! * \file startup.asm * * \brief Startup file for the bootloader. * * This file contains the interrupt vector table, the function to relocate the * bootloader in the SRAM and the function to run and image from another * position in memory. * * Version: 1.0.2 * * Author: David Krepsky */ /*! * \def INITIAL_POS 0x20004000 * * \brief Bootloader image initial position. * * Initial position of the image. By default the TI bootloader will load the * binary file to 0x20004000. */ .set INITIAL_POS, 0x20004000 /*! * \def RELOCATED_POS 0x20000000 * * \brief Bootloader final position. * * Position of the bootloader after the relocation process. */ .set RELOCATED_POS, 0x20000000 /* * Bootloader external main function. */ .extern main /* * External BOOTRun function. */ .extern BOOTRun /*! * \brief Interrupt vector * * Interrupt vector with only the SP and the ResetISR (others aren't used). */ .section .intvecs intVector: .global intVector /* * Stack pointer start at the end of bootloader memory. */ .word 0x20004004 /* * Entry point is the relocator function (added of 0x4000 because of the * initial load position). */ .word Relocator+0x4001 .text /*! * \fn void Relocator (void) * * \brief Move the bootloader from 0x20004000 to 0x20000000. * * This function will copy word by word from 0x20004000 to 0x20000000. Then it * uses Run to execute the relocated bootloader. */ Relocator: .global Relocator .align 4 // r1 = New position in memory ldr r1, =RELOCATED_POS // r2 = Current position in memory ldr r2, =INITIAL_POS // r3 = End Addr for relocated bootloader mov r3, r2 // Loop to move every word from the initial position to the new position. reloc: // Copy from position pointed by r2 to position pointed by r1. ldr r4, [r2] str r4, [r1] // Increment pointers. add r1, r1, #4 add r2, r2, #4 // Check for end. cmp r1,r3 bne reloc // Load the new IntVector table address into r0. ldr r0, =RELOCATED_POS // Load main address into the ResetISR pointer (IntVector[1]). ldr r1, =main str r1, [r0, #4] // Run the relocated main. b BOOTRun .end
26.916031
81
0.671866
63f6a5fb7e821581a160ca9af16dc88b4d7c8062
806
asm
Assembly
oeis/242/A242206.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/242/A242206.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/242/A242206.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A242206: Number of length n binary words which contain 00 and 01 and 10 and 11 as (possibly overlapping) contiguous subsequences. ; Submitted by Jon Maiga ; 4,18,54,138,324,724,1568,3326,6954,14390,29552,60344,122684,248586,502366,1013122,2039804,4101532,8238520,16534390,33161554,66473198,133189224,266771328,534178324,1069385154,2140434438,4283561466,8571479604,17150008420,34311422672,68641300334,137312461434,274673238566,549424653536,1098975799112,2198156266604,4396643693562,8793823215790,17588513420530,35178429658604,70359129123628,140721930871144,281449804172518,562909223399074,1125834004282334,2251693181102808,4503427092227856,9006920087016004 add $0,2 lpb $0 sub $0,1 add $2,$1 mul $4,2 add $4,$1 add $4,$1 add $1,2 add $5,$2 mov $2,$3 add $2,$4 mov $3,$5 lpe mov $0,$2
42.421053
500
0.795285
bba02fe016d83c12cd8e663be35b313ec85f40a6
1,305
asm
Assembly
programs/oeis/103/A103831.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/103/A103831.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/103/A103831.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A103831: For even n, a(n) = n*(n+1), for odd n, a(n) = 2*n + 1. ; 0,3,6,7,20,11,42,15,72,19,110,23,156,27,210,31,272,35,342,39,420,43,506,47,600,51,702,55,812,59,930,63,1056,67,1190,71,1332,75,1482,79,1640,83,1806,87,1980,91,2162,95,2352,99,2550,103,2756,107,2970,111,3192,115,3422,119,3660,123,3906,127,4160,131,4422,135,4692,139,4970,143,5256,147,5550,151,5852,155,6162,159,6480,163,6806,167,7140,171,7482,175,7832,179,8190,183,8556,187,8930,191,9312,195,9702,199,10100,203,10506,207,10920,211,11342,215,11772,219,12210,223,12656,227,13110,231,13572,235,14042,239,14520,243,15006,247,15500,251,16002,255,16512,259,17030,263,17556,267,18090,271,18632,275,19182,279,19740,283,20306,287,20880,291,21462,295,22052,299,22650,303,23256,307,23870,311,24492,315,25122,319,25760,323,26406,327,27060,331,27722,335,28392,339,29070,343,29756,347,30450,351,31152,355,31862,359,32580,363,33306,367,34040,371,34782,375,35532,379,36290,383,37056,387,37830,391,38612,395,39402,399,40200,403,41006,407,41820,411,42642,415,43472,419,44310,423,45156,427,46010,431,46872,435,47742,439,48620,443,49506,447,50400,451,51302,455,52212,459,53130,463,54056,467,54990,471,55932,475,56882,479,57840,483,58806,487,59780,491,60762,495,61752,499 mov $1,2 gcd $1,$0 mov $2,$0 pow $0,$1 mul $1,2 mod $1,3 add $1,$0 sub $1,1 add $1,$2
100.384615
1,151
0.748659
cfbd4aa2957f6fbb1a636571c9beef40ee73fb9c
1,505
asm
Assembly
assembly_code/chp6_05.asm
Nabeegh-Ahmed/BelalHashmi-Assembly-Exercise-Solutions
a990de801ea136395904bd40b6ba162f3e1fa966
[ "MIT" ]
104
2018-08-25T00:01:41.000Z
2022-01-26T14:07:32.000Z
assembly_code/chp6_05.asm
Nabeegh-Ahmed/BelalHashmi-Assembly-Exercise-Solutions
a990de801ea136395904bd40b6ba162f3e1fa966
[ "MIT" ]
5
2021-01-14T14:04:39.000Z
2021-06-14T10:48:35.000Z
assembly_code/chp6_05.asm
Nabeegh-Ahmed/BelalHashmi-Assembly-Exercise-Solutions
a990de801ea136395904bd40b6ba162f3e1fa966
[ "MIT" ]
29
2018-09-19T19:26:34.000Z
2021-04-29T21:01:26.000Z
[org 0x0100] jmp start top: dw 10 ;Starting Row bottom: dw 20 ;Ending Row left: dw 30 ;Starting Column right: dw 60 ;Ending Column start: call clrscr push word [top] push word [bottom] push word [left] push word [right] call drawrect end: mov ax, 0x4c00 int 21h clrscr: mov ax, 0xb800 mov es, ax ;Loading the video memory xor di,di mov ax,0x0720 mov cx,2000 cld rep stosw ret drawrect: push bp mov bp, sp pusha ; bp + 4 = right ; bp + 6 = left ; bp + 8 = bottom ; bp + 10 = top ;Calculating the top left position of the rectangle mov al, 80 mul byte [bp + 10] add ax, [bp + 6] shl ax, 1 mov di, ax push di ;Saving for later use mov ah, 0x07 ;Storing the attribute ;Calculating the width of the rectangle mov cx, [bp + 4] sub cx, [bp + 6] push cx ;Saving for later use mov al, '+' loop1: rep stosw pop bx pop di push bx dec bx shl bx, 1 add di, 160 ;Calculating the height of the rectangle mov cx, [bp + 8] sub cx, [bp + 10] sub cx, 2 ;Excluding the top and bottom row mov al, '|' loop2: mov si, di mov word [es:si], ax add si, bx mov word [es:si], ax sub si, bx add di, 160 loop loop2 pop cx mov al, '-' loop3: rep stosw return: popa pop bp ret 8
11.315789
55
0.528239
505be5b7e3f4d887657dcec374430e9f276511d2
1,830
asm
Assembly
programs/oeis/011/A011377.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/011/A011377.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/011/A011377.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A011377: Expansion of 1/((1-x)*(1-2*x)*(1-x^2)). ; 1,3,8,18,39,81,166,336,677,1359,2724,5454,10915,21837,43682,87372,174753,349515,699040,1398090,2796191,5592393,11184798,22369608,44739229,89478471,178956956,357913926,715827867,1431655749,2863311514,5726623044,11453246105,22906492227,45812984472,91625968962,183251937943,366503875905,733007751830,1466015503680,2932031007381,5864062014783,11728124029588,23456248059198,46912496118419,93824992236861,187649984473746,375299968947516,750599937895057,1501199875790139,3002399751580304,6004799503160634,12009599006321295,24019198012642617,48038396025285262,96076792050570552,192153584101141133,384307168202282295,768614336404564620,1537228672809129270,3074457345618258571,6148914691236517173,12297829382473034378,24595658764946068788,49191317529892137609,98382635059784275251,196765270119568550536,393530540239137101106,787061080478274202247,1574122160956548404529,3148244321913096809094,6296488643826193618224,12592977287652387236485,25185954575304774473007,50371909150609548946052,100743818301219097892142,201487636602438195784323,402975273204876391568685,805950546409752783137410,1611901092819505566274860,3223802185639011132549761,6447604371278022265099563,12895208742556044530199168,25790417485112089060398378,51580834970224178120796799,103161669940448356241593641,206323339880896712483187326,412646679761793424966374696,825293359523586849932749437,1650586719047173699865498919,3301173438094347399730997884,6602346876188694799461995814,13204693752377389598923991675,26409387504754779197847983397,52818775009509558395695966842,105637550019019116791391933732,211275100038038233582783867513,422550200076076467165567735075,845100400152152934331135470200,1690200800304305868662270940450 add $0,1 mov $2,$0 add $0,3 mov $1,2 pow $1,$0 div $1,3 sub $1,$2 div $1,2 sub $1,1 mov $0,$1
130.714286
1,683
0.906557
dd4e91fb0ed5ee27f4e262ff4c1c573d052f9d4f
8,067
asm
Assembly
Transynther/x86/_processed/AVXALIGN/_st_sm_/i3-7100_9_0x84_notsx.log_21829_2504.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/AVXALIGN/_st_sm_/i3-7100_9_0x84_notsx.log_21829_2504.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/AVXALIGN/_st_sm_/i3-7100_9_0x84_notsx.log_21829_2504.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r12 push %r15 push %r9 push %rcx push %rdi push %rdx push %rsi lea addresses_WC_ht+0x1d38d, %rsi lea addresses_WT_ht+0x1e39, %rdi nop nop nop nop nop add %r15, %r15 mov $29, %rcx rep movsl nop dec %r10 lea addresses_WT_ht+0x87d5, %r15 nop nop nop nop cmp $13724, %r10 mov (%r15), %esi mfence lea addresses_A_ht+0x1380d, %rsi lea addresses_normal_ht+0x2da7, %rdi nop nop nop nop nop inc %r12 mov $19, %rcx rep movsq nop xor %rsi, %rsi lea addresses_WC_ht+0xe81, %r10 nop nop sub $64457, %r9 movw $0x6162, (%r10) nop nop nop xor $4744, %rcx lea addresses_UC_ht+0x170ed, %r12 nop nop nop cmp %r15, %r15 mov $0x6162636465666768, %r10 movq %r10, %xmm5 and $0xffffffffffffffc0, %r12 vmovntdq %ymm5, (%r12) nop nop add %r12, %r12 lea addresses_WT_ht+0xbcf5, %rsi lea addresses_WC_ht+0xac4d, %rdi nop xor %rdx, %rdx mov $91, %rcx rep movsb nop nop nop nop nop add %rcx, %rcx lea addresses_A_ht+0xa80d, %rsi lea addresses_normal_ht+0x11bcd, %rdi nop nop nop nop and %r10, %r10 mov $47, %rcx rep movsw nop nop and $59121, %rcx lea addresses_WT_ht+0x1227d, %r10 nop nop xor %rcx, %rcx mov $0x6162636465666768, %r9 movq %r9, %xmm2 movups %xmm2, (%r10) nop nop sub $610, %rsi lea addresses_UC_ht+0x1280d, %rsi lea addresses_WC_ht+0x126ed, %rdi nop nop sub %r10, %r10 mov $15, %rcx rep movsw cmp $56130, %r15 lea addresses_A_ht+0x1e08d, %r9 nop dec %rdi mov (%r9), %rcx nop nop add $6555, %rcx lea addresses_normal_ht+0xbbbd, %r15 nop nop add $29906, %rsi movb (%r15), %dl sub %r12, %r12 lea addresses_D_ht+0x17c0d, %rdi cmp %r10, %r10 movb $0x61, (%rdi) nop nop nop xor %r15, %r15 pop %rsi pop %rdx pop %rdi pop %rcx pop %r9 pop %r15 pop %r12 pop %r10 ret .global s_faulty_load s_faulty_load: push %r13 push %r14 push %r8 push %rbx push %rcx push %rdi push %rdx // Store lea addresses_normal+0x1e00d, %r14 nop nop nop nop cmp %r13, %r13 mov $0x5152535455565758, %rcx movq %rcx, %xmm4 movups %xmm4, (%r14) nop nop inc %rdx // Store lea addresses_UC+0x470d, %rbx nop nop nop nop xor $18064, %r8 mov $0x5152535455565758, %rdx movq %rdx, (%rbx) and $25214, %r13 // Store lea addresses_normal+0x1e00d, %rbx nop nop nop sub $49255, %rcx mov $0x5152535455565758, %rdi movq %rdi, (%rbx) nop and $10019, %rcx // Store lea addresses_WT+0x1ea59, %r14 nop nop nop add $10932, %rbx movw $0x5152, (%r14) nop nop xor $53466, %rdi // Faulty Load lea addresses_normal+0x1e00d, %r14 nop nop nop nop and $11824, %rcx mov (%r14), %rdi lea oracles, %r8 and $0xff, %rdi shlq $12, %rdi mov (%r8,%rdi,1), %rdi pop %rdx pop %rdi pop %rcx pop %rbx pop %r8 pop %r14 pop %r13 ret /* <gen_faulty_load> [REF] {'src': {'type': 'addresses_normal', 'same': False, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_normal', 'same': True, 'size': 16, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC', 'same': False, 'size': 8, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_normal', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_WT', 'same': False, 'size': 2, 'congruent': 1, 'NT': False, 'AVXalign': True}, 'OP': 'STOR'} [Faulty Load] {'src': {'type': 'addresses_normal', 'same': True, 'size': 8, 'congruent': 0, 'NT': False, 'AVXalign': True}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'type': 'addresses_WC_ht', 'congruent': 7, 'same': False}, 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_WT_ht', 'same': False, 'size': 4, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WC_ht', 'same': False, 'size': 2, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'dst': {'type': 'addresses_UC_ht', 'same': True, 'size': 32, 'congruent': 5, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_WT_ht', 'congruent': 2, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM'} {'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 16, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'src': {'type': 'addresses_UC_ht', 'congruent': 11, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 5, 'same': False}, 'OP': 'REPM'} {'src': {'type': 'addresses_A_ht', 'same': False, 'size': 8, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'} {'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 1, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'} {'58': 21829} 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 58 */
33.6125
2,999
0.657865
2c9a72266e5b2562676d86ce897f0429462cdb22
574
asm
Assembly
programs/oeis/021/A021697.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/021/A021697.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/021/A021697.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A021697: Decimal expansion of 1/693. ; 0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1,4,4,3,0,0,1 mul $0,3 mod $0,18 mov $5,$0 lpb $0 mul $0,2 add $3,$5 sub $0,$3 sub $0,1 add $2,$5 mov $6,$0 lpb $3 lpb $0 mod $0,10 sub $0,1 sub $1,$4 mov $4,$2 lpe add $0,1 mov $3,$1 lpe lpb $0 sub $0,7 mov $6,$7 lpe mov $1,$0 add $1,3 lpe lpb $6 sub $1,$1 sub $6,$3 lpe
16.4
199
0.470383
8bcbed9cbccfbeb1d55dc043376eeb2ea9ca3cdd
5,399
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_582_132.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_582_132.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i7-8650U_0xd2_notsx.log_582_132.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r14 push %r9 push %rax push %rbp push %rcx push %rdi push %rsi lea addresses_UC_ht+0x15726, %r14 clflush (%r14) nop nop nop nop nop add $20634, %r10 movb (%r14), %al nop nop nop sub $62266, %rbp lea addresses_UC_ht+0x95fc, %r10 nop and %r9, %r9 mov $0x6162636465666768, %r11 movq %r11, %xmm6 movups %xmm6, (%r10) and $14457, %r11 lea addresses_WC_ht+0x9526, %rbp nop nop nop nop nop sub $43163, %r12 mov (%rbp), %rax nop sub $35762, %r11 lea addresses_A_ht+0xfd7e, %rbp nop nop nop nop nop and %r12, %r12 movl $0x61626364, (%rbp) nop nop nop nop nop xor $63638, %r14 lea addresses_normal_ht+0x17d26, %r14 nop nop nop nop and %r10, %r10 movw $0x6162, (%r14) nop nop nop xor %r10, %r10 lea addresses_D_ht+0x16b4a, %r10 nop nop nop nop nop and $9260, %r12 movb (%r10), %r14b add $11185, %r11 lea addresses_WC_ht+0x726, %rax nop dec %r9 mov $0x6162636465666768, %r11 movq %r11, %xmm0 movups %xmm0, (%rax) cmp $58984, %r12 lea addresses_WC_ht+0xe994, %r11 nop nop nop nop nop add $59226, %r9 mov (%r11), %bp nop nop nop and %r12, %r12 lea addresses_WC_ht+0x416, %rsi lea addresses_D_ht+0x1d5e6, %rdi nop nop and %r10, %r10 mov $71, %rcx rep movsl nop nop nop xor $27881, %r12 pop %rsi pop %rdi pop %rcx pop %rbp pop %rax pop %r9 pop %r14 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r15 push %rdi push %rdx push %rsi // Store lea addresses_normal+0x12ae6, %rdi nop nop xor $38425, %r12 movw $0x5152, (%rdi) nop and %rdi, %rdi // Store mov $0x2cbb8b0000000526, %rsi dec %rdi movl $0x51525354, (%rsi) nop nop nop nop nop xor $21331, %rdi // Faulty Load mov $0x2cbb8b0000000526, %rdi clflush (%rdi) nop nop nop nop sub %r12, %r12 movups (%rdi), %xmm3 vpextrq $1, %xmm3, %r11 lea oracles, %rdi and $0xff, %r11 shlq $12, %r11 mov (%rdi,%r11,1), %r11 pop %rsi pop %rdx pop %rdi pop %r15 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 32, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal', 'size': 2, 'AVXalign': False, 'NT': True, 'congruent': 6, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_NC', 'size': 4, 'AVXalign': False, 'NT': True, 'congruent': 0, 'same': True}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_NC', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 4, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_UC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_A_ht', 'size': 4, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_normal_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 10, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False, 'NT': True, 'congruent': 1, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 16, 'AVXalign': False, 'NT': False, 'congruent': 9, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_WC_ht', 'size': 2, 'AVXalign': True, 'NT': False, 'congruent': 1, 'same': False}} {'OP': 'REPM', 'src': {'type': 'addresses_WC_ht', 'congruent': 3, 'same': False}, 'dst': {'type': 'addresses_D_ht', 'congruent': 6, 'same': False}} {'00': 582} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
28.267016
1,745
0.652713
1f7b8c8ba522498e30ad685f23cc76a8e8d13f87
752
asm
Assembly
oeis/253/A253457.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/253/A253457.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/253/A253457.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A253457: Indices of centered hexagonal numbers (A003215) which are also centered heptagonal numbers (A069099). ; Submitted by Jon Maiga ; 1,14,351,9100,236237,6133050,159223051,4133666264,107316099801,2786084928550,72330892042487,1877817108176100,48750913920536101,1265645944825762514,32858043651549289251,853043488995455758000,22146272670230300418737,574950045936992355129150,14926554921691570932939151,387515477918043851901288764,10060475870947448578500568701,261184857166715619189113497450,6780745810463658650338450364987,176038206214888409289610595992200,4570212615776634982879537045432201,118649489803977621145578352585245014 mov $2,1 lpb $0 sub $0,1 add $3,1 mov $1,$3 mul $1,24 add $2,$1 add $3,$2 lpe mov $0,$3 div $0,2 add $0,1
44.235294
494
0.844415
bab717b7b20371bfbf94d34504a330517e42e735
443
asm
Assembly
test/asm/006.asm
thesephist/august
ec3c10b51d13bc4bc38ff33243f920d908dcd51d
[ "MIT" ]
13
2020-12-29T09:38:05.000Z
2022-02-27T20:22:17.000Z
test/asm/006.asm
thesephist/august
ec3c10b51d13bc4bc38ff33243f920d908dcd51d
[ "MIT" ]
null
null
null
test/asm/006.asm
thesephist/august
ec3c10b51d13bc4bc38ff33243f920d908dcd51d
[ "MIT" ]
2
2021-08-08T21:46:17.000Z
2022-03-01T07:57:01.000Z
; Hello World pyramid: loops, conditionals, calls _start: mov eax 1 loop: push eax ; load argument and call mov edi eax call print pop eax cmp eax len je exit inc eax jmp loop exit: mov eax 60 mov edi 0 syscall print: mov edx edi mov eax 0x1 mov edi 0x1 mov esi msg syscall mov eax 0x1 mov edi 0x1 mov esi newline mov edx 1 syscall ret section .rodata msg: db "Hello, World!" newline: db 0xa len: eq 13
8.86
49
0.683973
ae45964ea9e7cf95ee43042ec45743340b30b32f
2,096
asm
Assembly
roms/tests/ppu/sprite_hit_tests_2005.10.05/source/01.basics.asm
MrKOSMOS/ANESE
8ae814d615479b1496c98033a1f5bc4da5921c6f
[ "MIT" ]
1,461
2022-02-25T17:44:34.000Z
2022-03-30T06:18:29.000Z
nes/tests/sprite_hit_tests_2005.10.05/source/01.basics.asm
nickmass/mass-nes
9f8652aca403f4338346ad5a27667aa0989f6305
[ "MIT" ]
17
2016-10-30T12:46:35.000Z
2020-01-31T11:34:38.000Z
nes/tests/sprite_hit_tests_2005.10.05/source/01.basics.asm
nickmass/mass-nes
9f8652aca403f4338346ad5a27667aa0989f6305
[ "MIT" ]
47
2016-10-24T00:30:56.000Z
2022-02-10T15:19:41.000Z
; Tests basic sprite 0 hit behavior (nothing timing related). .include "prefix_sprite_hit.a" test_name: .db "SPRITE HIT BASICS",0 .code reset: jsr begin_sprite_hit_tests lda #solid_tile jsr fill_nametable ; Put sprite in middle of screen lda #0 sta sprite_attr ldx #128 ldy #120 jsr set_sprite_xy lda #solid_tile sta sprite_tile lda #2;) Sprite hit isn't working at all ldx #$18 jsr sprite_should_hit lda #$20 sta sprite_attr lda #3;) Should hit even when completely behind background ldx #$18 jsr sprite_should_hit lda #4;) Should miss when background rendering is off ldx #$10 jsr sprite_should_miss lda #5;) Should miss when sprite rendering is off ldx #$08 jsr sprite_should_miss lda #6;) Should miss when all rendering is off ldx #$00 jsr sprite_should_miss lda #blank_tile sta sprite_tile lda #7;) All-transparent sprite should miss ldx #$18 jsr sprite_should_miss lda #$ff sta sprite_attr lda #8;) Only low two palette index bits are relevant ldx #$18 jsr sprite_should_miss lda #1 jsr fill_nametable lda #2 sta sprite_tile lda #0 sta sprite_attr lda #9;) Any non-zero palette index should hit with any other ldx #$18 jsr sprite_should_hit lda #0 jsr fill_nametable lda #10;) Should miss when background is all transparent ldx #$18 jsr sprite_should_miss lda #120 sta sprites + 4 lda #3 sta sprites + 5 lda #0 sta sprites + 6 lda #128 sta sprites + 7 lda #11;) Should always miss other sprites ldx #$18 jsr sprite_should_miss jmp tests_passed
23.032967
69
0.540076
f6b4217c4369e5556c55b18b3b00d3e4133df3b7
314
asm
Assembly
programs/oeis/173/A173072.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/173/A173072.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/173/A173072.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A173072: n-th prime minus n-th even number. ; 2,1,1,1,3,3,5,5,7,11,11,15,17,17,19,23,27,27,31,33,33,37,39,43,49,51,51,53,53,55,67,69,73,73,81,81,85,89,91,95,99,99,107,107,109,109,119,129,131,131,133,137,137,145,149,153,157,157,161,163,163,171,183,185 mov $1,$0 seq $0,40 ; The prime numbers. mul $1,2 sub $0,$1
39.25
206
0.66879
98300c79e6bb68a56bd0279ffda99d4be5742139
1,412
asm
Assembly
programs/oeis/193/A193911.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/193/A193911.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/193/A193911.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A193911: Sums of the diagonals of the matrix formed by listing the h-Stohr sequences in increasing order. ; 1,3,7,14,25,43,69,110,167,255,375,558,805,1179,1681,2438,3451,4975,7011,10070,14153,20283,28461,40734,57103,81663,114415,163550,229069,327355,458409,654998,917123,1310319,1834587,2620998,3669553,5242395,7339525,10485230,14679511,20970943,29359527,41942414,58719605,83885403,117439809,167771430,234880267,335543535,469761235,671087798,939523225,1342176379,1879047261,2684353598,3758095391,5368708095,7516191711,10737417150,15032384413,21474835323,30064769881,42949671734,60129540883,85899344623,120259082955,171798690470,240518167169,343597382235,481036335669,687194765838,962072672743,1374389533119,1924145346967,2748779067758,3848290695493,5497558137115,7696581392625,10995116275910,15393162786971,21990232553583,30786325575747,43980465109014,61572651153385,87960930219963,123145302308749,175921860441950,246290604619567,351843720886015,492581209241295,703687441774238,985162418484845,1407374883550779,1970324836972041,2814749767103958,3940649673946531,5629499534210415,7881299347895611,11258999068423430 mov $2,$0 add $2,1 mov $3,$0 lpb $2 mov $0,$3 sub $2,1 sub $0,$2 mov $4,$0 add $4,1 mov $5,0 mov $6,$0 lpb $4 mov $0,$6 sub $4,1 sub $0,$4 trn $0,1 seq $0,97110 ; Expansion of (1 + 2x - 2x^3) / (1 - 3x^2 + 2x^4). add $5,$0 lpe add $1,$5 lpe mov $0,$1
54.307692
1,007
0.796034
340434e510ce4e2b323563122ba59d66d165c37e
1,086
asm
Assembly
programs/oeis/016/A016885.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/016/A016885.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
programs/oeis/016/A016885.asm
jmorken/loda
99c09d2641e858b074f6344a352d13bc55601571
[ "Apache-2.0" ]
null
null
null
; A016885: a(n) = 5*n + 3. ; 3,8,13,18,23,28,33,38,43,48,53,58,63,68,73,78,83,88,93,98,103,108,113,118,123,128,133,138,143,148,153,158,163,168,173,178,183,188,193,198,203,208,213,218,223,228,233,238,243,248,253,258,263,268,273,278,283,288,293,298,303,308,313,318,323,328,333,338,343,348,353,358,363,368,373,378,383,388,393,398,403,408,413,418,423,428,433,438,443,448,453,458,463,468,473,478,483,488,493,498,503,508,513,518,523,528,533,538,543,548,553,558,563,568,573,578,583,588,593,598,603,608,613,618,623,628,633,638,643,648,653,658,663,668,673,678,683,688,693,698,703,708,713,718,723,728,733,738,743,748,753,758,763,768,773,778,783,788,793,798,803,808,813,818,823,828,833,838,843,848,853,858,863,868,873,878,883,888,893,898,903,908,913,918,923,928,933,938,943,948,953,958,963,968,973,978,983,988,993,998,1003,1008,1013,1018,1023,1028,1033,1038,1043,1048,1053,1058,1063,1068,1073,1078,1083,1088,1093,1098,1103,1108,1113,1118,1123,1128,1133,1138,1143,1148,1153,1158,1163,1168,1173,1178,1183,1188,1193,1198,1203,1208,1213,1218,1223,1228,1233,1238,1243,1248 mov $1,$0 mul $1,5 add $1,3
155.142857
1,029
0.741252
1ceeb1c67f7f055c96850d15bbecde113ca46176
174
asm
Assembly
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_f_getpos_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
640
2017-01-14T23:33:45.000Z
2022-03-30T11:28:42.000Z
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_f_getpos_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
1,600
2017-01-15T16:12:02.000Z
2022-03-31T12:11:12.000Z
libsrc/_DEVELOPMENT/arch/zxn/esxdos/c/sdcc_iy/esx_f_getpos_fastcall.asm
jpoikela/z88dk
7108b2d7e3a98a77de99b30c9a7c9199da9c75cb
[ "ClArtistic" ]
215
2017-01-17T10:43:03.000Z
2022-03-23T17:25:02.000Z
; uint32_t esx_f_fgetpos(unsigned char handle) SECTION code_esxdos PUBLIC _esx_f_getpos_fastcall EXTERN asm_esx_f_fgetpos defc _esx_f_getpos_fastcall = asm_esx_f_fgetpos
17.4
47
0.867816
deed63d81e84e055462e9b09da52e684d9c540f6
419
asm
Assembly
ex_mov_string.asm
inothnagel/asm
66e05198cbc989ec0047b7ebcdffb61483309331
[ "MIT" ]
null
null
null
ex_mov_string.asm
inothnagel/asm
66e05198cbc989ec0047b7ebcdffb61483309331
[ "MIT" ]
null
null
null
ex_mov_string.asm
inothnagel/asm
66e05198cbc989ec0047b7ebcdffb61483309331
[ "MIT" ]
null
null
null
; Sandbox asm file template to start experimenting from SECTION .data SECTION .text global _start _start: nop mov eax,'WXYZ' ; You can use a string as an immediate value ; in a soure operand. Debugger will show 0x5A595857 ; which is the binary ascii equivalent. mov eax,1 ; Code for Exit Syscall mov ebx,0 ; Return a code of zero int 80H ; Make kernel call SECTION .bss
19.952381
62
0.677804
468b0ddffb0a6b8b7719ebfad9876b7fd11d7fbb
2,382
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_195_1023.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_195_1023.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-8650U_0xd2_notsx.log_195_1023.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r11 push %r12 push %r15 push %r9 push %rbp push %rcx lea addresses_A_ht+0xaa3a, %r10 clflush (%r10) nop xor %r11, %r11 mov (%r10), %cx nop nop nop nop sub %r12, %r12 lea addresses_UC_ht+0x174aa, %r11 nop xor %rbp, %rbp mov (%r11), %r15w nop nop nop and %r11, %r11 lea addresses_WC_ht+0xeeea, %r11 add $19514, %r9 mov $0x6162636465666768, %rcx movq %rcx, %xmm5 vmovups %ymm5, (%r11) nop nop inc %rcx pop %rcx pop %rbp pop %r9 pop %r15 pop %r12 pop %r11 pop %r10 ret .global s_faulty_load s_faulty_load: push %r15 push %r8 push %r9 push %rbp push %rbx push %rdx // Store lea addresses_D+0x83ca, %r15 sub $16463, %rbx mov $0x5152535455565758, %r8 movq %r8, (%r15) nop nop nop nop xor $8974, %rbp // Faulty Load lea addresses_PSE+0x1beea, %r9 nop nop nop nop add %r8, %r8 mov (%r9), %dx lea oracles, %r8 and $0xff, %rdx shlq $12, %rdx mov (%r8,%rdx,1), %rdx pop %rdx pop %rbx pop %rbp pop %r9 pop %r8 pop %r15 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 4, 'AVXalign': True, 'NT': False, 'congruent': 0, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_D', 'size': 8, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} [Faulty Load] {'OP': 'LOAD', 'src': {'type': 'addresses_PSE', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 0, 'same': True}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'type': 'addresses_A_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 2, 'same': False}} {'OP': 'LOAD', 'src': {'type': 'addresses_UC_ht', 'size': 2, 'AVXalign': False, 'NT': False, 'congruent': 5, 'same': False}} {'OP': 'STOR', 'dst': {'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': False, 'NT': False, 'congruent': 11, 'same': False}} {'33': 195} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
24.060606
584
0.648615
2d938b5ffef06ccd55fed8d4dba8ee0fb528fbaa
6,142
asm
Assembly
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca_notsx.log_3_1794.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca_notsx.log_3_1794.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_sm_/i9-9900K_12_0xca_notsx.log_3_1794.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r13 push %r8 push %r9 push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0xd51b, %r8 nop nop nop nop nop add $56627, %rbx movb $0x61, (%r8) nop nop nop nop add %r9, %r9 lea addresses_WC_ht+0x1eb03, %rbp and %r8, %r8 mov (%rbp), %rdi nop and $34351, %rdi lea addresses_WC_ht+0x1cd93, %rdi nop nop nop nop nop add %rdx, %rdx vmovups (%rdi), %ymm4 vextracti128 $0, %ymm4, %xmm4 vpextrq $1, %xmm4, %rbx nop nop nop and %rbx, %rbx lea addresses_WT_ht+0x1857b, %rdx nop nop nop nop nop add $35024, %r8 movl $0x61626364, (%rdx) nop nop nop nop nop sub $19719, %rdi lea addresses_normal_ht+0x6a7b, %rsi lea addresses_D_ht+0x17b, %rdi nop dec %r13 mov $98, %rcx rep movsw and $581, %rbp lea addresses_UC_ht+0xb37b, %rsi lea addresses_normal_ht+0x707b, %rdi sub %rdx, %rdx mov $22, %rcx rep movsq nop nop sub %rbp, %rbp lea addresses_WT_ht+0x1757b, %rsi lea addresses_WC_ht+0x17c7b, %rdi nop nop cmp %rdx, %rdx mov $121, %rcx rep movsw xor $62947, %rdi lea addresses_A_ht+0x2f7b, %rsi nop nop nop sub %rbp, %rbp movups (%rsi), %xmm7 vpextrq $1, %xmm7, %rdx nop nop nop nop add %rsi, %rsi lea addresses_normal_ht+0x807b, %rsi lea addresses_UC_ht+0x14eab, %rdi sub %r8, %r8 mov $84, %rcx rep movsb nop nop nop inc %r9 lea addresses_A_ht+0x9e4b, %rsi lea addresses_normal_ht+0xda7b, %rdi nop xor $42578, %rbx mov $93, %rcx rep movsw nop nop nop nop nop inc %rdi lea addresses_WC_ht+0x1087b, %rsi lea addresses_WC_ht+0x1a97b, %rdi clflush (%rdi) nop nop nop nop nop xor $46915, %r9 mov $8, %rcx rep movsw xor $38982, %r8 lea addresses_A_ht+0xf13, %r13 nop nop nop cmp %rsi, %rsi mov (%r13), %r9d nop nop nop nop nop xor %rdi, %rdi lea addresses_WT_ht+0x1b37b, %rdi nop add $59995, %rdx mov $0x6162636465666768, %r13 movq %r13, %xmm6 movups %xmm6, (%rdi) nop nop nop cmp %rdx, %rdx lea addresses_D_ht+0xc5fb, %rdi clflush (%rdi) nop nop xor $36088, %r8 movb (%rdi), %r13b nop nop nop nop nop inc %rbx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %r9 pop %r8 pop %r13 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r15 push %rbp push %rcx push %rdi // Store mov $0x6b98c500000007c7, %r12 nop nop nop and $12948, %r15 mov $0x5152535455565758, %rdi movq %rdi, %xmm7 movups %xmm7, (%r12) nop nop nop sub %r13, %r13 // Store lea addresses_PSE+0xc7b, %r15 nop sub $34428, %r11 mov $0x5152535455565758, %r13 movq %r13, (%r15) nop nop and $14476, %rcx // Load lea addresses_A+0xb41b, %r13 nop nop nop nop nop dec %rbp mov (%r13), %cx nop nop nop nop and $2463, %rdi // Store mov $0x4db, %r11 nop nop xor $23274, %rcx mov $0x5152535455565758, %rdi movq %rdi, %xmm2 movups %xmm2, (%r11) nop nop sub %r12, %r12 // Load lea addresses_PSE+0xc7b, %rdi sub %r15, %r15 mov (%rdi), %r11 nop add %rcx, %rcx // Store mov $0x72e1bb000000093b, %r12 sub $62604, %rdi mov $0x5152535455565758, %r13 movq %r13, %xmm6 vmovups %ymm6, (%r12) nop inc %r15 // Faulty Load lea addresses_PSE+0xc7b, %r11 nop nop nop sub %r13, %r13 mov (%r11), %rcx lea oracles, %r13 and $0xff, %rcx shlq $12, %rcx mov (%r13,%rcx,1), %rcx pop %rdi pop %rcx pop %rbp pop %r15 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 2}} {'OP': 'STOR', 'dst': {'same': True, 'type': 'addresses_PSE', 'NT': True, 'AVXalign': False, 'size': 8, 'congruent': 0}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A', 'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 5}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_P', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 5}} {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': True, 'size': 8, 'congruent': 0}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_NC', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 6}} [Faulty Load] {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_PSE', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 4}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 1}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_WC_ht', 'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 2}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 8}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 8, 'type': 'addresses_D_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 6, 'type': 'addresses_UC_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 8, 'type': 'addresses_WT_ht'}, 'dst': {'same': False, 'congruent': 11, 'type': 'addresses_WC_ht'}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_A_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 7, 'type': 'addresses_normal_ht'}, 'dst': {'same': False, 'congruent': 2, 'type': 'addresses_UC_ht'}} {'OP': 'REPM', 'src': {'same': False, 'congruent': 4, 'type': 'addresses_A_ht'}, 'dst': {'same': False, 'congruent': 9, 'type': 'addresses_normal_ht'}} {'OP': 'REPM', 'src': {'same': True, 'congruent': 7, 'type': 'addresses_WC_ht'}, 'dst': {'same': True, 'congruent': 8, 'type': 'addresses_WC_ht'}} {'OP': 'LOAD', 'src': {'same': True, 'type': 'addresses_A_ht', 'NT': True, 'AVXalign': False, 'size': 4, 'congruent': 2}} {'OP': 'STOR', 'dst': {'same': False, 'type': 'addresses_WT_ht', 'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8}} {'OP': 'LOAD', 'src': {'same': False, 'type': 'addresses_D_ht', 'NT': True, 'AVXalign': False, 'size': 1, 'congruent': 7}} {'58': 3} 58 58 58 */
20.610738
152
0.646695
d7ef4930ac202756b0c47daeee795c32b661c990
6,364
asm
Assembly
src/drawer.asm
Gegel85/RemiFlap
00f5970ef388e1748d8f807fced9b0f60c9313c4
[ "MIT" ]
null
null
null
src/drawer.asm
Gegel85/RemiFlap
00f5970ef388e1748d8f807fced9b0f60c9313c4
[ "MIT" ]
null
null
null
src/drawer.asm
Gegel85/RemiFlap
00f5970ef388e1748d8f807fced9b0f60c9313c4
[ "MIT" ]
null
null
null
copyBgTilemap:: ld a, 1 << 3 ld [$FFFA], a ld [$FFFB], a ld hl, VRAMBgMirror ld de, backgroundMap .loop: res 2, h ld a, [de] inc de ld [hl], a xor $FF jr z, .bitSet bit 7, a jr z, .force cp $FF ld a, [$FFFB] jr nz, .writeValue ld b, a ld a, [$FFFA] ld c, a xor a ld [$FFFA], a xor a and c ld a, b jr z, .force jr .writeValue .bitSet: reset $FFFB .force:: ld a, 1 << 3 .writeValue: ld b, a set 2, h ld a, b ld [hli], a bit 4, h jr z, .loop res 2, h ret drawFireColumn:: push hl push bc set 2, h xor a or c ld a, 1 ld de, $20 - 2 jr z, .loopBank1SkipMiddle dec c jr z, .loopBank1SkipTop .loopBank1:: ld [hli], a set 5, a ld [hli], a res 5, a add hl, de bit 4, h jr nz, .next dec c jr nz, .loopBank1 .loopBank1SkipTop:: set 6, a ld [hli], a set 5, a ld [hli], a and ~(1 << 5) & ~(1 << 6) add hl, de .loopBank1SkipMiddle:: inc a push af ld a, [fireColumnHoleSize] ld c, a pop af .loopBank1Middle:: ld [hli], a set 5, a ld [hli], a res 5, a add hl, de dec c jr nz, .loopBank1Middle dec a jr .loopBank1 .next:: pop bc pop hl res 2, h ld e, $20 - 1 xor a or c ld a, $81 jr z, .loopBank0SkipMiddle dec c jr z, .loopBank0SkipTop .loopBank0: ld [hli], a ld [hl], a add hl, de bit 2, h ret nz dec c jr nz, .loopBank0 .loopBank0SkipTop:: ld a, $80 ld [hli], a ld [hl], a add hl, de inc a .loopBank0SkipMiddle:: push af ld a, [fireColumnHoleSize] ld c, a pop af .loopBank0Middle:: ld [hli], a ld [hl], a add hl, de dec c jr nz, .loopBank0Middle dec a ld [hli], a ld [hl], a inc a add hl, de jr .loopBank0 drawScore:: ld hl, score + 1 ld a, [hl] and $F0 jr z, .not4 ld bc, $4403 jr .next .not4:: ld a, [hld] and $F jr z, .not3 ld bc, $4802 jr .next .not3:: ld a, [hl] and $F0 jr z, .not2 ld bc, $4C01 jr .next .not2:: ld bc, $5000 .next:: ld hl, oamSrc + 8 * 4 .loop:: ld a, $18 ld [hli], a ld a, b ld [hli], a add 8 ld b, a bit 1, c jr z, .lower ld a, [score + 1] jr .after .lower:: ld a, [score] .after:: bit 0, c jr z, .noSwap swap a .noSwap:: and $F add $82 ld [hli], a ld a, 3 ld [hli], a xor a or c push af dec c pop af jr nz, .loop bit 4, l ret nz .cleanLoop:: xor a ld [hli], a inc l inc l inc l bit 4, l jr z, .cleanLoop ret bossesSprites:: db $10, $08, $23, $06 db $10, $10, $24, $06 db $10, $18, $23, $26 db $18, $08, $25, $06 db $18, $10, $26, $06 db $18, $18, $25, $26 db $20, $08, $23, $46 db $20, $10, $24, $46 db $20, $18, $23, $66 db $14, $10, $22, $05 db $14, $10, $20, $04 db $1C, $10, $21, $04 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 db $10, $08, $20, $04 db $10, $10, $21, $04 db $18, $08, $22, $04 db $18, $10, $23, $04 db $20, $08, $24, $04 db $20, $10, $25, $04 db $18, $0E, $26, $05 db $1C, $16, $29, $07 db $1F, $0D, $27, $07 db $10, $08, $06, $00 db $10, $08, $06, $00 db $10, $08, $06, $00 db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 displayBoss:: ld a, [currentStage] and 1 sla a sla a sla a sla a sla a sla a ld hl, bossesSprites ld d, 0 ld e, a add hl, de ld de, oamSrc + $1C ld b, $C .loop:: ld a, [bossPos] add [hl] inc hl ld [de], a inc de ld a, [bossPos + 1] add [hl] inc hl ld [de], a inc de ld a, [hli] ld [de], a inc de ld a, [hli] ld [de], a inc de dec b jr nz, .loop ret stageAnimationRumia:: ld hl, bossAnimationRegisters bit 7, [hl] jr nz, .goAway bit 6, [hl] jr z, .ok inc [hl] jr .hideMist .ok:: ld a, [bossPos + 1] cp 100 jr nz, .approach ld a, [hl] inc [hl] or a jr nz, .noPlay push hl ld hl, takeMistSfx call playSfx pop hl .noPlay:: bit 5, a jr z, .flash3 bit 4, a jr z, .flash2 and 3 jr nz, .hideMist jr displayBoss .flash3:: bit 4, a jr z, displayBoss and 3 jr z, .hideMist jr displayBoss .flash2:: and 1 jr z, displayBoss .hideMist:: ld hl, oamSrc + $1C ld b, 9 xor a .loop: ld [hli], a inc hl inc hl inc hl dec b jr nz, .loop ret .approach:: ld a, 1 xor [hl] ld [hl], a ld d, a ld e, $FE ld b, $C jp moveBoss .goAway:: ld a, [bossPos + 1] cp 160 jr z, .hideBoss ld de, $0002 ld b, $C jp moveBoss .hideBoss:: ld de, oamSrc + $1C ld bc, $30 xor a jp fillMemory flanPos2:: db $13, $08, $27, $07 db $1B, $08, $28, $07 stageAnimationFlandre:: ld hl, bossAnimationRegisters ld a, [hl] or a jp z, .arrive dec a jp z, .delay dec a jr z, .changeFlanPos dec a jp z, .delay dec a jr z, .changeLeavateinnPalette bit 0, a jp nz, .delay cp $A jr c, .updateSprite sub $A jr z, .wait dec a dec a jr z, .goAway ret .updateSprite:: inc [hl] inc hl ld [hl], $18 sla a sla a sla a sla a ld c, a ld b, 0 ld hl, altLaevateinns add hl, bc ld b, h ld c, l ld hl, newDmaSrcH ld [hl], b inc l ld [hl], c inc l ld [hl], $82 inc l ld [hl], $70 inc l ld [hl], $01 ret .goAway:: ld de, $0004 ld b, $C call moveBoss ld a, [bossPos + 1] cp 160 ret nz inc [hl] ret .wait:: inc hl inc [hl] bit 6, [hl] ret z xor a ld [hld], a inc [hl] ret .changeLeavateinnPalette:: inc [hl] inc hl ld [hl], $18 ld hl, oamSrc + $3F ld a, 6 ld [hli], a inc hl inc hl inc hl ld [hli], a ret .changeFlanPos:: inc [hl] inc hl ld [hl], $10 startHDMA altFlanPos, $8220, 7 * $10 ld hl, flanPos2 ld de, oamSrc + $3C ld a, [bossPos] ld b, a ld a, [bossPos + 1] ld c, a ld a, [hli] add b ld [de], a inc de ld a, [hli] add c ld [de], a inc de ld a, [hli] ld [de], a inc de ld a, [hli] ld [de], a inc de ld a, [hli] add b ld [de], a inc de ld a, [hli] add c ld [de], a inc de ld a, [hli] ld [de], a inc de ld a, [hli] ld [de], a ld hl, flandreFireSfx call playSfx ret .arrive:: ld de, $01FE ld b, $C call moveBoss ld a, [bossPos + 1] cp 120 ret nz ld hl, bossAnimationRegisters inc [hl] ret .delay:: inc hl inc [hl] bit 5, [hl] ret z xor a ld [hld], a inc [hl] ret stageAnimationTable:: dw stageAnimationRumia dw stageAnimationFlandre stageAnimation:: ld hl, stageAnimationTable ld a, [currentStage] and 1 sla a ld d, 0 ld e, a add hl, de ld a, [hli] ld h, [hl] ld l, a jp hl moveBoss:: ld hl, bossPos ld a, [hl] add d ld [hli], a ld a, [hl] add e ld [hli], a ld hl, oamSrc + $1C .loop: ld a, [hl] add d ld [hli], a ld a, [hl] add e ld [hli], a inc hl inc hl dec b jr nz, .loop ret
11.720074
50
0.565525
411052e1023adcf6c120c166b4846aa3b1a5ccb6
168
asm
Assembly
test1.asm
napobear/py6502
bdcc27649d46adf343ad212bf44669ef514b6a84
[ "Apache-2.0" ]
null
null
null
test1.asm
napobear/py6502
bdcc27649d46adf343ad212bf44669ef514b6a84
[ "Apache-2.0" ]
null
null
null
test1.asm
napobear/py6502
bdcc27649d46adf343ad212bf44669ef514b6a84
[ "Apache-2.0" ]
null
null
null
; This is a comment ;So is this. LDY #$DF STY $23 LDY #0 LDY $23 LDA #$34 ROL TAX LDA #$90 ADC #$10 ORA #1 PHA LDA #0 PLA SEC SED
8.842105
20
0.488095
193cb21e1af5e255362b29d5f547cac10f0d8541
760
asm
Assembly
oeis/239/A239024.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/239/A239024.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/239/A239024.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A239024: Number of n X 2 0..2 arrays with no element equal to the sum of elements to its left or one plus the sum of elements above it, modulo 3. ; Submitted by Christian Krause ; 1,3,4,11,16,43,64,171,256,683,1024,2731,4096,10923,16384,43691,65536,174763,262144,699051,1048576,2796203,4194304,11184811,16777216,44739243,67108864,178956971,268435456,715827883,1073741824,2863311531,4294967296,11453246123,17179869184,45812984491,68719476736,183251937963,274877906944,733007751851,1099511627776,2932031007403,4398046511104,11728124029611,17592186044416,46912496118443,70368744177664,187649984473771,281474976710656,750599937895083,1125899906842624,3002399751580331 mov $1,2 pow $1,$0 mod $0,2 add $0,3 mul $1,2 add $1,2 mul $1,$0 mov $0,$1 div $0,6 sub $0,1
50.666667
485
0.813158
1df3fc89bacf42bef828fa5f5b4d7a6387265e31
662
asm
Assembly
libsrc/z80_crt0s/gbz80/sccz80/l_case.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
38
2021-06-18T12:56:15.000Z
2022-03-12T20:38:40.000Z
libsrc/z80_crt0s/gbz80/sccz80/l_case.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
2
2021-06-20T16:28:12.000Z
2021-11-17T21:33:56.000Z
libsrc/z80_crt0s/gbz80/sccz80/l_case.asm
Frodevan/z88dk
f27af9fe840ff995c63c80a73673ba7ee33fffac
[ "ClArtistic" ]
6
2021-06-18T18:18:36.000Z
2021-12-22T08:01:32.000Z
SECTION code_crt0_sccz80 PUBLIC l_case ; Entry: hl = value to switch on ; (sp) = switch table (i.e. the return address) .l_case ld d,h ;After de = switch value ld e,l pop hl ;hl = switch table .swloop ld c,(hl) inc hl ld b,(hl) ;bc -> case addr, else 0 inc hl ld a,b or c jr z,swend ;default or continuation code ld a,(hl+) cp e ld a,(hl+) jr nz,swloop cp d jr nz,swloop ld h,b ;cases matched ld l,c .swend jp (hl)
20.6875
61
0.429003
7abb4767edea8f5231760845c375fe08690a57bf
3,678
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1935.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1935.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1935.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: ret .global s_faulty_load s_faulty_load: push %r14 push %r15 push %rax push %rbp push %rsi // Faulty Load lea addresses_normal+0xefef, %rsi xor $33330, %rbp mov (%rsi), %rax lea oracles, %r15 and $0xff, %rax shlq $12, %rax mov (%r15,%rax,1), %rax pop %rsi pop %rbp pop %rax pop %r15 pop %r14 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 0, 'same': False, 'type': 'addresses_normal'}, 'OP': 'LOAD'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 0, 'same': True, 'type': 'addresses_normal'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'34': 21829} 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 */
96.789474
2,999
0.664492
2dcfee4ce184112669ba49f51b9a33af8bdd48f9
5,535
asm
Assembly
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_654.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_654.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NC/_zr_/i9-9900K_12_0xca.log_21829_654.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r10 push %r14 push %rbx push %rcx lea addresses_D_ht+0x8257, %r10 nop nop nop nop nop xor $19430, %rcx vmovups (%r10), %ymm1 vextracti128 $0, %ymm1, %xmm1 vpextrq $0, %xmm1, %rbx nop nop xor %r14, %r14 pop %rcx pop %rbx pop %r14 pop %r10 ret .global s_faulty_load s_faulty_load: push %r10 push %r12 push %r8 push %rax push %rbp push %rdx push %rsi // Load mov $0x19a44b0000000bc7, %r10 nop and %rsi, %rsi movups (%r10), %xmm1 vpextrq $1, %xmm1, %rbp nop nop nop nop and $57138, %r8 // Load lea addresses_A+0x12237, %rbp clflush (%rbp) nop nop nop nop nop xor $65450, %r12 mov (%rbp), %rdx nop nop nop nop nop sub %rdx, %rdx // Store lea addresses_PSE+0x10837, %r10 nop nop xor %r12, %r12 mov $0x5152535455565758, %rsi movq %rsi, (%r10) cmp $26644, %rdx // Store lea addresses_PSE+0x137f7, %r12 clflush (%r12) nop nop nop nop nop inc %rsi movl $0x51525354, (%r12) nop cmp $47556, %r8 // Store lea addresses_D+0x8837, %r8 nop nop cmp $44435, %rsi movl $0x51525354, (%r8) nop nop sub %r8, %r8 // Store lea addresses_A+0x1355b, %rsi nop nop add %r10, %r10 movb $0x51, (%rsi) sub $10619, %r8 // Faulty Load mov $0x73323c0000000e37, %r8 inc %rdx movb (%r8), %al lea oracles, %r10 and $0xff, %rax shlq $12, %rax mov (%r10,%rax,1), %rax pop %rsi pop %rdx pop %rbp pop %rax pop %r8 pop %r12 pop %r10 ret /* <gen_faulty_load> [REF] {'OP': 'LOAD', 'src': {'size': 2, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 0}} {'OP': 'LOAD', 'src': {'size': 16, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 1}} {'OP': 'LOAD', 'src': {'size': 8, 'NT': True, 'type': 'addresses_A', 'same': False, 'AVXalign': True, 'congruent': 7}} {'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 9}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_PSE', 'same': False, 'AVXalign': False, 'congruent': 5}} {'OP': 'STOR', 'dst': {'size': 4, 'NT': False, 'type': 'addresses_D', 'same': False, 'AVXalign': False, 'congruent': 8}} {'OP': 'STOR', 'dst': {'size': 1, 'NT': False, 'type': 'addresses_A', 'same': True, 'AVXalign': False, 'congruent': 2}} [Faulty Load] {'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_NC', 'same': True, 'AVXalign': False, 'congruent': 0}} <gen_prepare_buffer> {'OP': 'LOAD', 'src': {'size': 32, 'NT': False, 'type': 'addresses_D_ht', 'same': False, 'AVXalign': False, 'congruent': 4}} {'00': 21829} 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 */
39.820144
2,999
0.652033
04b5cf47abf713683f612498244ff2d7fa7a2ad1
793
asm
Assembly
oeis/092/A092074.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/092/A092074.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/092/A092074.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A092074: Primes congruent to 3 mod 17. ; Submitted by Jon Maiga ; 3,37,71,139,173,241,479,547,683,751,853,887,1091,1193,1499,1567,1601,1669,1873,1907,2111,2179,2213,2281,2383,2417,2621,2689,2791,2927,3301,3539,3607,3709,3947,4049,4219,4253,4423,4457,4729,4831,4933,4967,5171,5273,5443,5477,5647,5749,5783,5851,5953,5987,6089,6361,6599,6701,6803,6871,7109,7177,7211,7517,7687,7789,7823,7993,8231,8537,8707,8741,9013,9319,9421,9829,9931,10067,10169,10271,10781,10883,11087,11257,11393,11597,11699,11801,11903,11971,12073,12107,12277,12379,12413,12583,12821,12889 mov $2,$0 pow $2,2 mov $4,2 lpb $2 mov $3,$4 seq $3,10051 ; Characteristic function of primes: 1 if n is prime, else 0. sub $0,$3 mov $1,$0 max $1,0 cmp $1,$0 mul $2,$1 sub $2,1 add $4,34 lpe mov $0,$4 add $0,1
37.761905
496
0.723834
8dce8ccfc58f8efbd0fee5fe4bab9af4810d6bf0
551,646
asm
Assembly
kernel.asm
exceldeo/FP_SISOP20_E02
2469b8ca7b14fe1b01f09941456b442992f0a9fe
[ "MIT-0" ]
null
null
null
kernel.asm
exceldeo/FP_SISOP20_E02
2469b8ca7b14fe1b01f09941456b442992f0a9fe
[ "MIT-0" ]
null
null
null
kernel.asm
exceldeo/FP_SISOP20_E02
2469b8ca7b14fe1b01f09941456b442992f0a9fe
[ "MIT-0" ]
null
null
null
kernel: file format elf32-i386 Disassembly of section .text: 80100000 <multiboot_header>: 80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh 80100006: 00 00 add %al,(%eax) 80100008: fe 4f 52 decb 0x52(%edi) 8010000b: e4 .byte 0xe4 8010000c <entry>: 8010000c: 0f 20 e0 mov %cr4,%eax 8010000f: 83 c8 10 or $0x10,%eax 80100012: 0f 22 e0 mov %eax,%cr4 80100015: b8 00 90 10 00 mov $0x109000,%eax 8010001a: 0f 22 d8 mov %eax,%cr3 8010001d: 0f 20 c0 mov %cr0,%eax 80100020: 0d 00 00 01 80 or $0x80010000,%eax 80100025: 0f 22 c0 mov %eax,%cr0 80100028: bc c0 b5 10 80 mov $0x8010b5c0,%esp 8010002d: b8 a0 2e 10 80 mov $0x80102ea0,%eax 80100032: ff e0 jmp *%eax 80100034: 66 90 xchg %ax,%ax 80100036: 66 90 xchg %ax,%ax 80100038: 66 90 xchg %ax,%ax 8010003a: 66 90 xchg %ax,%ax 8010003c: 66 90 xchg %ax,%ax 8010003e: 66 90 xchg %ax,%ax 80100040 <binit>: struct buf head; } bcache; void binit(void) { 80100040: 55 push %ebp 80100041: 89 e5 mov %esp,%ebp 80100043: 53 push %ebx //PAGEBREAK! // Create linked list of buffers bcache.head.prev = &bcache.head; bcache.head.next = &bcache.head; for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 80100044: bb f4 b5 10 80 mov $0x8010b5f4,%ebx { 80100049: 83 ec 0c sub $0xc,%esp initlock(&bcache.lock, "bcache"); 8010004c: 68 c0 6e 10 80 push $0x80106ec0 80100051: 68 c0 b5 10 80 push $0x8010b5c0 80100056: e8 a5 41 00 00 call 80104200 <initlock> bcache.head.prev = &bcache.head; 8010005b: c7 05 0c fd 10 80 bc movl $0x8010fcbc,0x8010fd0c 80100062: fc 10 80 bcache.head.next = &bcache.head; 80100065: c7 05 10 fd 10 80 bc movl $0x8010fcbc,0x8010fd10 8010006c: fc 10 80 8010006f: 83 c4 10 add $0x10,%esp 80100072: ba bc fc 10 80 mov $0x8010fcbc,%edx 80100077: eb 09 jmp 80100082 <binit+0x42> 80100079: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80100080: 89 c3 mov %eax,%ebx b->next = bcache.head.next; b->prev = &bcache.head; initsleeplock(&b->lock, "buffer"); 80100082: 8d 43 0c lea 0xc(%ebx),%eax 80100085: 83 ec 08 sub $0x8,%esp b->next = bcache.head.next; 80100088: 89 53 54 mov %edx,0x54(%ebx) b->prev = &bcache.head; 8010008b: c7 43 50 bc fc 10 80 movl $0x8010fcbc,0x50(%ebx) initsleeplock(&b->lock, "buffer"); 80100092: 68 c7 6e 10 80 push $0x80106ec7 80100097: 50 push %eax 80100098: e8 33 40 00 00 call 801040d0 <initsleeplock> bcache.head.next->prev = b; 8010009d: a1 10 fd 10 80 mov 0x8010fd10,%eax for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 801000a2: 83 c4 10 add $0x10,%esp 801000a5: 89 da mov %ebx,%edx bcache.head.next->prev = b; 801000a7: 89 58 50 mov %ebx,0x50(%eax) for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 801000aa: 8d 83 5c 02 00 00 lea 0x25c(%ebx),%eax bcache.head.next = b; 801000b0: 89 1d 10 fd 10 80 mov %ebx,0x8010fd10 for(b = bcache.buf; b < bcache.buf+NBUF; b++){ 801000b6: 3d bc fc 10 80 cmp $0x8010fcbc,%eax 801000bb: 72 c3 jb 80100080 <binit+0x40> } } 801000bd: 8b 5d fc mov -0x4(%ebp),%ebx 801000c0: c9 leave 801000c1: c3 ret 801000c2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801000c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801000d0 <bread>: } // Return a locked buf with the contents of the indicated block. struct buf* bread(uint dev, uint blockno) { 801000d0: 55 push %ebp 801000d1: 89 e5 mov %esp,%ebp 801000d3: 57 push %edi 801000d4: 56 push %esi 801000d5: 53 push %ebx 801000d6: 83 ec 18 sub $0x18,%esp 801000d9: 8b 75 08 mov 0x8(%ebp),%esi 801000dc: 8b 7d 0c mov 0xc(%ebp),%edi acquire(&bcache.lock); 801000df: 68 c0 b5 10 80 push $0x8010b5c0 801000e4: e8 57 42 00 00 call 80104340 <acquire> for(b = bcache.head.next; b != &bcache.head; b = b->next){ 801000e9: 8b 1d 10 fd 10 80 mov 0x8010fd10,%ebx 801000ef: 83 c4 10 add $0x10,%esp 801000f2: 81 fb bc fc 10 80 cmp $0x8010fcbc,%ebx 801000f8: 75 11 jne 8010010b <bread+0x3b> 801000fa: eb 24 jmp 80100120 <bread+0x50> 801000fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80100100: 8b 5b 54 mov 0x54(%ebx),%ebx 80100103: 81 fb bc fc 10 80 cmp $0x8010fcbc,%ebx 80100109: 74 15 je 80100120 <bread+0x50> if(b->dev == dev && b->blockno == blockno){ 8010010b: 3b 73 04 cmp 0x4(%ebx),%esi 8010010e: 75 f0 jne 80100100 <bread+0x30> 80100110: 3b 7b 08 cmp 0x8(%ebx),%edi 80100113: 75 eb jne 80100100 <bread+0x30> b->refcnt++; 80100115: 83 43 4c 01 addl $0x1,0x4c(%ebx) 80100119: eb 3f jmp 8010015a <bread+0x8a> 8010011b: 90 nop 8010011c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi for(b = bcache.head.prev; b != &bcache.head; b = b->prev){ 80100120: 8b 1d 0c fd 10 80 mov 0x8010fd0c,%ebx 80100126: 81 fb bc fc 10 80 cmp $0x8010fcbc,%ebx 8010012c: 75 0d jne 8010013b <bread+0x6b> 8010012e: eb 60 jmp 80100190 <bread+0xc0> 80100130: 8b 5b 50 mov 0x50(%ebx),%ebx 80100133: 81 fb bc fc 10 80 cmp $0x8010fcbc,%ebx 80100139: 74 55 je 80100190 <bread+0xc0> if(b->refcnt == 0 && (b->flags & B_DIRTY) == 0) { 8010013b: 8b 43 4c mov 0x4c(%ebx),%eax 8010013e: 85 c0 test %eax,%eax 80100140: 75 ee jne 80100130 <bread+0x60> 80100142: f6 03 04 testb $0x4,(%ebx) 80100145: 75 e9 jne 80100130 <bread+0x60> b->dev = dev; 80100147: 89 73 04 mov %esi,0x4(%ebx) b->blockno = blockno; 8010014a: 89 7b 08 mov %edi,0x8(%ebx) b->flags = 0; 8010014d: c7 03 00 00 00 00 movl $0x0,(%ebx) b->refcnt = 1; 80100153: c7 43 4c 01 00 00 00 movl $0x1,0x4c(%ebx) release(&bcache.lock); 8010015a: 83 ec 0c sub $0xc,%esp 8010015d: 68 c0 b5 10 80 push $0x8010b5c0 80100162: e8 99 42 00 00 call 80104400 <release> acquiresleep(&b->lock); 80100167: 8d 43 0c lea 0xc(%ebx),%eax 8010016a: 89 04 24 mov %eax,(%esp) 8010016d: e8 9e 3f 00 00 call 80104110 <acquiresleep> 80100172: 83 c4 10 add $0x10,%esp struct buf *b; b = bget(dev, blockno); if((b->flags & B_VALID) == 0) { 80100175: f6 03 02 testb $0x2,(%ebx) 80100178: 75 0c jne 80100186 <bread+0xb6> iderw(b); 8010017a: 83 ec 0c sub $0xc,%esp 8010017d: 53 push %ebx 8010017e: e8 9d 1f 00 00 call 80102120 <iderw> 80100183: 83 c4 10 add $0x10,%esp } return b; } 80100186: 8d 65 f4 lea -0xc(%ebp),%esp 80100189: 89 d8 mov %ebx,%eax 8010018b: 5b pop %ebx 8010018c: 5e pop %esi 8010018d: 5f pop %edi 8010018e: 5d pop %ebp 8010018f: c3 ret panic("bget: no buffers"); 80100190: 83 ec 0c sub $0xc,%esp 80100193: 68 ce 6e 10 80 push $0x80106ece 80100198: e8 f3 01 00 00 call 80100390 <panic> 8010019d: 8d 76 00 lea 0x0(%esi),%esi 801001a0 <bwrite>: // Write b's contents to disk. Must be locked. void bwrite(struct buf *b) { 801001a0: 55 push %ebp 801001a1: 89 e5 mov %esp,%ebp 801001a3: 53 push %ebx 801001a4: 83 ec 10 sub $0x10,%esp 801001a7: 8b 5d 08 mov 0x8(%ebp),%ebx if(!holdingsleep(&b->lock)) 801001aa: 8d 43 0c lea 0xc(%ebx),%eax 801001ad: 50 push %eax 801001ae: e8 fd 3f 00 00 call 801041b0 <holdingsleep> 801001b3: 83 c4 10 add $0x10,%esp 801001b6: 85 c0 test %eax,%eax 801001b8: 74 0f je 801001c9 <bwrite+0x29> panic("bwrite"); b->flags |= B_DIRTY; 801001ba: 83 0b 04 orl $0x4,(%ebx) iderw(b); 801001bd: 89 5d 08 mov %ebx,0x8(%ebp) } 801001c0: 8b 5d fc mov -0x4(%ebp),%ebx 801001c3: c9 leave iderw(b); 801001c4: e9 57 1f 00 00 jmp 80102120 <iderw> panic("bwrite"); 801001c9: 83 ec 0c sub $0xc,%esp 801001cc: 68 df 6e 10 80 push $0x80106edf 801001d1: e8 ba 01 00 00 call 80100390 <panic> 801001d6: 8d 76 00 lea 0x0(%esi),%esi 801001d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801001e0 <brelse>: // Release a locked buffer. // Move to the head of the MRU list. void brelse(struct buf *b) { 801001e0: 55 push %ebp 801001e1: 89 e5 mov %esp,%ebp 801001e3: 56 push %esi 801001e4: 53 push %ebx 801001e5: 8b 5d 08 mov 0x8(%ebp),%ebx if(!holdingsleep(&b->lock)) 801001e8: 83 ec 0c sub $0xc,%esp 801001eb: 8d 73 0c lea 0xc(%ebx),%esi 801001ee: 56 push %esi 801001ef: e8 bc 3f 00 00 call 801041b0 <holdingsleep> 801001f4: 83 c4 10 add $0x10,%esp 801001f7: 85 c0 test %eax,%eax 801001f9: 74 66 je 80100261 <brelse+0x81> panic("brelse"); releasesleep(&b->lock); 801001fb: 83 ec 0c sub $0xc,%esp 801001fe: 56 push %esi 801001ff: e8 6c 3f 00 00 call 80104170 <releasesleep> acquire(&bcache.lock); 80100204: c7 04 24 c0 b5 10 80 movl $0x8010b5c0,(%esp) 8010020b: e8 30 41 00 00 call 80104340 <acquire> b->refcnt--; 80100210: 8b 43 4c mov 0x4c(%ebx),%eax if (b->refcnt == 0) { 80100213: 83 c4 10 add $0x10,%esp b->refcnt--; 80100216: 83 e8 01 sub $0x1,%eax if (b->refcnt == 0) { 80100219: 85 c0 test %eax,%eax b->refcnt--; 8010021b: 89 43 4c mov %eax,0x4c(%ebx) if (b->refcnt == 0) { 8010021e: 75 2f jne 8010024f <brelse+0x6f> // no one is waiting for it. b->next->prev = b->prev; 80100220: 8b 43 54 mov 0x54(%ebx),%eax 80100223: 8b 53 50 mov 0x50(%ebx),%edx 80100226: 89 50 50 mov %edx,0x50(%eax) b->prev->next = b->next; 80100229: 8b 43 50 mov 0x50(%ebx),%eax 8010022c: 8b 53 54 mov 0x54(%ebx),%edx 8010022f: 89 50 54 mov %edx,0x54(%eax) b->next = bcache.head.next; 80100232: a1 10 fd 10 80 mov 0x8010fd10,%eax b->prev = &bcache.head; 80100237: c7 43 50 bc fc 10 80 movl $0x8010fcbc,0x50(%ebx) b->next = bcache.head.next; 8010023e: 89 43 54 mov %eax,0x54(%ebx) bcache.head.next->prev = b; 80100241: a1 10 fd 10 80 mov 0x8010fd10,%eax 80100246: 89 58 50 mov %ebx,0x50(%eax) bcache.head.next = b; 80100249: 89 1d 10 fd 10 80 mov %ebx,0x8010fd10 } release(&bcache.lock); 8010024f: c7 45 08 c0 b5 10 80 movl $0x8010b5c0,0x8(%ebp) } 80100256: 8d 65 f8 lea -0x8(%ebp),%esp 80100259: 5b pop %ebx 8010025a: 5e pop %esi 8010025b: 5d pop %ebp release(&bcache.lock); 8010025c: e9 9f 41 00 00 jmp 80104400 <release> panic("brelse"); 80100261: 83 ec 0c sub $0xc,%esp 80100264: 68 e6 6e 10 80 push $0x80106ee6 80100269: e8 22 01 00 00 call 80100390 <panic> 8010026e: 66 90 xchg %ax,%ax 80100270 <consoleread>: } } int consoleread(struct inode *ip, char *dst, int n) { 80100270: 55 push %ebp 80100271: 89 e5 mov %esp,%ebp 80100273: 57 push %edi 80100274: 56 push %esi 80100275: 53 push %ebx 80100276: 83 ec 28 sub $0x28,%esp 80100279: 8b 7d 08 mov 0x8(%ebp),%edi 8010027c: 8b 75 0c mov 0xc(%ebp),%esi uint target; int c; iunlock(ip); 8010027f: 57 push %edi 80100280: e8 db 14 00 00 call 80101760 <iunlock> target = n; acquire(&cons.lock); 80100285: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp) 8010028c: e8 af 40 00 00 call 80104340 <acquire> while(n > 0){ 80100291: 8b 5d 10 mov 0x10(%ebp),%ebx 80100294: 83 c4 10 add $0x10,%esp 80100297: 31 c0 xor %eax,%eax 80100299: 85 db test %ebx,%ebx 8010029b: 0f 8e a1 00 00 00 jle 80100342 <consoleread+0xd2> while(input.r == input.w){ 801002a1: 8b 15 a0 ff 10 80 mov 0x8010ffa0,%edx 801002a7: 39 15 a4 ff 10 80 cmp %edx,0x8010ffa4 801002ad: 74 2c je 801002db <consoleread+0x6b> 801002af: eb 5f jmp 80100310 <consoleread+0xa0> 801002b1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(myproc()->killed){ release(&cons.lock); ilock(ip); return -1; } sleep(&input.r, &cons.lock); 801002b8: 83 ec 08 sub $0x8,%esp 801002bb: 68 20 a5 10 80 push $0x8010a520 801002c0: 68 a0 ff 10 80 push $0x8010ffa0 801002c5: e8 b6 3a 00 00 call 80103d80 <sleep> while(input.r == input.w){ 801002ca: 8b 15 a0 ff 10 80 mov 0x8010ffa0,%edx 801002d0: 83 c4 10 add $0x10,%esp 801002d3: 3b 15 a4 ff 10 80 cmp 0x8010ffa4,%edx 801002d9: 75 35 jne 80100310 <consoleread+0xa0> if(myproc()->killed){ 801002db: e8 00 35 00 00 call 801037e0 <myproc> 801002e0: 8b 40 24 mov 0x24(%eax),%eax 801002e3: 85 c0 test %eax,%eax 801002e5: 74 d1 je 801002b8 <consoleread+0x48> release(&cons.lock); 801002e7: 83 ec 0c sub $0xc,%esp 801002ea: 68 20 a5 10 80 push $0x8010a520 801002ef: e8 0c 41 00 00 call 80104400 <release> ilock(ip); 801002f4: 89 3c 24 mov %edi,(%esp) 801002f7: e8 84 13 00 00 call 80101680 <ilock> return -1; 801002fc: 83 c4 10 add $0x10,%esp } release(&cons.lock); ilock(ip); return target - n; } 801002ff: 8d 65 f4 lea -0xc(%ebp),%esp return -1; 80100302: b8 ff ff ff ff mov $0xffffffff,%eax } 80100307: 5b pop %ebx 80100308: 5e pop %esi 80100309: 5f pop %edi 8010030a: 5d pop %ebp 8010030b: c3 ret 8010030c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi c = input.buf[input.r++ % INPUT_BUF]; 80100310: 8d 42 01 lea 0x1(%edx),%eax 80100313: a3 a0 ff 10 80 mov %eax,0x8010ffa0 80100318: 89 d0 mov %edx,%eax 8010031a: 83 e0 7f and $0x7f,%eax 8010031d: 0f be 80 20 ff 10 80 movsbl -0x7fef00e0(%eax),%eax if(c == C('D')){ // EOF 80100324: 83 f8 04 cmp $0x4,%eax 80100327: 74 3f je 80100368 <consoleread+0xf8> *dst++ = c; 80100329: 83 c6 01 add $0x1,%esi --n; 8010032c: 83 eb 01 sub $0x1,%ebx if(c == '\n') 8010032f: 83 f8 0a cmp $0xa,%eax *dst++ = c; 80100332: 88 46 ff mov %al,-0x1(%esi) if(c == '\n') 80100335: 74 43 je 8010037a <consoleread+0x10a> while(n > 0){ 80100337: 85 db test %ebx,%ebx 80100339: 0f 85 62 ff ff ff jne 801002a1 <consoleread+0x31> 8010033f: 8b 45 10 mov 0x10(%ebp),%eax release(&cons.lock); 80100342: 83 ec 0c sub $0xc,%esp 80100345: 89 45 e4 mov %eax,-0x1c(%ebp) 80100348: 68 20 a5 10 80 push $0x8010a520 8010034d: e8 ae 40 00 00 call 80104400 <release> ilock(ip); 80100352: 89 3c 24 mov %edi,(%esp) 80100355: e8 26 13 00 00 call 80101680 <ilock> return target - n; 8010035a: 8b 45 e4 mov -0x1c(%ebp),%eax 8010035d: 83 c4 10 add $0x10,%esp } 80100360: 8d 65 f4 lea -0xc(%ebp),%esp 80100363: 5b pop %ebx 80100364: 5e pop %esi 80100365: 5f pop %edi 80100366: 5d pop %ebp 80100367: c3 ret 80100368: 8b 45 10 mov 0x10(%ebp),%eax 8010036b: 29 d8 sub %ebx,%eax if(n < target){ 8010036d: 3b 5d 10 cmp 0x10(%ebp),%ebx 80100370: 73 d0 jae 80100342 <consoleread+0xd2> input.r--; 80100372: 89 15 a0 ff 10 80 mov %edx,0x8010ffa0 80100378: eb c8 jmp 80100342 <consoleread+0xd2> 8010037a: 8b 45 10 mov 0x10(%ebp),%eax 8010037d: 29 d8 sub %ebx,%eax 8010037f: eb c1 jmp 80100342 <consoleread+0xd2> 80100381: eb 0d jmp 80100390 <panic> 80100383: 90 nop 80100384: 90 nop 80100385: 90 nop 80100386: 90 nop 80100387: 90 nop 80100388: 90 nop 80100389: 90 nop 8010038a: 90 nop 8010038b: 90 nop 8010038c: 90 nop 8010038d: 90 nop 8010038e: 90 nop 8010038f: 90 nop 80100390 <panic>: { 80100390: 55 push %ebp 80100391: 89 e5 mov %esp,%ebp 80100393: 56 push %esi 80100394: 53 push %ebx 80100395: 83 ec 30 sub $0x30,%esp } static inline void cli(void) { asm volatile("cli"); 80100398: fa cli cons.locking = 0; 80100399: c7 05 54 a5 10 80 00 movl $0x0,0x8010a554 801003a0: 00 00 00 getcallerpcs(&s, pcs); 801003a3: 8d 5d d0 lea -0x30(%ebp),%ebx 801003a6: 8d 75 f8 lea -0x8(%ebp),%esi cprintf("lapicid %d: panic: ", lapicid()); 801003a9: e8 82 23 00 00 call 80102730 <lapicid> 801003ae: 83 ec 08 sub $0x8,%esp 801003b1: 50 push %eax 801003b2: 68 ed 6e 10 80 push $0x80106eed 801003b7: e8 a4 02 00 00 call 80100660 <cprintf> cprintf(s); 801003bc: 58 pop %eax 801003bd: ff 75 08 pushl 0x8(%ebp) 801003c0: e8 9b 02 00 00 call 80100660 <cprintf> cprintf("\n"); 801003c5: c7 04 24 37 78 10 80 movl $0x80107837,(%esp) 801003cc: e8 8f 02 00 00 call 80100660 <cprintf> getcallerpcs(&s, pcs); 801003d1: 5a pop %edx 801003d2: 8d 45 08 lea 0x8(%ebp),%eax 801003d5: 59 pop %ecx 801003d6: 53 push %ebx 801003d7: 50 push %eax 801003d8: e8 43 3e 00 00 call 80104220 <getcallerpcs> 801003dd: 83 c4 10 add $0x10,%esp cprintf(" %p", pcs[i]); 801003e0: 83 ec 08 sub $0x8,%esp 801003e3: ff 33 pushl (%ebx) 801003e5: 83 c3 04 add $0x4,%ebx 801003e8: 68 01 6f 10 80 push $0x80106f01 801003ed: e8 6e 02 00 00 call 80100660 <cprintf> for(i=0; i<10; i++) 801003f2: 83 c4 10 add $0x10,%esp 801003f5: 39 f3 cmp %esi,%ebx 801003f7: 75 e7 jne 801003e0 <panic+0x50> panicked = 1; // freeze other CPU 801003f9: c7 05 58 a5 10 80 01 movl $0x1,0x8010a558 80100400: 00 00 00 80100403: eb fe jmp 80100403 <panic+0x73> 80100405: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80100409: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80100410 <consputc>: if(panicked){ 80100410: 8b 0d 58 a5 10 80 mov 0x8010a558,%ecx 80100416: 85 c9 test %ecx,%ecx 80100418: 74 06 je 80100420 <consputc+0x10> 8010041a: fa cli 8010041b: eb fe jmp 8010041b <consputc+0xb> 8010041d: 8d 76 00 lea 0x0(%esi),%esi { 80100420: 55 push %ebp 80100421: 89 e5 mov %esp,%ebp 80100423: 57 push %edi 80100424: 56 push %esi 80100425: 53 push %ebx 80100426: 89 c6 mov %eax,%esi 80100428: 83 ec 0c sub $0xc,%esp if(c == BACKSPACE){ 8010042b: 3d 00 01 00 00 cmp $0x100,%eax 80100430: 0f 84 b1 00 00 00 je 801004e7 <consputc+0xd7> uartputc(c); 80100436: 83 ec 0c sub $0xc,%esp 80100439: 50 push %eax 8010043a: e8 81 56 00 00 call 80105ac0 <uartputc> 8010043f: 83 c4 10 add $0x10,%esp asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80100442: bb d4 03 00 00 mov $0x3d4,%ebx 80100447: b8 0e 00 00 00 mov $0xe,%eax 8010044c: 89 da mov %ebx,%edx 8010044e: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010044f: b9 d5 03 00 00 mov $0x3d5,%ecx 80100454: 89 ca mov %ecx,%edx 80100456: ec in (%dx),%al pos = inb(CRTPORT+1) << 8; 80100457: 0f b6 c0 movzbl %al,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 8010045a: 89 da mov %ebx,%edx 8010045c: c1 e0 08 shl $0x8,%eax 8010045f: 89 c7 mov %eax,%edi 80100461: b8 0f 00 00 00 mov $0xf,%eax 80100466: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80100467: 89 ca mov %ecx,%edx 80100469: ec in (%dx),%al 8010046a: 0f b6 d8 movzbl %al,%ebx pos |= inb(CRTPORT+1); 8010046d: 09 fb or %edi,%ebx if(c == '\n') 8010046f: 83 fe 0a cmp $0xa,%esi 80100472: 0f 84 f3 00 00 00 je 8010056b <consputc+0x15b> else if(c == BACKSPACE){ 80100478: 81 fe 00 01 00 00 cmp $0x100,%esi 8010047e: 0f 84 d7 00 00 00 je 8010055b <consputc+0x14b> crt[pos++] = (c&0xff) | 0x0700; // black on white 80100484: 89 f0 mov %esi,%eax 80100486: 0f b6 c0 movzbl %al,%eax 80100489: 80 cc 07 or $0x7,%ah 8010048c: 66 89 84 1b 00 80 0b mov %ax,-0x7ff48000(%ebx,%ebx,1) 80100493: 80 80100494: 83 c3 01 add $0x1,%ebx if(pos < 0 || pos > 25*80) 80100497: 81 fb d0 07 00 00 cmp $0x7d0,%ebx 8010049d: 0f 8f ab 00 00 00 jg 8010054e <consputc+0x13e> if((pos/80) >= 24){ // Scroll up. 801004a3: 81 fb 7f 07 00 00 cmp $0x77f,%ebx 801004a9: 7f 66 jg 80100511 <consputc+0x101> asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801004ab: be d4 03 00 00 mov $0x3d4,%esi 801004b0: b8 0e 00 00 00 mov $0xe,%eax 801004b5: 89 f2 mov %esi,%edx 801004b7: ee out %al,(%dx) 801004b8: b9 d5 03 00 00 mov $0x3d5,%ecx outb(CRTPORT+1, pos>>8); 801004bd: 89 d8 mov %ebx,%eax 801004bf: c1 f8 08 sar $0x8,%eax 801004c2: 89 ca mov %ecx,%edx 801004c4: ee out %al,(%dx) 801004c5: b8 0f 00 00 00 mov $0xf,%eax 801004ca: 89 f2 mov %esi,%edx 801004cc: ee out %al,(%dx) 801004cd: 89 d8 mov %ebx,%eax 801004cf: 89 ca mov %ecx,%edx 801004d1: ee out %al,(%dx) crt[pos] = ' ' | 0x0700; 801004d2: b8 20 07 00 00 mov $0x720,%eax 801004d7: 66 89 84 1b 00 80 0b mov %ax,-0x7ff48000(%ebx,%ebx,1) 801004de: 80 } 801004df: 8d 65 f4 lea -0xc(%ebp),%esp 801004e2: 5b pop %ebx 801004e3: 5e pop %esi 801004e4: 5f pop %edi 801004e5: 5d pop %ebp 801004e6: c3 ret uartputc('\b'); uartputc(' '); uartputc('\b'); 801004e7: 83 ec 0c sub $0xc,%esp 801004ea: 6a 08 push $0x8 801004ec: e8 cf 55 00 00 call 80105ac0 <uartputc> 801004f1: c7 04 24 20 00 00 00 movl $0x20,(%esp) 801004f8: e8 c3 55 00 00 call 80105ac0 <uartputc> 801004fd: c7 04 24 08 00 00 00 movl $0x8,(%esp) 80100504: e8 b7 55 00 00 call 80105ac0 <uartputc> 80100509: 83 c4 10 add $0x10,%esp 8010050c: e9 31 ff ff ff jmp 80100442 <consputc+0x32> memmove(crt, crt+80, sizeof(crt[0])*23*80); 80100511: 52 push %edx 80100512: 68 60 0e 00 00 push $0xe60 pos -= 80; 80100517: 83 eb 50 sub $0x50,%ebx memmove(crt, crt+80, sizeof(crt[0])*23*80); 8010051a: 68 a0 80 0b 80 push $0x800b80a0 8010051f: 68 00 80 0b 80 push $0x800b8000 80100524: e8 d7 3f 00 00 call 80104500 <memmove> memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos)); 80100529: b8 80 07 00 00 mov $0x780,%eax 8010052e: 83 c4 0c add $0xc,%esp 80100531: 29 d8 sub %ebx,%eax 80100533: 01 c0 add %eax,%eax 80100535: 50 push %eax 80100536: 8d 04 1b lea (%ebx,%ebx,1),%eax 80100539: 6a 00 push $0x0 8010053b: 2d 00 80 f4 7f sub $0x7ff48000,%eax 80100540: 50 push %eax 80100541: e8 0a 3f 00 00 call 80104450 <memset> 80100546: 83 c4 10 add $0x10,%esp 80100549: e9 5d ff ff ff jmp 801004ab <consputc+0x9b> panic("pos under/overflow"); 8010054e: 83 ec 0c sub $0xc,%esp 80100551: 68 05 6f 10 80 push $0x80106f05 80100556: e8 35 fe ff ff call 80100390 <panic> if(pos > 0) --pos; 8010055b: 85 db test %ebx,%ebx 8010055d: 0f 84 48 ff ff ff je 801004ab <consputc+0x9b> 80100563: 83 eb 01 sub $0x1,%ebx 80100566: e9 2c ff ff ff jmp 80100497 <consputc+0x87> pos += 80 - pos%80; 8010056b: 89 d8 mov %ebx,%eax 8010056d: b9 50 00 00 00 mov $0x50,%ecx 80100572: 99 cltd 80100573: f7 f9 idiv %ecx 80100575: 29 d1 sub %edx,%ecx 80100577: 01 cb add %ecx,%ebx 80100579: e9 19 ff ff ff jmp 80100497 <consputc+0x87> 8010057e: 66 90 xchg %ax,%ax 80100580 <printint>: { 80100580: 55 push %ebp 80100581: 89 e5 mov %esp,%ebp 80100583: 57 push %edi 80100584: 56 push %esi 80100585: 53 push %ebx 80100586: 89 d3 mov %edx,%ebx 80100588: 83 ec 2c sub $0x2c,%esp if(sign && (sign = xx < 0)) 8010058b: 85 c9 test %ecx,%ecx { 8010058d: 89 4d d4 mov %ecx,-0x2c(%ebp) if(sign && (sign = xx < 0)) 80100590: 74 04 je 80100596 <printint+0x16> 80100592: 85 c0 test %eax,%eax 80100594: 78 5a js 801005f0 <printint+0x70> x = xx; 80100596: c7 45 d4 00 00 00 00 movl $0x0,-0x2c(%ebp) i = 0; 8010059d: 31 c9 xor %ecx,%ecx 8010059f: 8d 75 d7 lea -0x29(%ebp),%esi 801005a2: eb 06 jmp 801005aa <printint+0x2a> 801005a4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi buf[i++] = digits[x % base]; 801005a8: 89 f9 mov %edi,%ecx 801005aa: 31 d2 xor %edx,%edx 801005ac: 8d 79 01 lea 0x1(%ecx),%edi 801005af: f7 f3 div %ebx 801005b1: 0f b6 92 30 6f 10 80 movzbl -0x7fef90d0(%edx),%edx }while((x /= base) != 0); 801005b8: 85 c0 test %eax,%eax buf[i++] = digits[x % base]; 801005ba: 88 14 3e mov %dl,(%esi,%edi,1) }while((x /= base) != 0); 801005bd: 75 e9 jne 801005a8 <printint+0x28> if(sign) 801005bf: 8b 45 d4 mov -0x2c(%ebp),%eax 801005c2: 85 c0 test %eax,%eax 801005c4: 74 08 je 801005ce <printint+0x4e> buf[i++] = '-'; 801005c6: c6 44 3d d8 2d movb $0x2d,-0x28(%ebp,%edi,1) 801005cb: 8d 79 02 lea 0x2(%ecx),%edi 801005ce: 8d 5c 3d d7 lea -0x29(%ebp,%edi,1),%ebx 801005d2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi consputc(buf[i]); 801005d8: 0f be 03 movsbl (%ebx),%eax 801005db: 83 eb 01 sub $0x1,%ebx 801005de: e8 2d fe ff ff call 80100410 <consputc> while(--i >= 0) 801005e3: 39 f3 cmp %esi,%ebx 801005e5: 75 f1 jne 801005d8 <printint+0x58> } 801005e7: 83 c4 2c add $0x2c,%esp 801005ea: 5b pop %ebx 801005eb: 5e pop %esi 801005ec: 5f pop %edi 801005ed: 5d pop %ebp 801005ee: c3 ret 801005ef: 90 nop x = -xx; 801005f0: f7 d8 neg %eax 801005f2: eb a9 jmp 8010059d <printint+0x1d> 801005f4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801005fa: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80100600 <consolewrite>: int consolewrite(struct inode *ip, char *buf, int n) { 80100600: 55 push %ebp 80100601: 89 e5 mov %esp,%ebp 80100603: 57 push %edi 80100604: 56 push %esi 80100605: 53 push %ebx 80100606: 83 ec 18 sub $0x18,%esp 80100609: 8b 75 10 mov 0x10(%ebp),%esi int i; iunlock(ip); 8010060c: ff 75 08 pushl 0x8(%ebp) 8010060f: e8 4c 11 00 00 call 80101760 <iunlock> acquire(&cons.lock); 80100614: c7 04 24 20 a5 10 80 movl $0x8010a520,(%esp) 8010061b: e8 20 3d 00 00 call 80104340 <acquire> for(i = 0; i < n; i++) 80100620: 83 c4 10 add $0x10,%esp 80100623: 85 f6 test %esi,%esi 80100625: 7e 18 jle 8010063f <consolewrite+0x3f> 80100627: 8b 7d 0c mov 0xc(%ebp),%edi 8010062a: 8d 1c 37 lea (%edi,%esi,1),%ebx 8010062d: 8d 76 00 lea 0x0(%esi),%esi consputc(buf[i] & 0xff); 80100630: 0f b6 07 movzbl (%edi),%eax 80100633: 83 c7 01 add $0x1,%edi 80100636: e8 d5 fd ff ff call 80100410 <consputc> for(i = 0; i < n; i++) 8010063b: 39 fb cmp %edi,%ebx 8010063d: 75 f1 jne 80100630 <consolewrite+0x30> release(&cons.lock); 8010063f: 83 ec 0c sub $0xc,%esp 80100642: 68 20 a5 10 80 push $0x8010a520 80100647: e8 b4 3d 00 00 call 80104400 <release> ilock(ip); 8010064c: 58 pop %eax 8010064d: ff 75 08 pushl 0x8(%ebp) 80100650: e8 2b 10 00 00 call 80101680 <ilock> return n; } 80100655: 8d 65 f4 lea -0xc(%ebp),%esp 80100658: 89 f0 mov %esi,%eax 8010065a: 5b pop %ebx 8010065b: 5e pop %esi 8010065c: 5f pop %edi 8010065d: 5d pop %ebp 8010065e: c3 ret 8010065f: 90 nop 80100660 <cprintf>: { 80100660: 55 push %ebp 80100661: 89 e5 mov %esp,%ebp 80100663: 57 push %edi 80100664: 56 push %esi 80100665: 53 push %ebx 80100666: 83 ec 1c sub $0x1c,%esp locking = cons.locking; 80100669: a1 54 a5 10 80 mov 0x8010a554,%eax if(locking) 8010066e: 85 c0 test %eax,%eax locking = cons.locking; 80100670: 89 45 dc mov %eax,-0x24(%ebp) if(locking) 80100673: 0f 85 6f 01 00 00 jne 801007e8 <cprintf+0x188> if (fmt == 0) 80100679: 8b 45 08 mov 0x8(%ebp),%eax 8010067c: 85 c0 test %eax,%eax 8010067e: 89 c7 mov %eax,%edi 80100680: 0f 84 77 01 00 00 je 801007fd <cprintf+0x19d> for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 80100686: 0f b6 00 movzbl (%eax),%eax argp = (uint*)(void*)(&fmt + 1); 80100689: 8d 4d 0c lea 0xc(%ebp),%ecx for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 8010068c: 31 db xor %ebx,%ebx argp = (uint*)(void*)(&fmt + 1); 8010068e: 89 4d e4 mov %ecx,-0x1c(%ebp) for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 80100691: 85 c0 test %eax,%eax 80100693: 75 56 jne 801006eb <cprintf+0x8b> 80100695: eb 79 jmp 80100710 <cprintf+0xb0> 80100697: 89 f6 mov %esi,%esi 80100699: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi c = fmt[++i] & 0xff; 801006a0: 0f b6 16 movzbl (%esi),%edx if(c == 0) 801006a3: 85 d2 test %edx,%edx 801006a5: 74 69 je 80100710 <cprintf+0xb0> 801006a7: 83 c3 02 add $0x2,%ebx switch(c){ 801006aa: 83 fa 70 cmp $0x70,%edx 801006ad: 8d 34 1f lea (%edi,%ebx,1),%esi 801006b0: 0f 84 84 00 00 00 je 8010073a <cprintf+0xda> 801006b6: 7f 78 jg 80100730 <cprintf+0xd0> 801006b8: 83 fa 25 cmp $0x25,%edx 801006bb: 0f 84 ff 00 00 00 je 801007c0 <cprintf+0x160> 801006c1: 83 fa 64 cmp $0x64,%edx 801006c4: 0f 85 8e 00 00 00 jne 80100758 <cprintf+0xf8> printint(*argp++, 10, 1); 801006ca: 8b 45 e4 mov -0x1c(%ebp),%eax 801006cd: ba 0a 00 00 00 mov $0xa,%edx 801006d2: 8d 48 04 lea 0x4(%eax),%ecx 801006d5: 8b 00 mov (%eax),%eax 801006d7: 89 4d e4 mov %ecx,-0x1c(%ebp) 801006da: b9 01 00 00 00 mov $0x1,%ecx 801006df: e8 9c fe ff ff call 80100580 <printint> for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 801006e4: 0f b6 06 movzbl (%esi),%eax 801006e7: 85 c0 test %eax,%eax 801006e9: 74 25 je 80100710 <cprintf+0xb0> 801006eb: 8d 53 01 lea 0x1(%ebx),%edx if(c != '%'){ 801006ee: 83 f8 25 cmp $0x25,%eax 801006f1: 8d 34 17 lea (%edi,%edx,1),%esi 801006f4: 74 aa je 801006a0 <cprintf+0x40> 801006f6: 89 55 e0 mov %edx,-0x20(%ebp) consputc(c); 801006f9: e8 12 fd ff ff call 80100410 <consputc> for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 801006fe: 0f b6 06 movzbl (%esi),%eax continue; 80100701: 8b 55 e0 mov -0x20(%ebp),%edx 80100704: 89 d3 mov %edx,%ebx for(i = 0; (c = fmt[i] & 0xff) != 0; i++){ 80100706: 85 c0 test %eax,%eax 80100708: 75 e1 jne 801006eb <cprintf+0x8b> 8010070a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if(locking) 80100710: 8b 45 dc mov -0x24(%ebp),%eax 80100713: 85 c0 test %eax,%eax 80100715: 74 10 je 80100727 <cprintf+0xc7> release(&cons.lock); 80100717: 83 ec 0c sub $0xc,%esp 8010071a: 68 20 a5 10 80 push $0x8010a520 8010071f: e8 dc 3c 00 00 call 80104400 <release> 80100724: 83 c4 10 add $0x10,%esp } 80100727: 8d 65 f4 lea -0xc(%ebp),%esp 8010072a: 5b pop %ebx 8010072b: 5e pop %esi 8010072c: 5f pop %edi 8010072d: 5d pop %ebp 8010072e: c3 ret 8010072f: 90 nop switch(c){ 80100730: 83 fa 73 cmp $0x73,%edx 80100733: 74 43 je 80100778 <cprintf+0x118> 80100735: 83 fa 78 cmp $0x78,%edx 80100738: 75 1e jne 80100758 <cprintf+0xf8> printint(*argp++, 16, 0); 8010073a: 8b 45 e4 mov -0x1c(%ebp),%eax 8010073d: ba 10 00 00 00 mov $0x10,%edx 80100742: 8d 48 04 lea 0x4(%eax),%ecx 80100745: 8b 00 mov (%eax),%eax 80100747: 89 4d e4 mov %ecx,-0x1c(%ebp) 8010074a: 31 c9 xor %ecx,%ecx 8010074c: e8 2f fe ff ff call 80100580 <printint> break; 80100751: eb 91 jmp 801006e4 <cprintf+0x84> 80100753: 90 nop 80100754: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi consputc('%'); 80100758: b8 25 00 00 00 mov $0x25,%eax 8010075d: 89 55 e0 mov %edx,-0x20(%ebp) 80100760: e8 ab fc ff ff call 80100410 <consputc> consputc(c); 80100765: 8b 55 e0 mov -0x20(%ebp),%edx 80100768: 89 d0 mov %edx,%eax 8010076a: e8 a1 fc ff ff call 80100410 <consputc> break; 8010076f: e9 70 ff ff ff jmp 801006e4 <cprintf+0x84> 80100774: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if((s = (char*)*argp++) == 0) 80100778: 8b 45 e4 mov -0x1c(%ebp),%eax 8010077b: 8b 10 mov (%eax),%edx 8010077d: 8d 48 04 lea 0x4(%eax),%ecx 80100780: 89 4d e0 mov %ecx,-0x20(%ebp) 80100783: 85 d2 test %edx,%edx 80100785: 74 49 je 801007d0 <cprintf+0x170> for(; *s; s++) 80100787: 0f be 02 movsbl (%edx),%eax if((s = (char*)*argp++) == 0) 8010078a: 89 4d e4 mov %ecx,-0x1c(%ebp) for(; *s; s++) 8010078d: 84 c0 test %al,%al 8010078f: 0f 84 4f ff ff ff je 801006e4 <cprintf+0x84> 80100795: 89 5d e4 mov %ebx,-0x1c(%ebp) 80100798: 89 d3 mov %edx,%ebx 8010079a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801007a0: 83 c3 01 add $0x1,%ebx consputc(*s); 801007a3: e8 68 fc ff ff call 80100410 <consputc> for(; *s; s++) 801007a8: 0f be 03 movsbl (%ebx),%eax 801007ab: 84 c0 test %al,%al 801007ad: 75 f1 jne 801007a0 <cprintf+0x140> if((s = (char*)*argp++) == 0) 801007af: 8b 45 e0 mov -0x20(%ebp),%eax 801007b2: 8b 5d e4 mov -0x1c(%ebp),%ebx 801007b5: 89 45 e4 mov %eax,-0x1c(%ebp) 801007b8: e9 27 ff ff ff jmp 801006e4 <cprintf+0x84> 801007bd: 8d 76 00 lea 0x0(%esi),%esi consputc('%'); 801007c0: b8 25 00 00 00 mov $0x25,%eax 801007c5: e8 46 fc ff ff call 80100410 <consputc> break; 801007ca: e9 15 ff ff ff jmp 801006e4 <cprintf+0x84> 801007cf: 90 nop s = "(null)"; 801007d0: ba 18 6f 10 80 mov $0x80106f18,%edx for(; *s; s++) 801007d5: 89 5d e4 mov %ebx,-0x1c(%ebp) 801007d8: b8 28 00 00 00 mov $0x28,%eax 801007dd: 89 d3 mov %edx,%ebx 801007df: eb bf jmp 801007a0 <cprintf+0x140> 801007e1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi acquire(&cons.lock); 801007e8: 83 ec 0c sub $0xc,%esp 801007eb: 68 20 a5 10 80 push $0x8010a520 801007f0: e8 4b 3b 00 00 call 80104340 <acquire> 801007f5: 83 c4 10 add $0x10,%esp 801007f8: e9 7c fe ff ff jmp 80100679 <cprintf+0x19> panic("null fmt"); 801007fd: 83 ec 0c sub $0xc,%esp 80100800: 68 1f 6f 10 80 push $0x80106f1f 80100805: e8 86 fb ff ff call 80100390 <panic> 8010080a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80100810 <consoleintr>: { 80100810: 55 push %ebp 80100811: 89 e5 mov %esp,%ebp 80100813: 57 push %edi 80100814: 56 push %esi 80100815: 53 push %ebx int c, doprocdump = 0; 80100816: 31 f6 xor %esi,%esi { 80100818: 83 ec 18 sub $0x18,%esp 8010081b: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&cons.lock); 8010081e: 68 20 a5 10 80 push $0x8010a520 80100823: e8 18 3b 00 00 call 80104340 <acquire> while((c = getc()) >= 0){ 80100828: 83 c4 10 add $0x10,%esp 8010082b: 90 nop 8010082c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80100830: ff d3 call *%ebx 80100832: 85 c0 test %eax,%eax 80100834: 89 c7 mov %eax,%edi 80100836: 78 48 js 80100880 <consoleintr+0x70> switch(c){ 80100838: 83 ff 10 cmp $0x10,%edi 8010083b: 0f 84 e7 00 00 00 je 80100928 <consoleintr+0x118> 80100841: 7e 5d jle 801008a0 <consoleintr+0x90> 80100843: 83 ff 15 cmp $0x15,%edi 80100846: 0f 84 ec 00 00 00 je 80100938 <consoleintr+0x128> 8010084c: 83 ff 7f cmp $0x7f,%edi 8010084f: 75 54 jne 801008a5 <consoleintr+0x95> if(input.e != input.w){ 80100851: a1 a8 ff 10 80 mov 0x8010ffa8,%eax 80100856: 3b 05 a4 ff 10 80 cmp 0x8010ffa4,%eax 8010085c: 74 d2 je 80100830 <consoleintr+0x20> input.e--; 8010085e: 83 e8 01 sub $0x1,%eax 80100861: a3 a8 ff 10 80 mov %eax,0x8010ffa8 consputc(BACKSPACE); 80100866: b8 00 01 00 00 mov $0x100,%eax 8010086b: e8 a0 fb ff ff call 80100410 <consputc> while((c = getc()) >= 0){ 80100870: ff d3 call *%ebx 80100872: 85 c0 test %eax,%eax 80100874: 89 c7 mov %eax,%edi 80100876: 79 c0 jns 80100838 <consoleintr+0x28> 80100878: 90 nop 80100879: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi release(&cons.lock); 80100880: 83 ec 0c sub $0xc,%esp 80100883: 68 20 a5 10 80 push $0x8010a520 80100888: e8 73 3b 00 00 call 80104400 <release> if(doprocdump) { 8010088d: 83 c4 10 add $0x10,%esp 80100890: 85 f6 test %esi,%esi 80100892: 0f 85 f8 00 00 00 jne 80100990 <consoleintr+0x180> } 80100898: 8d 65 f4 lea -0xc(%ebp),%esp 8010089b: 5b pop %ebx 8010089c: 5e pop %esi 8010089d: 5f pop %edi 8010089e: 5d pop %ebp 8010089f: c3 ret switch(c){ 801008a0: 83 ff 08 cmp $0x8,%edi 801008a3: 74 ac je 80100851 <consoleintr+0x41> if(c != 0 && input.e-input.r < INPUT_BUF){ 801008a5: 85 ff test %edi,%edi 801008a7: 74 87 je 80100830 <consoleintr+0x20> 801008a9: a1 a8 ff 10 80 mov 0x8010ffa8,%eax 801008ae: 89 c2 mov %eax,%edx 801008b0: 2b 15 a0 ff 10 80 sub 0x8010ffa0,%edx 801008b6: 83 fa 7f cmp $0x7f,%edx 801008b9: 0f 87 71 ff ff ff ja 80100830 <consoleintr+0x20> 801008bf: 8d 50 01 lea 0x1(%eax),%edx 801008c2: 83 e0 7f and $0x7f,%eax c = (c == '\r') ? '\n' : c; 801008c5: 83 ff 0d cmp $0xd,%edi input.buf[input.e++ % INPUT_BUF] = c; 801008c8: 89 15 a8 ff 10 80 mov %edx,0x8010ffa8 c = (c == '\r') ? '\n' : c; 801008ce: 0f 84 cc 00 00 00 je 801009a0 <consoleintr+0x190> input.buf[input.e++ % INPUT_BUF] = c; 801008d4: 89 f9 mov %edi,%ecx 801008d6: 88 88 20 ff 10 80 mov %cl,-0x7fef00e0(%eax) consputc(c); 801008dc: 89 f8 mov %edi,%eax 801008de: e8 2d fb ff ff call 80100410 <consputc> if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){ 801008e3: 83 ff 0a cmp $0xa,%edi 801008e6: 0f 84 c5 00 00 00 je 801009b1 <consoleintr+0x1a1> 801008ec: 83 ff 04 cmp $0x4,%edi 801008ef: 0f 84 bc 00 00 00 je 801009b1 <consoleintr+0x1a1> 801008f5: a1 a0 ff 10 80 mov 0x8010ffa0,%eax 801008fa: 83 e8 80 sub $0xffffff80,%eax 801008fd: 39 05 a8 ff 10 80 cmp %eax,0x8010ffa8 80100903: 0f 85 27 ff ff ff jne 80100830 <consoleintr+0x20> wakeup(&input.r); 80100909: 83 ec 0c sub $0xc,%esp input.w = input.e; 8010090c: a3 a4 ff 10 80 mov %eax,0x8010ffa4 wakeup(&input.r); 80100911: 68 a0 ff 10 80 push $0x8010ffa0 80100916: e8 15 36 00 00 call 80103f30 <wakeup> 8010091b: 83 c4 10 add $0x10,%esp 8010091e: e9 0d ff ff ff jmp 80100830 <consoleintr+0x20> 80100923: 90 nop 80100924: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi doprocdump = 1; 80100928: be 01 00 00 00 mov $0x1,%esi 8010092d: e9 fe fe ff ff jmp 80100830 <consoleintr+0x20> 80100932: 8d b6 00 00 00 00 lea 0x0(%esi),%esi while(input.e != input.w && 80100938: a1 a8 ff 10 80 mov 0x8010ffa8,%eax 8010093d: 39 05 a4 ff 10 80 cmp %eax,0x8010ffa4 80100943: 75 2b jne 80100970 <consoleintr+0x160> 80100945: e9 e6 fe ff ff jmp 80100830 <consoleintr+0x20> 8010094a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi input.e--; 80100950: a3 a8 ff 10 80 mov %eax,0x8010ffa8 consputc(BACKSPACE); 80100955: b8 00 01 00 00 mov $0x100,%eax 8010095a: e8 b1 fa ff ff call 80100410 <consputc> while(input.e != input.w && 8010095f: a1 a8 ff 10 80 mov 0x8010ffa8,%eax 80100964: 3b 05 a4 ff 10 80 cmp 0x8010ffa4,%eax 8010096a: 0f 84 c0 fe ff ff je 80100830 <consoleintr+0x20> input.buf[(input.e-1) % INPUT_BUF] != '\n'){ 80100970: 83 e8 01 sub $0x1,%eax 80100973: 89 c2 mov %eax,%edx 80100975: 83 e2 7f and $0x7f,%edx while(input.e != input.w && 80100978: 80 ba 20 ff 10 80 0a cmpb $0xa,-0x7fef00e0(%edx) 8010097f: 75 cf jne 80100950 <consoleintr+0x140> 80100981: e9 aa fe ff ff jmp 80100830 <consoleintr+0x20> 80100986: 8d 76 00 lea 0x0(%esi),%esi 80100989: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi } 80100990: 8d 65 f4 lea -0xc(%ebp),%esp 80100993: 5b pop %ebx 80100994: 5e pop %esi 80100995: 5f pop %edi 80100996: 5d pop %ebp procdump(); // now call procdump() wo. cons.lock held 80100997: e9 74 36 00 00 jmp 80104010 <procdump> 8010099c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi input.buf[input.e++ % INPUT_BUF] = c; 801009a0: c6 80 20 ff 10 80 0a movb $0xa,-0x7fef00e0(%eax) consputc(c); 801009a7: b8 0a 00 00 00 mov $0xa,%eax 801009ac: e8 5f fa ff ff call 80100410 <consputc> 801009b1: a1 a8 ff 10 80 mov 0x8010ffa8,%eax 801009b6: e9 4e ff ff ff jmp 80100909 <consoleintr+0xf9> 801009bb: 90 nop 801009bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801009c0 <consoleinit>: void consoleinit(void) { 801009c0: 55 push %ebp 801009c1: 89 e5 mov %esp,%ebp 801009c3: 83 ec 10 sub $0x10,%esp initlock(&cons.lock, "console"); 801009c6: 68 28 6f 10 80 push $0x80106f28 801009cb: 68 20 a5 10 80 push $0x8010a520 801009d0: e8 2b 38 00 00 call 80104200 <initlock> devsw[CONSOLE].write = consolewrite; devsw[CONSOLE].read = consoleread; cons.locking = 1; ioapicenable(IRQ_KBD, 0); 801009d5: 58 pop %eax 801009d6: 5a pop %edx 801009d7: 6a 00 push $0x0 801009d9: 6a 01 push $0x1 devsw[CONSOLE].write = consolewrite; 801009db: c7 05 6c 09 11 80 00 movl $0x80100600,0x8011096c 801009e2: 06 10 80 devsw[CONSOLE].read = consoleread; 801009e5: c7 05 68 09 11 80 70 movl $0x80100270,0x80110968 801009ec: 02 10 80 cons.locking = 1; 801009ef: c7 05 54 a5 10 80 01 movl $0x1,0x8010a554 801009f6: 00 00 00 ioapicenable(IRQ_KBD, 0); 801009f9: e8 d2 18 00 00 call 801022d0 <ioapicenable> } 801009fe: 83 c4 10 add $0x10,%esp 80100a01: c9 leave 80100a02: c3 ret 80100a03: 66 90 xchg %ax,%ax 80100a05: 66 90 xchg %ax,%ax 80100a07: 66 90 xchg %ax,%ax 80100a09: 66 90 xchg %ax,%ax 80100a0b: 66 90 xchg %ax,%ax 80100a0d: 66 90 xchg %ax,%ax 80100a0f: 90 nop 80100a10 <exec>: #include "x86.h" #include "elf.h" int exec(char *path, char **argv) { 80100a10: 55 push %ebp 80100a11: 89 e5 mov %esp,%ebp 80100a13: 57 push %edi 80100a14: 56 push %esi 80100a15: 53 push %ebx 80100a16: 81 ec 0c 01 00 00 sub $0x10c,%esp uint argc, sz, sp, ustack[3+MAXARG+1]; struct elfhdr elf; struct inode *ip; struct proghdr ph; pde_t *pgdir, *oldpgdir; struct proc *curproc = myproc(); 80100a1c: e8 bf 2d 00 00 call 801037e0 <myproc> 80100a21: 89 85 f4 fe ff ff mov %eax,-0x10c(%ebp) begin_op(); 80100a27: e8 74 21 00 00 call 80102ba0 <begin_op> if((ip = namei(path)) == 0){ 80100a2c: 83 ec 0c sub $0xc,%esp 80100a2f: ff 75 08 pushl 0x8(%ebp) 80100a32: e8 a9 14 00 00 call 80101ee0 <namei> 80100a37: 83 c4 10 add $0x10,%esp 80100a3a: 85 c0 test %eax,%eax 80100a3c: 0f 84 91 01 00 00 je 80100bd3 <exec+0x1c3> end_op(); cprintf("exec: fail\n"); return -1; } ilock(ip); 80100a42: 83 ec 0c sub $0xc,%esp 80100a45: 89 c3 mov %eax,%ebx 80100a47: 50 push %eax 80100a48: e8 33 0c 00 00 call 80101680 <ilock> pgdir = 0; // Check ELF header if(readi(ip, (char*)&elf, 0, sizeof(elf)) != sizeof(elf)) 80100a4d: 8d 85 24 ff ff ff lea -0xdc(%ebp),%eax 80100a53: 6a 34 push $0x34 80100a55: 6a 00 push $0x0 80100a57: 50 push %eax 80100a58: 53 push %ebx 80100a59: e8 02 0f 00 00 call 80101960 <readi> 80100a5e: 83 c4 20 add $0x20,%esp 80100a61: 83 f8 34 cmp $0x34,%eax 80100a64: 74 22 je 80100a88 <exec+0x78> bad: if(pgdir) freevm(pgdir); if(ip){ iunlockput(ip); 80100a66: 83 ec 0c sub $0xc,%esp 80100a69: 53 push %ebx 80100a6a: e8 a1 0e 00 00 call 80101910 <iunlockput> end_op(); 80100a6f: e8 9c 21 00 00 call 80102c10 <end_op> 80100a74: 83 c4 10 add $0x10,%esp } return -1; 80100a77: b8 ff ff ff ff mov $0xffffffff,%eax } 80100a7c: 8d 65 f4 lea -0xc(%ebp),%esp 80100a7f: 5b pop %ebx 80100a80: 5e pop %esi 80100a81: 5f pop %edi 80100a82: 5d pop %ebp 80100a83: c3 ret 80100a84: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(elf.magic != ELF_MAGIC) 80100a88: 81 bd 24 ff ff ff 7f cmpl $0x464c457f,-0xdc(%ebp) 80100a8f: 45 4c 46 80100a92: 75 d2 jne 80100a66 <exec+0x56> if((pgdir = setupkvm()) == 0) 80100a94: e8 77 61 00 00 call 80106c10 <setupkvm> 80100a99: 85 c0 test %eax,%eax 80100a9b: 89 85 f0 fe ff ff mov %eax,-0x110(%ebp) 80100aa1: 74 c3 je 80100a66 <exec+0x56> sz = 0; 80100aa3: 31 ff xor %edi,%edi for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ 80100aa5: 66 83 bd 50 ff ff ff cmpw $0x0,-0xb0(%ebp) 80100aac: 00 80100aad: 8b 85 40 ff ff ff mov -0xc0(%ebp),%eax 80100ab3: 89 85 ec fe ff ff mov %eax,-0x114(%ebp) 80100ab9: 0f 84 8c 02 00 00 je 80100d4b <exec+0x33b> 80100abf: 31 f6 xor %esi,%esi 80100ac1: eb 7f jmp 80100b42 <exec+0x132> 80100ac3: 90 nop 80100ac4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(ph.type != ELF_PROG_LOAD) 80100ac8: 83 bd 04 ff ff ff 01 cmpl $0x1,-0xfc(%ebp) 80100acf: 75 63 jne 80100b34 <exec+0x124> if(ph.memsz < ph.filesz) 80100ad1: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax 80100ad7: 3b 85 14 ff ff ff cmp -0xec(%ebp),%eax 80100add: 0f 82 86 00 00 00 jb 80100b69 <exec+0x159> 80100ae3: 03 85 0c ff ff ff add -0xf4(%ebp),%eax 80100ae9: 72 7e jb 80100b69 <exec+0x159> if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0) 80100aeb: 83 ec 04 sub $0x4,%esp 80100aee: 50 push %eax 80100aef: 57 push %edi 80100af0: ff b5 f0 fe ff ff pushl -0x110(%ebp) 80100af6: e8 35 5f 00 00 call 80106a30 <allocuvm> 80100afb: 83 c4 10 add $0x10,%esp 80100afe: 85 c0 test %eax,%eax 80100b00: 89 c7 mov %eax,%edi 80100b02: 74 65 je 80100b69 <exec+0x159> if(ph.vaddr % PGSIZE != 0) 80100b04: 8b 85 0c ff ff ff mov -0xf4(%ebp),%eax 80100b0a: a9 ff 0f 00 00 test $0xfff,%eax 80100b0f: 75 58 jne 80100b69 <exec+0x159> if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0) 80100b11: 83 ec 0c sub $0xc,%esp 80100b14: ff b5 14 ff ff ff pushl -0xec(%ebp) 80100b1a: ff b5 08 ff ff ff pushl -0xf8(%ebp) 80100b20: 53 push %ebx 80100b21: 50 push %eax 80100b22: ff b5 f0 fe ff ff pushl -0x110(%ebp) 80100b28: e8 43 5e 00 00 call 80106970 <loaduvm> 80100b2d: 83 c4 20 add $0x20,%esp 80100b30: 85 c0 test %eax,%eax 80100b32: 78 35 js 80100b69 <exec+0x159> for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ 80100b34: 0f b7 85 50 ff ff ff movzwl -0xb0(%ebp),%eax 80100b3b: 83 c6 01 add $0x1,%esi 80100b3e: 39 f0 cmp %esi,%eax 80100b40: 7e 3d jle 80100b7f <exec+0x16f> if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph)) 80100b42: 89 f0 mov %esi,%eax 80100b44: 6a 20 push $0x20 80100b46: c1 e0 05 shl $0x5,%eax 80100b49: 03 85 ec fe ff ff add -0x114(%ebp),%eax 80100b4f: 50 push %eax 80100b50: 8d 85 04 ff ff ff lea -0xfc(%ebp),%eax 80100b56: 50 push %eax 80100b57: 53 push %ebx 80100b58: e8 03 0e 00 00 call 80101960 <readi> 80100b5d: 83 c4 10 add $0x10,%esp 80100b60: 83 f8 20 cmp $0x20,%eax 80100b63: 0f 84 5f ff ff ff je 80100ac8 <exec+0xb8> freevm(pgdir); 80100b69: 83 ec 0c sub $0xc,%esp 80100b6c: ff b5 f0 fe ff ff pushl -0x110(%ebp) 80100b72: e8 19 60 00 00 call 80106b90 <freevm> 80100b77: 83 c4 10 add $0x10,%esp 80100b7a: e9 e7 fe ff ff jmp 80100a66 <exec+0x56> 80100b7f: 81 c7 ff 0f 00 00 add $0xfff,%edi 80100b85: 81 e7 00 f0 ff ff and $0xfffff000,%edi 80100b8b: 8d b7 00 20 00 00 lea 0x2000(%edi),%esi iunlockput(ip); 80100b91: 83 ec 0c sub $0xc,%esp 80100b94: 53 push %ebx 80100b95: e8 76 0d 00 00 call 80101910 <iunlockput> end_op(); 80100b9a: e8 71 20 00 00 call 80102c10 <end_op> if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0) 80100b9f: 83 c4 0c add $0xc,%esp 80100ba2: 56 push %esi 80100ba3: 57 push %edi 80100ba4: ff b5 f0 fe ff ff pushl -0x110(%ebp) 80100baa: e8 81 5e 00 00 call 80106a30 <allocuvm> 80100baf: 83 c4 10 add $0x10,%esp 80100bb2: 85 c0 test %eax,%eax 80100bb4: 89 c6 mov %eax,%esi 80100bb6: 75 3a jne 80100bf2 <exec+0x1e2> freevm(pgdir); 80100bb8: 83 ec 0c sub $0xc,%esp 80100bbb: ff b5 f0 fe ff ff pushl -0x110(%ebp) 80100bc1: e8 ca 5f 00 00 call 80106b90 <freevm> 80100bc6: 83 c4 10 add $0x10,%esp return -1; 80100bc9: b8 ff ff ff ff mov $0xffffffff,%eax 80100bce: e9 a9 fe ff ff jmp 80100a7c <exec+0x6c> end_op(); 80100bd3: e8 38 20 00 00 call 80102c10 <end_op> cprintf("exec: fail\n"); 80100bd8: 83 ec 0c sub $0xc,%esp 80100bdb: 68 41 6f 10 80 push $0x80106f41 80100be0: e8 7b fa ff ff call 80100660 <cprintf> return -1; 80100be5: 83 c4 10 add $0x10,%esp 80100be8: b8 ff ff ff ff mov $0xffffffff,%eax 80100bed: e9 8a fe ff ff jmp 80100a7c <exec+0x6c> clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); 80100bf2: 8d 80 00 e0 ff ff lea -0x2000(%eax),%eax 80100bf8: 83 ec 08 sub $0x8,%esp for(argc = 0; argv[argc]; argc++) { 80100bfb: 31 ff xor %edi,%edi 80100bfd: 89 f3 mov %esi,%ebx clearpteu(pgdir, (char*)(sz - 2*PGSIZE)); 80100bff: 50 push %eax 80100c00: ff b5 f0 fe ff ff pushl -0x110(%ebp) 80100c06: e8 a5 60 00 00 call 80106cb0 <clearpteu> for(argc = 0; argv[argc]; argc++) { 80100c0b: 8b 45 0c mov 0xc(%ebp),%eax 80100c0e: 83 c4 10 add $0x10,%esp 80100c11: 8d 95 58 ff ff ff lea -0xa8(%ebp),%edx 80100c17: 8b 00 mov (%eax),%eax 80100c19: 85 c0 test %eax,%eax 80100c1b: 74 70 je 80100c8d <exec+0x27d> 80100c1d: 89 b5 ec fe ff ff mov %esi,-0x114(%ebp) 80100c23: 8b b5 f0 fe ff ff mov -0x110(%ebp),%esi 80100c29: eb 0a jmp 80100c35 <exec+0x225> 80100c2b: 90 nop 80100c2c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(argc >= MAXARG) 80100c30: 83 ff 20 cmp $0x20,%edi 80100c33: 74 83 je 80100bb8 <exec+0x1a8> sp = (sp - (strlen(argv[argc]) + 1)) & ~3; 80100c35: 83 ec 0c sub $0xc,%esp 80100c38: 50 push %eax 80100c39: e8 32 3a 00 00 call 80104670 <strlen> 80100c3e: f7 d0 not %eax 80100c40: 01 c3 add %eax,%ebx if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) 80100c42: 8b 45 0c mov 0xc(%ebp),%eax 80100c45: 5a pop %edx sp = (sp - (strlen(argv[argc]) + 1)) & ~3; 80100c46: 83 e3 fc and $0xfffffffc,%ebx if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0) 80100c49: ff 34 b8 pushl (%eax,%edi,4) 80100c4c: e8 1f 3a 00 00 call 80104670 <strlen> 80100c51: 83 c0 01 add $0x1,%eax 80100c54: 50 push %eax 80100c55: 8b 45 0c mov 0xc(%ebp),%eax 80100c58: ff 34 b8 pushl (%eax,%edi,4) 80100c5b: 53 push %ebx 80100c5c: 56 push %esi 80100c5d: e8 ae 61 00 00 call 80106e10 <copyout> 80100c62: 83 c4 20 add $0x20,%esp 80100c65: 85 c0 test %eax,%eax 80100c67: 0f 88 4b ff ff ff js 80100bb8 <exec+0x1a8> for(argc = 0; argv[argc]; argc++) { 80100c6d: 8b 45 0c mov 0xc(%ebp),%eax ustack[3+argc] = sp; 80100c70: 89 9c bd 64 ff ff ff mov %ebx,-0x9c(%ebp,%edi,4) for(argc = 0; argv[argc]; argc++) { 80100c77: 83 c7 01 add $0x1,%edi ustack[3+argc] = sp; 80100c7a: 8d 95 58 ff ff ff lea -0xa8(%ebp),%edx for(argc = 0; argv[argc]; argc++) { 80100c80: 8b 04 b8 mov (%eax,%edi,4),%eax 80100c83: 85 c0 test %eax,%eax 80100c85: 75 a9 jne 80100c30 <exec+0x220> 80100c87: 8b b5 ec fe ff ff mov -0x114(%ebp),%esi ustack[2] = sp - (argc+1)*4; // argv pointer 80100c8d: 8d 04 bd 04 00 00 00 lea 0x4(,%edi,4),%eax 80100c94: 89 d9 mov %ebx,%ecx ustack[3+argc] = 0; 80100c96: c7 84 bd 64 ff ff ff movl $0x0,-0x9c(%ebp,%edi,4) 80100c9d: 00 00 00 00 ustack[0] = 0xffffffff; // fake return PC 80100ca1: c7 85 58 ff ff ff ff movl $0xffffffff,-0xa8(%ebp) 80100ca8: ff ff ff ustack[1] = argc; 80100cab: 89 bd 5c ff ff ff mov %edi,-0xa4(%ebp) ustack[2] = sp - (argc+1)*4; // argv pointer 80100cb1: 29 c1 sub %eax,%ecx sp -= (3+argc+1) * 4; 80100cb3: 83 c0 0c add $0xc,%eax 80100cb6: 29 c3 sub %eax,%ebx if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) 80100cb8: 50 push %eax 80100cb9: 52 push %edx 80100cba: 53 push %ebx 80100cbb: ff b5 f0 fe ff ff pushl -0x110(%ebp) ustack[2] = sp - (argc+1)*4; // argv pointer 80100cc1: 89 8d 60 ff ff ff mov %ecx,-0xa0(%ebp) if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0) 80100cc7: e8 44 61 00 00 call 80106e10 <copyout> 80100ccc: 83 c4 10 add $0x10,%esp 80100ccf: 85 c0 test %eax,%eax 80100cd1: 0f 88 e1 fe ff ff js 80100bb8 <exec+0x1a8> for(last=s=path; *s; s++) 80100cd7: 8b 45 08 mov 0x8(%ebp),%eax 80100cda: 0f b6 00 movzbl (%eax),%eax 80100cdd: 84 c0 test %al,%al 80100cdf: 74 17 je 80100cf8 <exec+0x2e8> 80100ce1: 8b 55 08 mov 0x8(%ebp),%edx 80100ce4: 89 d1 mov %edx,%ecx 80100ce6: 83 c1 01 add $0x1,%ecx 80100ce9: 3c 2f cmp $0x2f,%al 80100ceb: 0f b6 01 movzbl (%ecx),%eax 80100cee: 0f 44 d1 cmove %ecx,%edx 80100cf1: 84 c0 test %al,%al 80100cf3: 75 f1 jne 80100ce6 <exec+0x2d6> 80100cf5: 89 55 08 mov %edx,0x8(%ebp) safestrcpy(curproc->name, last, sizeof(curproc->name)); 80100cf8: 8b bd f4 fe ff ff mov -0x10c(%ebp),%edi 80100cfe: 50 push %eax 80100cff: 6a 10 push $0x10 80100d01: ff 75 08 pushl 0x8(%ebp) 80100d04: 89 f8 mov %edi,%eax 80100d06: 83 c0 6c add $0x6c,%eax 80100d09: 50 push %eax 80100d0a: e8 21 39 00 00 call 80104630 <safestrcpy> curproc->pgdir = pgdir; 80100d0f: 8b 95 f0 fe ff ff mov -0x110(%ebp),%edx oldpgdir = curproc->pgdir; 80100d15: 89 f9 mov %edi,%ecx 80100d17: 8b 7f 04 mov 0x4(%edi),%edi curproc->tf->eip = elf.entry; // main 80100d1a: 8b 41 18 mov 0x18(%ecx),%eax curproc->sz = sz; 80100d1d: 89 31 mov %esi,(%ecx) curproc->pgdir = pgdir; 80100d1f: 89 51 04 mov %edx,0x4(%ecx) curproc->tf->eip = elf.entry; // main 80100d22: 8b 95 3c ff ff ff mov -0xc4(%ebp),%edx 80100d28: 89 50 38 mov %edx,0x38(%eax) curproc->tf->esp = sp; 80100d2b: 8b 41 18 mov 0x18(%ecx),%eax 80100d2e: 89 58 44 mov %ebx,0x44(%eax) switchuvm(curproc); 80100d31: 89 0c 24 mov %ecx,(%esp) 80100d34: e8 a7 5a 00 00 call 801067e0 <switchuvm> freevm(oldpgdir); 80100d39: 89 3c 24 mov %edi,(%esp) 80100d3c: e8 4f 5e 00 00 call 80106b90 <freevm> return 0; 80100d41: 83 c4 10 add $0x10,%esp 80100d44: 31 c0 xor %eax,%eax 80100d46: e9 31 fd ff ff jmp 80100a7c <exec+0x6c> for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){ 80100d4b: be 00 20 00 00 mov $0x2000,%esi 80100d50: e9 3c fe ff ff jmp 80100b91 <exec+0x181> 80100d55: 66 90 xchg %ax,%ax 80100d57: 66 90 xchg %ax,%ax 80100d59: 66 90 xchg %ax,%ax 80100d5b: 66 90 xchg %ax,%ax 80100d5d: 66 90 xchg %ax,%ax 80100d5f: 90 nop 80100d60 <fileinit>: struct file file[NFILE]; } ftable; void fileinit(void) { 80100d60: 55 push %ebp 80100d61: 89 e5 mov %esp,%ebp 80100d63: 83 ec 10 sub $0x10,%esp initlock(&ftable.lock, "ftable"); 80100d66: 68 4d 6f 10 80 push $0x80106f4d 80100d6b: 68 c0 ff 10 80 push $0x8010ffc0 80100d70: e8 8b 34 00 00 call 80104200 <initlock> } 80100d75: 83 c4 10 add $0x10,%esp 80100d78: c9 leave 80100d79: c3 ret 80100d7a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80100d80 <filealloc>: // Allocate a file structure. struct file* filealloc(void) { 80100d80: 55 push %ebp 80100d81: 89 e5 mov %esp,%ebp 80100d83: 53 push %ebx struct file *f; acquire(&ftable.lock); for(f = ftable.file; f < ftable.file + NFILE; f++){ 80100d84: bb f4 ff 10 80 mov $0x8010fff4,%ebx { 80100d89: 83 ec 10 sub $0x10,%esp acquire(&ftable.lock); 80100d8c: 68 c0 ff 10 80 push $0x8010ffc0 80100d91: e8 aa 35 00 00 call 80104340 <acquire> 80100d96: 83 c4 10 add $0x10,%esp 80100d99: eb 10 jmp 80100dab <filealloc+0x2b> 80100d9b: 90 nop 80100d9c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi for(f = ftable.file; f < ftable.file + NFILE; f++){ 80100da0: 83 c3 18 add $0x18,%ebx 80100da3: 81 fb 54 09 11 80 cmp $0x80110954,%ebx 80100da9: 73 25 jae 80100dd0 <filealloc+0x50> if(f->ref == 0){ 80100dab: 8b 43 04 mov 0x4(%ebx),%eax 80100dae: 85 c0 test %eax,%eax 80100db0: 75 ee jne 80100da0 <filealloc+0x20> f->ref = 1; release(&ftable.lock); 80100db2: 83 ec 0c sub $0xc,%esp f->ref = 1; 80100db5: c7 43 04 01 00 00 00 movl $0x1,0x4(%ebx) release(&ftable.lock); 80100dbc: 68 c0 ff 10 80 push $0x8010ffc0 80100dc1: e8 3a 36 00 00 call 80104400 <release> return f; } } release(&ftable.lock); return 0; } 80100dc6: 89 d8 mov %ebx,%eax return f; 80100dc8: 83 c4 10 add $0x10,%esp } 80100dcb: 8b 5d fc mov -0x4(%ebp),%ebx 80100dce: c9 leave 80100dcf: c3 ret release(&ftable.lock); 80100dd0: 83 ec 0c sub $0xc,%esp return 0; 80100dd3: 31 db xor %ebx,%ebx release(&ftable.lock); 80100dd5: 68 c0 ff 10 80 push $0x8010ffc0 80100dda: e8 21 36 00 00 call 80104400 <release> } 80100ddf: 89 d8 mov %ebx,%eax return 0; 80100de1: 83 c4 10 add $0x10,%esp } 80100de4: 8b 5d fc mov -0x4(%ebp),%ebx 80100de7: c9 leave 80100de8: c3 ret 80100de9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80100df0 <filedup>: // Increment ref count for file f. struct file* filedup(struct file *f) { 80100df0: 55 push %ebp 80100df1: 89 e5 mov %esp,%ebp 80100df3: 53 push %ebx 80100df4: 83 ec 10 sub $0x10,%esp 80100df7: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&ftable.lock); 80100dfa: 68 c0 ff 10 80 push $0x8010ffc0 80100dff: e8 3c 35 00 00 call 80104340 <acquire> if(f->ref < 1) 80100e04: 8b 43 04 mov 0x4(%ebx),%eax 80100e07: 83 c4 10 add $0x10,%esp 80100e0a: 85 c0 test %eax,%eax 80100e0c: 7e 1a jle 80100e28 <filedup+0x38> panic("filedup"); f->ref++; 80100e0e: 83 c0 01 add $0x1,%eax release(&ftable.lock); 80100e11: 83 ec 0c sub $0xc,%esp f->ref++; 80100e14: 89 43 04 mov %eax,0x4(%ebx) release(&ftable.lock); 80100e17: 68 c0 ff 10 80 push $0x8010ffc0 80100e1c: e8 df 35 00 00 call 80104400 <release> return f; } 80100e21: 89 d8 mov %ebx,%eax 80100e23: 8b 5d fc mov -0x4(%ebp),%ebx 80100e26: c9 leave 80100e27: c3 ret panic("filedup"); 80100e28: 83 ec 0c sub $0xc,%esp 80100e2b: 68 54 6f 10 80 push $0x80106f54 80100e30: e8 5b f5 ff ff call 80100390 <panic> 80100e35: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80100e39: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80100e40 <fileclose>: // Close file f. (Decrement ref count, close when reaches 0.) void fileclose(struct file *f) { 80100e40: 55 push %ebp 80100e41: 89 e5 mov %esp,%ebp 80100e43: 57 push %edi 80100e44: 56 push %esi 80100e45: 53 push %ebx 80100e46: 83 ec 28 sub $0x28,%esp 80100e49: 8b 5d 08 mov 0x8(%ebp),%ebx struct file ff; acquire(&ftable.lock); 80100e4c: 68 c0 ff 10 80 push $0x8010ffc0 80100e51: e8 ea 34 00 00 call 80104340 <acquire> if(f->ref < 1) 80100e56: 8b 43 04 mov 0x4(%ebx),%eax 80100e59: 83 c4 10 add $0x10,%esp 80100e5c: 85 c0 test %eax,%eax 80100e5e: 0f 8e 9b 00 00 00 jle 80100eff <fileclose+0xbf> panic("fileclose"); if(--f->ref > 0){ 80100e64: 83 e8 01 sub $0x1,%eax 80100e67: 85 c0 test %eax,%eax 80100e69: 89 43 04 mov %eax,0x4(%ebx) 80100e6c: 74 1a je 80100e88 <fileclose+0x48> release(&ftable.lock); 80100e6e: c7 45 08 c0 ff 10 80 movl $0x8010ffc0,0x8(%ebp) else if(ff.type == FD_INODE){ begin_op(); iput(ff.ip); end_op(); } } 80100e75: 8d 65 f4 lea -0xc(%ebp),%esp 80100e78: 5b pop %ebx 80100e79: 5e pop %esi 80100e7a: 5f pop %edi 80100e7b: 5d pop %ebp release(&ftable.lock); 80100e7c: e9 7f 35 00 00 jmp 80104400 <release> 80100e81: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi ff = *f; 80100e88: 0f b6 43 09 movzbl 0x9(%ebx),%eax 80100e8c: 8b 3b mov (%ebx),%edi release(&ftable.lock); 80100e8e: 83 ec 0c sub $0xc,%esp ff = *f; 80100e91: 8b 73 0c mov 0xc(%ebx),%esi f->type = FD_NONE; 80100e94: c7 03 00 00 00 00 movl $0x0,(%ebx) ff = *f; 80100e9a: 88 45 e7 mov %al,-0x19(%ebp) 80100e9d: 8b 43 10 mov 0x10(%ebx),%eax release(&ftable.lock); 80100ea0: 68 c0 ff 10 80 push $0x8010ffc0 ff = *f; 80100ea5: 89 45 e0 mov %eax,-0x20(%ebp) release(&ftable.lock); 80100ea8: e8 53 35 00 00 call 80104400 <release> if(ff.type == FD_PIPE) 80100ead: 83 c4 10 add $0x10,%esp 80100eb0: 83 ff 01 cmp $0x1,%edi 80100eb3: 74 13 je 80100ec8 <fileclose+0x88> else if(ff.type == FD_INODE){ 80100eb5: 83 ff 02 cmp $0x2,%edi 80100eb8: 74 26 je 80100ee0 <fileclose+0xa0> } 80100eba: 8d 65 f4 lea -0xc(%ebp),%esp 80100ebd: 5b pop %ebx 80100ebe: 5e pop %esi 80100ebf: 5f pop %edi 80100ec0: 5d pop %ebp 80100ec1: c3 ret 80100ec2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi pipeclose(ff.pipe, ff.writable); 80100ec8: 0f be 5d e7 movsbl -0x19(%ebp),%ebx 80100ecc: 83 ec 08 sub $0x8,%esp 80100ecf: 53 push %ebx 80100ed0: 56 push %esi 80100ed1: e8 7a 24 00 00 call 80103350 <pipeclose> 80100ed6: 83 c4 10 add $0x10,%esp 80100ed9: eb df jmp 80100eba <fileclose+0x7a> 80100edb: 90 nop 80100edc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi begin_op(); 80100ee0: e8 bb 1c 00 00 call 80102ba0 <begin_op> iput(ff.ip); 80100ee5: 83 ec 0c sub $0xc,%esp 80100ee8: ff 75 e0 pushl -0x20(%ebp) 80100eeb: e8 c0 08 00 00 call 801017b0 <iput> end_op(); 80100ef0: 83 c4 10 add $0x10,%esp } 80100ef3: 8d 65 f4 lea -0xc(%ebp),%esp 80100ef6: 5b pop %ebx 80100ef7: 5e pop %esi 80100ef8: 5f pop %edi 80100ef9: 5d pop %ebp end_op(); 80100efa: e9 11 1d 00 00 jmp 80102c10 <end_op> panic("fileclose"); 80100eff: 83 ec 0c sub $0xc,%esp 80100f02: 68 5c 6f 10 80 push $0x80106f5c 80100f07: e8 84 f4 ff ff call 80100390 <panic> 80100f0c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80100f10 <filestat>: // Get metadata about file f. int filestat(struct file *f, struct stat *st) { 80100f10: 55 push %ebp 80100f11: 89 e5 mov %esp,%ebp 80100f13: 53 push %ebx 80100f14: 83 ec 04 sub $0x4,%esp 80100f17: 8b 5d 08 mov 0x8(%ebp),%ebx if(f->type == FD_INODE){ 80100f1a: 83 3b 02 cmpl $0x2,(%ebx) 80100f1d: 75 31 jne 80100f50 <filestat+0x40> ilock(f->ip); 80100f1f: 83 ec 0c sub $0xc,%esp 80100f22: ff 73 10 pushl 0x10(%ebx) 80100f25: e8 56 07 00 00 call 80101680 <ilock> stati(f->ip, st); 80100f2a: 58 pop %eax 80100f2b: 5a pop %edx 80100f2c: ff 75 0c pushl 0xc(%ebp) 80100f2f: ff 73 10 pushl 0x10(%ebx) 80100f32: e8 f9 09 00 00 call 80101930 <stati> iunlock(f->ip); 80100f37: 59 pop %ecx 80100f38: ff 73 10 pushl 0x10(%ebx) 80100f3b: e8 20 08 00 00 call 80101760 <iunlock> return 0; 80100f40: 83 c4 10 add $0x10,%esp 80100f43: 31 c0 xor %eax,%eax } return -1; } 80100f45: 8b 5d fc mov -0x4(%ebp),%ebx 80100f48: c9 leave 80100f49: c3 ret 80100f4a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi return -1; 80100f50: b8 ff ff ff ff mov $0xffffffff,%eax 80100f55: eb ee jmp 80100f45 <filestat+0x35> 80100f57: 89 f6 mov %esi,%esi 80100f59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80100f60 <fileread>: // Read from file f. int fileread(struct file *f, char *addr, int n) { 80100f60: 55 push %ebp 80100f61: 89 e5 mov %esp,%ebp 80100f63: 57 push %edi 80100f64: 56 push %esi 80100f65: 53 push %ebx 80100f66: 83 ec 0c sub $0xc,%esp 80100f69: 8b 5d 08 mov 0x8(%ebp),%ebx 80100f6c: 8b 75 0c mov 0xc(%ebp),%esi 80100f6f: 8b 7d 10 mov 0x10(%ebp),%edi int r; if(f->readable == 0) 80100f72: 80 7b 08 00 cmpb $0x0,0x8(%ebx) 80100f76: 74 60 je 80100fd8 <fileread+0x78> return -1; if(f->type == FD_PIPE) 80100f78: 8b 03 mov (%ebx),%eax 80100f7a: 83 f8 01 cmp $0x1,%eax 80100f7d: 74 41 je 80100fc0 <fileread+0x60> return piperead(f->pipe, addr, n); if(f->type == FD_INODE){ 80100f7f: 83 f8 02 cmp $0x2,%eax 80100f82: 75 5b jne 80100fdf <fileread+0x7f> ilock(f->ip); 80100f84: 83 ec 0c sub $0xc,%esp 80100f87: ff 73 10 pushl 0x10(%ebx) 80100f8a: e8 f1 06 00 00 call 80101680 <ilock> if((r = readi(f->ip, addr, f->off, n)) > 0) 80100f8f: 57 push %edi 80100f90: ff 73 14 pushl 0x14(%ebx) 80100f93: 56 push %esi 80100f94: ff 73 10 pushl 0x10(%ebx) 80100f97: e8 c4 09 00 00 call 80101960 <readi> 80100f9c: 83 c4 20 add $0x20,%esp 80100f9f: 85 c0 test %eax,%eax 80100fa1: 89 c6 mov %eax,%esi 80100fa3: 7e 03 jle 80100fa8 <fileread+0x48> f->off += r; 80100fa5: 01 43 14 add %eax,0x14(%ebx) iunlock(f->ip); 80100fa8: 83 ec 0c sub $0xc,%esp 80100fab: ff 73 10 pushl 0x10(%ebx) 80100fae: e8 ad 07 00 00 call 80101760 <iunlock> return r; 80100fb3: 83 c4 10 add $0x10,%esp } panic("fileread"); } 80100fb6: 8d 65 f4 lea -0xc(%ebp),%esp 80100fb9: 89 f0 mov %esi,%eax 80100fbb: 5b pop %ebx 80100fbc: 5e pop %esi 80100fbd: 5f pop %edi 80100fbe: 5d pop %ebp 80100fbf: c3 ret return piperead(f->pipe, addr, n); 80100fc0: 8b 43 0c mov 0xc(%ebx),%eax 80100fc3: 89 45 08 mov %eax,0x8(%ebp) } 80100fc6: 8d 65 f4 lea -0xc(%ebp),%esp 80100fc9: 5b pop %ebx 80100fca: 5e pop %esi 80100fcb: 5f pop %edi 80100fcc: 5d pop %ebp return piperead(f->pipe, addr, n); 80100fcd: e9 2e 25 00 00 jmp 80103500 <piperead> 80100fd2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi return -1; 80100fd8: be ff ff ff ff mov $0xffffffff,%esi 80100fdd: eb d7 jmp 80100fb6 <fileread+0x56> panic("fileread"); 80100fdf: 83 ec 0c sub $0xc,%esp 80100fe2: 68 66 6f 10 80 push $0x80106f66 80100fe7: e8 a4 f3 ff ff call 80100390 <panic> 80100fec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80100ff0 <filewrite>: //PAGEBREAK! // Write to file f. int filewrite(struct file *f, char *addr, int n) { 80100ff0: 55 push %ebp 80100ff1: 89 e5 mov %esp,%ebp 80100ff3: 57 push %edi 80100ff4: 56 push %esi 80100ff5: 53 push %ebx 80100ff6: 83 ec 1c sub $0x1c,%esp 80100ff9: 8b 75 08 mov 0x8(%ebp),%esi 80100ffc: 8b 45 0c mov 0xc(%ebp),%eax int r; if(f->writable == 0) 80100fff: 80 7e 09 00 cmpb $0x0,0x9(%esi) { 80101003: 89 45 dc mov %eax,-0x24(%ebp) 80101006: 8b 45 10 mov 0x10(%ebp),%eax 80101009: 89 45 e4 mov %eax,-0x1c(%ebp) if(f->writable == 0) 8010100c: 0f 84 aa 00 00 00 je 801010bc <filewrite+0xcc> return -1; if(f->type == FD_PIPE) 80101012: 8b 06 mov (%esi),%eax 80101014: 83 f8 01 cmp $0x1,%eax 80101017: 0f 84 c3 00 00 00 je 801010e0 <filewrite+0xf0> return pipewrite(f->pipe, addr, n); if(f->type == FD_INODE){ 8010101d: 83 f8 02 cmp $0x2,%eax 80101020: 0f 85 d9 00 00 00 jne 801010ff <filewrite+0x10f> // and 2 blocks of slop for non-aligned writes. // this really belongs lower down, since writei() // might be writing a device like the console. int max = ((MAXOPBLOCKS-1-1-2) / 2) * 512; int i = 0; while(i < n){ 80101026: 8b 45 e4 mov -0x1c(%ebp),%eax int i = 0; 80101029: 31 ff xor %edi,%edi while(i < n){ 8010102b: 85 c0 test %eax,%eax 8010102d: 7f 34 jg 80101063 <filewrite+0x73> 8010102f: e9 9c 00 00 00 jmp 801010d0 <filewrite+0xe0> 80101034: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi n1 = max; begin_op(); ilock(f->ip); if ((r = writei(f->ip, addr + i, f->off, n1)) > 0) f->off += r; 80101038: 01 46 14 add %eax,0x14(%esi) iunlock(f->ip); 8010103b: 83 ec 0c sub $0xc,%esp 8010103e: ff 76 10 pushl 0x10(%esi) f->off += r; 80101041: 89 45 e0 mov %eax,-0x20(%ebp) iunlock(f->ip); 80101044: e8 17 07 00 00 call 80101760 <iunlock> end_op(); 80101049: e8 c2 1b 00 00 call 80102c10 <end_op> 8010104e: 8b 45 e0 mov -0x20(%ebp),%eax 80101051: 83 c4 10 add $0x10,%esp if(r < 0) break; if(r != n1) 80101054: 39 c3 cmp %eax,%ebx 80101056: 0f 85 96 00 00 00 jne 801010f2 <filewrite+0x102> panic("short filewrite"); i += r; 8010105c: 01 df add %ebx,%edi while(i < n){ 8010105e: 39 7d e4 cmp %edi,-0x1c(%ebp) 80101061: 7e 6d jle 801010d0 <filewrite+0xe0> int n1 = n - i; 80101063: 8b 5d e4 mov -0x1c(%ebp),%ebx 80101066: b8 00 06 00 00 mov $0x600,%eax 8010106b: 29 fb sub %edi,%ebx 8010106d: 81 fb 00 06 00 00 cmp $0x600,%ebx 80101073: 0f 4f d8 cmovg %eax,%ebx begin_op(); 80101076: e8 25 1b 00 00 call 80102ba0 <begin_op> ilock(f->ip); 8010107b: 83 ec 0c sub $0xc,%esp 8010107e: ff 76 10 pushl 0x10(%esi) 80101081: e8 fa 05 00 00 call 80101680 <ilock> if ((r = writei(f->ip, addr + i, f->off, n1)) > 0) 80101086: 8b 45 dc mov -0x24(%ebp),%eax 80101089: 53 push %ebx 8010108a: ff 76 14 pushl 0x14(%esi) 8010108d: 01 f8 add %edi,%eax 8010108f: 50 push %eax 80101090: ff 76 10 pushl 0x10(%esi) 80101093: e8 c8 09 00 00 call 80101a60 <writei> 80101098: 83 c4 20 add $0x20,%esp 8010109b: 85 c0 test %eax,%eax 8010109d: 7f 99 jg 80101038 <filewrite+0x48> iunlock(f->ip); 8010109f: 83 ec 0c sub $0xc,%esp 801010a2: ff 76 10 pushl 0x10(%esi) 801010a5: 89 45 e0 mov %eax,-0x20(%ebp) 801010a8: e8 b3 06 00 00 call 80101760 <iunlock> end_op(); 801010ad: e8 5e 1b 00 00 call 80102c10 <end_op> if(r < 0) 801010b2: 8b 45 e0 mov -0x20(%ebp),%eax 801010b5: 83 c4 10 add $0x10,%esp 801010b8: 85 c0 test %eax,%eax 801010ba: 74 98 je 80101054 <filewrite+0x64> } return i == n ? n : -1; } panic("filewrite"); } 801010bc: 8d 65 f4 lea -0xc(%ebp),%esp return -1; 801010bf: bf ff ff ff ff mov $0xffffffff,%edi } 801010c4: 89 f8 mov %edi,%eax 801010c6: 5b pop %ebx 801010c7: 5e pop %esi 801010c8: 5f pop %edi 801010c9: 5d pop %ebp 801010ca: c3 ret 801010cb: 90 nop 801010cc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return i == n ? n : -1; 801010d0: 39 7d e4 cmp %edi,-0x1c(%ebp) 801010d3: 75 e7 jne 801010bc <filewrite+0xcc> } 801010d5: 8d 65 f4 lea -0xc(%ebp),%esp 801010d8: 89 f8 mov %edi,%eax 801010da: 5b pop %ebx 801010db: 5e pop %esi 801010dc: 5f pop %edi 801010dd: 5d pop %ebp 801010de: c3 ret 801010df: 90 nop return pipewrite(f->pipe, addr, n); 801010e0: 8b 46 0c mov 0xc(%esi),%eax 801010e3: 89 45 08 mov %eax,0x8(%ebp) } 801010e6: 8d 65 f4 lea -0xc(%ebp),%esp 801010e9: 5b pop %ebx 801010ea: 5e pop %esi 801010eb: 5f pop %edi 801010ec: 5d pop %ebp return pipewrite(f->pipe, addr, n); 801010ed: e9 fe 22 00 00 jmp 801033f0 <pipewrite> panic("short filewrite"); 801010f2: 83 ec 0c sub $0xc,%esp 801010f5: 68 6f 6f 10 80 push $0x80106f6f 801010fa: e8 91 f2 ff ff call 80100390 <panic> panic("filewrite"); 801010ff: 83 ec 0c sub $0xc,%esp 80101102: 68 75 6f 10 80 push $0x80106f75 80101107: e8 84 f2 ff ff call 80100390 <panic> 8010110c: 66 90 xchg %ax,%ax 8010110e: 66 90 xchg %ax,%ax 80101110 <bfree>: } // Free a disk block. static void bfree(int dev, uint b) { 80101110: 55 push %ebp 80101111: 89 e5 mov %esp,%ebp 80101113: 56 push %esi 80101114: 53 push %ebx 80101115: 89 d3 mov %edx,%ebx struct buf *bp; int bi, m; bp = bread(dev, BBLOCK(b, sb)); 80101117: c1 ea 0c shr $0xc,%edx 8010111a: 03 15 d8 09 11 80 add 0x801109d8,%edx 80101120: 83 ec 08 sub $0x8,%esp 80101123: 52 push %edx 80101124: 50 push %eax 80101125: e8 a6 ef ff ff call 801000d0 <bread> bi = b % BPB; m = 1 << (bi % 8); 8010112a: 89 d9 mov %ebx,%ecx if((bp->data[bi/8] & m) == 0) 8010112c: c1 fb 03 sar $0x3,%ebx m = 1 << (bi % 8); 8010112f: ba 01 00 00 00 mov $0x1,%edx 80101134: 83 e1 07 and $0x7,%ecx if((bp->data[bi/8] & m) == 0) 80101137: 81 e3 ff 01 00 00 and $0x1ff,%ebx 8010113d: 83 c4 10 add $0x10,%esp m = 1 << (bi % 8); 80101140: d3 e2 shl %cl,%edx if((bp->data[bi/8] & m) == 0) 80101142: 0f b6 4c 18 5c movzbl 0x5c(%eax,%ebx,1),%ecx 80101147: 85 d1 test %edx,%ecx 80101149: 74 25 je 80101170 <bfree+0x60> panic("freeing free block"); bp->data[bi/8] &= ~m; 8010114b: f7 d2 not %edx 8010114d: 89 c6 mov %eax,%esi log_write(bp); 8010114f: 83 ec 0c sub $0xc,%esp bp->data[bi/8] &= ~m; 80101152: 21 ca and %ecx,%edx 80101154: 88 54 1e 5c mov %dl,0x5c(%esi,%ebx,1) log_write(bp); 80101158: 56 push %esi 80101159: e8 12 1c 00 00 call 80102d70 <log_write> brelse(bp); 8010115e: 89 34 24 mov %esi,(%esp) 80101161: e8 7a f0 ff ff call 801001e0 <brelse> } 80101166: 83 c4 10 add $0x10,%esp 80101169: 8d 65 f8 lea -0x8(%ebp),%esp 8010116c: 5b pop %ebx 8010116d: 5e pop %esi 8010116e: 5d pop %ebp 8010116f: c3 ret panic("freeing free block"); 80101170: 83 ec 0c sub $0xc,%esp 80101173: 68 7f 6f 10 80 push $0x80106f7f 80101178: e8 13 f2 ff ff call 80100390 <panic> 8010117d: 8d 76 00 lea 0x0(%esi),%esi 80101180 <balloc>: { 80101180: 55 push %ebp 80101181: 89 e5 mov %esp,%ebp 80101183: 57 push %edi 80101184: 56 push %esi 80101185: 53 push %ebx 80101186: 83 ec 1c sub $0x1c,%esp for(b = 0; b < sb.size; b += BPB){ 80101189: 8b 0d c0 09 11 80 mov 0x801109c0,%ecx { 8010118f: 89 45 d8 mov %eax,-0x28(%ebp) for(b = 0; b < sb.size; b += BPB){ 80101192: 85 c9 test %ecx,%ecx 80101194: 0f 84 87 00 00 00 je 80101221 <balloc+0xa1> 8010119a: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp) bp = bread(dev, BBLOCK(b, sb)); 801011a1: 8b 75 dc mov -0x24(%ebp),%esi 801011a4: 83 ec 08 sub $0x8,%esp 801011a7: 89 f0 mov %esi,%eax 801011a9: c1 f8 0c sar $0xc,%eax 801011ac: 03 05 d8 09 11 80 add 0x801109d8,%eax 801011b2: 50 push %eax 801011b3: ff 75 d8 pushl -0x28(%ebp) 801011b6: e8 15 ef ff ff call 801000d0 <bread> 801011bb: 89 45 e4 mov %eax,-0x1c(%ebp) for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ 801011be: a1 c0 09 11 80 mov 0x801109c0,%eax 801011c3: 83 c4 10 add $0x10,%esp 801011c6: 89 45 e0 mov %eax,-0x20(%ebp) 801011c9: 31 c0 xor %eax,%eax 801011cb: eb 2f jmp 801011fc <balloc+0x7c> 801011cd: 8d 76 00 lea 0x0(%esi),%esi m = 1 << (bi % 8); 801011d0: 89 c1 mov %eax,%ecx if((bp->data[bi/8] & m) == 0){ // Is block free? 801011d2: 8b 55 e4 mov -0x1c(%ebp),%edx m = 1 << (bi % 8); 801011d5: bb 01 00 00 00 mov $0x1,%ebx 801011da: 83 e1 07 and $0x7,%ecx 801011dd: d3 e3 shl %cl,%ebx if((bp->data[bi/8] & m) == 0){ // Is block free? 801011df: 89 c1 mov %eax,%ecx 801011e1: c1 f9 03 sar $0x3,%ecx 801011e4: 0f b6 7c 0a 5c movzbl 0x5c(%edx,%ecx,1),%edi 801011e9: 85 df test %ebx,%edi 801011eb: 89 fa mov %edi,%edx 801011ed: 74 41 je 80101230 <balloc+0xb0> for(bi = 0; bi < BPB && b + bi < sb.size; bi++){ 801011ef: 83 c0 01 add $0x1,%eax 801011f2: 83 c6 01 add $0x1,%esi 801011f5: 3d 00 10 00 00 cmp $0x1000,%eax 801011fa: 74 05 je 80101201 <balloc+0x81> 801011fc: 39 75 e0 cmp %esi,-0x20(%ebp) 801011ff: 77 cf ja 801011d0 <balloc+0x50> brelse(bp); 80101201: 83 ec 0c sub $0xc,%esp 80101204: ff 75 e4 pushl -0x1c(%ebp) 80101207: e8 d4 ef ff ff call 801001e0 <brelse> for(b = 0; b < sb.size; b += BPB){ 8010120c: 81 45 dc 00 10 00 00 addl $0x1000,-0x24(%ebp) 80101213: 83 c4 10 add $0x10,%esp 80101216: 8b 45 dc mov -0x24(%ebp),%eax 80101219: 39 05 c0 09 11 80 cmp %eax,0x801109c0 8010121f: 77 80 ja 801011a1 <balloc+0x21> panic("balloc: out of blocks"); 80101221: 83 ec 0c sub $0xc,%esp 80101224: 68 92 6f 10 80 push $0x80106f92 80101229: e8 62 f1 ff ff call 80100390 <panic> 8010122e: 66 90 xchg %ax,%ax bp->data[bi/8] |= m; // Mark block in use. 80101230: 8b 7d e4 mov -0x1c(%ebp),%edi log_write(bp); 80101233: 83 ec 0c sub $0xc,%esp bp->data[bi/8] |= m; // Mark block in use. 80101236: 09 da or %ebx,%edx 80101238: 88 54 0f 5c mov %dl,0x5c(%edi,%ecx,1) log_write(bp); 8010123c: 57 push %edi 8010123d: e8 2e 1b 00 00 call 80102d70 <log_write> brelse(bp); 80101242: 89 3c 24 mov %edi,(%esp) 80101245: e8 96 ef ff ff call 801001e0 <brelse> bp = bread(dev, bno); 8010124a: 58 pop %eax 8010124b: 5a pop %edx 8010124c: 56 push %esi 8010124d: ff 75 d8 pushl -0x28(%ebp) 80101250: e8 7b ee ff ff call 801000d0 <bread> 80101255: 89 c3 mov %eax,%ebx memset(bp->data, 0, BSIZE); 80101257: 8d 40 5c lea 0x5c(%eax),%eax 8010125a: 83 c4 0c add $0xc,%esp 8010125d: 68 00 02 00 00 push $0x200 80101262: 6a 00 push $0x0 80101264: 50 push %eax 80101265: e8 e6 31 00 00 call 80104450 <memset> log_write(bp); 8010126a: 89 1c 24 mov %ebx,(%esp) 8010126d: e8 fe 1a 00 00 call 80102d70 <log_write> brelse(bp); 80101272: 89 1c 24 mov %ebx,(%esp) 80101275: e8 66 ef ff ff call 801001e0 <brelse> } 8010127a: 8d 65 f4 lea -0xc(%ebp),%esp 8010127d: 89 f0 mov %esi,%eax 8010127f: 5b pop %ebx 80101280: 5e pop %esi 80101281: 5f pop %edi 80101282: 5d pop %ebp 80101283: c3 ret 80101284: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8010128a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80101290 <iget>: // Find the inode with number inum on device dev // and return the in-memory copy. Does not lock // the inode and does not read it from disk. static struct inode* iget(uint dev, uint inum) { 80101290: 55 push %ebp 80101291: 89 e5 mov %esp,%ebp 80101293: 57 push %edi 80101294: 56 push %esi 80101295: 53 push %ebx 80101296: 89 c7 mov %eax,%edi struct inode *ip, *empty; acquire(&icache.lock); // Is the inode already cached? empty = 0; 80101298: 31 f6 xor %esi,%esi for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 8010129a: bb 14 0a 11 80 mov $0x80110a14,%ebx { 8010129f: 83 ec 28 sub $0x28,%esp 801012a2: 89 55 e4 mov %edx,-0x1c(%ebp) acquire(&icache.lock); 801012a5: 68 e0 09 11 80 push $0x801109e0 801012aa: e8 91 30 00 00 call 80104340 <acquire> 801012af: 83 c4 10 add $0x10,%esp for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 801012b2: 8b 55 e4 mov -0x1c(%ebp),%edx 801012b5: eb 17 jmp 801012ce <iget+0x3e> 801012b7: 89 f6 mov %esi,%esi 801012b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801012c0: 81 c3 90 00 00 00 add $0x90,%ebx 801012c6: 81 fb 34 26 11 80 cmp $0x80112634,%ebx 801012cc: 73 22 jae 801012f0 <iget+0x60> if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ 801012ce: 8b 4b 08 mov 0x8(%ebx),%ecx 801012d1: 85 c9 test %ecx,%ecx 801012d3: 7e 04 jle 801012d9 <iget+0x49> 801012d5: 39 3b cmp %edi,(%ebx) 801012d7: 74 4f je 80101328 <iget+0x98> ip->ref++; release(&icache.lock); return ip; } if(empty == 0 && ip->ref == 0) // Remember empty slot. 801012d9: 85 f6 test %esi,%esi 801012db: 75 e3 jne 801012c0 <iget+0x30> 801012dd: 85 c9 test %ecx,%ecx 801012df: 0f 44 f3 cmove %ebx,%esi for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){ 801012e2: 81 c3 90 00 00 00 add $0x90,%ebx 801012e8: 81 fb 34 26 11 80 cmp $0x80112634,%ebx 801012ee: 72 de jb 801012ce <iget+0x3e> empty = ip; } // Recycle an inode cache entry. if(empty == 0) 801012f0: 85 f6 test %esi,%esi 801012f2: 74 5b je 8010134f <iget+0xbf> ip = empty; ip->dev = dev; ip->inum = inum; ip->ref = 1; ip->valid = 0; release(&icache.lock); 801012f4: 83 ec 0c sub $0xc,%esp ip->dev = dev; 801012f7: 89 3e mov %edi,(%esi) ip->inum = inum; 801012f9: 89 56 04 mov %edx,0x4(%esi) ip->ref = 1; 801012fc: c7 46 08 01 00 00 00 movl $0x1,0x8(%esi) ip->valid = 0; 80101303: c7 46 4c 00 00 00 00 movl $0x0,0x4c(%esi) release(&icache.lock); 8010130a: 68 e0 09 11 80 push $0x801109e0 8010130f: e8 ec 30 00 00 call 80104400 <release> return ip; 80101314: 83 c4 10 add $0x10,%esp } 80101317: 8d 65 f4 lea -0xc(%ebp),%esp 8010131a: 89 f0 mov %esi,%eax 8010131c: 5b pop %ebx 8010131d: 5e pop %esi 8010131e: 5f pop %edi 8010131f: 5d pop %ebp 80101320: c3 ret 80101321: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){ 80101328: 39 53 04 cmp %edx,0x4(%ebx) 8010132b: 75 ac jne 801012d9 <iget+0x49> release(&icache.lock); 8010132d: 83 ec 0c sub $0xc,%esp ip->ref++; 80101330: 83 c1 01 add $0x1,%ecx return ip; 80101333: 89 de mov %ebx,%esi release(&icache.lock); 80101335: 68 e0 09 11 80 push $0x801109e0 ip->ref++; 8010133a: 89 4b 08 mov %ecx,0x8(%ebx) release(&icache.lock); 8010133d: e8 be 30 00 00 call 80104400 <release> return ip; 80101342: 83 c4 10 add $0x10,%esp } 80101345: 8d 65 f4 lea -0xc(%ebp),%esp 80101348: 89 f0 mov %esi,%eax 8010134a: 5b pop %ebx 8010134b: 5e pop %esi 8010134c: 5f pop %edi 8010134d: 5d pop %ebp 8010134e: c3 ret panic("iget: no inodes"); 8010134f: 83 ec 0c sub $0xc,%esp 80101352: 68 a8 6f 10 80 push $0x80106fa8 80101357: e8 34 f0 ff ff call 80100390 <panic> 8010135c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101360 <bmap>: // Return the disk block address of the nth block in inode ip. // If there is no such block, bmap allocates one. static uint bmap(struct inode *ip, uint bn) { 80101360: 55 push %ebp 80101361: 89 e5 mov %esp,%ebp 80101363: 57 push %edi 80101364: 56 push %esi 80101365: 53 push %ebx 80101366: 89 c6 mov %eax,%esi 80101368: 83 ec 1c sub $0x1c,%esp uint addr, *a; struct buf *bp; if(bn < NDIRECT){ 8010136b: 83 fa 0b cmp $0xb,%edx 8010136e: 77 18 ja 80101388 <bmap+0x28> 80101370: 8d 3c 90 lea (%eax,%edx,4),%edi if((addr = ip->addrs[bn]) == 0) 80101373: 8b 5f 5c mov 0x5c(%edi),%ebx 80101376: 85 db test %ebx,%ebx 80101378: 74 76 je 801013f0 <bmap+0x90> brelse(bp); return addr; } panic("bmap: out of range"); } 8010137a: 8d 65 f4 lea -0xc(%ebp),%esp 8010137d: 89 d8 mov %ebx,%eax 8010137f: 5b pop %ebx 80101380: 5e pop %esi 80101381: 5f pop %edi 80101382: 5d pop %ebp 80101383: c3 ret 80101384: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi bn -= NDIRECT; 80101388: 8d 5a f4 lea -0xc(%edx),%ebx if(bn < NINDIRECT){ 8010138b: 83 fb 7f cmp $0x7f,%ebx 8010138e: 0f 87 90 00 00 00 ja 80101424 <bmap+0xc4> if((addr = ip->addrs[NDIRECT]) == 0) 80101394: 8b 90 8c 00 00 00 mov 0x8c(%eax),%edx 8010139a: 8b 00 mov (%eax),%eax 8010139c: 85 d2 test %edx,%edx 8010139e: 74 70 je 80101410 <bmap+0xb0> bp = bread(ip->dev, addr); 801013a0: 83 ec 08 sub $0x8,%esp 801013a3: 52 push %edx 801013a4: 50 push %eax 801013a5: e8 26 ed ff ff call 801000d0 <bread> if((addr = a[bn]) == 0){ 801013aa: 8d 54 98 5c lea 0x5c(%eax,%ebx,4),%edx 801013ae: 83 c4 10 add $0x10,%esp bp = bread(ip->dev, addr); 801013b1: 89 c7 mov %eax,%edi if((addr = a[bn]) == 0){ 801013b3: 8b 1a mov (%edx),%ebx 801013b5: 85 db test %ebx,%ebx 801013b7: 75 1d jne 801013d6 <bmap+0x76> a[bn] = addr = balloc(ip->dev); 801013b9: 8b 06 mov (%esi),%eax 801013bb: 89 55 e4 mov %edx,-0x1c(%ebp) 801013be: e8 bd fd ff ff call 80101180 <balloc> 801013c3: 8b 55 e4 mov -0x1c(%ebp),%edx log_write(bp); 801013c6: 83 ec 0c sub $0xc,%esp a[bn] = addr = balloc(ip->dev); 801013c9: 89 c3 mov %eax,%ebx 801013cb: 89 02 mov %eax,(%edx) log_write(bp); 801013cd: 57 push %edi 801013ce: e8 9d 19 00 00 call 80102d70 <log_write> 801013d3: 83 c4 10 add $0x10,%esp brelse(bp); 801013d6: 83 ec 0c sub $0xc,%esp 801013d9: 57 push %edi 801013da: e8 01 ee ff ff call 801001e0 <brelse> 801013df: 83 c4 10 add $0x10,%esp } 801013e2: 8d 65 f4 lea -0xc(%ebp),%esp 801013e5: 89 d8 mov %ebx,%eax 801013e7: 5b pop %ebx 801013e8: 5e pop %esi 801013e9: 5f pop %edi 801013ea: 5d pop %ebp 801013eb: c3 ret 801013ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi ip->addrs[bn] = addr = balloc(ip->dev); 801013f0: 8b 00 mov (%eax),%eax 801013f2: e8 89 fd ff ff call 80101180 <balloc> 801013f7: 89 47 5c mov %eax,0x5c(%edi) } 801013fa: 8d 65 f4 lea -0xc(%ebp),%esp ip->addrs[bn] = addr = balloc(ip->dev); 801013fd: 89 c3 mov %eax,%ebx } 801013ff: 89 d8 mov %ebx,%eax 80101401: 5b pop %ebx 80101402: 5e pop %esi 80101403: 5f pop %edi 80101404: 5d pop %ebp 80101405: c3 ret 80101406: 8d 76 00 lea 0x0(%esi),%esi 80101409: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi ip->addrs[NDIRECT] = addr = balloc(ip->dev); 80101410: e8 6b fd ff ff call 80101180 <balloc> 80101415: 89 c2 mov %eax,%edx 80101417: 89 86 8c 00 00 00 mov %eax,0x8c(%esi) 8010141d: 8b 06 mov (%esi),%eax 8010141f: e9 7c ff ff ff jmp 801013a0 <bmap+0x40> panic("bmap: out of range"); 80101424: 83 ec 0c sub $0xc,%esp 80101427: 68 b8 6f 10 80 push $0x80106fb8 8010142c: e8 5f ef ff ff call 80100390 <panic> 80101431: eb 0d jmp 80101440 <readsb> 80101433: 90 nop 80101434: 90 nop 80101435: 90 nop 80101436: 90 nop 80101437: 90 nop 80101438: 90 nop 80101439: 90 nop 8010143a: 90 nop 8010143b: 90 nop 8010143c: 90 nop 8010143d: 90 nop 8010143e: 90 nop 8010143f: 90 nop 80101440 <readsb>: { 80101440: 55 push %ebp 80101441: 89 e5 mov %esp,%ebp 80101443: 56 push %esi 80101444: 53 push %ebx 80101445: 8b 75 0c mov 0xc(%ebp),%esi bp = bread(dev, 1); 80101448: 83 ec 08 sub $0x8,%esp 8010144b: 6a 01 push $0x1 8010144d: ff 75 08 pushl 0x8(%ebp) 80101450: e8 7b ec ff ff call 801000d0 <bread> 80101455: 89 c3 mov %eax,%ebx memmove(sb, bp->data, sizeof(*sb)); 80101457: 8d 40 5c lea 0x5c(%eax),%eax 8010145a: 83 c4 0c add $0xc,%esp 8010145d: 6a 1c push $0x1c 8010145f: 50 push %eax 80101460: 56 push %esi 80101461: e8 9a 30 00 00 call 80104500 <memmove> brelse(bp); 80101466: 89 5d 08 mov %ebx,0x8(%ebp) 80101469: 83 c4 10 add $0x10,%esp } 8010146c: 8d 65 f8 lea -0x8(%ebp),%esp 8010146f: 5b pop %ebx 80101470: 5e pop %esi 80101471: 5d pop %ebp brelse(bp); 80101472: e9 69 ed ff ff jmp 801001e0 <brelse> 80101477: 89 f6 mov %esi,%esi 80101479: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80101480 <iinit>: { 80101480: 55 push %ebp 80101481: 89 e5 mov %esp,%ebp 80101483: 53 push %ebx 80101484: bb 20 0a 11 80 mov $0x80110a20,%ebx 80101489: 83 ec 0c sub $0xc,%esp initlock(&icache.lock, "icache"); 8010148c: 68 cb 6f 10 80 push $0x80106fcb 80101491: 68 e0 09 11 80 push $0x801109e0 80101496: e8 65 2d 00 00 call 80104200 <initlock> 8010149b: 83 c4 10 add $0x10,%esp 8010149e: 66 90 xchg %ax,%ax initsleeplock(&icache.inode[i].lock, "inode"); 801014a0: 83 ec 08 sub $0x8,%esp 801014a3: 68 d2 6f 10 80 push $0x80106fd2 801014a8: 53 push %ebx 801014a9: 81 c3 90 00 00 00 add $0x90,%ebx 801014af: e8 1c 2c 00 00 call 801040d0 <initsleeplock> for(i = 0; i < NINODE; i++) { 801014b4: 83 c4 10 add $0x10,%esp 801014b7: 81 fb 40 26 11 80 cmp $0x80112640,%ebx 801014bd: 75 e1 jne 801014a0 <iinit+0x20> readsb(dev, &sb); 801014bf: 83 ec 08 sub $0x8,%esp 801014c2: 68 c0 09 11 80 push $0x801109c0 801014c7: ff 75 08 pushl 0x8(%ebp) 801014ca: e8 71 ff ff ff call 80101440 <readsb> cprintf("sb: size %d nblocks %d ninodes %d nlog %d logstart %d\ 801014cf: ff 35 d8 09 11 80 pushl 0x801109d8 801014d5: ff 35 d4 09 11 80 pushl 0x801109d4 801014db: ff 35 d0 09 11 80 pushl 0x801109d0 801014e1: ff 35 cc 09 11 80 pushl 0x801109cc 801014e7: ff 35 c8 09 11 80 pushl 0x801109c8 801014ed: ff 35 c4 09 11 80 pushl 0x801109c4 801014f3: ff 35 c0 09 11 80 pushl 0x801109c0 801014f9: 68 38 70 10 80 push $0x80107038 801014fe: e8 5d f1 ff ff call 80100660 <cprintf> } 80101503: 83 c4 30 add $0x30,%esp 80101506: 8b 5d fc mov -0x4(%ebp),%ebx 80101509: c9 leave 8010150a: c3 ret 8010150b: 90 nop 8010150c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101510 <ialloc>: { 80101510: 55 push %ebp 80101511: 89 e5 mov %esp,%ebp 80101513: 57 push %edi 80101514: 56 push %esi 80101515: 53 push %ebx 80101516: 83 ec 1c sub $0x1c,%esp for(inum = 1; inum < sb.ninodes; inum++){ 80101519: 83 3d c8 09 11 80 01 cmpl $0x1,0x801109c8 { 80101520: 8b 45 0c mov 0xc(%ebp),%eax 80101523: 8b 75 08 mov 0x8(%ebp),%esi 80101526: 89 45 e4 mov %eax,-0x1c(%ebp) for(inum = 1; inum < sb.ninodes; inum++){ 80101529: 0f 86 91 00 00 00 jbe 801015c0 <ialloc+0xb0> 8010152f: bb 01 00 00 00 mov $0x1,%ebx 80101534: eb 21 jmp 80101557 <ialloc+0x47> 80101536: 8d 76 00 lea 0x0(%esi),%esi 80101539: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi brelse(bp); 80101540: 83 ec 0c sub $0xc,%esp for(inum = 1; inum < sb.ninodes; inum++){ 80101543: 83 c3 01 add $0x1,%ebx brelse(bp); 80101546: 57 push %edi 80101547: e8 94 ec ff ff call 801001e0 <brelse> for(inum = 1; inum < sb.ninodes; inum++){ 8010154c: 83 c4 10 add $0x10,%esp 8010154f: 39 1d c8 09 11 80 cmp %ebx,0x801109c8 80101555: 76 69 jbe 801015c0 <ialloc+0xb0> bp = bread(dev, IBLOCK(inum, sb)); 80101557: 89 d8 mov %ebx,%eax 80101559: 83 ec 08 sub $0x8,%esp 8010155c: c1 e8 03 shr $0x3,%eax 8010155f: 03 05 d4 09 11 80 add 0x801109d4,%eax 80101565: 50 push %eax 80101566: 56 push %esi 80101567: e8 64 eb ff ff call 801000d0 <bread> 8010156c: 89 c7 mov %eax,%edi dip = (struct dinode*)bp->data + inum%IPB; 8010156e: 89 d8 mov %ebx,%eax if(dip->type == 0){ // a free inode 80101570: 83 c4 10 add $0x10,%esp dip = (struct dinode*)bp->data + inum%IPB; 80101573: 83 e0 07 and $0x7,%eax 80101576: c1 e0 06 shl $0x6,%eax 80101579: 8d 4c 07 5c lea 0x5c(%edi,%eax,1),%ecx if(dip->type == 0){ // a free inode 8010157d: 66 83 39 00 cmpw $0x0,(%ecx) 80101581: 75 bd jne 80101540 <ialloc+0x30> memset(dip, 0, sizeof(*dip)); 80101583: 83 ec 04 sub $0x4,%esp 80101586: 89 4d e0 mov %ecx,-0x20(%ebp) 80101589: 6a 40 push $0x40 8010158b: 6a 00 push $0x0 8010158d: 51 push %ecx 8010158e: e8 bd 2e 00 00 call 80104450 <memset> dip->type = type; 80101593: 0f b7 45 e4 movzwl -0x1c(%ebp),%eax 80101597: 8b 4d e0 mov -0x20(%ebp),%ecx 8010159a: 66 89 01 mov %ax,(%ecx) log_write(bp); // mark it allocated on the disk 8010159d: 89 3c 24 mov %edi,(%esp) 801015a0: e8 cb 17 00 00 call 80102d70 <log_write> brelse(bp); 801015a5: 89 3c 24 mov %edi,(%esp) 801015a8: e8 33 ec ff ff call 801001e0 <brelse> return iget(dev, inum); 801015ad: 83 c4 10 add $0x10,%esp } 801015b0: 8d 65 f4 lea -0xc(%ebp),%esp return iget(dev, inum); 801015b3: 89 da mov %ebx,%edx 801015b5: 89 f0 mov %esi,%eax } 801015b7: 5b pop %ebx 801015b8: 5e pop %esi 801015b9: 5f pop %edi 801015ba: 5d pop %ebp return iget(dev, inum); 801015bb: e9 d0 fc ff ff jmp 80101290 <iget> panic("ialloc: no inodes"); 801015c0: 83 ec 0c sub $0xc,%esp 801015c3: 68 d8 6f 10 80 push $0x80106fd8 801015c8: e8 c3 ed ff ff call 80100390 <panic> 801015cd: 8d 76 00 lea 0x0(%esi),%esi 801015d0 <iupdate>: { 801015d0: 55 push %ebp 801015d1: 89 e5 mov %esp,%ebp 801015d3: 56 push %esi 801015d4: 53 push %ebx 801015d5: 8b 5d 08 mov 0x8(%ebp),%ebx bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801015d8: 83 ec 08 sub $0x8,%esp 801015db: 8b 43 04 mov 0x4(%ebx),%eax memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 801015de: 83 c3 5c add $0x5c,%ebx bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801015e1: c1 e8 03 shr $0x3,%eax 801015e4: 03 05 d4 09 11 80 add 0x801109d4,%eax 801015ea: 50 push %eax 801015eb: ff 73 a4 pushl -0x5c(%ebx) 801015ee: e8 dd ea ff ff call 801000d0 <bread> 801015f3: 89 c6 mov %eax,%esi dip = (struct dinode*)bp->data + ip->inum%IPB; 801015f5: 8b 43 a8 mov -0x58(%ebx),%eax dip->type = ip->type; 801015f8: 0f b7 53 f4 movzwl -0xc(%ebx),%edx memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 801015fc: 83 c4 0c add $0xc,%esp dip = (struct dinode*)bp->data + ip->inum%IPB; 801015ff: 83 e0 07 and $0x7,%eax 80101602: c1 e0 06 shl $0x6,%eax 80101605: 8d 44 06 5c lea 0x5c(%esi,%eax,1),%eax dip->type = ip->type; 80101609: 66 89 10 mov %dx,(%eax) dip->major = ip->major; 8010160c: 0f b7 53 f6 movzwl -0xa(%ebx),%edx memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 80101610: 83 c0 0c add $0xc,%eax dip->major = ip->major; 80101613: 66 89 50 f6 mov %dx,-0xa(%eax) dip->minor = ip->minor; 80101617: 0f b7 53 f8 movzwl -0x8(%ebx),%edx 8010161b: 66 89 50 f8 mov %dx,-0x8(%eax) dip->nlink = ip->nlink; 8010161f: 0f b7 53 fa movzwl -0x6(%ebx),%edx 80101623: 66 89 50 fa mov %dx,-0x6(%eax) dip->size = ip->size; 80101627: 8b 53 fc mov -0x4(%ebx),%edx 8010162a: 89 50 fc mov %edx,-0x4(%eax) memmove(dip->addrs, ip->addrs, sizeof(ip->addrs)); 8010162d: 6a 34 push $0x34 8010162f: 53 push %ebx 80101630: 50 push %eax 80101631: e8 ca 2e 00 00 call 80104500 <memmove> log_write(bp); 80101636: 89 34 24 mov %esi,(%esp) 80101639: e8 32 17 00 00 call 80102d70 <log_write> brelse(bp); 8010163e: 89 75 08 mov %esi,0x8(%ebp) 80101641: 83 c4 10 add $0x10,%esp } 80101644: 8d 65 f8 lea -0x8(%ebp),%esp 80101647: 5b pop %ebx 80101648: 5e pop %esi 80101649: 5d pop %ebp brelse(bp); 8010164a: e9 91 eb ff ff jmp 801001e0 <brelse> 8010164f: 90 nop 80101650 <idup>: { 80101650: 55 push %ebp 80101651: 89 e5 mov %esp,%ebp 80101653: 53 push %ebx 80101654: 83 ec 10 sub $0x10,%esp 80101657: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&icache.lock); 8010165a: 68 e0 09 11 80 push $0x801109e0 8010165f: e8 dc 2c 00 00 call 80104340 <acquire> ip->ref++; 80101664: 83 43 08 01 addl $0x1,0x8(%ebx) release(&icache.lock); 80101668: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp) 8010166f: e8 8c 2d 00 00 call 80104400 <release> } 80101674: 89 d8 mov %ebx,%eax 80101676: 8b 5d fc mov -0x4(%ebp),%ebx 80101679: c9 leave 8010167a: c3 ret 8010167b: 90 nop 8010167c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101680 <ilock>: { 80101680: 55 push %ebp 80101681: 89 e5 mov %esp,%ebp 80101683: 56 push %esi 80101684: 53 push %ebx 80101685: 8b 5d 08 mov 0x8(%ebp),%ebx if(ip == 0 || ip->ref < 1) 80101688: 85 db test %ebx,%ebx 8010168a: 0f 84 b7 00 00 00 je 80101747 <ilock+0xc7> 80101690: 8b 53 08 mov 0x8(%ebx),%edx 80101693: 85 d2 test %edx,%edx 80101695: 0f 8e ac 00 00 00 jle 80101747 <ilock+0xc7> acquiresleep(&ip->lock); 8010169b: 8d 43 0c lea 0xc(%ebx),%eax 8010169e: 83 ec 0c sub $0xc,%esp 801016a1: 50 push %eax 801016a2: e8 69 2a 00 00 call 80104110 <acquiresleep> if(ip->valid == 0){ 801016a7: 8b 43 4c mov 0x4c(%ebx),%eax 801016aa: 83 c4 10 add $0x10,%esp 801016ad: 85 c0 test %eax,%eax 801016af: 74 0f je 801016c0 <ilock+0x40> } 801016b1: 8d 65 f8 lea -0x8(%ebp),%esp 801016b4: 5b pop %ebx 801016b5: 5e pop %esi 801016b6: 5d pop %ebp 801016b7: c3 ret 801016b8: 90 nop 801016b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi bp = bread(ip->dev, IBLOCK(ip->inum, sb)); 801016c0: 8b 43 04 mov 0x4(%ebx),%eax 801016c3: 83 ec 08 sub $0x8,%esp 801016c6: c1 e8 03 shr $0x3,%eax 801016c9: 03 05 d4 09 11 80 add 0x801109d4,%eax 801016cf: 50 push %eax 801016d0: ff 33 pushl (%ebx) 801016d2: e8 f9 e9 ff ff call 801000d0 <bread> 801016d7: 89 c6 mov %eax,%esi dip = (struct dinode*)bp->data + ip->inum%IPB; 801016d9: 8b 43 04 mov 0x4(%ebx),%eax memmove(ip->addrs, dip->addrs, sizeof(ip->addrs)); 801016dc: 83 c4 0c add $0xc,%esp dip = (struct dinode*)bp->data + ip->inum%IPB; 801016df: 83 e0 07 and $0x7,%eax 801016e2: c1 e0 06 shl $0x6,%eax 801016e5: 8d 44 06 5c lea 0x5c(%esi,%eax,1),%eax ip->type = dip->type; 801016e9: 0f b7 10 movzwl (%eax),%edx memmove(ip->addrs, dip->addrs, sizeof(ip->addrs)); 801016ec: 83 c0 0c add $0xc,%eax ip->type = dip->type; 801016ef: 66 89 53 50 mov %dx,0x50(%ebx) ip->major = dip->major; 801016f3: 0f b7 50 f6 movzwl -0xa(%eax),%edx 801016f7: 66 89 53 52 mov %dx,0x52(%ebx) ip->minor = dip->minor; 801016fb: 0f b7 50 f8 movzwl -0x8(%eax),%edx 801016ff: 66 89 53 54 mov %dx,0x54(%ebx) ip->nlink = dip->nlink; 80101703: 0f b7 50 fa movzwl -0x6(%eax),%edx 80101707: 66 89 53 56 mov %dx,0x56(%ebx) ip->size = dip->size; 8010170b: 8b 50 fc mov -0x4(%eax),%edx 8010170e: 89 53 58 mov %edx,0x58(%ebx) memmove(ip->addrs, dip->addrs, sizeof(ip->addrs)); 80101711: 6a 34 push $0x34 80101713: 50 push %eax 80101714: 8d 43 5c lea 0x5c(%ebx),%eax 80101717: 50 push %eax 80101718: e8 e3 2d 00 00 call 80104500 <memmove> brelse(bp); 8010171d: 89 34 24 mov %esi,(%esp) 80101720: e8 bb ea ff ff call 801001e0 <brelse> if(ip->type == 0) 80101725: 83 c4 10 add $0x10,%esp 80101728: 66 83 7b 50 00 cmpw $0x0,0x50(%ebx) ip->valid = 1; 8010172d: c7 43 4c 01 00 00 00 movl $0x1,0x4c(%ebx) if(ip->type == 0) 80101734: 0f 85 77 ff ff ff jne 801016b1 <ilock+0x31> panic("ilock: no type"); 8010173a: 83 ec 0c sub $0xc,%esp 8010173d: 68 f0 6f 10 80 push $0x80106ff0 80101742: e8 49 ec ff ff call 80100390 <panic> panic("ilock"); 80101747: 83 ec 0c sub $0xc,%esp 8010174a: 68 ea 6f 10 80 push $0x80106fea 8010174f: e8 3c ec ff ff call 80100390 <panic> 80101754: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8010175a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80101760 <iunlock>: { 80101760: 55 push %ebp 80101761: 89 e5 mov %esp,%ebp 80101763: 56 push %esi 80101764: 53 push %ebx 80101765: 8b 5d 08 mov 0x8(%ebp),%ebx if(ip == 0 || !holdingsleep(&ip->lock) || ip->ref < 1) 80101768: 85 db test %ebx,%ebx 8010176a: 74 28 je 80101794 <iunlock+0x34> 8010176c: 8d 73 0c lea 0xc(%ebx),%esi 8010176f: 83 ec 0c sub $0xc,%esp 80101772: 56 push %esi 80101773: e8 38 2a 00 00 call 801041b0 <holdingsleep> 80101778: 83 c4 10 add $0x10,%esp 8010177b: 85 c0 test %eax,%eax 8010177d: 74 15 je 80101794 <iunlock+0x34> 8010177f: 8b 43 08 mov 0x8(%ebx),%eax 80101782: 85 c0 test %eax,%eax 80101784: 7e 0e jle 80101794 <iunlock+0x34> releasesleep(&ip->lock); 80101786: 89 75 08 mov %esi,0x8(%ebp) } 80101789: 8d 65 f8 lea -0x8(%ebp),%esp 8010178c: 5b pop %ebx 8010178d: 5e pop %esi 8010178e: 5d pop %ebp releasesleep(&ip->lock); 8010178f: e9 dc 29 00 00 jmp 80104170 <releasesleep> panic("iunlock"); 80101794: 83 ec 0c sub $0xc,%esp 80101797: 68 ff 6f 10 80 push $0x80106fff 8010179c: e8 ef eb ff ff call 80100390 <panic> 801017a1: eb 0d jmp 801017b0 <iput> 801017a3: 90 nop 801017a4: 90 nop 801017a5: 90 nop 801017a6: 90 nop 801017a7: 90 nop 801017a8: 90 nop 801017a9: 90 nop 801017aa: 90 nop 801017ab: 90 nop 801017ac: 90 nop 801017ad: 90 nop 801017ae: 90 nop 801017af: 90 nop 801017b0 <iput>: { 801017b0: 55 push %ebp 801017b1: 89 e5 mov %esp,%ebp 801017b3: 57 push %edi 801017b4: 56 push %esi 801017b5: 53 push %ebx 801017b6: 83 ec 28 sub $0x28,%esp 801017b9: 8b 5d 08 mov 0x8(%ebp),%ebx acquiresleep(&ip->lock); 801017bc: 8d 7b 0c lea 0xc(%ebx),%edi 801017bf: 57 push %edi 801017c0: e8 4b 29 00 00 call 80104110 <acquiresleep> if(ip->valid && ip->nlink == 0){ 801017c5: 8b 53 4c mov 0x4c(%ebx),%edx 801017c8: 83 c4 10 add $0x10,%esp 801017cb: 85 d2 test %edx,%edx 801017cd: 74 07 je 801017d6 <iput+0x26> 801017cf: 66 83 7b 56 00 cmpw $0x0,0x56(%ebx) 801017d4: 74 32 je 80101808 <iput+0x58> releasesleep(&ip->lock); 801017d6: 83 ec 0c sub $0xc,%esp 801017d9: 57 push %edi 801017da: e8 91 29 00 00 call 80104170 <releasesleep> acquire(&icache.lock); 801017df: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp) 801017e6: e8 55 2b 00 00 call 80104340 <acquire> ip->ref--; 801017eb: 83 6b 08 01 subl $0x1,0x8(%ebx) release(&icache.lock); 801017ef: 83 c4 10 add $0x10,%esp 801017f2: c7 45 08 e0 09 11 80 movl $0x801109e0,0x8(%ebp) } 801017f9: 8d 65 f4 lea -0xc(%ebp),%esp 801017fc: 5b pop %ebx 801017fd: 5e pop %esi 801017fe: 5f pop %edi 801017ff: 5d pop %ebp release(&icache.lock); 80101800: e9 fb 2b 00 00 jmp 80104400 <release> 80101805: 8d 76 00 lea 0x0(%esi),%esi acquire(&icache.lock); 80101808: 83 ec 0c sub $0xc,%esp 8010180b: 68 e0 09 11 80 push $0x801109e0 80101810: e8 2b 2b 00 00 call 80104340 <acquire> int r = ip->ref; 80101815: 8b 73 08 mov 0x8(%ebx),%esi release(&icache.lock); 80101818: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp) 8010181f: e8 dc 2b 00 00 call 80104400 <release> if(r == 1){ 80101824: 83 c4 10 add $0x10,%esp 80101827: 83 fe 01 cmp $0x1,%esi 8010182a: 75 aa jne 801017d6 <iput+0x26> 8010182c: 8d 8b 8c 00 00 00 lea 0x8c(%ebx),%ecx 80101832: 89 7d e4 mov %edi,-0x1c(%ebp) 80101835: 8d 73 5c lea 0x5c(%ebx),%esi 80101838: 89 cf mov %ecx,%edi 8010183a: eb 0b jmp 80101847 <iput+0x97> 8010183c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101840: 83 c6 04 add $0x4,%esi { int i, j; struct buf *bp; uint *a; for(i = 0; i < NDIRECT; i++){ 80101843: 39 fe cmp %edi,%esi 80101845: 74 19 je 80101860 <iput+0xb0> if(ip->addrs[i]){ 80101847: 8b 16 mov (%esi),%edx 80101849: 85 d2 test %edx,%edx 8010184b: 74 f3 je 80101840 <iput+0x90> bfree(ip->dev, ip->addrs[i]); 8010184d: 8b 03 mov (%ebx),%eax 8010184f: e8 bc f8 ff ff call 80101110 <bfree> ip->addrs[i] = 0; 80101854: c7 06 00 00 00 00 movl $0x0,(%esi) 8010185a: eb e4 jmp 80101840 <iput+0x90> 8010185c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } } if(ip->addrs[NDIRECT]){ 80101860: 8b 83 8c 00 00 00 mov 0x8c(%ebx),%eax 80101866: 8b 7d e4 mov -0x1c(%ebp),%edi 80101869: 85 c0 test %eax,%eax 8010186b: 75 33 jne 801018a0 <iput+0xf0> bfree(ip->dev, ip->addrs[NDIRECT]); ip->addrs[NDIRECT] = 0; } ip->size = 0; iupdate(ip); 8010186d: 83 ec 0c sub $0xc,%esp ip->size = 0; 80101870: c7 43 58 00 00 00 00 movl $0x0,0x58(%ebx) iupdate(ip); 80101877: 53 push %ebx 80101878: e8 53 fd ff ff call 801015d0 <iupdate> ip->type = 0; 8010187d: 31 c0 xor %eax,%eax 8010187f: 66 89 43 50 mov %ax,0x50(%ebx) iupdate(ip); 80101883: 89 1c 24 mov %ebx,(%esp) 80101886: e8 45 fd ff ff call 801015d0 <iupdate> ip->valid = 0; 8010188b: c7 43 4c 00 00 00 00 movl $0x0,0x4c(%ebx) 80101892: 83 c4 10 add $0x10,%esp 80101895: e9 3c ff ff ff jmp 801017d6 <iput+0x26> 8010189a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi bp = bread(ip->dev, ip->addrs[NDIRECT]); 801018a0: 83 ec 08 sub $0x8,%esp 801018a3: 50 push %eax 801018a4: ff 33 pushl (%ebx) 801018a6: e8 25 e8 ff ff call 801000d0 <bread> 801018ab: 8d 88 5c 02 00 00 lea 0x25c(%eax),%ecx 801018b1: 89 7d e0 mov %edi,-0x20(%ebp) 801018b4: 89 45 e4 mov %eax,-0x1c(%ebp) a = (uint*)bp->data; 801018b7: 8d 70 5c lea 0x5c(%eax),%esi 801018ba: 83 c4 10 add $0x10,%esp 801018bd: 89 cf mov %ecx,%edi 801018bf: eb 0e jmp 801018cf <iput+0x11f> 801018c1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801018c8: 83 c6 04 add $0x4,%esi for(j = 0; j < NINDIRECT; j++){ 801018cb: 39 fe cmp %edi,%esi 801018cd: 74 0f je 801018de <iput+0x12e> if(a[j]) 801018cf: 8b 16 mov (%esi),%edx 801018d1: 85 d2 test %edx,%edx 801018d3: 74 f3 je 801018c8 <iput+0x118> bfree(ip->dev, a[j]); 801018d5: 8b 03 mov (%ebx),%eax 801018d7: e8 34 f8 ff ff call 80101110 <bfree> 801018dc: eb ea jmp 801018c8 <iput+0x118> brelse(bp); 801018de: 83 ec 0c sub $0xc,%esp 801018e1: ff 75 e4 pushl -0x1c(%ebp) 801018e4: 8b 7d e0 mov -0x20(%ebp),%edi 801018e7: e8 f4 e8 ff ff call 801001e0 <brelse> bfree(ip->dev, ip->addrs[NDIRECT]); 801018ec: 8b 93 8c 00 00 00 mov 0x8c(%ebx),%edx 801018f2: 8b 03 mov (%ebx),%eax 801018f4: e8 17 f8 ff ff call 80101110 <bfree> ip->addrs[NDIRECT] = 0; 801018f9: c7 83 8c 00 00 00 00 movl $0x0,0x8c(%ebx) 80101900: 00 00 00 80101903: 83 c4 10 add $0x10,%esp 80101906: e9 62 ff ff ff jmp 8010186d <iput+0xbd> 8010190b: 90 nop 8010190c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101910 <iunlockput>: { 80101910: 55 push %ebp 80101911: 89 e5 mov %esp,%ebp 80101913: 53 push %ebx 80101914: 83 ec 10 sub $0x10,%esp 80101917: 8b 5d 08 mov 0x8(%ebp),%ebx iunlock(ip); 8010191a: 53 push %ebx 8010191b: e8 40 fe ff ff call 80101760 <iunlock> iput(ip); 80101920: 89 5d 08 mov %ebx,0x8(%ebp) 80101923: 83 c4 10 add $0x10,%esp } 80101926: 8b 5d fc mov -0x4(%ebp),%ebx 80101929: c9 leave iput(ip); 8010192a: e9 81 fe ff ff jmp 801017b0 <iput> 8010192f: 90 nop 80101930 <stati>: // Copy stat information from inode. // Caller must hold ip->lock. void stati(struct inode *ip, struct stat *st) { 80101930: 55 push %ebp 80101931: 89 e5 mov %esp,%ebp 80101933: 8b 55 08 mov 0x8(%ebp),%edx 80101936: 8b 45 0c mov 0xc(%ebp),%eax st->dev = ip->dev; 80101939: 8b 0a mov (%edx),%ecx 8010193b: 89 48 04 mov %ecx,0x4(%eax) st->ino = ip->inum; 8010193e: 8b 4a 04 mov 0x4(%edx),%ecx 80101941: 89 48 08 mov %ecx,0x8(%eax) st->type = ip->type; 80101944: 0f b7 4a 50 movzwl 0x50(%edx),%ecx 80101948: 66 89 08 mov %cx,(%eax) st->nlink = ip->nlink; 8010194b: 0f b7 4a 56 movzwl 0x56(%edx),%ecx 8010194f: 66 89 48 0c mov %cx,0xc(%eax) st->size = ip->size; 80101953: 8b 52 58 mov 0x58(%edx),%edx 80101956: 89 50 10 mov %edx,0x10(%eax) } 80101959: 5d pop %ebp 8010195a: c3 ret 8010195b: 90 nop 8010195c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101960 <readi>: //PAGEBREAK! // Read data from inode. // Caller must hold ip->lock. int readi(struct inode *ip, char *dst, uint off, uint n) { 80101960: 55 push %ebp 80101961: 89 e5 mov %esp,%ebp 80101963: 57 push %edi 80101964: 56 push %esi 80101965: 53 push %ebx 80101966: 83 ec 1c sub $0x1c,%esp 80101969: 8b 45 08 mov 0x8(%ebp),%eax 8010196c: 8b 75 0c mov 0xc(%ebp),%esi 8010196f: 8b 7d 14 mov 0x14(%ebp),%edi uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 80101972: 66 83 78 50 03 cmpw $0x3,0x50(%eax) { 80101977: 89 75 e0 mov %esi,-0x20(%ebp) 8010197a: 89 45 d8 mov %eax,-0x28(%ebp) 8010197d: 8b 75 10 mov 0x10(%ebp),%esi 80101980: 89 7d e4 mov %edi,-0x1c(%ebp) if(ip->type == T_DEV){ 80101983: 0f 84 a7 00 00 00 je 80101a30 <readi+0xd0> if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read) return -1; return devsw[ip->major].read(ip, dst, n); } if(off > ip->size || off + n < off) 80101989: 8b 45 d8 mov -0x28(%ebp),%eax 8010198c: 8b 40 58 mov 0x58(%eax),%eax 8010198f: 39 c6 cmp %eax,%esi 80101991: 0f 87 ba 00 00 00 ja 80101a51 <readi+0xf1> 80101997: 8b 7d e4 mov -0x1c(%ebp),%edi 8010199a: 89 f9 mov %edi,%ecx 8010199c: 01 f1 add %esi,%ecx 8010199e: 0f 82 ad 00 00 00 jb 80101a51 <readi+0xf1> return -1; if(off + n > ip->size) n = ip->size - off; 801019a4: 89 c2 mov %eax,%edx 801019a6: 29 f2 sub %esi,%edx 801019a8: 39 c8 cmp %ecx,%eax 801019aa: 0f 43 d7 cmovae %edi,%edx for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 801019ad: 31 ff xor %edi,%edi 801019af: 85 d2 test %edx,%edx n = ip->size - off; 801019b1: 89 55 e4 mov %edx,-0x1c(%ebp) for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 801019b4: 74 6c je 80101a22 <readi+0xc2> 801019b6: 8d 76 00 lea 0x0(%esi),%esi 801019b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi bp = bread(ip->dev, bmap(ip, off/BSIZE)); 801019c0: 8b 5d d8 mov -0x28(%ebp),%ebx 801019c3: 89 f2 mov %esi,%edx 801019c5: c1 ea 09 shr $0x9,%edx 801019c8: 89 d8 mov %ebx,%eax 801019ca: e8 91 f9 ff ff call 80101360 <bmap> 801019cf: 83 ec 08 sub $0x8,%esp 801019d2: 50 push %eax 801019d3: ff 33 pushl (%ebx) 801019d5: e8 f6 e6 ff ff call 801000d0 <bread> m = min(n - tot, BSIZE - off%BSIZE); 801019da: 8b 5d e4 mov -0x1c(%ebp),%ebx bp = bread(ip->dev, bmap(ip, off/BSIZE)); 801019dd: 89 c2 mov %eax,%edx m = min(n - tot, BSIZE - off%BSIZE); 801019df: 89 f0 mov %esi,%eax 801019e1: 25 ff 01 00 00 and $0x1ff,%eax 801019e6: b9 00 02 00 00 mov $0x200,%ecx 801019eb: 83 c4 0c add $0xc,%esp 801019ee: 29 c1 sub %eax,%ecx memmove(dst, bp->data + off%BSIZE, m); 801019f0: 8d 44 02 5c lea 0x5c(%edx,%eax,1),%eax 801019f4: 89 55 dc mov %edx,-0x24(%ebp) m = min(n - tot, BSIZE - off%BSIZE); 801019f7: 29 fb sub %edi,%ebx 801019f9: 39 d9 cmp %ebx,%ecx 801019fb: 0f 46 d9 cmovbe %ecx,%ebx memmove(dst, bp->data + off%BSIZE, m); 801019fe: 53 push %ebx 801019ff: 50 push %eax for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 80101a00: 01 df add %ebx,%edi memmove(dst, bp->data + off%BSIZE, m); 80101a02: ff 75 e0 pushl -0x20(%ebp) for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 80101a05: 01 de add %ebx,%esi memmove(dst, bp->data + off%BSIZE, m); 80101a07: e8 f4 2a 00 00 call 80104500 <memmove> brelse(bp); 80101a0c: 8b 55 dc mov -0x24(%ebp),%edx 80101a0f: 89 14 24 mov %edx,(%esp) 80101a12: e8 c9 e7 ff ff call 801001e0 <brelse> for(tot=0; tot<n; tot+=m, off+=m, dst+=m){ 80101a17: 01 5d e0 add %ebx,-0x20(%ebp) 80101a1a: 83 c4 10 add $0x10,%esp 80101a1d: 39 7d e4 cmp %edi,-0x1c(%ebp) 80101a20: 77 9e ja 801019c0 <readi+0x60> } return n; 80101a22: 8b 45 e4 mov -0x1c(%ebp),%eax } 80101a25: 8d 65 f4 lea -0xc(%ebp),%esp 80101a28: 5b pop %ebx 80101a29: 5e pop %esi 80101a2a: 5f pop %edi 80101a2b: 5d pop %ebp 80101a2c: c3 ret 80101a2d: 8d 76 00 lea 0x0(%esi),%esi if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read) 80101a30: 0f bf 40 52 movswl 0x52(%eax),%eax 80101a34: 66 83 f8 09 cmp $0x9,%ax 80101a38: 77 17 ja 80101a51 <readi+0xf1> 80101a3a: 8b 04 c5 60 09 11 80 mov -0x7feef6a0(,%eax,8),%eax 80101a41: 85 c0 test %eax,%eax 80101a43: 74 0c je 80101a51 <readi+0xf1> return devsw[ip->major].read(ip, dst, n); 80101a45: 89 7d 10 mov %edi,0x10(%ebp) } 80101a48: 8d 65 f4 lea -0xc(%ebp),%esp 80101a4b: 5b pop %ebx 80101a4c: 5e pop %esi 80101a4d: 5f pop %edi 80101a4e: 5d pop %ebp return devsw[ip->major].read(ip, dst, n); 80101a4f: ff e0 jmp *%eax return -1; 80101a51: b8 ff ff ff ff mov $0xffffffff,%eax 80101a56: eb cd jmp 80101a25 <readi+0xc5> 80101a58: 90 nop 80101a59: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101a60 <writei>: // PAGEBREAK! // Write data to inode. // Caller must hold ip->lock. int writei(struct inode *ip, char *src, uint off, uint n) { 80101a60: 55 push %ebp 80101a61: 89 e5 mov %esp,%ebp 80101a63: 57 push %edi 80101a64: 56 push %esi 80101a65: 53 push %ebx 80101a66: 83 ec 1c sub $0x1c,%esp 80101a69: 8b 45 08 mov 0x8(%ebp),%eax 80101a6c: 8b 75 0c mov 0xc(%ebp),%esi 80101a6f: 8b 7d 14 mov 0x14(%ebp),%edi uint tot, m; struct buf *bp; if(ip->type == T_DEV){ 80101a72: 66 83 78 50 03 cmpw $0x3,0x50(%eax) { 80101a77: 89 75 dc mov %esi,-0x24(%ebp) 80101a7a: 89 45 d8 mov %eax,-0x28(%ebp) 80101a7d: 8b 75 10 mov 0x10(%ebp),%esi 80101a80: 89 7d e0 mov %edi,-0x20(%ebp) if(ip->type == T_DEV){ 80101a83: 0f 84 b7 00 00 00 je 80101b40 <writei+0xe0> if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write) return -1; return devsw[ip->major].write(ip, src, n); } if(off > ip->size || off + n < off) 80101a89: 8b 45 d8 mov -0x28(%ebp),%eax 80101a8c: 39 70 58 cmp %esi,0x58(%eax) 80101a8f: 0f 82 eb 00 00 00 jb 80101b80 <writei+0x120> 80101a95: 8b 7d e0 mov -0x20(%ebp),%edi 80101a98: 31 d2 xor %edx,%edx 80101a9a: 89 f8 mov %edi,%eax 80101a9c: 01 f0 add %esi,%eax 80101a9e: 0f 92 c2 setb %dl return -1; if(off + n > MAXFILE*BSIZE) 80101aa1: 3d 00 18 01 00 cmp $0x11800,%eax 80101aa6: 0f 87 d4 00 00 00 ja 80101b80 <writei+0x120> 80101aac: 85 d2 test %edx,%edx 80101aae: 0f 85 cc 00 00 00 jne 80101b80 <writei+0x120> return -1; for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 80101ab4: 85 ff test %edi,%edi 80101ab6: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp) 80101abd: 74 72 je 80101b31 <writei+0xd1> 80101abf: 90 nop bp = bread(ip->dev, bmap(ip, off/BSIZE)); 80101ac0: 8b 7d d8 mov -0x28(%ebp),%edi 80101ac3: 89 f2 mov %esi,%edx 80101ac5: c1 ea 09 shr $0x9,%edx 80101ac8: 89 f8 mov %edi,%eax 80101aca: e8 91 f8 ff ff call 80101360 <bmap> 80101acf: 83 ec 08 sub $0x8,%esp 80101ad2: 50 push %eax 80101ad3: ff 37 pushl (%edi) 80101ad5: e8 f6 e5 ff ff call 801000d0 <bread> m = min(n - tot, BSIZE - off%BSIZE); 80101ada: 8b 5d e0 mov -0x20(%ebp),%ebx 80101add: 2b 5d e4 sub -0x1c(%ebp),%ebx bp = bread(ip->dev, bmap(ip, off/BSIZE)); 80101ae0: 89 c7 mov %eax,%edi m = min(n - tot, BSIZE - off%BSIZE); 80101ae2: 89 f0 mov %esi,%eax 80101ae4: b9 00 02 00 00 mov $0x200,%ecx 80101ae9: 83 c4 0c add $0xc,%esp 80101aec: 25 ff 01 00 00 and $0x1ff,%eax 80101af1: 29 c1 sub %eax,%ecx memmove(bp->data + off%BSIZE, src, m); 80101af3: 8d 44 07 5c lea 0x5c(%edi,%eax,1),%eax m = min(n - tot, BSIZE - off%BSIZE); 80101af7: 39 d9 cmp %ebx,%ecx 80101af9: 0f 46 d9 cmovbe %ecx,%ebx memmove(bp->data + off%BSIZE, src, m); 80101afc: 53 push %ebx 80101afd: ff 75 dc pushl -0x24(%ebp) for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 80101b00: 01 de add %ebx,%esi memmove(bp->data + off%BSIZE, src, m); 80101b02: 50 push %eax 80101b03: e8 f8 29 00 00 call 80104500 <memmove> log_write(bp); 80101b08: 89 3c 24 mov %edi,(%esp) 80101b0b: e8 60 12 00 00 call 80102d70 <log_write> brelse(bp); 80101b10: 89 3c 24 mov %edi,(%esp) 80101b13: e8 c8 e6 ff ff call 801001e0 <brelse> for(tot=0; tot<n; tot+=m, off+=m, src+=m){ 80101b18: 01 5d e4 add %ebx,-0x1c(%ebp) 80101b1b: 01 5d dc add %ebx,-0x24(%ebp) 80101b1e: 83 c4 10 add $0x10,%esp 80101b21: 8b 45 e4 mov -0x1c(%ebp),%eax 80101b24: 39 45 e0 cmp %eax,-0x20(%ebp) 80101b27: 77 97 ja 80101ac0 <writei+0x60> } if(n > 0 && off > ip->size){ 80101b29: 8b 45 d8 mov -0x28(%ebp),%eax 80101b2c: 3b 70 58 cmp 0x58(%eax),%esi 80101b2f: 77 37 ja 80101b68 <writei+0x108> ip->size = off; iupdate(ip); } return n; 80101b31: 8b 45 e0 mov -0x20(%ebp),%eax } 80101b34: 8d 65 f4 lea -0xc(%ebp),%esp 80101b37: 5b pop %ebx 80101b38: 5e pop %esi 80101b39: 5f pop %edi 80101b3a: 5d pop %ebp 80101b3b: c3 ret 80101b3c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write) 80101b40: 0f bf 40 52 movswl 0x52(%eax),%eax 80101b44: 66 83 f8 09 cmp $0x9,%ax 80101b48: 77 36 ja 80101b80 <writei+0x120> 80101b4a: 8b 04 c5 64 09 11 80 mov -0x7feef69c(,%eax,8),%eax 80101b51: 85 c0 test %eax,%eax 80101b53: 74 2b je 80101b80 <writei+0x120> return devsw[ip->major].write(ip, src, n); 80101b55: 89 7d 10 mov %edi,0x10(%ebp) } 80101b58: 8d 65 f4 lea -0xc(%ebp),%esp 80101b5b: 5b pop %ebx 80101b5c: 5e pop %esi 80101b5d: 5f pop %edi 80101b5e: 5d pop %ebp return devsw[ip->major].write(ip, src, n); 80101b5f: ff e0 jmp *%eax 80101b61: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi ip->size = off; 80101b68: 8b 45 d8 mov -0x28(%ebp),%eax iupdate(ip); 80101b6b: 83 ec 0c sub $0xc,%esp ip->size = off; 80101b6e: 89 70 58 mov %esi,0x58(%eax) iupdate(ip); 80101b71: 50 push %eax 80101b72: e8 59 fa ff ff call 801015d0 <iupdate> 80101b77: 83 c4 10 add $0x10,%esp 80101b7a: eb b5 jmp 80101b31 <writei+0xd1> 80101b7c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return -1; 80101b80: b8 ff ff ff ff mov $0xffffffff,%eax 80101b85: eb ad jmp 80101b34 <writei+0xd4> 80101b87: 89 f6 mov %esi,%esi 80101b89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80101b90 <namecmp>: //PAGEBREAK! // Directories int namecmp(const char *s, const char *t) { 80101b90: 55 push %ebp 80101b91: 89 e5 mov %esp,%ebp 80101b93: 83 ec 0c sub $0xc,%esp return strncmp(s, t, DIRSIZ); 80101b96: 6a 0e push $0xe 80101b98: ff 75 0c pushl 0xc(%ebp) 80101b9b: ff 75 08 pushl 0x8(%ebp) 80101b9e: e8 cd 29 00 00 call 80104570 <strncmp> } 80101ba3: c9 leave 80101ba4: c3 ret 80101ba5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101ba9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80101bb0 <dirlookup>: // Look for a directory entry in a directory. // If found, set *poff to byte offset of entry. struct inode* dirlookup(struct inode *dp, char *name, uint *poff) { 80101bb0: 55 push %ebp 80101bb1: 89 e5 mov %esp,%ebp 80101bb3: 57 push %edi 80101bb4: 56 push %esi 80101bb5: 53 push %ebx 80101bb6: 83 ec 1c sub $0x1c,%esp 80101bb9: 8b 5d 08 mov 0x8(%ebp),%ebx uint off, inum; struct dirent de; if(dp->type != T_DIR) 80101bbc: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 80101bc1: 0f 85 85 00 00 00 jne 80101c4c <dirlookup+0x9c> panic("dirlookup not DIR"); for(off = 0; off < dp->size; off += sizeof(de)){ 80101bc7: 8b 53 58 mov 0x58(%ebx),%edx 80101bca: 31 ff xor %edi,%edi 80101bcc: 8d 75 d8 lea -0x28(%ebp),%esi 80101bcf: 85 d2 test %edx,%edx 80101bd1: 74 3e je 80101c11 <dirlookup+0x61> 80101bd3: 90 nop 80101bd4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80101bd8: 6a 10 push $0x10 80101bda: 57 push %edi 80101bdb: 56 push %esi 80101bdc: 53 push %ebx 80101bdd: e8 7e fd ff ff call 80101960 <readi> 80101be2: 83 c4 10 add $0x10,%esp 80101be5: 83 f8 10 cmp $0x10,%eax 80101be8: 75 55 jne 80101c3f <dirlookup+0x8f> panic("dirlookup read"); if(de.inum == 0) 80101bea: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp) 80101bef: 74 18 je 80101c09 <dirlookup+0x59> return strncmp(s, t, DIRSIZ); 80101bf1: 8d 45 da lea -0x26(%ebp),%eax 80101bf4: 83 ec 04 sub $0x4,%esp 80101bf7: 6a 0e push $0xe 80101bf9: 50 push %eax 80101bfa: ff 75 0c pushl 0xc(%ebp) 80101bfd: e8 6e 29 00 00 call 80104570 <strncmp> continue; if(namecmp(name, de.name) == 0){ 80101c02: 83 c4 10 add $0x10,%esp 80101c05: 85 c0 test %eax,%eax 80101c07: 74 17 je 80101c20 <dirlookup+0x70> for(off = 0; off < dp->size; off += sizeof(de)){ 80101c09: 83 c7 10 add $0x10,%edi 80101c0c: 3b 7b 58 cmp 0x58(%ebx),%edi 80101c0f: 72 c7 jb 80101bd8 <dirlookup+0x28> return iget(dp->dev, inum); } } return 0; } 80101c11: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 80101c14: 31 c0 xor %eax,%eax } 80101c16: 5b pop %ebx 80101c17: 5e pop %esi 80101c18: 5f pop %edi 80101c19: 5d pop %ebp 80101c1a: c3 ret 80101c1b: 90 nop 80101c1c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(poff) 80101c20: 8b 45 10 mov 0x10(%ebp),%eax 80101c23: 85 c0 test %eax,%eax 80101c25: 74 05 je 80101c2c <dirlookup+0x7c> *poff = off; 80101c27: 8b 45 10 mov 0x10(%ebp),%eax 80101c2a: 89 38 mov %edi,(%eax) inum = de.inum; 80101c2c: 0f b7 55 d8 movzwl -0x28(%ebp),%edx return iget(dp->dev, inum); 80101c30: 8b 03 mov (%ebx),%eax 80101c32: e8 59 f6 ff ff call 80101290 <iget> } 80101c37: 8d 65 f4 lea -0xc(%ebp),%esp 80101c3a: 5b pop %ebx 80101c3b: 5e pop %esi 80101c3c: 5f pop %edi 80101c3d: 5d pop %ebp 80101c3e: c3 ret panic("dirlookup read"); 80101c3f: 83 ec 0c sub $0xc,%esp 80101c42: 68 19 70 10 80 push $0x80107019 80101c47: e8 44 e7 ff ff call 80100390 <panic> panic("dirlookup not DIR"); 80101c4c: 83 ec 0c sub $0xc,%esp 80101c4f: 68 07 70 10 80 push $0x80107007 80101c54: e8 37 e7 ff ff call 80100390 <panic> 80101c59: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101c60 <namex>: // If parent != 0, return the inode for the parent and copy the final // path element into name, which must have room for DIRSIZ bytes. // Must be called inside a transaction since it calls iput(). static struct inode* namex(char *path, int nameiparent, char *name) { 80101c60: 55 push %ebp 80101c61: 89 e5 mov %esp,%ebp 80101c63: 57 push %edi 80101c64: 56 push %esi 80101c65: 53 push %ebx 80101c66: 89 cf mov %ecx,%edi 80101c68: 89 c3 mov %eax,%ebx 80101c6a: 83 ec 1c sub $0x1c,%esp struct inode *ip, *next; if(*path == '/') 80101c6d: 80 38 2f cmpb $0x2f,(%eax) { 80101c70: 89 55 e0 mov %edx,-0x20(%ebp) if(*path == '/') 80101c73: 0f 84 67 01 00 00 je 80101de0 <namex+0x180> ip = iget(ROOTDEV, ROOTINO); else ip = idup(myproc()->cwd); 80101c79: e8 62 1b 00 00 call 801037e0 <myproc> acquire(&icache.lock); 80101c7e: 83 ec 0c sub $0xc,%esp ip = idup(myproc()->cwd); 80101c81: 8b 70 68 mov 0x68(%eax),%esi acquire(&icache.lock); 80101c84: 68 e0 09 11 80 push $0x801109e0 80101c89: e8 b2 26 00 00 call 80104340 <acquire> ip->ref++; 80101c8e: 83 46 08 01 addl $0x1,0x8(%esi) release(&icache.lock); 80101c92: c7 04 24 e0 09 11 80 movl $0x801109e0,(%esp) 80101c99: e8 62 27 00 00 call 80104400 <release> 80101c9e: 83 c4 10 add $0x10,%esp 80101ca1: eb 08 jmp 80101cab <namex+0x4b> 80101ca3: 90 nop 80101ca4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi path++; 80101ca8: 83 c3 01 add $0x1,%ebx while(*path == '/') 80101cab: 0f b6 03 movzbl (%ebx),%eax 80101cae: 3c 2f cmp $0x2f,%al 80101cb0: 74 f6 je 80101ca8 <namex+0x48> if(*path == 0) 80101cb2: 84 c0 test %al,%al 80101cb4: 0f 84 ee 00 00 00 je 80101da8 <namex+0x148> while(*path != '/' && *path != 0) 80101cba: 0f b6 03 movzbl (%ebx),%eax 80101cbd: 3c 2f cmp $0x2f,%al 80101cbf: 0f 84 b3 00 00 00 je 80101d78 <namex+0x118> 80101cc5: 84 c0 test %al,%al 80101cc7: 89 da mov %ebx,%edx 80101cc9: 75 09 jne 80101cd4 <namex+0x74> 80101ccb: e9 a8 00 00 00 jmp 80101d78 <namex+0x118> 80101cd0: 84 c0 test %al,%al 80101cd2: 74 0a je 80101cde <namex+0x7e> path++; 80101cd4: 83 c2 01 add $0x1,%edx while(*path != '/' && *path != 0) 80101cd7: 0f b6 02 movzbl (%edx),%eax 80101cda: 3c 2f cmp $0x2f,%al 80101cdc: 75 f2 jne 80101cd0 <namex+0x70> 80101cde: 89 d1 mov %edx,%ecx 80101ce0: 29 d9 sub %ebx,%ecx if(len >= DIRSIZ) 80101ce2: 83 f9 0d cmp $0xd,%ecx 80101ce5: 0f 8e 91 00 00 00 jle 80101d7c <namex+0x11c> memmove(name, s, DIRSIZ); 80101ceb: 83 ec 04 sub $0x4,%esp 80101cee: 89 55 e4 mov %edx,-0x1c(%ebp) 80101cf1: 6a 0e push $0xe 80101cf3: 53 push %ebx 80101cf4: 57 push %edi 80101cf5: e8 06 28 00 00 call 80104500 <memmove> path++; 80101cfa: 8b 55 e4 mov -0x1c(%ebp),%edx memmove(name, s, DIRSIZ); 80101cfd: 83 c4 10 add $0x10,%esp path++; 80101d00: 89 d3 mov %edx,%ebx while(*path == '/') 80101d02: 80 3a 2f cmpb $0x2f,(%edx) 80101d05: 75 11 jne 80101d18 <namex+0xb8> 80101d07: 89 f6 mov %esi,%esi 80101d09: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi path++; 80101d10: 83 c3 01 add $0x1,%ebx while(*path == '/') 80101d13: 80 3b 2f cmpb $0x2f,(%ebx) 80101d16: 74 f8 je 80101d10 <namex+0xb0> while((path = skipelem(path, name)) != 0){ ilock(ip); 80101d18: 83 ec 0c sub $0xc,%esp 80101d1b: 56 push %esi 80101d1c: e8 5f f9 ff ff call 80101680 <ilock> if(ip->type != T_DIR){ 80101d21: 83 c4 10 add $0x10,%esp 80101d24: 66 83 7e 50 01 cmpw $0x1,0x50(%esi) 80101d29: 0f 85 91 00 00 00 jne 80101dc0 <namex+0x160> iunlockput(ip); return 0; } if(nameiparent && *path == '\0'){ 80101d2f: 8b 55 e0 mov -0x20(%ebp),%edx 80101d32: 85 d2 test %edx,%edx 80101d34: 74 09 je 80101d3f <namex+0xdf> 80101d36: 80 3b 00 cmpb $0x0,(%ebx) 80101d39: 0f 84 b7 00 00 00 je 80101df6 <namex+0x196> // Stop one level early. iunlock(ip); return ip; } if((next = dirlookup(ip, name, 0)) == 0){ 80101d3f: 83 ec 04 sub $0x4,%esp 80101d42: 6a 00 push $0x0 80101d44: 57 push %edi 80101d45: 56 push %esi 80101d46: e8 65 fe ff ff call 80101bb0 <dirlookup> 80101d4b: 83 c4 10 add $0x10,%esp 80101d4e: 85 c0 test %eax,%eax 80101d50: 74 6e je 80101dc0 <namex+0x160> iunlock(ip); 80101d52: 83 ec 0c sub $0xc,%esp 80101d55: 89 45 e4 mov %eax,-0x1c(%ebp) 80101d58: 56 push %esi 80101d59: e8 02 fa ff ff call 80101760 <iunlock> iput(ip); 80101d5e: 89 34 24 mov %esi,(%esp) 80101d61: e8 4a fa ff ff call 801017b0 <iput> 80101d66: 8b 45 e4 mov -0x1c(%ebp),%eax 80101d69: 83 c4 10 add $0x10,%esp 80101d6c: 89 c6 mov %eax,%esi 80101d6e: e9 38 ff ff ff jmp 80101cab <namex+0x4b> 80101d73: 90 nop 80101d74: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi while(*path != '/' && *path != 0) 80101d78: 89 da mov %ebx,%edx 80101d7a: 31 c9 xor %ecx,%ecx memmove(name, s, len); 80101d7c: 83 ec 04 sub $0x4,%esp 80101d7f: 89 55 dc mov %edx,-0x24(%ebp) 80101d82: 89 4d e4 mov %ecx,-0x1c(%ebp) 80101d85: 51 push %ecx 80101d86: 53 push %ebx 80101d87: 57 push %edi 80101d88: e8 73 27 00 00 call 80104500 <memmove> name[len] = 0; 80101d8d: 8b 4d e4 mov -0x1c(%ebp),%ecx 80101d90: 8b 55 dc mov -0x24(%ebp),%edx 80101d93: 83 c4 10 add $0x10,%esp 80101d96: c6 04 0f 00 movb $0x0,(%edi,%ecx,1) 80101d9a: 89 d3 mov %edx,%ebx 80101d9c: e9 61 ff ff ff jmp 80101d02 <namex+0xa2> 80101da1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return 0; } iunlockput(ip); ip = next; } if(nameiparent){ 80101da8: 8b 45 e0 mov -0x20(%ebp),%eax 80101dab: 85 c0 test %eax,%eax 80101dad: 75 5d jne 80101e0c <namex+0x1ac> iput(ip); return 0; } return ip; } 80101daf: 8d 65 f4 lea -0xc(%ebp),%esp 80101db2: 89 f0 mov %esi,%eax 80101db4: 5b pop %ebx 80101db5: 5e pop %esi 80101db6: 5f pop %edi 80101db7: 5d pop %ebp 80101db8: c3 ret 80101db9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi iunlock(ip); 80101dc0: 83 ec 0c sub $0xc,%esp 80101dc3: 56 push %esi 80101dc4: e8 97 f9 ff ff call 80101760 <iunlock> iput(ip); 80101dc9: 89 34 24 mov %esi,(%esp) return 0; 80101dcc: 31 f6 xor %esi,%esi iput(ip); 80101dce: e8 dd f9 ff ff call 801017b0 <iput> return 0; 80101dd3: 83 c4 10 add $0x10,%esp } 80101dd6: 8d 65 f4 lea -0xc(%ebp),%esp 80101dd9: 89 f0 mov %esi,%eax 80101ddb: 5b pop %ebx 80101ddc: 5e pop %esi 80101ddd: 5f pop %edi 80101dde: 5d pop %ebp 80101ddf: c3 ret ip = iget(ROOTDEV, ROOTINO); 80101de0: ba 01 00 00 00 mov $0x1,%edx 80101de5: b8 01 00 00 00 mov $0x1,%eax 80101dea: e8 a1 f4 ff ff call 80101290 <iget> 80101def: 89 c6 mov %eax,%esi 80101df1: e9 b5 fe ff ff jmp 80101cab <namex+0x4b> iunlock(ip); 80101df6: 83 ec 0c sub $0xc,%esp 80101df9: 56 push %esi 80101dfa: e8 61 f9 ff ff call 80101760 <iunlock> return ip; 80101dff: 83 c4 10 add $0x10,%esp } 80101e02: 8d 65 f4 lea -0xc(%ebp),%esp 80101e05: 89 f0 mov %esi,%eax 80101e07: 5b pop %ebx 80101e08: 5e pop %esi 80101e09: 5f pop %edi 80101e0a: 5d pop %ebp 80101e0b: c3 ret iput(ip); 80101e0c: 83 ec 0c sub $0xc,%esp 80101e0f: 56 push %esi return 0; 80101e10: 31 f6 xor %esi,%esi iput(ip); 80101e12: e8 99 f9 ff ff call 801017b0 <iput> return 0; 80101e17: 83 c4 10 add $0x10,%esp 80101e1a: eb 93 jmp 80101daf <namex+0x14f> 80101e1c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101e20 <dirlink>: { 80101e20: 55 push %ebp 80101e21: 89 e5 mov %esp,%ebp 80101e23: 57 push %edi 80101e24: 56 push %esi 80101e25: 53 push %ebx 80101e26: 83 ec 20 sub $0x20,%esp 80101e29: 8b 5d 08 mov 0x8(%ebp),%ebx if((ip = dirlookup(dp, name, 0)) != 0){ 80101e2c: 6a 00 push $0x0 80101e2e: ff 75 0c pushl 0xc(%ebp) 80101e31: 53 push %ebx 80101e32: e8 79 fd ff ff call 80101bb0 <dirlookup> 80101e37: 83 c4 10 add $0x10,%esp 80101e3a: 85 c0 test %eax,%eax 80101e3c: 75 67 jne 80101ea5 <dirlink+0x85> for(off = 0; off < dp->size; off += sizeof(de)){ 80101e3e: 8b 7b 58 mov 0x58(%ebx),%edi 80101e41: 8d 75 d8 lea -0x28(%ebp),%esi 80101e44: 85 ff test %edi,%edi 80101e46: 74 29 je 80101e71 <dirlink+0x51> 80101e48: 31 ff xor %edi,%edi 80101e4a: 8d 75 d8 lea -0x28(%ebp),%esi 80101e4d: eb 09 jmp 80101e58 <dirlink+0x38> 80101e4f: 90 nop 80101e50: 83 c7 10 add $0x10,%edi 80101e53: 3b 7b 58 cmp 0x58(%ebx),%edi 80101e56: 73 19 jae 80101e71 <dirlink+0x51> if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80101e58: 6a 10 push $0x10 80101e5a: 57 push %edi 80101e5b: 56 push %esi 80101e5c: 53 push %ebx 80101e5d: e8 fe fa ff ff call 80101960 <readi> 80101e62: 83 c4 10 add $0x10,%esp 80101e65: 83 f8 10 cmp $0x10,%eax 80101e68: 75 4e jne 80101eb8 <dirlink+0x98> if(de.inum == 0) 80101e6a: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp) 80101e6f: 75 df jne 80101e50 <dirlink+0x30> strncpy(de.name, name, DIRSIZ); 80101e71: 8d 45 da lea -0x26(%ebp),%eax 80101e74: 83 ec 04 sub $0x4,%esp 80101e77: 6a 0e push $0xe 80101e79: ff 75 0c pushl 0xc(%ebp) 80101e7c: 50 push %eax 80101e7d: e8 4e 27 00 00 call 801045d0 <strncpy> de.inum = inum; 80101e82: 8b 45 10 mov 0x10(%ebp),%eax if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80101e85: 6a 10 push $0x10 80101e87: 57 push %edi 80101e88: 56 push %esi 80101e89: 53 push %ebx de.inum = inum; 80101e8a: 66 89 45 d8 mov %ax,-0x28(%ebp) if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de)) 80101e8e: e8 cd fb ff ff call 80101a60 <writei> 80101e93: 83 c4 20 add $0x20,%esp 80101e96: 83 f8 10 cmp $0x10,%eax 80101e99: 75 2a jne 80101ec5 <dirlink+0xa5> return 0; 80101e9b: 31 c0 xor %eax,%eax } 80101e9d: 8d 65 f4 lea -0xc(%ebp),%esp 80101ea0: 5b pop %ebx 80101ea1: 5e pop %esi 80101ea2: 5f pop %edi 80101ea3: 5d pop %ebp 80101ea4: c3 ret iput(ip); 80101ea5: 83 ec 0c sub $0xc,%esp 80101ea8: 50 push %eax 80101ea9: e8 02 f9 ff ff call 801017b0 <iput> return -1; 80101eae: 83 c4 10 add $0x10,%esp 80101eb1: b8 ff ff ff ff mov $0xffffffff,%eax 80101eb6: eb e5 jmp 80101e9d <dirlink+0x7d> panic("dirlink read"); 80101eb8: 83 ec 0c sub $0xc,%esp 80101ebb: 68 28 70 10 80 push $0x80107028 80101ec0: e8 cb e4 ff ff call 80100390 <panic> panic("dirlink"); 80101ec5: 83 ec 0c sub $0xc,%esp 80101ec8: 68 1e 76 10 80 push $0x8010761e 80101ecd: e8 be e4 ff ff call 80100390 <panic> 80101ed2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101ed9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80101ee0 <namei>: struct inode* namei(char *path) { 80101ee0: 55 push %ebp char name[DIRSIZ]; return namex(path, 0, name); 80101ee1: 31 d2 xor %edx,%edx { 80101ee3: 89 e5 mov %esp,%ebp 80101ee5: 83 ec 18 sub $0x18,%esp return namex(path, 0, name); 80101ee8: 8b 45 08 mov 0x8(%ebp),%eax 80101eeb: 8d 4d ea lea -0x16(%ebp),%ecx 80101eee: e8 6d fd ff ff call 80101c60 <namex> } 80101ef3: c9 leave 80101ef4: c3 ret 80101ef5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80101ef9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80101f00 <nameiparent>: struct inode* nameiparent(char *path, char *name) { 80101f00: 55 push %ebp return namex(path, 1, name); 80101f01: ba 01 00 00 00 mov $0x1,%edx { 80101f06: 89 e5 mov %esp,%ebp return namex(path, 1, name); 80101f08: 8b 4d 0c mov 0xc(%ebp),%ecx 80101f0b: 8b 45 08 mov 0x8(%ebp),%eax } 80101f0e: 5d pop %ebp return namex(path, 1, name); 80101f0f: e9 4c fd ff ff jmp 80101c60 <namex> 80101f14: 66 90 xchg %ax,%ax 80101f16: 66 90 xchg %ax,%ax 80101f18: 66 90 xchg %ax,%ax 80101f1a: 66 90 xchg %ax,%ax 80101f1c: 66 90 xchg %ax,%ax 80101f1e: 66 90 xchg %ax,%ax 80101f20 <idestart>: } // Start the request for b. Caller must hold idelock. static void idestart(struct buf *b) { 80101f20: 55 push %ebp 80101f21: 89 e5 mov %esp,%ebp 80101f23: 57 push %edi 80101f24: 56 push %esi 80101f25: 53 push %ebx 80101f26: 83 ec 0c sub $0xc,%esp if(b == 0) 80101f29: 85 c0 test %eax,%eax 80101f2b: 0f 84 b4 00 00 00 je 80101fe5 <idestart+0xc5> panic("idestart"); if(b->blockno >= FSSIZE) 80101f31: 8b 58 08 mov 0x8(%eax),%ebx 80101f34: 89 c6 mov %eax,%esi 80101f36: 81 fb e7 03 00 00 cmp $0x3e7,%ebx 80101f3c: 0f 87 96 00 00 00 ja 80101fd8 <idestart+0xb8> asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80101f42: b9 f7 01 00 00 mov $0x1f7,%ecx 80101f47: 89 f6 mov %esi,%esi 80101f49: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80101f50: 89 ca mov %ecx,%edx 80101f52: ec in (%dx),%al while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY) 80101f53: 83 e0 c0 and $0xffffffc0,%eax 80101f56: 3c 40 cmp $0x40,%al 80101f58: 75 f6 jne 80101f50 <idestart+0x30> asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80101f5a: 31 ff xor %edi,%edi 80101f5c: ba f6 03 00 00 mov $0x3f6,%edx 80101f61: 89 f8 mov %edi,%eax 80101f63: ee out %al,(%dx) 80101f64: b8 01 00 00 00 mov $0x1,%eax 80101f69: ba f2 01 00 00 mov $0x1f2,%edx 80101f6e: ee out %al,(%dx) 80101f6f: ba f3 01 00 00 mov $0x1f3,%edx 80101f74: 89 d8 mov %ebx,%eax 80101f76: ee out %al,(%dx) idewait(0); outb(0x3f6, 0); // generate interrupt outb(0x1f2, sector_per_block); // number of sectors outb(0x1f3, sector & 0xff); outb(0x1f4, (sector >> 8) & 0xff); 80101f77: 89 d8 mov %ebx,%eax 80101f79: ba f4 01 00 00 mov $0x1f4,%edx 80101f7e: c1 f8 08 sar $0x8,%eax 80101f81: ee out %al,(%dx) 80101f82: ba f5 01 00 00 mov $0x1f5,%edx 80101f87: 89 f8 mov %edi,%eax 80101f89: ee out %al,(%dx) outb(0x1f5, (sector >> 16) & 0xff); outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f)); 80101f8a: 0f b6 46 04 movzbl 0x4(%esi),%eax 80101f8e: ba f6 01 00 00 mov $0x1f6,%edx 80101f93: c1 e0 04 shl $0x4,%eax 80101f96: 83 e0 10 and $0x10,%eax 80101f99: 83 c8 e0 or $0xffffffe0,%eax 80101f9c: ee out %al,(%dx) if(b->flags & B_DIRTY){ 80101f9d: f6 06 04 testb $0x4,(%esi) 80101fa0: 75 16 jne 80101fb8 <idestart+0x98> 80101fa2: b8 20 00 00 00 mov $0x20,%eax 80101fa7: 89 ca mov %ecx,%edx 80101fa9: ee out %al,(%dx) outb(0x1f7, write_cmd); outsl(0x1f0, b->data, BSIZE/4); } else { outb(0x1f7, read_cmd); } } 80101faa: 8d 65 f4 lea -0xc(%ebp),%esp 80101fad: 5b pop %ebx 80101fae: 5e pop %esi 80101faf: 5f pop %edi 80101fb0: 5d pop %ebp 80101fb1: c3 ret 80101fb2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80101fb8: b8 30 00 00 00 mov $0x30,%eax 80101fbd: 89 ca mov %ecx,%edx 80101fbf: ee out %al,(%dx) asm volatile("cld; rep outsl" : 80101fc0: b9 80 00 00 00 mov $0x80,%ecx outsl(0x1f0, b->data, BSIZE/4); 80101fc5: 83 c6 5c add $0x5c,%esi 80101fc8: ba f0 01 00 00 mov $0x1f0,%edx 80101fcd: fc cld 80101fce: f3 6f rep outsl %ds:(%esi),(%dx) } 80101fd0: 8d 65 f4 lea -0xc(%ebp),%esp 80101fd3: 5b pop %ebx 80101fd4: 5e pop %esi 80101fd5: 5f pop %edi 80101fd6: 5d pop %ebp 80101fd7: c3 ret panic("incorrect blockno"); 80101fd8: 83 ec 0c sub $0xc,%esp 80101fdb: 68 94 70 10 80 push $0x80107094 80101fe0: e8 ab e3 ff ff call 80100390 <panic> panic("idestart"); 80101fe5: 83 ec 0c sub $0xc,%esp 80101fe8: 68 8b 70 10 80 push $0x8010708b 80101fed: e8 9e e3 ff ff call 80100390 <panic> 80101ff2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80101ff9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102000 <ideinit>: { 80102000: 55 push %ebp 80102001: 89 e5 mov %esp,%ebp 80102003: 83 ec 10 sub $0x10,%esp initlock(&idelock, "ide"); 80102006: 68 a6 70 10 80 push $0x801070a6 8010200b: 68 80 a5 10 80 push $0x8010a580 80102010: e8 eb 21 00 00 call 80104200 <initlock> ioapicenable(IRQ_IDE, ncpu - 1); 80102015: 58 pop %eax 80102016: a1 00 2d 11 80 mov 0x80112d00,%eax 8010201b: 5a pop %edx 8010201c: 83 e8 01 sub $0x1,%eax 8010201f: 50 push %eax 80102020: 6a 0e push $0xe 80102022: e8 a9 02 00 00 call 801022d0 <ioapicenable> 80102027: 83 c4 10 add $0x10,%esp asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010202a: ba f7 01 00 00 mov $0x1f7,%edx 8010202f: 90 nop 80102030: ec in (%dx),%al while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY) 80102031: 83 e0 c0 and $0xffffffc0,%eax 80102034: 3c 40 cmp $0x40,%al 80102036: 75 f8 jne 80102030 <ideinit+0x30> asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102038: b8 f0 ff ff ff mov $0xfffffff0,%eax 8010203d: ba f6 01 00 00 mov $0x1f6,%edx 80102042: ee out %al,(%dx) 80102043: b9 e8 03 00 00 mov $0x3e8,%ecx asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102048: ba f7 01 00 00 mov $0x1f7,%edx 8010204d: eb 06 jmp 80102055 <ideinit+0x55> 8010204f: 90 nop for(i=0; i<1000; i++){ 80102050: 83 e9 01 sub $0x1,%ecx 80102053: 74 0f je 80102064 <ideinit+0x64> 80102055: ec in (%dx),%al if(inb(0x1f7) != 0){ 80102056: 84 c0 test %al,%al 80102058: 74 f6 je 80102050 <ideinit+0x50> havedisk1 = 1; 8010205a: c7 05 60 a5 10 80 01 movl $0x1,0x8010a560 80102061: 00 00 00 asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102064: b8 e0 ff ff ff mov $0xffffffe0,%eax 80102069: ba f6 01 00 00 mov $0x1f6,%edx 8010206e: ee out %al,(%dx) } 8010206f: c9 leave 80102070: c3 ret 80102071: eb 0d jmp 80102080 <ideintr> 80102073: 90 nop 80102074: 90 nop 80102075: 90 nop 80102076: 90 nop 80102077: 90 nop 80102078: 90 nop 80102079: 90 nop 8010207a: 90 nop 8010207b: 90 nop 8010207c: 90 nop 8010207d: 90 nop 8010207e: 90 nop 8010207f: 90 nop 80102080 <ideintr>: // Interrupt handler. void ideintr(void) { 80102080: 55 push %ebp 80102081: 89 e5 mov %esp,%ebp 80102083: 57 push %edi 80102084: 56 push %esi 80102085: 53 push %ebx 80102086: 83 ec 18 sub $0x18,%esp struct buf *b; // First queued buffer is the active request. acquire(&idelock); 80102089: 68 80 a5 10 80 push $0x8010a580 8010208e: e8 ad 22 00 00 call 80104340 <acquire> if((b = idequeue) == 0){ 80102093: 8b 1d 64 a5 10 80 mov 0x8010a564,%ebx 80102099: 83 c4 10 add $0x10,%esp 8010209c: 85 db test %ebx,%ebx 8010209e: 74 67 je 80102107 <ideintr+0x87> release(&idelock); return; } idequeue = b->qnext; 801020a0: 8b 43 58 mov 0x58(%ebx),%eax 801020a3: a3 64 a5 10 80 mov %eax,0x8010a564 // Read data if needed. if(!(b->flags & B_DIRTY) && idewait(1) >= 0) 801020a8: 8b 3b mov (%ebx),%edi 801020aa: f7 c7 04 00 00 00 test $0x4,%edi 801020b0: 75 31 jne 801020e3 <ideintr+0x63> asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801020b2: ba f7 01 00 00 mov $0x1f7,%edx 801020b7: 89 f6 mov %esi,%esi 801020b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801020c0: ec in (%dx),%al while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY) 801020c1: 89 c6 mov %eax,%esi 801020c3: 83 e6 c0 and $0xffffffc0,%esi 801020c6: 89 f1 mov %esi,%ecx 801020c8: 80 f9 40 cmp $0x40,%cl 801020cb: 75 f3 jne 801020c0 <ideintr+0x40> if(checkerr && (r & (IDE_DF|IDE_ERR)) != 0) 801020cd: a8 21 test $0x21,%al 801020cf: 75 12 jne 801020e3 <ideintr+0x63> insl(0x1f0, b->data, BSIZE/4); 801020d1: 8d 7b 5c lea 0x5c(%ebx),%edi asm volatile("cld; rep insl" : 801020d4: b9 80 00 00 00 mov $0x80,%ecx 801020d9: ba f0 01 00 00 mov $0x1f0,%edx 801020de: fc cld 801020df: f3 6d rep insl (%dx),%es:(%edi) 801020e1: 8b 3b mov (%ebx),%edi // Wake process waiting for this buf. b->flags |= B_VALID; b->flags &= ~B_DIRTY; 801020e3: 83 e7 fb and $0xfffffffb,%edi wakeup(b); 801020e6: 83 ec 0c sub $0xc,%esp b->flags &= ~B_DIRTY; 801020e9: 89 f9 mov %edi,%ecx 801020eb: 83 c9 02 or $0x2,%ecx 801020ee: 89 0b mov %ecx,(%ebx) wakeup(b); 801020f0: 53 push %ebx 801020f1: e8 3a 1e 00 00 call 80103f30 <wakeup> // Start disk on next buf in queue. if(idequeue != 0) 801020f6: a1 64 a5 10 80 mov 0x8010a564,%eax 801020fb: 83 c4 10 add $0x10,%esp 801020fe: 85 c0 test %eax,%eax 80102100: 74 05 je 80102107 <ideintr+0x87> idestart(idequeue); 80102102: e8 19 fe ff ff call 80101f20 <idestart> release(&idelock); 80102107: 83 ec 0c sub $0xc,%esp 8010210a: 68 80 a5 10 80 push $0x8010a580 8010210f: e8 ec 22 00 00 call 80104400 <release> release(&idelock); } 80102114: 8d 65 f4 lea -0xc(%ebp),%esp 80102117: 5b pop %ebx 80102118: 5e pop %esi 80102119: 5f pop %edi 8010211a: 5d pop %ebp 8010211b: c3 ret 8010211c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102120 <iderw>: // Sync buf with disk. // If B_DIRTY is set, write buf to disk, clear B_DIRTY, set B_VALID. // Else if B_VALID is not set, read buf from disk, set B_VALID. void iderw(struct buf *b) { 80102120: 55 push %ebp 80102121: 89 e5 mov %esp,%ebp 80102123: 53 push %ebx 80102124: 83 ec 10 sub $0x10,%esp 80102127: 8b 5d 08 mov 0x8(%ebp),%ebx struct buf **pp; if(!holdingsleep(&b->lock)) 8010212a: 8d 43 0c lea 0xc(%ebx),%eax 8010212d: 50 push %eax 8010212e: e8 7d 20 00 00 call 801041b0 <holdingsleep> 80102133: 83 c4 10 add $0x10,%esp 80102136: 85 c0 test %eax,%eax 80102138: 0f 84 c6 00 00 00 je 80102204 <iderw+0xe4> panic("iderw: buf not locked"); if((b->flags & (B_VALID|B_DIRTY)) == B_VALID) 8010213e: 8b 03 mov (%ebx),%eax 80102140: 83 e0 06 and $0x6,%eax 80102143: 83 f8 02 cmp $0x2,%eax 80102146: 0f 84 ab 00 00 00 je 801021f7 <iderw+0xd7> panic("iderw: nothing to do"); if(b->dev != 0 && !havedisk1) 8010214c: 8b 53 04 mov 0x4(%ebx),%edx 8010214f: 85 d2 test %edx,%edx 80102151: 74 0d je 80102160 <iderw+0x40> 80102153: a1 60 a5 10 80 mov 0x8010a560,%eax 80102158: 85 c0 test %eax,%eax 8010215a: 0f 84 b1 00 00 00 je 80102211 <iderw+0xf1> panic("iderw: ide disk 1 not present"); acquire(&idelock); //DOC:acquire-lock 80102160: 83 ec 0c sub $0xc,%esp 80102163: 68 80 a5 10 80 push $0x8010a580 80102168: e8 d3 21 00 00 call 80104340 <acquire> // Append b to idequeue. b->qnext = 0; for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue 8010216d: 8b 15 64 a5 10 80 mov 0x8010a564,%edx 80102173: 83 c4 10 add $0x10,%esp b->qnext = 0; 80102176: c7 43 58 00 00 00 00 movl $0x0,0x58(%ebx) for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue 8010217d: 85 d2 test %edx,%edx 8010217f: 75 09 jne 8010218a <iderw+0x6a> 80102181: eb 6d jmp 801021f0 <iderw+0xd0> 80102183: 90 nop 80102184: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102188: 89 c2 mov %eax,%edx 8010218a: 8b 42 58 mov 0x58(%edx),%eax 8010218d: 85 c0 test %eax,%eax 8010218f: 75 f7 jne 80102188 <iderw+0x68> 80102191: 83 c2 58 add $0x58,%edx ; *pp = b; 80102194: 89 1a mov %ebx,(%edx) // Start disk if necessary. if(idequeue == b) 80102196: 39 1d 64 a5 10 80 cmp %ebx,0x8010a564 8010219c: 74 42 je 801021e0 <iderw+0xc0> idestart(b); // Wait for request to finish. while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){ 8010219e: 8b 03 mov (%ebx),%eax 801021a0: 83 e0 06 and $0x6,%eax 801021a3: 83 f8 02 cmp $0x2,%eax 801021a6: 74 23 je 801021cb <iderw+0xab> 801021a8: 90 nop 801021a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi sleep(b, &idelock); 801021b0: 83 ec 08 sub $0x8,%esp 801021b3: 68 80 a5 10 80 push $0x8010a580 801021b8: 53 push %ebx 801021b9: e8 c2 1b 00 00 call 80103d80 <sleep> while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){ 801021be: 8b 03 mov (%ebx),%eax 801021c0: 83 c4 10 add $0x10,%esp 801021c3: 83 e0 06 and $0x6,%eax 801021c6: 83 f8 02 cmp $0x2,%eax 801021c9: 75 e5 jne 801021b0 <iderw+0x90> } release(&idelock); 801021cb: c7 45 08 80 a5 10 80 movl $0x8010a580,0x8(%ebp) } 801021d2: 8b 5d fc mov -0x4(%ebp),%ebx 801021d5: c9 leave release(&idelock); 801021d6: e9 25 22 00 00 jmp 80104400 <release> 801021db: 90 nop 801021dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi idestart(b); 801021e0: 89 d8 mov %ebx,%eax 801021e2: e8 39 fd ff ff call 80101f20 <idestart> 801021e7: eb b5 jmp 8010219e <iderw+0x7e> 801021e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue 801021f0: ba 64 a5 10 80 mov $0x8010a564,%edx 801021f5: eb 9d jmp 80102194 <iderw+0x74> panic("iderw: nothing to do"); 801021f7: 83 ec 0c sub $0xc,%esp 801021fa: 68 c0 70 10 80 push $0x801070c0 801021ff: e8 8c e1 ff ff call 80100390 <panic> panic("iderw: buf not locked"); 80102204: 83 ec 0c sub $0xc,%esp 80102207: 68 aa 70 10 80 push $0x801070aa 8010220c: e8 7f e1 ff ff call 80100390 <panic> panic("iderw: ide disk 1 not present"); 80102211: 83 ec 0c sub $0xc,%esp 80102214: 68 d5 70 10 80 push $0x801070d5 80102219: e8 72 e1 ff ff call 80100390 <panic> 8010221e: 66 90 xchg %ax,%ax 80102220 <ioapicinit>: ioapic->data = data; } void ioapicinit(void) { 80102220: 55 push %ebp int i, id, maxintr; ioapic = (volatile struct ioapic*)IOAPIC; 80102221: c7 05 34 26 11 80 00 movl $0xfec00000,0x80112634 80102228: 00 c0 fe { 8010222b: 89 e5 mov %esp,%ebp 8010222d: 56 push %esi 8010222e: 53 push %ebx ioapic->reg = reg; 8010222f: c7 05 00 00 c0 fe 01 movl $0x1,0xfec00000 80102236: 00 00 00 return ioapic->data; 80102239: a1 34 26 11 80 mov 0x80112634,%eax 8010223e: 8b 58 10 mov 0x10(%eax),%ebx ioapic->reg = reg; 80102241: c7 00 00 00 00 00 movl $0x0,(%eax) return ioapic->data; 80102247: 8b 0d 34 26 11 80 mov 0x80112634,%ecx maxintr = (ioapicread(REG_VER) >> 16) & 0xFF; id = ioapicread(REG_ID) >> 24; if(id != ioapicid) 8010224d: 0f b6 15 60 27 11 80 movzbl 0x80112760,%edx maxintr = (ioapicread(REG_VER) >> 16) & 0xFF; 80102254: c1 eb 10 shr $0x10,%ebx return ioapic->data; 80102257: 8b 41 10 mov 0x10(%ecx),%eax maxintr = (ioapicread(REG_VER) >> 16) & 0xFF; 8010225a: 0f b6 db movzbl %bl,%ebx id = ioapicread(REG_ID) >> 24; 8010225d: c1 e8 18 shr $0x18,%eax if(id != ioapicid) 80102260: 39 c2 cmp %eax,%edx 80102262: 74 16 je 8010227a <ioapicinit+0x5a> cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n"); 80102264: 83 ec 0c sub $0xc,%esp 80102267: 68 f4 70 10 80 push $0x801070f4 8010226c: e8 ef e3 ff ff call 80100660 <cprintf> 80102271: 8b 0d 34 26 11 80 mov 0x80112634,%ecx 80102277: 83 c4 10 add $0x10,%esp 8010227a: 83 c3 21 add $0x21,%ebx { 8010227d: ba 10 00 00 00 mov $0x10,%edx 80102282: b8 20 00 00 00 mov $0x20,%eax 80102287: 89 f6 mov %esi,%esi 80102289: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi ioapic->reg = reg; 80102290: 89 11 mov %edx,(%ecx) ioapic->data = data; 80102292: 8b 0d 34 26 11 80 mov 0x80112634,%ecx // Mark all interrupts edge-triggered, active high, disabled, // and not routed to any CPUs. for(i = 0; i <= maxintr; i++){ ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i)); 80102298: 89 c6 mov %eax,%esi 8010229a: 81 ce 00 00 01 00 or $0x10000,%esi 801022a0: 83 c0 01 add $0x1,%eax ioapic->data = data; 801022a3: 89 71 10 mov %esi,0x10(%ecx) 801022a6: 8d 72 01 lea 0x1(%edx),%esi 801022a9: 83 c2 02 add $0x2,%edx for(i = 0; i <= maxintr; i++){ 801022ac: 39 d8 cmp %ebx,%eax ioapic->reg = reg; 801022ae: 89 31 mov %esi,(%ecx) ioapic->data = data; 801022b0: 8b 0d 34 26 11 80 mov 0x80112634,%ecx 801022b6: c7 41 10 00 00 00 00 movl $0x0,0x10(%ecx) for(i = 0; i <= maxintr; i++){ 801022bd: 75 d1 jne 80102290 <ioapicinit+0x70> ioapicwrite(REG_TABLE+2*i+1, 0); } } 801022bf: 8d 65 f8 lea -0x8(%ebp),%esp 801022c2: 5b pop %ebx 801022c3: 5e pop %esi 801022c4: 5d pop %ebp 801022c5: c3 ret 801022c6: 8d 76 00 lea 0x0(%esi),%esi 801022c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801022d0 <ioapicenable>: void ioapicenable(int irq, int cpunum) { 801022d0: 55 push %ebp ioapic->reg = reg; 801022d1: 8b 0d 34 26 11 80 mov 0x80112634,%ecx { 801022d7: 89 e5 mov %esp,%ebp 801022d9: 8b 45 08 mov 0x8(%ebp),%eax // Mark interrupt edge-triggered, active high, // enabled, and routed to the given cpunum, // which happens to be that cpu's APIC ID. ioapicwrite(REG_TABLE+2*irq, T_IRQ0 + irq); 801022dc: 8d 50 20 lea 0x20(%eax),%edx 801022df: 8d 44 00 10 lea 0x10(%eax,%eax,1),%eax ioapic->reg = reg; 801022e3: 89 01 mov %eax,(%ecx) ioapic->data = data; 801022e5: 8b 0d 34 26 11 80 mov 0x80112634,%ecx ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); 801022eb: 83 c0 01 add $0x1,%eax ioapic->data = data; 801022ee: 89 51 10 mov %edx,0x10(%ecx) ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); 801022f1: 8b 55 0c mov 0xc(%ebp),%edx ioapic->reg = reg; 801022f4: 89 01 mov %eax,(%ecx) ioapic->data = data; 801022f6: a1 34 26 11 80 mov 0x80112634,%eax ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24); 801022fb: c1 e2 18 shl $0x18,%edx ioapic->data = data; 801022fe: 89 50 10 mov %edx,0x10(%eax) } 80102301: 5d pop %ebp 80102302: c3 ret 80102303: 66 90 xchg %ax,%ax 80102305: 66 90 xchg %ax,%ax 80102307: 66 90 xchg %ax,%ax 80102309: 66 90 xchg %ax,%ax 8010230b: 66 90 xchg %ax,%ax 8010230d: 66 90 xchg %ax,%ax 8010230f: 90 nop 80102310 <kfree>: // which normally should have been returned by a // call to kalloc(). (The exception is when // initializing the allocator; see kinit above.) void kfree(char *v) { 80102310: 55 push %ebp 80102311: 89 e5 mov %esp,%ebp 80102313: 53 push %ebx 80102314: 83 ec 04 sub $0x4,%esp 80102317: 8b 5d 08 mov 0x8(%ebp),%ebx struct run *r; if((uint)v % PGSIZE || v < end || V2P(v) >= PHYSTOP) 8010231a: f7 c3 ff 0f 00 00 test $0xfff,%ebx 80102320: 75 70 jne 80102392 <kfree+0x82> 80102322: 81 fb a8 54 11 80 cmp $0x801154a8,%ebx 80102328: 72 68 jb 80102392 <kfree+0x82> 8010232a: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax 80102330: 3d ff ff ff 0d cmp $0xdffffff,%eax 80102335: 77 5b ja 80102392 <kfree+0x82> panic("kfree"); // Fill with junk to catch dangling refs. memset(v, 1, PGSIZE); 80102337: 83 ec 04 sub $0x4,%esp 8010233a: 68 00 10 00 00 push $0x1000 8010233f: 6a 01 push $0x1 80102341: 53 push %ebx 80102342: e8 09 21 00 00 call 80104450 <memset> if(kmem.use_lock) 80102347: 8b 15 74 26 11 80 mov 0x80112674,%edx 8010234d: 83 c4 10 add $0x10,%esp 80102350: 85 d2 test %edx,%edx 80102352: 75 2c jne 80102380 <kfree+0x70> acquire(&kmem.lock); r = (struct run*)v; r->next = kmem.freelist; 80102354: a1 78 26 11 80 mov 0x80112678,%eax 80102359: 89 03 mov %eax,(%ebx) kmem.freelist = r; if(kmem.use_lock) 8010235b: a1 74 26 11 80 mov 0x80112674,%eax kmem.freelist = r; 80102360: 89 1d 78 26 11 80 mov %ebx,0x80112678 if(kmem.use_lock) 80102366: 85 c0 test %eax,%eax 80102368: 75 06 jne 80102370 <kfree+0x60> release(&kmem.lock); } 8010236a: 8b 5d fc mov -0x4(%ebp),%ebx 8010236d: c9 leave 8010236e: c3 ret 8010236f: 90 nop release(&kmem.lock); 80102370: c7 45 08 40 26 11 80 movl $0x80112640,0x8(%ebp) } 80102377: 8b 5d fc mov -0x4(%ebp),%ebx 8010237a: c9 leave release(&kmem.lock); 8010237b: e9 80 20 00 00 jmp 80104400 <release> acquire(&kmem.lock); 80102380: 83 ec 0c sub $0xc,%esp 80102383: 68 40 26 11 80 push $0x80112640 80102388: e8 b3 1f 00 00 call 80104340 <acquire> 8010238d: 83 c4 10 add $0x10,%esp 80102390: eb c2 jmp 80102354 <kfree+0x44> panic("kfree"); 80102392: 83 ec 0c sub $0xc,%esp 80102395: 68 26 71 10 80 push $0x80107126 8010239a: e8 f1 df ff ff call 80100390 <panic> 8010239f: 90 nop 801023a0 <freerange>: { 801023a0: 55 push %ebp 801023a1: 89 e5 mov %esp,%ebp 801023a3: 56 push %esi 801023a4: 53 push %ebx p = (char*)PGROUNDUP((uint)vstart); 801023a5: 8b 45 08 mov 0x8(%ebp),%eax { 801023a8: 8b 75 0c mov 0xc(%ebp),%esi p = (char*)PGROUNDUP((uint)vstart); 801023ab: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx 801023b1: 81 e3 00 f0 ff ff and $0xfffff000,%ebx for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 801023b7: 81 c3 00 10 00 00 add $0x1000,%ebx 801023bd: 39 de cmp %ebx,%esi 801023bf: 72 23 jb 801023e4 <freerange+0x44> 801023c1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi kfree(p); 801023c8: 8d 83 00 f0 ff ff lea -0x1000(%ebx),%eax 801023ce: 83 ec 0c sub $0xc,%esp for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 801023d1: 81 c3 00 10 00 00 add $0x1000,%ebx kfree(p); 801023d7: 50 push %eax 801023d8: e8 33 ff ff ff call 80102310 <kfree> for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 801023dd: 83 c4 10 add $0x10,%esp 801023e0: 39 f3 cmp %esi,%ebx 801023e2: 76 e4 jbe 801023c8 <freerange+0x28> } 801023e4: 8d 65 f8 lea -0x8(%ebp),%esp 801023e7: 5b pop %ebx 801023e8: 5e pop %esi 801023e9: 5d pop %ebp 801023ea: c3 ret 801023eb: 90 nop 801023ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801023f0 <kinit1>: { 801023f0: 55 push %ebp 801023f1: 89 e5 mov %esp,%ebp 801023f3: 56 push %esi 801023f4: 53 push %ebx 801023f5: 8b 75 0c mov 0xc(%ebp),%esi initlock(&kmem.lock, "kmem"); 801023f8: 83 ec 08 sub $0x8,%esp 801023fb: 68 2c 71 10 80 push $0x8010712c 80102400: 68 40 26 11 80 push $0x80112640 80102405: e8 f6 1d 00 00 call 80104200 <initlock> p = (char*)PGROUNDUP((uint)vstart); 8010240a: 8b 45 08 mov 0x8(%ebp),%eax for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 8010240d: 83 c4 10 add $0x10,%esp kmem.use_lock = 0; 80102410: c7 05 74 26 11 80 00 movl $0x0,0x80112674 80102417: 00 00 00 p = (char*)PGROUNDUP((uint)vstart); 8010241a: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx 80102420: 81 e3 00 f0 ff ff and $0xfffff000,%ebx for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102426: 81 c3 00 10 00 00 add $0x1000,%ebx 8010242c: 39 de cmp %ebx,%esi 8010242e: 72 1c jb 8010244c <kinit1+0x5c> kfree(p); 80102430: 8d 83 00 f0 ff ff lea -0x1000(%ebx),%eax 80102436: 83 ec 0c sub $0xc,%esp for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102439: 81 c3 00 10 00 00 add $0x1000,%ebx kfree(p); 8010243f: 50 push %eax 80102440: e8 cb fe ff ff call 80102310 <kfree> for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102445: 83 c4 10 add $0x10,%esp 80102448: 39 de cmp %ebx,%esi 8010244a: 73 e4 jae 80102430 <kinit1+0x40> } 8010244c: 8d 65 f8 lea -0x8(%ebp),%esp 8010244f: 5b pop %ebx 80102450: 5e pop %esi 80102451: 5d pop %ebp 80102452: c3 ret 80102453: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80102459: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102460 <kinit2>: { 80102460: 55 push %ebp 80102461: 89 e5 mov %esp,%ebp 80102463: 56 push %esi 80102464: 53 push %ebx p = (char*)PGROUNDUP((uint)vstart); 80102465: 8b 45 08 mov 0x8(%ebp),%eax { 80102468: 8b 75 0c mov 0xc(%ebp),%esi p = (char*)PGROUNDUP((uint)vstart); 8010246b: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx 80102471: 81 e3 00 f0 ff ff and $0xfffff000,%ebx for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102477: 81 c3 00 10 00 00 add $0x1000,%ebx 8010247d: 39 de cmp %ebx,%esi 8010247f: 72 23 jb 801024a4 <kinit2+0x44> 80102481: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi kfree(p); 80102488: 8d 83 00 f0 ff ff lea -0x1000(%ebx),%eax 8010248e: 83 ec 0c sub $0xc,%esp for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 80102491: 81 c3 00 10 00 00 add $0x1000,%ebx kfree(p); 80102497: 50 push %eax 80102498: e8 73 fe ff ff call 80102310 <kfree> for(; p + PGSIZE <= (char*)vend; p += PGSIZE) 8010249d: 83 c4 10 add $0x10,%esp 801024a0: 39 de cmp %ebx,%esi 801024a2: 73 e4 jae 80102488 <kinit2+0x28> kmem.use_lock = 1; 801024a4: c7 05 74 26 11 80 01 movl $0x1,0x80112674 801024ab: 00 00 00 } 801024ae: 8d 65 f8 lea -0x8(%ebp),%esp 801024b1: 5b pop %ebx 801024b2: 5e pop %esi 801024b3: 5d pop %ebp 801024b4: c3 ret 801024b5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801024b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801024c0 <kalloc>: char* kalloc(void) { struct run *r; if(kmem.use_lock) 801024c0: a1 74 26 11 80 mov 0x80112674,%eax 801024c5: 85 c0 test %eax,%eax 801024c7: 75 1f jne 801024e8 <kalloc+0x28> acquire(&kmem.lock); r = kmem.freelist; 801024c9: a1 78 26 11 80 mov 0x80112678,%eax if(r) 801024ce: 85 c0 test %eax,%eax 801024d0: 74 0e je 801024e0 <kalloc+0x20> kmem.freelist = r->next; 801024d2: 8b 10 mov (%eax),%edx 801024d4: 89 15 78 26 11 80 mov %edx,0x80112678 801024da: c3 ret 801024db: 90 nop 801024dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(kmem.use_lock) release(&kmem.lock); return (char*)r; } 801024e0: f3 c3 repz ret 801024e2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi { 801024e8: 55 push %ebp 801024e9: 89 e5 mov %esp,%ebp 801024eb: 83 ec 24 sub $0x24,%esp acquire(&kmem.lock); 801024ee: 68 40 26 11 80 push $0x80112640 801024f3: e8 48 1e 00 00 call 80104340 <acquire> r = kmem.freelist; 801024f8: a1 78 26 11 80 mov 0x80112678,%eax if(r) 801024fd: 83 c4 10 add $0x10,%esp 80102500: 8b 15 74 26 11 80 mov 0x80112674,%edx 80102506: 85 c0 test %eax,%eax 80102508: 74 08 je 80102512 <kalloc+0x52> kmem.freelist = r->next; 8010250a: 8b 08 mov (%eax),%ecx 8010250c: 89 0d 78 26 11 80 mov %ecx,0x80112678 if(kmem.use_lock) 80102512: 85 d2 test %edx,%edx 80102514: 74 16 je 8010252c <kalloc+0x6c> release(&kmem.lock); 80102516: 83 ec 0c sub $0xc,%esp 80102519: 89 45 f4 mov %eax,-0xc(%ebp) 8010251c: 68 40 26 11 80 push $0x80112640 80102521: e8 da 1e 00 00 call 80104400 <release> return (char*)r; 80102526: 8b 45 f4 mov -0xc(%ebp),%eax release(&kmem.lock); 80102529: 83 c4 10 add $0x10,%esp } 8010252c: c9 leave 8010252d: c3 ret 8010252e: 66 90 xchg %ax,%ax 80102530 <kbdgetc>: asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102530: ba 64 00 00 00 mov $0x64,%edx 80102535: ec in (%dx),%al normalmap, shiftmap, ctlmap, ctlmap }; uint st, data, c; st = inb(KBSTATP); if((st & KBS_DIB) == 0) 80102536: a8 01 test $0x1,%al 80102538: 0f 84 c2 00 00 00 je 80102600 <kbdgetc+0xd0> 8010253e: ba 60 00 00 00 mov $0x60,%edx 80102543: ec in (%dx),%al return -1; data = inb(KBDATAP); 80102544: 0f b6 d0 movzbl %al,%edx 80102547: 8b 0d b4 a5 10 80 mov 0x8010a5b4,%ecx if(data == 0xE0){ 8010254d: 81 fa e0 00 00 00 cmp $0xe0,%edx 80102553: 0f 84 7f 00 00 00 je 801025d8 <kbdgetc+0xa8> { 80102559: 55 push %ebp 8010255a: 89 e5 mov %esp,%ebp 8010255c: 53 push %ebx 8010255d: 89 cb mov %ecx,%ebx 8010255f: 83 e3 40 and $0x40,%ebx shift |= E0ESC; return 0; } else if(data & 0x80){ 80102562: 84 c0 test %al,%al 80102564: 78 4a js 801025b0 <kbdgetc+0x80> // Key released data = (shift & E0ESC ? data : data & 0x7F); shift &= ~(shiftcode[data] | E0ESC); return 0; } else if(shift & E0ESC){ 80102566: 85 db test %ebx,%ebx 80102568: 74 09 je 80102573 <kbdgetc+0x43> // Last character was an E0 escape; or with 0x80 data |= 0x80; 8010256a: 83 c8 80 or $0xffffff80,%eax shift &= ~E0ESC; 8010256d: 83 e1 bf and $0xffffffbf,%ecx data |= 0x80; 80102570: 0f b6 d0 movzbl %al,%edx } shift |= shiftcode[data]; 80102573: 0f b6 82 60 72 10 80 movzbl -0x7fef8da0(%edx),%eax 8010257a: 09 c1 or %eax,%ecx shift ^= togglecode[data]; 8010257c: 0f b6 82 60 71 10 80 movzbl -0x7fef8ea0(%edx),%eax 80102583: 31 c1 xor %eax,%ecx c = charcode[shift & (CTL | SHIFT)][data]; 80102585: 89 c8 mov %ecx,%eax shift ^= togglecode[data]; 80102587: 89 0d b4 a5 10 80 mov %ecx,0x8010a5b4 c = charcode[shift & (CTL | SHIFT)][data]; 8010258d: 83 e0 03 and $0x3,%eax if(shift & CAPSLOCK){ 80102590: 83 e1 08 and $0x8,%ecx c = charcode[shift & (CTL | SHIFT)][data]; 80102593: 8b 04 85 40 71 10 80 mov -0x7fef8ec0(,%eax,4),%eax 8010259a: 0f b6 04 10 movzbl (%eax,%edx,1),%eax if(shift & CAPSLOCK){ 8010259e: 74 31 je 801025d1 <kbdgetc+0xa1> if('a' <= c && c <= 'z') 801025a0: 8d 50 9f lea -0x61(%eax),%edx 801025a3: 83 fa 19 cmp $0x19,%edx 801025a6: 77 40 ja 801025e8 <kbdgetc+0xb8> c += 'A' - 'a'; 801025a8: 83 e8 20 sub $0x20,%eax else if('A' <= c && c <= 'Z') c += 'a' - 'A'; } return c; } 801025ab: 5b pop %ebx 801025ac: 5d pop %ebp 801025ad: c3 ret 801025ae: 66 90 xchg %ax,%ax data = (shift & E0ESC ? data : data & 0x7F); 801025b0: 83 e0 7f and $0x7f,%eax 801025b3: 85 db test %ebx,%ebx 801025b5: 0f 44 d0 cmove %eax,%edx shift &= ~(shiftcode[data] | E0ESC); 801025b8: 0f b6 82 60 72 10 80 movzbl -0x7fef8da0(%edx),%eax 801025bf: 83 c8 40 or $0x40,%eax 801025c2: 0f b6 c0 movzbl %al,%eax 801025c5: f7 d0 not %eax 801025c7: 21 c1 and %eax,%ecx return 0; 801025c9: 31 c0 xor %eax,%eax shift &= ~(shiftcode[data] | E0ESC); 801025cb: 89 0d b4 a5 10 80 mov %ecx,0x8010a5b4 } 801025d1: 5b pop %ebx 801025d2: 5d pop %ebp 801025d3: c3 ret 801025d4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi shift |= E0ESC; 801025d8: 83 c9 40 or $0x40,%ecx return 0; 801025db: 31 c0 xor %eax,%eax shift |= E0ESC; 801025dd: 89 0d b4 a5 10 80 mov %ecx,0x8010a5b4 return 0; 801025e3: c3 ret 801025e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi else if('A' <= c && c <= 'Z') 801025e8: 8d 48 bf lea -0x41(%eax),%ecx c += 'a' - 'A'; 801025eb: 8d 50 20 lea 0x20(%eax),%edx } 801025ee: 5b pop %ebx c += 'a' - 'A'; 801025ef: 83 f9 1a cmp $0x1a,%ecx 801025f2: 0f 42 c2 cmovb %edx,%eax } 801025f5: 5d pop %ebp 801025f6: c3 ret 801025f7: 89 f6 mov %esi,%esi 801025f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi return -1; 80102600: b8 ff ff ff ff mov $0xffffffff,%eax } 80102605: c3 ret 80102606: 8d 76 00 lea 0x0(%esi),%esi 80102609: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102610 <kbdintr>: void kbdintr(void) { 80102610: 55 push %ebp 80102611: 89 e5 mov %esp,%ebp 80102613: 83 ec 14 sub $0x14,%esp consoleintr(kbdgetc); 80102616: 68 30 25 10 80 push $0x80102530 8010261b: e8 f0 e1 ff ff call 80100810 <consoleintr> } 80102620: 83 c4 10 add $0x10,%esp 80102623: c9 leave 80102624: c3 ret 80102625: 66 90 xchg %ax,%ax 80102627: 66 90 xchg %ax,%ax 80102629: 66 90 xchg %ax,%ax 8010262b: 66 90 xchg %ax,%ax 8010262d: 66 90 xchg %ax,%ax 8010262f: 90 nop 80102630 <lapicinit>: } void lapicinit(void) { if(!lapic) 80102630: a1 7c 26 11 80 mov 0x8011267c,%eax { 80102635: 55 push %ebp 80102636: 89 e5 mov %esp,%ebp if(!lapic) 80102638: 85 c0 test %eax,%eax 8010263a: 0f 84 c8 00 00 00 je 80102708 <lapicinit+0xd8> lapic[index] = value; 80102640: c7 80 f0 00 00 00 3f movl $0x13f,0xf0(%eax) 80102647: 01 00 00 lapic[ID]; // wait for write to finish, by reading 8010264a: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 8010264d: c7 80 e0 03 00 00 0b movl $0xb,0x3e0(%eax) 80102654: 00 00 00 lapic[ID]; // wait for write to finish, by reading 80102657: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 8010265a: c7 80 20 03 00 00 20 movl $0x20020,0x320(%eax) 80102661: 00 02 00 lapic[ID]; // wait for write to finish, by reading 80102664: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 80102667: c7 80 80 03 00 00 80 movl $0x989680,0x380(%eax) 8010266e: 96 98 00 lapic[ID]; // wait for write to finish, by reading 80102671: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 80102674: c7 80 50 03 00 00 00 movl $0x10000,0x350(%eax) 8010267b: 00 01 00 lapic[ID]; // wait for write to finish, by reading 8010267e: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 80102681: c7 80 60 03 00 00 00 movl $0x10000,0x360(%eax) 80102688: 00 01 00 lapic[ID]; // wait for write to finish, by reading 8010268b: 8b 50 20 mov 0x20(%eax),%edx lapicw(LINT0, MASKED); lapicw(LINT1, MASKED); // Disable performance counter overflow interrupts // on machines that provide that interrupt entry. if(((lapic[VER]>>16) & 0xFF) >= 4) 8010268e: 8b 50 30 mov 0x30(%eax),%edx 80102691: c1 ea 10 shr $0x10,%edx 80102694: 80 fa 03 cmp $0x3,%dl 80102697: 77 77 ja 80102710 <lapicinit+0xe0> lapic[index] = value; 80102699: c7 80 70 03 00 00 33 movl $0x33,0x370(%eax) 801026a0: 00 00 00 lapic[ID]; // wait for write to finish, by reading 801026a3: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 801026a6: c7 80 80 02 00 00 00 movl $0x0,0x280(%eax) 801026ad: 00 00 00 lapic[ID]; // wait for write to finish, by reading 801026b0: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 801026b3: c7 80 80 02 00 00 00 movl $0x0,0x280(%eax) 801026ba: 00 00 00 lapic[ID]; // wait for write to finish, by reading 801026bd: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 801026c0: c7 80 b0 00 00 00 00 movl $0x0,0xb0(%eax) 801026c7: 00 00 00 lapic[ID]; // wait for write to finish, by reading 801026ca: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 801026cd: c7 80 10 03 00 00 00 movl $0x0,0x310(%eax) 801026d4: 00 00 00 lapic[ID]; // wait for write to finish, by reading 801026d7: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 801026da: c7 80 00 03 00 00 00 movl $0x88500,0x300(%eax) 801026e1: 85 08 00 lapic[ID]; // wait for write to finish, by reading 801026e4: 8b 50 20 mov 0x20(%eax),%edx 801026e7: 89 f6 mov %esi,%esi 801026e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi lapicw(EOI, 0); // Send an Init Level De-Assert to synchronise arbitration ID's. lapicw(ICRHI, 0); lapicw(ICRLO, BCAST | INIT | LEVEL); while(lapic[ICRLO] & DELIVS) 801026f0: 8b 90 00 03 00 00 mov 0x300(%eax),%edx 801026f6: 80 e6 10 and $0x10,%dh 801026f9: 75 f5 jne 801026f0 <lapicinit+0xc0> lapic[index] = value; 801026fb: c7 80 80 00 00 00 00 movl $0x0,0x80(%eax) 80102702: 00 00 00 lapic[ID]; // wait for write to finish, by reading 80102705: 8b 40 20 mov 0x20(%eax),%eax ; // Enable interrupts on the APIC (but not on the processor). lapicw(TPR, 0); } 80102708: 5d pop %ebp 80102709: c3 ret 8010270a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi lapic[index] = value; 80102710: c7 80 40 03 00 00 00 movl $0x10000,0x340(%eax) 80102717: 00 01 00 lapic[ID]; // wait for write to finish, by reading 8010271a: 8b 50 20 mov 0x20(%eax),%edx 8010271d: e9 77 ff ff ff jmp 80102699 <lapicinit+0x69> 80102722: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80102729: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102730 <lapicid>: int lapicid(void) { if (!lapic) 80102730: 8b 15 7c 26 11 80 mov 0x8011267c,%edx { 80102736: 55 push %ebp 80102737: 31 c0 xor %eax,%eax 80102739: 89 e5 mov %esp,%ebp if (!lapic) 8010273b: 85 d2 test %edx,%edx 8010273d: 74 06 je 80102745 <lapicid+0x15> return 0; return lapic[ID] >> 24; 8010273f: 8b 42 20 mov 0x20(%edx),%eax 80102742: c1 e8 18 shr $0x18,%eax } 80102745: 5d pop %ebp 80102746: c3 ret 80102747: 89 f6 mov %esi,%esi 80102749: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102750 <lapiceoi>: // Acknowledge interrupt. void lapiceoi(void) { if(lapic) 80102750: a1 7c 26 11 80 mov 0x8011267c,%eax { 80102755: 55 push %ebp 80102756: 89 e5 mov %esp,%ebp if(lapic) 80102758: 85 c0 test %eax,%eax 8010275a: 74 0d je 80102769 <lapiceoi+0x19> lapic[index] = value; 8010275c: c7 80 b0 00 00 00 00 movl $0x0,0xb0(%eax) 80102763: 00 00 00 lapic[ID]; // wait for write to finish, by reading 80102766: 8b 40 20 mov 0x20(%eax),%eax lapicw(EOI, 0); } 80102769: 5d pop %ebp 8010276a: c3 ret 8010276b: 90 nop 8010276c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102770 <microdelay>: // Spin for a given number of microseconds. // On real hardware would want to tune this dynamically. void microdelay(int us) { 80102770: 55 push %ebp 80102771: 89 e5 mov %esp,%ebp } 80102773: 5d pop %ebp 80102774: c3 ret 80102775: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102779: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102780 <lapicstartap>: // Start additional processor running entry code at addr. // See Appendix B of MultiProcessor Specification. void lapicstartap(uchar apicid, uint addr) { 80102780: 55 push %ebp asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102781: b8 0f 00 00 00 mov $0xf,%eax 80102786: ba 70 00 00 00 mov $0x70,%edx 8010278b: 89 e5 mov %esp,%ebp 8010278d: 53 push %ebx 8010278e: 8b 4d 0c mov 0xc(%ebp),%ecx 80102791: 8b 5d 08 mov 0x8(%ebp),%ebx 80102794: ee out %al,(%dx) 80102795: b8 0a 00 00 00 mov $0xa,%eax 8010279a: ba 71 00 00 00 mov $0x71,%edx 8010279f: ee out %al,(%dx) // and the warm reset vector (DWORD based at 40:67) to point at // the AP startup code prior to the [universal startup algorithm]." outb(CMOS_PORT, 0xF); // offset 0xF is shutdown code outb(CMOS_PORT+1, 0x0A); wrv = (ushort*)P2V((0x40<<4 | 0x67)); // Warm reset vector wrv[0] = 0; 801027a0: 31 c0 xor %eax,%eax wrv[1] = addr >> 4; // "Universal startup algorithm." // Send INIT (level-triggered) interrupt to reset other CPU. lapicw(ICRHI, apicid<<24); 801027a2: c1 e3 18 shl $0x18,%ebx wrv[0] = 0; 801027a5: 66 a3 67 04 00 80 mov %ax,0x80000467 wrv[1] = addr >> 4; 801027ab: 89 c8 mov %ecx,%eax // when it is in the halted state due to an INIT. So the second // should be ignored, but it is part of the official Intel algorithm. // Bochs complains about the second one. Too bad for Bochs. for(i = 0; i < 2; i++){ lapicw(ICRHI, apicid<<24); lapicw(ICRLO, STARTUP | (addr>>12)); 801027ad: c1 e9 0c shr $0xc,%ecx wrv[1] = addr >> 4; 801027b0: c1 e8 04 shr $0x4,%eax lapicw(ICRHI, apicid<<24); 801027b3: 89 da mov %ebx,%edx lapicw(ICRLO, STARTUP | (addr>>12)); 801027b5: 80 cd 06 or $0x6,%ch wrv[1] = addr >> 4; 801027b8: 66 a3 69 04 00 80 mov %ax,0x80000469 lapic[index] = value; 801027be: a1 7c 26 11 80 mov 0x8011267c,%eax 801027c3: 89 98 10 03 00 00 mov %ebx,0x310(%eax) lapic[ID]; // wait for write to finish, by reading 801027c9: 8b 58 20 mov 0x20(%eax),%ebx lapic[index] = value; 801027cc: c7 80 00 03 00 00 00 movl $0xc500,0x300(%eax) 801027d3: c5 00 00 lapic[ID]; // wait for write to finish, by reading 801027d6: 8b 58 20 mov 0x20(%eax),%ebx lapic[index] = value; 801027d9: c7 80 00 03 00 00 00 movl $0x8500,0x300(%eax) 801027e0: 85 00 00 lapic[ID]; // wait for write to finish, by reading 801027e3: 8b 58 20 mov 0x20(%eax),%ebx lapic[index] = value; 801027e6: 89 90 10 03 00 00 mov %edx,0x310(%eax) lapic[ID]; // wait for write to finish, by reading 801027ec: 8b 58 20 mov 0x20(%eax),%ebx lapic[index] = value; 801027ef: 89 88 00 03 00 00 mov %ecx,0x300(%eax) lapic[ID]; // wait for write to finish, by reading 801027f5: 8b 58 20 mov 0x20(%eax),%ebx lapic[index] = value; 801027f8: 89 90 10 03 00 00 mov %edx,0x310(%eax) lapic[ID]; // wait for write to finish, by reading 801027fe: 8b 50 20 mov 0x20(%eax),%edx lapic[index] = value; 80102801: 89 88 00 03 00 00 mov %ecx,0x300(%eax) lapic[ID]; // wait for write to finish, by reading 80102807: 8b 40 20 mov 0x20(%eax),%eax microdelay(200); } } 8010280a: 5b pop %ebx 8010280b: 5d pop %ebp 8010280c: c3 ret 8010280d: 8d 76 00 lea 0x0(%esi),%esi 80102810 <cmostime>: } // qemu seems to use 24-hour GWT and the values are BCD encoded void cmostime(struct rtcdate *r) { 80102810: 55 push %ebp 80102811: b8 0b 00 00 00 mov $0xb,%eax 80102816: ba 70 00 00 00 mov $0x70,%edx 8010281b: 89 e5 mov %esp,%ebp 8010281d: 57 push %edi 8010281e: 56 push %esi 8010281f: 53 push %ebx 80102820: 83 ec 4c sub $0x4c,%esp 80102823: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102824: ba 71 00 00 00 mov $0x71,%edx 80102829: ec in (%dx),%al 8010282a: 83 e0 04 and $0x4,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 8010282d: bb 70 00 00 00 mov $0x70,%ebx 80102832: 88 45 b3 mov %al,-0x4d(%ebp) 80102835: 8d 76 00 lea 0x0(%esi),%esi 80102838: 31 c0 xor %eax,%eax 8010283a: 89 da mov %ebx,%edx 8010283c: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010283d: b9 71 00 00 00 mov $0x71,%ecx 80102842: 89 ca mov %ecx,%edx 80102844: ec in (%dx),%al 80102845: 88 45 b7 mov %al,-0x49(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102848: 89 da mov %ebx,%edx 8010284a: b8 02 00 00 00 mov $0x2,%eax 8010284f: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102850: 89 ca mov %ecx,%edx 80102852: ec in (%dx),%al 80102853: 88 45 b6 mov %al,-0x4a(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102856: 89 da mov %ebx,%edx 80102858: b8 04 00 00 00 mov $0x4,%eax 8010285d: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010285e: 89 ca mov %ecx,%edx 80102860: ec in (%dx),%al 80102861: 88 45 b5 mov %al,-0x4b(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102864: 89 da mov %ebx,%edx 80102866: b8 07 00 00 00 mov $0x7,%eax 8010286b: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010286c: 89 ca mov %ecx,%edx 8010286e: ec in (%dx),%al 8010286f: 88 45 b4 mov %al,-0x4c(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102872: 89 da mov %ebx,%edx 80102874: b8 08 00 00 00 mov $0x8,%eax 80102879: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 8010287a: 89 ca mov %ecx,%edx 8010287c: ec in (%dx),%al 8010287d: 89 c7 mov %eax,%edi asm volatile("out %0,%1" : : "a" (data), "d" (port)); 8010287f: 89 da mov %ebx,%edx 80102881: b8 09 00 00 00 mov $0x9,%eax 80102886: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102887: 89 ca mov %ecx,%edx 80102889: ec in (%dx),%al 8010288a: 89 c6 mov %eax,%esi asm volatile("out %0,%1" : : "a" (data), "d" (port)); 8010288c: 89 da mov %ebx,%edx 8010288e: b8 0a 00 00 00 mov $0xa,%eax 80102893: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102894: 89 ca mov %ecx,%edx 80102896: ec in (%dx),%al bcd = (sb & (1 << 2)) == 0; // make sure CMOS doesn't modify time while we read it for(;;) { fill_rtcdate(&t1); if(cmos_read(CMOS_STATA) & CMOS_UIP) 80102897: 84 c0 test %al,%al 80102899: 78 9d js 80102838 <cmostime+0x28> return inb(CMOS_RETURN); 8010289b: 0f b6 45 b7 movzbl -0x49(%ebp),%eax 8010289f: 89 fa mov %edi,%edx 801028a1: 0f b6 fa movzbl %dl,%edi 801028a4: 89 f2 mov %esi,%edx 801028a6: 0f b6 f2 movzbl %dl,%esi 801028a9: 89 7d c8 mov %edi,-0x38(%ebp) asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801028ac: 89 da mov %ebx,%edx 801028ae: 89 75 cc mov %esi,-0x34(%ebp) 801028b1: 89 45 b8 mov %eax,-0x48(%ebp) 801028b4: 0f b6 45 b6 movzbl -0x4a(%ebp),%eax 801028b8: 89 45 bc mov %eax,-0x44(%ebp) 801028bb: 0f b6 45 b5 movzbl -0x4b(%ebp),%eax 801028bf: 89 45 c0 mov %eax,-0x40(%ebp) 801028c2: 0f b6 45 b4 movzbl -0x4c(%ebp),%eax 801028c6: 89 45 c4 mov %eax,-0x3c(%ebp) 801028c9: 31 c0 xor %eax,%eax 801028cb: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801028cc: 89 ca mov %ecx,%edx 801028ce: ec in (%dx),%al 801028cf: 0f b6 c0 movzbl %al,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801028d2: 89 da mov %ebx,%edx 801028d4: 89 45 d0 mov %eax,-0x30(%ebp) 801028d7: b8 02 00 00 00 mov $0x2,%eax 801028dc: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801028dd: 89 ca mov %ecx,%edx 801028df: ec in (%dx),%al 801028e0: 0f b6 c0 movzbl %al,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801028e3: 89 da mov %ebx,%edx 801028e5: 89 45 d4 mov %eax,-0x2c(%ebp) 801028e8: b8 04 00 00 00 mov $0x4,%eax 801028ed: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801028ee: 89 ca mov %ecx,%edx 801028f0: ec in (%dx),%al 801028f1: 0f b6 c0 movzbl %al,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 801028f4: 89 da mov %ebx,%edx 801028f6: 89 45 d8 mov %eax,-0x28(%ebp) 801028f9: b8 07 00 00 00 mov $0x7,%eax 801028fe: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 801028ff: 89 ca mov %ecx,%edx 80102901: ec in (%dx),%al 80102902: 0f b6 c0 movzbl %al,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102905: 89 da mov %ebx,%edx 80102907: 89 45 dc mov %eax,-0x24(%ebp) 8010290a: b8 08 00 00 00 mov $0x8,%eax 8010290f: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102910: 89 ca mov %ecx,%edx 80102912: ec in (%dx),%al 80102913: 0f b6 c0 movzbl %al,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80102916: 89 da mov %ebx,%edx 80102918: 89 45 e0 mov %eax,-0x20(%ebp) 8010291b: b8 09 00 00 00 mov $0x9,%eax 80102920: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80102921: 89 ca mov %ecx,%edx 80102923: ec in (%dx),%al 80102924: 0f b6 c0 movzbl %al,%eax continue; fill_rtcdate(&t2); if(memcmp(&t1, &t2, sizeof(t1)) == 0) 80102927: 83 ec 04 sub $0x4,%esp return inb(CMOS_RETURN); 8010292a: 89 45 e4 mov %eax,-0x1c(%ebp) if(memcmp(&t1, &t2, sizeof(t1)) == 0) 8010292d: 8d 45 d0 lea -0x30(%ebp),%eax 80102930: 6a 18 push $0x18 80102932: 50 push %eax 80102933: 8d 45 b8 lea -0x48(%ebp),%eax 80102936: 50 push %eax 80102937: e8 64 1b 00 00 call 801044a0 <memcmp> 8010293c: 83 c4 10 add $0x10,%esp 8010293f: 85 c0 test %eax,%eax 80102941: 0f 85 f1 fe ff ff jne 80102838 <cmostime+0x28> break; } // convert if(bcd) { 80102947: 80 7d b3 00 cmpb $0x0,-0x4d(%ebp) 8010294b: 75 78 jne 801029c5 <cmostime+0x1b5> #define CONV(x) (t1.x = ((t1.x >> 4) * 10) + (t1.x & 0xf)) CONV(second); 8010294d: 8b 45 b8 mov -0x48(%ebp),%eax 80102950: 89 c2 mov %eax,%edx 80102952: 83 e0 0f and $0xf,%eax 80102955: c1 ea 04 shr $0x4,%edx 80102958: 8d 14 92 lea (%edx,%edx,4),%edx 8010295b: 8d 04 50 lea (%eax,%edx,2),%eax 8010295e: 89 45 b8 mov %eax,-0x48(%ebp) CONV(minute); 80102961: 8b 45 bc mov -0x44(%ebp),%eax 80102964: 89 c2 mov %eax,%edx 80102966: 83 e0 0f and $0xf,%eax 80102969: c1 ea 04 shr $0x4,%edx 8010296c: 8d 14 92 lea (%edx,%edx,4),%edx 8010296f: 8d 04 50 lea (%eax,%edx,2),%eax 80102972: 89 45 bc mov %eax,-0x44(%ebp) CONV(hour ); 80102975: 8b 45 c0 mov -0x40(%ebp),%eax 80102978: 89 c2 mov %eax,%edx 8010297a: 83 e0 0f and $0xf,%eax 8010297d: c1 ea 04 shr $0x4,%edx 80102980: 8d 14 92 lea (%edx,%edx,4),%edx 80102983: 8d 04 50 lea (%eax,%edx,2),%eax 80102986: 89 45 c0 mov %eax,-0x40(%ebp) CONV(day ); 80102989: 8b 45 c4 mov -0x3c(%ebp),%eax 8010298c: 89 c2 mov %eax,%edx 8010298e: 83 e0 0f and $0xf,%eax 80102991: c1 ea 04 shr $0x4,%edx 80102994: 8d 14 92 lea (%edx,%edx,4),%edx 80102997: 8d 04 50 lea (%eax,%edx,2),%eax 8010299a: 89 45 c4 mov %eax,-0x3c(%ebp) CONV(month ); 8010299d: 8b 45 c8 mov -0x38(%ebp),%eax 801029a0: 89 c2 mov %eax,%edx 801029a2: 83 e0 0f and $0xf,%eax 801029a5: c1 ea 04 shr $0x4,%edx 801029a8: 8d 14 92 lea (%edx,%edx,4),%edx 801029ab: 8d 04 50 lea (%eax,%edx,2),%eax 801029ae: 89 45 c8 mov %eax,-0x38(%ebp) CONV(year ); 801029b1: 8b 45 cc mov -0x34(%ebp),%eax 801029b4: 89 c2 mov %eax,%edx 801029b6: 83 e0 0f and $0xf,%eax 801029b9: c1 ea 04 shr $0x4,%edx 801029bc: 8d 14 92 lea (%edx,%edx,4),%edx 801029bf: 8d 04 50 lea (%eax,%edx,2),%eax 801029c2: 89 45 cc mov %eax,-0x34(%ebp) #undef CONV } *r = t1; 801029c5: 8b 75 08 mov 0x8(%ebp),%esi 801029c8: 8b 45 b8 mov -0x48(%ebp),%eax 801029cb: 89 06 mov %eax,(%esi) 801029cd: 8b 45 bc mov -0x44(%ebp),%eax 801029d0: 89 46 04 mov %eax,0x4(%esi) 801029d3: 8b 45 c0 mov -0x40(%ebp),%eax 801029d6: 89 46 08 mov %eax,0x8(%esi) 801029d9: 8b 45 c4 mov -0x3c(%ebp),%eax 801029dc: 89 46 0c mov %eax,0xc(%esi) 801029df: 8b 45 c8 mov -0x38(%ebp),%eax 801029e2: 89 46 10 mov %eax,0x10(%esi) 801029e5: 8b 45 cc mov -0x34(%ebp),%eax 801029e8: 89 46 14 mov %eax,0x14(%esi) r->year += 2000; 801029eb: 81 46 14 d0 07 00 00 addl $0x7d0,0x14(%esi) } 801029f2: 8d 65 f4 lea -0xc(%ebp),%esp 801029f5: 5b pop %ebx 801029f6: 5e pop %esi 801029f7: 5f pop %edi 801029f8: 5d pop %ebp 801029f9: c3 ret 801029fa: 66 90 xchg %ax,%ax 801029fc: 66 90 xchg %ax,%ax 801029fe: 66 90 xchg %ax,%ax 80102a00 <install_trans>: static void install_trans(void) { int tail; for (tail = 0; tail < log.lh.n; tail++) { 80102a00: 8b 0d c8 26 11 80 mov 0x801126c8,%ecx 80102a06: 85 c9 test %ecx,%ecx 80102a08: 0f 8e 8a 00 00 00 jle 80102a98 <install_trans+0x98> { 80102a0e: 55 push %ebp 80102a0f: 89 e5 mov %esp,%ebp 80102a11: 57 push %edi 80102a12: 56 push %esi 80102a13: 53 push %ebx for (tail = 0; tail < log.lh.n; tail++) { 80102a14: 31 db xor %ebx,%ebx { 80102a16: 83 ec 0c sub $0xc,%esp 80102a19: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block 80102a20: a1 b4 26 11 80 mov 0x801126b4,%eax 80102a25: 83 ec 08 sub $0x8,%esp 80102a28: 01 d8 add %ebx,%eax 80102a2a: 83 c0 01 add $0x1,%eax 80102a2d: 50 push %eax 80102a2e: ff 35 c4 26 11 80 pushl 0x801126c4 80102a34: e8 97 d6 ff ff call 801000d0 <bread> 80102a39: 89 c7 mov %eax,%edi struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst 80102a3b: 58 pop %eax 80102a3c: 5a pop %edx 80102a3d: ff 34 9d cc 26 11 80 pushl -0x7feed934(,%ebx,4) 80102a44: ff 35 c4 26 11 80 pushl 0x801126c4 for (tail = 0; tail < log.lh.n; tail++) { 80102a4a: 83 c3 01 add $0x1,%ebx struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst 80102a4d: e8 7e d6 ff ff call 801000d0 <bread> 80102a52: 89 c6 mov %eax,%esi memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst 80102a54: 8d 47 5c lea 0x5c(%edi),%eax 80102a57: 83 c4 0c add $0xc,%esp 80102a5a: 68 00 02 00 00 push $0x200 80102a5f: 50 push %eax 80102a60: 8d 46 5c lea 0x5c(%esi),%eax 80102a63: 50 push %eax 80102a64: e8 97 1a 00 00 call 80104500 <memmove> bwrite(dbuf); // write dst to disk 80102a69: 89 34 24 mov %esi,(%esp) 80102a6c: e8 2f d7 ff ff call 801001a0 <bwrite> brelse(lbuf); 80102a71: 89 3c 24 mov %edi,(%esp) 80102a74: e8 67 d7 ff ff call 801001e0 <brelse> brelse(dbuf); 80102a79: 89 34 24 mov %esi,(%esp) 80102a7c: e8 5f d7 ff ff call 801001e0 <brelse> for (tail = 0; tail < log.lh.n; tail++) { 80102a81: 83 c4 10 add $0x10,%esp 80102a84: 39 1d c8 26 11 80 cmp %ebx,0x801126c8 80102a8a: 7f 94 jg 80102a20 <install_trans+0x20> } } 80102a8c: 8d 65 f4 lea -0xc(%ebp),%esp 80102a8f: 5b pop %ebx 80102a90: 5e pop %esi 80102a91: 5f pop %edi 80102a92: 5d pop %ebp 80102a93: c3 ret 80102a94: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102a98: f3 c3 repz ret 80102a9a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80102aa0 <write_head>: // Write in-memory log header to disk. // This is the true point at which the // current transaction commits. static void write_head(void) { 80102aa0: 55 push %ebp 80102aa1: 89 e5 mov %esp,%ebp 80102aa3: 56 push %esi 80102aa4: 53 push %ebx struct buf *buf = bread(log.dev, log.start); 80102aa5: 83 ec 08 sub $0x8,%esp 80102aa8: ff 35 b4 26 11 80 pushl 0x801126b4 80102aae: ff 35 c4 26 11 80 pushl 0x801126c4 80102ab4: e8 17 d6 ff ff call 801000d0 <bread> struct logheader *hb = (struct logheader *) (buf->data); int i; hb->n = log.lh.n; 80102ab9: 8b 1d c8 26 11 80 mov 0x801126c8,%ebx for (i = 0; i < log.lh.n; i++) { 80102abf: 83 c4 10 add $0x10,%esp struct buf *buf = bread(log.dev, log.start); 80102ac2: 89 c6 mov %eax,%esi for (i = 0; i < log.lh.n; i++) { 80102ac4: 85 db test %ebx,%ebx hb->n = log.lh.n; 80102ac6: 89 58 5c mov %ebx,0x5c(%eax) for (i = 0; i < log.lh.n; i++) { 80102ac9: 7e 16 jle 80102ae1 <write_head+0x41> 80102acb: c1 e3 02 shl $0x2,%ebx 80102ace: 31 d2 xor %edx,%edx hb->block[i] = log.lh.block[i]; 80102ad0: 8b 8a cc 26 11 80 mov -0x7feed934(%edx),%ecx 80102ad6: 89 4c 16 60 mov %ecx,0x60(%esi,%edx,1) 80102ada: 83 c2 04 add $0x4,%edx for (i = 0; i < log.lh.n; i++) { 80102add: 39 da cmp %ebx,%edx 80102adf: 75 ef jne 80102ad0 <write_head+0x30> } bwrite(buf); 80102ae1: 83 ec 0c sub $0xc,%esp 80102ae4: 56 push %esi 80102ae5: e8 b6 d6 ff ff call 801001a0 <bwrite> brelse(buf); 80102aea: 89 34 24 mov %esi,(%esp) 80102aed: e8 ee d6 ff ff call 801001e0 <brelse> } 80102af2: 83 c4 10 add $0x10,%esp 80102af5: 8d 65 f8 lea -0x8(%ebp),%esp 80102af8: 5b pop %ebx 80102af9: 5e pop %esi 80102afa: 5d pop %ebp 80102afb: c3 ret 80102afc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80102b00 <initlog>: { 80102b00: 55 push %ebp 80102b01: 89 e5 mov %esp,%ebp 80102b03: 53 push %ebx 80102b04: 83 ec 2c sub $0x2c,%esp 80102b07: 8b 5d 08 mov 0x8(%ebp),%ebx initlock(&log.lock, "log"); 80102b0a: 68 60 73 10 80 push $0x80107360 80102b0f: 68 80 26 11 80 push $0x80112680 80102b14: e8 e7 16 00 00 call 80104200 <initlock> readsb(dev, &sb); 80102b19: 58 pop %eax 80102b1a: 8d 45 dc lea -0x24(%ebp),%eax 80102b1d: 5a pop %edx 80102b1e: 50 push %eax 80102b1f: 53 push %ebx 80102b20: e8 1b e9 ff ff call 80101440 <readsb> log.size = sb.nlog; 80102b25: 8b 55 e8 mov -0x18(%ebp),%edx log.start = sb.logstart; 80102b28: 8b 45 ec mov -0x14(%ebp),%eax struct buf *buf = bread(log.dev, log.start); 80102b2b: 59 pop %ecx log.dev = dev; 80102b2c: 89 1d c4 26 11 80 mov %ebx,0x801126c4 log.size = sb.nlog; 80102b32: 89 15 b8 26 11 80 mov %edx,0x801126b8 log.start = sb.logstart; 80102b38: a3 b4 26 11 80 mov %eax,0x801126b4 struct buf *buf = bread(log.dev, log.start); 80102b3d: 5a pop %edx 80102b3e: 50 push %eax 80102b3f: 53 push %ebx 80102b40: e8 8b d5 ff ff call 801000d0 <bread> log.lh.n = lh->n; 80102b45: 8b 58 5c mov 0x5c(%eax),%ebx for (i = 0; i < log.lh.n; i++) { 80102b48: 83 c4 10 add $0x10,%esp 80102b4b: 85 db test %ebx,%ebx log.lh.n = lh->n; 80102b4d: 89 1d c8 26 11 80 mov %ebx,0x801126c8 for (i = 0; i < log.lh.n; i++) { 80102b53: 7e 1c jle 80102b71 <initlog+0x71> 80102b55: c1 e3 02 shl $0x2,%ebx 80102b58: 31 d2 xor %edx,%edx 80102b5a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi log.lh.block[i] = lh->block[i]; 80102b60: 8b 4c 10 60 mov 0x60(%eax,%edx,1),%ecx 80102b64: 83 c2 04 add $0x4,%edx 80102b67: 89 8a c8 26 11 80 mov %ecx,-0x7feed938(%edx) for (i = 0; i < log.lh.n; i++) { 80102b6d: 39 d3 cmp %edx,%ebx 80102b6f: 75 ef jne 80102b60 <initlog+0x60> brelse(buf); 80102b71: 83 ec 0c sub $0xc,%esp 80102b74: 50 push %eax 80102b75: e8 66 d6 ff ff call 801001e0 <brelse> static void recover_from_log(void) { read_head(); install_trans(); // if committed, copy from log to disk 80102b7a: e8 81 fe ff ff call 80102a00 <install_trans> log.lh.n = 0; 80102b7f: c7 05 c8 26 11 80 00 movl $0x0,0x801126c8 80102b86: 00 00 00 write_head(); // clear the log 80102b89: e8 12 ff ff ff call 80102aa0 <write_head> } 80102b8e: 83 c4 10 add $0x10,%esp 80102b91: 8b 5d fc mov -0x4(%ebp),%ebx 80102b94: c9 leave 80102b95: c3 ret 80102b96: 8d 76 00 lea 0x0(%esi),%esi 80102b99: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102ba0 <begin_op>: } // called at the start of each FS system call. void begin_op(void) { 80102ba0: 55 push %ebp 80102ba1: 89 e5 mov %esp,%ebp 80102ba3: 83 ec 14 sub $0x14,%esp acquire(&log.lock); 80102ba6: 68 80 26 11 80 push $0x80112680 80102bab: e8 90 17 00 00 call 80104340 <acquire> 80102bb0: 83 c4 10 add $0x10,%esp 80102bb3: eb 18 jmp 80102bcd <begin_op+0x2d> 80102bb5: 8d 76 00 lea 0x0(%esi),%esi while(1){ if(log.committing){ sleep(&log, &log.lock); 80102bb8: 83 ec 08 sub $0x8,%esp 80102bbb: 68 80 26 11 80 push $0x80112680 80102bc0: 68 80 26 11 80 push $0x80112680 80102bc5: e8 b6 11 00 00 call 80103d80 <sleep> 80102bca: 83 c4 10 add $0x10,%esp if(log.committing){ 80102bcd: a1 c0 26 11 80 mov 0x801126c0,%eax 80102bd2: 85 c0 test %eax,%eax 80102bd4: 75 e2 jne 80102bb8 <begin_op+0x18> } else if(log.lh.n + (log.outstanding+1)*MAXOPBLOCKS > LOGSIZE){ 80102bd6: a1 bc 26 11 80 mov 0x801126bc,%eax 80102bdb: 8b 15 c8 26 11 80 mov 0x801126c8,%edx 80102be1: 83 c0 01 add $0x1,%eax 80102be4: 8d 0c 80 lea (%eax,%eax,4),%ecx 80102be7: 8d 14 4a lea (%edx,%ecx,2),%edx 80102bea: 83 fa 1e cmp $0x1e,%edx 80102bed: 7f c9 jg 80102bb8 <begin_op+0x18> // this op might exhaust log space; wait for commit. sleep(&log, &log.lock); } else { log.outstanding += 1; release(&log.lock); 80102bef: 83 ec 0c sub $0xc,%esp log.outstanding += 1; 80102bf2: a3 bc 26 11 80 mov %eax,0x801126bc release(&log.lock); 80102bf7: 68 80 26 11 80 push $0x80112680 80102bfc: e8 ff 17 00 00 call 80104400 <release> break; } } } 80102c01: 83 c4 10 add $0x10,%esp 80102c04: c9 leave 80102c05: c3 ret 80102c06: 8d 76 00 lea 0x0(%esi),%esi 80102c09: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80102c10 <end_op>: // called at the end of each FS system call. // commits if this was the last outstanding operation. void end_op(void) { 80102c10: 55 push %ebp 80102c11: 89 e5 mov %esp,%ebp 80102c13: 57 push %edi 80102c14: 56 push %esi 80102c15: 53 push %ebx 80102c16: 83 ec 18 sub $0x18,%esp int do_commit = 0; acquire(&log.lock); 80102c19: 68 80 26 11 80 push $0x80112680 80102c1e: e8 1d 17 00 00 call 80104340 <acquire> log.outstanding -= 1; 80102c23: a1 bc 26 11 80 mov 0x801126bc,%eax if(log.committing) 80102c28: 8b 35 c0 26 11 80 mov 0x801126c0,%esi 80102c2e: 83 c4 10 add $0x10,%esp log.outstanding -= 1; 80102c31: 8d 58 ff lea -0x1(%eax),%ebx if(log.committing) 80102c34: 85 f6 test %esi,%esi log.outstanding -= 1; 80102c36: 89 1d bc 26 11 80 mov %ebx,0x801126bc if(log.committing) 80102c3c: 0f 85 1a 01 00 00 jne 80102d5c <end_op+0x14c> panic("log.committing"); if(log.outstanding == 0){ 80102c42: 85 db test %ebx,%ebx 80102c44: 0f 85 ee 00 00 00 jne 80102d38 <end_op+0x128> // begin_op() may be waiting for log space, // and decrementing log.outstanding has decreased // the amount of reserved space. wakeup(&log); } release(&log.lock); 80102c4a: 83 ec 0c sub $0xc,%esp log.committing = 1; 80102c4d: c7 05 c0 26 11 80 01 movl $0x1,0x801126c0 80102c54: 00 00 00 release(&log.lock); 80102c57: 68 80 26 11 80 push $0x80112680 80102c5c: e8 9f 17 00 00 call 80104400 <release> } static void commit() { if (log.lh.n > 0) { 80102c61: 8b 0d c8 26 11 80 mov 0x801126c8,%ecx 80102c67: 83 c4 10 add $0x10,%esp 80102c6a: 85 c9 test %ecx,%ecx 80102c6c: 0f 8e 85 00 00 00 jle 80102cf7 <end_op+0xe7> struct buf *to = bread(log.dev, log.start+tail+1); // log block 80102c72: a1 b4 26 11 80 mov 0x801126b4,%eax 80102c77: 83 ec 08 sub $0x8,%esp 80102c7a: 01 d8 add %ebx,%eax 80102c7c: 83 c0 01 add $0x1,%eax 80102c7f: 50 push %eax 80102c80: ff 35 c4 26 11 80 pushl 0x801126c4 80102c86: e8 45 d4 ff ff call 801000d0 <bread> 80102c8b: 89 c6 mov %eax,%esi struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block 80102c8d: 58 pop %eax 80102c8e: 5a pop %edx 80102c8f: ff 34 9d cc 26 11 80 pushl -0x7feed934(,%ebx,4) 80102c96: ff 35 c4 26 11 80 pushl 0x801126c4 for (tail = 0; tail < log.lh.n; tail++) { 80102c9c: 83 c3 01 add $0x1,%ebx struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block 80102c9f: e8 2c d4 ff ff call 801000d0 <bread> 80102ca4: 89 c7 mov %eax,%edi memmove(to->data, from->data, BSIZE); 80102ca6: 8d 40 5c lea 0x5c(%eax),%eax 80102ca9: 83 c4 0c add $0xc,%esp 80102cac: 68 00 02 00 00 push $0x200 80102cb1: 50 push %eax 80102cb2: 8d 46 5c lea 0x5c(%esi),%eax 80102cb5: 50 push %eax 80102cb6: e8 45 18 00 00 call 80104500 <memmove> bwrite(to); // write the log 80102cbb: 89 34 24 mov %esi,(%esp) 80102cbe: e8 dd d4 ff ff call 801001a0 <bwrite> brelse(from); 80102cc3: 89 3c 24 mov %edi,(%esp) 80102cc6: e8 15 d5 ff ff call 801001e0 <brelse> brelse(to); 80102ccb: 89 34 24 mov %esi,(%esp) 80102cce: e8 0d d5 ff ff call 801001e0 <brelse> for (tail = 0; tail < log.lh.n; tail++) { 80102cd3: 83 c4 10 add $0x10,%esp 80102cd6: 3b 1d c8 26 11 80 cmp 0x801126c8,%ebx 80102cdc: 7c 94 jl 80102c72 <end_op+0x62> write_log(); // Write modified blocks from cache to log write_head(); // Write header to disk -- the real commit 80102cde: e8 bd fd ff ff call 80102aa0 <write_head> install_trans(); // Now install writes to home locations 80102ce3: e8 18 fd ff ff call 80102a00 <install_trans> log.lh.n = 0; 80102ce8: c7 05 c8 26 11 80 00 movl $0x0,0x801126c8 80102cef: 00 00 00 write_head(); // Erase the transaction from the log 80102cf2: e8 a9 fd ff ff call 80102aa0 <write_head> acquire(&log.lock); 80102cf7: 83 ec 0c sub $0xc,%esp 80102cfa: 68 80 26 11 80 push $0x80112680 80102cff: e8 3c 16 00 00 call 80104340 <acquire> wakeup(&log); 80102d04: c7 04 24 80 26 11 80 movl $0x80112680,(%esp) log.committing = 0; 80102d0b: c7 05 c0 26 11 80 00 movl $0x0,0x801126c0 80102d12: 00 00 00 wakeup(&log); 80102d15: e8 16 12 00 00 call 80103f30 <wakeup> release(&log.lock); 80102d1a: c7 04 24 80 26 11 80 movl $0x80112680,(%esp) 80102d21: e8 da 16 00 00 call 80104400 <release> 80102d26: 83 c4 10 add $0x10,%esp } 80102d29: 8d 65 f4 lea -0xc(%ebp),%esp 80102d2c: 5b pop %ebx 80102d2d: 5e pop %esi 80102d2e: 5f pop %edi 80102d2f: 5d pop %ebp 80102d30: c3 ret 80102d31: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi wakeup(&log); 80102d38: 83 ec 0c sub $0xc,%esp 80102d3b: 68 80 26 11 80 push $0x80112680 80102d40: e8 eb 11 00 00 call 80103f30 <wakeup> release(&log.lock); 80102d45: c7 04 24 80 26 11 80 movl $0x80112680,(%esp) 80102d4c: e8 af 16 00 00 call 80104400 <release> 80102d51: 83 c4 10 add $0x10,%esp } 80102d54: 8d 65 f4 lea -0xc(%ebp),%esp 80102d57: 5b pop %ebx 80102d58: 5e pop %esi 80102d59: 5f pop %edi 80102d5a: 5d pop %ebp 80102d5b: c3 ret panic("log.committing"); 80102d5c: 83 ec 0c sub $0xc,%esp 80102d5f: 68 64 73 10 80 push $0x80107364 80102d64: e8 27 d6 ff ff call 80100390 <panic> 80102d69: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80102d70 <log_write>: // modify bp->data[] // log_write(bp) // brelse(bp) void log_write(struct buf *b) { 80102d70: 55 push %ebp 80102d71: 89 e5 mov %esp,%ebp 80102d73: 53 push %ebx 80102d74: 83 ec 04 sub $0x4,%esp int i; if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1) 80102d77: 8b 15 c8 26 11 80 mov 0x801126c8,%edx { 80102d7d: 8b 5d 08 mov 0x8(%ebp),%ebx if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1) 80102d80: 83 fa 1d cmp $0x1d,%edx 80102d83: 0f 8f 9d 00 00 00 jg 80102e26 <log_write+0xb6> 80102d89: a1 b8 26 11 80 mov 0x801126b8,%eax 80102d8e: 83 e8 01 sub $0x1,%eax 80102d91: 39 c2 cmp %eax,%edx 80102d93: 0f 8d 8d 00 00 00 jge 80102e26 <log_write+0xb6> panic("too big a transaction"); if (log.outstanding < 1) 80102d99: a1 bc 26 11 80 mov 0x801126bc,%eax 80102d9e: 85 c0 test %eax,%eax 80102da0: 0f 8e 8d 00 00 00 jle 80102e33 <log_write+0xc3> panic("log_write outside of trans"); acquire(&log.lock); 80102da6: 83 ec 0c sub $0xc,%esp 80102da9: 68 80 26 11 80 push $0x80112680 80102dae: e8 8d 15 00 00 call 80104340 <acquire> for (i = 0; i < log.lh.n; i++) { 80102db3: 8b 0d c8 26 11 80 mov 0x801126c8,%ecx 80102db9: 83 c4 10 add $0x10,%esp 80102dbc: 83 f9 00 cmp $0x0,%ecx 80102dbf: 7e 57 jle 80102e18 <log_write+0xa8> if (log.lh.block[i] == b->blockno) // log absorbtion 80102dc1: 8b 53 08 mov 0x8(%ebx),%edx for (i = 0; i < log.lh.n; i++) { 80102dc4: 31 c0 xor %eax,%eax if (log.lh.block[i] == b->blockno) // log absorbtion 80102dc6: 3b 15 cc 26 11 80 cmp 0x801126cc,%edx 80102dcc: 75 0b jne 80102dd9 <log_write+0x69> 80102dce: eb 38 jmp 80102e08 <log_write+0x98> 80102dd0: 39 14 85 cc 26 11 80 cmp %edx,-0x7feed934(,%eax,4) 80102dd7: 74 2f je 80102e08 <log_write+0x98> for (i = 0; i < log.lh.n; i++) { 80102dd9: 83 c0 01 add $0x1,%eax 80102ddc: 39 c1 cmp %eax,%ecx 80102dde: 75 f0 jne 80102dd0 <log_write+0x60> break; } log.lh.block[i] = b->blockno; 80102de0: 89 14 85 cc 26 11 80 mov %edx,-0x7feed934(,%eax,4) if (i == log.lh.n) log.lh.n++; 80102de7: 83 c0 01 add $0x1,%eax 80102dea: a3 c8 26 11 80 mov %eax,0x801126c8 b->flags |= B_DIRTY; // prevent eviction 80102def: 83 0b 04 orl $0x4,(%ebx) release(&log.lock); 80102df2: c7 45 08 80 26 11 80 movl $0x80112680,0x8(%ebp) } 80102df9: 8b 5d fc mov -0x4(%ebp),%ebx 80102dfc: c9 leave release(&log.lock); 80102dfd: e9 fe 15 00 00 jmp 80104400 <release> 80102e02: 8d b6 00 00 00 00 lea 0x0(%esi),%esi log.lh.block[i] = b->blockno; 80102e08: 89 14 85 cc 26 11 80 mov %edx,-0x7feed934(,%eax,4) 80102e0f: eb de jmp 80102def <log_write+0x7f> 80102e11: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80102e18: 8b 43 08 mov 0x8(%ebx),%eax 80102e1b: a3 cc 26 11 80 mov %eax,0x801126cc if (i == log.lh.n) 80102e20: 75 cd jne 80102def <log_write+0x7f> 80102e22: 31 c0 xor %eax,%eax 80102e24: eb c1 jmp 80102de7 <log_write+0x77> panic("too big a transaction"); 80102e26: 83 ec 0c sub $0xc,%esp 80102e29: 68 73 73 10 80 push $0x80107373 80102e2e: e8 5d d5 ff ff call 80100390 <panic> panic("log_write outside of trans"); 80102e33: 83 ec 0c sub $0xc,%esp 80102e36: 68 89 73 10 80 push $0x80107389 80102e3b: e8 50 d5 ff ff call 80100390 <panic> 80102e40 <mpmain>: } // Common CPU setup code. static void mpmain(void) { 80102e40: 55 push %ebp 80102e41: 89 e5 mov %esp,%ebp 80102e43: 53 push %ebx 80102e44: 83 ec 04 sub $0x4,%esp cprintf("cpu%d: starting %d\n", cpuid(), cpuid()); 80102e47: e8 74 09 00 00 call 801037c0 <cpuid> 80102e4c: 89 c3 mov %eax,%ebx 80102e4e: e8 6d 09 00 00 call 801037c0 <cpuid> 80102e53: 83 ec 04 sub $0x4,%esp 80102e56: 53 push %ebx 80102e57: 50 push %eax 80102e58: 68 a4 73 10 80 push $0x801073a4 80102e5d: e8 fe d7 ff ff call 80100660 <cprintf> idtinit(); // load idt register 80102e62: e8 69 28 00 00 call 801056d0 <idtinit> xchg(&(mycpu()->started), 1); // tell startothers() we're up 80102e67: e8 d4 08 00 00 call 80103740 <mycpu> 80102e6c: 89 c2 mov %eax,%edx xchg(volatile uint *addr, uint newval) { uint result; // The + in "+m" denotes a read-modify-write operand. asm volatile("lock; xchgl %0, %1" : 80102e6e: b8 01 00 00 00 mov $0x1,%eax 80102e73: f0 87 82 a0 00 00 00 lock xchg %eax,0xa0(%edx) scheduler(); // start running processes 80102e7a: e8 21 0c 00 00 call 80103aa0 <scheduler> 80102e7f: 90 nop 80102e80 <mpenter>: { 80102e80: 55 push %ebp 80102e81: 89 e5 mov %esp,%ebp 80102e83: 83 ec 08 sub $0x8,%esp switchkvm(); 80102e86: e8 35 39 00 00 call 801067c0 <switchkvm> seginit(); 80102e8b: e8 a0 38 00 00 call 80106730 <seginit> lapicinit(); 80102e90: e8 9b f7 ff ff call 80102630 <lapicinit> mpmain(); 80102e95: e8 a6 ff ff ff call 80102e40 <mpmain> 80102e9a: 66 90 xchg %ax,%ax 80102e9c: 66 90 xchg %ax,%ax 80102e9e: 66 90 xchg %ax,%ax 80102ea0 <main>: { 80102ea0: 8d 4c 24 04 lea 0x4(%esp),%ecx 80102ea4: 83 e4 f0 and $0xfffffff0,%esp 80102ea7: ff 71 fc pushl -0x4(%ecx) 80102eaa: 55 push %ebp 80102eab: 89 e5 mov %esp,%ebp 80102ead: 53 push %ebx 80102eae: 51 push %ecx kinit1(end, P2V(4*1024*1024)); // phys page allocator 80102eaf: 83 ec 08 sub $0x8,%esp 80102eb2: 68 00 00 40 80 push $0x80400000 80102eb7: 68 a8 54 11 80 push $0x801154a8 80102ebc: e8 2f f5 ff ff call 801023f0 <kinit1> kvmalloc(); // kernel page table 80102ec1: e8 ca 3d 00 00 call 80106c90 <kvmalloc> mpinit(); // detect other processors 80102ec6: e8 75 01 00 00 call 80103040 <mpinit> lapicinit(); // interrupt controller 80102ecb: e8 60 f7 ff ff call 80102630 <lapicinit> seginit(); // segment descriptors 80102ed0: e8 5b 38 00 00 call 80106730 <seginit> picinit(); // disable pic 80102ed5: e8 46 03 00 00 call 80103220 <picinit> ioapicinit(); // another interrupt controller 80102eda: e8 41 f3 ff ff call 80102220 <ioapicinit> consoleinit(); // console hardware 80102edf: e8 dc da ff ff call 801009c0 <consoleinit> uartinit(); // serial port 80102ee4: e8 17 2b 00 00 call 80105a00 <uartinit> pinit(); // process table 80102ee9: e8 32 08 00 00 call 80103720 <pinit> tvinit(); // trap vectors 80102eee: e8 5d 27 00 00 call 80105650 <tvinit> binit(); // buffer cache 80102ef3: e8 48 d1 ff ff call 80100040 <binit> fileinit(); // file table 80102ef8: e8 63 de ff ff call 80100d60 <fileinit> ideinit(); // disk 80102efd: e8 fe f0 ff ff call 80102000 <ideinit> // Write entry code to unused memory at 0x7000. // The linker has placed the image of entryother.S in // _binary_entryother_start. code = P2V(0x7000); memmove(code, _binary_entryother_start, (uint)_binary_entryother_size); 80102f02: 83 c4 0c add $0xc,%esp 80102f05: 68 8a 00 00 00 push $0x8a 80102f0a: 68 8c a4 10 80 push $0x8010a48c 80102f0f: 68 00 70 00 80 push $0x80007000 80102f14: e8 e7 15 00 00 call 80104500 <memmove> for(c = cpus; c < cpus+ncpu; c++){ 80102f19: 69 05 00 2d 11 80 b0 imul $0xb0,0x80112d00,%eax 80102f20: 00 00 00 80102f23: 83 c4 10 add $0x10,%esp 80102f26: 05 80 27 11 80 add $0x80112780,%eax 80102f2b: 3d 80 27 11 80 cmp $0x80112780,%eax 80102f30: 76 71 jbe 80102fa3 <main+0x103> 80102f32: bb 80 27 11 80 mov $0x80112780,%ebx 80102f37: 89 f6 mov %esi,%esi 80102f39: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi if(c == mycpu()) // We've started already. 80102f40: e8 fb 07 00 00 call 80103740 <mycpu> 80102f45: 39 d8 cmp %ebx,%eax 80102f47: 74 41 je 80102f8a <main+0xea> continue; // Tell entryother.S what stack to use, where to enter, and what // pgdir to use. We cannot use kpgdir yet, because the AP processor // is running in low memory, so we use entrypgdir for the APs too. stack = kalloc(); 80102f49: e8 72 f5 ff ff call 801024c0 <kalloc> *(void**)(code-4) = stack + KSTACKSIZE; 80102f4e: 05 00 10 00 00 add $0x1000,%eax *(void(**)(void))(code-8) = mpenter; 80102f53: c7 05 f8 6f 00 80 80 movl $0x80102e80,0x80006ff8 80102f5a: 2e 10 80 *(int**)(code-12) = (void *) V2P(entrypgdir); 80102f5d: c7 05 f4 6f 00 80 00 movl $0x109000,0x80006ff4 80102f64: 90 10 00 *(void**)(code-4) = stack + KSTACKSIZE; 80102f67: a3 fc 6f 00 80 mov %eax,0x80006ffc lapicstartap(c->apicid, V2P(code)); 80102f6c: 0f b6 03 movzbl (%ebx),%eax 80102f6f: 83 ec 08 sub $0x8,%esp 80102f72: 68 00 70 00 00 push $0x7000 80102f77: 50 push %eax 80102f78: e8 03 f8 ff ff call 80102780 <lapicstartap> 80102f7d: 83 c4 10 add $0x10,%esp // wait for cpu to finish mpmain() while(c->started == 0) 80102f80: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax 80102f86: 85 c0 test %eax,%eax 80102f88: 74 f6 je 80102f80 <main+0xe0> for(c = cpus; c < cpus+ncpu; c++){ 80102f8a: 69 05 00 2d 11 80 b0 imul $0xb0,0x80112d00,%eax 80102f91: 00 00 00 80102f94: 81 c3 b0 00 00 00 add $0xb0,%ebx 80102f9a: 05 80 27 11 80 add $0x80112780,%eax 80102f9f: 39 c3 cmp %eax,%ebx 80102fa1: 72 9d jb 80102f40 <main+0xa0> kinit2(P2V(4*1024*1024), P2V(PHYSTOP)); // must come after startothers() 80102fa3: 83 ec 08 sub $0x8,%esp 80102fa6: 68 00 00 00 8e push $0x8e000000 80102fab: 68 00 00 40 80 push $0x80400000 80102fb0: e8 ab f4 ff ff call 80102460 <kinit2> userinit(); // first user process 80102fb5: e8 56 08 00 00 call 80103810 <userinit> mpmain(); // finish this processor's setup 80102fba: e8 81 fe ff ff call 80102e40 <mpmain> 80102fbf: 90 nop 80102fc0 <mpsearch1>: } // Look for an MP structure in the len bytes at addr. static struct mp* mpsearch1(uint a, int len) { 80102fc0: 55 push %ebp 80102fc1: 89 e5 mov %esp,%ebp 80102fc3: 57 push %edi 80102fc4: 56 push %esi uchar *e, *p, *addr; addr = P2V(a); 80102fc5: 8d b0 00 00 00 80 lea -0x80000000(%eax),%esi { 80102fcb: 53 push %ebx e = addr+len; 80102fcc: 8d 1c 16 lea (%esi,%edx,1),%ebx { 80102fcf: 83 ec 0c sub $0xc,%esp for(p = addr; p < e; p += sizeof(struct mp)) 80102fd2: 39 de cmp %ebx,%esi 80102fd4: 72 10 jb 80102fe6 <mpsearch1+0x26> 80102fd6: eb 50 jmp 80103028 <mpsearch1+0x68> 80102fd8: 90 nop 80102fd9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80102fe0: 39 fb cmp %edi,%ebx 80102fe2: 89 fe mov %edi,%esi 80102fe4: 76 42 jbe 80103028 <mpsearch1+0x68> if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0) 80102fe6: 83 ec 04 sub $0x4,%esp 80102fe9: 8d 7e 10 lea 0x10(%esi),%edi 80102fec: 6a 04 push $0x4 80102fee: 68 b8 73 10 80 push $0x801073b8 80102ff3: 56 push %esi 80102ff4: e8 a7 14 00 00 call 801044a0 <memcmp> 80102ff9: 83 c4 10 add $0x10,%esp 80102ffc: 85 c0 test %eax,%eax 80102ffe: 75 e0 jne 80102fe0 <mpsearch1+0x20> 80103000: 89 f1 mov %esi,%ecx 80103002: 8d b6 00 00 00 00 lea 0x0(%esi),%esi sum += addr[i]; 80103008: 0f b6 11 movzbl (%ecx),%edx 8010300b: 83 c1 01 add $0x1,%ecx 8010300e: 01 d0 add %edx,%eax for(i=0; i<len; i++) 80103010: 39 f9 cmp %edi,%ecx 80103012: 75 f4 jne 80103008 <mpsearch1+0x48> if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0) 80103014: 84 c0 test %al,%al 80103016: 75 c8 jne 80102fe0 <mpsearch1+0x20> return (struct mp*)p; return 0; } 80103018: 8d 65 f4 lea -0xc(%ebp),%esp 8010301b: 89 f0 mov %esi,%eax 8010301d: 5b pop %ebx 8010301e: 5e pop %esi 8010301f: 5f pop %edi 80103020: 5d pop %ebp 80103021: c3 ret 80103022: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80103028: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 8010302b: 31 f6 xor %esi,%esi } 8010302d: 89 f0 mov %esi,%eax 8010302f: 5b pop %ebx 80103030: 5e pop %esi 80103031: 5f pop %edi 80103032: 5d pop %ebp 80103033: c3 ret 80103034: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8010303a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80103040 <mpinit>: return conf; } void mpinit(void) { 80103040: 55 push %ebp 80103041: 89 e5 mov %esp,%ebp 80103043: 57 push %edi 80103044: 56 push %esi 80103045: 53 push %ebx 80103046: 83 ec 1c sub $0x1c,%esp if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4)){ 80103049: 0f b6 05 0f 04 00 80 movzbl 0x8000040f,%eax 80103050: 0f b6 15 0e 04 00 80 movzbl 0x8000040e,%edx 80103057: c1 e0 08 shl $0x8,%eax 8010305a: 09 d0 or %edx,%eax 8010305c: c1 e0 04 shl $0x4,%eax 8010305f: 85 c0 test %eax,%eax 80103061: 75 1b jne 8010307e <mpinit+0x3e> p = ((bda[0x14]<<8)|bda[0x13])*1024; 80103063: 0f b6 05 14 04 00 80 movzbl 0x80000414,%eax 8010306a: 0f b6 15 13 04 00 80 movzbl 0x80000413,%edx 80103071: c1 e0 08 shl $0x8,%eax 80103074: 09 d0 or %edx,%eax 80103076: c1 e0 0a shl $0xa,%eax if((mp = mpsearch1(p-1024, 1024))) 80103079: 2d 00 04 00 00 sub $0x400,%eax if((mp = mpsearch1(p, 1024))) 8010307e: ba 00 04 00 00 mov $0x400,%edx 80103083: e8 38 ff ff ff call 80102fc0 <mpsearch1> 80103088: 85 c0 test %eax,%eax 8010308a: 89 45 e4 mov %eax,-0x1c(%ebp) 8010308d: 0f 84 3d 01 00 00 je 801031d0 <mpinit+0x190> if((mp = mpsearch()) == 0 || mp->physaddr == 0) 80103093: 8b 45 e4 mov -0x1c(%ebp),%eax 80103096: 8b 58 04 mov 0x4(%eax),%ebx 80103099: 85 db test %ebx,%ebx 8010309b: 0f 84 4f 01 00 00 je 801031f0 <mpinit+0x1b0> conf = (struct mpconf*) P2V((uint) mp->physaddr); 801030a1: 8d b3 00 00 00 80 lea -0x80000000(%ebx),%esi if(memcmp(conf, "PCMP", 4) != 0) 801030a7: 83 ec 04 sub $0x4,%esp 801030aa: 6a 04 push $0x4 801030ac: 68 d5 73 10 80 push $0x801073d5 801030b1: 56 push %esi 801030b2: e8 e9 13 00 00 call 801044a0 <memcmp> 801030b7: 83 c4 10 add $0x10,%esp 801030ba: 85 c0 test %eax,%eax 801030bc: 0f 85 2e 01 00 00 jne 801031f0 <mpinit+0x1b0> if(conf->version != 1 && conf->version != 4) 801030c2: 0f b6 83 06 00 00 80 movzbl -0x7ffffffa(%ebx),%eax 801030c9: 3c 01 cmp $0x1,%al 801030cb: 0f 95 c2 setne %dl 801030ce: 3c 04 cmp $0x4,%al 801030d0: 0f 95 c0 setne %al 801030d3: 20 c2 and %al,%dl 801030d5: 0f 85 15 01 00 00 jne 801031f0 <mpinit+0x1b0> if(sum((uchar*)conf, conf->length) != 0) 801030db: 0f b7 bb 04 00 00 80 movzwl -0x7ffffffc(%ebx),%edi for(i=0; i<len; i++) 801030e2: 66 85 ff test %di,%di 801030e5: 74 1a je 80103101 <mpinit+0xc1> 801030e7: 89 f0 mov %esi,%eax 801030e9: 01 f7 add %esi,%edi sum = 0; 801030eb: 31 d2 xor %edx,%edx 801030ed: 8d 76 00 lea 0x0(%esi),%esi sum += addr[i]; 801030f0: 0f b6 08 movzbl (%eax),%ecx 801030f3: 83 c0 01 add $0x1,%eax 801030f6: 01 ca add %ecx,%edx for(i=0; i<len; i++) 801030f8: 39 c7 cmp %eax,%edi 801030fa: 75 f4 jne 801030f0 <mpinit+0xb0> 801030fc: 84 d2 test %dl,%dl 801030fe: 0f 95 c2 setne %dl struct mp *mp; struct mpconf *conf; struct mpproc *proc; struct mpioapic *ioapic; if((conf = mpconfig(&mp)) == 0) 80103101: 85 f6 test %esi,%esi 80103103: 0f 84 e7 00 00 00 je 801031f0 <mpinit+0x1b0> 80103109: 84 d2 test %dl,%dl 8010310b: 0f 85 df 00 00 00 jne 801031f0 <mpinit+0x1b0> panic("Expect to run on an SMP"); ismp = 1; lapic = (uint*)conf->lapicaddr; 80103111: 8b 83 24 00 00 80 mov -0x7fffffdc(%ebx),%eax 80103117: a3 7c 26 11 80 mov %eax,0x8011267c for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 8010311c: 0f b7 93 04 00 00 80 movzwl -0x7ffffffc(%ebx),%edx 80103123: 8d 83 2c 00 00 80 lea -0x7fffffd4(%ebx),%eax ismp = 1; 80103129: bb 01 00 00 00 mov $0x1,%ebx for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 8010312e: 01 d6 add %edx,%esi 80103130: 39 c6 cmp %eax,%esi 80103132: 76 23 jbe 80103157 <mpinit+0x117> switch(*p){ 80103134: 0f b6 10 movzbl (%eax),%edx 80103137: 80 fa 04 cmp $0x4,%dl 8010313a: 0f 87 ca 00 00 00 ja 8010320a <mpinit+0x1ca> 80103140: ff 24 95 fc 73 10 80 jmp *-0x7fef8c04(,%edx,4) 80103147: 89 f6 mov %esi,%esi 80103149: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi p += sizeof(struct mpioapic); continue; case MPBUS: case MPIOINTR: case MPLINTR: p += 8; 80103150: 83 c0 08 add $0x8,%eax for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){ 80103153: 39 c6 cmp %eax,%esi 80103155: 77 dd ja 80103134 <mpinit+0xf4> default: ismp = 0; break; } } if(!ismp) 80103157: 85 db test %ebx,%ebx 80103159: 0f 84 9e 00 00 00 je 801031fd <mpinit+0x1bd> panic("Didn't find a suitable machine"); if(mp->imcrp){ 8010315f: 8b 45 e4 mov -0x1c(%ebp),%eax 80103162: 80 78 0c 00 cmpb $0x0,0xc(%eax) 80103166: 74 15 je 8010317d <mpinit+0x13d> asm volatile("out %0,%1" : : "a" (data), "d" (port)); 80103168: b8 70 00 00 00 mov $0x70,%eax 8010316d: ba 22 00 00 00 mov $0x22,%edx 80103172: ee out %al,(%dx) asm volatile("in %1,%0" : "=a" (data) : "d" (port)); 80103173: ba 23 00 00 00 mov $0x23,%edx 80103178: ec in (%dx),%al // Bochs doesn't support IMCR, so this doesn't run on Bochs. // But it would on real hardware. outb(0x22, 0x70); // Select IMCR outb(0x23, inb(0x23) | 1); // Mask external interrupts. 80103179: 83 c8 01 or $0x1,%eax asm volatile("out %0,%1" : : "a" (data), "d" (port)); 8010317c: ee out %al,(%dx) } } 8010317d: 8d 65 f4 lea -0xc(%ebp),%esp 80103180: 5b pop %ebx 80103181: 5e pop %esi 80103182: 5f pop %edi 80103183: 5d pop %ebp 80103184: c3 ret 80103185: 8d 76 00 lea 0x0(%esi),%esi if(ncpu < NCPU) { 80103188: 8b 0d 00 2d 11 80 mov 0x80112d00,%ecx 8010318e: 83 f9 07 cmp $0x7,%ecx 80103191: 7f 19 jg 801031ac <mpinit+0x16c> cpus[ncpu].apicid = proc->apicid; // apicid may differ from ncpu 80103193: 0f b6 50 01 movzbl 0x1(%eax),%edx 80103197: 69 f9 b0 00 00 00 imul $0xb0,%ecx,%edi ncpu++; 8010319d: 83 c1 01 add $0x1,%ecx 801031a0: 89 0d 00 2d 11 80 mov %ecx,0x80112d00 cpus[ncpu].apicid = proc->apicid; // apicid may differ from ncpu 801031a6: 88 97 80 27 11 80 mov %dl,-0x7feed880(%edi) p += sizeof(struct mpproc); 801031ac: 83 c0 14 add $0x14,%eax continue; 801031af: e9 7c ff ff ff jmp 80103130 <mpinit+0xf0> 801031b4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi ioapicid = ioapic->apicno; 801031b8: 0f b6 50 01 movzbl 0x1(%eax),%edx p += sizeof(struct mpioapic); 801031bc: 83 c0 08 add $0x8,%eax ioapicid = ioapic->apicno; 801031bf: 88 15 60 27 11 80 mov %dl,0x80112760 continue; 801031c5: e9 66 ff ff ff jmp 80103130 <mpinit+0xf0> 801031ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi return mpsearch1(0xF0000, 0x10000); 801031d0: ba 00 00 01 00 mov $0x10000,%edx 801031d5: b8 00 00 0f 00 mov $0xf0000,%eax 801031da: e8 e1 fd ff ff call 80102fc0 <mpsearch1> if((mp = mpsearch()) == 0 || mp->physaddr == 0) 801031df: 85 c0 test %eax,%eax return mpsearch1(0xF0000, 0x10000); 801031e1: 89 45 e4 mov %eax,-0x1c(%ebp) if((mp = mpsearch()) == 0 || mp->physaddr == 0) 801031e4: 0f 85 a9 fe ff ff jne 80103093 <mpinit+0x53> 801031ea: 8d b6 00 00 00 00 lea 0x0(%esi),%esi panic("Expect to run on an SMP"); 801031f0: 83 ec 0c sub $0xc,%esp 801031f3: 68 bd 73 10 80 push $0x801073bd 801031f8: e8 93 d1 ff ff call 80100390 <panic> panic("Didn't find a suitable machine"); 801031fd: 83 ec 0c sub $0xc,%esp 80103200: 68 dc 73 10 80 push $0x801073dc 80103205: e8 86 d1 ff ff call 80100390 <panic> ismp = 0; 8010320a: 31 db xor %ebx,%ebx 8010320c: e9 26 ff ff ff jmp 80103137 <mpinit+0xf7> 80103211: 66 90 xchg %ax,%ax 80103213: 66 90 xchg %ax,%ax 80103215: 66 90 xchg %ax,%ax 80103217: 66 90 xchg %ax,%ax 80103219: 66 90 xchg %ax,%ax 8010321b: 66 90 xchg %ax,%ax 8010321d: 66 90 xchg %ax,%ax 8010321f: 90 nop 80103220 <picinit>: #define IO_PIC2 0xA0 // Slave (IRQs 8-15) // Don't use the 8259A interrupt controllers. Xv6 assumes SMP hardware. void picinit(void) { 80103220: 55 push %ebp 80103221: b8 ff ff ff ff mov $0xffffffff,%eax 80103226: ba 21 00 00 00 mov $0x21,%edx 8010322b: 89 e5 mov %esp,%ebp 8010322d: ee out %al,(%dx) 8010322e: ba a1 00 00 00 mov $0xa1,%edx 80103233: ee out %al,(%dx) // mask all interrupts outb(IO_PIC1+1, 0xFF); outb(IO_PIC2+1, 0xFF); } 80103234: 5d pop %ebp 80103235: c3 ret 80103236: 66 90 xchg %ax,%ax 80103238: 66 90 xchg %ax,%ax 8010323a: 66 90 xchg %ax,%ax 8010323c: 66 90 xchg %ax,%ax 8010323e: 66 90 xchg %ax,%ax 80103240 <pipealloc>: int writeopen; // write fd is still open }; int pipealloc(struct file **f0, struct file **f1) { 80103240: 55 push %ebp 80103241: 89 e5 mov %esp,%ebp 80103243: 57 push %edi 80103244: 56 push %esi 80103245: 53 push %ebx 80103246: 83 ec 0c sub $0xc,%esp 80103249: 8b 5d 08 mov 0x8(%ebp),%ebx 8010324c: 8b 75 0c mov 0xc(%ebp),%esi struct pipe *p; p = 0; *f0 = *f1 = 0; 8010324f: c7 06 00 00 00 00 movl $0x0,(%esi) 80103255: c7 03 00 00 00 00 movl $0x0,(%ebx) if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0) 8010325b: e8 20 db ff ff call 80100d80 <filealloc> 80103260: 85 c0 test %eax,%eax 80103262: 89 03 mov %eax,(%ebx) 80103264: 74 22 je 80103288 <pipealloc+0x48> 80103266: e8 15 db ff ff call 80100d80 <filealloc> 8010326b: 85 c0 test %eax,%eax 8010326d: 89 06 mov %eax,(%esi) 8010326f: 74 3f je 801032b0 <pipealloc+0x70> goto bad; if((p = (struct pipe*)kalloc()) == 0) 80103271: e8 4a f2 ff ff call 801024c0 <kalloc> 80103276: 85 c0 test %eax,%eax 80103278: 89 c7 mov %eax,%edi 8010327a: 75 54 jne 801032d0 <pipealloc+0x90> //PAGEBREAK: 20 bad: if(p) kfree((char*)p); if(*f0) 8010327c: 8b 03 mov (%ebx),%eax 8010327e: 85 c0 test %eax,%eax 80103280: 75 34 jne 801032b6 <pipealloc+0x76> 80103282: 8d b6 00 00 00 00 lea 0x0(%esi),%esi fileclose(*f0); if(*f1) 80103288: 8b 06 mov (%esi),%eax 8010328a: 85 c0 test %eax,%eax 8010328c: 74 0c je 8010329a <pipealloc+0x5a> fileclose(*f1); 8010328e: 83 ec 0c sub $0xc,%esp 80103291: 50 push %eax 80103292: e8 a9 db ff ff call 80100e40 <fileclose> 80103297: 83 c4 10 add $0x10,%esp return -1; } 8010329a: 8d 65 f4 lea -0xc(%ebp),%esp return -1; 8010329d: b8 ff ff ff ff mov $0xffffffff,%eax } 801032a2: 5b pop %ebx 801032a3: 5e pop %esi 801032a4: 5f pop %edi 801032a5: 5d pop %ebp 801032a6: c3 ret 801032a7: 89 f6 mov %esi,%esi 801032a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi if(*f0) 801032b0: 8b 03 mov (%ebx),%eax 801032b2: 85 c0 test %eax,%eax 801032b4: 74 e4 je 8010329a <pipealloc+0x5a> fileclose(*f0); 801032b6: 83 ec 0c sub $0xc,%esp 801032b9: 50 push %eax 801032ba: e8 81 db ff ff call 80100e40 <fileclose> if(*f1) 801032bf: 8b 06 mov (%esi),%eax fileclose(*f0); 801032c1: 83 c4 10 add $0x10,%esp if(*f1) 801032c4: 85 c0 test %eax,%eax 801032c6: 75 c6 jne 8010328e <pipealloc+0x4e> 801032c8: eb d0 jmp 8010329a <pipealloc+0x5a> 801032ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi initlock(&p->lock, "pipe"); 801032d0: 83 ec 08 sub $0x8,%esp p->readopen = 1; 801032d3: c7 80 3c 02 00 00 01 movl $0x1,0x23c(%eax) 801032da: 00 00 00 p->writeopen = 1; 801032dd: c7 80 40 02 00 00 01 movl $0x1,0x240(%eax) 801032e4: 00 00 00 p->nwrite = 0; 801032e7: c7 80 38 02 00 00 00 movl $0x0,0x238(%eax) 801032ee: 00 00 00 p->nread = 0; 801032f1: c7 80 34 02 00 00 00 movl $0x0,0x234(%eax) 801032f8: 00 00 00 initlock(&p->lock, "pipe"); 801032fb: 68 10 74 10 80 push $0x80107410 80103300: 50 push %eax 80103301: e8 fa 0e 00 00 call 80104200 <initlock> (*f0)->type = FD_PIPE; 80103306: 8b 03 mov (%ebx),%eax return 0; 80103308: 83 c4 10 add $0x10,%esp (*f0)->type = FD_PIPE; 8010330b: c7 00 01 00 00 00 movl $0x1,(%eax) (*f0)->readable = 1; 80103311: 8b 03 mov (%ebx),%eax 80103313: c6 40 08 01 movb $0x1,0x8(%eax) (*f0)->writable = 0; 80103317: 8b 03 mov (%ebx),%eax 80103319: c6 40 09 00 movb $0x0,0x9(%eax) (*f0)->pipe = p; 8010331d: 8b 03 mov (%ebx),%eax 8010331f: 89 78 0c mov %edi,0xc(%eax) (*f1)->type = FD_PIPE; 80103322: 8b 06 mov (%esi),%eax 80103324: c7 00 01 00 00 00 movl $0x1,(%eax) (*f1)->readable = 0; 8010332a: 8b 06 mov (%esi),%eax 8010332c: c6 40 08 00 movb $0x0,0x8(%eax) (*f1)->writable = 1; 80103330: 8b 06 mov (%esi),%eax 80103332: c6 40 09 01 movb $0x1,0x9(%eax) (*f1)->pipe = p; 80103336: 8b 06 mov (%esi),%eax 80103338: 89 78 0c mov %edi,0xc(%eax) } 8010333b: 8d 65 f4 lea -0xc(%ebp),%esp return 0; 8010333e: 31 c0 xor %eax,%eax } 80103340: 5b pop %ebx 80103341: 5e pop %esi 80103342: 5f pop %edi 80103343: 5d pop %ebp 80103344: c3 ret 80103345: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80103349: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80103350 <pipeclose>: void pipeclose(struct pipe *p, int writable) { 80103350: 55 push %ebp 80103351: 89 e5 mov %esp,%ebp 80103353: 56 push %esi 80103354: 53 push %ebx 80103355: 8b 5d 08 mov 0x8(%ebp),%ebx 80103358: 8b 75 0c mov 0xc(%ebp),%esi acquire(&p->lock); 8010335b: 83 ec 0c sub $0xc,%esp 8010335e: 53 push %ebx 8010335f: e8 dc 0f 00 00 call 80104340 <acquire> if(writable){ 80103364: 83 c4 10 add $0x10,%esp 80103367: 85 f6 test %esi,%esi 80103369: 74 45 je 801033b0 <pipeclose+0x60> p->writeopen = 0; wakeup(&p->nread); 8010336b: 8d 83 34 02 00 00 lea 0x234(%ebx),%eax 80103371: 83 ec 0c sub $0xc,%esp p->writeopen = 0; 80103374: c7 83 40 02 00 00 00 movl $0x0,0x240(%ebx) 8010337b: 00 00 00 wakeup(&p->nread); 8010337e: 50 push %eax 8010337f: e8 ac 0b 00 00 call 80103f30 <wakeup> 80103384: 83 c4 10 add $0x10,%esp } else { p->readopen = 0; wakeup(&p->nwrite); } if(p->readopen == 0 && p->writeopen == 0){ 80103387: 8b 93 3c 02 00 00 mov 0x23c(%ebx),%edx 8010338d: 85 d2 test %edx,%edx 8010338f: 75 0a jne 8010339b <pipeclose+0x4b> 80103391: 8b 83 40 02 00 00 mov 0x240(%ebx),%eax 80103397: 85 c0 test %eax,%eax 80103399: 74 35 je 801033d0 <pipeclose+0x80> release(&p->lock); kfree((char*)p); } else release(&p->lock); 8010339b: 89 5d 08 mov %ebx,0x8(%ebp) } 8010339e: 8d 65 f8 lea -0x8(%ebp),%esp 801033a1: 5b pop %ebx 801033a2: 5e pop %esi 801033a3: 5d pop %ebp release(&p->lock); 801033a4: e9 57 10 00 00 jmp 80104400 <release> 801033a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi wakeup(&p->nwrite); 801033b0: 8d 83 38 02 00 00 lea 0x238(%ebx),%eax 801033b6: 83 ec 0c sub $0xc,%esp p->readopen = 0; 801033b9: c7 83 3c 02 00 00 00 movl $0x0,0x23c(%ebx) 801033c0: 00 00 00 wakeup(&p->nwrite); 801033c3: 50 push %eax 801033c4: e8 67 0b 00 00 call 80103f30 <wakeup> 801033c9: 83 c4 10 add $0x10,%esp 801033cc: eb b9 jmp 80103387 <pipeclose+0x37> 801033ce: 66 90 xchg %ax,%ax release(&p->lock); 801033d0: 83 ec 0c sub $0xc,%esp 801033d3: 53 push %ebx 801033d4: e8 27 10 00 00 call 80104400 <release> kfree((char*)p); 801033d9: 89 5d 08 mov %ebx,0x8(%ebp) 801033dc: 83 c4 10 add $0x10,%esp } 801033df: 8d 65 f8 lea -0x8(%ebp),%esp 801033e2: 5b pop %ebx 801033e3: 5e pop %esi 801033e4: 5d pop %ebp kfree((char*)p); 801033e5: e9 26 ef ff ff jmp 80102310 <kfree> 801033ea: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801033f0 <pipewrite>: //PAGEBREAK: 40 int pipewrite(struct pipe *p, char *addr, int n) { 801033f0: 55 push %ebp 801033f1: 89 e5 mov %esp,%ebp 801033f3: 57 push %edi 801033f4: 56 push %esi 801033f5: 53 push %ebx 801033f6: 83 ec 28 sub $0x28,%esp 801033f9: 8b 5d 08 mov 0x8(%ebp),%ebx int i; acquire(&p->lock); 801033fc: 53 push %ebx 801033fd: e8 3e 0f 00 00 call 80104340 <acquire> for(i = 0; i < n; i++){ 80103402: 8b 45 10 mov 0x10(%ebp),%eax 80103405: 83 c4 10 add $0x10,%esp 80103408: 85 c0 test %eax,%eax 8010340a: 0f 8e c9 00 00 00 jle 801034d9 <pipewrite+0xe9> 80103410: 8b 4d 0c mov 0xc(%ebp),%ecx 80103413: 8b 83 38 02 00 00 mov 0x238(%ebx),%eax while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full if(p->readopen == 0 || myproc()->killed){ release(&p->lock); return -1; } wakeup(&p->nread); 80103419: 8d bb 34 02 00 00 lea 0x234(%ebx),%edi 8010341f: 89 4d e4 mov %ecx,-0x1c(%ebp) 80103422: 03 4d 10 add 0x10(%ebp),%ecx 80103425: 89 4d e0 mov %ecx,-0x20(%ebp) while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full 80103428: 8b 8b 34 02 00 00 mov 0x234(%ebx),%ecx 8010342e: 8d 91 00 02 00 00 lea 0x200(%ecx),%edx 80103434: 39 d0 cmp %edx,%eax 80103436: 75 71 jne 801034a9 <pipewrite+0xb9> if(p->readopen == 0 || myproc()->killed){ 80103438: 8b 83 3c 02 00 00 mov 0x23c(%ebx),%eax 8010343e: 85 c0 test %eax,%eax 80103440: 74 4e je 80103490 <pipewrite+0xa0> sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep 80103442: 8d b3 38 02 00 00 lea 0x238(%ebx),%esi 80103448: eb 3a jmp 80103484 <pipewrite+0x94> 8010344a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi wakeup(&p->nread); 80103450: 83 ec 0c sub $0xc,%esp 80103453: 57 push %edi 80103454: e8 d7 0a 00 00 call 80103f30 <wakeup> sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep 80103459: 5a pop %edx 8010345a: 59 pop %ecx 8010345b: 53 push %ebx 8010345c: 56 push %esi 8010345d: e8 1e 09 00 00 call 80103d80 <sleep> while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full 80103462: 8b 83 34 02 00 00 mov 0x234(%ebx),%eax 80103468: 8b 93 38 02 00 00 mov 0x238(%ebx),%edx 8010346e: 83 c4 10 add $0x10,%esp 80103471: 05 00 02 00 00 add $0x200,%eax 80103476: 39 c2 cmp %eax,%edx 80103478: 75 36 jne 801034b0 <pipewrite+0xc0> if(p->readopen == 0 || myproc()->killed){ 8010347a: 8b 83 3c 02 00 00 mov 0x23c(%ebx),%eax 80103480: 85 c0 test %eax,%eax 80103482: 74 0c je 80103490 <pipewrite+0xa0> 80103484: e8 57 03 00 00 call 801037e0 <myproc> 80103489: 8b 40 24 mov 0x24(%eax),%eax 8010348c: 85 c0 test %eax,%eax 8010348e: 74 c0 je 80103450 <pipewrite+0x60> release(&p->lock); 80103490: 83 ec 0c sub $0xc,%esp 80103493: 53 push %ebx 80103494: e8 67 0f 00 00 call 80104400 <release> return -1; 80103499: 83 c4 10 add $0x10,%esp 8010349c: b8 ff ff ff ff mov $0xffffffff,%eax p->data[p->nwrite++ % PIPESIZE] = addr[i]; } wakeup(&p->nread); //DOC: pipewrite-wakeup1 release(&p->lock); return n; } 801034a1: 8d 65 f4 lea -0xc(%ebp),%esp 801034a4: 5b pop %ebx 801034a5: 5e pop %esi 801034a6: 5f pop %edi 801034a7: 5d pop %ebp 801034a8: c3 ret while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full 801034a9: 89 c2 mov %eax,%edx 801034ab: 90 nop 801034ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi p->data[p->nwrite++ % PIPESIZE] = addr[i]; 801034b0: 8b 75 e4 mov -0x1c(%ebp),%esi 801034b3: 8d 42 01 lea 0x1(%edx),%eax 801034b6: 81 e2 ff 01 00 00 and $0x1ff,%edx 801034bc: 89 83 38 02 00 00 mov %eax,0x238(%ebx) 801034c2: 83 c6 01 add $0x1,%esi 801034c5: 0f b6 4e ff movzbl -0x1(%esi),%ecx for(i = 0; i < n; i++){ 801034c9: 3b 75 e0 cmp -0x20(%ebp),%esi 801034cc: 89 75 e4 mov %esi,-0x1c(%ebp) p->data[p->nwrite++ % PIPESIZE] = addr[i]; 801034cf: 88 4c 13 34 mov %cl,0x34(%ebx,%edx,1) for(i = 0; i < n; i++){ 801034d3: 0f 85 4f ff ff ff jne 80103428 <pipewrite+0x38> wakeup(&p->nread); //DOC: pipewrite-wakeup1 801034d9: 8d 83 34 02 00 00 lea 0x234(%ebx),%eax 801034df: 83 ec 0c sub $0xc,%esp 801034e2: 50 push %eax 801034e3: e8 48 0a 00 00 call 80103f30 <wakeup> release(&p->lock); 801034e8: 89 1c 24 mov %ebx,(%esp) 801034eb: e8 10 0f 00 00 call 80104400 <release> return n; 801034f0: 83 c4 10 add $0x10,%esp 801034f3: 8b 45 10 mov 0x10(%ebp),%eax 801034f6: eb a9 jmp 801034a1 <pipewrite+0xb1> 801034f8: 90 nop 801034f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103500 <piperead>: int piperead(struct pipe *p, char *addr, int n) { 80103500: 55 push %ebp 80103501: 89 e5 mov %esp,%ebp 80103503: 57 push %edi 80103504: 56 push %esi 80103505: 53 push %ebx 80103506: 83 ec 18 sub $0x18,%esp 80103509: 8b 75 08 mov 0x8(%ebp),%esi 8010350c: 8b 7d 0c mov 0xc(%ebp),%edi int i; acquire(&p->lock); 8010350f: 56 push %esi 80103510: e8 2b 0e 00 00 call 80104340 <acquire> while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty 80103515: 83 c4 10 add $0x10,%esp 80103518: 8b 8e 34 02 00 00 mov 0x234(%esi),%ecx 8010351e: 3b 8e 38 02 00 00 cmp 0x238(%esi),%ecx 80103524: 75 6a jne 80103590 <piperead+0x90> 80103526: 8b 9e 40 02 00 00 mov 0x240(%esi),%ebx 8010352c: 85 db test %ebx,%ebx 8010352e: 0f 84 c4 00 00 00 je 801035f8 <piperead+0xf8> if(myproc()->killed){ release(&p->lock); return -1; } sleep(&p->nread, &p->lock); //DOC: piperead-sleep 80103534: 8d 9e 34 02 00 00 lea 0x234(%esi),%ebx 8010353a: eb 2d jmp 80103569 <piperead+0x69> 8010353c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80103540: 83 ec 08 sub $0x8,%esp 80103543: 56 push %esi 80103544: 53 push %ebx 80103545: e8 36 08 00 00 call 80103d80 <sleep> while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty 8010354a: 83 c4 10 add $0x10,%esp 8010354d: 8b 8e 34 02 00 00 mov 0x234(%esi),%ecx 80103553: 3b 8e 38 02 00 00 cmp 0x238(%esi),%ecx 80103559: 75 35 jne 80103590 <piperead+0x90> 8010355b: 8b 96 40 02 00 00 mov 0x240(%esi),%edx 80103561: 85 d2 test %edx,%edx 80103563: 0f 84 8f 00 00 00 je 801035f8 <piperead+0xf8> if(myproc()->killed){ 80103569: e8 72 02 00 00 call 801037e0 <myproc> 8010356e: 8b 48 24 mov 0x24(%eax),%ecx 80103571: 85 c9 test %ecx,%ecx 80103573: 74 cb je 80103540 <piperead+0x40> release(&p->lock); 80103575: 83 ec 0c sub $0xc,%esp return -1; 80103578: bb ff ff ff ff mov $0xffffffff,%ebx release(&p->lock); 8010357d: 56 push %esi 8010357e: e8 7d 0e 00 00 call 80104400 <release> return -1; 80103583: 83 c4 10 add $0x10,%esp addr[i] = p->data[p->nread++ % PIPESIZE]; } wakeup(&p->nwrite); //DOC: piperead-wakeup release(&p->lock); return i; } 80103586: 8d 65 f4 lea -0xc(%ebp),%esp 80103589: 89 d8 mov %ebx,%eax 8010358b: 5b pop %ebx 8010358c: 5e pop %esi 8010358d: 5f pop %edi 8010358e: 5d pop %ebp 8010358f: c3 ret for(i = 0; i < n; i++){ //DOC: piperead-copy 80103590: 8b 45 10 mov 0x10(%ebp),%eax 80103593: 85 c0 test %eax,%eax 80103595: 7e 61 jle 801035f8 <piperead+0xf8> if(p->nread == p->nwrite) 80103597: 31 db xor %ebx,%ebx 80103599: eb 13 jmp 801035ae <piperead+0xae> 8010359b: 90 nop 8010359c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801035a0: 8b 8e 34 02 00 00 mov 0x234(%esi),%ecx 801035a6: 3b 8e 38 02 00 00 cmp 0x238(%esi),%ecx 801035ac: 74 1f je 801035cd <piperead+0xcd> addr[i] = p->data[p->nread++ % PIPESIZE]; 801035ae: 8d 41 01 lea 0x1(%ecx),%eax 801035b1: 81 e1 ff 01 00 00 and $0x1ff,%ecx 801035b7: 89 86 34 02 00 00 mov %eax,0x234(%esi) 801035bd: 0f b6 44 0e 34 movzbl 0x34(%esi,%ecx,1),%eax 801035c2: 88 04 1f mov %al,(%edi,%ebx,1) for(i = 0; i < n; i++){ //DOC: piperead-copy 801035c5: 83 c3 01 add $0x1,%ebx 801035c8: 39 5d 10 cmp %ebx,0x10(%ebp) 801035cb: 75 d3 jne 801035a0 <piperead+0xa0> wakeup(&p->nwrite); //DOC: piperead-wakeup 801035cd: 8d 86 38 02 00 00 lea 0x238(%esi),%eax 801035d3: 83 ec 0c sub $0xc,%esp 801035d6: 50 push %eax 801035d7: e8 54 09 00 00 call 80103f30 <wakeup> release(&p->lock); 801035dc: 89 34 24 mov %esi,(%esp) 801035df: e8 1c 0e 00 00 call 80104400 <release> return i; 801035e4: 83 c4 10 add $0x10,%esp } 801035e7: 8d 65 f4 lea -0xc(%ebp),%esp 801035ea: 89 d8 mov %ebx,%eax 801035ec: 5b pop %ebx 801035ed: 5e pop %esi 801035ee: 5f pop %edi 801035ef: 5d pop %ebp 801035f0: c3 ret 801035f1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801035f8: 31 db xor %ebx,%ebx 801035fa: eb d1 jmp 801035cd <piperead+0xcd> 801035fc: 66 90 xchg %ax,%ax 801035fe: 66 90 xchg %ax,%ax 80103600 <allocproc>: // If found, change state to EMBRYO and initialize // state required to run in the kernel. // Otherwise return 0. static struct proc* allocproc(void) { 80103600: 55 push %ebp 80103601: 89 e5 mov %esp,%ebp 80103603: 53 push %ebx struct proc *p; char *sp; acquire(&ptable.lock); for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103604: bb 54 2d 11 80 mov $0x80112d54,%ebx { 80103609: 83 ec 10 sub $0x10,%esp acquire(&ptable.lock); 8010360c: 68 20 2d 11 80 push $0x80112d20 80103611: e8 2a 0d 00 00 call 80104340 <acquire> 80103616: 83 c4 10 add $0x10,%esp 80103619: eb 10 jmp 8010362b <allocproc+0x2b> 8010361b: 90 nop 8010361c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103620: 83 c3 7c add $0x7c,%ebx 80103623: 81 fb 54 4c 11 80 cmp $0x80114c54,%ebx 80103629: 73 75 jae 801036a0 <allocproc+0xa0> if(p->state == UNUSED) 8010362b: 8b 43 0c mov 0xc(%ebx),%eax 8010362e: 85 c0 test %eax,%eax 80103630: 75 ee jne 80103620 <allocproc+0x20> release(&ptable.lock); return 0; found: p->state = EMBRYO; p->pid = nextpid++; 80103632: a1 04 a0 10 80 mov 0x8010a004,%eax release(&ptable.lock); 80103637: 83 ec 0c sub $0xc,%esp p->state = EMBRYO; 8010363a: c7 43 0c 01 00 00 00 movl $0x1,0xc(%ebx) p->pid = nextpid++; 80103641: 8d 50 01 lea 0x1(%eax),%edx 80103644: 89 43 10 mov %eax,0x10(%ebx) release(&ptable.lock); 80103647: 68 20 2d 11 80 push $0x80112d20 p->pid = nextpid++; 8010364c: 89 15 04 a0 10 80 mov %edx,0x8010a004 release(&ptable.lock); 80103652: e8 a9 0d 00 00 call 80104400 <release> // Allocate kernel stack. if((p->kstack = kalloc()) == 0){ 80103657: e8 64 ee ff ff call 801024c0 <kalloc> 8010365c: 83 c4 10 add $0x10,%esp 8010365f: 85 c0 test %eax,%eax 80103661: 89 43 08 mov %eax,0x8(%ebx) 80103664: 74 53 je 801036b9 <allocproc+0xb9> return 0; } sp = p->kstack + KSTACKSIZE; // Leave room for trap frame. sp -= sizeof *p->tf; 80103666: 8d 90 b4 0f 00 00 lea 0xfb4(%eax),%edx sp -= 4; *(uint*)sp = (uint)trapret; sp -= sizeof *p->context; p->context = (struct context*)sp; memset(p->context, 0, sizeof *p->context); 8010366c: 83 ec 04 sub $0x4,%esp sp -= sizeof *p->context; 8010366f: 05 9c 0f 00 00 add $0xf9c,%eax sp -= sizeof *p->tf; 80103674: 89 53 18 mov %edx,0x18(%ebx) *(uint*)sp = (uint)trapret; 80103677: c7 40 14 42 56 10 80 movl $0x80105642,0x14(%eax) p->context = (struct context*)sp; 8010367e: 89 43 1c mov %eax,0x1c(%ebx) memset(p->context, 0, sizeof *p->context); 80103681: 6a 14 push $0x14 80103683: 6a 00 push $0x0 80103685: 50 push %eax 80103686: e8 c5 0d 00 00 call 80104450 <memset> p->context->eip = (uint)forkret; 8010368b: 8b 43 1c mov 0x1c(%ebx),%eax return p; 8010368e: 83 c4 10 add $0x10,%esp p->context->eip = (uint)forkret; 80103691: c7 40 10 d0 36 10 80 movl $0x801036d0,0x10(%eax) } 80103698: 89 d8 mov %ebx,%eax 8010369a: 8b 5d fc mov -0x4(%ebp),%ebx 8010369d: c9 leave 8010369e: c3 ret 8010369f: 90 nop release(&ptable.lock); 801036a0: 83 ec 0c sub $0xc,%esp return 0; 801036a3: 31 db xor %ebx,%ebx release(&ptable.lock); 801036a5: 68 20 2d 11 80 push $0x80112d20 801036aa: e8 51 0d 00 00 call 80104400 <release> } 801036af: 89 d8 mov %ebx,%eax return 0; 801036b1: 83 c4 10 add $0x10,%esp } 801036b4: 8b 5d fc mov -0x4(%ebp),%ebx 801036b7: c9 leave 801036b8: c3 ret p->state = UNUSED; 801036b9: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) return 0; 801036c0: 31 db xor %ebx,%ebx 801036c2: eb d4 jmp 80103698 <allocproc+0x98> 801036c4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801036ca: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 801036d0 <forkret>: // A fork child's very first scheduling by scheduler() // will swtch here. "Return" to user space. void forkret(void) { 801036d0: 55 push %ebp 801036d1: 89 e5 mov %esp,%ebp 801036d3: 83 ec 14 sub $0x14,%esp static int first = 1; // Still holding ptable.lock from scheduler. release(&ptable.lock); 801036d6: 68 20 2d 11 80 push $0x80112d20 801036db: e8 20 0d 00 00 call 80104400 <release> if (first) { 801036e0: a1 00 a0 10 80 mov 0x8010a000,%eax 801036e5: 83 c4 10 add $0x10,%esp 801036e8: 85 c0 test %eax,%eax 801036ea: 75 04 jne 801036f0 <forkret+0x20> iinit(ROOTDEV); initlog(ROOTDEV); } // Return to "caller", actually trapret (see allocproc). } 801036ec: c9 leave 801036ed: c3 ret 801036ee: 66 90 xchg %ax,%ax iinit(ROOTDEV); 801036f0: 83 ec 0c sub $0xc,%esp first = 0; 801036f3: c7 05 00 a0 10 80 00 movl $0x0,0x8010a000 801036fa: 00 00 00 iinit(ROOTDEV); 801036fd: 6a 01 push $0x1 801036ff: e8 7c dd ff ff call 80101480 <iinit> initlog(ROOTDEV); 80103704: c7 04 24 01 00 00 00 movl $0x1,(%esp) 8010370b: e8 f0 f3 ff ff call 80102b00 <initlog> 80103710: 83 c4 10 add $0x10,%esp } 80103713: c9 leave 80103714: c3 ret 80103715: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80103719: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80103720 <pinit>: { 80103720: 55 push %ebp 80103721: 89 e5 mov %esp,%ebp 80103723: 83 ec 10 sub $0x10,%esp initlock(&ptable.lock, "ptable"); 80103726: 68 15 74 10 80 push $0x80107415 8010372b: 68 20 2d 11 80 push $0x80112d20 80103730: e8 cb 0a 00 00 call 80104200 <initlock> } 80103735: 83 c4 10 add $0x10,%esp 80103738: c9 leave 80103739: c3 ret 8010373a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80103740 <mycpu>: { 80103740: 55 push %ebp 80103741: 89 e5 mov %esp,%ebp 80103743: 56 push %esi 80103744: 53 push %ebx asm volatile("pushfl; popl %0" : "=r" (eflags)); 80103745: 9c pushf 80103746: 58 pop %eax if(readeflags()&FL_IF) 80103747: f6 c4 02 test $0x2,%ah 8010374a: 75 5e jne 801037aa <mycpu+0x6a> apicid = lapicid(); 8010374c: e8 df ef ff ff call 80102730 <lapicid> for (i = 0; i < ncpu; ++i) { 80103751: 8b 35 00 2d 11 80 mov 0x80112d00,%esi 80103757: 85 f6 test %esi,%esi 80103759: 7e 42 jle 8010379d <mycpu+0x5d> if (cpus[i].apicid == apicid) 8010375b: 0f b6 15 80 27 11 80 movzbl 0x80112780,%edx 80103762: 39 d0 cmp %edx,%eax 80103764: 74 30 je 80103796 <mycpu+0x56> 80103766: b9 30 28 11 80 mov $0x80112830,%ecx for (i = 0; i < ncpu; ++i) { 8010376b: 31 d2 xor %edx,%edx 8010376d: 8d 76 00 lea 0x0(%esi),%esi 80103770: 83 c2 01 add $0x1,%edx 80103773: 39 f2 cmp %esi,%edx 80103775: 74 26 je 8010379d <mycpu+0x5d> if (cpus[i].apicid == apicid) 80103777: 0f b6 19 movzbl (%ecx),%ebx 8010377a: 81 c1 b0 00 00 00 add $0xb0,%ecx 80103780: 39 c3 cmp %eax,%ebx 80103782: 75 ec jne 80103770 <mycpu+0x30> 80103784: 69 c2 b0 00 00 00 imul $0xb0,%edx,%eax 8010378a: 05 80 27 11 80 add $0x80112780,%eax } 8010378f: 8d 65 f8 lea -0x8(%ebp),%esp 80103792: 5b pop %ebx 80103793: 5e pop %esi 80103794: 5d pop %ebp 80103795: c3 ret if (cpus[i].apicid == apicid) 80103796: b8 80 27 11 80 mov $0x80112780,%eax return &cpus[i]; 8010379b: eb f2 jmp 8010378f <mycpu+0x4f> panic("unknown apicid\n"); 8010379d: 83 ec 0c sub $0xc,%esp 801037a0: 68 1c 74 10 80 push $0x8010741c 801037a5: e8 e6 cb ff ff call 80100390 <panic> panic("mycpu called with interrupts enabled\n"); 801037aa: 83 ec 0c sub $0xc,%esp 801037ad: 68 f8 74 10 80 push $0x801074f8 801037b2: e8 d9 cb ff ff call 80100390 <panic> 801037b7: 89 f6 mov %esi,%esi 801037b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801037c0 <cpuid>: cpuid() { 801037c0: 55 push %ebp 801037c1: 89 e5 mov %esp,%ebp 801037c3: 83 ec 08 sub $0x8,%esp return mycpu()-cpus; 801037c6: e8 75 ff ff ff call 80103740 <mycpu> 801037cb: 2d 80 27 11 80 sub $0x80112780,%eax } 801037d0: c9 leave return mycpu()-cpus; 801037d1: c1 f8 04 sar $0x4,%eax 801037d4: 69 c0 a3 8b 2e ba imul $0xba2e8ba3,%eax,%eax } 801037da: c3 ret 801037db: 90 nop 801037dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801037e0 <myproc>: myproc(void) { 801037e0: 55 push %ebp 801037e1: 89 e5 mov %esp,%ebp 801037e3: 53 push %ebx 801037e4: 83 ec 04 sub $0x4,%esp pushcli(); 801037e7: e8 84 0a 00 00 call 80104270 <pushcli> c = mycpu(); 801037ec: e8 4f ff ff ff call 80103740 <mycpu> p = c->proc; 801037f1: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 801037f7: e8 b4 0a 00 00 call 801042b0 <popcli> } 801037fc: 83 c4 04 add $0x4,%esp 801037ff: 89 d8 mov %ebx,%eax 80103801: 5b pop %ebx 80103802: 5d pop %ebp 80103803: c3 ret 80103804: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8010380a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80103810 <userinit>: { 80103810: 55 push %ebp 80103811: 89 e5 mov %esp,%ebp 80103813: 53 push %ebx 80103814: 83 ec 04 sub $0x4,%esp p = allocproc(); 80103817: e8 e4 fd ff ff call 80103600 <allocproc> 8010381c: 89 c3 mov %eax,%ebx initproc = p; 8010381e: a3 b8 a5 10 80 mov %eax,0x8010a5b8 if((p->pgdir = setupkvm()) == 0) 80103823: e8 e8 33 00 00 call 80106c10 <setupkvm> 80103828: 85 c0 test %eax,%eax 8010382a: 89 43 04 mov %eax,0x4(%ebx) 8010382d: 0f 84 bd 00 00 00 je 801038f0 <userinit+0xe0> inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size); 80103833: 83 ec 04 sub $0x4,%esp 80103836: 68 2c 00 00 00 push $0x2c 8010383b: 68 60 a4 10 80 push $0x8010a460 80103840: 50 push %eax 80103841: e8 aa 30 00 00 call 801068f0 <inituvm> memset(p->tf, 0, sizeof(*p->tf)); 80103846: 83 c4 0c add $0xc,%esp p->sz = PGSIZE; 80103849: c7 03 00 10 00 00 movl $0x1000,(%ebx) memset(p->tf, 0, sizeof(*p->tf)); 8010384f: 6a 4c push $0x4c 80103851: 6a 00 push $0x0 80103853: ff 73 18 pushl 0x18(%ebx) 80103856: e8 f5 0b 00 00 call 80104450 <memset> p->tf->cs = (SEG_UCODE << 3) | DPL_USER; 8010385b: 8b 43 18 mov 0x18(%ebx),%eax 8010385e: ba 1b 00 00 00 mov $0x1b,%edx p->tf->ds = (SEG_UDATA << 3) | DPL_USER; 80103863: b9 23 00 00 00 mov $0x23,%ecx safestrcpy(p->name, "initcode", sizeof(p->name)); 80103868: 83 c4 0c add $0xc,%esp p->tf->cs = (SEG_UCODE << 3) | DPL_USER; 8010386b: 66 89 50 3c mov %dx,0x3c(%eax) p->tf->ds = (SEG_UDATA << 3) | DPL_USER; 8010386f: 8b 43 18 mov 0x18(%ebx),%eax 80103872: 66 89 48 2c mov %cx,0x2c(%eax) p->tf->es = p->tf->ds; 80103876: 8b 43 18 mov 0x18(%ebx),%eax 80103879: 0f b7 50 2c movzwl 0x2c(%eax),%edx 8010387d: 66 89 50 28 mov %dx,0x28(%eax) p->tf->ss = p->tf->ds; 80103881: 8b 43 18 mov 0x18(%ebx),%eax 80103884: 0f b7 50 2c movzwl 0x2c(%eax),%edx 80103888: 66 89 50 48 mov %dx,0x48(%eax) p->tf->eflags = FL_IF; 8010388c: 8b 43 18 mov 0x18(%ebx),%eax 8010388f: c7 40 40 00 02 00 00 movl $0x200,0x40(%eax) p->tf->esp = PGSIZE; 80103896: 8b 43 18 mov 0x18(%ebx),%eax 80103899: c7 40 44 00 10 00 00 movl $0x1000,0x44(%eax) p->tf->eip = 0; // beginning of initcode.S 801038a0: 8b 43 18 mov 0x18(%ebx),%eax 801038a3: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax) safestrcpy(p->name, "initcode", sizeof(p->name)); 801038aa: 8d 43 6c lea 0x6c(%ebx),%eax 801038ad: 6a 10 push $0x10 801038af: 68 45 74 10 80 push $0x80107445 801038b4: 50 push %eax 801038b5: e8 76 0d 00 00 call 80104630 <safestrcpy> p->cwd = namei("/"); 801038ba: c7 04 24 4e 74 10 80 movl $0x8010744e,(%esp) 801038c1: e8 1a e6 ff ff call 80101ee0 <namei> 801038c6: 89 43 68 mov %eax,0x68(%ebx) acquire(&ptable.lock); 801038c9: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp) 801038d0: e8 6b 0a 00 00 call 80104340 <acquire> p->state = RUNNABLE; 801038d5: c7 43 0c 03 00 00 00 movl $0x3,0xc(%ebx) release(&ptable.lock); 801038dc: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp) 801038e3: e8 18 0b 00 00 call 80104400 <release> } 801038e8: 83 c4 10 add $0x10,%esp 801038eb: 8b 5d fc mov -0x4(%ebp),%ebx 801038ee: c9 leave 801038ef: c3 ret panic("userinit: out of memory?"); 801038f0: 83 ec 0c sub $0xc,%esp 801038f3: 68 2c 74 10 80 push $0x8010742c 801038f8: e8 93 ca ff ff call 80100390 <panic> 801038fd: 8d 76 00 lea 0x0(%esi),%esi 80103900 <growproc>: { 80103900: 55 push %ebp 80103901: 89 e5 mov %esp,%ebp 80103903: 56 push %esi 80103904: 53 push %ebx 80103905: 8b 75 08 mov 0x8(%ebp),%esi pushcli(); 80103908: e8 63 09 00 00 call 80104270 <pushcli> c = mycpu(); 8010390d: e8 2e fe ff ff call 80103740 <mycpu> p = c->proc; 80103912: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 80103918: e8 93 09 00 00 call 801042b0 <popcli> if(n > 0){ 8010391d: 83 fe 00 cmp $0x0,%esi sz = curproc->sz; 80103920: 8b 03 mov (%ebx),%eax if(n > 0){ 80103922: 7f 1c jg 80103940 <growproc+0x40> } else if(n < 0){ 80103924: 75 3a jne 80103960 <growproc+0x60> switchuvm(curproc); 80103926: 83 ec 0c sub $0xc,%esp curproc->sz = sz; 80103929: 89 03 mov %eax,(%ebx) switchuvm(curproc); 8010392b: 53 push %ebx 8010392c: e8 af 2e 00 00 call 801067e0 <switchuvm> return 0; 80103931: 83 c4 10 add $0x10,%esp 80103934: 31 c0 xor %eax,%eax } 80103936: 8d 65 f8 lea -0x8(%ebp),%esp 80103939: 5b pop %ebx 8010393a: 5e pop %esi 8010393b: 5d pop %ebp 8010393c: c3 ret 8010393d: 8d 76 00 lea 0x0(%esi),%esi if((sz = allocuvm(curproc->pgdir, sz, sz + n)) == 0) 80103940: 83 ec 04 sub $0x4,%esp 80103943: 01 c6 add %eax,%esi 80103945: 56 push %esi 80103946: 50 push %eax 80103947: ff 73 04 pushl 0x4(%ebx) 8010394a: e8 e1 30 00 00 call 80106a30 <allocuvm> 8010394f: 83 c4 10 add $0x10,%esp 80103952: 85 c0 test %eax,%eax 80103954: 75 d0 jne 80103926 <growproc+0x26> return -1; 80103956: b8 ff ff ff ff mov $0xffffffff,%eax 8010395b: eb d9 jmp 80103936 <growproc+0x36> 8010395d: 8d 76 00 lea 0x0(%esi),%esi if((sz = deallocuvm(curproc->pgdir, sz, sz + n)) == 0) 80103960: 83 ec 04 sub $0x4,%esp 80103963: 01 c6 add %eax,%esi 80103965: 56 push %esi 80103966: 50 push %eax 80103967: ff 73 04 pushl 0x4(%ebx) 8010396a: e8 f1 31 00 00 call 80106b60 <deallocuvm> 8010396f: 83 c4 10 add $0x10,%esp 80103972: 85 c0 test %eax,%eax 80103974: 75 b0 jne 80103926 <growproc+0x26> 80103976: eb de jmp 80103956 <growproc+0x56> 80103978: 90 nop 80103979: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103980 <fork>: { 80103980: 55 push %ebp 80103981: 89 e5 mov %esp,%ebp 80103983: 57 push %edi 80103984: 56 push %esi 80103985: 53 push %ebx 80103986: 83 ec 1c sub $0x1c,%esp pushcli(); 80103989: e8 e2 08 00 00 call 80104270 <pushcli> c = mycpu(); 8010398e: e8 ad fd ff ff call 80103740 <mycpu> p = c->proc; 80103993: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 80103999: e8 12 09 00 00 call 801042b0 <popcli> if((np = allocproc()) == 0){ 8010399e: e8 5d fc ff ff call 80103600 <allocproc> 801039a3: 85 c0 test %eax,%eax 801039a5: 89 45 e4 mov %eax,-0x1c(%ebp) 801039a8: 0f 84 b7 00 00 00 je 80103a65 <fork+0xe5> if((np->pgdir = copyuvm(curproc->pgdir, curproc->sz)) == 0){ 801039ae: 83 ec 08 sub $0x8,%esp 801039b1: ff 33 pushl (%ebx) 801039b3: ff 73 04 pushl 0x4(%ebx) 801039b6: 89 c7 mov %eax,%edi 801039b8: e8 23 33 00 00 call 80106ce0 <copyuvm> 801039bd: 83 c4 10 add $0x10,%esp 801039c0: 85 c0 test %eax,%eax 801039c2: 89 47 04 mov %eax,0x4(%edi) 801039c5: 0f 84 a1 00 00 00 je 80103a6c <fork+0xec> np->sz = curproc->sz; 801039cb: 8b 03 mov (%ebx),%eax 801039cd: 8b 4d e4 mov -0x1c(%ebp),%ecx 801039d0: 89 01 mov %eax,(%ecx) np->parent = curproc; 801039d2: 89 59 14 mov %ebx,0x14(%ecx) 801039d5: 89 c8 mov %ecx,%eax *np->tf = *curproc->tf; 801039d7: 8b 79 18 mov 0x18(%ecx),%edi 801039da: 8b 73 18 mov 0x18(%ebx),%esi 801039dd: b9 13 00 00 00 mov $0x13,%ecx 801039e2: f3 a5 rep movsl %ds:(%esi),%es:(%edi) for(i = 0; i < NOFILE; i++) 801039e4: 31 f6 xor %esi,%esi np->tf->eax = 0; 801039e6: 8b 40 18 mov 0x18(%eax),%eax 801039e9: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax) if(curproc->ofile[i]) 801039f0: 8b 44 b3 28 mov 0x28(%ebx,%esi,4),%eax 801039f4: 85 c0 test %eax,%eax 801039f6: 74 13 je 80103a0b <fork+0x8b> np->ofile[i] = filedup(curproc->ofile[i]); 801039f8: 83 ec 0c sub $0xc,%esp 801039fb: 50 push %eax 801039fc: e8 ef d3 ff ff call 80100df0 <filedup> 80103a01: 8b 55 e4 mov -0x1c(%ebp),%edx 80103a04: 83 c4 10 add $0x10,%esp 80103a07: 89 44 b2 28 mov %eax,0x28(%edx,%esi,4) for(i = 0; i < NOFILE; i++) 80103a0b: 83 c6 01 add $0x1,%esi 80103a0e: 83 fe 10 cmp $0x10,%esi 80103a11: 75 dd jne 801039f0 <fork+0x70> np->cwd = idup(curproc->cwd); 80103a13: 83 ec 0c sub $0xc,%esp 80103a16: ff 73 68 pushl 0x68(%ebx) safestrcpy(np->name, curproc->name, sizeof(curproc->name)); 80103a19: 83 c3 6c add $0x6c,%ebx np->cwd = idup(curproc->cwd); 80103a1c: e8 2f dc ff ff call 80101650 <idup> 80103a21: 8b 7d e4 mov -0x1c(%ebp),%edi safestrcpy(np->name, curproc->name, sizeof(curproc->name)); 80103a24: 83 c4 0c add $0xc,%esp np->cwd = idup(curproc->cwd); 80103a27: 89 47 68 mov %eax,0x68(%edi) safestrcpy(np->name, curproc->name, sizeof(curproc->name)); 80103a2a: 8d 47 6c lea 0x6c(%edi),%eax 80103a2d: 6a 10 push $0x10 80103a2f: 53 push %ebx 80103a30: 50 push %eax 80103a31: e8 fa 0b 00 00 call 80104630 <safestrcpy> pid = np->pid; 80103a36: 8b 5f 10 mov 0x10(%edi),%ebx acquire(&ptable.lock); 80103a39: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp) 80103a40: e8 fb 08 00 00 call 80104340 <acquire> np->state = RUNNABLE; 80103a45: c7 47 0c 03 00 00 00 movl $0x3,0xc(%edi) release(&ptable.lock); 80103a4c: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp) 80103a53: e8 a8 09 00 00 call 80104400 <release> return pid; 80103a58: 83 c4 10 add $0x10,%esp } 80103a5b: 8d 65 f4 lea -0xc(%ebp),%esp 80103a5e: 89 d8 mov %ebx,%eax 80103a60: 5b pop %ebx 80103a61: 5e pop %esi 80103a62: 5f pop %edi 80103a63: 5d pop %ebp 80103a64: c3 ret return -1; 80103a65: bb ff ff ff ff mov $0xffffffff,%ebx 80103a6a: eb ef jmp 80103a5b <fork+0xdb> kfree(np->kstack); 80103a6c: 8b 5d e4 mov -0x1c(%ebp),%ebx 80103a6f: 83 ec 0c sub $0xc,%esp 80103a72: ff 73 08 pushl 0x8(%ebx) 80103a75: e8 96 e8 ff ff call 80102310 <kfree> np->kstack = 0; 80103a7a: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) np->state = UNUSED; 80103a81: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) return -1; 80103a88: 83 c4 10 add $0x10,%esp 80103a8b: bb ff ff ff ff mov $0xffffffff,%ebx 80103a90: eb c9 jmp 80103a5b <fork+0xdb> 80103a92: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80103a99: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80103aa0 <scheduler>: { 80103aa0: 55 push %ebp 80103aa1: 89 e5 mov %esp,%ebp 80103aa3: 57 push %edi 80103aa4: 56 push %esi 80103aa5: 53 push %ebx 80103aa6: 83 ec 0c sub $0xc,%esp struct cpu *c = mycpu(); 80103aa9: e8 92 fc ff ff call 80103740 <mycpu> 80103aae: 8d 78 04 lea 0x4(%eax),%edi 80103ab1: 89 c6 mov %eax,%esi c->proc = 0; 80103ab3: c7 80 ac 00 00 00 00 movl $0x0,0xac(%eax) 80103aba: 00 00 00 80103abd: 8d 76 00 lea 0x0(%esi),%esi asm volatile("sti"); 80103ac0: fb sti acquire(&ptable.lock); 80103ac1: 83 ec 0c sub $0xc,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80103ac4: bb 54 2d 11 80 mov $0x80112d54,%ebx acquire(&ptable.lock); 80103ac9: 68 20 2d 11 80 push $0x80112d20 80103ace: e8 6d 08 00 00 call 80104340 <acquire> 80103ad3: 83 c4 10 add $0x10,%esp 80103ad6: 8d 76 00 lea 0x0(%esi),%esi 80103ad9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi if(p->state != RUNNABLE) 80103ae0: 83 7b 0c 03 cmpl $0x3,0xc(%ebx) 80103ae4: 75 33 jne 80103b19 <scheduler+0x79> switchuvm(p); 80103ae6: 83 ec 0c sub $0xc,%esp c->proc = p; 80103ae9: 89 9e ac 00 00 00 mov %ebx,0xac(%esi) switchuvm(p); 80103aef: 53 push %ebx 80103af0: e8 eb 2c 00 00 call 801067e0 <switchuvm> swtch(&(c->scheduler), p->context); 80103af5: 58 pop %eax 80103af6: 5a pop %edx 80103af7: ff 73 1c pushl 0x1c(%ebx) 80103afa: 57 push %edi p->state = RUNNING; 80103afb: c7 43 0c 04 00 00 00 movl $0x4,0xc(%ebx) swtch(&(c->scheduler), p->context); 80103b02: e8 84 0b 00 00 call 8010468b <swtch> switchkvm(); 80103b07: e8 b4 2c 00 00 call 801067c0 <switchkvm> c->proc = 0; 80103b0c: c7 86 ac 00 00 00 00 movl $0x0,0xac(%esi) 80103b13: 00 00 00 80103b16: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80103b19: 83 c3 7c add $0x7c,%ebx 80103b1c: 81 fb 54 4c 11 80 cmp $0x80114c54,%ebx 80103b22: 72 bc jb 80103ae0 <scheduler+0x40> release(&ptable.lock); 80103b24: 83 ec 0c sub $0xc,%esp 80103b27: 68 20 2d 11 80 push $0x80112d20 80103b2c: e8 cf 08 00 00 call 80104400 <release> sti(); 80103b31: 83 c4 10 add $0x10,%esp 80103b34: eb 8a jmp 80103ac0 <scheduler+0x20> 80103b36: 8d 76 00 lea 0x0(%esi),%esi 80103b39: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80103b40 <sched>: { 80103b40: 55 push %ebp 80103b41: 89 e5 mov %esp,%ebp 80103b43: 56 push %esi 80103b44: 53 push %ebx pushcli(); 80103b45: e8 26 07 00 00 call 80104270 <pushcli> c = mycpu(); 80103b4a: e8 f1 fb ff ff call 80103740 <mycpu> p = c->proc; 80103b4f: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 80103b55: e8 56 07 00 00 call 801042b0 <popcli> if(!holding(&ptable.lock)) 80103b5a: 83 ec 0c sub $0xc,%esp 80103b5d: 68 20 2d 11 80 push $0x80112d20 80103b62: e8 a9 07 00 00 call 80104310 <holding> 80103b67: 83 c4 10 add $0x10,%esp 80103b6a: 85 c0 test %eax,%eax 80103b6c: 74 4f je 80103bbd <sched+0x7d> if(mycpu()->ncli != 1) 80103b6e: e8 cd fb ff ff call 80103740 <mycpu> 80103b73: 83 b8 a4 00 00 00 01 cmpl $0x1,0xa4(%eax) 80103b7a: 75 68 jne 80103be4 <sched+0xa4> if(p->state == RUNNING) 80103b7c: 83 7b 0c 04 cmpl $0x4,0xc(%ebx) 80103b80: 74 55 je 80103bd7 <sched+0x97> asm volatile("pushfl; popl %0" : "=r" (eflags)); 80103b82: 9c pushf 80103b83: 58 pop %eax if(readeflags()&FL_IF) 80103b84: f6 c4 02 test $0x2,%ah 80103b87: 75 41 jne 80103bca <sched+0x8a> intena = mycpu()->intena; 80103b89: e8 b2 fb ff ff call 80103740 <mycpu> swtch(&p->context, mycpu()->scheduler); 80103b8e: 83 c3 1c add $0x1c,%ebx intena = mycpu()->intena; 80103b91: 8b b0 a8 00 00 00 mov 0xa8(%eax),%esi swtch(&p->context, mycpu()->scheduler); 80103b97: e8 a4 fb ff ff call 80103740 <mycpu> 80103b9c: 83 ec 08 sub $0x8,%esp 80103b9f: ff 70 04 pushl 0x4(%eax) 80103ba2: 53 push %ebx 80103ba3: e8 e3 0a 00 00 call 8010468b <swtch> mycpu()->intena = intena; 80103ba8: e8 93 fb ff ff call 80103740 <mycpu> } 80103bad: 83 c4 10 add $0x10,%esp mycpu()->intena = intena; 80103bb0: 89 b0 a8 00 00 00 mov %esi,0xa8(%eax) } 80103bb6: 8d 65 f8 lea -0x8(%ebp),%esp 80103bb9: 5b pop %ebx 80103bba: 5e pop %esi 80103bbb: 5d pop %ebp 80103bbc: c3 ret panic("sched ptable.lock"); 80103bbd: 83 ec 0c sub $0xc,%esp 80103bc0: 68 50 74 10 80 push $0x80107450 80103bc5: e8 c6 c7 ff ff call 80100390 <panic> panic("sched interruptible"); 80103bca: 83 ec 0c sub $0xc,%esp 80103bcd: 68 7c 74 10 80 push $0x8010747c 80103bd2: e8 b9 c7 ff ff call 80100390 <panic> panic("sched running"); 80103bd7: 83 ec 0c sub $0xc,%esp 80103bda: 68 6e 74 10 80 push $0x8010746e 80103bdf: e8 ac c7 ff ff call 80100390 <panic> panic("sched locks"); 80103be4: 83 ec 0c sub $0xc,%esp 80103be7: 68 62 74 10 80 push $0x80107462 80103bec: e8 9f c7 ff ff call 80100390 <panic> 80103bf1: eb 0d jmp 80103c00 <exit> 80103bf3: 90 nop 80103bf4: 90 nop 80103bf5: 90 nop 80103bf6: 90 nop 80103bf7: 90 nop 80103bf8: 90 nop 80103bf9: 90 nop 80103bfa: 90 nop 80103bfb: 90 nop 80103bfc: 90 nop 80103bfd: 90 nop 80103bfe: 90 nop 80103bff: 90 nop 80103c00 <exit>: { 80103c00: 55 push %ebp 80103c01: 89 e5 mov %esp,%ebp 80103c03: 57 push %edi 80103c04: 56 push %esi 80103c05: 53 push %ebx 80103c06: 83 ec 0c sub $0xc,%esp pushcli(); 80103c09: e8 62 06 00 00 call 80104270 <pushcli> c = mycpu(); 80103c0e: e8 2d fb ff ff call 80103740 <mycpu> p = c->proc; 80103c13: 8b b0 ac 00 00 00 mov 0xac(%eax),%esi popcli(); 80103c19: e8 92 06 00 00 call 801042b0 <popcli> if(curproc == initproc) 80103c1e: 39 35 b8 a5 10 80 cmp %esi,0x8010a5b8 80103c24: 8d 5e 28 lea 0x28(%esi),%ebx 80103c27: 8d 7e 68 lea 0x68(%esi),%edi 80103c2a: 0f 84 e7 00 00 00 je 80103d17 <exit+0x117> if(curproc->ofile[fd]){ 80103c30: 8b 03 mov (%ebx),%eax 80103c32: 85 c0 test %eax,%eax 80103c34: 74 12 je 80103c48 <exit+0x48> fileclose(curproc->ofile[fd]); 80103c36: 83 ec 0c sub $0xc,%esp 80103c39: 50 push %eax 80103c3a: e8 01 d2 ff ff call 80100e40 <fileclose> curproc->ofile[fd] = 0; 80103c3f: c7 03 00 00 00 00 movl $0x0,(%ebx) 80103c45: 83 c4 10 add $0x10,%esp 80103c48: 83 c3 04 add $0x4,%ebx for(fd = 0; fd < NOFILE; fd++){ 80103c4b: 39 fb cmp %edi,%ebx 80103c4d: 75 e1 jne 80103c30 <exit+0x30> begin_op(); 80103c4f: e8 4c ef ff ff call 80102ba0 <begin_op> iput(curproc->cwd); 80103c54: 83 ec 0c sub $0xc,%esp 80103c57: ff 76 68 pushl 0x68(%esi) 80103c5a: e8 51 db ff ff call 801017b0 <iput> end_op(); 80103c5f: e8 ac ef ff ff call 80102c10 <end_op> curproc->cwd = 0; 80103c64: c7 46 68 00 00 00 00 movl $0x0,0x68(%esi) acquire(&ptable.lock); 80103c6b: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp) 80103c72: e8 c9 06 00 00 call 80104340 <acquire> wakeup1(curproc->parent); 80103c77: 8b 56 14 mov 0x14(%esi),%edx 80103c7a: 83 c4 10 add $0x10,%esp static void wakeup1(void *chan) { struct proc *p; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103c7d: b8 54 2d 11 80 mov $0x80112d54,%eax 80103c82: eb 0e jmp 80103c92 <exit+0x92> 80103c84: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80103c88: 83 c0 7c add $0x7c,%eax 80103c8b: 3d 54 4c 11 80 cmp $0x80114c54,%eax 80103c90: 73 1c jae 80103cae <exit+0xae> if(p->state == SLEEPING && p->chan == chan) 80103c92: 83 78 0c 02 cmpl $0x2,0xc(%eax) 80103c96: 75 f0 jne 80103c88 <exit+0x88> 80103c98: 3b 50 20 cmp 0x20(%eax),%edx 80103c9b: 75 eb jne 80103c88 <exit+0x88> p->state = RUNNABLE; 80103c9d: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103ca4: 83 c0 7c add $0x7c,%eax 80103ca7: 3d 54 4c 11 80 cmp $0x80114c54,%eax 80103cac: 72 e4 jb 80103c92 <exit+0x92> p->parent = initproc; 80103cae: 8b 0d b8 a5 10 80 mov 0x8010a5b8,%ecx for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80103cb4: ba 54 2d 11 80 mov $0x80112d54,%edx 80103cb9: eb 10 jmp 80103ccb <exit+0xcb> 80103cbb: 90 nop 80103cbc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80103cc0: 83 c2 7c add $0x7c,%edx 80103cc3: 81 fa 54 4c 11 80 cmp $0x80114c54,%edx 80103cc9: 73 33 jae 80103cfe <exit+0xfe> if(p->parent == curproc){ 80103ccb: 39 72 14 cmp %esi,0x14(%edx) 80103cce: 75 f0 jne 80103cc0 <exit+0xc0> if(p->state == ZOMBIE) 80103cd0: 83 7a 0c 05 cmpl $0x5,0xc(%edx) p->parent = initproc; 80103cd4: 89 4a 14 mov %ecx,0x14(%edx) if(p->state == ZOMBIE) 80103cd7: 75 e7 jne 80103cc0 <exit+0xc0> for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103cd9: b8 54 2d 11 80 mov $0x80112d54,%eax 80103cde: eb 0a jmp 80103cea <exit+0xea> 80103ce0: 83 c0 7c add $0x7c,%eax 80103ce3: 3d 54 4c 11 80 cmp $0x80114c54,%eax 80103ce8: 73 d6 jae 80103cc0 <exit+0xc0> if(p->state == SLEEPING && p->chan == chan) 80103cea: 83 78 0c 02 cmpl $0x2,0xc(%eax) 80103cee: 75 f0 jne 80103ce0 <exit+0xe0> 80103cf0: 3b 48 20 cmp 0x20(%eax),%ecx 80103cf3: 75 eb jne 80103ce0 <exit+0xe0> p->state = RUNNABLE; 80103cf5: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) 80103cfc: eb e2 jmp 80103ce0 <exit+0xe0> curproc->state = ZOMBIE; 80103cfe: c7 46 0c 05 00 00 00 movl $0x5,0xc(%esi) sched(); 80103d05: e8 36 fe ff ff call 80103b40 <sched> panic("zombie exit"); 80103d0a: 83 ec 0c sub $0xc,%esp 80103d0d: 68 9d 74 10 80 push $0x8010749d 80103d12: e8 79 c6 ff ff call 80100390 <panic> panic("init exiting"); 80103d17: 83 ec 0c sub $0xc,%esp 80103d1a: 68 90 74 10 80 push $0x80107490 80103d1f: e8 6c c6 ff ff call 80100390 <panic> 80103d24: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80103d2a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80103d30 <yield>: { 80103d30: 55 push %ebp 80103d31: 89 e5 mov %esp,%ebp 80103d33: 53 push %ebx 80103d34: 83 ec 10 sub $0x10,%esp acquire(&ptable.lock); //DOC: yieldlock 80103d37: 68 20 2d 11 80 push $0x80112d20 80103d3c: e8 ff 05 00 00 call 80104340 <acquire> pushcli(); 80103d41: e8 2a 05 00 00 call 80104270 <pushcli> c = mycpu(); 80103d46: e8 f5 f9 ff ff call 80103740 <mycpu> p = c->proc; 80103d4b: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 80103d51: e8 5a 05 00 00 call 801042b0 <popcli> myproc()->state = RUNNABLE; 80103d56: c7 43 0c 03 00 00 00 movl $0x3,0xc(%ebx) sched(); 80103d5d: e8 de fd ff ff call 80103b40 <sched> release(&ptable.lock); 80103d62: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp) 80103d69: e8 92 06 00 00 call 80104400 <release> } 80103d6e: 83 c4 10 add $0x10,%esp 80103d71: 8b 5d fc mov -0x4(%ebp),%ebx 80103d74: c9 leave 80103d75: c3 ret 80103d76: 8d 76 00 lea 0x0(%esi),%esi 80103d79: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80103d80 <sleep>: { 80103d80: 55 push %ebp 80103d81: 89 e5 mov %esp,%ebp 80103d83: 57 push %edi 80103d84: 56 push %esi 80103d85: 53 push %ebx 80103d86: 83 ec 0c sub $0xc,%esp 80103d89: 8b 7d 08 mov 0x8(%ebp),%edi 80103d8c: 8b 75 0c mov 0xc(%ebp),%esi pushcli(); 80103d8f: e8 dc 04 00 00 call 80104270 <pushcli> c = mycpu(); 80103d94: e8 a7 f9 ff ff call 80103740 <mycpu> p = c->proc; 80103d99: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx popcli(); 80103d9f: e8 0c 05 00 00 call 801042b0 <popcli> if(p == 0) 80103da4: 85 db test %ebx,%ebx 80103da6: 0f 84 87 00 00 00 je 80103e33 <sleep+0xb3> if(lk == 0) 80103dac: 85 f6 test %esi,%esi 80103dae: 74 76 je 80103e26 <sleep+0xa6> if(lk != &ptable.lock){ //DOC: sleeplock0 80103db0: 81 fe 20 2d 11 80 cmp $0x80112d20,%esi 80103db6: 74 50 je 80103e08 <sleep+0x88> acquire(&ptable.lock); //DOC: sleeplock1 80103db8: 83 ec 0c sub $0xc,%esp 80103dbb: 68 20 2d 11 80 push $0x80112d20 80103dc0: e8 7b 05 00 00 call 80104340 <acquire> release(lk); 80103dc5: 89 34 24 mov %esi,(%esp) 80103dc8: e8 33 06 00 00 call 80104400 <release> p->chan = chan; 80103dcd: 89 7b 20 mov %edi,0x20(%ebx) p->state = SLEEPING; 80103dd0: c7 43 0c 02 00 00 00 movl $0x2,0xc(%ebx) sched(); 80103dd7: e8 64 fd ff ff call 80103b40 <sched> p->chan = 0; 80103ddc: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx) release(&ptable.lock); 80103de3: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp) 80103dea: e8 11 06 00 00 call 80104400 <release> acquire(lk); 80103def: 89 75 08 mov %esi,0x8(%ebp) 80103df2: 83 c4 10 add $0x10,%esp } 80103df5: 8d 65 f4 lea -0xc(%ebp),%esp 80103df8: 5b pop %ebx 80103df9: 5e pop %esi 80103dfa: 5f pop %edi 80103dfb: 5d pop %ebp acquire(lk); 80103dfc: e9 3f 05 00 00 jmp 80104340 <acquire> 80103e01: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi p->chan = chan; 80103e08: 89 7b 20 mov %edi,0x20(%ebx) p->state = SLEEPING; 80103e0b: c7 43 0c 02 00 00 00 movl $0x2,0xc(%ebx) sched(); 80103e12: e8 29 fd ff ff call 80103b40 <sched> p->chan = 0; 80103e17: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx) } 80103e1e: 8d 65 f4 lea -0xc(%ebp),%esp 80103e21: 5b pop %ebx 80103e22: 5e pop %esi 80103e23: 5f pop %edi 80103e24: 5d pop %ebp 80103e25: c3 ret panic("sleep without lk"); 80103e26: 83 ec 0c sub $0xc,%esp 80103e29: 68 af 74 10 80 push $0x801074af 80103e2e: e8 5d c5 ff ff call 80100390 <panic> panic("sleep"); 80103e33: 83 ec 0c sub $0xc,%esp 80103e36: 68 a9 74 10 80 push $0x801074a9 80103e3b: e8 50 c5 ff ff call 80100390 <panic> 80103e40 <wait>: { 80103e40: 55 push %ebp 80103e41: 89 e5 mov %esp,%ebp 80103e43: 56 push %esi 80103e44: 53 push %ebx pushcli(); 80103e45: e8 26 04 00 00 call 80104270 <pushcli> c = mycpu(); 80103e4a: e8 f1 f8 ff ff call 80103740 <mycpu> p = c->proc; 80103e4f: 8b b0 ac 00 00 00 mov 0xac(%eax),%esi popcli(); 80103e55: e8 56 04 00 00 call 801042b0 <popcli> acquire(&ptable.lock); 80103e5a: 83 ec 0c sub $0xc,%esp 80103e5d: 68 20 2d 11 80 push $0x80112d20 80103e62: e8 d9 04 00 00 call 80104340 <acquire> 80103e67: 83 c4 10 add $0x10,%esp havekids = 0; 80103e6a: 31 c0 xor %eax,%eax for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80103e6c: bb 54 2d 11 80 mov $0x80112d54,%ebx 80103e71: eb 10 jmp 80103e83 <wait+0x43> 80103e73: 90 nop 80103e74: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80103e78: 83 c3 7c add $0x7c,%ebx 80103e7b: 81 fb 54 4c 11 80 cmp $0x80114c54,%ebx 80103e81: 73 1b jae 80103e9e <wait+0x5e> if(p->parent != curproc) 80103e83: 39 73 14 cmp %esi,0x14(%ebx) 80103e86: 75 f0 jne 80103e78 <wait+0x38> if(p->state == ZOMBIE){ 80103e88: 83 7b 0c 05 cmpl $0x5,0xc(%ebx) 80103e8c: 74 32 je 80103ec0 <wait+0x80> for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80103e8e: 83 c3 7c add $0x7c,%ebx havekids = 1; 80103e91: b8 01 00 00 00 mov $0x1,%eax for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80103e96: 81 fb 54 4c 11 80 cmp $0x80114c54,%ebx 80103e9c: 72 e5 jb 80103e83 <wait+0x43> if(!havekids || curproc->killed){ 80103e9e: 85 c0 test %eax,%eax 80103ea0: 74 74 je 80103f16 <wait+0xd6> 80103ea2: 8b 46 24 mov 0x24(%esi),%eax 80103ea5: 85 c0 test %eax,%eax 80103ea7: 75 6d jne 80103f16 <wait+0xd6> sleep(curproc, &ptable.lock); //DOC: wait-sleep 80103ea9: 83 ec 08 sub $0x8,%esp 80103eac: 68 20 2d 11 80 push $0x80112d20 80103eb1: 56 push %esi 80103eb2: e8 c9 fe ff ff call 80103d80 <sleep> havekids = 0; 80103eb7: 83 c4 10 add $0x10,%esp 80103eba: eb ae jmp 80103e6a <wait+0x2a> 80103ebc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi kfree(p->kstack); 80103ec0: 83 ec 0c sub $0xc,%esp 80103ec3: ff 73 08 pushl 0x8(%ebx) pid = p->pid; 80103ec6: 8b 73 10 mov 0x10(%ebx),%esi kfree(p->kstack); 80103ec9: e8 42 e4 ff ff call 80102310 <kfree> freevm(p->pgdir); 80103ece: 5a pop %edx 80103ecf: ff 73 04 pushl 0x4(%ebx) p->kstack = 0; 80103ed2: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) freevm(p->pgdir); 80103ed9: e8 b2 2c 00 00 call 80106b90 <freevm> release(&ptable.lock); 80103ede: c7 04 24 20 2d 11 80 movl $0x80112d20,(%esp) p->pid = 0; 80103ee5: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx) p->parent = 0; 80103eec: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx) p->name[0] = 0; 80103ef3: c6 43 6c 00 movb $0x0,0x6c(%ebx) p->killed = 0; 80103ef7: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx) p->state = UNUSED; 80103efe: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) release(&ptable.lock); 80103f05: e8 f6 04 00 00 call 80104400 <release> return pid; 80103f0a: 83 c4 10 add $0x10,%esp } 80103f0d: 8d 65 f8 lea -0x8(%ebp),%esp 80103f10: 89 f0 mov %esi,%eax 80103f12: 5b pop %ebx 80103f13: 5e pop %esi 80103f14: 5d pop %ebp 80103f15: c3 ret release(&ptable.lock); 80103f16: 83 ec 0c sub $0xc,%esp return -1; 80103f19: be ff ff ff ff mov $0xffffffff,%esi release(&ptable.lock); 80103f1e: 68 20 2d 11 80 push $0x80112d20 80103f23: e8 d8 04 00 00 call 80104400 <release> return -1; 80103f28: 83 c4 10 add $0x10,%esp 80103f2b: eb e0 jmp 80103f0d <wait+0xcd> 80103f2d: 8d 76 00 lea 0x0(%esi),%esi 80103f30 <wakeup>: } // Wake up all processes sleeping on chan. void wakeup(void *chan) { 80103f30: 55 push %ebp 80103f31: 89 e5 mov %esp,%ebp 80103f33: 53 push %ebx 80103f34: 83 ec 10 sub $0x10,%esp 80103f37: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&ptable.lock); 80103f3a: 68 20 2d 11 80 push $0x80112d20 80103f3f: e8 fc 03 00 00 call 80104340 <acquire> 80103f44: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103f47: b8 54 2d 11 80 mov $0x80112d54,%eax 80103f4c: eb 0c jmp 80103f5a <wakeup+0x2a> 80103f4e: 66 90 xchg %ax,%ax 80103f50: 83 c0 7c add $0x7c,%eax 80103f53: 3d 54 4c 11 80 cmp $0x80114c54,%eax 80103f58: 73 1c jae 80103f76 <wakeup+0x46> if(p->state == SLEEPING && p->chan == chan) 80103f5a: 83 78 0c 02 cmpl $0x2,0xc(%eax) 80103f5e: 75 f0 jne 80103f50 <wakeup+0x20> 80103f60: 3b 58 20 cmp 0x20(%eax),%ebx 80103f63: 75 eb jne 80103f50 <wakeup+0x20> p->state = RUNNABLE; 80103f65: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) for(p = ptable.proc; p < &ptable.proc[NPROC]; p++) 80103f6c: 83 c0 7c add $0x7c,%eax 80103f6f: 3d 54 4c 11 80 cmp $0x80114c54,%eax 80103f74: 72 e4 jb 80103f5a <wakeup+0x2a> wakeup1(chan); release(&ptable.lock); 80103f76: c7 45 08 20 2d 11 80 movl $0x80112d20,0x8(%ebp) } 80103f7d: 8b 5d fc mov -0x4(%ebp),%ebx 80103f80: c9 leave release(&ptable.lock); 80103f81: e9 7a 04 00 00 jmp 80104400 <release> 80103f86: 8d 76 00 lea 0x0(%esi),%esi 80103f89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80103f90 <kill>: // Kill the process with the given pid. // Process won't exit until it returns // to user space (see trap in trap.c). int kill(int pid) { 80103f90: 55 push %ebp 80103f91: 89 e5 mov %esp,%ebp 80103f93: 53 push %ebx 80103f94: 83 ec 10 sub $0x10,%esp 80103f97: 8b 5d 08 mov 0x8(%ebp),%ebx struct proc *p; acquire(&ptable.lock); 80103f9a: 68 20 2d 11 80 push $0x80112d20 80103f9f: e8 9c 03 00 00 call 80104340 <acquire> 80103fa4: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80103fa7: b8 54 2d 11 80 mov $0x80112d54,%eax 80103fac: eb 0c jmp 80103fba <kill+0x2a> 80103fae: 66 90 xchg %ax,%ax 80103fb0: 83 c0 7c add $0x7c,%eax 80103fb3: 3d 54 4c 11 80 cmp $0x80114c54,%eax 80103fb8: 73 36 jae 80103ff0 <kill+0x60> if(p->pid == pid){ 80103fba: 39 58 10 cmp %ebx,0x10(%eax) 80103fbd: 75 f1 jne 80103fb0 <kill+0x20> p->killed = 1; // Wake process from sleep if necessary. if(p->state == SLEEPING) 80103fbf: 83 78 0c 02 cmpl $0x2,0xc(%eax) p->killed = 1; 80103fc3: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax) if(p->state == SLEEPING) 80103fca: 75 07 jne 80103fd3 <kill+0x43> p->state = RUNNABLE; 80103fcc: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax) release(&ptable.lock); 80103fd3: 83 ec 0c sub $0xc,%esp 80103fd6: 68 20 2d 11 80 push $0x80112d20 80103fdb: e8 20 04 00 00 call 80104400 <release> return 0; 80103fe0: 83 c4 10 add $0x10,%esp 80103fe3: 31 c0 xor %eax,%eax } } release(&ptable.lock); return -1; } 80103fe5: 8b 5d fc mov -0x4(%ebp),%ebx 80103fe8: c9 leave 80103fe9: c3 ret 80103fea: 8d b6 00 00 00 00 lea 0x0(%esi),%esi release(&ptable.lock); 80103ff0: 83 ec 0c sub $0xc,%esp 80103ff3: 68 20 2d 11 80 push $0x80112d20 80103ff8: e8 03 04 00 00 call 80104400 <release> return -1; 80103ffd: 83 c4 10 add $0x10,%esp 80104000: b8 ff ff ff ff mov $0xffffffff,%eax } 80104005: 8b 5d fc mov -0x4(%ebp),%ebx 80104008: c9 leave 80104009: c3 ret 8010400a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104010 <procdump>: // Print a process listing to console. For debugging. // Runs when user types ^P on console. // No lock to avoid wedging a stuck machine further. void procdump(void) { 80104010: 55 push %ebp 80104011: 89 e5 mov %esp,%ebp 80104013: 57 push %edi 80104014: 56 push %esi 80104015: 53 push %ebx 80104016: 8d 75 e8 lea -0x18(%ebp),%esi int i; struct proc *p; char *state; uint pc[10]; for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104019: bb 54 2d 11 80 mov $0x80112d54,%ebx { 8010401e: 83 ec 3c sub $0x3c,%esp 80104021: eb 24 jmp 80104047 <procdump+0x37> 80104023: 90 nop 80104024: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(p->state == SLEEPING){ getcallerpcs((uint*)p->context->ebp+2, pc); for(i=0; i<10 && pc[i] != 0; i++) cprintf(" %p", pc[i]); } cprintf("\n"); 80104028: 83 ec 0c sub $0xc,%esp 8010402b: 68 37 78 10 80 push $0x80107837 80104030: e8 2b c6 ff ff call 80100660 <cprintf> 80104035: 83 c4 10 add $0x10,%esp for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){ 80104038: 83 c3 7c add $0x7c,%ebx 8010403b: 81 fb 54 4c 11 80 cmp $0x80114c54,%ebx 80104041: 0f 83 81 00 00 00 jae 801040c8 <procdump+0xb8> if(p->state == UNUSED) 80104047: 8b 43 0c mov 0xc(%ebx),%eax 8010404a: 85 c0 test %eax,%eax 8010404c: 74 ea je 80104038 <procdump+0x28> if(p->state >= 0 && p->state < NELEM(states) && states[p->state]) 8010404e: 83 f8 05 cmp $0x5,%eax state = "???"; 80104051: ba c0 74 10 80 mov $0x801074c0,%edx if(p->state >= 0 && p->state < NELEM(states) && states[p->state]) 80104056: 77 11 ja 80104069 <procdump+0x59> 80104058: 8b 14 85 20 75 10 80 mov -0x7fef8ae0(,%eax,4),%edx state = "???"; 8010405f: b8 c0 74 10 80 mov $0x801074c0,%eax 80104064: 85 d2 test %edx,%edx 80104066: 0f 44 d0 cmove %eax,%edx cprintf("%d %s %s", p->pid, state, p->name); 80104069: 8d 43 6c lea 0x6c(%ebx),%eax 8010406c: 50 push %eax 8010406d: 52 push %edx 8010406e: ff 73 10 pushl 0x10(%ebx) 80104071: 68 c4 74 10 80 push $0x801074c4 80104076: e8 e5 c5 ff ff call 80100660 <cprintf> if(p->state == SLEEPING){ 8010407b: 83 c4 10 add $0x10,%esp 8010407e: 83 7b 0c 02 cmpl $0x2,0xc(%ebx) 80104082: 75 a4 jne 80104028 <procdump+0x18> getcallerpcs((uint*)p->context->ebp+2, pc); 80104084: 8d 45 c0 lea -0x40(%ebp),%eax 80104087: 83 ec 08 sub $0x8,%esp 8010408a: 8d 7d c0 lea -0x40(%ebp),%edi 8010408d: 50 push %eax 8010408e: 8b 43 1c mov 0x1c(%ebx),%eax 80104091: 8b 40 0c mov 0xc(%eax),%eax 80104094: 83 c0 08 add $0x8,%eax 80104097: 50 push %eax 80104098: e8 83 01 00 00 call 80104220 <getcallerpcs> 8010409d: 83 c4 10 add $0x10,%esp for(i=0; i<10 && pc[i] != 0; i++) 801040a0: 8b 17 mov (%edi),%edx 801040a2: 85 d2 test %edx,%edx 801040a4: 74 82 je 80104028 <procdump+0x18> cprintf(" %p", pc[i]); 801040a6: 83 ec 08 sub $0x8,%esp 801040a9: 83 c7 04 add $0x4,%edi 801040ac: 52 push %edx 801040ad: 68 01 6f 10 80 push $0x80106f01 801040b2: e8 a9 c5 ff ff call 80100660 <cprintf> for(i=0; i<10 && pc[i] != 0; i++) 801040b7: 83 c4 10 add $0x10,%esp 801040ba: 39 fe cmp %edi,%esi 801040bc: 75 e2 jne 801040a0 <procdump+0x90> 801040be: e9 65 ff ff ff jmp 80104028 <procdump+0x18> 801040c3: 90 nop 801040c4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi } } 801040c8: 8d 65 f4 lea -0xc(%ebp),%esp 801040cb: 5b pop %ebx 801040cc: 5e pop %esi 801040cd: 5f pop %edi 801040ce: 5d pop %ebp 801040cf: c3 ret 801040d0 <initsleeplock>: #include "spinlock.h" #include "sleeplock.h" void initsleeplock(struct sleeplock *lk, char *name) { 801040d0: 55 push %ebp 801040d1: 89 e5 mov %esp,%ebp 801040d3: 53 push %ebx 801040d4: 83 ec 0c sub $0xc,%esp 801040d7: 8b 5d 08 mov 0x8(%ebp),%ebx initlock(&lk->lk, "sleep lock"); 801040da: 68 38 75 10 80 push $0x80107538 801040df: 8d 43 04 lea 0x4(%ebx),%eax 801040e2: 50 push %eax 801040e3: e8 18 01 00 00 call 80104200 <initlock> lk->name = name; 801040e8: 8b 45 0c mov 0xc(%ebp),%eax lk->locked = 0; 801040eb: c7 03 00 00 00 00 movl $0x0,(%ebx) lk->pid = 0; } 801040f1: 83 c4 10 add $0x10,%esp lk->pid = 0; 801040f4: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx) lk->name = name; 801040fb: 89 43 38 mov %eax,0x38(%ebx) } 801040fe: 8b 5d fc mov -0x4(%ebp),%ebx 80104101: c9 leave 80104102: c3 ret 80104103: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104109: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104110 <acquiresleep>: void acquiresleep(struct sleeplock *lk) { 80104110: 55 push %ebp 80104111: 89 e5 mov %esp,%ebp 80104113: 56 push %esi 80104114: 53 push %ebx 80104115: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&lk->lk); 80104118: 83 ec 0c sub $0xc,%esp 8010411b: 8d 73 04 lea 0x4(%ebx),%esi 8010411e: 56 push %esi 8010411f: e8 1c 02 00 00 call 80104340 <acquire> while (lk->locked) { 80104124: 8b 13 mov (%ebx),%edx 80104126: 83 c4 10 add $0x10,%esp 80104129: 85 d2 test %edx,%edx 8010412b: 74 16 je 80104143 <acquiresleep+0x33> 8010412d: 8d 76 00 lea 0x0(%esi),%esi sleep(lk, &lk->lk); 80104130: 83 ec 08 sub $0x8,%esp 80104133: 56 push %esi 80104134: 53 push %ebx 80104135: e8 46 fc ff ff call 80103d80 <sleep> while (lk->locked) { 8010413a: 8b 03 mov (%ebx),%eax 8010413c: 83 c4 10 add $0x10,%esp 8010413f: 85 c0 test %eax,%eax 80104141: 75 ed jne 80104130 <acquiresleep+0x20> } lk->locked = 1; 80104143: c7 03 01 00 00 00 movl $0x1,(%ebx) lk->pid = myproc()->pid; 80104149: e8 92 f6 ff ff call 801037e0 <myproc> 8010414e: 8b 40 10 mov 0x10(%eax),%eax 80104151: 89 43 3c mov %eax,0x3c(%ebx) release(&lk->lk); 80104154: 89 75 08 mov %esi,0x8(%ebp) } 80104157: 8d 65 f8 lea -0x8(%ebp),%esp 8010415a: 5b pop %ebx 8010415b: 5e pop %esi 8010415c: 5d pop %ebp release(&lk->lk); 8010415d: e9 9e 02 00 00 jmp 80104400 <release> 80104162: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104169: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104170 <releasesleep>: void releasesleep(struct sleeplock *lk) { 80104170: 55 push %ebp 80104171: 89 e5 mov %esp,%ebp 80104173: 56 push %esi 80104174: 53 push %ebx 80104175: 8b 5d 08 mov 0x8(%ebp),%ebx acquire(&lk->lk); 80104178: 83 ec 0c sub $0xc,%esp 8010417b: 8d 73 04 lea 0x4(%ebx),%esi 8010417e: 56 push %esi 8010417f: e8 bc 01 00 00 call 80104340 <acquire> lk->locked = 0; 80104184: c7 03 00 00 00 00 movl $0x0,(%ebx) lk->pid = 0; 8010418a: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx) wakeup(lk); 80104191: 89 1c 24 mov %ebx,(%esp) 80104194: e8 97 fd ff ff call 80103f30 <wakeup> release(&lk->lk); 80104199: 89 75 08 mov %esi,0x8(%ebp) 8010419c: 83 c4 10 add $0x10,%esp } 8010419f: 8d 65 f8 lea -0x8(%ebp),%esp 801041a2: 5b pop %ebx 801041a3: 5e pop %esi 801041a4: 5d pop %ebp release(&lk->lk); 801041a5: e9 56 02 00 00 jmp 80104400 <release> 801041aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801041b0 <holdingsleep>: int holdingsleep(struct sleeplock *lk) { 801041b0: 55 push %ebp 801041b1: 89 e5 mov %esp,%ebp 801041b3: 57 push %edi 801041b4: 56 push %esi 801041b5: 53 push %ebx 801041b6: 31 ff xor %edi,%edi 801041b8: 83 ec 18 sub $0x18,%esp 801041bb: 8b 5d 08 mov 0x8(%ebp),%ebx int r; acquire(&lk->lk); 801041be: 8d 73 04 lea 0x4(%ebx),%esi 801041c1: 56 push %esi 801041c2: e8 79 01 00 00 call 80104340 <acquire> r = lk->locked && (lk->pid == myproc()->pid); 801041c7: 8b 03 mov (%ebx),%eax 801041c9: 83 c4 10 add $0x10,%esp 801041cc: 85 c0 test %eax,%eax 801041ce: 74 13 je 801041e3 <holdingsleep+0x33> 801041d0: 8b 5b 3c mov 0x3c(%ebx),%ebx 801041d3: e8 08 f6 ff ff call 801037e0 <myproc> 801041d8: 39 58 10 cmp %ebx,0x10(%eax) 801041db: 0f 94 c0 sete %al 801041de: 0f b6 c0 movzbl %al,%eax 801041e1: 89 c7 mov %eax,%edi release(&lk->lk); 801041e3: 83 ec 0c sub $0xc,%esp 801041e6: 56 push %esi 801041e7: e8 14 02 00 00 call 80104400 <release> return r; } 801041ec: 8d 65 f4 lea -0xc(%ebp),%esp 801041ef: 89 f8 mov %edi,%eax 801041f1: 5b pop %ebx 801041f2: 5e pop %esi 801041f3: 5f pop %edi 801041f4: 5d pop %ebp 801041f5: c3 ret 801041f6: 66 90 xchg %ax,%ax 801041f8: 66 90 xchg %ax,%ax 801041fa: 66 90 xchg %ax,%ax 801041fc: 66 90 xchg %ax,%ax 801041fe: 66 90 xchg %ax,%ax 80104200 <initlock>: #include "proc.h" #include "spinlock.h" void initlock(struct spinlock *lk, char *name) { 80104200: 55 push %ebp 80104201: 89 e5 mov %esp,%ebp 80104203: 8b 45 08 mov 0x8(%ebp),%eax lk->name = name; 80104206: 8b 55 0c mov 0xc(%ebp),%edx lk->locked = 0; 80104209: c7 00 00 00 00 00 movl $0x0,(%eax) lk->name = name; 8010420f: 89 50 04 mov %edx,0x4(%eax) lk->cpu = 0; 80104212: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax) } 80104219: 5d pop %ebp 8010421a: c3 ret 8010421b: 90 nop 8010421c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104220 <getcallerpcs>: } // Record the current call stack in pcs[] by following the %ebp chain. void getcallerpcs(void *v, uint pcs[]) { 80104220: 55 push %ebp uint *ebp; int i; ebp = (uint*)v - 2; for(i = 0; i < 10; i++){ 80104221: 31 d2 xor %edx,%edx { 80104223: 89 e5 mov %esp,%ebp 80104225: 53 push %ebx ebp = (uint*)v - 2; 80104226: 8b 45 08 mov 0x8(%ebp),%eax { 80104229: 8b 4d 0c mov 0xc(%ebp),%ecx ebp = (uint*)v - 2; 8010422c: 83 e8 08 sub $0x8,%eax 8010422f: 90 nop if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) 80104230: 8d 98 00 00 00 80 lea -0x80000000(%eax),%ebx 80104236: 81 fb fe ff ff 7f cmp $0x7ffffffe,%ebx 8010423c: 77 1a ja 80104258 <getcallerpcs+0x38> break; pcs[i] = ebp[1]; // saved %eip 8010423e: 8b 58 04 mov 0x4(%eax),%ebx 80104241: 89 1c 91 mov %ebx,(%ecx,%edx,4) for(i = 0; i < 10; i++){ 80104244: 83 c2 01 add $0x1,%edx ebp = (uint*)ebp[0]; // saved %ebp 80104247: 8b 00 mov (%eax),%eax for(i = 0; i < 10; i++){ 80104249: 83 fa 0a cmp $0xa,%edx 8010424c: 75 e2 jne 80104230 <getcallerpcs+0x10> } for(; i < 10; i++) pcs[i] = 0; } 8010424e: 5b pop %ebx 8010424f: 5d pop %ebp 80104250: c3 ret 80104251: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104258: 8d 04 91 lea (%ecx,%edx,4),%eax 8010425b: 83 c1 28 add $0x28,%ecx 8010425e: 66 90 xchg %ax,%ax pcs[i] = 0; 80104260: c7 00 00 00 00 00 movl $0x0,(%eax) 80104266: 83 c0 04 add $0x4,%eax for(; i < 10; i++) 80104269: 39 c1 cmp %eax,%ecx 8010426b: 75 f3 jne 80104260 <getcallerpcs+0x40> } 8010426d: 5b pop %ebx 8010426e: 5d pop %ebp 8010426f: c3 ret 80104270 <pushcli>: // it takes two popcli to undo two pushcli. Also, if interrupts // are off, then pushcli, popcli leaves them off. void pushcli(void) { 80104270: 55 push %ebp 80104271: 89 e5 mov %esp,%ebp 80104273: 53 push %ebx 80104274: 83 ec 04 sub $0x4,%esp 80104277: 9c pushf 80104278: 5b pop %ebx asm volatile("cli"); 80104279: fa cli int eflags; eflags = readeflags(); cli(); if(mycpu()->ncli == 0) 8010427a: e8 c1 f4 ff ff call 80103740 <mycpu> 8010427f: 8b 80 a4 00 00 00 mov 0xa4(%eax),%eax 80104285: 85 c0 test %eax,%eax 80104287: 75 11 jne 8010429a <pushcli+0x2a> mycpu()->intena = eflags & FL_IF; 80104289: 81 e3 00 02 00 00 and $0x200,%ebx 8010428f: e8 ac f4 ff ff call 80103740 <mycpu> 80104294: 89 98 a8 00 00 00 mov %ebx,0xa8(%eax) mycpu()->ncli += 1; 8010429a: e8 a1 f4 ff ff call 80103740 <mycpu> 8010429f: 83 80 a4 00 00 00 01 addl $0x1,0xa4(%eax) } 801042a6: 83 c4 04 add $0x4,%esp 801042a9: 5b pop %ebx 801042aa: 5d pop %ebp 801042ab: c3 ret 801042ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801042b0 <popcli>: void popcli(void) { 801042b0: 55 push %ebp 801042b1: 89 e5 mov %esp,%ebp 801042b3: 83 ec 08 sub $0x8,%esp asm volatile("pushfl; popl %0" : "=r" (eflags)); 801042b6: 9c pushf 801042b7: 58 pop %eax if(readeflags()&FL_IF) 801042b8: f6 c4 02 test $0x2,%ah 801042bb: 75 35 jne 801042f2 <popcli+0x42> panic("popcli - interruptible"); if(--mycpu()->ncli < 0) 801042bd: e8 7e f4 ff ff call 80103740 <mycpu> 801042c2: 83 a8 a4 00 00 00 01 subl $0x1,0xa4(%eax) 801042c9: 78 34 js 801042ff <popcli+0x4f> panic("popcli"); if(mycpu()->ncli == 0 && mycpu()->intena) 801042cb: e8 70 f4 ff ff call 80103740 <mycpu> 801042d0: 8b 90 a4 00 00 00 mov 0xa4(%eax),%edx 801042d6: 85 d2 test %edx,%edx 801042d8: 74 06 je 801042e0 <popcli+0x30> sti(); } 801042da: c9 leave 801042db: c3 ret 801042dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi if(mycpu()->ncli == 0 && mycpu()->intena) 801042e0: e8 5b f4 ff ff call 80103740 <mycpu> 801042e5: 8b 80 a8 00 00 00 mov 0xa8(%eax),%eax 801042eb: 85 c0 test %eax,%eax 801042ed: 74 eb je 801042da <popcli+0x2a> asm volatile("sti"); 801042ef: fb sti } 801042f0: c9 leave 801042f1: c3 ret panic("popcli - interruptible"); 801042f2: 83 ec 0c sub $0xc,%esp 801042f5: 68 43 75 10 80 push $0x80107543 801042fa: e8 91 c0 ff ff call 80100390 <panic> panic("popcli"); 801042ff: 83 ec 0c sub $0xc,%esp 80104302: 68 5a 75 10 80 push $0x8010755a 80104307: e8 84 c0 ff ff call 80100390 <panic> 8010430c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104310 <holding>: { 80104310: 55 push %ebp 80104311: 89 e5 mov %esp,%ebp 80104313: 56 push %esi 80104314: 53 push %ebx 80104315: 8b 75 08 mov 0x8(%ebp),%esi 80104318: 31 db xor %ebx,%ebx pushcli(); 8010431a: e8 51 ff ff ff call 80104270 <pushcli> r = lock->locked && lock->cpu == mycpu(); 8010431f: 8b 06 mov (%esi),%eax 80104321: 85 c0 test %eax,%eax 80104323: 74 10 je 80104335 <holding+0x25> 80104325: 8b 5e 08 mov 0x8(%esi),%ebx 80104328: e8 13 f4 ff ff call 80103740 <mycpu> 8010432d: 39 c3 cmp %eax,%ebx 8010432f: 0f 94 c3 sete %bl 80104332: 0f b6 db movzbl %bl,%ebx popcli(); 80104335: e8 76 ff ff ff call 801042b0 <popcli> } 8010433a: 89 d8 mov %ebx,%eax 8010433c: 5b pop %ebx 8010433d: 5e pop %esi 8010433e: 5d pop %ebp 8010433f: c3 ret 80104340 <acquire>: { 80104340: 55 push %ebp 80104341: 89 e5 mov %esp,%ebp 80104343: 56 push %esi 80104344: 53 push %ebx pushcli(); // disable interrupts to avoid deadlock. 80104345: e8 26 ff ff ff call 80104270 <pushcli> if(holding(lk)) 8010434a: 8b 5d 08 mov 0x8(%ebp),%ebx 8010434d: 83 ec 0c sub $0xc,%esp 80104350: 53 push %ebx 80104351: e8 ba ff ff ff call 80104310 <holding> 80104356: 83 c4 10 add $0x10,%esp 80104359: 85 c0 test %eax,%eax 8010435b: 0f 85 83 00 00 00 jne 801043e4 <acquire+0xa4> 80104361: 89 c6 mov %eax,%esi asm volatile("lock; xchgl %0, %1" : 80104363: ba 01 00 00 00 mov $0x1,%edx 80104368: eb 09 jmp 80104373 <acquire+0x33> 8010436a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104370: 8b 5d 08 mov 0x8(%ebp),%ebx 80104373: 89 d0 mov %edx,%eax 80104375: f0 87 03 lock xchg %eax,(%ebx) while(xchg(&lk->locked, 1) != 0) 80104378: 85 c0 test %eax,%eax 8010437a: 75 f4 jne 80104370 <acquire+0x30> __sync_synchronize(); 8010437c: f0 83 0c 24 00 lock orl $0x0,(%esp) lk->cpu = mycpu(); 80104381: 8b 5d 08 mov 0x8(%ebp),%ebx 80104384: e8 b7 f3 ff ff call 80103740 <mycpu> getcallerpcs(&lk, lk->pcs); 80104389: 8d 53 0c lea 0xc(%ebx),%edx lk->cpu = mycpu(); 8010438c: 89 43 08 mov %eax,0x8(%ebx) ebp = (uint*)v - 2; 8010438f: 89 e8 mov %ebp,%eax 80104391: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff) 80104398: 8d 88 00 00 00 80 lea -0x80000000(%eax),%ecx 8010439e: 81 f9 fe ff ff 7f cmp $0x7ffffffe,%ecx 801043a4: 77 1a ja 801043c0 <acquire+0x80> pcs[i] = ebp[1]; // saved %eip 801043a6: 8b 48 04 mov 0x4(%eax),%ecx 801043a9: 89 0c b2 mov %ecx,(%edx,%esi,4) for(i = 0; i < 10; i++){ 801043ac: 83 c6 01 add $0x1,%esi ebp = (uint*)ebp[0]; // saved %ebp 801043af: 8b 00 mov (%eax),%eax for(i = 0; i < 10; i++){ 801043b1: 83 fe 0a cmp $0xa,%esi 801043b4: 75 e2 jne 80104398 <acquire+0x58> } 801043b6: 8d 65 f8 lea -0x8(%ebp),%esp 801043b9: 5b pop %ebx 801043ba: 5e pop %esi 801043bb: 5d pop %ebp 801043bc: c3 ret 801043bd: 8d 76 00 lea 0x0(%esi),%esi 801043c0: 8d 04 b2 lea (%edx,%esi,4),%eax 801043c3: 83 c2 28 add $0x28,%edx 801043c6: 8d 76 00 lea 0x0(%esi),%esi 801043c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi pcs[i] = 0; 801043d0: c7 00 00 00 00 00 movl $0x0,(%eax) 801043d6: 83 c0 04 add $0x4,%eax for(; i < 10; i++) 801043d9: 39 d0 cmp %edx,%eax 801043db: 75 f3 jne 801043d0 <acquire+0x90> } 801043dd: 8d 65 f8 lea -0x8(%ebp),%esp 801043e0: 5b pop %ebx 801043e1: 5e pop %esi 801043e2: 5d pop %ebp 801043e3: c3 ret panic("acquire"); 801043e4: 83 ec 0c sub $0xc,%esp 801043e7: 68 61 75 10 80 push $0x80107561 801043ec: e8 9f bf ff ff call 80100390 <panic> 801043f1: eb 0d jmp 80104400 <release> 801043f3: 90 nop 801043f4: 90 nop 801043f5: 90 nop 801043f6: 90 nop 801043f7: 90 nop 801043f8: 90 nop 801043f9: 90 nop 801043fa: 90 nop 801043fb: 90 nop 801043fc: 90 nop 801043fd: 90 nop 801043fe: 90 nop 801043ff: 90 nop 80104400 <release>: { 80104400: 55 push %ebp 80104401: 89 e5 mov %esp,%ebp 80104403: 53 push %ebx 80104404: 83 ec 10 sub $0x10,%esp 80104407: 8b 5d 08 mov 0x8(%ebp),%ebx if(!holding(lk)) 8010440a: 53 push %ebx 8010440b: e8 00 ff ff ff call 80104310 <holding> 80104410: 83 c4 10 add $0x10,%esp 80104413: 85 c0 test %eax,%eax 80104415: 74 22 je 80104439 <release+0x39> lk->pcs[0] = 0; 80104417: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx) lk->cpu = 0; 8010441e: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx) __sync_synchronize(); 80104425: f0 83 0c 24 00 lock orl $0x0,(%esp) asm volatile("movl $0, %0" : "+m" (lk->locked) : ); 8010442a: c7 03 00 00 00 00 movl $0x0,(%ebx) } 80104430: 8b 5d fc mov -0x4(%ebp),%ebx 80104433: c9 leave popcli(); 80104434: e9 77 fe ff ff jmp 801042b0 <popcli> panic("release"); 80104439: 83 ec 0c sub $0xc,%esp 8010443c: 68 69 75 10 80 push $0x80107569 80104441: e8 4a bf ff ff call 80100390 <panic> 80104446: 66 90 xchg %ax,%ax 80104448: 66 90 xchg %ax,%ax 8010444a: 66 90 xchg %ax,%ax 8010444c: 66 90 xchg %ax,%ax 8010444e: 66 90 xchg %ax,%ax 80104450 <memset>: #include "types.h" #include "x86.h" void* memset(void *dst, int c, uint n) { 80104450: 55 push %ebp 80104451: 89 e5 mov %esp,%ebp 80104453: 57 push %edi 80104454: 53 push %ebx 80104455: 8b 55 08 mov 0x8(%ebp),%edx 80104458: 8b 4d 10 mov 0x10(%ebp),%ecx if ((int)dst%4 == 0 && n%4 == 0){ 8010445b: f6 c2 03 test $0x3,%dl 8010445e: 75 05 jne 80104465 <memset+0x15> 80104460: f6 c1 03 test $0x3,%cl 80104463: 74 13 je 80104478 <memset+0x28> asm volatile("cld; rep stosb" : 80104465: 89 d7 mov %edx,%edi 80104467: 8b 45 0c mov 0xc(%ebp),%eax 8010446a: fc cld 8010446b: f3 aa rep stos %al,%es:(%edi) c &= 0xFF; stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4); } else stosb(dst, c, n); return dst; } 8010446d: 5b pop %ebx 8010446e: 89 d0 mov %edx,%eax 80104470: 5f pop %edi 80104471: 5d pop %ebp 80104472: c3 ret 80104473: 90 nop 80104474: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi c &= 0xFF; 80104478: 0f b6 7d 0c movzbl 0xc(%ebp),%edi stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4); 8010447c: c1 e9 02 shr $0x2,%ecx 8010447f: 89 f8 mov %edi,%eax 80104481: 89 fb mov %edi,%ebx 80104483: c1 e0 18 shl $0x18,%eax 80104486: c1 e3 10 shl $0x10,%ebx 80104489: 09 d8 or %ebx,%eax 8010448b: 09 f8 or %edi,%eax 8010448d: c1 e7 08 shl $0x8,%edi 80104490: 09 f8 or %edi,%eax asm volatile("cld; rep stosl" : 80104492: 89 d7 mov %edx,%edi 80104494: fc cld 80104495: f3 ab rep stos %eax,%es:(%edi) } 80104497: 5b pop %ebx 80104498: 89 d0 mov %edx,%eax 8010449a: 5f pop %edi 8010449b: 5d pop %ebp 8010449c: c3 ret 8010449d: 8d 76 00 lea 0x0(%esi),%esi 801044a0 <memcmp>: int memcmp(const void *v1, const void *v2, uint n) { 801044a0: 55 push %ebp 801044a1: 89 e5 mov %esp,%ebp 801044a3: 57 push %edi 801044a4: 56 push %esi 801044a5: 53 push %ebx 801044a6: 8b 5d 10 mov 0x10(%ebp),%ebx 801044a9: 8b 75 08 mov 0x8(%ebp),%esi 801044ac: 8b 7d 0c mov 0xc(%ebp),%edi const uchar *s1, *s2; s1 = v1; s2 = v2; while(n-- > 0){ 801044af: 85 db test %ebx,%ebx 801044b1: 74 29 je 801044dc <memcmp+0x3c> if(*s1 != *s2) 801044b3: 0f b6 16 movzbl (%esi),%edx 801044b6: 0f b6 0f movzbl (%edi),%ecx 801044b9: 38 d1 cmp %dl,%cl 801044bb: 75 2b jne 801044e8 <memcmp+0x48> 801044bd: b8 01 00 00 00 mov $0x1,%eax 801044c2: eb 14 jmp 801044d8 <memcmp+0x38> 801044c4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801044c8: 0f b6 14 06 movzbl (%esi,%eax,1),%edx 801044cc: 83 c0 01 add $0x1,%eax 801044cf: 0f b6 4c 07 ff movzbl -0x1(%edi,%eax,1),%ecx 801044d4: 38 ca cmp %cl,%dl 801044d6: 75 10 jne 801044e8 <memcmp+0x48> while(n-- > 0){ 801044d8: 39 d8 cmp %ebx,%eax 801044da: 75 ec jne 801044c8 <memcmp+0x28> return *s1 - *s2; s1++, s2++; } return 0; } 801044dc: 5b pop %ebx return 0; 801044dd: 31 c0 xor %eax,%eax } 801044df: 5e pop %esi 801044e0: 5f pop %edi 801044e1: 5d pop %ebp 801044e2: c3 ret 801044e3: 90 nop 801044e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return *s1 - *s2; 801044e8: 0f b6 c2 movzbl %dl,%eax } 801044eb: 5b pop %ebx return *s1 - *s2; 801044ec: 29 c8 sub %ecx,%eax } 801044ee: 5e pop %esi 801044ef: 5f pop %edi 801044f0: 5d pop %ebp 801044f1: c3 ret 801044f2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801044f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104500 <memmove>: void* memmove(void *dst, const void *src, uint n) { 80104500: 55 push %ebp 80104501: 89 e5 mov %esp,%ebp 80104503: 56 push %esi 80104504: 53 push %ebx 80104505: 8b 45 08 mov 0x8(%ebp),%eax 80104508: 8b 5d 0c mov 0xc(%ebp),%ebx 8010450b: 8b 75 10 mov 0x10(%ebp),%esi const char *s; char *d; s = src; d = dst; if(s < d && s + n > d){ 8010450e: 39 c3 cmp %eax,%ebx 80104510: 73 26 jae 80104538 <memmove+0x38> 80104512: 8d 0c 33 lea (%ebx,%esi,1),%ecx 80104515: 39 c8 cmp %ecx,%eax 80104517: 73 1f jae 80104538 <memmove+0x38> s += n; d += n; while(n-- > 0) 80104519: 85 f6 test %esi,%esi 8010451b: 8d 56 ff lea -0x1(%esi),%edx 8010451e: 74 0f je 8010452f <memmove+0x2f> *--d = *--s; 80104520: 0f b6 0c 13 movzbl (%ebx,%edx,1),%ecx 80104524: 88 0c 10 mov %cl,(%eax,%edx,1) while(n-- > 0) 80104527: 83 ea 01 sub $0x1,%edx 8010452a: 83 fa ff cmp $0xffffffff,%edx 8010452d: 75 f1 jne 80104520 <memmove+0x20> } else while(n-- > 0) *d++ = *s++; return dst; } 8010452f: 5b pop %ebx 80104530: 5e pop %esi 80104531: 5d pop %ebp 80104532: c3 ret 80104533: 90 nop 80104534: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi while(n-- > 0) 80104538: 31 d2 xor %edx,%edx 8010453a: 85 f6 test %esi,%esi 8010453c: 74 f1 je 8010452f <memmove+0x2f> 8010453e: 66 90 xchg %ax,%ax *d++ = *s++; 80104540: 0f b6 0c 13 movzbl (%ebx,%edx,1),%ecx 80104544: 88 0c 10 mov %cl,(%eax,%edx,1) 80104547: 83 c2 01 add $0x1,%edx while(n-- > 0) 8010454a: 39 d6 cmp %edx,%esi 8010454c: 75 f2 jne 80104540 <memmove+0x40> } 8010454e: 5b pop %ebx 8010454f: 5e pop %esi 80104550: 5d pop %ebp 80104551: c3 ret 80104552: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104559: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104560 <memcpy>: // memcpy exists to placate GCC. Use memmove. void* memcpy(void *dst, const void *src, uint n) { 80104560: 55 push %ebp 80104561: 89 e5 mov %esp,%ebp return memmove(dst, src, n); } 80104563: 5d pop %ebp return memmove(dst, src, n); 80104564: eb 9a jmp 80104500 <memmove> 80104566: 8d 76 00 lea 0x0(%esi),%esi 80104569: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104570 <strncmp>: int strncmp(const char *p, const char *q, uint n) { 80104570: 55 push %ebp 80104571: 89 e5 mov %esp,%ebp 80104573: 57 push %edi 80104574: 56 push %esi 80104575: 8b 7d 10 mov 0x10(%ebp),%edi 80104578: 53 push %ebx 80104579: 8b 4d 08 mov 0x8(%ebp),%ecx 8010457c: 8b 75 0c mov 0xc(%ebp),%esi while(n > 0 && *p && *p == *q) 8010457f: 85 ff test %edi,%edi 80104581: 74 2f je 801045b2 <strncmp+0x42> 80104583: 0f b6 01 movzbl (%ecx),%eax 80104586: 0f b6 1e movzbl (%esi),%ebx 80104589: 84 c0 test %al,%al 8010458b: 74 37 je 801045c4 <strncmp+0x54> 8010458d: 38 c3 cmp %al,%bl 8010458f: 75 33 jne 801045c4 <strncmp+0x54> 80104591: 01 f7 add %esi,%edi 80104593: eb 13 jmp 801045a8 <strncmp+0x38> 80104595: 8d 76 00 lea 0x0(%esi),%esi 80104598: 0f b6 01 movzbl (%ecx),%eax 8010459b: 84 c0 test %al,%al 8010459d: 74 21 je 801045c0 <strncmp+0x50> 8010459f: 0f b6 1a movzbl (%edx),%ebx 801045a2: 89 d6 mov %edx,%esi 801045a4: 38 d8 cmp %bl,%al 801045a6: 75 1c jne 801045c4 <strncmp+0x54> n--, p++, q++; 801045a8: 8d 56 01 lea 0x1(%esi),%edx 801045ab: 83 c1 01 add $0x1,%ecx while(n > 0 && *p && *p == *q) 801045ae: 39 fa cmp %edi,%edx 801045b0: 75 e6 jne 80104598 <strncmp+0x28> if(n == 0) return 0; return (uchar)*p - (uchar)*q; } 801045b2: 5b pop %ebx return 0; 801045b3: 31 c0 xor %eax,%eax } 801045b5: 5e pop %esi 801045b6: 5f pop %edi 801045b7: 5d pop %ebp 801045b8: c3 ret 801045b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801045c0: 0f b6 5e 01 movzbl 0x1(%esi),%ebx return (uchar)*p - (uchar)*q; 801045c4: 29 d8 sub %ebx,%eax } 801045c6: 5b pop %ebx 801045c7: 5e pop %esi 801045c8: 5f pop %edi 801045c9: 5d pop %ebp 801045ca: c3 ret 801045cb: 90 nop 801045cc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801045d0 <strncpy>: char* strncpy(char *s, const char *t, int n) { 801045d0: 55 push %ebp 801045d1: 89 e5 mov %esp,%ebp 801045d3: 56 push %esi 801045d4: 53 push %ebx 801045d5: 8b 45 08 mov 0x8(%ebp),%eax 801045d8: 8b 5d 0c mov 0xc(%ebp),%ebx 801045db: 8b 4d 10 mov 0x10(%ebp),%ecx char *os; os = s; while(n-- > 0 && (*s++ = *t++) != 0) 801045de: 89 c2 mov %eax,%edx 801045e0: eb 19 jmp 801045fb <strncpy+0x2b> 801045e2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801045e8: 83 c3 01 add $0x1,%ebx 801045eb: 0f b6 4b ff movzbl -0x1(%ebx),%ecx 801045ef: 83 c2 01 add $0x1,%edx 801045f2: 84 c9 test %cl,%cl 801045f4: 88 4a ff mov %cl,-0x1(%edx) 801045f7: 74 09 je 80104602 <strncpy+0x32> 801045f9: 89 f1 mov %esi,%ecx 801045fb: 85 c9 test %ecx,%ecx 801045fd: 8d 71 ff lea -0x1(%ecx),%esi 80104600: 7f e6 jg 801045e8 <strncpy+0x18> ; while(n-- > 0) 80104602: 31 c9 xor %ecx,%ecx 80104604: 85 f6 test %esi,%esi 80104606: 7e 17 jle 8010461f <strncpy+0x4f> 80104608: 90 nop 80104609: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi *s++ = 0; 80104610: c6 04 0a 00 movb $0x0,(%edx,%ecx,1) 80104614: 89 f3 mov %esi,%ebx 80104616: 83 c1 01 add $0x1,%ecx 80104619: 29 cb sub %ecx,%ebx while(n-- > 0) 8010461b: 85 db test %ebx,%ebx 8010461d: 7f f1 jg 80104610 <strncpy+0x40> return os; } 8010461f: 5b pop %ebx 80104620: 5e pop %esi 80104621: 5d pop %ebp 80104622: c3 ret 80104623: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104629: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104630 <safestrcpy>: // Like strncpy but guaranteed to NUL-terminate. char* safestrcpy(char *s, const char *t, int n) { 80104630: 55 push %ebp 80104631: 89 e5 mov %esp,%ebp 80104633: 56 push %esi 80104634: 53 push %ebx 80104635: 8b 4d 10 mov 0x10(%ebp),%ecx 80104638: 8b 45 08 mov 0x8(%ebp),%eax 8010463b: 8b 55 0c mov 0xc(%ebp),%edx char *os; os = s; if(n <= 0) 8010463e: 85 c9 test %ecx,%ecx 80104640: 7e 26 jle 80104668 <safestrcpy+0x38> 80104642: 8d 74 0a ff lea -0x1(%edx,%ecx,1),%esi 80104646: 89 c1 mov %eax,%ecx 80104648: eb 17 jmp 80104661 <safestrcpy+0x31> 8010464a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi return os; while(--n > 0 && (*s++ = *t++) != 0) 80104650: 83 c2 01 add $0x1,%edx 80104653: 0f b6 5a ff movzbl -0x1(%edx),%ebx 80104657: 83 c1 01 add $0x1,%ecx 8010465a: 84 db test %bl,%bl 8010465c: 88 59 ff mov %bl,-0x1(%ecx) 8010465f: 74 04 je 80104665 <safestrcpy+0x35> 80104661: 39 f2 cmp %esi,%edx 80104663: 75 eb jne 80104650 <safestrcpy+0x20> ; *s = 0; 80104665: c6 01 00 movb $0x0,(%ecx) return os; } 80104668: 5b pop %ebx 80104669: 5e pop %esi 8010466a: 5d pop %ebp 8010466b: c3 ret 8010466c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104670 <strlen>: int strlen(const char *s) { 80104670: 55 push %ebp int n; for(n = 0; s[n]; n++) 80104671: 31 c0 xor %eax,%eax { 80104673: 89 e5 mov %esp,%ebp 80104675: 8b 55 08 mov 0x8(%ebp),%edx for(n = 0; s[n]; n++) 80104678: 80 3a 00 cmpb $0x0,(%edx) 8010467b: 74 0c je 80104689 <strlen+0x19> 8010467d: 8d 76 00 lea 0x0(%esi),%esi 80104680: 83 c0 01 add $0x1,%eax 80104683: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1) 80104687: 75 f7 jne 80104680 <strlen+0x10> ; return n; } 80104689: 5d pop %ebp 8010468a: c3 ret 8010468b <swtch>: 8010468b: 8b 44 24 04 mov 0x4(%esp),%eax 8010468f: 8b 54 24 08 mov 0x8(%esp),%edx 80104693: 55 push %ebp 80104694: 53 push %ebx 80104695: 56 push %esi 80104696: 57 push %edi 80104697: 89 20 mov %esp,(%eax) 80104699: 89 d4 mov %edx,%esp 8010469b: 5f pop %edi 8010469c: 5e pop %esi 8010469d: 5b pop %ebx 8010469e: 5d pop %ebp 8010469f: c3 ret 801046a0 <fetchint>: // to a saved program counter, and then the first argument. // Fetch the int at addr from the current process. int fetchint(uint addr, int *ip) { 801046a0: 55 push %ebp 801046a1: 89 e5 mov %esp,%ebp 801046a3: 53 push %ebx 801046a4: 83 ec 04 sub $0x4,%esp 801046a7: 8b 5d 08 mov 0x8(%ebp),%ebx struct proc *curproc = myproc(); 801046aa: e8 31 f1 ff ff call 801037e0 <myproc> if(addr >= curproc->sz || addr+4 > curproc->sz) 801046af: 8b 00 mov (%eax),%eax 801046b1: 39 d8 cmp %ebx,%eax 801046b3: 76 1b jbe 801046d0 <fetchint+0x30> 801046b5: 8d 53 04 lea 0x4(%ebx),%edx 801046b8: 39 d0 cmp %edx,%eax 801046ba: 72 14 jb 801046d0 <fetchint+0x30> return -1; *ip = *(int*)(addr); 801046bc: 8b 45 0c mov 0xc(%ebp),%eax 801046bf: 8b 13 mov (%ebx),%edx 801046c1: 89 10 mov %edx,(%eax) return 0; 801046c3: 31 c0 xor %eax,%eax } 801046c5: 83 c4 04 add $0x4,%esp 801046c8: 5b pop %ebx 801046c9: 5d pop %ebp 801046ca: c3 ret 801046cb: 90 nop 801046cc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return -1; 801046d0: b8 ff ff ff ff mov $0xffffffff,%eax 801046d5: eb ee jmp 801046c5 <fetchint+0x25> 801046d7: 89 f6 mov %esi,%esi 801046d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801046e0 <fetchstr>: // Fetch the nul-terminated string at addr from the current process. // Doesn't actually copy the string - just sets *pp to point at it. // Returns length of string, not including nul. int fetchstr(uint addr, char **pp) { 801046e0: 55 push %ebp 801046e1: 89 e5 mov %esp,%ebp 801046e3: 53 push %ebx 801046e4: 83 ec 04 sub $0x4,%esp 801046e7: 8b 5d 08 mov 0x8(%ebp),%ebx char *s, *ep; struct proc *curproc = myproc(); 801046ea: e8 f1 f0 ff ff call 801037e0 <myproc> if(addr >= curproc->sz) 801046ef: 39 18 cmp %ebx,(%eax) 801046f1: 76 29 jbe 8010471c <fetchstr+0x3c> return -1; *pp = (char*)addr; 801046f3: 8b 4d 0c mov 0xc(%ebp),%ecx 801046f6: 89 da mov %ebx,%edx 801046f8: 89 19 mov %ebx,(%ecx) ep = (char*)curproc->sz; 801046fa: 8b 00 mov (%eax),%eax for(s = *pp; s < ep; s++){ 801046fc: 39 c3 cmp %eax,%ebx 801046fe: 73 1c jae 8010471c <fetchstr+0x3c> if(*s == 0) 80104700: 80 3b 00 cmpb $0x0,(%ebx) 80104703: 75 10 jne 80104715 <fetchstr+0x35> 80104705: eb 39 jmp 80104740 <fetchstr+0x60> 80104707: 89 f6 mov %esi,%esi 80104709: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104710: 80 3a 00 cmpb $0x0,(%edx) 80104713: 74 1b je 80104730 <fetchstr+0x50> for(s = *pp; s < ep; s++){ 80104715: 83 c2 01 add $0x1,%edx 80104718: 39 d0 cmp %edx,%eax 8010471a: 77 f4 ja 80104710 <fetchstr+0x30> return -1; 8010471c: b8 ff ff ff ff mov $0xffffffff,%eax return s - *pp; } return -1; } 80104721: 83 c4 04 add $0x4,%esp 80104724: 5b pop %ebx 80104725: 5d pop %ebp 80104726: c3 ret 80104727: 89 f6 mov %esi,%esi 80104729: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104730: 83 c4 04 add $0x4,%esp 80104733: 89 d0 mov %edx,%eax 80104735: 29 d8 sub %ebx,%eax 80104737: 5b pop %ebx 80104738: 5d pop %ebp 80104739: c3 ret 8010473a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi if(*s == 0) 80104740: 31 c0 xor %eax,%eax return s - *pp; 80104742: eb dd jmp 80104721 <fetchstr+0x41> 80104744: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 8010474a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80104750 <argint>: // Fetch the nth 32-bit system call argument. int argint(int n, int *ip) { 80104750: 55 push %ebp 80104751: 89 e5 mov %esp,%ebp 80104753: 56 push %esi 80104754: 53 push %ebx return fetchint((myproc()->tf->esp) + 4 + 4*n, ip); 80104755: e8 86 f0 ff ff call 801037e0 <myproc> 8010475a: 8b 40 18 mov 0x18(%eax),%eax 8010475d: 8b 55 08 mov 0x8(%ebp),%edx 80104760: 8b 40 44 mov 0x44(%eax),%eax 80104763: 8d 1c 90 lea (%eax,%edx,4),%ebx struct proc *curproc = myproc(); 80104766: e8 75 f0 ff ff call 801037e0 <myproc> if(addr >= curproc->sz || addr+4 > curproc->sz) 8010476b: 8b 00 mov (%eax),%eax return fetchint((myproc()->tf->esp) + 4 + 4*n, ip); 8010476d: 8d 73 04 lea 0x4(%ebx),%esi if(addr >= curproc->sz || addr+4 > curproc->sz) 80104770: 39 c6 cmp %eax,%esi 80104772: 73 1c jae 80104790 <argint+0x40> 80104774: 8d 53 08 lea 0x8(%ebx),%edx 80104777: 39 d0 cmp %edx,%eax 80104779: 72 15 jb 80104790 <argint+0x40> *ip = *(int*)(addr); 8010477b: 8b 45 0c mov 0xc(%ebp),%eax 8010477e: 8b 53 04 mov 0x4(%ebx),%edx 80104781: 89 10 mov %edx,(%eax) return 0; 80104783: 31 c0 xor %eax,%eax } 80104785: 5b pop %ebx 80104786: 5e pop %esi 80104787: 5d pop %ebp 80104788: c3 ret 80104789: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return -1; 80104790: b8 ff ff ff ff mov $0xffffffff,%eax return fetchint((myproc()->tf->esp) + 4 + 4*n, ip); 80104795: eb ee jmp 80104785 <argint+0x35> 80104797: 89 f6 mov %esi,%esi 80104799: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801047a0 <argptr>: // Fetch the nth word-sized system call argument as a pointer // to a block of memory of size bytes. Check that the pointer // lies within the process address space. int argptr(int n, char **pp, int size) { 801047a0: 55 push %ebp 801047a1: 89 e5 mov %esp,%ebp 801047a3: 56 push %esi 801047a4: 53 push %ebx 801047a5: 83 ec 10 sub $0x10,%esp 801047a8: 8b 5d 10 mov 0x10(%ebp),%ebx int i; struct proc *curproc = myproc(); 801047ab: e8 30 f0 ff ff call 801037e0 <myproc> 801047b0: 89 c6 mov %eax,%esi if(argint(n, &i) < 0) 801047b2: 8d 45 f4 lea -0xc(%ebp),%eax 801047b5: 83 ec 08 sub $0x8,%esp 801047b8: 50 push %eax 801047b9: ff 75 08 pushl 0x8(%ebp) 801047bc: e8 8f ff ff ff call 80104750 <argint> return -1; if(size < 0 || (uint)i >= curproc->sz || (uint)i+size > curproc->sz) 801047c1: 83 c4 10 add $0x10,%esp 801047c4: 85 c0 test %eax,%eax 801047c6: 78 28 js 801047f0 <argptr+0x50> 801047c8: 85 db test %ebx,%ebx 801047ca: 78 24 js 801047f0 <argptr+0x50> 801047cc: 8b 16 mov (%esi),%edx 801047ce: 8b 45 f4 mov -0xc(%ebp),%eax 801047d1: 39 c2 cmp %eax,%edx 801047d3: 76 1b jbe 801047f0 <argptr+0x50> 801047d5: 01 c3 add %eax,%ebx 801047d7: 39 da cmp %ebx,%edx 801047d9: 72 15 jb 801047f0 <argptr+0x50> return -1; *pp = (char*)i; 801047db: 8b 55 0c mov 0xc(%ebp),%edx 801047de: 89 02 mov %eax,(%edx) return 0; 801047e0: 31 c0 xor %eax,%eax } 801047e2: 8d 65 f8 lea -0x8(%ebp),%esp 801047e5: 5b pop %ebx 801047e6: 5e pop %esi 801047e7: 5d pop %ebp 801047e8: c3 ret 801047e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi return -1; 801047f0: b8 ff ff ff ff mov $0xffffffff,%eax 801047f5: eb eb jmp 801047e2 <argptr+0x42> 801047f7: 89 f6 mov %esi,%esi 801047f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104800 <argstr>: // Check that the pointer is valid and the string is nul-terminated. // (There is no shared writable memory, so the string can't change // between this check and being used by the kernel.) int argstr(int n, char **pp) { 80104800: 55 push %ebp 80104801: 89 e5 mov %esp,%ebp 80104803: 83 ec 20 sub $0x20,%esp int addr; if(argint(n, &addr) < 0) 80104806: 8d 45 f4 lea -0xc(%ebp),%eax 80104809: 50 push %eax 8010480a: ff 75 08 pushl 0x8(%ebp) 8010480d: e8 3e ff ff ff call 80104750 <argint> 80104812: 83 c4 10 add $0x10,%esp 80104815: 85 c0 test %eax,%eax 80104817: 78 17 js 80104830 <argstr+0x30> return -1; return fetchstr(addr, pp); 80104819: 83 ec 08 sub $0x8,%esp 8010481c: ff 75 0c pushl 0xc(%ebp) 8010481f: ff 75 f4 pushl -0xc(%ebp) 80104822: e8 b9 fe ff ff call 801046e0 <fetchstr> 80104827: 83 c4 10 add $0x10,%esp } 8010482a: c9 leave 8010482b: c3 ret 8010482c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi return -1; 80104830: b8 ff ff ff ff mov $0xffffffff,%eax } 80104835: c9 leave 80104836: c3 ret 80104837: 89 f6 mov %esi,%esi 80104839: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104840 <syscall>: [SYS_close] sys_close, }; void syscall(void) { 80104840: 55 push %ebp 80104841: 89 e5 mov %esp,%ebp 80104843: 53 push %ebx 80104844: 83 ec 04 sub $0x4,%esp int num; struct proc *curproc = myproc(); 80104847: e8 94 ef ff ff call 801037e0 <myproc> 8010484c: 89 c3 mov %eax,%ebx num = curproc->tf->eax; 8010484e: 8b 40 18 mov 0x18(%eax),%eax 80104851: 8b 40 1c mov 0x1c(%eax),%eax if(num > 0 && num < NELEM(syscalls) && syscalls[num]) { 80104854: 8d 50 ff lea -0x1(%eax),%edx 80104857: 83 fa 14 cmp $0x14,%edx 8010485a: 77 1c ja 80104878 <syscall+0x38> 8010485c: 8b 14 85 a0 75 10 80 mov -0x7fef8a60(,%eax,4),%edx 80104863: 85 d2 test %edx,%edx 80104865: 74 11 je 80104878 <syscall+0x38> curproc->tf->eax = syscalls[num](); 80104867: ff d2 call *%edx 80104869: 8b 53 18 mov 0x18(%ebx),%edx 8010486c: 89 42 1c mov %eax,0x1c(%edx) } else { cprintf("%d %s: unknown sys call %d\n", curproc->pid, curproc->name, num); curproc->tf->eax = -1; } } 8010486f: 8b 5d fc mov -0x4(%ebp),%ebx 80104872: c9 leave 80104873: c3 ret 80104874: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi cprintf("%d %s: unknown sys call %d\n", 80104878: 50 push %eax curproc->pid, curproc->name, num); 80104879: 8d 43 6c lea 0x6c(%ebx),%eax cprintf("%d %s: unknown sys call %d\n", 8010487c: 50 push %eax 8010487d: ff 73 10 pushl 0x10(%ebx) 80104880: 68 71 75 10 80 push $0x80107571 80104885: e8 d6 bd ff ff call 80100660 <cprintf> curproc->tf->eax = -1; 8010488a: 8b 43 18 mov 0x18(%ebx),%eax 8010488d: 83 c4 10 add $0x10,%esp 80104890: c7 40 1c ff ff ff ff movl $0xffffffff,0x1c(%eax) } 80104897: 8b 5d fc mov -0x4(%ebp),%ebx 8010489a: c9 leave 8010489b: c3 ret 8010489c: 66 90 xchg %ax,%ax 8010489e: 66 90 xchg %ax,%ax 801048a0 <create>: 801048a0: 55 push %ebp 801048a1: 89 e5 mov %esp,%ebp 801048a3: 57 push %edi 801048a4: 56 push %esi 801048a5: 53 push %ebx 801048a6: 8d 75 da lea -0x26(%ebp),%esi 801048a9: 83 ec 34 sub $0x34,%esp 801048ac: 89 4d d0 mov %ecx,-0x30(%ebp) 801048af: 8b 4d 08 mov 0x8(%ebp),%ecx 801048b2: 56 push %esi 801048b3: 50 push %eax 801048b4: 89 55 d4 mov %edx,-0x2c(%ebp) 801048b7: 89 4d cc mov %ecx,-0x34(%ebp) 801048ba: e8 41 d6 ff ff call 80101f00 <nameiparent> 801048bf: 83 c4 10 add $0x10,%esp 801048c2: 85 c0 test %eax,%eax 801048c4: 0f 84 46 01 00 00 je 80104a10 <create+0x170> 801048ca: 83 ec 0c sub $0xc,%esp 801048cd: 89 c3 mov %eax,%ebx 801048cf: 50 push %eax 801048d0: e8 ab cd ff ff call 80101680 <ilock> 801048d5: 83 c4 0c add $0xc,%esp 801048d8: 6a 00 push $0x0 801048da: 56 push %esi 801048db: 53 push %ebx 801048dc: e8 cf d2 ff ff call 80101bb0 <dirlookup> 801048e1: 83 c4 10 add $0x10,%esp 801048e4: 85 c0 test %eax,%eax 801048e6: 89 c7 mov %eax,%edi 801048e8: 74 36 je 80104920 <create+0x80> 801048ea: 83 ec 0c sub $0xc,%esp 801048ed: 53 push %ebx 801048ee: e8 1d d0 ff ff call 80101910 <iunlockput> 801048f3: 89 3c 24 mov %edi,(%esp) 801048f6: e8 85 cd ff ff call 80101680 <ilock> 801048fb: 83 c4 10 add $0x10,%esp 801048fe: 66 83 7d d4 02 cmpw $0x2,-0x2c(%ebp) 80104903: 0f 85 97 00 00 00 jne 801049a0 <create+0x100> 80104909: 66 83 7f 50 02 cmpw $0x2,0x50(%edi) 8010490e: 0f 85 8c 00 00 00 jne 801049a0 <create+0x100> 80104914: 8d 65 f4 lea -0xc(%ebp),%esp 80104917: 89 f8 mov %edi,%eax 80104919: 5b pop %ebx 8010491a: 5e pop %esi 8010491b: 5f pop %edi 8010491c: 5d pop %ebp 8010491d: c3 ret 8010491e: 66 90 xchg %ax,%ax 80104920: 0f bf 45 d4 movswl -0x2c(%ebp),%eax 80104924: 83 ec 08 sub $0x8,%esp 80104927: 50 push %eax 80104928: ff 33 pushl (%ebx) 8010492a: e8 e1 cb ff ff call 80101510 <ialloc> 8010492f: 83 c4 10 add $0x10,%esp 80104932: 85 c0 test %eax,%eax 80104934: 89 c7 mov %eax,%edi 80104936: 0f 84 e8 00 00 00 je 80104a24 <create+0x184> 8010493c: 83 ec 0c sub $0xc,%esp 8010493f: 50 push %eax 80104940: e8 3b cd ff ff call 80101680 <ilock> 80104945: 0f b7 45 d0 movzwl -0x30(%ebp),%eax 80104949: 66 89 47 52 mov %ax,0x52(%edi) 8010494d: 0f b7 45 cc movzwl -0x34(%ebp),%eax 80104951: 66 89 47 54 mov %ax,0x54(%edi) 80104955: b8 01 00 00 00 mov $0x1,%eax 8010495a: 66 89 47 56 mov %ax,0x56(%edi) 8010495e: 89 3c 24 mov %edi,(%esp) 80104961: e8 6a cc ff ff call 801015d0 <iupdate> 80104966: 83 c4 10 add $0x10,%esp 80104969: 66 83 7d d4 01 cmpw $0x1,-0x2c(%ebp) 8010496e: 74 50 je 801049c0 <create+0x120> 80104970: 83 ec 04 sub $0x4,%esp 80104973: ff 77 04 pushl 0x4(%edi) 80104976: 56 push %esi 80104977: 53 push %ebx 80104978: e8 a3 d4 ff ff call 80101e20 <dirlink> 8010497d: 83 c4 10 add $0x10,%esp 80104980: 85 c0 test %eax,%eax 80104982: 0f 88 8f 00 00 00 js 80104a17 <create+0x177> 80104988: 83 ec 0c sub $0xc,%esp 8010498b: 53 push %ebx 8010498c: e8 7f cf ff ff call 80101910 <iunlockput> 80104991: 83 c4 10 add $0x10,%esp 80104994: 8d 65 f4 lea -0xc(%ebp),%esp 80104997: 89 f8 mov %edi,%eax 80104999: 5b pop %ebx 8010499a: 5e pop %esi 8010499b: 5f pop %edi 8010499c: 5d pop %ebp 8010499d: c3 ret 8010499e: 66 90 xchg %ax,%ax 801049a0: 83 ec 0c sub $0xc,%esp 801049a3: 57 push %edi 801049a4: 31 ff xor %edi,%edi 801049a6: e8 65 cf ff ff call 80101910 <iunlockput> 801049ab: 83 c4 10 add $0x10,%esp 801049ae: 8d 65 f4 lea -0xc(%ebp),%esp 801049b1: 89 f8 mov %edi,%eax 801049b3: 5b pop %ebx 801049b4: 5e pop %esi 801049b5: 5f pop %edi 801049b6: 5d pop %ebp 801049b7: c3 ret 801049b8: 90 nop 801049b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801049c0: 66 83 43 56 01 addw $0x1,0x56(%ebx) 801049c5: 83 ec 0c sub $0xc,%esp 801049c8: 53 push %ebx 801049c9: e8 02 cc ff ff call 801015d0 <iupdate> 801049ce: 83 c4 0c add $0xc,%esp 801049d1: ff 77 04 pushl 0x4(%edi) 801049d4: 68 14 76 10 80 push $0x80107614 801049d9: 57 push %edi 801049da: e8 41 d4 ff ff call 80101e20 <dirlink> 801049df: 83 c4 10 add $0x10,%esp 801049e2: 85 c0 test %eax,%eax 801049e4: 78 1c js 80104a02 <create+0x162> 801049e6: 83 ec 04 sub $0x4,%esp 801049e9: ff 73 04 pushl 0x4(%ebx) 801049ec: 68 13 76 10 80 push $0x80107613 801049f1: 57 push %edi 801049f2: e8 29 d4 ff ff call 80101e20 <dirlink> 801049f7: 83 c4 10 add $0x10,%esp 801049fa: 85 c0 test %eax,%eax 801049fc: 0f 89 6e ff ff ff jns 80104970 <create+0xd0> 80104a02: 83 ec 0c sub $0xc,%esp 80104a05: 68 07 76 10 80 push $0x80107607 80104a0a: e8 81 b9 ff ff call 80100390 <panic> 80104a0f: 90 nop 80104a10: 31 ff xor %edi,%edi 80104a12: e9 fd fe ff ff jmp 80104914 <create+0x74> 80104a17: 83 ec 0c sub $0xc,%esp 80104a1a: 68 16 76 10 80 push $0x80107616 80104a1f: e8 6c b9 ff ff call 80100390 <panic> 80104a24: 83 ec 0c sub $0xc,%esp 80104a27: 68 f8 75 10 80 push $0x801075f8 80104a2c: e8 5f b9 ff ff call 80100390 <panic> 80104a31: eb 0d jmp 80104a40 <argfd.constprop.0> 80104a33: 90 nop 80104a34: 90 nop 80104a35: 90 nop 80104a36: 90 nop 80104a37: 90 nop 80104a38: 90 nop 80104a39: 90 nop 80104a3a: 90 nop 80104a3b: 90 nop 80104a3c: 90 nop 80104a3d: 90 nop 80104a3e: 90 nop 80104a3f: 90 nop 80104a40 <argfd.constprop.0>: 80104a40: 55 push %ebp 80104a41: 89 e5 mov %esp,%ebp 80104a43: 56 push %esi 80104a44: 53 push %ebx 80104a45: 89 c3 mov %eax,%ebx 80104a47: 8d 45 f4 lea -0xc(%ebp),%eax 80104a4a: 89 d6 mov %edx,%esi 80104a4c: 83 ec 18 sub $0x18,%esp 80104a4f: 50 push %eax 80104a50: 6a 00 push $0x0 80104a52: e8 f9 fc ff ff call 80104750 <argint> 80104a57: 83 c4 10 add $0x10,%esp 80104a5a: 85 c0 test %eax,%eax 80104a5c: 78 2a js 80104a88 <argfd.constprop.0+0x48> 80104a5e: 83 7d f4 0f cmpl $0xf,-0xc(%ebp) 80104a62: 77 24 ja 80104a88 <argfd.constprop.0+0x48> 80104a64: e8 77 ed ff ff call 801037e0 <myproc> 80104a69: 8b 55 f4 mov -0xc(%ebp),%edx 80104a6c: 8b 44 90 28 mov 0x28(%eax,%edx,4),%eax 80104a70: 85 c0 test %eax,%eax 80104a72: 74 14 je 80104a88 <argfd.constprop.0+0x48> 80104a74: 85 db test %ebx,%ebx 80104a76: 74 02 je 80104a7a <argfd.constprop.0+0x3a> 80104a78: 89 13 mov %edx,(%ebx) 80104a7a: 89 06 mov %eax,(%esi) 80104a7c: 31 c0 xor %eax,%eax 80104a7e: 8d 65 f8 lea -0x8(%ebp),%esp 80104a81: 5b pop %ebx 80104a82: 5e pop %esi 80104a83: 5d pop %ebp 80104a84: c3 ret 80104a85: 8d 76 00 lea 0x0(%esi),%esi 80104a88: b8 ff ff ff ff mov $0xffffffff,%eax 80104a8d: eb ef jmp 80104a7e <argfd.constprop.0+0x3e> 80104a8f: 90 nop 80104a90 <sys_dup>: 80104a90: 55 push %ebp 80104a91: 31 c0 xor %eax,%eax 80104a93: 89 e5 mov %esp,%ebp 80104a95: 56 push %esi 80104a96: 53 push %ebx 80104a97: 8d 55 f4 lea -0xc(%ebp),%edx 80104a9a: 83 ec 10 sub $0x10,%esp 80104a9d: e8 9e ff ff ff call 80104a40 <argfd.constprop.0> 80104aa2: 85 c0 test %eax,%eax 80104aa4: 78 42 js 80104ae8 <sys_dup+0x58> 80104aa6: 8b 75 f4 mov -0xc(%ebp),%esi 80104aa9: 31 db xor %ebx,%ebx 80104aab: e8 30 ed ff ff call 801037e0 <myproc> 80104ab0: eb 0e jmp 80104ac0 <sys_dup+0x30> 80104ab2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104ab8: 83 c3 01 add $0x1,%ebx 80104abb: 83 fb 10 cmp $0x10,%ebx 80104abe: 74 28 je 80104ae8 <sys_dup+0x58> 80104ac0: 8b 54 98 28 mov 0x28(%eax,%ebx,4),%edx 80104ac4: 85 d2 test %edx,%edx 80104ac6: 75 f0 jne 80104ab8 <sys_dup+0x28> 80104ac8: 89 74 98 28 mov %esi,0x28(%eax,%ebx,4) 80104acc: 83 ec 0c sub $0xc,%esp 80104acf: ff 75 f4 pushl -0xc(%ebp) 80104ad2: e8 19 c3 ff ff call 80100df0 <filedup> 80104ad7: 83 c4 10 add $0x10,%esp 80104ada: 8d 65 f8 lea -0x8(%ebp),%esp 80104add: 89 d8 mov %ebx,%eax 80104adf: 5b pop %ebx 80104ae0: 5e pop %esi 80104ae1: 5d pop %ebp 80104ae2: c3 ret 80104ae3: 90 nop 80104ae4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104ae8: 8d 65 f8 lea -0x8(%ebp),%esp 80104aeb: bb ff ff ff ff mov $0xffffffff,%ebx 80104af0: 89 d8 mov %ebx,%eax 80104af2: 5b pop %ebx 80104af3: 5e pop %esi 80104af4: 5d pop %ebp 80104af5: c3 ret 80104af6: 8d 76 00 lea 0x0(%esi),%esi 80104af9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104b00 <sys_read>: 80104b00: 55 push %ebp 80104b01: 31 c0 xor %eax,%eax 80104b03: 89 e5 mov %esp,%ebp 80104b05: 83 ec 18 sub $0x18,%esp 80104b08: 8d 55 ec lea -0x14(%ebp),%edx 80104b0b: e8 30 ff ff ff call 80104a40 <argfd.constprop.0> 80104b10: 85 c0 test %eax,%eax 80104b12: 78 4c js 80104b60 <sys_read+0x60> 80104b14: 8d 45 f0 lea -0x10(%ebp),%eax 80104b17: 83 ec 08 sub $0x8,%esp 80104b1a: 50 push %eax 80104b1b: 6a 02 push $0x2 80104b1d: e8 2e fc ff ff call 80104750 <argint> 80104b22: 83 c4 10 add $0x10,%esp 80104b25: 85 c0 test %eax,%eax 80104b27: 78 37 js 80104b60 <sys_read+0x60> 80104b29: 8d 45 f4 lea -0xc(%ebp),%eax 80104b2c: 83 ec 04 sub $0x4,%esp 80104b2f: ff 75 f0 pushl -0x10(%ebp) 80104b32: 50 push %eax 80104b33: 6a 01 push $0x1 80104b35: e8 66 fc ff ff call 801047a0 <argptr> 80104b3a: 83 c4 10 add $0x10,%esp 80104b3d: 85 c0 test %eax,%eax 80104b3f: 78 1f js 80104b60 <sys_read+0x60> 80104b41: 83 ec 04 sub $0x4,%esp 80104b44: ff 75 f0 pushl -0x10(%ebp) 80104b47: ff 75 f4 pushl -0xc(%ebp) 80104b4a: ff 75 ec pushl -0x14(%ebp) 80104b4d: e8 0e c4 ff ff call 80100f60 <fileread> 80104b52: 83 c4 10 add $0x10,%esp 80104b55: c9 leave 80104b56: c3 ret 80104b57: 89 f6 mov %esi,%esi 80104b59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104b60: b8 ff ff ff ff mov $0xffffffff,%eax 80104b65: c9 leave 80104b66: c3 ret 80104b67: 89 f6 mov %esi,%esi 80104b69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104b70 <sys_write>: 80104b70: 55 push %ebp 80104b71: 31 c0 xor %eax,%eax 80104b73: 89 e5 mov %esp,%ebp 80104b75: 83 ec 18 sub $0x18,%esp 80104b78: 8d 55 ec lea -0x14(%ebp),%edx 80104b7b: e8 c0 fe ff ff call 80104a40 <argfd.constprop.0> 80104b80: 85 c0 test %eax,%eax 80104b82: 78 4c js 80104bd0 <sys_write+0x60> 80104b84: 8d 45 f0 lea -0x10(%ebp),%eax 80104b87: 83 ec 08 sub $0x8,%esp 80104b8a: 50 push %eax 80104b8b: 6a 02 push $0x2 80104b8d: e8 be fb ff ff call 80104750 <argint> 80104b92: 83 c4 10 add $0x10,%esp 80104b95: 85 c0 test %eax,%eax 80104b97: 78 37 js 80104bd0 <sys_write+0x60> 80104b99: 8d 45 f4 lea -0xc(%ebp),%eax 80104b9c: 83 ec 04 sub $0x4,%esp 80104b9f: ff 75 f0 pushl -0x10(%ebp) 80104ba2: 50 push %eax 80104ba3: 6a 01 push $0x1 80104ba5: e8 f6 fb ff ff call 801047a0 <argptr> 80104baa: 83 c4 10 add $0x10,%esp 80104bad: 85 c0 test %eax,%eax 80104baf: 78 1f js 80104bd0 <sys_write+0x60> 80104bb1: 83 ec 04 sub $0x4,%esp 80104bb4: ff 75 f0 pushl -0x10(%ebp) 80104bb7: ff 75 f4 pushl -0xc(%ebp) 80104bba: ff 75 ec pushl -0x14(%ebp) 80104bbd: e8 2e c4 ff ff call 80100ff0 <filewrite> 80104bc2: 83 c4 10 add $0x10,%esp 80104bc5: c9 leave 80104bc6: c3 ret 80104bc7: 89 f6 mov %esi,%esi 80104bc9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104bd0: b8 ff ff ff ff mov $0xffffffff,%eax 80104bd5: c9 leave 80104bd6: c3 ret 80104bd7: 89 f6 mov %esi,%esi 80104bd9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104be0 <sys_close>: 80104be0: 55 push %ebp 80104be1: 89 e5 mov %esp,%ebp 80104be3: 83 ec 18 sub $0x18,%esp 80104be6: 8d 55 f4 lea -0xc(%ebp),%edx 80104be9: 8d 45 f0 lea -0x10(%ebp),%eax 80104bec: e8 4f fe ff ff call 80104a40 <argfd.constprop.0> 80104bf1: 85 c0 test %eax,%eax 80104bf3: 78 2b js 80104c20 <sys_close+0x40> 80104bf5: e8 e6 eb ff ff call 801037e0 <myproc> 80104bfa: 8b 55 f0 mov -0x10(%ebp),%edx 80104bfd: 83 ec 0c sub $0xc,%esp 80104c00: c7 44 90 28 00 00 00 movl $0x0,0x28(%eax,%edx,4) 80104c07: 00 80104c08: ff 75 f4 pushl -0xc(%ebp) 80104c0b: e8 30 c2 ff ff call 80100e40 <fileclose> 80104c10: 83 c4 10 add $0x10,%esp 80104c13: 31 c0 xor %eax,%eax 80104c15: c9 leave 80104c16: c3 ret 80104c17: 89 f6 mov %esi,%esi 80104c19: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104c20: b8 ff ff ff ff mov $0xffffffff,%eax 80104c25: c9 leave 80104c26: c3 ret 80104c27: 89 f6 mov %esi,%esi 80104c29: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104c30 <sys_fstat>: 80104c30: 55 push %ebp 80104c31: 31 c0 xor %eax,%eax 80104c33: 89 e5 mov %esp,%ebp 80104c35: 83 ec 18 sub $0x18,%esp 80104c38: 8d 55 f0 lea -0x10(%ebp),%edx 80104c3b: e8 00 fe ff ff call 80104a40 <argfd.constprop.0> 80104c40: 85 c0 test %eax,%eax 80104c42: 78 2c js 80104c70 <sys_fstat+0x40> 80104c44: 8d 45 f4 lea -0xc(%ebp),%eax 80104c47: 83 ec 04 sub $0x4,%esp 80104c4a: 6a 14 push $0x14 80104c4c: 50 push %eax 80104c4d: 6a 01 push $0x1 80104c4f: e8 4c fb ff ff call 801047a0 <argptr> 80104c54: 83 c4 10 add $0x10,%esp 80104c57: 85 c0 test %eax,%eax 80104c59: 78 15 js 80104c70 <sys_fstat+0x40> 80104c5b: 83 ec 08 sub $0x8,%esp 80104c5e: ff 75 f4 pushl -0xc(%ebp) 80104c61: ff 75 f0 pushl -0x10(%ebp) 80104c64: e8 a7 c2 ff ff call 80100f10 <filestat> 80104c69: 83 c4 10 add $0x10,%esp 80104c6c: c9 leave 80104c6d: c3 ret 80104c6e: 66 90 xchg %ax,%ax 80104c70: b8 ff ff ff ff mov $0xffffffff,%eax 80104c75: c9 leave 80104c76: c3 ret 80104c77: 89 f6 mov %esi,%esi 80104c79: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104c80 <sys_link>: 80104c80: 55 push %ebp 80104c81: 89 e5 mov %esp,%ebp 80104c83: 57 push %edi 80104c84: 56 push %esi 80104c85: 53 push %ebx 80104c86: 8d 45 d4 lea -0x2c(%ebp),%eax 80104c89: 83 ec 34 sub $0x34,%esp 80104c8c: 50 push %eax 80104c8d: 6a 00 push $0x0 80104c8f: e8 6c fb ff ff call 80104800 <argstr> 80104c94: 83 c4 10 add $0x10,%esp 80104c97: 85 c0 test %eax,%eax 80104c99: 0f 88 fb 00 00 00 js 80104d9a <sys_link+0x11a> 80104c9f: 8d 45 d0 lea -0x30(%ebp),%eax 80104ca2: 83 ec 08 sub $0x8,%esp 80104ca5: 50 push %eax 80104ca6: 6a 01 push $0x1 80104ca8: e8 53 fb ff ff call 80104800 <argstr> 80104cad: 83 c4 10 add $0x10,%esp 80104cb0: 85 c0 test %eax,%eax 80104cb2: 0f 88 e2 00 00 00 js 80104d9a <sys_link+0x11a> 80104cb8: e8 e3 de ff ff call 80102ba0 <begin_op> 80104cbd: 83 ec 0c sub $0xc,%esp 80104cc0: ff 75 d4 pushl -0x2c(%ebp) 80104cc3: e8 18 d2 ff ff call 80101ee0 <namei> 80104cc8: 83 c4 10 add $0x10,%esp 80104ccb: 85 c0 test %eax,%eax 80104ccd: 89 c3 mov %eax,%ebx 80104ccf: 0f 84 ea 00 00 00 je 80104dbf <sys_link+0x13f> 80104cd5: 83 ec 0c sub $0xc,%esp 80104cd8: 50 push %eax 80104cd9: e8 a2 c9 ff ff call 80101680 <ilock> 80104cde: 83 c4 10 add $0x10,%esp 80104ce1: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 80104ce6: 0f 84 bb 00 00 00 je 80104da7 <sys_link+0x127> 80104cec: 66 83 43 56 01 addw $0x1,0x56(%ebx) 80104cf1: 83 ec 0c sub $0xc,%esp 80104cf4: 8d 7d da lea -0x26(%ebp),%edi 80104cf7: 53 push %ebx 80104cf8: e8 d3 c8 ff ff call 801015d0 <iupdate> 80104cfd: 89 1c 24 mov %ebx,(%esp) 80104d00: e8 5b ca ff ff call 80101760 <iunlock> 80104d05: 58 pop %eax 80104d06: 5a pop %edx 80104d07: 57 push %edi 80104d08: ff 75 d0 pushl -0x30(%ebp) 80104d0b: e8 f0 d1 ff ff call 80101f00 <nameiparent> 80104d10: 83 c4 10 add $0x10,%esp 80104d13: 85 c0 test %eax,%eax 80104d15: 89 c6 mov %eax,%esi 80104d17: 74 5b je 80104d74 <sys_link+0xf4> 80104d19: 83 ec 0c sub $0xc,%esp 80104d1c: 50 push %eax 80104d1d: e8 5e c9 ff ff call 80101680 <ilock> 80104d22: 83 c4 10 add $0x10,%esp 80104d25: 8b 03 mov (%ebx),%eax 80104d27: 39 06 cmp %eax,(%esi) 80104d29: 75 3d jne 80104d68 <sys_link+0xe8> 80104d2b: 83 ec 04 sub $0x4,%esp 80104d2e: ff 73 04 pushl 0x4(%ebx) 80104d31: 57 push %edi 80104d32: 56 push %esi 80104d33: e8 e8 d0 ff ff call 80101e20 <dirlink> 80104d38: 83 c4 10 add $0x10,%esp 80104d3b: 85 c0 test %eax,%eax 80104d3d: 78 29 js 80104d68 <sys_link+0xe8> 80104d3f: 83 ec 0c sub $0xc,%esp 80104d42: 56 push %esi 80104d43: e8 c8 cb ff ff call 80101910 <iunlockput> 80104d48: 89 1c 24 mov %ebx,(%esp) 80104d4b: e8 60 ca ff ff call 801017b0 <iput> 80104d50: e8 bb de ff ff call 80102c10 <end_op> 80104d55: 83 c4 10 add $0x10,%esp 80104d58: 31 c0 xor %eax,%eax 80104d5a: 8d 65 f4 lea -0xc(%ebp),%esp 80104d5d: 5b pop %ebx 80104d5e: 5e pop %esi 80104d5f: 5f pop %edi 80104d60: 5d pop %ebp 80104d61: c3 ret 80104d62: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80104d68: 83 ec 0c sub $0xc,%esp 80104d6b: 56 push %esi 80104d6c: e8 9f cb ff ff call 80101910 <iunlockput> 80104d71: 83 c4 10 add $0x10,%esp 80104d74: 83 ec 0c sub $0xc,%esp 80104d77: 53 push %ebx 80104d78: e8 03 c9 ff ff call 80101680 <ilock> 80104d7d: 66 83 6b 56 01 subw $0x1,0x56(%ebx) 80104d82: 89 1c 24 mov %ebx,(%esp) 80104d85: e8 46 c8 ff ff call 801015d0 <iupdate> 80104d8a: 89 1c 24 mov %ebx,(%esp) 80104d8d: e8 7e cb ff ff call 80101910 <iunlockput> 80104d92: e8 79 de ff ff call 80102c10 <end_op> 80104d97: 83 c4 10 add $0x10,%esp 80104d9a: 8d 65 f4 lea -0xc(%ebp),%esp 80104d9d: b8 ff ff ff ff mov $0xffffffff,%eax 80104da2: 5b pop %ebx 80104da3: 5e pop %esi 80104da4: 5f pop %edi 80104da5: 5d pop %ebp 80104da6: c3 ret 80104da7: 83 ec 0c sub $0xc,%esp 80104daa: 53 push %ebx 80104dab: e8 60 cb ff ff call 80101910 <iunlockput> 80104db0: e8 5b de ff ff call 80102c10 <end_op> 80104db5: 83 c4 10 add $0x10,%esp 80104db8: b8 ff ff ff ff mov $0xffffffff,%eax 80104dbd: eb 9b jmp 80104d5a <sys_link+0xda> 80104dbf: e8 4c de ff ff call 80102c10 <end_op> 80104dc4: b8 ff ff ff ff mov $0xffffffff,%eax 80104dc9: eb 8f jmp 80104d5a <sys_link+0xda> 80104dcb: 90 nop 80104dcc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104dd0 <sys_unlink>: 80104dd0: 55 push %ebp 80104dd1: 89 e5 mov %esp,%ebp 80104dd3: 57 push %edi 80104dd4: 56 push %esi 80104dd5: 53 push %ebx 80104dd6: 8d 45 c0 lea -0x40(%ebp),%eax 80104dd9: 83 ec 44 sub $0x44,%esp 80104ddc: 50 push %eax 80104ddd: 6a 00 push $0x0 80104ddf: e8 1c fa ff ff call 80104800 <argstr> 80104de4: 83 c4 10 add $0x10,%esp 80104de7: 85 c0 test %eax,%eax 80104de9: 0f 88 77 01 00 00 js 80104f66 <sys_unlink+0x196> 80104def: 8d 5d ca lea -0x36(%ebp),%ebx 80104df2: e8 a9 dd ff ff call 80102ba0 <begin_op> 80104df7: 83 ec 08 sub $0x8,%esp 80104dfa: 53 push %ebx 80104dfb: ff 75 c0 pushl -0x40(%ebp) 80104dfe: e8 fd d0 ff ff call 80101f00 <nameiparent> 80104e03: 83 c4 10 add $0x10,%esp 80104e06: 85 c0 test %eax,%eax 80104e08: 89 c6 mov %eax,%esi 80104e0a: 0f 84 60 01 00 00 je 80104f70 <sys_unlink+0x1a0> 80104e10: 83 ec 0c sub $0xc,%esp 80104e13: 50 push %eax 80104e14: e8 67 c8 ff ff call 80101680 <ilock> 80104e19: 58 pop %eax 80104e1a: 5a pop %edx 80104e1b: 68 14 76 10 80 push $0x80107614 80104e20: 53 push %ebx 80104e21: e8 6a cd ff ff call 80101b90 <namecmp> 80104e26: 83 c4 10 add $0x10,%esp 80104e29: 85 c0 test %eax,%eax 80104e2b: 0f 84 03 01 00 00 je 80104f34 <sys_unlink+0x164> 80104e31: 83 ec 08 sub $0x8,%esp 80104e34: 68 13 76 10 80 push $0x80107613 80104e39: 53 push %ebx 80104e3a: e8 51 cd ff ff call 80101b90 <namecmp> 80104e3f: 83 c4 10 add $0x10,%esp 80104e42: 85 c0 test %eax,%eax 80104e44: 0f 84 ea 00 00 00 je 80104f34 <sys_unlink+0x164> 80104e4a: 8d 45 c4 lea -0x3c(%ebp),%eax 80104e4d: 83 ec 04 sub $0x4,%esp 80104e50: 50 push %eax 80104e51: 53 push %ebx 80104e52: 56 push %esi 80104e53: e8 58 cd ff ff call 80101bb0 <dirlookup> 80104e58: 83 c4 10 add $0x10,%esp 80104e5b: 85 c0 test %eax,%eax 80104e5d: 89 c3 mov %eax,%ebx 80104e5f: 0f 84 cf 00 00 00 je 80104f34 <sys_unlink+0x164> 80104e65: 83 ec 0c sub $0xc,%esp 80104e68: 50 push %eax 80104e69: e8 12 c8 ff ff call 80101680 <ilock> 80104e6e: 83 c4 10 add $0x10,%esp 80104e71: 66 83 7b 56 00 cmpw $0x0,0x56(%ebx) 80104e76: 0f 8e 10 01 00 00 jle 80104f8c <sys_unlink+0x1bc> 80104e7c: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 80104e81: 74 6d je 80104ef0 <sys_unlink+0x120> 80104e83: 8d 45 d8 lea -0x28(%ebp),%eax 80104e86: 83 ec 04 sub $0x4,%esp 80104e89: 6a 10 push $0x10 80104e8b: 6a 00 push $0x0 80104e8d: 50 push %eax 80104e8e: e8 bd f5 ff ff call 80104450 <memset> 80104e93: 8d 45 d8 lea -0x28(%ebp),%eax 80104e96: 6a 10 push $0x10 80104e98: ff 75 c4 pushl -0x3c(%ebp) 80104e9b: 50 push %eax 80104e9c: 56 push %esi 80104e9d: e8 be cb ff ff call 80101a60 <writei> 80104ea2: 83 c4 20 add $0x20,%esp 80104ea5: 83 f8 10 cmp $0x10,%eax 80104ea8: 0f 85 eb 00 00 00 jne 80104f99 <sys_unlink+0x1c9> 80104eae: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 80104eb3: 0f 84 97 00 00 00 je 80104f50 <sys_unlink+0x180> 80104eb9: 83 ec 0c sub $0xc,%esp 80104ebc: 56 push %esi 80104ebd: e8 4e ca ff ff call 80101910 <iunlockput> 80104ec2: 66 83 6b 56 01 subw $0x1,0x56(%ebx) 80104ec7: 89 1c 24 mov %ebx,(%esp) 80104eca: e8 01 c7 ff ff call 801015d0 <iupdate> 80104ecf: 89 1c 24 mov %ebx,(%esp) 80104ed2: e8 39 ca ff ff call 80101910 <iunlockput> 80104ed7: e8 34 dd ff ff call 80102c10 <end_op> 80104edc: 83 c4 10 add $0x10,%esp 80104edf: 31 c0 xor %eax,%eax 80104ee1: 8d 65 f4 lea -0xc(%ebp),%esp 80104ee4: 5b pop %ebx 80104ee5: 5e pop %esi 80104ee6: 5f pop %edi 80104ee7: 5d pop %ebp 80104ee8: c3 ret 80104ee9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80104ef0: 83 7b 58 20 cmpl $0x20,0x58(%ebx) 80104ef4: 76 8d jbe 80104e83 <sys_unlink+0xb3> 80104ef6: bf 20 00 00 00 mov $0x20,%edi 80104efb: eb 0f jmp 80104f0c <sys_unlink+0x13c> 80104efd: 8d 76 00 lea 0x0(%esi),%esi 80104f00: 83 c7 10 add $0x10,%edi 80104f03: 3b 7b 58 cmp 0x58(%ebx),%edi 80104f06: 0f 83 77 ff ff ff jae 80104e83 <sys_unlink+0xb3> 80104f0c: 8d 45 d8 lea -0x28(%ebp),%eax 80104f0f: 6a 10 push $0x10 80104f11: 57 push %edi 80104f12: 50 push %eax 80104f13: 53 push %ebx 80104f14: e8 47 ca ff ff call 80101960 <readi> 80104f19: 83 c4 10 add $0x10,%esp 80104f1c: 83 f8 10 cmp $0x10,%eax 80104f1f: 75 5e jne 80104f7f <sys_unlink+0x1af> 80104f21: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp) 80104f26: 74 d8 je 80104f00 <sys_unlink+0x130> 80104f28: 83 ec 0c sub $0xc,%esp 80104f2b: 53 push %ebx 80104f2c: e8 df c9 ff ff call 80101910 <iunlockput> 80104f31: 83 c4 10 add $0x10,%esp 80104f34: 83 ec 0c sub $0xc,%esp 80104f37: 56 push %esi 80104f38: e8 d3 c9 ff ff call 80101910 <iunlockput> 80104f3d: e8 ce dc ff ff call 80102c10 <end_op> 80104f42: 83 c4 10 add $0x10,%esp 80104f45: b8 ff ff ff ff mov $0xffffffff,%eax 80104f4a: eb 95 jmp 80104ee1 <sys_unlink+0x111> 80104f4c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80104f50: 66 83 6e 56 01 subw $0x1,0x56(%esi) 80104f55: 83 ec 0c sub $0xc,%esp 80104f58: 56 push %esi 80104f59: e8 72 c6 ff ff call 801015d0 <iupdate> 80104f5e: 83 c4 10 add $0x10,%esp 80104f61: e9 53 ff ff ff jmp 80104eb9 <sys_unlink+0xe9> 80104f66: b8 ff ff ff ff mov $0xffffffff,%eax 80104f6b: e9 71 ff ff ff jmp 80104ee1 <sys_unlink+0x111> 80104f70: e8 9b dc ff ff call 80102c10 <end_op> 80104f75: b8 ff ff ff ff mov $0xffffffff,%eax 80104f7a: e9 62 ff ff ff jmp 80104ee1 <sys_unlink+0x111> 80104f7f: 83 ec 0c sub $0xc,%esp 80104f82: 68 38 76 10 80 push $0x80107638 80104f87: e8 04 b4 ff ff call 80100390 <panic> 80104f8c: 83 ec 0c sub $0xc,%esp 80104f8f: 68 26 76 10 80 push $0x80107626 80104f94: e8 f7 b3 ff ff call 80100390 <panic> 80104f99: 83 ec 0c sub $0xc,%esp 80104f9c: 68 4a 76 10 80 push $0x8010764a 80104fa1: e8 ea b3 ff ff call 80100390 <panic> 80104fa6: 8d 76 00 lea 0x0(%esi),%esi 80104fa9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80104fb0 <sys_open>: 80104fb0: 55 push %ebp 80104fb1: 89 e5 mov %esp,%ebp 80104fb3: 57 push %edi 80104fb4: 56 push %esi 80104fb5: 53 push %ebx 80104fb6: 8d 45 e0 lea -0x20(%ebp),%eax 80104fb9: 83 ec 24 sub $0x24,%esp 80104fbc: 50 push %eax 80104fbd: 6a 00 push $0x0 80104fbf: e8 3c f8 ff ff call 80104800 <argstr> 80104fc4: 83 c4 10 add $0x10,%esp 80104fc7: 85 c0 test %eax,%eax 80104fc9: 0f 88 1d 01 00 00 js 801050ec <sys_open+0x13c> 80104fcf: 8d 45 e4 lea -0x1c(%ebp),%eax 80104fd2: 83 ec 08 sub $0x8,%esp 80104fd5: 50 push %eax 80104fd6: 6a 01 push $0x1 80104fd8: e8 73 f7 ff ff call 80104750 <argint> 80104fdd: 83 c4 10 add $0x10,%esp 80104fe0: 85 c0 test %eax,%eax 80104fe2: 0f 88 04 01 00 00 js 801050ec <sys_open+0x13c> 80104fe8: e8 b3 db ff ff call 80102ba0 <begin_op> 80104fed: f6 45 e5 02 testb $0x2,-0x1b(%ebp) 80104ff1: 0f 85 a9 00 00 00 jne 801050a0 <sys_open+0xf0> 80104ff7: 83 ec 0c sub $0xc,%esp 80104ffa: ff 75 e0 pushl -0x20(%ebp) 80104ffd: e8 de ce ff ff call 80101ee0 <namei> 80105002: 83 c4 10 add $0x10,%esp 80105005: 85 c0 test %eax,%eax 80105007: 89 c6 mov %eax,%esi 80105009: 0f 84 b2 00 00 00 je 801050c1 <sys_open+0x111> 8010500f: 83 ec 0c sub $0xc,%esp 80105012: 50 push %eax 80105013: e8 68 c6 ff ff call 80101680 <ilock> 80105018: 83 c4 10 add $0x10,%esp 8010501b: 66 83 7e 50 01 cmpw $0x1,0x50(%esi) 80105020: 0f 84 aa 00 00 00 je 801050d0 <sys_open+0x120> 80105026: e8 55 bd ff ff call 80100d80 <filealloc> 8010502b: 85 c0 test %eax,%eax 8010502d: 89 c7 mov %eax,%edi 8010502f: 0f 84 a6 00 00 00 je 801050db <sys_open+0x12b> 80105035: e8 a6 e7 ff ff call 801037e0 <myproc> 8010503a: 31 db xor %ebx,%ebx 8010503c: eb 0e jmp 8010504c <sys_open+0x9c> 8010503e: 66 90 xchg %ax,%ax 80105040: 83 c3 01 add $0x1,%ebx 80105043: 83 fb 10 cmp $0x10,%ebx 80105046: 0f 84 ac 00 00 00 je 801050f8 <sys_open+0x148> 8010504c: 8b 54 98 28 mov 0x28(%eax,%ebx,4),%edx 80105050: 85 d2 test %edx,%edx 80105052: 75 ec jne 80105040 <sys_open+0x90> 80105054: 83 ec 0c sub $0xc,%esp 80105057: 89 7c 98 28 mov %edi,0x28(%eax,%ebx,4) 8010505b: 56 push %esi 8010505c: e8 ff c6 ff ff call 80101760 <iunlock> 80105061: e8 aa db ff ff call 80102c10 <end_op> 80105066: c7 07 02 00 00 00 movl $0x2,(%edi) 8010506c: 8b 55 e4 mov -0x1c(%ebp),%edx 8010506f: 83 c4 10 add $0x10,%esp 80105072: 89 77 10 mov %esi,0x10(%edi) 80105075: c7 47 14 00 00 00 00 movl $0x0,0x14(%edi) 8010507c: 89 d0 mov %edx,%eax 8010507e: f7 d0 not %eax 80105080: 83 e0 01 and $0x1,%eax 80105083: 83 e2 03 and $0x3,%edx 80105086: 88 47 08 mov %al,0x8(%edi) 80105089: 0f 95 47 09 setne 0x9(%edi) 8010508d: 8d 65 f4 lea -0xc(%ebp),%esp 80105090: 89 d8 mov %ebx,%eax 80105092: 5b pop %ebx 80105093: 5e pop %esi 80105094: 5f pop %edi 80105095: 5d pop %ebp 80105096: c3 ret 80105097: 89 f6 mov %esi,%esi 80105099: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801050a0: 83 ec 0c sub $0xc,%esp 801050a3: 8b 45 e0 mov -0x20(%ebp),%eax 801050a6: 31 c9 xor %ecx,%ecx 801050a8: 6a 00 push $0x0 801050aa: ba 02 00 00 00 mov $0x2,%edx 801050af: e8 ec f7 ff ff call 801048a0 <create> 801050b4: 83 c4 10 add $0x10,%esp 801050b7: 85 c0 test %eax,%eax 801050b9: 89 c6 mov %eax,%esi 801050bb: 0f 85 65 ff ff ff jne 80105026 <sys_open+0x76> 801050c1: e8 4a db ff ff call 80102c10 <end_op> 801050c6: bb ff ff ff ff mov $0xffffffff,%ebx 801050cb: eb c0 jmp 8010508d <sys_open+0xdd> 801050cd: 8d 76 00 lea 0x0(%esi),%esi 801050d0: 8b 4d e4 mov -0x1c(%ebp),%ecx 801050d3: 85 c9 test %ecx,%ecx 801050d5: 0f 84 4b ff ff ff je 80105026 <sys_open+0x76> 801050db: 83 ec 0c sub $0xc,%esp 801050de: 56 push %esi 801050df: e8 2c c8 ff ff call 80101910 <iunlockput> 801050e4: e8 27 db ff ff call 80102c10 <end_op> 801050e9: 83 c4 10 add $0x10,%esp 801050ec: bb ff ff ff ff mov $0xffffffff,%ebx 801050f1: eb 9a jmp 8010508d <sys_open+0xdd> 801050f3: 90 nop 801050f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801050f8: 83 ec 0c sub $0xc,%esp 801050fb: 57 push %edi 801050fc: e8 3f bd ff ff call 80100e40 <fileclose> 80105101: 83 c4 10 add $0x10,%esp 80105104: eb d5 jmp 801050db <sys_open+0x12b> 80105106: 8d 76 00 lea 0x0(%esi),%esi 80105109: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105110 <sys_mkdir>: 80105110: 55 push %ebp 80105111: 89 e5 mov %esp,%ebp 80105113: 83 ec 18 sub $0x18,%esp 80105116: e8 85 da ff ff call 80102ba0 <begin_op> 8010511b: 8d 45 f4 lea -0xc(%ebp),%eax 8010511e: 83 ec 08 sub $0x8,%esp 80105121: 50 push %eax 80105122: 6a 00 push $0x0 80105124: e8 d7 f6 ff ff call 80104800 <argstr> 80105129: 83 c4 10 add $0x10,%esp 8010512c: 85 c0 test %eax,%eax 8010512e: 78 30 js 80105160 <sys_mkdir+0x50> 80105130: 83 ec 0c sub $0xc,%esp 80105133: 8b 45 f4 mov -0xc(%ebp),%eax 80105136: 31 c9 xor %ecx,%ecx 80105138: 6a 00 push $0x0 8010513a: ba 01 00 00 00 mov $0x1,%edx 8010513f: e8 5c f7 ff ff call 801048a0 <create> 80105144: 83 c4 10 add $0x10,%esp 80105147: 85 c0 test %eax,%eax 80105149: 74 15 je 80105160 <sys_mkdir+0x50> 8010514b: 83 ec 0c sub $0xc,%esp 8010514e: 50 push %eax 8010514f: e8 bc c7 ff ff call 80101910 <iunlockput> 80105154: e8 b7 da ff ff call 80102c10 <end_op> 80105159: 83 c4 10 add $0x10,%esp 8010515c: 31 c0 xor %eax,%eax 8010515e: c9 leave 8010515f: c3 ret 80105160: e8 ab da ff ff call 80102c10 <end_op> 80105165: b8 ff ff ff ff mov $0xffffffff,%eax 8010516a: c9 leave 8010516b: c3 ret 8010516c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105170 <sys_mknod>: 80105170: 55 push %ebp 80105171: 89 e5 mov %esp,%ebp 80105173: 83 ec 18 sub $0x18,%esp 80105176: e8 25 da ff ff call 80102ba0 <begin_op> 8010517b: 8d 45 ec lea -0x14(%ebp),%eax 8010517e: 83 ec 08 sub $0x8,%esp 80105181: 50 push %eax 80105182: 6a 00 push $0x0 80105184: e8 77 f6 ff ff call 80104800 <argstr> 80105189: 83 c4 10 add $0x10,%esp 8010518c: 85 c0 test %eax,%eax 8010518e: 78 60 js 801051f0 <sys_mknod+0x80> 80105190: 8d 45 f0 lea -0x10(%ebp),%eax 80105193: 83 ec 08 sub $0x8,%esp 80105196: 50 push %eax 80105197: 6a 01 push $0x1 80105199: e8 b2 f5 ff ff call 80104750 <argint> 8010519e: 83 c4 10 add $0x10,%esp 801051a1: 85 c0 test %eax,%eax 801051a3: 78 4b js 801051f0 <sys_mknod+0x80> 801051a5: 8d 45 f4 lea -0xc(%ebp),%eax 801051a8: 83 ec 08 sub $0x8,%esp 801051ab: 50 push %eax 801051ac: 6a 02 push $0x2 801051ae: e8 9d f5 ff ff call 80104750 <argint> 801051b3: 83 c4 10 add $0x10,%esp 801051b6: 85 c0 test %eax,%eax 801051b8: 78 36 js 801051f0 <sys_mknod+0x80> 801051ba: 0f bf 45 f4 movswl -0xc(%ebp),%eax 801051be: 83 ec 0c sub $0xc,%esp 801051c1: 0f bf 4d f0 movswl -0x10(%ebp),%ecx 801051c5: ba 03 00 00 00 mov $0x3,%edx 801051ca: 50 push %eax 801051cb: 8b 45 ec mov -0x14(%ebp),%eax 801051ce: e8 cd f6 ff ff call 801048a0 <create> 801051d3: 83 c4 10 add $0x10,%esp 801051d6: 85 c0 test %eax,%eax 801051d8: 74 16 je 801051f0 <sys_mknod+0x80> 801051da: 83 ec 0c sub $0xc,%esp 801051dd: 50 push %eax 801051de: e8 2d c7 ff ff call 80101910 <iunlockput> 801051e3: e8 28 da ff ff call 80102c10 <end_op> 801051e8: 83 c4 10 add $0x10,%esp 801051eb: 31 c0 xor %eax,%eax 801051ed: c9 leave 801051ee: c3 ret 801051ef: 90 nop 801051f0: e8 1b da ff ff call 80102c10 <end_op> 801051f5: b8 ff ff ff ff mov $0xffffffff,%eax 801051fa: c9 leave 801051fb: c3 ret 801051fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105200 <sys_chdir>: 80105200: 55 push %ebp 80105201: 89 e5 mov %esp,%ebp 80105203: 56 push %esi 80105204: 53 push %ebx 80105205: 83 ec 10 sub $0x10,%esp 80105208: e8 d3 e5 ff ff call 801037e0 <myproc> 8010520d: 89 c6 mov %eax,%esi 8010520f: e8 8c d9 ff ff call 80102ba0 <begin_op> 80105214: 8d 45 f4 lea -0xc(%ebp),%eax 80105217: 83 ec 08 sub $0x8,%esp 8010521a: 50 push %eax 8010521b: 6a 00 push $0x0 8010521d: e8 de f5 ff ff call 80104800 <argstr> 80105222: 83 c4 10 add $0x10,%esp 80105225: 85 c0 test %eax,%eax 80105227: 78 77 js 801052a0 <sys_chdir+0xa0> 80105229: 83 ec 0c sub $0xc,%esp 8010522c: ff 75 f4 pushl -0xc(%ebp) 8010522f: e8 ac cc ff ff call 80101ee0 <namei> 80105234: 83 c4 10 add $0x10,%esp 80105237: 85 c0 test %eax,%eax 80105239: 89 c3 mov %eax,%ebx 8010523b: 74 63 je 801052a0 <sys_chdir+0xa0> 8010523d: 83 ec 0c sub $0xc,%esp 80105240: 50 push %eax 80105241: e8 3a c4 ff ff call 80101680 <ilock> 80105246: 83 c4 10 add $0x10,%esp 80105249: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx) 8010524e: 75 30 jne 80105280 <sys_chdir+0x80> 80105250: 83 ec 0c sub $0xc,%esp 80105253: 53 push %ebx 80105254: e8 07 c5 ff ff call 80101760 <iunlock> 80105259: 58 pop %eax 8010525a: ff 76 68 pushl 0x68(%esi) 8010525d: e8 4e c5 ff ff call 801017b0 <iput> 80105262: e8 a9 d9 ff ff call 80102c10 <end_op> 80105267: 89 5e 68 mov %ebx,0x68(%esi) 8010526a: 83 c4 10 add $0x10,%esp 8010526d: 31 c0 xor %eax,%eax 8010526f: 8d 65 f8 lea -0x8(%ebp),%esp 80105272: 5b pop %ebx 80105273: 5e pop %esi 80105274: 5d pop %ebp 80105275: c3 ret 80105276: 8d 76 00 lea 0x0(%esi),%esi 80105279: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105280: 83 ec 0c sub $0xc,%esp 80105283: 53 push %ebx 80105284: e8 87 c6 ff ff call 80101910 <iunlockput> 80105289: e8 82 d9 ff ff call 80102c10 <end_op> 8010528e: 83 c4 10 add $0x10,%esp 80105291: b8 ff ff ff ff mov $0xffffffff,%eax 80105296: eb d7 jmp 8010526f <sys_chdir+0x6f> 80105298: 90 nop 80105299: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801052a0: e8 6b d9 ff ff call 80102c10 <end_op> 801052a5: b8 ff ff ff ff mov $0xffffffff,%eax 801052aa: eb c3 jmp 8010526f <sys_chdir+0x6f> 801052ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801052b0 <sys_exec>: 801052b0: 55 push %ebp 801052b1: 89 e5 mov %esp,%ebp 801052b3: 57 push %edi 801052b4: 56 push %esi 801052b5: 53 push %ebx 801052b6: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax 801052bc: 81 ec a4 00 00 00 sub $0xa4,%esp 801052c2: 50 push %eax 801052c3: 6a 00 push $0x0 801052c5: e8 36 f5 ff ff call 80104800 <argstr> 801052ca: 83 c4 10 add $0x10,%esp 801052cd: 85 c0 test %eax,%eax 801052cf: 0f 88 87 00 00 00 js 8010535c <sys_exec+0xac> 801052d5: 8d 85 60 ff ff ff lea -0xa0(%ebp),%eax 801052db: 83 ec 08 sub $0x8,%esp 801052de: 50 push %eax 801052df: 6a 01 push $0x1 801052e1: e8 6a f4 ff ff call 80104750 <argint> 801052e6: 83 c4 10 add $0x10,%esp 801052e9: 85 c0 test %eax,%eax 801052eb: 78 6f js 8010535c <sys_exec+0xac> 801052ed: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax 801052f3: 83 ec 04 sub $0x4,%esp 801052f6: 31 db xor %ebx,%ebx 801052f8: 68 80 00 00 00 push $0x80 801052fd: 6a 00 push $0x0 801052ff: 8d bd 64 ff ff ff lea -0x9c(%ebp),%edi 80105305: 50 push %eax 80105306: e8 45 f1 ff ff call 80104450 <memset> 8010530b: 83 c4 10 add $0x10,%esp 8010530e: eb 2c jmp 8010533c <sys_exec+0x8c> 80105310: 8b 85 64 ff ff ff mov -0x9c(%ebp),%eax 80105316: 85 c0 test %eax,%eax 80105318: 74 56 je 80105370 <sys_exec+0xc0> 8010531a: 8d 8d 68 ff ff ff lea -0x98(%ebp),%ecx 80105320: 83 ec 08 sub $0x8,%esp 80105323: 8d 14 31 lea (%ecx,%esi,1),%edx 80105326: 52 push %edx 80105327: 50 push %eax 80105328: e8 b3 f3 ff ff call 801046e0 <fetchstr> 8010532d: 83 c4 10 add $0x10,%esp 80105330: 85 c0 test %eax,%eax 80105332: 78 28 js 8010535c <sys_exec+0xac> 80105334: 83 c3 01 add $0x1,%ebx 80105337: 83 fb 20 cmp $0x20,%ebx 8010533a: 74 20 je 8010535c <sys_exec+0xac> 8010533c: 8b 85 60 ff ff ff mov -0xa0(%ebp),%eax 80105342: 8d 34 9d 00 00 00 00 lea 0x0(,%ebx,4),%esi 80105349: 83 ec 08 sub $0x8,%esp 8010534c: 57 push %edi 8010534d: 01 f0 add %esi,%eax 8010534f: 50 push %eax 80105350: e8 4b f3 ff ff call 801046a0 <fetchint> 80105355: 83 c4 10 add $0x10,%esp 80105358: 85 c0 test %eax,%eax 8010535a: 79 b4 jns 80105310 <sys_exec+0x60> 8010535c: 8d 65 f4 lea -0xc(%ebp),%esp 8010535f: b8 ff ff ff ff mov $0xffffffff,%eax 80105364: 5b pop %ebx 80105365: 5e pop %esi 80105366: 5f pop %edi 80105367: 5d pop %ebp 80105368: c3 ret 80105369: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105370: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax 80105376: 83 ec 08 sub $0x8,%esp 80105379: c7 84 9d 68 ff ff ff movl $0x0,-0x98(%ebp,%ebx,4) 80105380: 00 00 00 00 80105384: 50 push %eax 80105385: ff b5 5c ff ff ff pushl -0xa4(%ebp) 8010538b: e8 80 b6 ff ff call 80100a10 <exec> 80105390: 83 c4 10 add $0x10,%esp 80105393: 8d 65 f4 lea -0xc(%ebp),%esp 80105396: 5b pop %ebx 80105397: 5e pop %esi 80105398: 5f pop %edi 80105399: 5d pop %ebp 8010539a: c3 ret 8010539b: 90 nop 8010539c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801053a0 <sys_pipe>: 801053a0: 55 push %ebp 801053a1: 89 e5 mov %esp,%ebp 801053a3: 57 push %edi 801053a4: 56 push %esi 801053a5: 53 push %ebx 801053a6: 8d 45 dc lea -0x24(%ebp),%eax 801053a9: 83 ec 20 sub $0x20,%esp 801053ac: 6a 08 push $0x8 801053ae: 50 push %eax 801053af: 6a 00 push $0x0 801053b1: e8 ea f3 ff ff call 801047a0 <argptr> 801053b6: 83 c4 10 add $0x10,%esp 801053b9: 85 c0 test %eax,%eax 801053bb: 0f 88 ae 00 00 00 js 8010546f <sys_pipe+0xcf> 801053c1: 8d 45 e4 lea -0x1c(%ebp),%eax 801053c4: 83 ec 08 sub $0x8,%esp 801053c7: 50 push %eax 801053c8: 8d 45 e0 lea -0x20(%ebp),%eax 801053cb: 50 push %eax 801053cc: e8 6f de ff ff call 80103240 <pipealloc> 801053d1: 83 c4 10 add $0x10,%esp 801053d4: 85 c0 test %eax,%eax 801053d6: 0f 88 93 00 00 00 js 8010546f <sys_pipe+0xcf> 801053dc: 8b 7d e0 mov -0x20(%ebp),%edi 801053df: 31 db xor %ebx,%ebx 801053e1: e8 fa e3 ff ff call 801037e0 <myproc> 801053e6: eb 10 jmp 801053f8 <sys_pipe+0x58> 801053e8: 90 nop 801053e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801053f0: 83 c3 01 add $0x1,%ebx 801053f3: 83 fb 10 cmp $0x10,%ebx 801053f6: 74 60 je 80105458 <sys_pipe+0xb8> 801053f8: 8b 74 98 28 mov 0x28(%eax,%ebx,4),%esi 801053fc: 85 f6 test %esi,%esi 801053fe: 75 f0 jne 801053f0 <sys_pipe+0x50> 80105400: 8d 73 08 lea 0x8(%ebx),%esi 80105403: 89 7c b0 08 mov %edi,0x8(%eax,%esi,4) 80105407: 8b 7d e4 mov -0x1c(%ebp),%edi 8010540a: e8 d1 e3 ff ff call 801037e0 <myproc> 8010540f: 31 d2 xor %edx,%edx 80105411: eb 0d jmp 80105420 <sys_pipe+0x80> 80105413: 90 nop 80105414: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105418: 83 c2 01 add $0x1,%edx 8010541b: 83 fa 10 cmp $0x10,%edx 8010541e: 74 28 je 80105448 <sys_pipe+0xa8> 80105420: 8b 4c 90 28 mov 0x28(%eax,%edx,4),%ecx 80105424: 85 c9 test %ecx,%ecx 80105426: 75 f0 jne 80105418 <sys_pipe+0x78> 80105428: 89 7c 90 28 mov %edi,0x28(%eax,%edx,4) 8010542c: 8b 45 dc mov -0x24(%ebp),%eax 8010542f: 89 18 mov %ebx,(%eax) 80105431: 8b 45 dc mov -0x24(%ebp),%eax 80105434: 89 50 04 mov %edx,0x4(%eax) 80105437: 31 c0 xor %eax,%eax 80105439: 8d 65 f4 lea -0xc(%ebp),%esp 8010543c: 5b pop %ebx 8010543d: 5e pop %esi 8010543e: 5f pop %edi 8010543f: 5d pop %ebp 80105440: c3 ret 80105441: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105448: e8 93 e3 ff ff call 801037e0 <myproc> 8010544d: c7 44 b0 08 00 00 00 movl $0x0,0x8(%eax,%esi,4) 80105454: 00 80105455: 8d 76 00 lea 0x0(%esi),%esi 80105458: 83 ec 0c sub $0xc,%esp 8010545b: ff 75 e0 pushl -0x20(%ebp) 8010545e: e8 dd b9 ff ff call 80100e40 <fileclose> 80105463: 58 pop %eax 80105464: ff 75 e4 pushl -0x1c(%ebp) 80105467: e8 d4 b9 ff ff call 80100e40 <fileclose> 8010546c: 83 c4 10 add $0x10,%esp 8010546f: b8 ff ff ff ff mov $0xffffffff,%eax 80105474: eb c3 jmp 80105439 <sys_pipe+0x99> 80105476: 66 90 xchg %ax,%ax 80105478: 66 90 xchg %ax,%ax 8010547a: 66 90 xchg %ax,%ax 8010547c: 66 90 xchg %ax,%ax 8010547e: 66 90 xchg %ax,%ax 80105480 <sys_fork>: 80105480: 55 push %ebp 80105481: 89 e5 mov %esp,%ebp 80105483: 5d pop %ebp 80105484: e9 f7 e4 ff ff jmp 80103980 <fork> 80105489: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105490 <sys_exit>: 80105490: 55 push %ebp 80105491: 89 e5 mov %esp,%ebp 80105493: 83 ec 08 sub $0x8,%esp 80105496: e8 65 e7 ff ff call 80103c00 <exit> 8010549b: 31 c0 xor %eax,%eax 8010549d: c9 leave 8010549e: c3 ret 8010549f: 90 nop 801054a0 <sys_wait>: 801054a0: 55 push %ebp 801054a1: 89 e5 mov %esp,%ebp 801054a3: 5d pop %ebp 801054a4: e9 97 e9 ff ff jmp 80103e40 <wait> 801054a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801054b0 <sys_kill>: 801054b0: 55 push %ebp 801054b1: 89 e5 mov %esp,%ebp 801054b3: 83 ec 20 sub $0x20,%esp 801054b6: 8d 45 f4 lea -0xc(%ebp),%eax 801054b9: 50 push %eax 801054ba: 6a 00 push $0x0 801054bc: e8 8f f2 ff ff call 80104750 <argint> 801054c1: 83 c4 10 add $0x10,%esp 801054c4: 85 c0 test %eax,%eax 801054c6: 78 18 js 801054e0 <sys_kill+0x30> 801054c8: 83 ec 0c sub $0xc,%esp 801054cb: ff 75 f4 pushl -0xc(%ebp) 801054ce: e8 bd ea ff ff call 80103f90 <kill> 801054d3: 83 c4 10 add $0x10,%esp 801054d6: c9 leave 801054d7: c3 ret 801054d8: 90 nop 801054d9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801054e0: b8 ff ff ff ff mov $0xffffffff,%eax 801054e5: c9 leave 801054e6: c3 ret 801054e7: 89 f6 mov %esi,%esi 801054e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801054f0 <sys_getpid>: 801054f0: 55 push %ebp 801054f1: 89 e5 mov %esp,%ebp 801054f3: 83 ec 08 sub $0x8,%esp 801054f6: e8 e5 e2 ff ff call 801037e0 <myproc> 801054fb: 8b 40 10 mov 0x10(%eax),%eax 801054fe: c9 leave 801054ff: c3 ret 80105500 <sys_sbrk>: 80105500: 55 push %ebp 80105501: 89 e5 mov %esp,%ebp 80105503: 53 push %ebx 80105504: 8d 45 f4 lea -0xc(%ebp),%eax 80105507: 83 ec 1c sub $0x1c,%esp 8010550a: 50 push %eax 8010550b: 6a 00 push $0x0 8010550d: e8 3e f2 ff ff call 80104750 <argint> 80105512: 83 c4 10 add $0x10,%esp 80105515: 85 c0 test %eax,%eax 80105517: 78 27 js 80105540 <sys_sbrk+0x40> 80105519: e8 c2 e2 ff ff call 801037e0 <myproc> 8010551e: 83 ec 0c sub $0xc,%esp 80105521: 8b 18 mov (%eax),%ebx 80105523: ff 75 f4 pushl -0xc(%ebp) 80105526: e8 d5 e3 ff ff call 80103900 <growproc> 8010552b: 83 c4 10 add $0x10,%esp 8010552e: 85 c0 test %eax,%eax 80105530: 78 0e js 80105540 <sys_sbrk+0x40> 80105532: 89 d8 mov %ebx,%eax 80105534: 8b 5d fc mov -0x4(%ebp),%ebx 80105537: c9 leave 80105538: c3 ret 80105539: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105540: bb ff ff ff ff mov $0xffffffff,%ebx 80105545: eb eb jmp 80105532 <sys_sbrk+0x32> 80105547: 89 f6 mov %esi,%esi 80105549: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105550 <sys_sleep>: 80105550: 55 push %ebp 80105551: 89 e5 mov %esp,%ebp 80105553: 53 push %ebx 80105554: 8d 45 f4 lea -0xc(%ebp),%eax 80105557: 83 ec 1c sub $0x1c,%esp 8010555a: 50 push %eax 8010555b: 6a 00 push $0x0 8010555d: e8 ee f1 ff ff call 80104750 <argint> 80105562: 83 c4 10 add $0x10,%esp 80105565: 85 c0 test %eax,%eax 80105567: 0f 88 8a 00 00 00 js 801055f7 <sys_sleep+0xa7> 8010556d: 83 ec 0c sub $0xc,%esp 80105570: 68 60 4c 11 80 push $0x80114c60 80105575: e8 c6 ed ff ff call 80104340 <acquire> 8010557a: 8b 55 f4 mov -0xc(%ebp),%edx 8010557d: 83 c4 10 add $0x10,%esp 80105580: 8b 1d a0 54 11 80 mov 0x801154a0,%ebx 80105586: 85 d2 test %edx,%edx 80105588: 75 27 jne 801055b1 <sys_sleep+0x61> 8010558a: eb 54 jmp 801055e0 <sys_sleep+0x90> 8010558c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105590: 83 ec 08 sub $0x8,%esp 80105593: 68 60 4c 11 80 push $0x80114c60 80105598: 68 a0 54 11 80 push $0x801154a0 8010559d: e8 de e7 ff ff call 80103d80 <sleep> 801055a2: a1 a0 54 11 80 mov 0x801154a0,%eax 801055a7: 83 c4 10 add $0x10,%esp 801055aa: 29 d8 sub %ebx,%eax 801055ac: 3b 45 f4 cmp -0xc(%ebp),%eax 801055af: 73 2f jae 801055e0 <sys_sleep+0x90> 801055b1: e8 2a e2 ff ff call 801037e0 <myproc> 801055b6: 8b 40 24 mov 0x24(%eax),%eax 801055b9: 85 c0 test %eax,%eax 801055bb: 74 d3 je 80105590 <sys_sleep+0x40> 801055bd: 83 ec 0c sub $0xc,%esp 801055c0: 68 60 4c 11 80 push $0x80114c60 801055c5: e8 36 ee ff ff call 80104400 <release> 801055ca: 83 c4 10 add $0x10,%esp 801055cd: b8 ff ff ff ff mov $0xffffffff,%eax 801055d2: 8b 5d fc mov -0x4(%ebp),%ebx 801055d5: c9 leave 801055d6: c3 ret 801055d7: 89 f6 mov %esi,%esi 801055d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801055e0: 83 ec 0c sub $0xc,%esp 801055e3: 68 60 4c 11 80 push $0x80114c60 801055e8: e8 13 ee ff ff call 80104400 <release> 801055ed: 83 c4 10 add $0x10,%esp 801055f0: 31 c0 xor %eax,%eax 801055f2: 8b 5d fc mov -0x4(%ebp),%ebx 801055f5: c9 leave 801055f6: c3 ret 801055f7: b8 ff ff ff ff mov $0xffffffff,%eax 801055fc: eb f4 jmp 801055f2 <sys_sleep+0xa2> 801055fe: 66 90 xchg %ax,%ax 80105600 <sys_uptime>: 80105600: 55 push %ebp 80105601: 89 e5 mov %esp,%ebp 80105603: 53 push %ebx 80105604: 83 ec 10 sub $0x10,%esp 80105607: 68 60 4c 11 80 push $0x80114c60 8010560c: e8 2f ed ff ff call 80104340 <acquire> 80105611: 8b 1d a0 54 11 80 mov 0x801154a0,%ebx 80105617: c7 04 24 60 4c 11 80 movl $0x80114c60,(%esp) 8010561e: e8 dd ed ff ff call 80104400 <release> 80105623: 89 d8 mov %ebx,%eax 80105625: 8b 5d fc mov -0x4(%ebp),%ebx 80105628: c9 leave 80105629: c3 ret 8010562a <alltraps>: 8010562a: 1e push %ds 8010562b: 06 push %es 8010562c: 0f a0 push %fs 8010562e: 0f a8 push %gs 80105630: 60 pusha 80105631: 66 b8 10 00 mov $0x10,%ax 80105635: 8e d8 mov %eax,%ds 80105637: 8e c0 mov %eax,%es 80105639: 54 push %esp 8010563a: e8 c1 00 00 00 call 80105700 <trap> 8010563f: 83 c4 04 add $0x4,%esp 80105642 <trapret>: 80105642: 61 popa 80105643: 0f a9 pop %gs 80105645: 0f a1 pop %fs 80105647: 07 pop %es 80105648: 1f pop %ds 80105649: 83 c4 08 add $0x8,%esp 8010564c: cf iret 8010564d: 66 90 xchg %ax,%ax 8010564f: 90 nop 80105650 <tvinit>: 80105650: 55 push %ebp 80105651: 31 c0 xor %eax,%eax 80105653: 89 e5 mov %esp,%ebp 80105655: 83 ec 08 sub $0x8,%esp 80105658: 90 nop 80105659: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105660: 8b 14 85 08 a0 10 80 mov -0x7fef5ff8(,%eax,4),%edx 80105667: c7 04 c5 a2 4c 11 80 movl $0x8e000008,-0x7feeb35e(,%eax,8) 8010566e: 08 00 00 8e 80105672: 66 89 14 c5 a0 4c 11 mov %dx,-0x7feeb360(,%eax,8) 80105679: 80 8010567a: c1 ea 10 shr $0x10,%edx 8010567d: 66 89 14 c5 a6 4c 11 mov %dx,-0x7feeb35a(,%eax,8) 80105684: 80 80105685: 83 c0 01 add $0x1,%eax 80105688: 3d 00 01 00 00 cmp $0x100,%eax 8010568d: 75 d1 jne 80105660 <tvinit+0x10> 8010568f: a1 08 a1 10 80 mov 0x8010a108,%eax 80105694: 83 ec 08 sub $0x8,%esp 80105697: c7 05 a2 4e 11 80 08 movl $0xef000008,0x80114ea2 8010569e: 00 00 ef 801056a1: 68 59 76 10 80 push $0x80107659 801056a6: 68 60 4c 11 80 push $0x80114c60 801056ab: 66 a3 a0 4e 11 80 mov %ax,0x80114ea0 801056b1: c1 e8 10 shr $0x10,%eax 801056b4: 66 a3 a6 4e 11 80 mov %ax,0x80114ea6 801056ba: e8 41 eb ff ff call 80104200 <initlock> 801056bf: 83 c4 10 add $0x10,%esp 801056c2: c9 leave 801056c3: c3 ret 801056c4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801056ca: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 801056d0 <idtinit>: 801056d0: 55 push %ebp 801056d1: b8 ff 07 00 00 mov $0x7ff,%eax 801056d6: 89 e5 mov %esp,%ebp 801056d8: 83 ec 10 sub $0x10,%esp 801056db: 66 89 45 fa mov %ax,-0x6(%ebp) 801056df: b8 a0 4c 11 80 mov $0x80114ca0,%eax 801056e4: 66 89 45 fc mov %ax,-0x4(%ebp) 801056e8: c1 e8 10 shr $0x10,%eax 801056eb: 66 89 45 fe mov %ax,-0x2(%ebp) 801056ef: 8d 45 fa lea -0x6(%ebp),%eax 801056f2: 0f 01 18 lidtl (%eax) 801056f5: c9 leave 801056f6: c3 ret 801056f7: 89 f6 mov %esi,%esi 801056f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105700 <trap>: 80105700: 55 push %ebp 80105701: 89 e5 mov %esp,%ebp 80105703: 57 push %edi 80105704: 56 push %esi 80105705: 53 push %ebx 80105706: 83 ec 1c sub $0x1c,%esp 80105709: 8b 7d 08 mov 0x8(%ebp),%edi 8010570c: 8b 47 30 mov 0x30(%edi),%eax 8010570f: 83 f8 40 cmp $0x40,%eax 80105712: 0f 84 f0 00 00 00 je 80105808 <trap+0x108> 80105718: 83 e8 20 sub $0x20,%eax 8010571b: 83 f8 1f cmp $0x1f,%eax 8010571e: 77 10 ja 80105730 <trap+0x30> 80105720: ff 24 85 00 77 10 80 jmp *-0x7fef8900(,%eax,4) 80105727: 89 f6 mov %esi,%esi 80105729: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105730: e8 ab e0 ff ff call 801037e0 <myproc> 80105735: 85 c0 test %eax,%eax 80105737: 8b 5f 38 mov 0x38(%edi),%ebx 8010573a: 0f 84 14 02 00 00 je 80105954 <trap+0x254> 80105740: f6 47 3c 03 testb $0x3,0x3c(%edi) 80105744: 0f 84 0a 02 00 00 je 80105954 <trap+0x254> 8010574a: 0f 20 d1 mov %cr2,%ecx 8010574d: 89 4d d8 mov %ecx,-0x28(%ebp) 80105750: e8 6b e0 ff ff call 801037c0 <cpuid> 80105755: 89 45 dc mov %eax,-0x24(%ebp) 80105758: 8b 47 34 mov 0x34(%edi),%eax 8010575b: 8b 77 30 mov 0x30(%edi),%esi 8010575e: 89 45 e4 mov %eax,-0x1c(%ebp) 80105761: e8 7a e0 ff ff call 801037e0 <myproc> 80105766: 89 45 e0 mov %eax,-0x20(%ebp) 80105769: e8 72 e0 ff ff call 801037e0 <myproc> 8010576e: 8b 4d d8 mov -0x28(%ebp),%ecx 80105771: 8b 55 dc mov -0x24(%ebp),%edx 80105774: 51 push %ecx 80105775: 53 push %ebx 80105776: 52 push %edx 80105777: 8b 55 e0 mov -0x20(%ebp),%edx 8010577a: ff 75 e4 pushl -0x1c(%ebp) 8010577d: 56 push %esi 8010577e: 83 c2 6c add $0x6c,%edx 80105781: 52 push %edx 80105782: ff 70 10 pushl 0x10(%eax) 80105785: 68 bc 76 10 80 push $0x801076bc 8010578a: e8 d1 ae ff ff call 80100660 <cprintf> 8010578f: 83 c4 20 add $0x20,%esp 80105792: e8 49 e0 ff ff call 801037e0 <myproc> 80105797: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax) 8010579e: e8 3d e0 ff ff call 801037e0 <myproc> 801057a3: 85 c0 test %eax,%eax 801057a5: 74 1d je 801057c4 <trap+0xc4> 801057a7: e8 34 e0 ff ff call 801037e0 <myproc> 801057ac: 8b 50 24 mov 0x24(%eax),%edx 801057af: 85 d2 test %edx,%edx 801057b1: 74 11 je 801057c4 <trap+0xc4> 801057b3: 0f b7 47 3c movzwl 0x3c(%edi),%eax 801057b7: 83 e0 03 and $0x3,%eax 801057ba: 66 83 f8 03 cmp $0x3,%ax 801057be: 0f 84 4c 01 00 00 je 80105910 <trap+0x210> 801057c4: e8 17 e0 ff ff call 801037e0 <myproc> 801057c9: 85 c0 test %eax,%eax 801057cb: 74 0b je 801057d8 <trap+0xd8> 801057cd: e8 0e e0 ff ff call 801037e0 <myproc> 801057d2: 83 78 0c 04 cmpl $0x4,0xc(%eax) 801057d6: 74 68 je 80105840 <trap+0x140> 801057d8: e8 03 e0 ff ff call 801037e0 <myproc> 801057dd: 85 c0 test %eax,%eax 801057df: 74 19 je 801057fa <trap+0xfa> 801057e1: e8 fa df ff ff call 801037e0 <myproc> 801057e6: 8b 40 24 mov 0x24(%eax),%eax 801057e9: 85 c0 test %eax,%eax 801057eb: 74 0d je 801057fa <trap+0xfa> 801057ed: 0f b7 47 3c movzwl 0x3c(%edi),%eax 801057f1: 83 e0 03 and $0x3,%eax 801057f4: 66 83 f8 03 cmp $0x3,%ax 801057f8: 74 37 je 80105831 <trap+0x131> 801057fa: 8d 65 f4 lea -0xc(%ebp),%esp 801057fd: 5b pop %ebx 801057fe: 5e pop %esi 801057ff: 5f pop %edi 80105800: 5d pop %ebp 80105801: c3 ret 80105802: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80105808: e8 d3 df ff ff call 801037e0 <myproc> 8010580d: 8b 58 24 mov 0x24(%eax),%ebx 80105810: 85 db test %ebx,%ebx 80105812: 0f 85 e8 00 00 00 jne 80105900 <trap+0x200> 80105818: e8 c3 df ff ff call 801037e0 <myproc> 8010581d: 89 78 18 mov %edi,0x18(%eax) 80105820: e8 1b f0 ff ff call 80104840 <syscall> 80105825: e8 b6 df ff ff call 801037e0 <myproc> 8010582a: 8b 48 24 mov 0x24(%eax),%ecx 8010582d: 85 c9 test %ecx,%ecx 8010582f: 74 c9 je 801057fa <trap+0xfa> 80105831: 8d 65 f4 lea -0xc(%ebp),%esp 80105834: 5b pop %ebx 80105835: 5e pop %esi 80105836: 5f pop %edi 80105837: 5d pop %ebp 80105838: e9 c3 e3 ff ff jmp 80103c00 <exit> 8010583d: 8d 76 00 lea 0x0(%esi),%esi 80105840: 83 7f 30 20 cmpl $0x20,0x30(%edi) 80105844: 75 92 jne 801057d8 <trap+0xd8> 80105846: e8 e5 e4 ff ff call 80103d30 <yield> 8010584b: eb 8b jmp 801057d8 <trap+0xd8> 8010584d: 8d 76 00 lea 0x0(%esi),%esi 80105850: e8 6b df ff ff call 801037c0 <cpuid> 80105855: 85 c0 test %eax,%eax 80105857: 0f 84 c3 00 00 00 je 80105920 <trap+0x220> 8010585d: e8 ee ce ff ff call 80102750 <lapiceoi> 80105862: e8 79 df ff ff call 801037e0 <myproc> 80105867: 85 c0 test %eax,%eax 80105869: 0f 85 38 ff ff ff jne 801057a7 <trap+0xa7> 8010586f: e9 50 ff ff ff jmp 801057c4 <trap+0xc4> 80105874: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105878: e8 93 cd ff ff call 80102610 <kbdintr> 8010587d: e8 ce ce ff ff call 80102750 <lapiceoi> 80105882: e8 59 df ff ff call 801037e0 <myproc> 80105887: 85 c0 test %eax,%eax 80105889: 0f 85 18 ff ff ff jne 801057a7 <trap+0xa7> 8010588f: e9 30 ff ff ff jmp 801057c4 <trap+0xc4> 80105894: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105898: e8 53 02 00 00 call 80105af0 <uartintr> 8010589d: e8 ae ce ff ff call 80102750 <lapiceoi> 801058a2: e8 39 df ff ff call 801037e0 <myproc> 801058a7: 85 c0 test %eax,%eax 801058a9: 0f 85 f8 fe ff ff jne 801057a7 <trap+0xa7> 801058af: e9 10 ff ff ff jmp 801057c4 <trap+0xc4> 801058b4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801058b8: 0f b7 5f 3c movzwl 0x3c(%edi),%ebx 801058bc: 8b 77 38 mov 0x38(%edi),%esi 801058bf: e8 fc de ff ff call 801037c0 <cpuid> 801058c4: 56 push %esi 801058c5: 53 push %ebx 801058c6: 50 push %eax 801058c7: 68 64 76 10 80 push $0x80107664 801058cc: e8 8f ad ff ff call 80100660 <cprintf> 801058d1: e8 7a ce ff ff call 80102750 <lapiceoi> 801058d6: 83 c4 10 add $0x10,%esp 801058d9: e8 02 df ff ff call 801037e0 <myproc> 801058de: 85 c0 test %eax,%eax 801058e0: 0f 85 c1 fe ff ff jne 801057a7 <trap+0xa7> 801058e6: e9 d9 fe ff ff jmp 801057c4 <trap+0xc4> 801058eb: 90 nop 801058ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 801058f0: e8 8b c7 ff ff call 80102080 <ideintr> 801058f5: e9 63 ff ff ff jmp 8010585d <trap+0x15d> 801058fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80105900: e8 fb e2 ff ff call 80103c00 <exit> 80105905: e9 0e ff ff ff jmp 80105818 <trap+0x118> 8010590a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80105910: e8 eb e2 ff ff call 80103c00 <exit> 80105915: e9 aa fe ff ff jmp 801057c4 <trap+0xc4> 8010591a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80105920: 83 ec 0c sub $0xc,%esp 80105923: 68 60 4c 11 80 push $0x80114c60 80105928: e8 13 ea ff ff call 80104340 <acquire> 8010592d: c7 04 24 a0 54 11 80 movl $0x801154a0,(%esp) 80105934: 83 05 a0 54 11 80 01 addl $0x1,0x801154a0 8010593b: e8 f0 e5 ff ff call 80103f30 <wakeup> 80105940: c7 04 24 60 4c 11 80 movl $0x80114c60,(%esp) 80105947: e8 b4 ea ff ff call 80104400 <release> 8010594c: 83 c4 10 add $0x10,%esp 8010594f: e9 09 ff ff ff jmp 8010585d <trap+0x15d> 80105954: 0f 20 d6 mov %cr2,%esi 80105957: e8 64 de ff ff call 801037c0 <cpuid> 8010595c: 83 ec 0c sub $0xc,%esp 8010595f: 56 push %esi 80105960: 53 push %ebx 80105961: 50 push %eax 80105962: ff 77 30 pushl 0x30(%edi) 80105965: 68 88 76 10 80 push $0x80107688 8010596a: e8 f1 ac ff ff call 80100660 <cprintf> 8010596f: 83 c4 14 add $0x14,%esp 80105972: 68 5e 76 10 80 push $0x8010765e 80105977: e8 14 aa ff ff call 80100390 <panic> 8010597c: 66 90 xchg %ax,%ax 8010597e: 66 90 xchg %ax,%ax 80105980 <uartgetc>: 80105980: a1 bc a5 10 80 mov 0x8010a5bc,%eax 80105985: 55 push %ebp 80105986: 89 e5 mov %esp,%ebp 80105988: 85 c0 test %eax,%eax 8010598a: 74 1c je 801059a8 <uartgetc+0x28> 8010598c: ba fd 03 00 00 mov $0x3fd,%edx 80105991: ec in (%dx),%al 80105992: a8 01 test $0x1,%al 80105994: 74 12 je 801059a8 <uartgetc+0x28> 80105996: ba f8 03 00 00 mov $0x3f8,%edx 8010599b: ec in (%dx),%al 8010599c: 0f b6 c0 movzbl %al,%eax 8010599f: 5d pop %ebp 801059a0: c3 ret 801059a1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801059a8: b8 ff ff ff ff mov $0xffffffff,%eax 801059ad: 5d pop %ebp 801059ae: c3 ret 801059af: 90 nop 801059b0 <uartputc.part.0>: 801059b0: 55 push %ebp 801059b1: 89 e5 mov %esp,%ebp 801059b3: 57 push %edi 801059b4: 56 push %esi 801059b5: 53 push %ebx 801059b6: 89 c7 mov %eax,%edi 801059b8: bb 80 00 00 00 mov $0x80,%ebx 801059bd: be fd 03 00 00 mov $0x3fd,%esi 801059c2: 83 ec 0c sub $0xc,%esp 801059c5: eb 1b jmp 801059e2 <uartputc.part.0+0x32> 801059c7: 89 f6 mov %esi,%esi 801059c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801059d0: 83 ec 0c sub $0xc,%esp 801059d3: 6a 0a push $0xa 801059d5: e8 96 cd ff ff call 80102770 <microdelay> 801059da: 83 c4 10 add $0x10,%esp 801059dd: 83 eb 01 sub $0x1,%ebx 801059e0: 74 07 je 801059e9 <uartputc.part.0+0x39> 801059e2: 89 f2 mov %esi,%edx 801059e4: ec in (%dx),%al 801059e5: a8 20 test $0x20,%al 801059e7: 74 e7 je 801059d0 <uartputc.part.0+0x20> 801059e9: ba f8 03 00 00 mov $0x3f8,%edx 801059ee: 89 f8 mov %edi,%eax 801059f0: ee out %al,(%dx) 801059f1: 8d 65 f4 lea -0xc(%ebp),%esp 801059f4: 5b pop %ebx 801059f5: 5e pop %esi 801059f6: 5f pop %edi 801059f7: 5d pop %ebp 801059f8: c3 ret 801059f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105a00 <uartinit>: 80105a00: 55 push %ebp 80105a01: 31 c9 xor %ecx,%ecx 80105a03: 89 c8 mov %ecx,%eax 80105a05: 89 e5 mov %esp,%ebp 80105a07: 57 push %edi 80105a08: 56 push %esi 80105a09: 53 push %ebx 80105a0a: bb fa 03 00 00 mov $0x3fa,%ebx 80105a0f: 89 da mov %ebx,%edx 80105a11: 83 ec 0c sub $0xc,%esp 80105a14: ee out %al,(%dx) 80105a15: bf fb 03 00 00 mov $0x3fb,%edi 80105a1a: b8 80 ff ff ff mov $0xffffff80,%eax 80105a1f: 89 fa mov %edi,%edx 80105a21: ee out %al,(%dx) 80105a22: b8 0c 00 00 00 mov $0xc,%eax 80105a27: ba f8 03 00 00 mov $0x3f8,%edx 80105a2c: ee out %al,(%dx) 80105a2d: be f9 03 00 00 mov $0x3f9,%esi 80105a32: 89 c8 mov %ecx,%eax 80105a34: 89 f2 mov %esi,%edx 80105a36: ee out %al,(%dx) 80105a37: b8 03 00 00 00 mov $0x3,%eax 80105a3c: 89 fa mov %edi,%edx 80105a3e: ee out %al,(%dx) 80105a3f: ba fc 03 00 00 mov $0x3fc,%edx 80105a44: 89 c8 mov %ecx,%eax 80105a46: ee out %al,(%dx) 80105a47: b8 01 00 00 00 mov $0x1,%eax 80105a4c: 89 f2 mov %esi,%edx 80105a4e: ee out %al,(%dx) 80105a4f: ba fd 03 00 00 mov $0x3fd,%edx 80105a54: ec in (%dx),%al 80105a55: 3c ff cmp $0xff,%al 80105a57: 74 5a je 80105ab3 <uartinit+0xb3> 80105a59: c7 05 bc a5 10 80 01 movl $0x1,0x8010a5bc 80105a60: 00 00 00 80105a63: 89 da mov %ebx,%edx 80105a65: ec in (%dx),%al 80105a66: ba f8 03 00 00 mov $0x3f8,%edx 80105a6b: ec in (%dx),%al 80105a6c: 83 ec 08 sub $0x8,%esp 80105a6f: bb 80 77 10 80 mov $0x80107780,%ebx 80105a74: 6a 00 push $0x0 80105a76: 6a 04 push $0x4 80105a78: e8 53 c8 ff ff call 801022d0 <ioapicenable> 80105a7d: 83 c4 10 add $0x10,%esp 80105a80: b8 78 00 00 00 mov $0x78,%eax 80105a85: eb 13 jmp 80105a9a <uartinit+0x9a> 80105a87: 89 f6 mov %esi,%esi 80105a89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105a90: 83 c3 01 add $0x1,%ebx 80105a93: 0f be 03 movsbl (%ebx),%eax 80105a96: 84 c0 test %al,%al 80105a98: 74 19 je 80105ab3 <uartinit+0xb3> 80105a9a: 8b 15 bc a5 10 80 mov 0x8010a5bc,%edx 80105aa0: 85 d2 test %edx,%edx 80105aa2: 74 ec je 80105a90 <uartinit+0x90> 80105aa4: 83 c3 01 add $0x1,%ebx 80105aa7: e8 04 ff ff ff call 801059b0 <uartputc.part.0> 80105aac: 0f be 03 movsbl (%ebx),%eax 80105aaf: 84 c0 test %al,%al 80105ab1: 75 e7 jne 80105a9a <uartinit+0x9a> 80105ab3: 8d 65 f4 lea -0xc(%ebp),%esp 80105ab6: 5b pop %ebx 80105ab7: 5e pop %esi 80105ab8: 5f pop %edi 80105ab9: 5d pop %ebp 80105aba: c3 ret 80105abb: 90 nop 80105abc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80105ac0 <uartputc>: 80105ac0: 8b 15 bc a5 10 80 mov 0x8010a5bc,%edx 80105ac6: 55 push %ebp 80105ac7: 89 e5 mov %esp,%ebp 80105ac9: 85 d2 test %edx,%edx 80105acb: 8b 45 08 mov 0x8(%ebp),%eax 80105ace: 74 10 je 80105ae0 <uartputc+0x20> 80105ad0: 5d pop %ebp 80105ad1: e9 da fe ff ff jmp 801059b0 <uartputc.part.0> 80105ad6: 8d 76 00 lea 0x0(%esi),%esi 80105ad9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105ae0: 5d pop %ebp 80105ae1: c3 ret 80105ae2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80105ae9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80105af0 <uartintr>: 80105af0: 55 push %ebp 80105af1: 89 e5 mov %esp,%ebp 80105af3: 83 ec 14 sub $0x14,%esp 80105af6: 68 80 59 10 80 push $0x80105980 80105afb: e8 10 ad ff ff call 80100810 <consoleintr> 80105b00: 83 c4 10 add $0x10,%esp 80105b03: c9 leave 80105b04: c3 ret 80105b05 <vector0>: 80105b05: 6a 00 push $0x0 80105b07: 6a 00 push $0x0 80105b09: e9 1c fb ff ff jmp 8010562a <alltraps> 80105b0e <vector1>: 80105b0e: 6a 00 push $0x0 80105b10: 6a 01 push $0x1 80105b12: e9 13 fb ff ff jmp 8010562a <alltraps> 80105b17 <vector2>: 80105b17: 6a 00 push $0x0 80105b19: 6a 02 push $0x2 80105b1b: e9 0a fb ff ff jmp 8010562a <alltraps> 80105b20 <vector3>: 80105b20: 6a 00 push $0x0 80105b22: 6a 03 push $0x3 80105b24: e9 01 fb ff ff jmp 8010562a <alltraps> 80105b29 <vector4>: 80105b29: 6a 00 push $0x0 80105b2b: 6a 04 push $0x4 80105b2d: e9 f8 fa ff ff jmp 8010562a <alltraps> 80105b32 <vector5>: 80105b32: 6a 00 push $0x0 80105b34: 6a 05 push $0x5 80105b36: e9 ef fa ff ff jmp 8010562a <alltraps> 80105b3b <vector6>: 80105b3b: 6a 00 push $0x0 80105b3d: 6a 06 push $0x6 80105b3f: e9 e6 fa ff ff jmp 8010562a <alltraps> 80105b44 <vector7>: 80105b44: 6a 00 push $0x0 80105b46: 6a 07 push $0x7 80105b48: e9 dd fa ff ff jmp 8010562a <alltraps> 80105b4d <vector8>: 80105b4d: 6a 08 push $0x8 80105b4f: e9 d6 fa ff ff jmp 8010562a <alltraps> 80105b54 <vector9>: 80105b54: 6a 00 push $0x0 80105b56: 6a 09 push $0x9 80105b58: e9 cd fa ff ff jmp 8010562a <alltraps> 80105b5d <vector10>: 80105b5d: 6a 0a push $0xa 80105b5f: e9 c6 fa ff ff jmp 8010562a <alltraps> 80105b64 <vector11>: 80105b64: 6a 0b push $0xb 80105b66: e9 bf fa ff ff jmp 8010562a <alltraps> 80105b6b <vector12>: 80105b6b: 6a 0c push $0xc 80105b6d: e9 b8 fa ff ff jmp 8010562a <alltraps> 80105b72 <vector13>: 80105b72: 6a 0d push $0xd 80105b74: e9 b1 fa ff ff jmp 8010562a <alltraps> 80105b79 <vector14>: 80105b79: 6a 0e push $0xe 80105b7b: e9 aa fa ff ff jmp 8010562a <alltraps> 80105b80 <vector15>: 80105b80: 6a 00 push $0x0 80105b82: 6a 0f push $0xf 80105b84: e9 a1 fa ff ff jmp 8010562a <alltraps> 80105b89 <vector16>: 80105b89: 6a 00 push $0x0 80105b8b: 6a 10 push $0x10 80105b8d: e9 98 fa ff ff jmp 8010562a <alltraps> 80105b92 <vector17>: 80105b92: 6a 11 push $0x11 80105b94: e9 91 fa ff ff jmp 8010562a <alltraps> 80105b99 <vector18>: 80105b99: 6a 00 push $0x0 80105b9b: 6a 12 push $0x12 80105b9d: e9 88 fa ff ff jmp 8010562a <alltraps> 80105ba2 <vector19>: 80105ba2: 6a 00 push $0x0 80105ba4: 6a 13 push $0x13 80105ba6: e9 7f fa ff ff jmp 8010562a <alltraps> 80105bab <vector20>: 80105bab: 6a 00 push $0x0 80105bad: 6a 14 push $0x14 80105baf: e9 76 fa ff ff jmp 8010562a <alltraps> 80105bb4 <vector21>: 80105bb4: 6a 00 push $0x0 80105bb6: 6a 15 push $0x15 80105bb8: e9 6d fa ff ff jmp 8010562a <alltraps> 80105bbd <vector22>: 80105bbd: 6a 00 push $0x0 80105bbf: 6a 16 push $0x16 80105bc1: e9 64 fa ff ff jmp 8010562a <alltraps> 80105bc6 <vector23>: 80105bc6: 6a 00 push $0x0 80105bc8: 6a 17 push $0x17 80105bca: e9 5b fa ff ff jmp 8010562a <alltraps> 80105bcf <vector24>: 80105bcf: 6a 00 push $0x0 80105bd1: 6a 18 push $0x18 80105bd3: e9 52 fa ff ff jmp 8010562a <alltraps> 80105bd8 <vector25>: 80105bd8: 6a 00 push $0x0 80105bda: 6a 19 push $0x19 80105bdc: e9 49 fa ff ff jmp 8010562a <alltraps> 80105be1 <vector26>: 80105be1: 6a 00 push $0x0 80105be3: 6a 1a push $0x1a 80105be5: e9 40 fa ff ff jmp 8010562a <alltraps> 80105bea <vector27>: 80105bea: 6a 00 push $0x0 80105bec: 6a 1b push $0x1b 80105bee: e9 37 fa ff ff jmp 8010562a <alltraps> 80105bf3 <vector28>: 80105bf3: 6a 00 push $0x0 80105bf5: 6a 1c push $0x1c 80105bf7: e9 2e fa ff ff jmp 8010562a <alltraps> 80105bfc <vector29>: 80105bfc: 6a 00 push $0x0 80105bfe: 6a 1d push $0x1d 80105c00: e9 25 fa ff ff jmp 8010562a <alltraps> 80105c05 <vector30>: 80105c05: 6a 00 push $0x0 80105c07: 6a 1e push $0x1e 80105c09: e9 1c fa ff ff jmp 8010562a <alltraps> 80105c0e <vector31>: 80105c0e: 6a 00 push $0x0 80105c10: 6a 1f push $0x1f 80105c12: e9 13 fa ff ff jmp 8010562a <alltraps> 80105c17 <vector32>: 80105c17: 6a 00 push $0x0 80105c19: 6a 20 push $0x20 80105c1b: e9 0a fa ff ff jmp 8010562a <alltraps> 80105c20 <vector33>: 80105c20: 6a 00 push $0x0 80105c22: 6a 21 push $0x21 80105c24: e9 01 fa ff ff jmp 8010562a <alltraps> 80105c29 <vector34>: 80105c29: 6a 00 push $0x0 80105c2b: 6a 22 push $0x22 80105c2d: e9 f8 f9 ff ff jmp 8010562a <alltraps> 80105c32 <vector35>: 80105c32: 6a 00 push $0x0 80105c34: 6a 23 push $0x23 80105c36: e9 ef f9 ff ff jmp 8010562a <alltraps> 80105c3b <vector36>: 80105c3b: 6a 00 push $0x0 80105c3d: 6a 24 push $0x24 80105c3f: e9 e6 f9 ff ff jmp 8010562a <alltraps> 80105c44 <vector37>: 80105c44: 6a 00 push $0x0 80105c46: 6a 25 push $0x25 80105c48: e9 dd f9 ff ff jmp 8010562a <alltraps> 80105c4d <vector38>: 80105c4d: 6a 00 push $0x0 80105c4f: 6a 26 push $0x26 80105c51: e9 d4 f9 ff ff jmp 8010562a <alltraps> 80105c56 <vector39>: 80105c56: 6a 00 push $0x0 80105c58: 6a 27 push $0x27 80105c5a: e9 cb f9 ff ff jmp 8010562a <alltraps> 80105c5f <vector40>: 80105c5f: 6a 00 push $0x0 80105c61: 6a 28 push $0x28 80105c63: e9 c2 f9 ff ff jmp 8010562a <alltraps> 80105c68 <vector41>: 80105c68: 6a 00 push $0x0 80105c6a: 6a 29 push $0x29 80105c6c: e9 b9 f9 ff ff jmp 8010562a <alltraps> 80105c71 <vector42>: 80105c71: 6a 00 push $0x0 80105c73: 6a 2a push $0x2a 80105c75: e9 b0 f9 ff ff jmp 8010562a <alltraps> 80105c7a <vector43>: 80105c7a: 6a 00 push $0x0 80105c7c: 6a 2b push $0x2b 80105c7e: e9 a7 f9 ff ff jmp 8010562a <alltraps> 80105c83 <vector44>: 80105c83: 6a 00 push $0x0 80105c85: 6a 2c push $0x2c 80105c87: e9 9e f9 ff ff jmp 8010562a <alltraps> 80105c8c <vector45>: 80105c8c: 6a 00 push $0x0 80105c8e: 6a 2d push $0x2d 80105c90: e9 95 f9 ff ff jmp 8010562a <alltraps> 80105c95 <vector46>: 80105c95: 6a 00 push $0x0 80105c97: 6a 2e push $0x2e 80105c99: e9 8c f9 ff ff jmp 8010562a <alltraps> 80105c9e <vector47>: 80105c9e: 6a 00 push $0x0 80105ca0: 6a 2f push $0x2f 80105ca2: e9 83 f9 ff ff jmp 8010562a <alltraps> 80105ca7 <vector48>: 80105ca7: 6a 00 push $0x0 80105ca9: 6a 30 push $0x30 80105cab: e9 7a f9 ff ff jmp 8010562a <alltraps> 80105cb0 <vector49>: 80105cb0: 6a 00 push $0x0 80105cb2: 6a 31 push $0x31 80105cb4: e9 71 f9 ff ff jmp 8010562a <alltraps> 80105cb9 <vector50>: 80105cb9: 6a 00 push $0x0 80105cbb: 6a 32 push $0x32 80105cbd: e9 68 f9 ff ff jmp 8010562a <alltraps> 80105cc2 <vector51>: 80105cc2: 6a 00 push $0x0 80105cc4: 6a 33 push $0x33 80105cc6: e9 5f f9 ff ff jmp 8010562a <alltraps> 80105ccb <vector52>: 80105ccb: 6a 00 push $0x0 80105ccd: 6a 34 push $0x34 80105ccf: e9 56 f9 ff ff jmp 8010562a <alltraps> 80105cd4 <vector53>: 80105cd4: 6a 00 push $0x0 80105cd6: 6a 35 push $0x35 80105cd8: e9 4d f9 ff ff jmp 8010562a <alltraps> 80105cdd <vector54>: 80105cdd: 6a 00 push $0x0 80105cdf: 6a 36 push $0x36 80105ce1: e9 44 f9 ff ff jmp 8010562a <alltraps> 80105ce6 <vector55>: 80105ce6: 6a 00 push $0x0 80105ce8: 6a 37 push $0x37 80105cea: e9 3b f9 ff ff jmp 8010562a <alltraps> 80105cef <vector56>: 80105cef: 6a 00 push $0x0 80105cf1: 6a 38 push $0x38 80105cf3: e9 32 f9 ff ff jmp 8010562a <alltraps> 80105cf8 <vector57>: 80105cf8: 6a 00 push $0x0 80105cfa: 6a 39 push $0x39 80105cfc: e9 29 f9 ff ff jmp 8010562a <alltraps> 80105d01 <vector58>: 80105d01: 6a 00 push $0x0 80105d03: 6a 3a push $0x3a 80105d05: e9 20 f9 ff ff jmp 8010562a <alltraps> 80105d0a <vector59>: 80105d0a: 6a 00 push $0x0 80105d0c: 6a 3b push $0x3b 80105d0e: e9 17 f9 ff ff jmp 8010562a <alltraps> 80105d13 <vector60>: 80105d13: 6a 00 push $0x0 80105d15: 6a 3c push $0x3c 80105d17: e9 0e f9 ff ff jmp 8010562a <alltraps> 80105d1c <vector61>: 80105d1c: 6a 00 push $0x0 80105d1e: 6a 3d push $0x3d 80105d20: e9 05 f9 ff ff jmp 8010562a <alltraps> 80105d25 <vector62>: 80105d25: 6a 00 push $0x0 80105d27: 6a 3e push $0x3e 80105d29: e9 fc f8 ff ff jmp 8010562a <alltraps> 80105d2e <vector63>: 80105d2e: 6a 00 push $0x0 80105d30: 6a 3f push $0x3f 80105d32: e9 f3 f8 ff ff jmp 8010562a <alltraps> 80105d37 <vector64>: 80105d37: 6a 00 push $0x0 80105d39: 6a 40 push $0x40 80105d3b: e9 ea f8 ff ff jmp 8010562a <alltraps> 80105d40 <vector65>: 80105d40: 6a 00 push $0x0 80105d42: 6a 41 push $0x41 80105d44: e9 e1 f8 ff ff jmp 8010562a <alltraps> 80105d49 <vector66>: 80105d49: 6a 00 push $0x0 80105d4b: 6a 42 push $0x42 80105d4d: e9 d8 f8 ff ff jmp 8010562a <alltraps> 80105d52 <vector67>: 80105d52: 6a 00 push $0x0 80105d54: 6a 43 push $0x43 80105d56: e9 cf f8 ff ff jmp 8010562a <alltraps> 80105d5b <vector68>: 80105d5b: 6a 00 push $0x0 80105d5d: 6a 44 push $0x44 80105d5f: e9 c6 f8 ff ff jmp 8010562a <alltraps> 80105d64 <vector69>: 80105d64: 6a 00 push $0x0 80105d66: 6a 45 push $0x45 80105d68: e9 bd f8 ff ff jmp 8010562a <alltraps> 80105d6d <vector70>: 80105d6d: 6a 00 push $0x0 80105d6f: 6a 46 push $0x46 80105d71: e9 b4 f8 ff ff jmp 8010562a <alltraps> 80105d76 <vector71>: 80105d76: 6a 00 push $0x0 80105d78: 6a 47 push $0x47 80105d7a: e9 ab f8 ff ff jmp 8010562a <alltraps> 80105d7f <vector72>: 80105d7f: 6a 00 push $0x0 80105d81: 6a 48 push $0x48 80105d83: e9 a2 f8 ff ff jmp 8010562a <alltraps> 80105d88 <vector73>: 80105d88: 6a 00 push $0x0 80105d8a: 6a 49 push $0x49 80105d8c: e9 99 f8 ff ff jmp 8010562a <alltraps> 80105d91 <vector74>: 80105d91: 6a 00 push $0x0 80105d93: 6a 4a push $0x4a 80105d95: e9 90 f8 ff ff jmp 8010562a <alltraps> 80105d9a <vector75>: 80105d9a: 6a 00 push $0x0 80105d9c: 6a 4b push $0x4b 80105d9e: e9 87 f8 ff ff jmp 8010562a <alltraps> 80105da3 <vector76>: 80105da3: 6a 00 push $0x0 80105da5: 6a 4c push $0x4c 80105da7: e9 7e f8 ff ff jmp 8010562a <alltraps> 80105dac <vector77>: 80105dac: 6a 00 push $0x0 80105dae: 6a 4d push $0x4d 80105db0: e9 75 f8 ff ff jmp 8010562a <alltraps> 80105db5 <vector78>: 80105db5: 6a 00 push $0x0 80105db7: 6a 4e push $0x4e 80105db9: e9 6c f8 ff ff jmp 8010562a <alltraps> 80105dbe <vector79>: 80105dbe: 6a 00 push $0x0 80105dc0: 6a 4f push $0x4f 80105dc2: e9 63 f8 ff ff jmp 8010562a <alltraps> 80105dc7 <vector80>: 80105dc7: 6a 00 push $0x0 80105dc9: 6a 50 push $0x50 80105dcb: e9 5a f8 ff ff jmp 8010562a <alltraps> 80105dd0 <vector81>: 80105dd0: 6a 00 push $0x0 80105dd2: 6a 51 push $0x51 80105dd4: e9 51 f8 ff ff jmp 8010562a <alltraps> 80105dd9 <vector82>: 80105dd9: 6a 00 push $0x0 80105ddb: 6a 52 push $0x52 80105ddd: e9 48 f8 ff ff jmp 8010562a <alltraps> 80105de2 <vector83>: 80105de2: 6a 00 push $0x0 80105de4: 6a 53 push $0x53 80105de6: e9 3f f8 ff ff jmp 8010562a <alltraps> 80105deb <vector84>: 80105deb: 6a 00 push $0x0 80105ded: 6a 54 push $0x54 80105def: e9 36 f8 ff ff jmp 8010562a <alltraps> 80105df4 <vector85>: 80105df4: 6a 00 push $0x0 80105df6: 6a 55 push $0x55 80105df8: e9 2d f8 ff ff jmp 8010562a <alltraps> 80105dfd <vector86>: 80105dfd: 6a 00 push $0x0 80105dff: 6a 56 push $0x56 80105e01: e9 24 f8 ff ff jmp 8010562a <alltraps> 80105e06 <vector87>: 80105e06: 6a 00 push $0x0 80105e08: 6a 57 push $0x57 80105e0a: e9 1b f8 ff ff jmp 8010562a <alltraps> 80105e0f <vector88>: 80105e0f: 6a 00 push $0x0 80105e11: 6a 58 push $0x58 80105e13: e9 12 f8 ff ff jmp 8010562a <alltraps> 80105e18 <vector89>: 80105e18: 6a 00 push $0x0 80105e1a: 6a 59 push $0x59 80105e1c: e9 09 f8 ff ff jmp 8010562a <alltraps> 80105e21 <vector90>: 80105e21: 6a 00 push $0x0 80105e23: 6a 5a push $0x5a 80105e25: e9 00 f8 ff ff jmp 8010562a <alltraps> 80105e2a <vector91>: 80105e2a: 6a 00 push $0x0 80105e2c: 6a 5b push $0x5b 80105e2e: e9 f7 f7 ff ff jmp 8010562a <alltraps> 80105e33 <vector92>: 80105e33: 6a 00 push $0x0 80105e35: 6a 5c push $0x5c 80105e37: e9 ee f7 ff ff jmp 8010562a <alltraps> 80105e3c <vector93>: 80105e3c: 6a 00 push $0x0 80105e3e: 6a 5d push $0x5d 80105e40: e9 e5 f7 ff ff jmp 8010562a <alltraps> 80105e45 <vector94>: 80105e45: 6a 00 push $0x0 80105e47: 6a 5e push $0x5e 80105e49: e9 dc f7 ff ff jmp 8010562a <alltraps> 80105e4e <vector95>: 80105e4e: 6a 00 push $0x0 80105e50: 6a 5f push $0x5f 80105e52: e9 d3 f7 ff ff jmp 8010562a <alltraps> 80105e57 <vector96>: 80105e57: 6a 00 push $0x0 80105e59: 6a 60 push $0x60 80105e5b: e9 ca f7 ff ff jmp 8010562a <alltraps> 80105e60 <vector97>: 80105e60: 6a 00 push $0x0 80105e62: 6a 61 push $0x61 80105e64: e9 c1 f7 ff ff jmp 8010562a <alltraps> 80105e69 <vector98>: 80105e69: 6a 00 push $0x0 80105e6b: 6a 62 push $0x62 80105e6d: e9 b8 f7 ff ff jmp 8010562a <alltraps> 80105e72 <vector99>: 80105e72: 6a 00 push $0x0 80105e74: 6a 63 push $0x63 80105e76: e9 af f7 ff ff jmp 8010562a <alltraps> 80105e7b <vector100>: 80105e7b: 6a 00 push $0x0 80105e7d: 6a 64 push $0x64 80105e7f: e9 a6 f7 ff ff jmp 8010562a <alltraps> 80105e84 <vector101>: 80105e84: 6a 00 push $0x0 80105e86: 6a 65 push $0x65 80105e88: e9 9d f7 ff ff jmp 8010562a <alltraps> 80105e8d <vector102>: 80105e8d: 6a 00 push $0x0 80105e8f: 6a 66 push $0x66 80105e91: e9 94 f7 ff ff jmp 8010562a <alltraps> 80105e96 <vector103>: 80105e96: 6a 00 push $0x0 80105e98: 6a 67 push $0x67 80105e9a: e9 8b f7 ff ff jmp 8010562a <alltraps> 80105e9f <vector104>: 80105e9f: 6a 00 push $0x0 80105ea1: 6a 68 push $0x68 80105ea3: e9 82 f7 ff ff jmp 8010562a <alltraps> 80105ea8 <vector105>: 80105ea8: 6a 00 push $0x0 80105eaa: 6a 69 push $0x69 80105eac: e9 79 f7 ff ff jmp 8010562a <alltraps> 80105eb1 <vector106>: 80105eb1: 6a 00 push $0x0 80105eb3: 6a 6a push $0x6a 80105eb5: e9 70 f7 ff ff jmp 8010562a <alltraps> 80105eba <vector107>: 80105eba: 6a 00 push $0x0 80105ebc: 6a 6b push $0x6b 80105ebe: e9 67 f7 ff ff jmp 8010562a <alltraps> 80105ec3 <vector108>: 80105ec3: 6a 00 push $0x0 80105ec5: 6a 6c push $0x6c 80105ec7: e9 5e f7 ff ff jmp 8010562a <alltraps> 80105ecc <vector109>: 80105ecc: 6a 00 push $0x0 80105ece: 6a 6d push $0x6d 80105ed0: e9 55 f7 ff ff jmp 8010562a <alltraps> 80105ed5 <vector110>: 80105ed5: 6a 00 push $0x0 80105ed7: 6a 6e push $0x6e 80105ed9: e9 4c f7 ff ff jmp 8010562a <alltraps> 80105ede <vector111>: 80105ede: 6a 00 push $0x0 80105ee0: 6a 6f push $0x6f 80105ee2: e9 43 f7 ff ff jmp 8010562a <alltraps> 80105ee7 <vector112>: 80105ee7: 6a 00 push $0x0 80105ee9: 6a 70 push $0x70 80105eeb: e9 3a f7 ff ff jmp 8010562a <alltraps> 80105ef0 <vector113>: 80105ef0: 6a 00 push $0x0 80105ef2: 6a 71 push $0x71 80105ef4: e9 31 f7 ff ff jmp 8010562a <alltraps> 80105ef9 <vector114>: 80105ef9: 6a 00 push $0x0 80105efb: 6a 72 push $0x72 80105efd: e9 28 f7 ff ff jmp 8010562a <alltraps> 80105f02 <vector115>: 80105f02: 6a 00 push $0x0 80105f04: 6a 73 push $0x73 80105f06: e9 1f f7 ff ff jmp 8010562a <alltraps> 80105f0b <vector116>: 80105f0b: 6a 00 push $0x0 80105f0d: 6a 74 push $0x74 80105f0f: e9 16 f7 ff ff jmp 8010562a <alltraps> 80105f14 <vector117>: 80105f14: 6a 00 push $0x0 80105f16: 6a 75 push $0x75 80105f18: e9 0d f7 ff ff jmp 8010562a <alltraps> 80105f1d <vector118>: 80105f1d: 6a 00 push $0x0 80105f1f: 6a 76 push $0x76 80105f21: e9 04 f7 ff ff jmp 8010562a <alltraps> 80105f26 <vector119>: 80105f26: 6a 00 push $0x0 80105f28: 6a 77 push $0x77 80105f2a: e9 fb f6 ff ff jmp 8010562a <alltraps> 80105f2f <vector120>: 80105f2f: 6a 00 push $0x0 80105f31: 6a 78 push $0x78 80105f33: e9 f2 f6 ff ff jmp 8010562a <alltraps> 80105f38 <vector121>: 80105f38: 6a 00 push $0x0 80105f3a: 6a 79 push $0x79 80105f3c: e9 e9 f6 ff ff jmp 8010562a <alltraps> 80105f41 <vector122>: 80105f41: 6a 00 push $0x0 80105f43: 6a 7a push $0x7a 80105f45: e9 e0 f6 ff ff jmp 8010562a <alltraps> 80105f4a <vector123>: 80105f4a: 6a 00 push $0x0 80105f4c: 6a 7b push $0x7b 80105f4e: e9 d7 f6 ff ff jmp 8010562a <alltraps> 80105f53 <vector124>: 80105f53: 6a 00 push $0x0 80105f55: 6a 7c push $0x7c 80105f57: e9 ce f6 ff ff jmp 8010562a <alltraps> 80105f5c <vector125>: 80105f5c: 6a 00 push $0x0 80105f5e: 6a 7d push $0x7d 80105f60: e9 c5 f6 ff ff jmp 8010562a <alltraps> 80105f65 <vector126>: 80105f65: 6a 00 push $0x0 80105f67: 6a 7e push $0x7e 80105f69: e9 bc f6 ff ff jmp 8010562a <alltraps> 80105f6e <vector127>: 80105f6e: 6a 00 push $0x0 80105f70: 6a 7f push $0x7f 80105f72: e9 b3 f6 ff ff jmp 8010562a <alltraps> 80105f77 <vector128>: 80105f77: 6a 00 push $0x0 80105f79: 68 80 00 00 00 push $0x80 80105f7e: e9 a7 f6 ff ff jmp 8010562a <alltraps> 80105f83 <vector129>: 80105f83: 6a 00 push $0x0 80105f85: 68 81 00 00 00 push $0x81 80105f8a: e9 9b f6 ff ff jmp 8010562a <alltraps> 80105f8f <vector130>: 80105f8f: 6a 00 push $0x0 80105f91: 68 82 00 00 00 push $0x82 80105f96: e9 8f f6 ff ff jmp 8010562a <alltraps> 80105f9b <vector131>: 80105f9b: 6a 00 push $0x0 80105f9d: 68 83 00 00 00 push $0x83 80105fa2: e9 83 f6 ff ff jmp 8010562a <alltraps> 80105fa7 <vector132>: 80105fa7: 6a 00 push $0x0 80105fa9: 68 84 00 00 00 push $0x84 80105fae: e9 77 f6 ff ff jmp 8010562a <alltraps> 80105fb3 <vector133>: 80105fb3: 6a 00 push $0x0 80105fb5: 68 85 00 00 00 push $0x85 80105fba: e9 6b f6 ff ff jmp 8010562a <alltraps> 80105fbf <vector134>: 80105fbf: 6a 00 push $0x0 80105fc1: 68 86 00 00 00 push $0x86 80105fc6: e9 5f f6 ff ff jmp 8010562a <alltraps> 80105fcb <vector135>: 80105fcb: 6a 00 push $0x0 80105fcd: 68 87 00 00 00 push $0x87 80105fd2: e9 53 f6 ff ff jmp 8010562a <alltraps> 80105fd7 <vector136>: 80105fd7: 6a 00 push $0x0 80105fd9: 68 88 00 00 00 push $0x88 80105fde: e9 47 f6 ff ff jmp 8010562a <alltraps> 80105fe3 <vector137>: 80105fe3: 6a 00 push $0x0 80105fe5: 68 89 00 00 00 push $0x89 80105fea: e9 3b f6 ff ff jmp 8010562a <alltraps> 80105fef <vector138>: 80105fef: 6a 00 push $0x0 80105ff1: 68 8a 00 00 00 push $0x8a 80105ff6: e9 2f f6 ff ff jmp 8010562a <alltraps> 80105ffb <vector139>: 80105ffb: 6a 00 push $0x0 80105ffd: 68 8b 00 00 00 push $0x8b 80106002: e9 23 f6 ff ff jmp 8010562a <alltraps> 80106007 <vector140>: 80106007: 6a 00 push $0x0 80106009: 68 8c 00 00 00 push $0x8c 8010600e: e9 17 f6 ff ff jmp 8010562a <alltraps> 80106013 <vector141>: 80106013: 6a 00 push $0x0 80106015: 68 8d 00 00 00 push $0x8d 8010601a: e9 0b f6 ff ff jmp 8010562a <alltraps> 8010601f <vector142>: 8010601f: 6a 00 push $0x0 80106021: 68 8e 00 00 00 push $0x8e 80106026: e9 ff f5 ff ff jmp 8010562a <alltraps> 8010602b <vector143>: 8010602b: 6a 00 push $0x0 8010602d: 68 8f 00 00 00 push $0x8f 80106032: e9 f3 f5 ff ff jmp 8010562a <alltraps> 80106037 <vector144>: 80106037: 6a 00 push $0x0 80106039: 68 90 00 00 00 push $0x90 8010603e: e9 e7 f5 ff ff jmp 8010562a <alltraps> 80106043 <vector145>: 80106043: 6a 00 push $0x0 80106045: 68 91 00 00 00 push $0x91 8010604a: e9 db f5 ff ff jmp 8010562a <alltraps> 8010604f <vector146>: 8010604f: 6a 00 push $0x0 80106051: 68 92 00 00 00 push $0x92 80106056: e9 cf f5 ff ff jmp 8010562a <alltraps> 8010605b <vector147>: 8010605b: 6a 00 push $0x0 8010605d: 68 93 00 00 00 push $0x93 80106062: e9 c3 f5 ff ff jmp 8010562a <alltraps> 80106067 <vector148>: 80106067: 6a 00 push $0x0 80106069: 68 94 00 00 00 push $0x94 8010606e: e9 b7 f5 ff ff jmp 8010562a <alltraps> 80106073 <vector149>: 80106073: 6a 00 push $0x0 80106075: 68 95 00 00 00 push $0x95 8010607a: e9 ab f5 ff ff jmp 8010562a <alltraps> 8010607f <vector150>: 8010607f: 6a 00 push $0x0 80106081: 68 96 00 00 00 push $0x96 80106086: e9 9f f5 ff ff jmp 8010562a <alltraps> 8010608b <vector151>: 8010608b: 6a 00 push $0x0 8010608d: 68 97 00 00 00 push $0x97 80106092: e9 93 f5 ff ff jmp 8010562a <alltraps> 80106097 <vector152>: 80106097: 6a 00 push $0x0 80106099: 68 98 00 00 00 push $0x98 8010609e: e9 87 f5 ff ff jmp 8010562a <alltraps> 801060a3 <vector153>: 801060a3: 6a 00 push $0x0 801060a5: 68 99 00 00 00 push $0x99 801060aa: e9 7b f5 ff ff jmp 8010562a <alltraps> 801060af <vector154>: 801060af: 6a 00 push $0x0 801060b1: 68 9a 00 00 00 push $0x9a 801060b6: e9 6f f5 ff ff jmp 8010562a <alltraps> 801060bb <vector155>: 801060bb: 6a 00 push $0x0 801060bd: 68 9b 00 00 00 push $0x9b 801060c2: e9 63 f5 ff ff jmp 8010562a <alltraps> 801060c7 <vector156>: 801060c7: 6a 00 push $0x0 801060c9: 68 9c 00 00 00 push $0x9c 801060ce: e9 57 f5 ff ff jmp 8010562a <alltraps> 801060d3 <vector157>: 801060d3: 6a 00 push $0x0 801060d5: 68 9d 00 00 00 push $0x9d 801060da: e9 4b f5 ff ff jmp 8010562a <alltraps> 801060df <vector158>: 801060df: 6a 00 push $0x0 801060e1: 68 9e 00 00 00 push $0x9e 801060e6: e9 3f f5 ff ff jmp 8010562a <alltraps> 801060eb <vector159>: 801060eb: 6a 00 push $0x0 801060ed: 68 9f 00 00 00 push $0x9f 801060f2: e9 33 f5 ff ff jmp 8010562a <alltraps> 801060f7 <vector160>: 801060f7: 6a 00 push $0x0 801060f9: 68 a0 00 00 00 push $0xa0 801060fe: e9 27 f5 ff ff jmp 8010562a <alltraps> 80106103 <vector161>: 80106103: 6a 00 push $0x0 80106105: 68 a1 00 00 00 push $0xa1 8010610a: e9 1b f5 ff ff jmp 8010562a <alltraps> 8010610f <vector162>: 8010610f: 6a 00 push $0x0 80106111: 68 a2 00 00 00 push $0xa2 80106116: e9 0f f5 ff ff jmp 8010562a <alltraps> 8010611b <vector163>: 8010611b: 6a 00 push $0x0 8010611d: 68 a3 00 00 00 push $0xa3 80106122: e9 03 f5 ff ff jmp 8010562a <alltraps> 80106127 <vector164>: 80106127: 6a 00 push $0x0 80106129: 68 a4 00 00 00 push $0xa4 8010612e: e9 f7 f4 ff ff jmp 8010562a <alltraps> 80106133 <vector165>: 80106133: 6a 00 push $0x0 80106135: 68 a5 00 00 00 push $0xa5 8010613a: e9 eb f4 ff ff jmp 8010562a <alltraps> 8010613f <vector166>: 8010613f: 6a 00 push $0x0 80106141: 68 a6 00 00 00 push $0xa6 80106146: e9 df f4 ff ff jmp 8010562a <alltraps> 8010614b <vector167>: 8010614b: 6a 00 push $0x0 8010614d: 68 a7 00 00 00 push $0xa7 80106152: e9 d3 f4 ff ff jmp 8010562a <alltraps> 80106157 <vector168>: 80106157: 6a 00 push $0x0 80106159: 68 a8 00 00 00 push $0xa8 8010615e: e9 c7 f4 ff ff jmp 8010562a <alltraps> 80106163 <vector169>: 80106163: 6a 00 push $0x0 80106165: 68 a9 00 00 00 push $0xa9 8010616a: e9 bb f4 ff ff jmp 8010562a <alltraps> 8010616f <vector170>: 8010616f: 6a 00 push $0x0 80106171: 68 aa 00 00 00 push $0xaa 80106176: e9 af f4 ff ff jmp 8010562a <alltraps> 8010617b <vector171>: 8010617b: 6a 00 push $0x0 8010617d: 68 ab 00 00 00 push $0xab 80106182: e9 a3 f4 ff ff jmp 8010562a <alltraps> 80106187 <vector172>: 80106187: 6a 00 push $0x0 80106189: 68 ac 00 00 00 push $0xac 8010618e: e9 97 f4 ff ff jmp 8010562a <alltraps> 80106193 <vector173>: 80106193: 6a 00 push $0x0 80106195: 68 ad 00 00 00 push $0xad 8010619a: e9 8b f4 ff ff jmp 8010562a <alltraps> 8010619f <vector174>: 8010619f: 6a 00 push $0x0 801061a1: 68 ae 00 00 00 push $0xae 801061a6: e9 7f f4 ff ff jmp 8010562a <alltraps> 801061ab <vector175>: 801061ab: 6a 00 push $0x0 801061ad: 68 af 00 00 00 push $0xaf 801061b2: e9 73 f4 ff ff jmp 8010562a <alltraps> 801061b7 <vector176>: 801061b7: 6a 00 push $0x0 801061b9: 68 b0 00 00 00 push $0xb0 801061be: e9 67 f4 ff ff jmp 8010562a <alltraps> 801061c3 <vector177>: 801061c3: 6a 00 push $0x0 801061c5: 68 b1 00 00 00 push $0xb1 801061ca: e9 5b f4 ff ff jmp 8010562a <alltraps> 801061cf <vector178>: 801061cf: 6a 00 push $0x0 801061d1: 68 b2 00 00 00 push $0xb2 801061d6: e9 4f f4 ff ff jmp 8010562a <alltraps> 801061db <vector179>: 801061db: 6a 00 push $0x0 801061dd: 68 b3 00 00 00 push $0xb3 801061e2: e9 43 f4 ff ff jmp 8010562a <alltraps> 801061e7 <vector180>: 801061e7: 6a 00 push $0x0 801061e9: 68 b4 00 00 00 push $0xb4 801061ee: e9 37 f4 ff ff jmp 8010562a <alltraps> 801061f3 <vector181>: 801061f3: 6a 00 push $0x0 801061f5: 68 b5 00 00 00 push $0xb5 801061fa: e9 2b f4 ff ff jmp 8010562a <alltraps> 801061ff <vector182>: 801061ff: 6a 00 push $0x0 80106201: 68 b6 00 00 00 push $0xb6 80106206: e9 1f f4 ff ff jmp 8010562a <alltraps> 8010620b <vector183>: 8010620b: 6a 00 push $0x0 8010620d: 68 b7 00 00 00 push $0xb7 80106212: e9 13 f4 ff ff jmp 8010562a <alltraps> 80106217 <vector184>: 80106217: 6a 00 push $0x0 80106219: 68 b8 00 00 00 push $0xb8 8010621e: e9 07 f4 ff ff jmp 8010562a <alltraps> 80106223 <vector185>: 80106223: 6a 00 push $0x0 80106225: 68 b9 00 00 00 push $0xb9 8010622a: e9 fb f3 ff ff jmp 8010562a <alltraps> 8010622f <vector186>: 8010622f: 6a 00 push $0x0 80106231: 68 ba 00 00 00 push $0xba 80106236: e9 ef f3 ff ff jmp 8010562a <alltraps> 8010623b <vector187>: 8010623b: 6a 00 push $0x0 8010623d: 68 bb 00 00 00 push $0xbb 80106242: e9 e3 f3 ff ff jmp 8010562a <alltraps> 80106247 <vector188>: 80106247: 6a 00 push $0x0 80106249: 68 bc 00 00 00 push $0xbc 8010624e: e9 d7 f3 ff ff jmp 8010562a <alltraps> 80106253 <vector189>: 80106253: 6a 00 push $0x0 80106255: 68 bd 00 00 00 push $0xbd 8010625a: e9 cb f3 ff ff jmp 8010562a <alltraps> 8010625f <vector190>: 8010625f: 6a 00 push $0x0 80106261: 68 be 00 00 00 push $0xbe 80106266: e9 bf f3 ff ff jmp 8010562a <alltraps> 8010626b <vector191>: 8010626b: 6a 00 push $0x0 8010626d: 68 bf 00 00 00 push $0xbf 80106272: e9 b3 f3 ff ff jmp 8010562a <alltraps> 80106277 <vector192>: 80106277: 6a 00 push $0x0 80106279: 68 c0 00 00 00 push $0xc0 8010627e: e9 a7 f3 ff ff jmp 8010562a <alltraps> 80106283 <vector193>: 80106283: 6a 00 push $0x0 80106285: 68 c1 00 00 00 push $0xc1 8010628a: e9 9b f3 ff ff jmp 8010562a <alltraps> 8010628f <vector194>: 8010628f: 6a 00 push $0x0 80106291: 68 c2 00 00 00 push $0xc2 80106296: e9 8f f3 ff ff jmp 8010562a <alltraps> 8010629b <vector195>: 8010629b: 6a 00 push $0x0 8010629d: 68 c3 00 00 00 push $0xc3 801062a2: e9 83 f3 ff ff jmp 8010562a <alltraps> 801062a7 <vector196>: 801062a7: 6a 00 push $0x0 801062a9: 68 c4 00 00 00 push $0xc4 801062ae: e9 77 f3 ff ff jmp 8010562a <alltraps> 801062b3 <vector197>: 801062b3: 6a 00 push $0x0 801062b5: 68 c5 00 00 00 push $0xc5 801062ba: e9 6b f3 ff ff jmp 8010562a <alltraps> 801062bf <vector198>: 801062bf: 6a 00 push $0x0 801062c1: 68 c6 00 00 00 push $0xc6 801062c6: e9 5f f3 ff ff jmp 8010562a <alltraps> 801062cb <vector199>: 801062cb: 6a 00 push $0x0 801062cd: 68 c7 00 00 00 push $0xc7 801062d2: e9 53 f3 ff ff jmp 8010562a <alltraps> 801062d7 <vector200>: 801062d7: 6a 00 push $0x0 801062d9: 68 c8 00 00 00 push $0xc8 801062de: e9 47 f3 ff ff jmp 8010562a <alltraps> 801062e3 <vector201>: 801062e3: 6a 00 push $0x0 801062e5: 68 c9 00 00 00 push $0xc9 801062ea: e9 3b f3 ff ff jmp 8010562a <alltraps> 801062ef <vector202>: 801062ef: 6a 00 push $0x0 801062f1: 68 ca 00 00 00 push $0xca 801062f6: e9 2f f3 ff ff jmp 8010562a <alltraps> 801062fb <vector203>: 801062fb: 6a 00 push $0x0 801062fd: 68 cb 00 00 00 push $0xcb 80106302: e9 23 f3 ff ff jmp 8010562a <alltraps> 80106307 <vector204>: 80106307: 6a 00 push $0x0 80106309: 68 cc 00 00 00 push $0xcc 8010630e: e9 17 f3 ff ff jmp 8010562a <alltraps> 80106313 <vector205>: 80106313: 6a 00 push $0x0 80106315: 68 cd 00 00 00 push $0xcd 8010631a: e9 0b f3 ff ff jmp 8010562a <alltraps> 8010631f <vector206>: 8010631f: 6a 00 push $0x0 80106321: 68 ce 00 00 00 push $0xce 80106326: e9 ff f2 ff ff jmp 8010562a <alltraps> 8010632b <vector207>: 8010632b: 6a 00 push $0x0 8010632d: 68 cf 00 00 00 push $0xcf 80106332: e9 f3 f2 ff ff jmp 8010562a <alltraps> 80106337 <vector208>: 80106337: 6a 00 push $0x0 80106339: 68 d0 00 00 00 push $0xd0 8010633e: e9 e7 f2 ff ff jmp 8010562a <alltraps> 80106343 <vector209>: 80106343: 6a 00 push $0x0 80106345: 68 d1 00 00 00 push $0xd1 8010634a: e9 db f2 ff ff jmp 8010562a <alltraps> 8010634f <vector210>: 8010634f: 6a 00 push $0x0 80106351: 68 d2 00 00 00 push $0xd2 80106356: e9 cf f2 ff ff jmp 8010562a <alltraps> 8010635b <vector211>: 8010635b: 6a 00 push $0x0 8010635d: 68 d3 00 00 00 push $0xd3 80106362: e9 c3 f2 ff ff jmp 8010562a <alltraps> 80106367 <vector212>: 80106367: 6a 00 push $0x0 80106369: 68 d4 00 00 00 push $0xd4 8010636e: e9 b7 f2 ff ff jmp 8010562a <alltraps> 80106373 <vector213>: 80106373: 6a 00 push $0x0 80106375: 68 d5 00 00 00 push $0xd5 8010637a: e9 ab f2 ff ff jmp 8010562a <alltraps> 8010637f <vector214>: 8010637f: 6a 00 push $0x0 80106381: 68 d6 00 00 00 push $0xd6 80106386: e9 9f f2 ff ff jmp 8010562a <alltraps> 8010638b <vector215>: 8010638b: 6a 00 push $0x0 8010638d: 68 d7 00 00 00 push $0xd7 80106392: e9 93 f2 ff ff jmp 8010562a <alltraps> 80106397 <vector216>: 80106397: 6a 00 push $0x0 80106399: 68 d8 00 00 00 push $0xd8 8010639e: e9 87 f2 ff ff jmp 8010562a <alltraps> 801063a3 <vector217>: 801063a3: 6a 00 push $0x0 801063a5: 68 d9 00 00 00 push $0xd9 801063aa: e9 7b f2 ff ff jmp 8010562a <alltraps> 801063af <vector218>: 801063af: 6a 00 push $0x0 801063b1: 68 da 00 00 00 push $0xda 801063b6: e9 6f f2 ff ff jmp 8010562a <alltraps> 801063bb <vector219>: 801063bb: 6a 00 push $0x0 801063bd: 68 db 00 00 00 push $0xdb 801063c2: e9 63 f2 ff ff jmp 8010562a <alltraps> 801063c7 <vector220>: 801063c7: 6a 00 push $0x0 801063c9: 68 dc 00 00 00 push $0xdc 801063ce: e9 57 f2 ff ff jmp 8010562a <alltraps> 801063d3 <vector221>: 801063d3: 6a 00 push $0x0 801063d5: 68 dd 00 00 00 push $0xdd 801063da: e9 4b f2 ff ff jmp 8010562a <alltraps> 801063df <vector222>: 801063df: 6a 00 push $0x0 801063e1: 68 de 00 00 00 push $0xde 801063e6: e9 3f f2 ff ff jmp 8010562a <alltraps> 801063eb <vector223>: 801063eb: 6a 00 push $0x0 801063ed: 68 df 00 00 00 push $0xdf 801063f2: e9 33 f2 ff ff jmp 8010562a <alltraps> 801063f7 <vector224>: 801063f7: 6a 00 push $0x0 801063f9: 68 e0 00 00 00 push $0xe0 801063fe: e9 27 f2 ff ff jmp 8010562a <alltraps> 80106403 <vector225>: 80106403: 6a 00 push $0x0 80106405: 68 e1 00 00 00 push $0xe1 8010640a: e9 1b f2 ff ff jmp 8010562a <alltraps> 8010640f <vector226>: 8010640f: 6a 00 push $0x0 80106411: 68 e2 00 00 00 push $0xe2 80106416: e9 0f f2 ff ff jmp 8010562a <alltraps> 8010641b <vector227>: 8010641b: 6a 00 push $0x0 8010641d: 68 e3 00 00 00 push $0xe3 80106422: e9 03 f2 ff ff jmp 8010562a <alltraps> 80106427 <vector228>: 80106427: 6a 00 push $0x0 80106429: 68 e4 00 00 00 push $0xe4 8010642e: e9 f7 f1 ff ff jmp 8010562a <alltraps> 80106433 <vector229>: 80106433: 6a 00 push $0x0 80106435: 68 e5 00 00 00 push $0xe5 8010643a: e9 eb f1 ff ff jmp 8010562a <alltraps> 8010643f <vector230>: 8010643f: 6a 00 push $0x0 80106441: 68 e6 00 00 00 push $0xe6 80106446: e9 df f1 ff ff jmp 8010562a <alltraps> 8010644b <vector231>: 8010644b: 6a 00 push $0x0 8010644d: 68 e7 00 00 00 push $0xe7 80106452: e9 d3 f1 ff ff jmp 8010562a <alltraps> 80106457 <vector232>: 80106457: 6a 00 push $0x0 80106459: 68 e8 00 00 00 push $0xe8 8010645e: e9 c7 f1 ff ff jmp 8010562a <alltraps> 80106463 <vector233>: 80106463: 6a 00 push $0x0 80106465: 68 e9 00 00 00 push $0xe9 8010646a: e9 bb f1 ff ff jmp 8010562a <alltraps> 8010646f <vector234>: 8010646f: 6a 00 push $0x0 80106471: 68 ea 00 00 00 push $0xea 80106476: e9 af f1 ff ff jmp 8010562a <alltraps> 8010647b <vector235>: 8010647b: 6a 00 push $0x0 8010647d: 68 eb 00 00 00 push $0xeb 80106482: e9 a3 f1 ff ff jmp 8010562a <alltraps> 80106487 <vector236>: 80106487: 6a 00 push $0x0 80106489: 68 ec 00 00 00 push $0xec 8010648e: e9 97 f1 ff ff jmp 8010562a <alltraps> 80106493 <vector237>: 80106493: 6a 00 push $0x0 80106495: 68 ed 00 00 00 push $0xed 8010649a: e9 8b f1 ff ff jmp 8010562a <alltraps> 8010649f <vector238>: 8010649f: 6a 00 push $0x0 801064a1: 68 ee 00 00 00 push $0xee 801064a6: e9 7f f1 ff ff jmp 8010562a <alltraps> 801064ab <vector239>: 801064ab: 6a 00 push $0x0 801064ad: 68 ef 00 00 00 push $0xef 801064b2: e9 73 f1 ff ff jmp 8010562a <alltraps> 801064b7 <vector240>: 801064b7: 6a 00 push $0x0 801064b9: 68 f0 00 00 00 push $0xf0 801064be: e9 67 f1 ff ff jmp 8010562a <alltraps> 801064c3 <vector241>: 801064c3: 6a 00 push $0x0 801064c5: 68 f1 00 00 00 push $0xf1 801064ca: e9 5b f1 ff ff jmp 8010562a <alltraps> 801064cf <vector242>: 801064cf: 6a 00 push $0x0 801064d1: 68 f2 00 00 00 push $0xf2 801064d6: e9 4f f1 ff ff jmp 8010562a <alltraps> 801064db <vector243>: 801064db: 6a 00 push $0x0 801064dd: 68 f3 00 00 00 push $0xf3 801064e2: e9 43 f1 ff ff jmp 8010562a <alltraps> 801064e7 <vector244>: 801064e7: 6a 00 push $0x0 801064e9: 68 f4 00 00 00 push $0xf4 801064ee: e9 37 f1 ff ff jmp 8010562a <alltraps> 801064f3 <vector245>: 801064f3: 6a 00 push $0x0 801064f5: 68 f5 00 00 00 push $0xf5 801064fa: e9 2b f1 ff ff jmp 8010562a <alltraps> 801064ff <vector246>: 801064ff: 6a 00 push $0x0 80106501: 68 f6 00 00 00 push $0xf6 80106506: e9 1f f1 ff ff jmp 8010562a <alltraps> 8010650b <vector247>: 8010650b: 6a 00 push $0x0 8010650d: 68 f7 00 00 00 push $0xf7 80106512: e9 13 f1 ff ff jmp 8010562a <alltraps> 80106517 <vector248>: 80106517: 6a 00 push $0x0 80106519: 68 f8 00 00 00 push $0xf8 8010651e: e9 07 f1 ff ff jmp 8010562a <alltraps> 80106523 <vector249>: 80106523: 6a 00 push $0x0 80106525: 68 f9 00 00 00 push $0xf9 8010652a: e9 fb f0 ff ff jmp 8010562a <alltraps> 8010652f <vector250>: 8010652f: 6a 00 push $0x0 80106531: 68 fa 00 00 00 push $0xfa 80106536: e9 ef f0 ff ff jmp 8010562a <alltraps> 8010653b <vector251>: 8010653b: 6a 00 push $0x0 8010653d: 68 fb 00 00 00 push $0xfb 80106542: e9 e3 f0 ff ff jmp 8010562a <alltraps> 80106547 <vector252>: 80106547: 6a 00 push $0x0 80106549: 68 fc 00 00 00 push $0xfc 8010654e: e9 d7 f0 ff ff jmp 8010562a <alltraps> 80106553 <vector253>: 80106553: 6a 00 push $0x0 80106555: 68 fd 00 00 00 push $0xfd 8010655a: e9 cb f0 ff ff jmp 8010562a <alltraps> 8010655f <vector254>: 8010655f: 6a 00 push $0x0 80106561: 68 fe 00 00 00 push $0xfe 80106566: e9 bf f0 ff ff jmp 8010562a <alltraps> 8010656b <vector255>: 8010656b: 6a 00 push $0x0 8010656d: 68 ff 00 00 00 push $0xff 80106572: e9 b3 f0 ff ff jmp 8010562a <alltraps> 80106577: 66 90 xchg %ax,%ax 80106579: 66 90 xchg %ax,%ax 8010657b: 66 90 xchg %ax,%ax 8010657d: 66 90 xchg %ax,%ax 8010657f: 90 nop 80106580 <walkpgdir>: 80106580: 55 push %ebp 80106581: 89 e5 mov %esp,%ebp 80106583: 57 push %edi 80106584: 56 push %esi 80106585: 53 push %ebx 80106586: 89 d3 mov %edx,%ebx 80106588: 89 d7 mov %edx,%edi 8010658a: c1 eb 16 shr $0x16,%ebx 8010658d: 8d 34 98 lea (%eax,%ebx,4),%esi 80106590: 83 ec 0c sub $0xc,%esp 80106593: 8b 06 mov (%esi),%eax 80106595: a8 01 test $0x1,%al 80106597: 74 27 je 801065c0 <walkpgdir+0x40> 80106599: 25 00 f0 ff ff and $0xfffff000,%eax 8010659e: 8d 98 00 00 00 80 lea -0x80000000(%eax),%ebx 801065a4: c1 ef 0a shr $0xa,%edi 801065a7: 8d 65 f4 lea -0xc(%ebp),%esp 801065aa: 89 fa mov %edi,%edx 801065ac: 81 e2 fc 0f 00 00 and $0xffc,%edx 801065b2: 8d 04 13 lea (%ebx,%edx,1),%eax 801065b5: 5b pop %ebx 801065b6: 5e pop %esi 801065b7: 5f pop %edi 801065b8: 5d pop %ebp 801065b9: c3 ret 801065ba: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801065c0: 85 c9 test %ecx,%ecx 801065c2: 74 2c je 801065f0 <walkpgdir+0x70> 801065c4: e8 f7 be ff ff call 801024c0 <kalloc> 801065c9: 85 c0 test %eax,%eax 801065cb: 89 c3 mov %eax,%ebx 801065cd: 74 21 je 801065f0 <walkpgdir+0x70> 801065cf: 83 ec 04 sub $0x4,%esp 801065d2: 68 00 10 00 00 push $0x1000 801065d7: 6a 00 push $0x0 801065d9: 50 push %eax 801065da: e8 71 de ff ff call 80104450 <memset> 801065df: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax 801065e5: 83 c4 10 add $0x10,%esp 801065e8: 83 c8 07 or $0x7,%eax 801065eb: 89 06 mov %eax,(%esi) 801065ed: eb b5 jmp 801065a4 <walkpgdir+0x24> 801065ef: 90 nop 801065f0: 8d 65 f4 lea -0xc(%ebp),%esp 801065f3: 31 c0 xor %eax,%eax 801065f5: 5b pop %ebx 801065f6: 5e pop %esi 801065f7: 5f pop %edi 801065f8: 5d pop %ebp 801065f9: c3 ret 801065fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106600 <mappages>: 80106600: 55 push %ebp 80106601: 89 e5 mov %esp,%ebp 80106603: 57 push %edi 80106604: 56 push %esi 80106605: 53 push %ebx 80106606: 89 d3 mov %edx,%ebx 80106608: 81 e3 00 f0 ff ff and $0xfffff000,%ebx 8010660e: 83 ec 1c sub $0x1c,%esp 80106611: 89 45 e4 mov %eax,-0x1c(%ebp) 80106614: 8d 44 0a ff lea -0x1(%edx,%ecx,1),%eax 80106618: 8b 7d 08 mov 0x8(%ebp),%edi 8010661b: 25 00 f0 ff ff and $0xfffff000,%eax 80106620: 89 45 e0 mov %eax,-0x20(%ebp) 80106623: 8b 45 0c mov 0xc(%ebp),%eax 80106626: 29 df sub %ebx,%edi 80106628: 83 c8 01 or $0x1,%eax 8010662b: 89 45 dc mov %eax,-0x24(%ebp) 8010662e: eb 15 jmp 80106645 <mappages+0x45> 80106630: f6 00 01 testb $0x1,(%eax) 80106633: 75 45 jne 8010667a <mappages+0x7a> 80106635: 0b 75 dc or -0x24(%ebp),%esi 80106638: 3b 5d e0 cmp -0x20(%ebp),%ebx 8010663b: 89 30 mov %esi,(%eax) 8010663d: 74 31 je 80106670 <mappages+0x70> 8010663f: 81 c3 00 10 00 00 add $0x1000,%ebx 80106645: 8b 45 e4 mov -0x1c(%ebp),%eax 80106648: b9 01 00 00 00 mov $0x1,%ecx 8010664d: 89 da mov %ebx,%edx 8010664f: 8d 34 3b lea (%ebx,%edi,1),%esi 80106652: e8 29 ff ff ff call 80106580 <walkpgdir> 80106657: 85 c0 test %eax,%eax 80106659: 75 d5 jne 80106630 <mappages+0x30> 8010665b: 8d 65 f4 lea -0xc(%ebp),%esp 8010665e: b8 ff ff ff ff mov $0xffffffff,%eax 80106663: 5b pop %ebx 80106664: 5e pop %esi 80106665: 5f pop %edi 80106666: 5d pop %ebp 80106667: c3 ret 80106668: 90 nop 80106669: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106670: 8d 65 f4 lea -0xc(%ebp),%esp 80106673: 31 c0 xor %eax,%eax 80106675: 5b pop %ebx 80106676: 5e pop %esi 80106677: 5f pop %edi 80106678: 5d pop %ebp 80106679: c3 ret 8010667a: 83 ec 0c sub $0xc,%esp 8010667d: 68 88 77 10 80 push $0x80107788 80106682: e8 09 9d ff ff call 80100390 <panic> 80106687: 89 f6 mov %esi,%esi 80106689: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80106690 <deallocuvm.part.0>: 80106690: 55 push %ebp 80106691: 89 e5 mov %esp,%ebp 80106693: 57 push %edi 80106694: 56 push %esi 80106695: 53 push %ebx 80106696: 8d 99 ff 0f 00 00 lea 0xfff(%ecx),%ebx 8010669c: 89 c7 mov %eax,%edi 8010669e: 81 e3 00 f0 ff ff and $0xfffff000,%ebx 801066a4: 83 ec 1c sub $0x1c,%esp 801066a7: 89 4d e0 mov %ecx,-0x20(%ebp) 801066aa: 39 d3 cmp %edx,%ebx 801066ac: 73 66 jae 80106714 <deallocuvm.part.0+0x84> 801066ae: 89 d6 mov %edx,%esi 801066b0: eb 3d jmp 801066ef <deallocuvm.part.0+0x5f> 801066b2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 801066b8: 8b 10 mov (%eax),%edx 801066ba: f6 c2 01 test $0x1,%dl 801066bd: 74 26 je 801066e5 <deallocuvm.part.0+0x55> 801066bf: 81 e2 00 f0 ff ff and $0xfffff000,%edx 801066c5: 74 58 je 8010671f <deallocuvm.part.0+0x8f> 801066c7: 83 ec 0c sub $0xc,%esp 801066ca: 81 c2 00 00 00 80 add $0x80000000,%edx 801066d0: 89 45 e4 mov %eax,-0x1c(%ebp) 801066d3: 52 push %edx 801066d4: e8 37 bc ff ff call 80102310 <kfree> 801066d9: 8b 45 e4 mov -0x1c(%ebp),%eax 801066dc: 83 c4 10 add $0x10,%esp 801066df: c7 00 00 00 00 00 movl $0x0,(%eax) 801066e5: 81 c3 00 10 00 00 add $0x1000,%ebx 801066eb: 39 f3 cmp %esi,%ebx 801066ed: 73 25 jae 80106714 <deallocuvm.part.0+0x84> 801066ef: 31 c9 xor %ecx,%ecx 801066f1: 89 da mov %ebx,%edx 801066f3: 89 f8 mov %edi,%eax 801066f5: e8 86 fe ff ff call 80106580 <walkpgdir> 801066fa: 85 c0 test %eax,%eax 801066fc: 75 ba jne 801066b8 <deallocuvm.part.0+0x28> 801066fe: 81 e3 00 00 c0 ff and $0xffc00000,%ebx 80106704: 81 c3 00 f0 3f 00 add $0x3ff000,%ebx 8010670a: 81 c3 00 10 00 00 add $0x1000,%ebx 80106710: 39 f3 cmp %esi,%ebx 80106712: 72 db jb 801066ef <deallocuvm.part.0+0x5f> 80106714: 8b 45 e0 mov -0x20(%ebp),%eax 80106717: 8d 65 f4 lea -0xc(%ebp),%esp 8010671a: 5b pop %ebx 8010671b: 5e pop %esi 8010671c: 5f pop %edi 8010671d: 5d pop %ebp 8010671e: c3 ret 8010671f: 83 ec 0c sub $0xc,%esp 80106722: 68 26 71 10 80 push $0x80107126 80106727: e8 64 9c ff ff call 80100390 <panic> 8010672c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80106730 <seginit>: 80106730: 55 push %ebp 80106731: 89 e5 mov %esp,%ebp 80106733: 83 ec 18 sub $0x18,%esp 80106736: e8 85 d0 ff ff call 801037c0 <cpuid> 8010673b: 69 c0 b0 00 00 00 imul $0xb0,%eax,%eax 80106741: ba 2f 00 00 00 mov $0x2f,%edx 80106746: 66 89 55 f2 mov %dx,-0xe(%ebp) 8010674a: c7 80 f8 27 11 80 ff movl $0xffff,-0x7feed808(%eax) 80106751: ff 00 00 80106754: c7 80 fc 27 11 80 00 movl $0xcf9a00,-0x7feed804(%eax) 8010675b: 9a cf 00 8010675e: c7 80 00 28 11 80 ff movl $0xffff,-0x7feed800(%eax) 80106765: ff 00 00 80106768: c7 80 04 28 11 80 00 movl $0xcf9200,-0x7feed7fc(%eax) 8010676f: 92 cf 00 80106772: c7 80 08 28 11 80 ff movl $0xffff,-0x7feed7f8(%eax) 80106779: ff 00 00 8010677c: c7 80 0c 28 11 80 00 movl $0xcffa00,-0x7feed7f4(%eax) 80106783: fa cf 00 80106786: c7 80 10 28 11 80 ff movl $0xffff,-0x7feed7f0(%eax) 8010678d: ff 00 00 80106790: c7 80 14 28 11 80 00 movl $0xcff200,-0x7feed7ec(%eax) 80106797: f2 cf 00 8010679a: 05 f0 27 11 80 add $0x801127f0,%eax 8010679f: 66 89 45 f4 mov %ax,-0xc(%ebp) 801067a3: c1 e8 10 shr $0x10,%eax 801067a6: 66 89 45 f6 mov %ax,-0xa(%ebp) 801067aa: 8d 45 f2 lea -0xe(%ebp),%eax 801067ad: 0f 01 10 lgdtl (%eax) 801067b0: c9 leave 801067b1: c3 ret 801067b2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801067b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801067c0 <switchkvm>: 801067c0: a1 a4 54 11 80 mov 0x801154a4,%eax 801067c5: 55 push %ebp 801067c6: 89 e5 mov %esp,%ebp 801067c8: 05 00 00 00 80 add $0x80000000,%eax 801067cd: 0f 22 d8 mov %eax,%cr3 801067d0: 5d pop %ebp 801067d1: c3 ret 801067d2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 801067d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801067e0 <switchuvm>: 801067e0: 55 push %ebp 801067e1: 89 e5 mov %esp,%ebp 801067e3: 57 push %edi 801067e4: 56 push %esi 801067e5: 53 push %ebx 801067e6: 83 ec 1c sub $0x1c,%esp 801067e9: 8b 5d 08 mov 0x8(%ebp),%ebx 801067ec: 85 db test %ebx,%ebx 801067ee: 0f 84 cb 00 00 00 je 801068bf <switchuvm+0xdf> 801067f4: 8b 43 08 mov 0x8(%ebx),%eax 801067f7: 85 c0 test %eax,%eax 801067f9: 0f 84 da 00 00 00 je 801068d9 <switchuvm+0xf9> 801067ff: 8b 43 04 mov 0x4(%ebx),%eax 80106802: 85 c0 test %eax,%eax 80106804: 0f 84 c2 00 00 00 je 801068cc <switchuvm+0xec> 8010680a: e8 61 da ff ff call 80104270 <pushcli> 8010680f: e8 2c cf ff ff call 80103740 <mycpu> 80106814: 89 c6 mov %eax,%esi 80106816: e8 25 cf ff ff call 80103740 <mycpu> 8010681b: 89 c7 mov %eax,%edi 8010681d: e8 1e cf ff ff call 80103740 <mycpu> 80106822: 89 45 e4 mov %eax,-0x1c(%ebp) 80106825: 83 c7 08 add $0x8,%edi 80106828: e8 13 cf ff ff call 80103740 <mycpu> 8010682d: 8b 4d e4 mov -0x1c(%ebp),%ecx 80106830: 83 c0 08 add $0x8,%eax 80106833: ba 67 00 00 00 mov $0x67,%edx 80106838: c1 e8 18 shr $0x18,%eax 8010683b: 66 89 96 98 00 00 00 mov %dx,0x98(%esi) 80106842: 66 89 be 9a 00 00 00 mov %di,0x9a(%esi) 80106849: 88 86 9f 00 00 00 mov %al,0x9f(%esi) 8010684f: bf ff ff ff ff mov $0xffffffff,%edi 80106854: 83 c1 08 add $0x8,%ecx 80106857: c1 e9 10 shr $0x10,%ecx 8010685a: 88 8e 9c 00 00 00 mov %cl,0x9c(%esi) 80106860: b9 99 40 00 00 mov $0x4099,%ecx 80106865: 66 89 8e 9d 00 00 00 mov %cx,0x9d(%esi) 8010686c: be 10 00 00 00 mov $0x10,%esi 80106871: e8 ca ce ff ff call 80103740 <mycpu> 80106876: 80 a0 9d 00 00 00 ef andb $0xef,0x9d(%eax) 8010687d: e8 be ce ff ff call 80103740 <mycpu> 80106882: 66 89 70 10 mov %si,0x10(%eax) 80106886: 8b 73 08 mov 0x8(%ebx),%esi 80106889: e8 b2 ce ff ff call 80103740 <mycpu> 8010688e: 81 c6 00 10 00 00 add $0x1000,%esi 80106894: 89 70 0c mov %esi,0xc(%eax) 80106897: e8 a4 ce ff ff call 80103740 <mycpu> 8010689c: 66 89 78 6e mov %di,0x6e(%eax) 801068a0: b8 28 00 00 00 mov $0x28,%eax 801068a5: 0f 00 d8 ltr %ax 801068a8: 8b 43 04 mov 0x4(%ebx),%eax 801068ab: 05 00 00 00 80 add $0x80000000,%eax 801068b0: 0f 22 d8 mov %eax,%cr3 801068b3: 8d 65 f4 lea -0xc(%ebp),%esp 801068b6: 5b pop %ebx 801068b7: 5e pop %esi 801068b8: 5f pop %edi 801068b9: 5d pop %ebp 801068ba: e9 f1 d9 ff ff jmp 801042b0 <popcli> 801068bf: 83 ec 0c sub $0xc,%esp 801068c2: 68 8e 77 10 80 push $0x8010778e 801068c7: e8 c4 9a ff ff call 80100390 <panic> 801068cc: 83 ec 0c sub $0xc,%esp 801068cf: 68 b9 77 10 80 push $0x801077b9 801068d4: e8 b7 9a ff ff call 80100390 <panic> 801068d9: 83 ec 0c sub $0xc,%esp 801068dc: 68 a4 77 10 80 push $0x801077a4 801068e1: e8 aa 9a ff ff call 80100390 <panic> 801068e6: 8d 76 00 lea 0x0(%esi),%esi 801068e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 801068f0 <inituvm>: 801068f0: 55 push %ebp 801068f1: 89 e5 mov %esp,%ebp 801068f3: 57 push %edi 801068f4: 56 push %esi 801068f5: 53 push %ebx 801068f6: 83 ec 1c sub $0x1c,%esp 801068f9: 8b 75 10 mov 0x10(%ebp),%esi 801068fc: 8b 45 08 mov 0x8(%ebp),%eax 801068ff: 8b 7d 0c mov 0xc(%ebp),%edi 80106902: 81 fe ff 0f 00 00 cmp $0xfff,%esi 80106908: 89 45 e4 mov %eax,-0x1c(%ebp) 8010690b: 77 49 ja 80106956 <inituvm+0x66> 8010690d: e8 ae bb ff ff call 801024c0 <kalloc> 80106912: 83 ec 04 sub $0x4,%esp 80106915: 89 c3 mov %eax,%ebx 80106917: 68 00 10 00 00 push $0x1000 8010691c: 6a 00 push $0x0 8010691e: 50 push %eax 8010691f: e8 2c db ff ff call 80104450 <memset> 80106924: 58 pop %eax 80106925: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax 8010692b: b9 00 10 00 00 mov $0x1000,%ecx 80106930: 5a pop %edx 80106931: 6a 06 push $0x6 80106933: 50 push %eax 80106934: 31 d2 xor %edx,%edx 80106936: 8b 45 e4 mov -0x1c(%ebp),%eax 80106939: e8 c2 fc ff ff call 80106600 <mappages> 8010693e: 89 75 10 mov %esi,0x10(%ebp) 80106941: 89 7d 0c mov %edi,0xc(%ebp) 80106944: 83 c4 10 add $0x10,%esp 80106947: 89 5d 08 mov %ebx,0x8(%ebp) 8010694a: 8d 65 f4 lea -0xc(%ebp),%esp 8010694d: 5b pop %ebx 8010694e: 5e pop %esi 8010694f: 5f pop %edi 80106950: 5d pop %ebp 80106951: e9 aa db ff ff jmp 80104500 <memmove> 80106956: 83 ec 0c sub $0xc,%esp 80106959: 68 cd 77 10 80 push $0x801077cd 8010695e: e8 2d 9a ff ff call 80100390 <panic> 80106963: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106969: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80106970 <loaduvm>: 80106970: 55 push %ebp 80106971: 89 e5 mov %esp,%ebp 80106973: 57 push %edi 80106974: 56 push %esi 80106975: 53 push %ebx 80106976: 83 ec 0c sub $0xc,%esp 80106979: f7 45 0c ff 0f 00 00 testl $0xfff,0xc(%ebp) 80106980: 0f 85 91 00 00 00 jne 80106a17 <loaduvm+0xa7> 80106986: 8b 75 18 mov 0x18(%ebp),%esi 80106989: 31 db xor %ebx,%ebx 8010698b: 85 f6 test %esi,%esi 8010698d: 75 1a jne 801069a9 <loaduvm+0x39> 8010698f: eb 6f jmp 80106a00 <loaduvm+0x90> 80106991: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106998: 81 c3 00 10 00 00 add $0x1000,%ebx 8010699e: 81 ee 00 10 00 00 sub $0x1000,%esi 801069a4: 39 5d 18 cmp %ebx,0x18(%ebp) 801069a7: 76 57 jbe 80106a00 <loaduvm+0x90> 801069a9: 8b 55 0c mov 0xc(%ebp),%edx 801069ac: 8b 45 08 mov 0x8(%ebp),%eax 801069af: 31 c9 xor %ecx,%ecx 801069b1: 01 da add %ebx,%edx 801069b3: e8 c8 fb ff ff call 80106580 <walkpgdir> 801069b8: 85 c0 test %eax,%eax 801069ba: 74 4e je 80106a0a <loaduvm+0x9a> 801069bc: 8b 00 mov (%eax),%eax 801069be: 8b 4d 14 mov 0x14(%ebp),%ecx 801069c1: bf 00 10 00 00 mov $0x1000,%edi 801069c6: 25 00 f0 ff ff and $0xfffff000,%eax 801069cb: 81 fe ff 0f 00 00 cmp $0xfff,%esi 801069d1: 0f 46 fe cmovbe %esi,%edi 801069d4: 01 d9 add %ebx,%ecx 801069d6: 05 00 00 00 80 add $0x80000000,%eax 801069db: 57 push %edi 801069dc: 51 push %ecx 801069dd: 50 push %eax 801069de: ff 75 10 pushl 0x10(%ebp) 801069e1: e8 7a af ff ff call 80101960 <readi> 801069e6: 83 c4 10 add $0x10,%esp 801069e9: 39 f8 cmp %edi,%eax 801069eb: 74 ab je 80106998 <loaduvm+0x28> 801069ed: 8d 65 f4 lea -0xc(%ebp),%esp 801069f0: b8 ff ff ff ff mov $0xffffffff,%eax 801069f5: 5b pop %ebx 801069f6: 5e pop %esi 801069f7: 5f pop %edi 801069f8: 5d pop %ebp 801069f9: c3 ret 801069fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106a00: 8d 65 f4 lea -0xc(%ebp),%esp 80106a03: 31 c0 xor %eax,%eax 80106a05: 5b pop %ebx 80106a06: 5e pop %esi 80106a07: 5f pop %edi 80106a08: 5d pop %ebp 80106a09: c3 ret 80106a0a: 83 ec 0c sub $0xc,%esp 80106a0d: 68 e7 77 10 80 push $0x801077e7 80106a12: e8 79 99 ff ff call 80100390 <panic> 80106a17: 83 ec 0c sub $0xc,%esp 80106a1a: 68 88 78 10 80 push $0x80107888 80106a1f: e8 6c 99 ff ff call 80100390 <panic> 80106a24: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106a2a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80106a30 <allocuvm>: 80106a30: 55 push %ebp 80106a31: 89 e5 mov %esp,%ebp 80106a33: 57 push %edi 80106a34: 56 push %esi 80106a35: 53 push %ebx 80106a36: 83 ec 1c sub $0x1c,%esp 80106a39: 8b 7d 10 mov 0x10(%ebp),%edi 80106a3c: 85 ff test %edi,%edi 80106a3e: 0f 88 8e 00 00 00 js 80106ad2 <allocuvm+0xa2> 80106a44: 3b 7d 0c cmp 0xc(%ebp),%edi 80106a47: 0f 82 93 00 00 00 jb 80106ae0 <allocuvm+0xb0> 80106a4d: 8b 45 0c mov 0xc(%ebp),%eax 80106a50: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx 80106a56: 81 e3 00 f0 ff ff and $0xfffff000,%ebx 80106a5c: 39 5d 10 cmp %ebx,0x10(%ebp) 80106a5f: 0f 86 7e 00 00 00 jbe 80106ae3 <allocuvm+0xb3> 80106a65: 89 7d e4 mov %edi,-0x1c(%ebp) 80106a68: 8b 7d 08 mov 0x8(%ebp),%edi 80106a6b: eb 42 jmp 80106aaf <allocuvm+0x7f> 80106a6d: 8d 76 00 lea 0x0(%esi),%esi 80106a70: 83 ec 04 sub $0x4,%esp 80106a73: 68 00 10 00 00 push $0x1000 80106a78: 6a 00 push $0x0 80106a7a: 50 push %eax 80106a7b: e8 d0 d9 ff ff call 80104450 <memset> 80106a80: 58 pop %eax 80106a81: 8d 86 00 00 00 80 lea -0x80000000(%esi),%eax 80106a87: b9 00 10 00 00 mov $0x1000,%ecx 80106a8c: 5a pop %edx 80106a8d: 6a 06 push $0x6 80106a8f: 50 push %eax 80106a90: 89 da mov %ebx,%edx 80106a92: 89 f8 mov %edi,%eax 80106a94: e8 67 fb ff ff call 80106600 <mappages> 80106a99: 83 c4 10 add $0x10,%esp 80106a9c: 85 c0 test %eax,%eax 80106a9e: 78 50 js 80106af0 <allocuvm+0xc0> 80106aa0: 81 c3 00 10 00 00 add $0x1000,%ebx 80106aa6: 39 5d 10 cmp %ebx,0x10(%ebp) 80106aa9: 0f 86 81 00 00 00 jbe 80106b30 <allocuvm+0x100> 80106aaf: e8 0c ba ff ff call 801024c0 <kalloc> 80106ab4: 85 c0 test %eax,%eax 80106ab6: 89 c6 mov %eax,%esi 80106ab8: 75 b6 jne 80106a70 <allocuvm+0x40> 80106aba: 83 ec 0c sub $0xc,%esp 80106abd: 68 05 78 10 80 push $0x80107805 80106ac2: e8 99 9b ff ff call 80100660 <cprintf> 80106ac7: 83 c4 10 add $0x10,%esp 80106aca: 8b 45 0c mov 0xc(%ebp),%eax 80106acd: 39 45 10 cmp %eax,0x10(%ebp) 80106ad0: 77 6e ja 80106b40 <allocuvm+0x110> 80106ad2: 8d 65 f4 lea -0xc(%ebp),%esp 80106ad5: 31 ff xor %edi,%edi 80106ad7: 89 f8 mov %edi,%eax 80106ad9: 5b pop %ebx 80106ada: 5e pop %esi 80106adb: 5f pop %edi 80106adc: 5d pop %ebp 80106add: c3 ret 80106ade: 66 90 xchg %ax,%ax 80106ae0: 8b 7d 0c mov 0xc(%ebp),%edi 80106ae3: 8d 65 f4 lea -0xc(%ebp),%esp 80106ae6: 89 f8 mov %edi,%eax 80106ae8: 5b pop %ebx 80106ae9: 5e pop %esi 80106aea: 5f pop %edi 80106aeb: 5d pop %ebp 80106aec: c3 ret 80106aed: 8d 76 00 lea 0x0(%esi),%esi 80106af0: 83 ec 0c sub $0xc,%esp 80106af3: 68 1d 78 10 80 push $0x8010781d 80106af8: e8 63 9b ff ff call 80100660 <cprintf> 80106afd: 83 c4 10 add $0x10,%esp 80106b00: 8b 45 0c mov 0xc(%ebp),%eax 80106b03: 39 45 10 cmp %eax,0x10(%ebp) 80106b06: 76 0d jbe 80106b15 <allocuvm+0xe5> 80106b08: 89 c1 mov %eax,%ecx 80106b0a: 8b 55 10 mov 0x10(%ebp),%edx 80106b0d: 8b 45 08 mov 0x8(%ebp),%eax 80106b10: e8 7b fb ff ff call 80106690 <deallocuvm.part.0> 80106b15: 83 ec 0c sub $0xc,%esp 80106b18: 31 ff xor %edi,%edi 80106b1a: 56 push %esi 80106b1b: e8 f0 b7 ff ff call 80102310 <kfree> 80106b20: 83 c4 10 add $0x10,%esp 80106b23: 8d 65 f4 lea -0xc(%ebp),%esp 80106b26: 89 f8 mov %edi,%eax 80106b28: 5b pop %ebx 80106b29: 5e pop %esi 80106b2a: 5f pop %edi 80106b2b: 5d pop %ebp 80106b2c: c3 ret 80106b2d: 8d 76 00 lea 0x0(%esi),%esi 80106b30: 8b 7d e4 mov -0x1c(%ebp),%edi 80106b33: 8d 65 f4 lea -0xc(%ebp),%esp 80106b36: 5b pop %ebx 80106b37: 89 f8 mov %edi,%eax 80106b39: 5e pop %esi 80106b3a: 5f pop %edi 80106b3b: 5d pop %ebp 80106b3c: c3 ret 80106b3d: 8d 76 00 lea 0x0(%esi),%esi 80106b40: 89 c1 mov %eax,%ecx 80106b42: 8b 55 10 mov 0x10(%ebp),%edx 80106b45: 8b 45 08 mov 0x8(%ebp),%eax 80106b48: 31 ff xor %edi,%edi 80106b4a: e8 41 fb ff ff call 80106690 <deallocuvm.part.0> 80106b4f: eb 92 jmp 80106ae3 <allocuvm+0xb3> 80106b51: eb 0d jmp 80106b60 <deallocuvm> 80106b53: 90 nop 80106b54: 90 nop 80106b55: 90 nop 80106b56: 90 nop 80106b57: 90 nop 80106b58: 90 nop 80106b59: 90 nop 80106b5a: 90 nop 80106b5b: 90 nop 80106b5c: 90 nop 80106b5d: 90 nop 80106b5e: 90 nop 80106b5f: 90 nop 80106b60 <deallocuvm>: 80106b60: 55 push %ebp 80106b61: 89 e5 mov %esp,%ebp 80106b63: 8b 55 0c mov 0xc(%ebp),%edx 80106b66: 8b 4d 10 mov 0x10(%ebp),%ecx 80106b69: 8b 45 08 mov 0x8(%ebp),%eax 80106b6c: 39 d1 cmp %edx,%ecx 80106b6e: 73 10 jae 80106b80 <deallocuvm+0x20> 80106b70: 5d pop %ebp 80106b71: e9 1a fb ff ff jmp 80106690 <deallocuvm.part.0> 80106b76: 8d 76 00 lea 0x0(%esi),%esi 80106b79: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80106b80: 89 d0 mov %edx,%eax 80106b82: 5d pop %ebp 80106b83: c3 ret 80106b84: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106b8a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi 80106b90 <freevm>: 80106b90: 55 push %ebp 80106b91: 89 e5 mov %esp,%ebp 80106b93: 57 push %edi 80106b94: 56 push %esi 80106b95: 53 push %ebx 80106b96: 83 ec 0c sub $0xc,%esp 80106b99: 8b 75 08 mov 0x8(%ebp),%esi 80106b9c: 85 f6 test %esi,%esi 80106b9e: 74 59 je 80106bf9 <freevm+0x69> 80106ba0: 31 c9 xor %ecx,%ecx 80106ba2: ba 00 00 00 80 mov $0x80000000,%edx 80106ba7: 89 f0 mov %esi,%eax 80106ba9: e8 e2 fa ff ff call 80106690 <deallocuvm.part.0> 80106bae: 89 f3 mov %esi,%ebx 80106bb0: 8d be 00 10 00 00 lea 0x1000(%esi),%edi 80106bb6: eb 0f jmp 80106bc7 <freevm+0x37> 80106bb8: 90 nop 80106bb9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106bc0: 83 c3 04 add $0x4,%ebx 80106bc3: 39 fb cmp %edi,%ebx 80106bc5: 74 23 je 80106bea <freevm+0x5a> 80106bc7: 8b 03 mov (%ebx),%eax 80106bc9: a8 01 test $0x1,%al 80106bcb: 74 f3 je 80106bc0 <freevm+0x30> 80106bcd: 25 00 f0 ff ff and $0xfffff000,%eax 80106bd2: 83 ec 0c sub $0xc,%esp 80106bd5: 83 c3 04 add $0x4,%ebx 80106bd8: 05 00 00 00 80 add $0x80000000,%eax 80106bdd: 50 push %eax 80106bde: e8 2d b7 ff ff call 80102310 <kfree> 80106be3: 83 c4 10 add $0x10,%esp 80106be6: 39 fb cmp %edi,%ebx 80106be8: 75 dd jne 80106bc7 <freevm+0x37> 80106bea: 89 75 08 mov %esi,0x8(%ebp) 80106bed: 8d 65 f4 lea -0xc(%ebp),%esp 80106bf0: 5b pop %ebx 80106bf1: 5e pop %esi 80106bf2: 5f pop %edi 80106bf3: 5d pop %ebp 80106bf4: e9 17 b7 ff ff jmp 80102310 <kfree> 80106bf9: 83 ec 0c sub $0xc,%esp 80106bfc: 68 39 78 10 80 push $0x80107839 80106c01: e8 8a 97 ff ff call 80100390 <panic> 80106c06: 8d 76 00 lea 0x0(%esi),%esi 80106c09: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80106c10 <setupkvm>: 80106c10: 55 push %ebp 80106c11: 89 e5 mov %esp,%ebp 80106c13: 56 push %esi 80106c14: 53 push %ebx 80106c15: e8 a6 b8 ff ff call 801024c0 <kalloc> 80106c1a: 85 c0 test %eax,%eax 80106c1c: 89 c6 mov %eax,%esi 80106c1e: 74 42 je 80106c62 <setupkvm+0x52> 80106c20: 83 ec 04 sub $0x4,%esp 80106c23: bb 20 a4 10 80 mov $0x8010a420,%ebx 80106c28: 68 00 10 00 00 push $0x1000 80106c2d: 6a 00 push $0x0 80106c2f: 50 push %eax 80106c30: e8 1b d8 ff ff call 80104450 <memset> 80106c35: 83 c4 10 add $0x10,%esp 80106c38: 8b 43 04 mov 0x4(%ebx),%eax 80106c3b: 8b 4b 08 mov 0x8(%ebx),%ecx 80106c3e: 83 ec 08 sub $0x8,%esp 80106c41: 8b 13 mov (%ebx),%edx 80106c43: ff 73 0c pushl 0xc(%ebx) 80106c46: 50 push %eax 80106c47: 29 c1 sub %eax,%ecx 80106c49: 89 f0 mov %esi,%eax 80106c4b: e8 b0 f9 ff ff call 80106600 <mappages> 80106c50: 83 c4 10 add $0x10,%esp 80106c53: 85 c0 test %eax,%eax 80106c55: 78 19 js 80106c70 <setupkvm+0x60> 80106c57: 83 c3 10 add $0x10,%ebx 80106c5a: 81 fb 60 a4 10 80 cmp $0x8010a460,%ebx 80106c60: 75 d6 jne 80106c38 <setupkvm+0x28> 80106c62: 8d 65 f8 lea -0x8(%ebp),%esp 80106c65: 89 f0 mov %esi,%eax 80106c67: 5b pop %ebx 80106c68: 5e pop %esi 80106c69: 5d pop %ebp 80106c6a: c3 ret 80106c6b: 90 nop 80106c6c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80106c70: 83 ec 0c sub $0xc,%esp 80106c73: 56 push %esi 80106c74: 31 f6 xor %esi,%esi 80106c76: e8 15 ff ff ff call 80106b90 <freevm> 80106c7b: 83 c4 10 add $0x10,%esp 80106c7e: 8d 65 f8 lea -0x8(%ebp),%esp 80106c81: 89 f0 mov %esi,%eax 80106c83: 5b pop %ebx 80106c84: 5e pop %esi 80106c85: 5d pop %ebp 80106c86: c3 ret 80106c87: 89 f6 mov %esi,%esi 80106c89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi 80106c90 <kvmalloc>: 80106c90: 55 push %ebp 80106c91: 89 e5 mov %esp,%ebp 80106c93: 83 ec 08 sub $0x8,%esp 80106c96: e8 75 ff ff ff call 80106c10 <setupkvm> 80106c9b: a3 a4 54 11 80 mov %eax,0x801154a4 80106ca0: 05 00 00 00 80 add $0x80000000,%eax 80106ca5: 0f 22 d8 mov %eax,%cr3 80106ca8: c9 leave 80106ca9: c3 ret 80106caa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi 80106cb0 <clearpteu>: 80106cb0: 55 push %ebp 80106cb1: 31 c9 xor %ecx,%ecx 80106cb3: 89 e5 mov %esp,%ebp 80106cb5: 83 ec 08 sub $0x8,%esp 80106cb8: 8b 55 0c mov 0xc(%ebp),%edx 80106cbb: 8b 45 08 mov 0x8(%ebp),%eax 80106cbe: e8 bd f8 ff ff call 80106580 <walkpgdir> 80106cc3: 85 c0 test %eax,%eax 80106cc5: 74 05 je 80106ccc <clearpteu+0x1c> 80106cc7: 83 20 fb andl $0xfffffffb,(%eax) 80106cca: c9 leave 80106ccb: c3 ret 80106ccc: 83 ec 0c sub $0xc,%esp 80106ccf: 68 4a 78 10 80 push $0x8010784a 80106cd4: e8 b7 96 ff ff call 80100390 <panic> 80106cd9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106ce0 <copyuvm>: 80106ce0: 55 push %ebp 80106ce1: 89 e5 mov %esp,%ebp 80106ce3: 57 push %edi 80106ce4: 56 push %esi 80106ce5: 53 push %ebx 80106ce6: 83 ec 1c sub $0x1c,%esp 80106ce9: e8 22 ff ff ff call 80106c10 <setupkvm> 80106cee: 85 c0 test %eax,%eax 80106cf0: 89 45 e0 mov %eax,-0x20(%ebp) 80106cf3: 0f 84 9f 00 00 00 je 80106d98 <copyuvm+0xb8> 80106cf9: 8b 4d 0c mov 0xc(%ebp),%ecx 80106cfc: 85 c9 test %ecx,%ecx 80106cfe: 0f 84 94 00 00 00 je 80106d98 <copyuvm+0xb8> 80106d04: 31 ff xor %edi,%edi 80106d06: eb 4a jmp 80106d52 <copyuvm+0x72> 80106d08: 90 nop 80106d09: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106d10: 83 ec 04 sub $0x4,%esp 80106d13: 81 c3 00 00 00 80 add $0x80000000,%ebx 80106d19: 68 00 10 00 00 push $0x1000 80106d1e: 53 push %ebx 80106d1f: 50 push %eax 80106d20: e8 db d7 ff ff call 80104500 <memmove> 80106d25: 58 pop %eax 80106d26: 8d 86 00 00 00 80 lea -0x80000000(%esi),%eax 80106d2c: b9 00 10 00 00 mov $0x1000,%ecx 80106d31: 5a pop %edx 80106d32: ff 75 e4 pushl -0x1c(%ebp) 80106d35: 50 push %eax 80106d36: 89 fa mov %edi,%edx 80106d38: 8b 45 e0 mov -0x20(%ebp),%eax 80106d3b: e8 c0 f8 ff ff call 80106600 <mappages> 80106d40: 83 c4 10 add $0x10,%esp 80106d43: 85 c0 test %eax,%eax 80106d45: 78 61 js 80106da8 <copyuvm+0xc8> 80106d47: 81 c7 00 10 00 00 add $0x1000,%edi 80106d4d: 39 7d 0c cmp %edi,0xc(%ebp) 80106d50: 76 46 jbe 80106d98 <copyuvm+0xb8> 80106d52: 8b 45 08 mov 0x8(%ebp),%eax 80106d55: 31 c9 xor %ecx,%ecx 80106d57: 89 fa mov %edi,%edx 80106d59: e8 22 f8 ff ff call 80106580 <walkpgdir> 80106d5e: 85 c0 test %eax,%eax 80106d60: 74 61 je 80106dc3 <copyuvm+0xe3> 80106d62: 8b 00 mov (%eax),%eax 80106d64: a8 01 test $0x1,%al 80106d66: 74 4e je 80106db6 <copyuvm+0xd6> 80106d68: 89 c3 mov %eax,%ebx 80106d6a: 25 ff 0f 00 00 and $0xfff,%eax 80106d6f: 81 e3 00 f0 ff ff and $0xfffff000,%ebx 80106d75: 89 45 e4 mov %eax,-0x1c(%ebp) 80106d78: e8 43 b7 ff ff call 801024c0 <kalloc> 80106d7d: 85 c0 test %eax,%eax 80106d7f: 89 c6 mov %eax,%esi 80106d81: 75 8d jne 80106d10 <copyuvm+0x30> 80106d83: 83 ec 0c sub $0xc,%esp 80106d86: ff 75 e0 pushl -0x20(%ebp) 80106d89: e8 02 fe ff ff call 80106b90 <freevm> 80106d8e: 83 c4 10 add $0x10,%esp 80106d91: c7 45 e0 00 00 00 00 movl $0x0,-0x20(%ebp) 80106d98: 8b 45 e0 mov -0x20(%ebp),%eax 80106d9b: 8d 65 f4 lea -0xc(%ebp),%esp 80106d9e: 5b pop %ebx 80106d9f: 5e pop %esi 80106da0: 5f pop %edi 80106da1: 5d pop %ebp 80106da2: c3 ret 80106da3: 90 nop 80106da4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 80106da8: 83 ec 0c sub $0xc,%esp 80106dab: 56 push %esi 80106dac: e8 5f b5 ff ff call 80102310 <kfree> 80106db1: 83 c4 10 add $0x10,%esp 80106db4: eb cd jmp 80106d83 <copyuvm+0xa3> 80106db6: 83 ec 0c sub $0xc,%esp 80106db9: 68 6e 78 10 80 push $0x8010786e 80106dbe: e8 cd 95 ff ff call 80100390 <panic> 80106dc3: 83 ec 0c sub $0xc,%esp 80106dc6: 68 54 78 10 80 push $0x80107854 80106dcb: e8 c0 95 ff ff call 80100390 <panic> 80106dd0 <uva2ka>: 80106dd0: 55 push %ebp 80106dd1: 31 c9 xor %ecx,%ecx 80106dd3: 89 e5 mov %esp,%ebp 80106dd5: 83 ec 08 sub $0x8,%esp 80106dd8: 8b 55 0c mov 0xc(%ebp),%edx 80106ddb: 8b 45 08 mov 0x8(%ebp),%eax 80106dde: e8 9d f7 ff ff call 80106580 <walkpgdir> 80106de3: 8b 00 mov (%eax),%eax 80106de5: c9 leave 80106de6: 89 c2 mov %eax,%edx 80106de8: 25 00 f0 ff ff and $0xfffff000,%eax 80106ded: 83 e2 05 and $0x5,%edx 80106df0: 05 00 00 00 80 add $0x80000000,%eax 80106df5: 83 fa 05 cmp $0x5,%edx 80106df8: ba 00 00 00 00 mov $0x0,%edx 80106dfd: 0f 45 c2 cmovne %edx,%eax 80106e00: c3 ret 80106e01: eb 0d jmp 80106e10 <copyout> 80106e03: 90 nop 80106e04: 90 nop 80106e05: 90 nop 80106e06: 90 nop 80106e07: 90 nop 80106e08: 90 nop 80106e09: 90 nop 80106e0a: 90 nop 80106e0b: 90 nop 80106e0c: 90 nop 80106e0d: 90 nop 80106e0e: 90 nop 80106e0f: 90 nop 80106e10 <copyout>: 80106e10: 55 push %ebp 80106e11: 89 e5 mov %esp,%ebp 80106e13: 57 push %edi 80106e14: 56 push %esi 80106e15: 53 push %ebx 80106e16: 83 ec 1c sub $0x1c,%esp 80106e19: 8b 5d 14 mov 0x14(%ebp),%ebx 80106e1c: 8b 55 0c mov 0xc(%ebp),%edx 80106e1f: 8b 7d 10 mov 0x10(%ebp),%edi 80106e22: 85 db test %ebx,%ebx 80106e24: 75 40 jne 80106e66 <copyout+0x56> 80106e26: eb 70 jmp 80106e98 <copyout+0x88> 80106e28: 90 nop 80106e29: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106e30: 8b 55 e4 mov -0x1c(%ebp),%edx 80106e33: 89 f1 mov %esi,%ecx 80106e35: 29 d1 sub %edx,%ecx 80106e37: 81 c1 00 10 00 00 add $0x1000,%ecx 80106e3d: 39 d9 cmp %ebx,%ecx 80106e3f: 0f 47 cb cmova %ebx,%ecx 80106e42: 29 f2 sub %esi,%edx 80106e44: 83 ec 04 sub $0x4,%esp 80106e47: 01 d0 add %edx,%eax 80106e49: 51 push %ecx 80106e4a: 57 push %edi 80106e4b: 50 push %eax 80106e4c: 89 4d e4 mov %ecx,-0x1c(%ebp) 80106e4f: e8 ac d6 ff ff call 80104500 <memmove> 80106e54: 8b 4d e4 mov -0x1c(%ebp),%ecx 80106e57: 83 c4 10 add $0x10,%esp 80106e5a: 8d 96 00 10 00 00 lea 0x1000(%esi),%edx 80106e60: 01 cf add %ecx,%edi 80106e62: 29 cb sub %ecx,%ebx 80106e64: 74 32 je 80106e98 <copyout+0x88> 80106e66: 89 d6 mov %edx,%esi 80106e68: 83 ec 08 sub $0x8,%esp 80106e6b: 89 55 e4 mov %edx,-0x1c(%ebp) 80106e6e: 81 e6 00 f0 ff ff and $0xfffff000,%esi 80106e74: 56 push %esi 80106e75: ff 75 08 pushl 0x8(%ebp) 80106e78: e8 53 ff ff ff call 80106dd0 <uva2ka> 80106e7d: 83 c4 10 add $0x10,%esp 80106e80: 85 c0 test %eax,%eax 80106e82: 75 ac jne 80106e30 <copyout+0x20> 80106e84: 8d 65 f4 lea -0xc(%ebp),%esp 80106e87: b8 ff ff ff ff mov $0xffffffff,%eax 80106e8c: 5b pop %ebx 80106e8d: 5e pop %esi 80106e8e: 5f pop %edi 80106e8f: 5d pop %ebp 80106e90: c3 ret 80106e91: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 80106e98: 8d 65 f4 lea -0xc(%ebp),%esp 80106e9b: 31 c0 xor %eax,%eax 80106e9d: 5b pop %ebx 80106e9e: 5e pop %esi 80106e9f: 5f pop %edi 80106ea0: 5d pop %ebp 80106ea1: c3 ret
42.210269
74
0.514895
af63637edde81ed70c38b0d6caf7d63f74401628
763
asm
Assembly
oeis/244/A244643.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/244/A244643.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/244/A244643.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A244643: Number of cells with state 1 at n-th stage in some 2D reversible second order cellular automata (see comments for precise definition). ; Submitted by Christian Krause ; 0,1,4,5,16,9,20,21,64,25,36,29,80,41,84,85,256,89,100,61,144,65,116,109,320,121,164,125,336,169,340,341,1024,345,356,189,400,161,244,205,576,209,260,181,464,225,436,429,1280,441,484,285,656,289,500,461,1344,505,676,509,1360,681,1364,1365,4096,1369,1380,701,1424,545,756,589,1600,561,644,405,976,449,820,781,2304,785,836,469,1040,441,724,645,1856,689,900,661,1744,865,1716,1709,5120,1721,1764,925 mul $0,4 mov $2,2 lpb $0 sub $0,1 div $0,2 sub $2,$3 mul $2,4 mov $3,6 add $3,$0 div $3,2 mod $3,2 mov $4,$2 add $2,$1 mul $3,$4 add $1,$3 lpe mov $0,$1 div $0,8
33.173913
397
0.688073
106255f3875d569be36592ac625a743aaf413ecd
2,101
asm
Assembly
programs/oeis/175/A175661.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/175/A175661.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/175/A175661.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A175661: Eight bishops and one elephant on a 3 X 3 chessboard: a(n) = 2^(n+2)-3*F(n+1), with F(n) = A000045(n). ; 1,5,10,23,49,104,217,449,922,1883,3829,7760,15685,31637,63706,128111,257353,516536,1036033,2076857,4161466,8335475,16691245,33415328,66883789,133853549,267846202,535917479,1072199137,2144987528,4290928489,8583399665,17169295450,34342629707,68691794341,137394162416,274805433493,549638549381,1099321889818,2198716253087,4397549770681,8795289279320,17590885561105,35182267862633,70365339468154,140731979419619,281466063065437,562935530840384,1125876570616477,2251762054878173,4503538532337274,9007100400900695,18014238560608465,36028538216250152,72057175286340601,144114510521554721,288229279845823258,576458978443233851,1152918634440768853,2305838365187426192,4611678504235042021,9223359878636162165,18446724401298592090,36893456316789530063,73786924791797673769,147573869256006307064,295147770342642187297,590295592188324907289,1180591267710319920442,2361182670257350479443,4722365558685081703309,9444731470377254789600,18889463511931981706605,37778927948048526923597,75557857391459089484986,151115717202464778118151,302231438319838191022273,604462882974131615978696,1208925776197627100677513,2417851568979073304009297,4835703164791329579392986,9671406372999661232814635,19342812816249507511032325,38685625746166202141496368,77371251676249776447827509,154742503650084112179921509,309485007781670155808944282,618970016342426802351256319,1237940033945442026884981657,2475880069930558966685800088,4951760143161381268469905969,9903520291662700784953954505,19807040591965603153020357370,39614081197911346137167305667,79228162418443033688573650621,158456324873486548622512931456,316912649806193919904630532413,633825299708209143714231364541,1267650599571460413993037698298,2535301199393784258455620665527 mov $4,2 mov $5,$0 lpb $4 mov $0,$5 sub $4,1 add $0,$4 mov $2,$4 mov $3,$0 max $3,0 seq $3,175660 ; Eight bishops and one elephant on a 3 X 3 chessboard. a(n) = 2^(n+2) - 3*F(n+2). sub $3,1 mul $2,$3 add $1,$2 mov $6,$3 lpe min $5,1 mul $5,$6 sub $1,$5 mov $0,$1
91.347826
1,700
0.865778
630c8253b589eef5ff0d1402996c232b15d605cf
71,605
asm
Assembly
Library/SpecUI/CommonUI/CMain/cmainUIDocumentControl.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/SpecUI/CommonUI/CMain/cmainUIDocumentControl.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/SpecUI/CommonUI/CMain/cmainUIDocumentControl.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: CommonUI/CMain FILE: cmainUIDocumentControl.asm ROUTINES: Name Description ---- ----------- GLB OLDocumentControl Open look document control class REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 1/90 Initial version DESCRIPTION: $Id: cmainUIDocumentControl.asm,v 1.1 97/04/07 10:51:57 newdeal Exp $ -------------------------------------------------------------------------------@ ; un-comment this one to make a non-saving version for demo ;PRODUCT_WIN_DEMO = TRUE OLDC_DEFAULT_FEATURES = GDC_SUGGESTED_ADVANCED_FEATURES OLDC_DEFAULT_TOOLBOX_FEATURES = mask GDCToolboxFeatures OLDCFileSelectorFlags record OLDCFSF_SAVE:1 ;save, save as template or copy to OLDCFSF_TEMPLATE:1 ;open template or save as template :14 OLDCFileSelectorFlags end ;--------------------------------------------------- CommonUIClassStructures segment resource OLDocumentControlClass mask CLASSF_NEVER_SAVED or \ mask CLASSF_DISCARD_ON_SAVE CommonUIClassStructures ends ;--------------------------------------------------- Build segment resource COMMENT @---------------------------------------------------------------------- FUNCTION: SpecInitDocumentControl DESCRIPTION: Initialize the document control code (by looking up various system settings in the geos.ini file) CALLED BY: OLFieldAttach PASS: ds:si - field specific category string RETURN: none DESTROYED: ax, bx, cx, dx, di, bp REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 8/10/92 Initial version ------------------------------------------------------------------------------@ SpecInitDocumentControl proc far uses si, ds .enter mov bx, segment docControlOptions mov es, bx mov cx, cs mov dx, offset docControlOptionsString call InitFileReadInteger jc afterOptions mov es:[docControlOptions], ax afterOptions: mov dx, offset docControlFSLevelString call InitFileReadInteger jc afterFSLevel mov es:[docControlFSLevel], ax afterFSLevel: ; get backupDir mov dx, offset backupDirString clr bp ;allocate block call InitFileReadData ;bx = block, cx = length jc afterBackupDir jcxz pathError ;error if zero length ; Lock down the saved data and skip past the path (we don't want to ; copy the path until we know that DiskRestore is successful) call MemLock mov ds, ax clr si skipPathLoop: LocalGetChar ax, dssi LocalIsNull ax ; hit null-terminator? loopne skipPathLoop ; nope... EC < ERROR_NE OL_DOCUMENT_PATH_STORED_INCORRECTLY > ; ds:si = start of data for saved disk handle; restore the beast. clr cx call DiskRestore jc pathError mov es:[backupDirDisk], ax clr si mov di, offset backupDirPath pathCopyLoop: LocalGetChar ax, dssi LocalPutChar esdi, ax LocalIsNull ax ; hit null-terminator? jnz pathCopyLoop ; nope... pathError: call MemFree afterBackupDir: .leave ret SpecInitDocumentControl endp docControlOptionsString char "docControlOptions", 0 docControlFSLevelString char "docControlFSLevel", 0 backupDirString char "backupDir", 0 Build ends ;----------------- Resident segment resource COMMENT @---------------------------------------------------------------------- FUNCTION: SpecGetDocControlOptions DESCRIPTION: Get DocControlOptions CALLED BY: SpecInit PASS: none RETURN: al - DocControlOptions DESTROYED: none REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: Should only be called after SpecInitDocumentControl REVISION HISTORY: Name Date Description ---- ---- ----------- brianc 9/2/92 Initial version ------------------------------------------------------------------------------@ global SpecGetDocControlOptions:far SpecGetDocControlOptions proc far uses ds .enter mov ax, segment docControlOptions mov ds, ax mov ax, ds:[docControlOptions] .leave ret SpecGetDocControlOptions endp Resident ends ;--------------------------------------------------- DocInit segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OLDocumentControlAppStartup %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Perform preliminary startup work, like grabbing the model exclusive. CALLED BY: MSG_META_APP_STARTUP PASS: *ds:si = GenDocumentControl object ^hdx = AppLaunchBlock RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: Just grab the model and tell the GenDocumentGroup about it. We quite pointedly do *not* open the document mentioned in the AppLaunchBlock, as we need to know the IACP connection requesting the open, if any, and that's something only the GenApplication object can tell us, once it gets MSG_META_IACP_NEW_CONNECTION. REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 10/19/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OLDocumentControlAppStartup method dynamic OLDocumentControlClass, MSG_META_APP_STARTUP .enter ; Grab "Model" exclusive, to make sure that any messages sent ; via "TO_MODEL" come our way. ; call MetaGrabModelExclLow ; Forward to GenDocumentGroup ; call SendToAppDCRegs .leave ret OLDocumentControlAppStartup endm COMMENT @---------------------------------------------------------------------- METHOD: OLDocumentControlAttach -- MSG_META_ATTACH for OLDocumentControlClass DESCRIPTION: Attach UI document control by opening any documents that are children PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - MSG_META_ATTACH cx - AppAttachFlags dx - Handle of AppLaunchBlock, or 0 if none. This block contains the name of any document file passed into the application on invocation. bp - Handle of extra state block, or 0 if none. This is the same block as returned from MSG_GET_STATE_TO_SAVE, in some previous MSG_META_DETACH RETURN: none DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: if (path is null) { set path to document directory } send MSG_META_ATTACH to all children KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 1/90 Initial version ------------------------------------------------------------------------------@ UIDCAttachDefFileParams struct UIDCADFP_path char PATH_BUFFER_SIZE dup (?) UIDCADFP_category char INI_CATEGORY_BUFFER_SIZE dup (?) UIDCAttachDefFileParams ends OLDocumentControlAttach method dynamic OLDocumentControlClass, MSG_META_ATTACH ; Mark no document as existing. If a document does exist we will ; find out soon enough mov di, ds:[si] add di, ds:[di].Gen_offset andnf ds:[di].GDCI_attrs, not mask GDCA_DOCUMENT_EXISTS ; mark ourselves dirty as we're pretty much guaranteed to change ; during the life of the application. call ObjMarkDirty ; ; check if we have an AppLaunchBlock, if so, then use it ; tst dx ; any launch block? jz noLaunchBlock mov bx, dx call MemLock ; lock AppLaunch block mov es, ax cmp es:[ALB_dataFile][0], 0 ; any datafile? je unlockNoBlock ; no ; ; use info in AppLaunchBlock ; push bx ; save AppLaunchBlock mov cx, es ; cx:dx = path mov dx, offset ALB_path mov bp, es:[ALB_diskHandle] ; bp = disk handle mov ax, MSG_GEN_PATH_SET call ObjCallInstanceNoLock mov ax, MSG_META_ATTACH call SendToAppDCRegs ; prepare App DC for the ; onslaught clr bx ; start w/default DocOpenParams ; ; If we're printing, pass that fact on to document ; test es:[ALB_launchFlags], mask ALF_OPEN_FOR_IACP_ONLY jz afterPrintFlag ornf bx, mask DOF_OPEN_FOR_IACP_ONLY afterPrintFlag: ; ; If the document is under SP_TEMPLATE, then open as a template ; push ds clr ax mov ds, ax mov cx, SP_TEMPLATE ; path 1 => CX mov dx, es:[ALB_diskHandle] ; path 2 => DX, ES:DI mov di, offset ALB_path call FileComparePaths pop ds cmp al, PCT_SUBDIR ; = PCT_EQUAL or PCT_SUBDIR ? ja afterTemplate ornf bx, mask DOF_FORCE_TEMPLATE_BEHAVIOR afterTemplate: mov ax, MSG_GEN_DOCUMENT_GROUP_OPEN_DOC ; ax = method clr cx ; use object's path (which we ; just set...) mov bp, offset ALB_dataFile ; es:bp = filename call OpenCommon pop bx call MemUnlock jmp done unlockNoBlock: call MemUnlock noLaunchBlock: mov ax, MSG_META_ATTACH call SendToAppDCRegs ; prepare App DC for the ; onslaught EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset ; if we are restoring from state then we don't do anything mov bx, ds:[di].GDCI_attrs andnf ds:[di].GDCI_attrs, not mask GDCA_CURRENT_TASK mov ax, MSG_OLDC_REMOVE_OLD_AND_TEST_FOR_DISPLAY_MAIN_DIALOG ; If we're being resurrected following a quit, then there will be no ; open docs. Just act like we do when starting up for the first time. ; -- Doug 5/15/93 ; test cx, mask AAF_RESTORING_FROM_QUIT jnz startFresh test cx, mask AAF_RESTORING_FROM_STATE jnz initiateCommon startFresh: ; if a default file exists then open it mov ax, MSG_GEN_DOCUMENT_CONTROL_OPEN_DEFAULT_DOC tst ds:[di].GDCI_defaultFile jnz initiateCommon if _DUI ; ; if no list screen, don't open it ; push bx mov ax, HINT_DOCUMENT_CONTROL_NO_FILE_LIST call ObjVarFindData pop bx jc done endif ; if we're not bypassing the big dialog then put it up mov ax, seg dgroup mov es, ax mov ax, MSG_GEN_DOCUMENT_CONTROL_DISPLAY_DIALOG test es:[docControlOptions], mask DCO_BYPASS_BIG_DIALOG jz initiateCommon ; if any dialog boxes opened previously then re-open bypass:: and bx, mask GDCA_CURRENT_TASK jz done mov ax, MSG_GEN_DOCUMENT_CONTROL_INITIATE_NEW_DOC cmp bx, GDCT_NEW shl offset GDCA_CURRENT_TASK jz initiateCommon mov ax, MSG_GEN_DOCUMENT_CONTROL_INITIATE_OPEN_DOC cmp bx, GDCT_OPEN shl offset GDCA_CURRENT_TASK jz initiateCommon mov ax, MSG_GEN_DOCUMENT_CONTROL_INITIATE_USE_TEMPLATE_DOC cmp bx, GDCT_USE_TEMPLATE shl offset GDCA_CURRENT_TASK jz initiateCommon mov ax, MSG_GEN_DOCUMENT_CONTROL_INITIATE_SAVE_AS_DOC cmp bx, GDCT_SAVE_AS shl offset GDCA_CURRENT_TASK jz initiateCommon mov ax, MSG_GEN_DOCUMENT_CONTROL_DISPLAY_DIALOG EC < cmp bx, GDCT_DIALOG shl offset GDCA_CURRENT_TASK > EC < ERROR_NZ OL_ERROR > initiateCommon: mov di, ds:[si] add di, ds:[di].Gen_offset mov bx, ds:[di].GDCI_documentGroup.handle call ObjTestIfObjBlockRunByCurThread jne twoThreaded ; ; Not just yet -- whether checking for no file open, putting up ; a dialog, or opening a new/default document, do this after ; the MSG_META_ATTACH in pogress finishes in one-threaded apps, ; so that the app can finish coming up on screen first before ; we potentially do a UserDoDialog, either to get the document ; password, or to report an error opening the document. -- Doug 4/30/93 ; mov bx, ds:[LMBH_handle] mov di, mask MF_FORCE_QUEUE call ObjMessage jmp short done twoThreaded: call ObjCallInstanceNoLock done: Destroy ax, cx, dx, bp ret OLDocumentControlAttach endm DocumentInit_DefaultKey char "defaultDocument", 0 COMMENT @---------------------------------------------------------------------- FUNCTION: OpenCommon DESCRIPTION: Open a file for OLDocumentControlAttach (either a default file or a file passed in an AppLaunchBlock) CALLED BY: OLDocumentControlAttach PASS: *ds:si = OLDocumentControl instance es:bp = filename cx = disk handle where file is located (0 => use object's current bx = DocumentOpenFlags to use (0 for default) ax = method to sent to OLDocumentGroup RETURN: none DESTROYED: ax, bx, cx, dx, di, bp REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 11/90 Initial version Doug 1/5/93 Added ability to pass in DocumentOpenFlags, filename changed to be passed in es:bp ------------------------------------------------------------------------------@ OpenCommon proc near class OLDocumentControlClass EC < call AssertIsUIDocControl > EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset mov di, cx ; di <- disk handle EC < LocalGetChar cx, esbp, NO_ADVANCE ; cx <- 1st char of name > mov dx, bp ; es:dx = filename sub sp, size DocumentCommonParams mov bp, sp push ax, si, ds ; save method, and obj mov ss:[bp].DCP_docAttrs, 0 mov ss:[bp].DCP_flags, bx mov ss:[bp].DCP_connection, 0 ; user-initiated tst di ; any disk handle? jz useObjectPath mov ss:[bp].DCP_diskHandle, di EC < test di, DISK_IS_STD_PATH_MASK > EC < jnz passedFileOK > EC < LocalCmpChar cx, C_BACKSLASH > EC < ERROR_NE OLDC_PATH_MUST_BE_ABSOLUTE > EC <passedFileOK: > ; ; Copy the passed path into DCP_path, tracking the location of the ; last backslash in the path, as following that is the actual file ; name that we need to copy into DCP_name. ; ; For the loop, bx holds the location+1 of the final backslash. If ; no backslash in the path, it remains as bp+DCP_path ; mov bx, es segmov es, ss lea di, ss:[bp].DCP_path ; es:di <- dest mov si, dx ; ds:si <- source full path mov ds, bx saveBSPosition: mov bx, di splitPathLoop: LocalGetChar ax, dssi LocalPutChar esdi, ax LocalCmpChar ax, C_BACKSLASH je saveBSPosition LocalIsNull ax ; end of string stored? jnz splitPathLoop ; nope -- keep looping ; ; Now copy the filename into the DCP_name buffer. We always start ; the copy from ss:bx, regardless of whether there was a backslash, ; since it's either right after the backslash, or it's the start of ; the path, which is actually just a filename. ; mov si, bx lea di, ss:[bp].DCP_path cmp bx, di ; any backslash in the path (bx moved from the ; start of the path)? jne copyNameFromSI ; yes -- copy from SI LocalNextChar dsbx ; set so we'll make DCP_path empty after ; copying the name (ds:bx-1 == DCP_path) copyNameFromSI: lea di, ss:[bp].DCP_name ; es:di <- bp.DCP_name mov cx, length DCP_name segmov ds, es ; ds:si <- source LocalCopyNString ; rep movsb/movsw SBCS < mov {char}ds:[bx-1], 0 ; null out final backslash, or entire> DBCS < mov {wchar}ds:[bx-2], 0 ; null out final backslash, or entire> ; path, as appropriate jmp sendMessage useObjectPath: EC < LocalCmpChar cx, C_BACKSLASH > EC < ERROR_E OLDC_PATH_MAY_NOT_BE_ABSOLUTE > ; copy default name lea di, ss:[bp].DCP_name mov bx, es segmov es, ss ; es:di <- DCP_name push si mov si, dx ; ds:si <- source full path mov ds, bx mov cx, length DCP_name LocalCopyNString ; rep movsb/movsw pop si pop ds ; recover object segment both for ; call and possible fixup mov ax, ATTR_GEN_PATH_DATA mov dx, TEMP_GEN_PATH_SAVED_DISK_HANDLE lea di, ss:[bp].DCP_path segmov es, ss ; es:di <- path buffer mov cx, size DCP_path call GenPathGetObjectPath push ds ; save again for common pop mov ss:[bp].DCP_diskHandle, cx sendMessage: pop ax, si, ds ;recover method and object ;popping ds safe here mov dx, size DocumentCommonParams ; ; we always want to force queue this guy to match the behavior ; of single thread apps on MSG_OLDG_ATTACH - brianc 6/8/93 ; mov di, mask MF_STACK or mask MF_FIXUP_DS or mask MF_FORCE_QUEUE call SendToAppDCCommonFar add sp, size DocumentCommonParams ret OpenCommon endp COMMENT @---------------------------------------------------------------------- MESSAGE: OLDocumentControlOpenDefaultDoc -- MSG_GEN_DOCUMENT_CONTROL_OPEN_DEFAULT_DOC for OLDocumentControlClass DESCRIPTION: Open the default document PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - The message RETURN: DESTROYED: bx, si, di, ds, es (message handler) REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 10/ 7/92 Initial version ------------------------------------------------------------------------------@ OLDocumentControlOpenDefaultDoc method dynamic OLDocumentControlClass, MSG_GEN_DOCUMENT_CONTROL_OPEN_DEFAULT_DOC ; try and restore the path for the default document from the .ini file sub sp, size PathName mov bp, sp mov cx, cs mov dx, offset DocumentInit_DefaultKey call OLDocumentFetchPathFromIniFile mov bx, ss jnc defaultCommon ; failed: use the default filename bound to our object (relative ; to SP_DOCUMENT) EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset mov bp, ds:[di].GDCI_defaultFile tst bp jz doDialogInstead ; XXX: hack for IACP clr bx ; signal in obj block mov cx, SP_DOCUMENT ; default always relative to document defaultCommon: call OLDCRemoveSummons tst bx ; do we need to deref a chunk in this block? jnz havePath ; => no, path is on stack at bx:bp mov bx, ds mov bp, ds:[bp] havePath: mov es, bx ; es:bp <- path of file mov ax, MSG_GEN_DOCUMENT_GROUP_OPEN_DEFAULT_DOC clr bx ; default DocumentOpenFlags call OpenCommon done: add sp, size PathName ret doDialogInstead: mov ax, MSG_OLDC_REMOVE_OLD_AND_TEST_FOR_DISPLAY_MAIN_DIALOG call ObjCallInstanceNoLock jmp done OLDocumentControlOpenDefaultDoc endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OLDocumentFetchPathFromIniFile %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Restore a file's path from a key in the .ini file. The key is passed, but the category is obtained via query CALLED BY: OLDocumentControlAttach PASS: *ds:si = generic object cx:dx = key string ss:bp = PathName buffer RETURN: carry set if couldn't obtain the path carry clear if could: ss:bp = filled with path to file cx = disk handle DESTROYED: ax, bx, dx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 1/17/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OLDocumentFetchPathFromIniFile proc near class OLDocumentClass category local INI_CATEGORY_BUFFER_SIZE dup(char) uses es, di .enter ; ; Obtain the .ini file category from which to get the data. ; push cx, dx lea dx, ss:[category] mov cx, ss mov ax, MSG_META_GET_INI_CATEGORY call GenCallApplication pop cx, dx ; ; Have the category, now go for the data, fetching it into a block. ; push ds, si, bp lea si, ss:[category] segmov ds, ss clr bp call InitFileReadData pop bp jc done ; => key not found ; ; Lock down the saved data and copy out the string that is the path, ; stored at the block's start. ; call MemLock mov ds, ax clr si mov di, ss:[bp] segmov es, ss pathCopyLoop: LocalGetChar ax, dssi LocalPutChar esdi, ax LocalIsNull ax ; hit null-terminator? loopne pathCopyLoop ; nope... EC < ERROR_NE OL_DOCUMENT_PATH_STORED_INCORRECTLY > ; ; ds:si = start of data for saved disk handle; restore the beast. ; call UserDiskRestore jc doneFree mov_tr cx, ax ; return disk handle in CX doneFree: lahf ; preserve error code call MemFree ; free data block sahf done: pop ds, si .leave ret OLDocumentFetchPathFromIniFile endp DocInit ends ;--- DocExit segment resource COMMENT @---------------------------------------------------------------------- METHOD: OLDocumentControlDetach -- MSG_META_DETACH for OLDocumentControlClass DESCRIPTION: Detach UI document control by closing any documents that are children PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - MSG_META_DETACH cx - caller's ID dx:bp - OD for MSG_META_ACK RETURN: none DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: if (path is null) { set path to document directory } send MSG_META_DETACH to all children KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 1/90 Initial version ------------------------------------------------------------------------------@ OLDocumentControlDetach method dynamic OLDocumentControlClass, MSG_META_DETACH ; start the detach process push ax, cx, dx, bp call ObjInitDetach ; force the current task to none call OLDCRemoveSummons ; force down the import and export dialog boxes EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset pushdw ds:[di].GDCI_exportGroup movdw cxdx, ds:[di].GDCI_importGroup call removeCXDXFromWindowsList popdw cxdx call removeCXDXFromWindowsList mov ax, MSG_META_DETACH mov dx, ds:[LMBH_handle] mov bp, si ;dx:bp = OD for ACK call SendToAppDCRegs call ObjIncDetach ;app dc will clear this pop ax, cx, dx, bp mov di, offset OLDocumentControlClass call ObjCallSuperNoLock call ObjEnableDetach ret ;--- removeCXDXFromWindowsList: push si sub sp, size GCNListParams mov bp, sp movdw ss:[bp].GCNLP_optr, cxdx mov ss:[bp].GCNLP_ID.GCNLT_manuf, MANUFACTURER_ID_GEOWORKS mov ss:[bp].GCNLP_ID.GCNLT_type, GAGCNLT_WINDOWS mov ax, MSG_META_GCN_LIST_REMOVE clr bx ; use current thread call GeodeGetAppObject ; ^lbx:si = app object mov di, mask MF_FIXUP_DS call ObjMessage add sp, size GCNListParams pop si retn OLDocumentControlDetach endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OLDocumentControlAppShutdown %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Shutdown the document control subsystem CALLED BY: MSG_META_APP_SHUTDOWN PASS: *ds:si = OLDocumentControl object. cx = caller's data ^ldx:bp = ack OD RETURN: nothing DESTROYED: ax, cx, dx, bp SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- ardeb 10/19/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OLDocumentControlAppShutdown method dynamic OLDocumentControlClass, MSG_META_APP_SHUTDOWN uses ax, cx, dx, bp .enter ; ; Begin counter for shutting down GenDocumentGroup and remaining ; documents. ; call ObjInitDetach ; Release "Model" exclusive, which we grabbed back in MSG_META_ATTACH. ; call MetaReleaseModelExclLow ; ; Tell GenDocumentGroup to shut down. ; call ObjIncDetach mov dx, ds:[LMBH_handle] mov bp, si ; ^ldx:bp <- od for SHUTDOWN_ACK call SendToAppDCRegs .leave ; ; Let our superclass do what it must. ; mov di, offset OLDocumentControlClass call ObjCallSuperNoLock ; ; Allow ourselves to finish shutdown, when appropriate. ; call ObjEnableDetach ret OLDocumentControlAppShutdown endm COMMENT @---------------------------------------------------------------------- METHOD: OLDocumentControlQuit -- MSG_META_QUIT for OLDocumentControlClass DESCRIPTION: Handle a user request to quit. PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - MSG_META_DETACH cx:dx - OD for MSG_META_QUIT_ACK RETURN: none DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: if (path is null) { set path to document directory } send MSG_META_DETACH to all children KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 1/90 Initial version ------------------------------------------------------------------------------@ OLDocumentControlQuit method dynamic OLDocumentControlClass, MSG_META_QUIT ; save OD movdw ds:[di].OLDCI_quitOD, cxdx mov ax, MSG_META_QUIT call SendToAppDCRegs Destroy ax, cx, dx, bp ret OLDocumentControlQuit endm COMMENT @---------------------------------------------------------------------- METHOD: OLDocumentControlQuitAck -- MSG_META_QUIT_ACK for OLDocumentControlClass DESCRIPTION: Handle a user request to quit. PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - MSG_META_QUIT_ACK RETURN: cx - abort flag (non-zero if you want to abort the quit) DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: if (path is null) { set path to document directory } send MSG_META_DETACH to all children KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 1/90 Initial version ------------------------------------------------------------------------------@ OLDocumentControlQuitAck method dynamic OLDocumentControlClass, MSG_META_QUIT_ACK ; get OD and set it to 0 clrdw bxsi xchgdw bxsi, ds:[di].OLDCI_quitOD ; sent the MSG_META_QUIT_ACK on, passing the abort flag (cx) mov ax, MSG_META_QUIT_ACK mov di, mask MF_FIXUP_DS GOTO ObjMessage OLDocumentControlQuitAck endm DocExit ends ;--- DocCommon segment resource COMMENT @---------------------------------------------------------------------- MESSAGE: OLDocumentControlGetInfo -- MSG_GEN_CONTROL_GET_INFO for OLDocumentControlClass DESCRIPTION: Return group PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - The message cx:dx - GenControlBuildInfo structure to fill in RETURN: none DESTROYED: bx, si, di, ds, es (message handler) REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 10/31/91 Initial version ------------------------------------------------------------------------------@ OLDocumentControlGetInfo method dynamic \ OLDocumentControlClass, MSG_GEN_CONTROL_GET_INFO mov si, offset OLDC_dupInfo mov es, cx mov di, dx ;es:di = dest segmov ds, cs mov cx, size GenControlBuildInfo rep movsb ret OLDocumentControlGetInfo endm OLDC_dupInfo GenControlBuildInfo < mask GCBF_SPECIFIC_UI or mask GCBF_CUSTOM_ENABLE_DISABLE \ or mask GCBF_ALWAYS_UPDATE or \ mask GCBF_ALWAYS_INTERACTABLE or \ mask GCBF_IS_ON_ACTIVE_LIST, ; GCBI_flags OLDC_IniFileKey, ; GCBI_initFileKey OLDC_gcnList, ; GCBI_gcnList length OLDC_gcnList, ; GCBI_gcnCount OLDC_notifyTypeList, ; GCBI_notificationList length OLDC_notifyTypeList, ; GCBI_notificationCount OLDCName, ; GCBI_controllerName handle OLDocumentControlUI, ; GCBI_dupBlock OLDC_childList, ; GCBI_childList length OLDC_childList, ; GCBI_childCount OLDC_featuresList, ; GCBI_featuresList length OLDC_featuresList, ; GCBI_featuresCount OLDC_DEFAULT_FEATURES, ; GCBI_features handle OLDocumentControlToolboxUI, ; GCBI_toolBlock OLDC_toolList, ; GCBI_toolList length OLDC_toolList, ; GCBI_toolCount OLDC_toolFeaturesList, ; GCBI_toolFeaturesList length OLDC_toolFeaturesList, ; GCBI_toolFeaturesCount OLDC_DEFAULT_TOOLBOX_FEATURES> ; GCBI_toolFeatures if _FXIP ControlInfoXIP segment resource endif OLDC_IniFileKey char "documentControl", 0 OLDC_gcnList GCNListType \ <MANUFACTURER_ID_GEOWORKS, GAGCNLT_APP_TARGET_NOTIFY_DOCUMENT_CHANGE> OLDC_notifyTypeList NotificationType \ <MANUFACTURER_ID_GEOWORKS, GWNT_DOCUMENT_CHANGE> ;--- OLDC_childList GenControlChildInfo \ <offset NewTrigger, mask GDCF_NEW, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset OpenTrigger, mask GDCF_OPEN_CLOSE, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset CloseTrigger, mask GDCF_OPEN_CLOSE, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset SaveTrigger, mask GDCF_SAVE, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset SaveAsTrigger, mask GDCF_SAVE_AS, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset BackupSubMenu, mask GDCF_QUICK_BACKUP, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset OptionsSubMenu, mask GDCF_COPY or \ mask GDCF_EXPORT or \ mask GDCF_REVERT or \ mask GDCF_RENAME or \ mask GDCF_EDIT_USER_NOTES or \ mask GDCF_SET_TYPE or \ mask GDCF_SET_PASSWORD or \ mask GDCF_SAVE_AS_TEMPLATE or \ mask GDCF_SET_EMPTY_DOCUMENT or \ mask GDCF_SET_DEFAULT_DOCUMENT, 0> ; Careful, this table is in the *opposite* order as the record which ; it corresponds to. OLDC_featuresList GenControlFeaturesInfo \ <offset SetDefaultDocumentTrigger, SetDefaultDocumentName, 0>, <offset SetEmptyDocumentTrigger, SetEmptyDocumentName, 0>, <offset SaveAsTemplateTrigger, SaveAsTemplateName, 0>, <offset SetPasswordTrigger, SetPasswordName, 0>, <offset SetTypeTrigger, SetTypeName, 0>, <offset EditUserNotesTrigger, EditUserNotesName, 0>, <offset RenameTrigger, RenameName, 0>, <offset RevertTrigger, RevertName, 0>, <offset ExportTrigger, ExportName, 0>, <offset CopyMoveTriggers, CopyMoveName, 0>, <offset SaveAsTrigger, SaveAsName, 0>, <offset SaveTrigger, SaveName, 0>, <offset QuickBackupTrigger, QuickBackupName, 0>, <offset OpenTrigger, OpenCloseName, 0>, <offset NewTrigger, NewName, 0> ;--- OLDC_toolList GenControlChildInfo \ <offset NewEmptyToolTrigger, mask GDCTF_NEW_EMPTY, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset OpenToolTrigger, mask GDCTF_OPEN, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset UseTemplateToolTrigger, mask GDCTF_USE_TEMPLATE, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset CloseToolTrigger, mask GDCTF_CLOSE, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset SaveToolTrigger, mask GDCTF_SAVE, mask GCCF_IS_DIRECTLY_A_FEATURE>, <offset QuickBackupToolTrigger, mask GDCTF_QUICK_BACKUP, mask GCCF_IS_DIRECTLY_A_FEATURE> ; Careful, this table is in the *opposite* order as the record which ; it corresponds to. OLDC_toolFeaturesList GenControlFeaturesInfo \ <offset QuickBackupToolTrigger, QuickBackupName, 0>, <offset SaveToolTrigger, SaveName, 0>, <offset CloseToolTrigger, CloseName, 0>, <offset OpenToolTrigger, OpenName, 0>, <offset UseTemplateToolTrigger, UseTemplateName, 0>, <offset NewEmptyToolTrigger, NewName, 0> if _FXIP ControlInfoXIP ends endif if ERROR_CHECK AssertIsUIDocControl proc far uses di, es .enter pushf call GenCheckGenAssumption mov di, segment GenDocumentControlClass mov es, di mov di, offset GenDocumentControlClass call ObjIsObjectInClass ERROR_NC OBJECT_NOT_A_GEN_UI_DOC_CONTROL popf .leave ret AssertIsUIDocControl endp endif COMMENT @---------------------------------------------------------------------- MESSAGE: OLDocumentControlScanFeatureHints -- MSG_GEN_CONTROL_SCAN_FEATURE_HINTS for OLDocumentControlClass DESCRIPTION: Return feature flags PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - The message cx - GenControlUIType dx:bp - GenControlScanInfo structure RETURN: DESTROYED: bx, si, di, ds, es (message handler) REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 8/ 3/92 Initial version chrisb 10/93 Removed code that nukes GDCF_NEW if a default document exists. ------------------------------------------------------------------------------@ OLDocumentControlScanFeatureHints method dynamic OLDocumentControlClass, MSG_GEN_CONTROL_SCAN_FEATURE_HINTS ; by the time we are called GenControl has already filled the structure pushdw dxbp EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset mov dx, ds:[di].GDCI_attrs ;dx = attrs mov bp, dx and bp, mask GDCA_MODE ;bp = mode if _DUI ; ; prohibit everything for _DUI, we have a custom setup ; mov ax, mask GDCFeatures mov bx, mask GDCToolboxFeatures else clr ax ;ax = features to prohibit clr bx ;bx = toolbox features to prohibit endif ifdef PRODUCT_WIN_DEMO ornf ax, mask GDCF_SAVE or mask GDCF_SAVE_AS ornf bx, mask GDCTF_SAVE endif tst ds:[di].GDCI_exportGroup.handle jnz allowsExport ornf ax, mask GDCF_EXPORT allowsExport: mov di, ds:[di].GDCI_features ;di = features ; if viewer mode then make all editing things off-limits cmp bp, GDCM_VIEWER shl offset GDCA_MODE jnz notViewer ornf ax, mask GDCF_NEW or mask GDCF_QUICK_BACKUP or \ mask GDCF_SAVE or mask GDCF_SAVE_AS or \ mask GDCF_COPY or mask GDCF_REVERT or mask GDCF_RENAME or \ mask GDCF_EDIT_USER_NOTES or mask GDCF_SET_TYPE or \ mask GDCF_SET_PASSWORD or mask GDCF_SET_EMPTY_DOCUMENT ornf bx, mask GDCTF_NEW_EMPTY or mask GDCTF_USE_TEMPLATE or \ mask GDCTF_SAVE or mask GDCTF_QUICK_BACKUP notViewer: ; if no backup then don't allow "save as" and "revert" test dx, mask GDCA_SUPPORTS_SAVE_AS_REVERT jnz allowsBackup ornf ax, mask GDCF_SAVE_AS or mask GDCF_REVERT allowsBackup: ; disallow various stuff if not supported test dx, mask GDCA_VM_FILE jnz afterNotGeos ornf ax, mask GDCF_EDIT_USER_NOTES or mask GDCF_SET_PASSWORD afterNotGeos: test di, mask GDCF_SUPPORTS_USER_SETTABLE_EMPTY_DOCUMENT jnz afterEmpty ornf ax, mask GDCF_SET_EMPTY_DOCUMENT afterEmpty: test di, mask GDCF_SUPPORTS_TEMPLATES jnz afterTemplates ornf ax, mask GDCF_SAVE_AS_TEMPLATE ornf bx, mask GDCTF_USE_TEMPLATE afterTemplates: test di, mask GDCF_SUPPORTS_USER_SETTABLE_DEFAULT_DOCUMENT jnz afterDefault ornf ax, mask GDCF_SET_DEFAULT_DOCUMENT afterDefault: popdw dssi ; ax = normal features to prohibit ; bx = tool features to prohibit push es segmov es, dgroup, dx ;es = dgroup ; calculate the required features mov dx, mask GDCF_NEW or mask GDCF_OPEN_CLOSE or mask GDCF_SAVE ;assume not transparent test es:[docControlOptions], mask DCO_TRANSPARENT_DOC pop es jz common ; transparent doc... push es segmov es, dgroup, dx ;es = dgroup mov dx, mask GDCF_NEW or mask GDCF_SAVE ; assume confirm save test es:[docControlOptions], mask DCO_USER_CONFIRM_SAVE pop es jnz standardTransparent ; prohibit user save ornf ax, mask GDCF_SAVE_AS or mask GDCF_REVERT mov dx, mask GDCF_NEW standardTransparent: ornf bx, mask GDCTF_OPEN or mask GDCTF_CLOSE or mask GDCTF_SAVE \ or mask GDCTF_USE_TEMPLATE ;prohibit these common: ; turn off New/Open..., Close, and Save As for single document ; unless DCO_SINGLE_DOCUMENT_OVERRIDE test di, mask GDCF_SINGLE_DOCUMENT jz notSingleDocument push ax, es segmov es, dgroup, ax test es:[docControlOptions], mask DCO_SINGLE_DOCUMENT_OVERRIDE pop ax, es jnz notSingleDocument andnf dx, not (mask GDCF_NEW or mask GDCF_OPEN_CLOSE or mask GDCF_SAVE_AS) notSingleDocument: ; dx = required normal features cmp cx, GCUIT_NORMAL je normalFeatures ; *** toolbox *** ornf ds:[si].GCSI_appProhibited, bx jmp done ; *** normal *** normalFeatures: ornf ds:[si].GCSI_appProhibited, ax ornf ds:[si].GCSI_appRequired, dx done: ret OLDocumentControlScanFeatureHints endm COMMENT @---------------------------------------------------------------------- METHOD: OLDocumentControlUpdateUI -- MSG_GEN_CONTROL_UPDATE_UI for OLDocumentControlClass DESCRIPTION: Update the UI for the document control PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - The message ss:bp - GenControlUpdateUIParams RETURN: DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 1/90 Initial version ------------------------------------------------------------------------------@ OLDocumentControlUpdateUI method dynamic OLDocumentControlClass, MSG_GEN_CONTROL_UPDATE_UI ; lock data block and set our instance data as needed push si mov bx, ss:[bp].GCUUIP_dataBlock clr ax clr cx clr dx push dx tst bx jz gotFlags pop dx call MemLock mov es, ax mov ax, es:NDC_attrs mov cx, es:NDC_type mov dx, es:NDC_fileHandle push {word} es:NDC_emptyExists call MemUnlock gotFlags: EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset mov ds:[di].GDCI_docAttrs, ax mov ds:[di].GDCI_docType, cx mov ds:[di].GDCI_docFileHandle, dx pop {word} ds:[di].GDCI_emptyExists mov ax, ss:[bp].GCUUIP_features or ax, ss:[bp].GCUUIP_toolboxFeatures LONG jz done call GenerateEnabledFlags ;ax = features ;bl = "close" ;cx = toolbox features push cx push ax ; handle copy specially test ss:[bp].GCUUIP_features, mask GDCF_COPY jz afterCopy test ax, mask GDCF_COPY mov ax, MSG_GEN_SET_ENABLED jnz 4$ mov ax, MSG_GEN_SET_NOT_ENABLED 4$: push bx, si mov bx, ss:[bp].GCUUIP_childBlock mov si, offset MoveTrigger mov dl, VUM_NOW mov di, mask MF_FIXUP_DS call ObjMessage ; do the Copy Trigger too. not sure why this was left out jfh 11/17/03 mov bx, ss:[bp].GCUUIP_childBlock mov si, offset CopyTrigger mov dl, VUM_NOW mov di, mask MF_FIXUP_DS call ObjMessage pop bx, si afterCopy: ; handle "revert quick backup" specially test ss:[bp].GCUUIP_features, mask GDCF_QUICK_BACKUP jz afterRevertQuick mov di, ds:[si] add di, ds:[di].Gen_offset test ds:[di].GDCI_docAttrs, mask GDA_BACKUP_EXISTS mov ax, MSG_GEN_SET_ENABLED jnz 5$ mov ax, MSG_GEN_SET_NOT_ENABLED 5$: push bx, si mov bx, ss:[bp].GCUUIP_childBlock mov si, offset RecoverFromQuickBackupTrigger mov dl, VUM_NOW mov di, mask MF_FIXUP_DS call ObjMessage pop bx, si afterRevertQuick: ; handle close specially test ss:[bp].GCUUIP_features, mask GDCF_OPEN_CLOSE jz afterClose mov ax, MSG_GEN_SET_ENABLED tst bl jnz 6$ mov ax, MSG_GEN_SET_NOT_ENABLED 6$: push si mov bx, ss:[bp].GCUUIP_childBlock mov si, offset CloseTrigger mov dl, VUM_NOW mov di, mask MF_FIXUP_DS call ObjMessage pop si afterClose: ; handle clear empty specially mov bx, ss:[bp].GCUUIP_childBlock test ss:[bp].GCUUIP_features, mask GDCF_SET_EMPTY_DOCUMENT jz afterEmpty EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset tst ds:[di].GDCI_emptyExists mov ax, MSG_GEN_SET_ENABLED jnz 7$ mov ax, MSG_GEN_SET_NOT_ENABLED 7$: push si mov si, offset ClearEmptyDocumentTrigger mov dl, VUM_NOW mov di, mask MF_FIXUP_DS call ObjMessage pop si afterEmpty: ; handle clear default specially test ss:[bp].GCUUIP_features, mask GDCF_SET_DEFAULT_DOCUMENT jz afterDefault EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset tst ds:[di].GDCI_defaultExists mov ax, MSG_GEN_SET_ENABLED jnz 8$ mov ax, MSG_GEN_SET_NOT_ENABLED 8$: push si mov si, offset ClearDefaultDocumentTrigger mov dl, VUM_NOW mov di, mask MF_FIXUP_DS call ObjMessage pop si afterDefault: pop ax ; features mov dx, ss:[bp].GCUUIP_features mov bx, ss:[bp].GCUUIP_childBlock mov di, offset triggerTable mov cx, length triggerTable call enableLoop ; toolbox features pop ax mov dx, ss:[bp].GCUUIP_toolboxFeatures mov bx, ss:[bp].GCUUIP_toolBlock mov di, offset toolTriggerTable mov cx, length toolTriggerTable call enableLoop done: pop si mov ax, MSG_OLDC_TEST_FOR_DISPLAY_MAIN_DIALOG GOTO ObjCallInstanceNoLock ;--- ;cs:di = table ;cx = length ;ax = features enabled ;dx = features existing ;bx = block enableLoop: tst bx jz enableLoopDone shr dx push ax, dx jnc next shr ax mov ax, MSG_GEN_SET_ENABLED jc 10$ mov ax, MSG_GEN_SET_NOT_ENABLED 10$: mov dl, VUM_NOW mov si, cs:[di] push di mov di, mask MF_FIXUP_DS call ObjMessage pop di next: pop ax, dx shr ax add di, size word loop enableLoop enableLoopDone: retn OLDocumentControlUpdateUI endm triggerTable word \ offset SetDefaultDocumentTrigger, offset SetEmptyDocumentTrigger, offset SaveAsTemplateTrigger, offset SetPasswordTrigger, offset SetTypeTrigger, offset EditUserNotesTrigger, offset RenameTrigger, offset RevertTrigger, offset ExportTrigger, offset CopyMoveTriggers, offset SaveAsTrigger, offset SaveTrigger, offset QuickBackupTrigger, offset OpenTrigger, offset NewTrigger toolTriggerTable word \ offset QuickBackupToolTrigger, offset SaveToolTrigger, offset CloseToolTrigger, offset OpenToolTrigger, offset UseTemplateToolTrigger, offset NewEmptyToolTrigger COMMENT @---------------------------------------------------------------------- FUNCTION: GenerateEnabledFlags DESCRIPTION: Generate flags for whether stuff is enabled CALLED BY: INTERNAL PASS: *ds:si - object RETURN: ax - feature flags bx - close state cx - toolbox feature flags DESTROYED: none REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 4/30/92 Initial version ------------------------------------------------------------------------------@ GenerateEnabledFlags proc far uses dx, si, bp class OLDocumentControlClass .enter EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset mov dx, ds:[di].GDCI_attrs ;dx = attrs mov bp, ds:[di].GDCI_docAttrs mov si, ds:[di].GDCI_features ;si = features mov ax, seg dgroup mov es, ax test es:[docControlOptions], mask DCO_TRANSPARENT_DOC jz notTranparentMode mov ax, mask GDCF_NEW or mask GDCF_QUICK_BACKUP clr bx mov cx, mask GDCToolboxFeatures jmp noAllowNewOpen notTranparentMode: clr ax clr bx clr cx ; multiple files allowed ? test dx, mask GDCA_MULTIPLE_OPEN_FILES jnz allowNewOpen ; no multiple files, are there any existing ? test dx, mask GDCA_DOCUMENT_EXISTS jz allowNewOpen ; if the file is not dirty, allow new and open, even if multiple ; documents are not allowed test si, mask GDCF_SINGLE_FILE_CLEAN_CAN_NEW_OPEN jz noAllowNewOpen test bp, mask GDA_DIRTY jnz noAllowNewOpen allowNewOpen: ; Limit number of documents that can be opened. ; a file can be opened ornf ax, mask GDCF_NEW or mask GDCF_OPEN_CLOSE ornf cx, mask GDCTF_NEW_EMPTY or mask GDCTF_OPEN or \ mask GDCTF_USE_TEMPLATE noAllowNewOpen: ; does a document exist ? test dx, mask GDCA_DOCUMENT_EXISTS jz noTargetDoc ornf ax, mask GDCF_SET_EMPTY_DOCUMENT or \ mask GDCF_SET_DEFAULT_DOCUMENT ; deal with various attribute changes ; rename enabled in writable, !multiUser, (!readOnly or !dirty), !untit test bp, mask GDA_ON_WRITABLE_MEDIA jz noAttrChange test bp, mask GDA_UNTITLED or mask GDA_SHARED_MULTIPLE jnz noAttrChange ; The type of a document opened read-only can only be changed if the ; document is really read-only test bp, mask GDA_READ_ONLY jz canChangeType test bp, mask GDA_DIRTY ;dirty read-only documents jnz afterChangeType ;cannot change type cmp ds:[di].GDCI_docType, GDT_READ_ONLY jnz afterChangeType canChangeType: ornf ax, mask GDCF_SET_TYPE afterChangeType: test bp, mask GDA_READ_ONLY jnz noAttrChange ornf ax, mask GDCF_EDIT_USER_NOTES or mask GDCF_SET_PASSWORD or \ mask GDCF_RENAME noAttrChange: ; a target document exists ; save and revert require the document be dirty ; save, save as and revert require the document be not readOnly ; if (!multiple files && !dirty && tempName) -> allow open ornf ax, mask GDCF_QUICK_BACKUP or mask GDCF_SAVE_AS or \ mask GDCF_COPY or mask GDCF_EXPORT or \ mask GDCF_SAVE_AS_TEMPLATE mov bl, 1 ;save enabled ornf cx, mask GDCTF_CLOSE or mask GDCTF_QUICK_BACKUP test bp, mask GDA_SHARED_MULTIPLE jnz notDirty test bp, mask GDA_DIRTY jz notDirty ornf ax, mask GDCF_SAVE or mask GDCF_REVERT ornf cx, mask GDCTF_SAVE ; ; If "save" failed, then revert is not possible ; test bp, mask GDA_SAVE_FAILED jz notDirty andnf ax, not mask GDCF_REVERT notDirty: ; ; Read-only files cannot be saved ; Editable read-only files can be reverted and save-as'ed ; test bp, mask GDA_READ_ONLY jz notReadOnly test si, mask GDCF_READ_ONLY_SUPPORTS_SAVE_AS_REVERT jnz noTargetDoc andnf ax, not (mask GDCF_SAVE or mask GDCF_SAVE_AS or \ mask GDCF_REVERT) andnf cx, not mask GDCTF_SAVE notReadOnly: noTargetDoc: .leave ret GenerateEnabledFlags endp COMMENT @---------------------------------------------------------------------- MESSAGE: OLDocumentControlGenerateUI -- MSG_GEN_CONTROL_GENERATE_UI for OLDocumentControlClass DESCRIPTION: ... PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - The message RETURN: DESTROYED: bx, si, di, ds, es (message handler) REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: This method handler exists only because this can't be done in the TWEAK handler -- the GenControl itself may set the Open trigger USABLE after the TWEAK handler is called, thereby undoing any SET_NOT_USABLE. So, alas, we still have to intercept MSG_GEN_CONTROL_GENERATE_UI. REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 8/12/92 Initial version Doug 1/93 Moved most to TWEAK handler. ------------------------------------------------------------------------------@ OLDocumentControlGenerateUI method dynamic OLDocumentControlClass, MSG_GEN_CONTROL_GENERATE_UI mov ax, TEMP_GEN_CONTROL_INSTANCE call ObjVarFindData mov bp, ds:[bx].TGCI_features mov bx, ds:[bx].TGCI_childBlock test bp, mask GDCF_OPEN_CLOSE jz afterOpen segmov es, dgroup, si ;es = dgroup test es:[docControlOptions], mask DCO_HAVE_FILE_OPEN jnz afterOpen mov si, offset OpenTrigger mov dl, VUM_NOW mov di, mask MF_FIXUP_DS mov ax, MSG_GEN_SET_NOT_USABLE call ObjMessage afterOpen: ret OLDocumentControlGenerateUI endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OLDocumentControlTweakDuplicatedUI %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: Modify duplicated UI as needed PASS: *ds:si - instance data ds:di - ptr to start of master instance data es - segment of class ax - MSG_GEN_CONTROL_TWEAK_DUPLICATED_UI cx - block dx - features RETURN: <return info> ALLOWED TO DESTROY: bx, si, di, ds, es PSEUDO CODE/STRATEGY/KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- doug 1/93 Initial version martin 8/3/93 Added DCO_NO_DOC_PASSWORD %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OLDocumentControlTweakDuplicatedUI method dynamic OLDocumentControlClass, MSG_GEN_CONTROL_TWEAK_DUPLICATED_UI push es segmov es, dgroup, bp ;es = dgroup mov bp, dx ; bp - features mov bx, cx ; bx - block ; if in transparent mode then switch "New" to "Switch Document" test es:[docControlOptions], mask DCO_TRANSPARENT_DOC pop es jz afterNew test bp, mask GDCF_NEW jz afterNew mov ax, MSG_GEN_USE_VIS_MONIKER mov si, offset NewTrigger mov cx, offset SwitchDocumentMoniker call sendMessage afterNew: ; ; Enable document passwords if appropriate ; push es, si segmov es, dgroup, si ; es = dgroup test es:[docControlOptions], mask DCO_NO_DOC_PASSWORD pop es, si jz afterOptions mov si, offset SetPasswordTrigger call setNotUsable afterOptions: ; Change the "Other" submenu from a submenu to a subgroup, if it ; exists, and if the option is set push es, ax segmov es, dgroup, ax test es:[docControlOptions], mask DCO_NO_OTHER_SUBMENU pop es, ax jz afterOptionsSubMenu test bp,mask GDCF_COPY or \ mask GDCF_EXPORT or \ mask GDCF_REVERT or \ mask GDCF_RENAME or \ mask GDCF_EDIT_USER_NOTES or \ mask GDCF_SET_TYPE or \ mask GDCF_SET_PASSWORD or \ mask GDCF_SAVE_AS_TEMPLATE or \ mask GDCF_SET_EMPTY_DOCUMENT or \ mask GDCF_SET_DEFAULT_DOCUMENT jz afterOptionsSubMenu mov ax, MSG_GEN_INTERACTION_SET_VISIBILITY mov si, offset OptionsSubMenu mov cl, GIV_SUB_GROUP call sendMessage afterOptionsSubMenu: ; nuke the Empty sub-menu if it exists but is not needed test bp, mask GDCF_COPY or \ mask GDCF_EXPORT or \ mask GDCF_REVERT or \ mask GDCF_RENAME or \ mask GDCF_EDIT_USER_NOTES or \ mask GDCF_SET_TYPE or \ mask GDCF_SET_PASSWORD or \ mask GDCF_SAVE_AS_TEMPLATE or \ mask GDCF_SET_EMPTY_DOCUMENT or \ mask GDCF_SET_DEFAULT_DOCUMENT jz afterEmptyMenu test bp, mask GDCF_SET_EMPTY_DOCUMENT or \ mask GDCF_SET_DEFAULT_DOCUMENT jnz afterEmptyMenu mov si, offset OptionsEmptyPopup call setNotUsable afterEmptyMenu: ret ;--- setNotUsable: mov ax, MSG_GEN_SET_NOT_USABLE mov dl, VUM_NOW sendMessage: mov di, mask MF_FIXUP_DS call ObjMessage retn OLDocumentControlTweakDuplicatedUI endm COMMENT @---------------------------------------------------------------------- METHOD: OLDocumentControlGetAttrs -- MSG_GEN_DOCUMENT_CONTROL_GET_ATTRS for OLDocumentControlClass DESCRIPTION: Get the DocumentControlAttrs PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - MSG_GEN_DOCUMENT_CONTROL_GET_ATTRS RETURN: ax - GenDocumentControlAttrs cx, dx, bp - unchanged DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 1/90 Initial version ------------------------------------------------------------------------------@ OLDocumentControlGetAttrs method OLDocumentControlClass, MSG_GEN_DOCUMENT_CONTROL_GET_ATTRS push di EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset mov ax, ds:[di].GDCI_attrs pop di ret OLDocumentControlGetAttrs endm ;--- OLDocumentControlGetFeatures method OLDocumentControlClass, MSG_GEN_DOCUMENT_CONTROL_GET_FEATURES push di EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset mov ax, ds:[di].GDCI_features pop di ret OLDocumentControlGetFeatures endm ;--- SendToTargetDocRegs proc far uses di .enter mov di, mask MF_RECORD call SendToTargetCommon .leave ret SendToTargetDocRegs endp ;--- SendToTargetCommon proc far uses ax, cx, dx, bp .enter push bx, si mov bx, segment GenDocumentClass mov si, offset GenDocumentClass call ObjMessage ;di = message pop bx, si mov cx, di mov dx, TO_MODEL mov ax, MSG_META_SEND_CLASSED_EVENT call ObjCallInstanceNoLock .leave ret SendToTargetCommon endp COMMENT @---------------------------------------------------------------------- METHOD: OLDocumentControlSendClassedEvent DESCRIPTION: Relays all messages destined for owner of Model excl to app DC PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - MSG_META_DELIVER_SEND_EVENT cx - handle of classed event dx - TargetObject RETURN: none REVISION HISTORY: Name Date Description ---- ---- ----------- Doug 7/91 Initial version ------------------------------------------------------------------------------@ OLDocumentControlSendClassedEvent method OLDocumentControlClass, MSG_META_SEND_CLASSED_EVENT cmp dx, TO_MODEL je sendToAppDocumentControl mov di, offset OLDocumentControlClass GOTO ObjCallSuperNoLock sendToAppDocumentControl: mov di, ds:[si] add di, ds:[di].Gen_offset mov bx, ds:[di].GDCI_documentGroup.handle mov bp, ds:[di].GDCI_documentGroup.chunk clr di call FlowDispatchSendOnOrDestroyClassedEvent Destroy ax, cx, dx, bp ret OLDocumentControlSendClassedEvent endm COMMENT @---------------------------------------------------------------------- FUNCTION: SendToAppDCFrame DESCRIPTION: Send a method (with data on the stack) to the associated app document control CALLED BY: INTERNAL PASS: *ds:si - GenDocumentControl ax - method cx, dx, bp - parameters RETURN: from method DESTROYED: from method REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 1/90 Initial version ------------------------------------------------------------------------------@ SendToAppDCFrame proc far uses di .enter EC < call AssertIsUIDocControl > mov di, mask MF_STACK or mask MF_FIXUP_DS call SendToAppDCCommon .leave ret SendToAppDCFrame endp COMMENT @---------------------------------------------------------------------- FUNCTION: SendToAppDCRegs DESCRIPTION: Send a method to the associated app document control CALLED BY: INTERNAL PASS: *ds:si - GenDocumentControl ax - method cx, dx, bp - parameters RETURN: from method DESTROYED: from method REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 1/90 Initial version ------------------------------------------------------------------------------@ SendToAppDCRegs proc far uses bx, si, di .enter EC < call AssertIsUIDocControl > mov di, mask MF_FIXUP_DS call SendToAppDCCommon .leave ret SendToAppDCRegs endp ;------- SendToAppDCCommonFar proc far call SendToAppDCCommon ret SendToAppDCCommonFar endp SendToAppDCCommon proc near uses bx, si class GenDocumentControlClass .enter EC < call AssertIsUIDocControl > mov si, ds:[si] add si, ds:[si].Gen_offset mov bx, ds:[si].GDCI_documentGroup.handle mov si, ds:[si].GDCI_documentGroup.chunk call ObjMessage .leave ret SendToAppDCCommon endp COMMENT @---------------------------------------------------------------------- METHOD: OLDocumentControlVupAlterFTVMCExcl DESCRIPTION: Re-route message which normally travels up visual tree to our generic parent, since we're not in the visual tree. PASS: *ds:si - instance data es - segment of class ax - MSG_META_MUP_ALTER_FTVMC_EXCL ^lcx:dx - object making request bp - OLDocumentControlAlterExclFlags RETURN: nothing ax, cx, dx, bp - destroyed ALLOWED TO DESTROY: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- doug 10/91 Initial Version ------------------------------------------------------------------------------@ ; This isn't needed, as the default handler sends MODEL alterations up the ; generic linkage anyway. -- In fact, now that we're a controller, this is ; downright wrong, as we now *are* in the visual tree when build out, ; & triggers below should be getting the focus from the first *visible* node ; up the tree. (We've been lucky in that VisParent = GenParent here to date) ; -- Doug 2/5/93 ; ;OLDocumentControlVupAlterFTVMCExcl method dynamic OLDocumentControlClass, ; MSG_META_MUP_ALTER_FTVMC_EXCL ; ; and bp, not mask MAEF_NOT_HERE ; clear "not here" flag, since ; ; we're safely past the first ; ; object ; GOTO GenCallParent ; ;OLDocumentControlVupAlterFTVMCExcl endm OLDocumentControlChangedModelExcl method dynamic OLDocumentControlClass, MSG_META_GAINED_MODEL_EXCL, MSG_META_LOST_MODEL_EXCL, MSG_META_GAINED_SYS_MODEL_EXCL, MSG_META_LOST_SYS_MODEL_EXCL GOTO SendToAppDCRegs OLDocumentControlChangedModelExcl endp COMMENT @---------------------------------------------------------------------- MESSAGE: OLDocumentControlGetTemplateDir -- MSG_GEN_DOCUMENT_CONTROL_GET_TEMPLATE_DIR for OLDocumentControlClass DESCRIPTION: Get the template directory PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - The message cxdx - buffer RETURN: DESTROYED: bx, si, di, ds, es (message handler) REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 8/ 7/92 Initial version ------------------------------------------------------------------------------@ OLDocumentControlGetTemplateDir method dynamic OLDocumentControlClass, MSG_GEN_DOCUMENT_CONTROL_GET_TEMPLATE_DIR EC < call GenCheckGenAssumption > if not _USE_DESIGN_ASSISTANT_FOR_TEMPLATES or _NDO2000 call EnsureTemplateDir endif mov di, ds:[si] add di, ds:[di].Gen_offset mov si, ds:[di].GDCI_templateDir ;dssi = source movdw esdi, cxdx ;esdi = dest SBCS < mov {char} es:[di], 0 > DBCS < mov {wchar} es:[di], 0 > if not _USE_DESIGN_ASSISTANT_FOR_TEMPLATES or _NDO2000 tst si jz done mov si, ds:[si] SBCS < clr ax > copyLoop: LocalGetChar ax, dssi LocalPutChar esdi, ax LocalIsNull ax jnz copyLoop done: endif ret OLDocumentControlGetTemplateDir endm COMMENT @---------------------------------------------------------------------- FUNCTION: EnsureTemplateDir DESCRIPTION: Ensure that a template directory exists CALLED BY: INTERNAL PASS: *ds:si - document control RETURN: none DESTROYED: none REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 3/ 7/93 Initial version ------------------------------------------------------------------------------@ if not _USE_DESIGN_ASSISTANT_FOR_TEMPLATES or _NDO2000 EnsureTemplateDir proc far uses ax, bx, cx, dx, di class OLDocumentControlClass .enter EC < call AssertIsUIDocControl > mov ax, TEMP_OLDC_TEMPLATE_DIR_ENSURED call ObjVarFindData jc done clr cx call ObjVarAddData call FilePushDir mov ax, SP_TEMPLATE call FileSetStandardPath EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset mov di, ds:[di].GDCI_templateDir tst di jz templateDone mov dx, ds:[di] call FileCreateDir templateDone: call FilePopDir done: .leave ret EnsureTemplateDir endp endif COMMENT @---------------------------------------------------------------------- MESSAGE: OLDocumentControlEnableDisable -- MSG_GEN_CONTROL_ENABLE_DISABLE for OLDocumentControlClass DESCRIPTION: Enable/disable stuff as needed PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - The message cx - message: MSG_GEN_SET_ENABLED or MSG_GEN_SET_NOT_ENABLED dl - VisualUpdateMode RETURN: DESTROYED: bx, si, di, ds, es (message handler) REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 5/ 1/92 Initial version ------------------------------------------------------------------------------@ OLDocumentControlEnableDisable method dynamic OLDocumentControlClass, MSG_GEN_CONTROL_ENABLE_DISABLE EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset ornf ds:[di].GDCI_attrs, mask GDCA_DOCUMENT_EXISTS cmp cx, MSG_GEN_SET_ENABLED jz checkDialog ; we're disabling -- we must also clearout the file name andnf ds:[di].GDCI_attrs, not mask GDCA_DOCUMENT_EXISTS push cx, dx sub sp, size DocumentFileChangedParams mov bp, sp mov ss:[bp].DFCP_name[0], 0 mov ax, MSG_GEN_DOCUMENT_CONTROL_FILE_CHANGED call ObjCallInstanceNoLock add sp, size DocumentFileChangedParams pop cx, dx EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset 10$: mov_tr ax, cx ;ax = message mov di, ds:[di].GDCI_enableDisableList tst di jz done clr bp ChunkSizeHandle ds, di, cx jcxz done shr cx shr cx ;get number of optrs sendLoop: push cx, di mov di, ds:[di] add di, bp ; the optrs in the list are unrelocated -- we must handle this push ax mov bx, ds:[LMBH_handle] mov cx, ds:[di].handle mov al, RELOC_HANDLE call ObjDoRelocation pop ax mov bx, cx mov si, ds:[di].chunk mov di, mask MF_FIXUP_DS call ObjMessage pop cx, di add bp, size optr loop sendLoop done: Destroy ax, cx, dx, bp ret checkDialog: ; ; If setting enabled and have main dialog up, take it down and ; switch curren task to none. ; mov ax, ds:[di].GDCI_attrs andnf ax, mask GDCA_CURRENT_TASK cmp ax, GDCT_DIALOG shl offset GDCA_CURRENT_TASK jne 10$ call OLDCRemoveSummons EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset CheckHack <GDCT_NONE eq 0> andnf ds:[di].GDCI_attrs, not mask GDCA_CURRENT_TASK jmp 10$ OLDocumentControlEnableDisable endm DocCommon ends ;--- DocMisc segment resource COMMENT @---------------------------------------------------------------------- MESSAGE: OLDocumentControlRebuildNormalUI -- MSG_GEN_CONTROL_REBUILD_NORMAL_UI for OLDocumentControlClass DESCRIPTION: Check for redoing the main dialog when rebuilding UI PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - The message RETURN: DESTROYED: bx, si, di, ds, es (message handler) REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 10/27/92 Initial version ------------------------------------------------------------------------------@ OLDocumentControlRebuildNormalUI method dynamic OLDocumentControlClass, MSG_GEN_CONTROL_REBUILD_NORMAL_UI call OLDCRemoveSummons mov di, offset OLDocumentControlClass call ObjCallSuperNoLock mov ax, MSG_OLDC_REMOVE_OLD_AND_TEST_FOR_DISPLAY_MAIN_DIALOG GOTO ObjCallInstanceNoLock OLDocumentControlRebuildNormalUI endm DocMisc ends ;--- DocNewOpen segment resource COMMENT @---------------------------------------------------------------------- MESSAGE: OLDocumentControlFileChanged -- MSG_GEN_DOCUMENT_CONTROL_FILE_CHANGED for OLDocumentControlClass DESCRIPTION: Handle notification that the file has changed PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - The message ss:bp - DocumentFileChangedParams RETURN: DESTROYED: bx, si, di, ds, es (message handler) REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 5/ 1/92 Initial version ------------------------------------------------------------------------------@ OLDocumentControlFileChanged method dynamic OLDocumentControlClass, MSG_GEN_DOCUMENT_CONTROL_FILE_CHANGED ; get the long term moniker ; copy name & path to instance data (for file selectors) cmp ss:[bp].DFCP_name[0], 0 jz noCopyToFileSelector push bp lea dx, ss:[bp].DFCP_path mov cx, ss mov bp, ss:[bp].DFCP_diskHandle mov ax, MSG_GEN_PATH_SET call ObjCallInstanceNoLock pop bp EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset push si, ds segmov es, ds lea di, ds:[di].GDCI_targetDocName segmov ds, ss lea si, ss:[bp].DFCP_name mov cx, length GDCI_targetDocName LocalCopyNString ;rep movsb/movsw pop si, ds noCopyToFileSelector: EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset tst ss:[bp].DFCP_display.handle if _DUI ; ; in _DUI we update both the display and the primary name ; jz updatePrimary call updateDisplay mov di, ds:[si] add di, ds:[di].Gen_offset updatePrimary: else jnz updateDisplay endif test ds:[di].GDCI_features, mask GDCF_NAME_ON_PRIMARY jz done ; display document name if GDGA_DISPLAY_NAME cmp ss:[bp].DFCP_name[0], 0 if _DUI mov dl, VMDT_TEXT ; moniker type endif jnz gotName ; copy "no file" name out if _DUI ; ; just clear long term moniker for DUI ; mov dl, VMDT_NULL else push bp mov cx, ss ;cx:dx = destination mov dx, bp EC < call GenCheckGenAssumption > mov di, ds:[si] add di, ds:[di].Gen_offset mov bp, ds:[di].GDCI_noNameText EC < tst bp > EC < ERROR_Z OLDC_MUST_HAVE_NO_NAME_TEXT > clr ax ;copy entire chunk clr di call UserCopyChunkOut pop bp endif gotName: mov ax, bp sub sp, size ReplaceVisMonikerFrame mov bp, sp mov ss:[bp].RVMF_source.segment, ss mov ss:[bp].RVMF_source.offset, ax mov ss:[bp].RVMF_sourceType, VMST_FPTR if _DUI mov ss:[bp].RVMF_dataType, dl ; store moniker type else mov ss:[bp].RVMF_dataType, VMDT_TEXT endif mov ss:[bp].RVMF_length, 0 ; null-terminated mov ss:[bp].RVMF_updateMode, VUM_NOW mov dx, size ReplaceVisMonikerFrame mov ax, MSG_GEN_PRIMARY_REPLACE_LONG_TERM_MONIKER mov di, mask MF_RECORD or mask MF_STACK push si mov bx, segment GenPrimaryClass mov si, offset GenPrimaryClass call ObjMessage pop si add sp, size ReplaceVisMonikerFrame mov cx, di mov ax, MSG_GEN_GUP_CALL_OBJECT_OF_CLASS call GenCallParent ;call the primary -- returns ;ax = new chunk done: ret ; update the associated GenDisplay if _DUI updateDisplay label far else updateDisplay: endif cmp ss:[bp].DFCP_name[0], 0 jz done push si mov bx, ss:[bp].DFCP_display.handle mov si, ss:[bp].DFCP_display.chunk mov ax, MSG_GEN_DISPLAY_UPDATE_FROM_DOCUMENT mov dx, size DocumentFileChangedParams mov di, mask MF_STACK or mask MF_FIXUP_DS call ObjMessage pop si ret OLDocumentControlFileChanged endm COMMENT @---------------------------------------------------------------------- METHOD: OLDocumentControlGetToken -- MSG_GEN_DOCUMENT_CONTROL_GET_TOKEN for OLDocumentControlClass DESCRIPTION: Get the token PASS: *ds:si - instance data es - segment of OLDocumentControlClass ax - MSG_GEN_DOCUMENT_CONTROL_GET_TOKEN cx:dx - address to store token RETURN: cx, dx, bp - unchanged DESTROYED: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 1/90 Initial version ------------------------------------------------------------------------------@ OLDocumentControlGetToken method dynamic OLDocumentControlClass, MSG_GEN_DOCUMENT_CONTROL_GET_TOKEN mov ax, offset GDCI_documentToken mov si, ds:[si] ;ds:si = source add si, ds:[si].Gen_offset add si, ax mov es, cx ;es:di = dest mov di, dx push cx mov cx, size GeodeToken rep movsb pop cx ret OLDocumentControlGetToken endm DocNewOpen ends ;--- DocNew segment resource OLDocumentControlGetCreator method dynamic OLDocumentControlClass, MSG_GEN_DOCUMENT_CONTROL_GET_CREATOR ; ; Return the token of the app that owns us. ; mov es, cx mov di, dx mov bx, ds:[LMBH_handle] call MemOwner mov ax, GGIT_TOKEN_ID call GeodeGetInfo ret OLDocumentControlGetCreator endm DocNew ends ;--- DocSaveAsClose segment resource COMMENT @---------------------------------------------------------------------- FUNCTION: SendToTargetDocFrame DESCRIPTION: Send a message to the target document CALLED BY: INTERNAL PASS: ax - message ss:bp - paramters RETURN: none DESTROYED: REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- Tony 8/ 4/92 Initial version ------------------------------------------------------------------------------@ SendToTargetDocFrame proc far uses di .enter mov di, mask MF_RECORD or mask MF_STACK call SendToTargetCommon .leave ret SendToTargetDocFrame endp DocSaveAsClose ends ;--- DocObscure segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% OLDocumentControlGetModelExcl %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets the model exclusive for this app. CALLED BY: GLOBAL PASS: nada RETURN: cx:dx - model object carry set DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 5/14/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ OLDocumentControlGetModelExcl method OLDocumentControlClass, MSG_META_GET_MODEL_EXCL .enter mov di, ds:[si] add di, ds:[di].Gen_offset movdw cxdx, ds:[di].GDCI_documentGroup stc .leave ret OLDocumentControlGetModelExcl endp COMMENT @---------------------------------------------------------------------- METHOD: OLDocumentControlQuerySaveDocuments -- MSG_META_QUERY_SAVE_DOCUMENTS for OLDocumentControlClass DESCRIPTION: Save documents on an app switch. PASS: *ds:si - instance data es - segment of MetaClass ax - MSG_META_QUERY_SAVE_DOCUMENTS cx - event RETURN: nothing ax, cx, dx, bp - destroyed ALLOWED TO DESTROY: bx, si, di, ds, es REGISTER/STACK USAGE: PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- chris 7/26/93 Initial Version ------------------------------------------------------------------------------@ if VOLATILE_SYSTEM_STATE OLDocumentControlQuerySaveDocuments method dynamic OLDocumentControlClass, \ MSG_META_QUERY_SAVE_DOCUMENTS push ax, cx mov ax, MSG_META_GET_MODEL_EXCL call ObjCallInstanceNoLock ;in ^lcx:dx, no doubt movdw bxsi, cxdx ;send on to document control pop ax, cx tst si ;no model, we'll give up and jz returnQuery ; allow app switching. clr di ;else send on to model GOTO ObjMessage returnQuery: mov bx, cx mov di, mask MF_FORCE_QUEUE call MessageDispatch ret OLDocumentControlQuerySaveDocuments endm endif DocObscure ends
23.500164
81
0.665289
6ba58a74be93ceb912521af13e937018b93d3080
4,387
nasm
Assembly
modules/librm/iofunc.nasm
r-tty/radios
fdfaaadd256564ea3ed1b7fc408e7aecf648ae2b
[ "BSD-3-Clause" ]
null
null
null
modules/librm/iofunc.nasm
r-tty/radios
fdfaaadd256564ea3ed1b7fc408e7aecf648ae2b
[ "BSD-3-Clause" ]
null
null
null
modules/librm/iofunc.nasm
r-tty/radios
fdfaaadd256564ea3ed1b7fc408e7aecf648ae2b
[ "BSD-3-Clause" ]
null
null
null
;------------------------------------------------------------------------------ ; iofunc.nasm - message handlers. ;------------------------------------------------------------------------------ module librm.iofunc %include "rm/resmgr.ah" %include "rm/iomsg.ah" exportproc _iofunc_func_init, _iofunc_attr_init section .data ConnHandlers: DD RESMGR_CONNECT_NFUNCS DD IOMH_Open DD 0 ; unlink DD 0 ; rename DD 0 ; mknod DD 0 ; readlink DD 0 ; link DD 0 ; unblock DD 0 ; mount IOhandlers: DD RESMGR_IO_NFUNCS DD IOMH_Connect ; 100h DD IOMH_Read ; 101h DD IOMH_Write ; 102h DD 0 ; 103h DD IOMH_Stat ; 104h DD IOMH_Notify ; 105h DD IOMH_Devctl ; 106h DD 0 ; 107h DD IOMH_PathConf ; 108h DD IOMH_lseek ; 109h DD IOMH_chmod ; 10Ah DD IOMH_chown ; 10Bh DD IOMH_utime ; 10Ch DD IOMH_OpenFD ; 10Dh DD IOMH_FDinfo ; 10Eh DD IOMH_Lock ; 10Fh DD IOMH_Space ; 110h DD IOMH_Shutdown ; 111h DD IOMH_mmap ; 112h DD IOMH_Msg ; 113h DD 0 ; 114h DD IOMH_Dup ; 115h DD IOMH_Close ; 116h DD 0 ; 117h DD 0 ; 118h DD IOMH_Sync ; 119h section .text ; --- IO message handlers ------------------------------------------------------ proc IOMH_Connect ret endp ;--------------------------------------------------------------- ; Default handler for IOM_READ. ; Input: EBX=message address, ; EDX=OCB address, ; ESI=address of resmgr context descriptor. ; Output: EAX=result. proc IOMH_Read ret endp ;--------------------------------------------------------------- proc IOMH_Write ret endp ;--------------------------------------------------------------- proc IOMH_Stat ret endp ;--------------------------------------------------------------- proc IOMH_Notify ret endp ;--------------------------------------------------------------- proc IOMH_Devctl ret endp ;--------------------------------------------------------------- proc IOMH_PathConf ret endp ;--------------------------------------------------------------- proc IOMH_lseek ret endp ;--------------------------------------------------------------- proc IOMH_chmod ret endp ;--------------------------------------------------------------- proc IOMH_chown ret endp ;--------------------------------------------------------------- proc IOMH_utime ret endp ;--------------------------------------------------------------- proc IOMH_OpenFD ret endp ;--------------------------------------------------------------- proc IOMH_FDinfo ret endp ;--------------------------------------------------------------- proc IOMH_Lock ret endp ;--------------------------------------------------------------- proc IOMH_Space ret endp ;--------------------------------------------------------------- proc IOMH_Shutdown ret endp ;--------------------------------------------------------------- proc IOMH_mmap ret endp ;--------------------------------------------------------------- proc IOMH_Msg ret endp ;--------------------------------------------------------------- proc IOMH_Dup ret endp ;--------------------------------------------------------------- proc IOMH_Close ret endp ;--------------------------------------------------------------- proc IOMH_Sync ret endp ;--------------------------------------------------------------- ; --- Connect functions -------------------------------------------------------- ; int IOMH_open(resmgr_context_t *ctp, io_open_t *msg, ; IOMH_attr_t *attr, IOMH_attr_t *dattr, ; struct _client_info *info); proc IOMH_Open ret endp ;--------------------------------------------------------------- ; --- Other functions ---------------------------------------------------------- ; void iofunc_func_init(uint nconn, resmgr_connect_funcs_t *connect, ; uint nio, resmgr_io_funcs_t *io); proc _iofunc_func_init arg nconn, connect, nio, io prologue epilogue ret endp ;--------------------------------------------------------------- ; void iofunc_attr_init(IOMH_attr_t *attr, mode_t mode, ; IOMH_attr_t *dattr, struct _client_info *info); proc _iofunc_attr_init arg attr, mode, dattr, info prologue epilogue ret endp ;---------------------------------------------------------------
22.156566
80
0.379075
a887913a9c314e6b88795600fe5088dd6f4de815
2,565
asm
Assembly
scripts/PokemonMansion2F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
1
2022-02-15T00:19:44.000Z
2022-02-15T00:19:44.000Z
scripts/PokemonMansion2F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
scripts/PokemonMansion2F.asm
opiter09/ASM-Machina
75d8e457b3e82cc7a99b8e70ada643ab02863ada
[ "CC0-1.0" ]
null
null
null
PokemonMansion2F_Script: call Mansion2Script_51fee call EnableAutoTextBoxDrawing ld hl, Mansion2TrainerHeaders ld de, PokemonMansion2F_ScriptPointers ld a, [wPokemonMansion2FCurScript] call ExecuteCurMapScriptInTable ld [wPokemonMansion2FCurScript], a ret Mansion2Script_51fee: ld hl, wCurrentMapScriptFlags bit 5, [hl] res 5, [hl] ret z CheckEvent EVENT_MANSION_SWITCH_ON jr nz, .asm_52016 ld a, $e lb bc, 2, 4 call Mansion2Script_5202f ld a, $54 lb bc, 4, 9 call Mansion2Script_5202f ld a, $5f lb bc, 11, 3 call Mansion2Script_5202f ret .asm_52016 ld a, $5f lb bc, 2, 4 call Mansion2Script_5202f ld a, $e lb bc, 4, 9 call Mansion2Script_5202f ld a, $e lb bc, 11, 3 call Mansion2Script_5202f ret Mansion2Script_5202f: ld [wNewTileBlockID], a predef_jump ReplaceTileBlock Mansion2Script_Switches:: ld a, [wSpritePlayerStateData1FacingDirection] cp SPRITE_FACING_UP ret nz xor a ldh [hJoyHeld], a ld a, $5 ldh [hSpriteIndexOrTextID], a jp DisplayTextID PokemonMansion2F_ScriptPointers: dw CheckFightingMapTrainers dw DisplayEnemyTrainerTextAndStartBattle dw EndTrainerBattle PokemonMansion2F_TextPointers: dw Mansion2Text1 dw PickUpItemText dw Mansion2Text3 dw Mansion2Text4 dw Mansion2Text5 Mansion2TrainerHeaders: def_trainers Mansion2TrainerHeader0: trainer EVENT_BEAT_MANSION_2_TRAINER_0, 0, Mansion2BattleText1, Mansion2EndBattleText1, Mansion2AfterBattleText1 db -1 ; end Mansion2Text1: text_asm ld hl, Mansion2TrainerHeader0 call TalkToTrainer jp TextScriptEnd Mansion2BattleText1: text_far _Mansion2BattleText1 text_end Mansion2EndBattleText1: text_far _Mansion2EndBattleText1 text_end Mansion2AfterBattleText1: text_far _Mansion2AfterBattleText1 text_end Mansion2Text3: text_far _Mansion2Text3 text_end Mansion2Text4: text_far _Mansion2Text4 text_end Mansion3Text6: Mansion2Text5: text_asm ld hl, Mansion2Text_520c2 call PrintText call YesNoChoice ld a, [wCurrentMenuItem] and a jr nz, .asm_520b9 ld a, $1 ld [wDoNotWaitForButtonPressAfterDisplayingText], a ld hl, wCurrentMapScriptFlags set 5, [hl] ld hl, Mansion2Text_520c7 call PrintText ld a, SFX_GO_INSIDE call PlaySound CheckAndSetEvent EVENT_MANSION_SWITCH_ON jr z, .asm_520bf ResetEventReuseHL EVENT_MANSION_SWITCH_ON jr .asm_520bf .asm_520b9 ld hl, Mansion2Text_520cc call PrintText .asm_520bf jp TextScriptEnd Mansion2Text_520c2: text_far _Mansion2Text_520c2 text_end Mansion2Text_520c7: text_far _Mansion2Text_520c7 text_end Mansion2Text_520cc: text_far _Mansion2Text_520cc text_end
18.860294
113
0.816764
81c3ca6a35af38a52e266c3258706b15942f1351
466
asm
Assembly
oeis/333/A333451.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/333/A333451.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/333/A333451.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A333451: Expansion of golden ratio (1 + sqrt(5))/2 in base 3. ; Submitted by Jon Maiga ; 1,1,2,1,2,0,0,1,1,2,2,0,2,1,2,1,0,2,0,0,1,0,2,1,0,0,1,0,2,0,0,1,0,2,0,1,1,2,2,1,0,2,1,2,0,0,2,2,1,1,1,0,1,1,0,0,1,0,1,2,2,1,1,2,0,0,2,1,0,0,0,2,1,0,0,0,1,2,0,2,1,1,1,2,2,2,0,2,2,0,0,2,0,2,1,1,0,2,2,1 mov $1,390625 mov $2,390625 mov $3,$0 mul $3,7 mov $5,3 lpb $3 add $1,$2 add $2,$1 sub $3,$5 lpe mov $4,3 pow $4,$0 div $2,$4 div $1,$2 lpb $1 mod $1,3 lpe mov $0,$1
20.26087
201
0.549356
770d7b0e27fcaea754a56b8d60ca34460e2d7144
883
asm
Assembly
programs/oeis/106/A106829.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/106/A106829.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/106/A106829.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A106829: Given n shoelaces, each with two aglets; sequence gives number of aglets that must be picked up to guarantee that the probability that no shoelace is left behind is > 1/2. ; 1,2,4,5,7,9,10,12,14,15,17,19,21,22,24,26,28,30,31,33,35,37,39,41,42,44,46,48,50,52,53,55,57,59,61,63,65,66,68,70,72,74,76,78,80,81,83,85,87,89 mov $2,$0 add $2,1 mov $6,$0 lpb $2,1 mov $0,$6 sub $2,1 sub $0,$2 mov $3,$0 mov $8,2 lpb $8,1 mov $0,$3 sub $8,1 add $0,$8 sub $0,1 mul $0,4 add $0,3 cal $0,106744 ; Given n shoelaces, each with two aglets; sequence gives number of aglet pairs that must be picked up to guarantee that the probability that no shoelace is left behind is > 1/2. mov $5,$0 mov $7,$8 lpb $7,1 mov $4,$5 sub $7,1 lpe lpe lpb $3,1 mov $3,0 sub $4,$5 lpe mov $5,$4 sub $5,2 add $1,$5 lpe
24.527778
196
0.604757
df34ba5e2d1bbee9c2a450747fd311bec6f6ce1b
522
asm
Assembly
programs/oeis/084/A084684.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/084/A084684.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/084/A084684.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A084684: Degrees of certain maps. ; 1,2,4,8,13,20,28,38,49,62,76,92,109,128,148,170,193,218,244,272,301,332,364,398,433,470,508,548,589,632,676,722,769,818,868,920,973,1028,1084,1142,1201,1262,1324,1388,1453,1520,1588,1658,1729,1802,1876,1952,2029,2108,2188,2270,2353,2438,2524,2612,2701,2792,2884,2978,3073,3170,3268,3368,3469,3572,3676,3782,3889,3998,4108,4220,4333,4448,4564,4682,4801,4922,5044,5168,5293,5420,5548,5678,5809,5942,6076,6212,6349,6488,6628,6770,6913,7058,7204,7352 pow $0,2 mul $0,3 add $0,5 div $0,4
65.25
448
0.754789
828d2f43f468a26f0d7c34804cde69290af739fe
663
asm
Assembly
oeis/095/A095996.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/095/A095996.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/095/A095996.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A095996: a(n) = largest divisor of n! that is coprime to n. ; Submitted by Jon Maiga ; 1,1,2,3,24,5,720,315,4480,567,3628800,1925,479001600,868725,14350336,638512875,20922789888000,14889875,6402373705728000,14849255421,7567605760000,17717861581875,1124000727777607680000,2505147019375,992717442773183102976,284473896821296875,6829776306569216000000,3784415134680984375,304888344611713860501504000000,10577732774609,265252859812191058636308480000000,122529844256906551386796875,454662159838572707840000000,237852050616348011515546875,1573919128574316119470853062656 add $0,1 mov $3,1 lpb $0 pow $2,2 mul $3,$0 sub $0,1 gcd $2,$3 lpe div $3,$2 mov $0,$3
44.2
479
0.831071
2bf791ac187cf680fb72e5799bc49b56dbac6180
47,061
asm
Assembly
Library/Text/TextSearchSp/tssMethodSpell.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
504
2018-11-18T03:35:53.000Z
2022-03-29T01:02:51.000Z
Library/Text/TextSearchSp/tssMethodSpell.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
96
2018-11-19T21:06:50.000Z
2022-03-06T10:26:48.000Z
Library/Text/TextSearchSp/tssMethodSpell.asm
steakknife/pcgeos
95edd7fad36df400aba9bab1d56e154fc126044a
[ "Apache-2.0" ]
73
2018-11-19T20:46:53.000Z
2022-03-29T00:59:26.000Z
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: UI MODULE: Text FILE: textMethodSpell.asm AUTHOR: Andrew Wilson, Mar 29, 1991 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Description ---- ---- ----------- atw 3/29/91 Initial revision DESCRIPTION: This file contains the handlers for the various spell check methods. $Id: tssMethodSpell.asm,v 1.1 97/04/07 11:19:26 newdeal Exp $ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TextSearchSpell segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CheckWord %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Spell checks the passed word CALLED BY: GLOBAL PASS: bx - ICBuff ds:si - null terminated string to check RETURN: ax - SpellResult DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 11/20/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CheckWord proc near uses cx .enter mov cx, offset checkWordEntryPoint call CallSpellLibrary .leave ret CheckWord endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetErrorFlags %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets the error flags CALLED BY: GLOBAL PASS: bx - handle of ICBuff RETURN: ax - SpellErrorFlagsHigh cx - SpellErrorFlags DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 11/23/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetErrorFlags proc near mov cx, offset getErrorFlagsEntryPoint FALL_THRU CallSpellLibrary GetErrorFlags endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CallSpellLibrary %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Calls the spell library CALLED BY: GLOBAL PASS: cx - offset to variable holding entry point (in dgroup) bx - ICBuff RETURN: whatever from spell lib DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 11/23/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CallSpellLibrary proc near uses bx .enter xchg cx, bx ;CX <- ICBuff ;BX <- offset to entry point variable push es mov ax, segment udata mov es, ax mov ax, es:[bx].low mov bx, es:[bx].high pop es call ProcCallFixedOrMovable .leave ret CallSpellLibrary endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ResetDoubleWordCheck %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Resets the double word check (so if the next word checked is the same as the previous word, no error is generated) CALLED BY: GLOBAL PASS: bx - ICBuff RETURN: nada DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 11/20/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ ResetDoubleWordCheck proc near uses ax, cx .enter mov cx, offset resetDoubleWordCheckEntryPoint call CallSpellLibrary .leave ret ResetDoubleWordCheck endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetTextOffsets %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Checks if there is embedded punctuation in the word CALLED BY: GLOBAL PASS: bx - ICBuff RETURN: ax - offset to first char of word cx - offset to last char in word DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 11/20/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetTextOffsets proc near mov cx, offset getTextOffsetsEntryPoint GOTO CallSpellLibrary GetTextOffsets endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CheckIsWhitespace %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Returns carry set if passed char is whitespace CALLED BY: GLOBAL PASS: ax - char to test (Null bytes are not whitespace) RETURN: z flag clear if whitespace (jne isWhitespace) DESTROYED: nothing PSEUDO CODE/STRATEGY: This page intentionally left blank KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 2/12/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ CheckIsWhitespace proc far uses ax .enter cmp ax, C_GRAPHIC ;Treat graphics escapes as whitespace jz whitespace call LocalIsSpace exit: .leave ret whitespace: or ah, 1 ;Clear the Z flag jmp exit CheckIsWhitespace endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% AdjustTextPtr %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: This routine adjusts the passed text ptr to point to the passed offset CALLED BY: GLOBAL PASS: dx.cx - offset es:di - ptr to text *ds:si - vis text object RETURN: es:di - ptr to text (updated) CX - # consecutive chars at ptr dx.si - new offset DESTROYED: nothing PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 1/ 2/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ AdjustTextPtr proc near uses ax .enter push cx mov ax, es call TS_UnlockTextPtr ;Unlock old text block mov_tr ax, cx ;DX.AX <- text offset call TS_LockTextPtrESDI ;Lock new text block mov_tr cx, ax ; pop si .leave ret AdjustTextPtr endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SkipWhitespace %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: This routine skips whitespace. CALLED BY: GLOBAL PASS: *ds:si - ptr to VisText object ss:bp <- ptr to inherited stack frame ES:DI <- ptr to text DX.AX <- offset into text to start skipping CX <- # chars in this text block RETURN: DI <- -1 if we hit the end of the document (either in real life or because we checked the requisite # chars). - else - ES:DI <- updated to point to first non-whitespace char DX.AX <- updated offset into text DESTROYED: nothing PSEUDO CODE/STRATEGY: This page intentionally left blank KNOWN BUGS/SIDE EFFECTS/IDEAS: WARNING: assumptions about the stack are made in doReset:, do not change the stack usage without first looking at doReset:. REVISION HISTORY: Name Date Description ---- ---- ----------- atw 2/13/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SkipWhitespace proc near uses si, bx class VisTextClass charsToCheck local dword flags local SpellCheckFromOffsetFlags resetSpell local byte .enter inherit far clr resetSpell ; SET BX.BP AS # CHARS TO CHECK (EITHER THE # CHARS PASSED IN, ; OR -1) push bp push si mov_tr si, ax ;DX.AX <- offset into text mov bx, charsToCheck.high test flags, mask SCFOF_CHECK_NUM_CHARS mov bp, charsToCheck.low jnz 10$ mov bx, -1 mov bp, bx ;BX.BP <- An extremely large # chars to check 10$: subdw bxbp, 1 ;Pre-decrement the # chars to check ;This allows us to check the carry in the loop ; below instead of testing the entire dword loopTop: ; DX.SI <- offset into text ; BX.BP <- # chars to check ; ES.DI <- ptr to next char to check SBCS < mov al, es:[di] > SBCS < clr ah > DBCS < mov ax, es:[di] > if DBCS_PCGEOS push ax call LocalGetWordPartType cmp ax, WPT_ALPHA_NUMERIC je haveResult cmp ax, WPT_FULLWIDTH_ALPHA_NUMERIC haveResult: pop ax je exit ;is alpha-numeric, done else call CheckIsWhitespace jz exit endif ;Sit in a loop and skip all the whitespace subdw bxbp, 1 jc endOfDocumentReached ;Exit if no more chars to check. tst ax ;At the end of the document? jz endOfDocumentReached ;Branch if so cmp ax, C_CR je doReset cmp ax, C_PAGE_BREAK je doReset cmp ax, C_SECTION_BREAK je doReset cmp ax, C_TAB je doReset if DBCS_PCGEOS ; ; For spell-checking in DBCS, we treat Japanese (hiragana, ; katakana, and Kanji) as whitespace. However, we want ; to reset the double-word check if we encounter any. ; push ax call LocalGetWordPartType cmp ax, WPT_PUNCTUATION je haveResult2 cmp ax, WPT_SPACE haveResult2: pop ax jne doReset ;branch if not whitespace endif 50$: incdw dxsi ;Inc offset into text LocalNextChar esdi ;Inc ptr to text loop loopTop ;Dec # chars left in this block ; We've reached the end of the text in this block, so unlock it and ; lock the next. mov_tr cx, si ;DX.CX <- offset to text to get pop si ;*DS:SI <- VisText object push si call AdjustTextPtr jmp loopTop doReset: ; We have hit a CR, so return a flag to reset the spell check ; (2 identical words separated by carriage returns or page breaks ; should not be flagged as a repeated word). mov_tr ax, bp mov bp, sp mov bp, ss:[bp]+2 ;Get ptr to stack frame 2 words down ; on the stack mov resetSpell, -1 mov_tr bp, ax jmp 50$ endOfDocumentReached: mov di, -1 ;Return DI=-1 to show that we have reached the ; end of the document exit: mov_tr ax, si ;DX.AX <- offset to non-whitespace char add sp, 2 ; adddw bxbp, 1 ;Add one to # chars to check, as we ; pre-decremented it above. xchg si, bp ;SI <- low word of # chars skipped pop bp movdw charsToCheck, bxsi .leave ret SkipWhitespace endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SkipToWhitespace %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: This routine skips to the next whitespace char. CALLED BY: GLOBAL PASS: *ds:si - ptr to VisText object ss:bp <- ptr to inherited stack frame ES:DI <- ptr to text DX.AX <- offset into text to start skipping CX <- # chars in this text block RETURN: DI <- -1 if we hit the end of the document (either in real life or because we checked the requisite # chars). - else - ES:DI <- updated to point to first non-whitespace char DX.AX <- updated offset into text CX <- # chars updated DESTROYED: nothing PSEUDO CODE/STRATEGY: This page intentionally left blank KNOWN BUGS/SIDE EFFECTS/IDEAS: WARNING: assumptions about the stack are made in doReset:, do not change the stack usage without first looking at doReset:. REVISION HISTORY: Name Date Description ---- ---- ----------- atw 2/13/91 Initial version IP 7/7/94 changed to reset double word check if '.' encountered %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SkipToWhitespace proc near uses si, bx class VisTextClass charsToCheck local dword flags local SpellCheckFromOffsetFlags resetSpell local byte .enter inherit far clr resetSpell ; SET BX.BP AS # CHARS TO CHECK (EITHER THE # CHARS PASSED IN, ; OR -1) push bp push si mov_tr si, ax ;DX.AX <- offset into text mov bx, charsToCheck.high test flags, mask SCFOF_CHECK_NUM_CHARS mov bp, charsToCheck.low jnz 10$ mov bx, -1 mov bp, bx ;BX.BP <- An extremely large # chars to check 10$: subdw bxbp, 1 ;Pre-decrement the # chars to check ;This allows us to check the carry in the loop ; below instead of testing the entire dword clearLoop: clr ax ;Last char was a NULL (so we don't accidentally ; trigger the ellipsis check if the first char ; is a period and AH *happens* to be a ; period also). loopTop: ;Sit in a loop and skip until we hit a ; whitespace, an ellipsis, or the end of the ; document. push cx ; DX.SI <- offset into text ; BX.BP <- # chars to check ; ES:DI <- ptr to next char to check ; AX <- previous char mov cx, ax ;CX = prev char SBCS < mov al, es:[di] > SBCS < clr ah > DBCS < mov ax, es:[di] > tst ax jz endOfDocumentReached if DBCS_PCGEOS push ax call LocalGetWordPartType cmp ax, WPT_PUNCTUATION je haveResult cmp ax, WPT_ALPHA_NUMERIC je haveResult cmp ax, WPT_FULLWIDTH_ALPHA_NUMERIC haveResult: pop ax jne exit ;not alpha-numeric, have "whitespace" else call CheckIsWhitespace jnz exit ;Exit if whitespace endif xchg cx, ax ;CX <- this char ;AX <- last char SBCS < cmp ax, C_ELLIPSIS ;Break after ellipsis > DBCS < cmp ax, C_HORIZONTAL_ELLIPSIS > je exit cmp cx, '.' je doReset jmp 20$ afterReset: cmp ax, '.' ;Break after 2 periods too. je exit 20$: subdw bxbp, 1 jc endOfDocumentReached ;Exit if no more chars to check. adddw dxsi, 1 ;Inc offset into text LocalNextChar esdi ;Inc ptr to text mov ax, cx ;AX = this char becomes next prev char pop cx loop loopTop ;Dec # chars left in this block ; We've reached the end of the text in this block, so unlock it and ; lock the next. mov cx, si ;DX.CX <- offset to text to get pop si ;*DS:SI <- VisText object push si call AdjustTextPtr ;DX.SI <- offset to text jmp clearLoop doReset: ; We have hit a '.', so return a flag to reset the spell check ; (2 identical words separated by '.'should not be flagged as a ; repeated word). xchg ax, bp mov bp, sp mov bp, ss:[bp]+4 ;Get ptr to stack frame 2 words down ; on the stack mov resetSpell, -1 xchg bp, ax jmp afterReset endOfDocumentReached: mov di, -1 ;Return DI=-1 to show that we have reached the ; end of the document exit: pop cx ;get char count mov_tr ax, si ;DX.AX <- offset to non-whitespace char add sp, 2 ; adddw bxbp, 1 ;Add one to # chars to check, as we ; pre-decremented it above. xchg si, bp ;SI <- low word of # chars skipped pop bp movdw charsToCheck, bxsi .leave ret SkipToWhitespace endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetNumCharsInSelection %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets the number of non-optional-hyphen chars in the passed o range CALLED BY: GLOBAL PASS: *ds:si - VisText object RETURN: dx:ax <- # visible chars in selection DESTROYED: ax, dx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 7/29/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetNumCharsInSelection proc near uses bx class VisTextClass .enter call TSL_SelectGetSelection ;dx.ax - selection start ;cx.bx - selection end subdw cxbx, dxax movdw dxax, cxbx .leave ret GetNumCharsInSelection endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% FindWordBoundaryBeforeSelection %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Finds the offset of the beginning of the word that the start of the selection lies in. CALLED BY: GLOBAL PASS: dx.ax - offset of start of selection *ds:si - ptr to text object ss:bx - SpellCheckFromOffsetStruct (for updating # chars to check) RETURN: dx.ax - offset to start of word spanning selection DESTROYED: cx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 12/31/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ FindWordBoundaryBeforeSelection proc far uses es,di, bx DBCS < offsetLow local word > DBCS < wpt local word > .enter ; The user wants to spell check the current selection - we want to ; start the spell check at the beginning of the current word (if we ; are at the start of the text, we just exit). SBCS < mov bp, ax ;DX.BP <- current offset > DBCS < mov offsetLow, ax ;DX.BP <- current offset > loopTop: tst ax jnz doCheck tst dx jz exit ;Branch if at start of text. doCheck: mov cx, bx mov bx, cx ;SS:BX <- ptr to stack frame if not KEYBOARD_ONLY_UI if DBCS_PCGEOS call TS_LockTextPtrESDI ;es:di = text, cx=#before, ax=#after mov ax, es:[di] ;ax = first character in selection call LocalGetWordPartType mov wpt, ax ;save WPT LocalPrevChar esdi ;back one char dec cx ;one less char before jnz haveTextPtr ;if any left, use it mov ax, es ;else, unlock and re-lock call TS_UnlockTextPtr mov ax, offsetLow endif decdw dxax ;DX.AX <- offset to char before call TS_LockTextPtrESDI ; start of selection DBCS <haveTextPtr: > findWordBoundary: ; FIND THE FIRST WORD BOUNDARY (WHITESPACE) BEFORE THE SELECTION. ; ; ES:DI <- ptr to text char to check ; CX <- # chars in text block ; DX.BP <- offset to selection point after current char ; SBCS < mov al, es:[di] > SBCS < clr ah > DBCS < mov ax, es:[di] > EC < LocalIsNull ax ; > EC < ERROR_Z -1 > if DBCS_PCGEOS push ax call LocalGetWordPartType cmp ax, wpt pop ax jne foundBoundary ;not same as 1st char, have "whitespace" else call CheckIsWhitespace ; jnz foundBoundary ;Branch if whitespace endif else ;KEYBOARD_ONLY_UI call TS_LockTextPtrESDI ; start of selection ; ; Decrementing the pointer is not done in Redwood, so that when the ; cursor is the last character of the word, we spell check at the start ; of the following word, not the previous word. ; dec cx ; decrement number of chars before ; ptr, to account for the pointer ; not being decremented findWordBoundary: ; FIND THE FIRST WORD BOUNDARY (WHITESPACE) BEFORE THE SELECTION. ; ; ES:DI <- ptr to text char to check ; CX <- # chars in text block ; DX.BP <- offset to selection point after current char ; mov al, es:[di] tst al ;null, back up to something useful jz tryPreviousChar DBCS <PrintMessage <fix DBCS Redwood>> call CheckIsWhitespace ; jnz foundBoundary ;Branch if whitespace tryPreviousChar: endif ;not REDWOOD incdw ss:[bx].SCFOS_numChars ;Inc # chars to check LocalPrevChar esdi ;Goto next one SBCS < decdw dxbp ; > DBCS < sub offsetLow, 1 ;inline decdw dx.offsetLow > DBCS < sbb dx, 0 > loop findWordBoundary ; ; WE'VE TRIED ALL THE CHARS IN THIS BLOCK - GO TO THE PREVIOUS ONE mov ax, es call TS_UnlockTextPtr SBCS < mov ax, bp > DBCS < mov ax, offsetLow > jmp loopTop foundBoundary: mov ax, es call TS_UnlockTextPtr SBCS < mov_tr ax, bp ;DX.AX <- current offset > DBCS < mov ax, offsetLow ;DX.AX <- current offset > exit: .leave ret FindWordBoundaryBeforeSelection endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetSearchSpellObject %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets the spell object appropriate to the passed GetSearchSpellObjectOption. CALLED BY: GLOBAL PASS: ax - GetSearchSpellObjectOption *ds:si - text object RETURN: ^lcx:dx - optr of object DESTROYED: ax PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 8/26/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetSearchSpellObject proc near uses bp .enter mov_tr bp, ax mov cx, ds:[LMBH_handle] mov dx, si mov ax, MSG_META_GET_OBJECT_FOR_SEARCH_SPELL call SearchSpellObjCallInstanceNoLockNear .leave ret GetSearchSpellObject endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextSpellCheck %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: This method spell checks the current object. CALLED BY: GLOBAL PASS: *ds:si, ds:di - VisTextClass object cx - SpellCheckOptions bp - handle of ICBuff object RETURN: nada PSEUDO CODE/STRATEGY: This page intentionally left blank KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 2/11/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextSpellCheck proc far ; MSG_SPELL_CHECK class VisTextClass .enter sub sp, size SpellCheckFromOffsetStruct ; COPY OVER SpellCheckInfo mov bx, sp mov ax, ss:[bp].SCI_ICBuff mov ss:[bx].SCFOS_ICBuff, ax movdw ss:[bx].SCFOS_numChars, ss:[bp].SCI_numChars, ax movdw ss:[bx].SCFOS_replyOptr, ss:[bp].SCI_replyObj, ax mov di, ss:[bp].SCI_options clr ss:[bx].SCFOS_flags EC < test di, mask SCO_CHECK_SELECTION or mask SCO_CHECK_NUM_CHARS> EC < jz 5$ > EC < jpo 5$ > EC < ERROR SCO_CHECK_SELECTION_AND_NUM_CHARS_BOTH_SET > EC <5$: > test di, mask SCO_CHECK_NUM_CHARS jne setNumCharsFlag test di, mask SCO_CHECK_SELECTION je getOffset ; GET THE NUM CHARS IN THE SELECTION call GetNumCharsInSelection ;DX.AX <- # chars in selection movdw ss:[bx].SCFOS_numChars, dxax setNumCharsFlag: ornf ss:[bx].SCFOS_flags, mask SCFOF_CHECK_NUM_CHARS getOffset: ; DETERMINE APPROPRIATE OFFSET AND OBJECT TO START SPELL CHECK .assert offset SCO_START_OPTIONS eq 0 and di, mask SCO_START_OPTIONS cmp di, SCSO_BEGINNING_OF_DOCUMENT je getFirstObject push bx call TSL_SelectGetSelectionStart ;dx.ax = start of selection pop bx cmp di, SCSO_BEGINNING_OF_SELECTION je 20$ cmp di, SCSO_WORD_BOUNDARY_BEFORE_SELECTION je 10$ ;Must be SCSO_END_OF_SELECTION, so start at the end of the ; selected area test ss:[bx].SCFOS_flags, mask SCFOF_CHECK_NUM_CHARS jz 8$ call GetNumCharsInSelection subdw ss:[bx].SCFOS_numChars, dxax jc skippedToEndOfDocument 8$: call TSL_SelectGetSelectionEnd jmp 20$ 10$: call FindWordBoundaryBeforeSelection 20$: movdw ss:[bx].SCFOS_offset,dxax mov cx, ds:[LMBH_handle] mov dx, si common: ; SEND SPELL CHECK MSG OFF TO THE APPROPRIATE OBJECT (^lCX:DX) mov ax, MSG_VIS_TEXT_SPELL_CHECK_FROM_OFFSET mov bx, cx mov si, dx mov dx, size SpellCheckFromOffsetStruct mov di, mask MF_FORCE_QUEUE or mask MF_INSERT_AT_FRONT or mask MF_STACK mov bp, sp call SearchSpellObjMessageNear exit: add sp, size SpellCheckFromOffsetStruct .leave ret skippedToEndOfDocument: mov ax, MSG_SC_SPELL_CHECK_COMPLETED mov cx, SCR_SELECTION_CHECKED movdw bxsi, ss:[bp].SCI_replyObj mov di, mask MF_FIXUP_DS call ObjMessage jmp exit getFirstObject: mov ax, GSSOT_FIRST_OBJECT call GetSearchSpellObject clr ax clrdw ss:[bx].SCFOS_offset, ax ;Start at beginning of the jmp common ; object. VisTextSpellCheck endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SelectTextAndMakeTarget %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Selects text and makes it the target. CALLED BY: GLOBAL PASS: DX.AX <- offset to text string to select CX <- length of text string to select *DS:SI <- ptr to text object RETURN: nada DESTROYED: ax, dx PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 9/11/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ SelectTextAndMakeTarget proc near uses bp, cx .enter ifdef GPC_SEARCH ; ; show selection at top of window since search and spell dialogs ; are at bottom of screen ; push ax, cx, dx, bp sub sp, size AddVarDataParams mov bp, sp movdw ss:[bp].AVDP_data, 0 mov ss:[bp].AVDP_dataSize, 0 mov ss:[bp].AVDP_dataType, TEMP_VIS_TEXT_SHOW_SELECTION_AT_TOP mov ax, MSG_META_ADD_VAR_DATA call SearchSpellObjCallInstanceNoLockNear add sp, size AddVarDataParams pop ax, cx, dx, bp elseifdef GPC_SPELL push ax, cx, dx, bp sub sp, size AddVarDataParams mov bp, sp movdw ss:[bp].AVDP_data, 0 mov ss:[bp].AVDP_dataSize, 0 mov ss:[bp].AVDP_dataType, TEMP_VIS_TEXT_SHOW_SELECTION_AT_TOP mov ax, MSG_META_ADD_VAR_DATA call SearchSpellObjCallInstanceNoLockNear add sp, size AddVarDataParams pop ax, cx, dx, bp endif push ax, cx, dx mov ax, MSG_META_DISPLAY_OBJECT_FOR_SEARCH_SPELL call SearchSpellObjCallInstanceNoLockNear pop ax, cx, dx sub sp, size VisTextRange mov bp, sp movdw ss:[bp].VTR_start, dxax add ax, cx adc dx, 0 movdw ss:[bp].VTR_end, dxax mov ax, MSG_VIS_TEXT_SELECT_RANGE call SearchSpellObjCallInstanceNoLockNear add sp, size VisTextRange mov ax, MSG_META_GRAB_FOCUS_EXCL ;Give the target to this object call SearchSpellObjCallInstanceNoLockNear mov ax, MSG_META_GRAB_TARGET_EXCL ;Give the target to this object call SearchSpellObjCallInstanceNoLockNear ifdef GPC_SEARCH push ax, bx, cx, di mov cx, TEMP_VIS_TEXT_SHOW_SELECTION_AT_TOP mov ax, MSG_META_DELETE_VAR_DATA mov bx, ds:[LMBH_handle] mov di, mask MF_FORCE_QUEUE call ObjMessage pop ax, bx, cx, di elseifdef GPC_SPELL push ax, bx, cx, di mov cx, TEMP_VIS_TEXT_SHOW_SELECTION_AT_TOP mov ax, MSG_META_DELETE_VAR_DATA mov bx, ds:[LMBH_handle] mov di, mask MF_FORCE_QUEUE call ObjMessage pop ax, bx, cx, di endif .leave ret SelectTextAndMakeTarget endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetWordFromDocumentText %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: This routine gets the next word from the document CALLED BY: GLOBAL PASS: DX.AX - offset into this object's text *DS:SI - VisText object SS:BP - ptr to inherited stack frames RETURN: data copied into unknownWordBuf and wordSize DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 1/ 2/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetWordFromDocumentText proc near uses es, di, cx, bx, dx, ax charsToCheck local dword flags local SpellCheckFromOffsetFlags resetSpell local byte unknownWordBuf local UnknownWordInfo wordSize local word DBCS < searchWPT local word > DBCS < curChar local wchar > .enter inherit far push si mov bx, ax call TS_LockTextPtrESDI mov_tr cx, ax ;CX <- # chars in this block mov si, bx lea bx, unknownWordBuf.UWI_word clr ax ;Clear AX so we don't accidentally ; think we had an ellipsis mov wordSize, ax DBCS < mov searchWPT, -1 > getChar: ; ss:bp - ptr to stack frame ; wordSize = # bytes copied out ; ss:bx - ptr to where to copy word out to ; dx.si - offset into text of text object ; es:di - ptr to text ; ax - last char loaded ; cx - char count push cx mov cx, ax ;CX = prev char DBCS < mov ax, es:[di] ;Get char from text > SBCS < mov al, es:[di] ;Get char from text > SBCS < clr ah > tst ax LONG jz nullTermAndExit ;If EOT, then exit if DBCS_PCGEOS ;------------------------------------------------------------- mov curChar, ax ;save current character > call LocalGetWordPartType cmp ax, WPT_ALPHA_NUMERIC je saveIt cmp ax, WPT_FULLWIDTH_ALPHA_NUMERIC jne checkWPT ;not alpha-numeric, don't save saveIt: cmp searchWPT, -1 jne checkWPT mov searchWPT, ax checkWPT: tst wordSize ;Don't check for word breaks at the jz skipWordBreakChecks ; start of a word. (Z set, fall though ; 'jnz nullTermAndExit') cmp ax, WPT_ALPHA_NUMERIC je checkIt cmp curChar, C_APOSTROPHE_QUOTE je skipWordBreakChecks ; allow apos in word cmp curChar, C_SINGLE_COMMA_QUOTATION_MARK je skipWordBreakChecks ; allow apos in word cmp ax, WPT_PUNCTUATION je checkIt cmp ax, WPT_FULLWIDTH_ALPHA_NUMERIC jne skipWordBreakChecks ;not alpha-numeric, treat as end of ; word checkIt: cmp searchWPT, ax ;different WPT? skipWordBreakChecks: mov ax, curChar jnz nullTermAndExit ;yes, found word delimiter else ;--------------------------------------------------------------------- tst wordSize ;Don't check for word breaks at the jz skipWordBreakChecks ; start of a word. call CheckIsWhitespace ;If whitespace, exit too. jnz nullTermAndExit cmp ax, '(' jz nullTermAndExit ;Break at left parenthesis, so we ; deal with words like "person(s)". skipWordBreakChecks: endif ;--------------------------------------------------------------------- SBCS < mov ss:[bx], al ;Else, store out > DBCS < mov ss:[bx], ax ;Else, store out > incdw dxsi inc wordSize LocalNextChar esdi ; LocalNextChar ssbx ; SBCS < cmp ax, C_ELLIPSIS ;Break after point of ellipsis > DBCS < cmp ax, C_HORIZONTAL_ELLIPSIS > je nullTermAndExit xchg cx, ax ;CX <- this char ;AX <- prev char cmp ax, '.' ;Break after 2 periods in a row jne 20$ cmp cx, '.' je nullTermAndExit 20$: cmp wordSize, SPELL_MAX_WORD_LENGTH je nullTermAndExit mov ax, cx ;AX = this char becomes next prev char pop cx dec cx jne getChar ; We've run out of chars in this block. Unlock it and get the next. mov cx, si ; pop si ; push si ; call AdjustTextPtr ;Returns CX = # chars in text, ; ES:DI = ptr to text ;DX.SI <- offset to text jmp getChar nullTermAndExit: pop cx ;clean up stack pop si ;Restore chunk handle of VisText object SBCS < clr al > SBCS < mov ss:[bx], al > DBCS < clr ax > DBCS < mov ss:[bx], ax > mov ax, es call TS_UnlockTextPtr .leave ret GetWordFromDocumentText endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextSpellCheckFromOffset %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Spell checks this text object from the current offset. CALLED BY: GLOBAL PASS: *ds:si <- VisText object ss:bp <- ptr to SpellCheckFromOffsetStruct RETURN: nada DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 7/24/91 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextSpellCheckFromOffset proc far ; MSG_VIS_TEXT_SPELL_CHECK_FROM_OFFSET class VisTextClass charsToCheck local dword flags local SpellCheckFromOffsetFlags resetSpell local byte ; The variables above are inherited by SkipWhitespace/SkipToWhitespace unknownWordBuf local UnknownWordInfo wordSize local word DBCS < searchWPT local word > DBCS <ForceRef searchWPT > DBCS < curChar local wchar > ; The variables above are inherited by GetWordFromDocumentText oldTextOffset local dword numWordsChecked local word replyOptr local optr mov di, bp .enter mov bx, ds:[si] add bx, ds:[bx].VisText_offset mov al, ds:[bx].VTI_intFlags andnf al, mask VTIF_ACTIVE_SEARCH_SPELL cmp al, ASST_SEARCH_ACTIVE shl offset VTIF_ACTIVE_SEARCH_SPELL jne noSearchActive call SendAbortSearchSpellNotification noSearchActive: andnf ds:[bx].VTI_intFlags, not mask VTIF_ACTIVE_SEARCH_SPELL segmov es, dgroup, cx ; SH 06.01.94 tstdw es:[checkWordEntryPoint] ;If spell checker not loaded, LONG jz endOfDocument ; exit... clr numWordsChecked mov bx, ss:[di].SCFOS_ICBuff call ResetDoubleWordCheck movdw charsToCheck, ss:[di].SCFOS_numChars, ax movdw replyOptr, ss:[di].SCFOS_replyOptr, ax movdw oldTextOffset, -1 mov al, ss:[di].SCFOS_flags mov flags, al ;Clear the flag denoting a spell check ; in progress. movdw dxax, ss:[di].SCFOS_offset push ax call TS_LockTextPtrESDI mov_tr cx, ax ;CX <- # chars after ptr pop ax checkWord: ; ; ES:DI <- ptr to text to spell check ; CX <- # chars after ptr (includes null) ; DX.AX <- current offset into the text ; ; START SPELL CHECKING THE DOCUMENT call SkipWhitespace cmp di, -1 ;If we've reached the end of the je nextObject ; document, branch. tst resetSpell jz noReset call ResetDoubleWordCheck noReset: ; GET THE NEXT WORD FROM THE DOCUMENT call GetWordFromDocumentText ;Returns wordSize as # chars copied out tst wordSize jz nextObject ;If at the end of the document, branch cmp wordSize, SPELL_MAX_WORD_LENGTH ;If word has > 64 chars, jae gotoNext ; skip it. ; SPELL CHECK THE WORD push ax, cx, dx push ds, si segmov ds, ss lea si, unknownWordBuf.UWI_word inc numWordsChecked call CheckWord pop ds, si mov_tr dx, ax call GetErrorFlags ; IF DOUBLE WORD OR A/AN ERROR, HANDLE IT test ax, mask SEFH_AN_ERROR or mask SEFH_A_ERROR jne gotoErrorWithPrevWord test cx, mask SEF_DOUBLE_WORD_ERROR je noPrevWordError gotoErrorWithPrevWord: jmp errorWithPrevWord noPrevWordError: cmp dx, IC_RET_FOUND je popGotoNext cmp dx, IC_RET_PRE_PROC je popGotoNext cmp dx, IC_RET_IGNORED LONG jne misspelledWord popGotoNext: pop ax, cx, dx gotoNext: ; SKIP THE CURRENT WORD AND GO TO THE NEXT ONE ; ; Save offset to current word, in case we have some sort of double word ; error (misuse of a/an, etc) ; movdw oldTextOffset, dxax call SkipToWhitespace cmp di, -1 je nextObject tst resetSpell ; ; If during skipping to the next white space we ; encountered a '.' then we should reset the double word check. ; This takes care of the case "hello(). hello" ; jz checkWord call ResetDoubleWordCheck jmp checkWord ;If still in same object, continue ; checking, else we are at the end of ; this document. nextObject: ; Get the next text object. We want to unlock this one, so send a method ; to the next object via the queue, so this one gets unlocked. We could ; do this faster by doing ObjSwapLocks and such things, but I don't ; like that, and we only send the method when going between objects, ; which isn't that much overhead... mov ax, es call TS_UnlockTextPtr ; Check to see if we've reached the end of a selection we were checking. ; If so, don't go to the next object. test flags, mask SCFOF_CHECK_NUM_CHARS jne endOfDocument ; GET THE NEXT OBJECT TO SPELL CHECK mov ax, GSSOT_NEXT_OBJECT call GetSearchSpellObject jcxz endOfDocument ; START SPELL CHECKING FROM THE BEGINNING OF THE NEXT OBJECT push bp, si movdw axdi, replyOptr sub sp, size SpellCheckFromOffsetStruct mov bp, sp mov ss:[bp].SCFOS_ICBuff, bx movdw ss:[bp].SCFOS_replyOptr, axdi clr ax clrdw ss:[bp].SCFOS_offset, ax mov ss:[bp].SCFOS_flags, al mov ax, MSG_VIS_TEXT_SPELL_CHECK_FROM_OFFSET movdw bxsi, cxdx ;^lBX:SI <- next object mov dx, size SpellCheckFromOffsetStruct mov di, mask MF_FORCE_QUEUE or mask MF_INSERT_AT_FRONT or mask MF_STACK call SearchSpellObjMessageNear add sp, dx pop bp, si jmp exit endOfDocument: ; WE HAVE REACHED THE END OF THE AREA WE WANT TO SPELL CHECK mov cx, SCR_DOCUMENT_CHECKED test flags, mask SCFOF_CHECK_NUM_CHARS je doReply mov cx, SCR_SELECTION_CHECKED cmp numWordsChecked, 1 jne doReply mov cx, SCR_ONE_WORD_CHECKED doReply: mov ax, MSG_SC_SPELL_CHECK_COMPLETED push bp movdw bxsi, replyOptr mov di, mask MF_FIXUP_DS call ObjMessage pop bp exit: .leave ret prevWordTooBig: call ResetDoubleWordCheck ;Reset the spell check so we don't ; get bogus double-word errors. popdw dxax jmp gotoNext errorWithPrevWord: ; We have encountered one of the "previous word" errors: ; A repeated word (e.g. "the the") or a screwed up usage of ; A/An, as in "a hour" or "an fool". We select both words, and ; copy the text into our stack frame. pop ax, cx, dx ;DX.AX <- offset to word pushdw dxax add ax, wordSize ;DX.AX <- offset to end of word subdw dxax, oldTextOffset EC < ERROR_C -1 > ;If words have > 64 chars between them, branch to not display an error tst dx jne prevWordTooBig cmp ax, SPELL_MAX_WORD_LENGTH jae prevWordTooBig mov_tr cx, ax ;CX <- # chars in both words mov ax, es call TS_UnlockTextPtr ;Unlock the text, as we won't use it ; anymore ; SELECT THE 2 WORDS movdw dxax, oldTextOffset call SelectTextAndMakeTarget ; READ THE TEXT INTO THE STACK FRAME movdw dxax, oldTextOffset lea di, unknownWordBuf.UWI_word ;SS:DI <- dest for string push bp sub sp, size VisTextGetTextRangeParameters mov bp, sp movdw ss:[bp].VTGTRP_range.VTR_start, dxax add ax, cx adc dx, 0 movdw ss:[bp].VTGTRP_range.VTR_end, dxax mov ss:[bp].VTGTRP_textReference.TR_type, TRT_POINTER movdw ss:[bp].VTGTRP_pointerReference,ssdi clr ss:[bp].VTGTRP_flags mov ax, MSG_VIS_TEXT_GET_TEXT_RANGE call SearchSpellObjCallInstanceNoLockNear add sp, size VisTextGetTextRangeParameters pop bp ; CHANGE ANY UNDESIRABLE CHARACTERS TO SPACES push ds, si lea si, unknownWordBuf.UWI_word segmov ds, ss ;DS:SI <- ptr to word next: lodsb tst al jz EOS EC < cmp al, C_CR > EC < ERROR_Z MISSPELLED_WORDS_CONTAINED_INVALID_CHAR > EC < cmp al, C_PAGE_BREAK > EC < ERROR_Z MISSPELLED_WORDS_CONTAINED_INVALID_CHAR > EC < cmp al, C_SECTION_BREAK > EC < ERROR_Z MISSPELLED_WORDS_CONTAINED_INVALID_CHAR > cmp al, C_GRAPHIC ;Convert graphics chars jne next mov {byte} ds:[si][-1], ' ' jmp next EOS: pop ds, si popdw dxcx ; subdw dxcx, oldTextOffset ;DX.CX <- # chars in prev word adddw dxcx, charsToCheck ;DX.CX <- # chars to check clr ax ; from start of prev word ;AX <- offset to start of text ; to display in spell box jmp misspelledWordCommon misspelledWord: ; SELECT THE WORD AND GIVE THE OBJECT THE TARGET. mov ax, es call TS_UnlockTextPtr ; pop di, cx, dx ;DX.DI <- offset to string call GetTextOffsets ;CX <- offset to right edge of string ;AX <- offset to left edge of string sub cx, ax inc cx ;CX <- # chars in string add ax, di ;DX.AX <- offset into text to start ; selecting call SelectTextAndMakeTarget ; SETUP UnknownWordInfo<> AND SEND IT TO THE SPELL BOX call GetTextOffsets mov di, cx ;DI <- offset to last char in string if DBCS_PCGEOS shl di, 1 ; char offset -> byte offset mov {wchar} unknownWordBuf.UWI_word[di][(size wchar)],0 else mov unknownWordBuf.UWI_word[di][1],0 ;Null terminate the string endif movdw dxcx, charsToCheck misspelledWordCommon: ; DX.CX <- # chars left to check ; AX <- offset from start of UWI_word to display word ; SS:BP <- stack frame ;Set the flag denoting a spell check ; in progress. movdw unknownWordBuf.UWI_numChars, dxcx if DBCS_PCGEOS shl ax, 1 ;char offset -> byte offset endif add ax, offset UWI_word ;AX <- offset to string from start of ; unknownWordBuf. mov unknownWordBuf.UWI_offset, ax push bp mov ax, MSG_VIS_TEXT_SET_SPELL_IN_PROGRESS call SearchSpellObjCallInstanceNoLockNear pop bp push bp, si movdw bxsi, replyOptr lea bp, unknownWordBuf mov dx, size UnknownWordInfo mov ax, MSG_SC_UNKNOWN_WORD_FOUND mov di, mask MF_FIXUP_DS or mask MF_STACK call SearchSpellObjMessageNear pop bp, si jmp exit VisTextSpellCheckFromOffset endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextReplaceSelectedWords %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Currently just calls MSG_VIS_TEXT_REPLACE_SELECTION and sends output message when done. CALLED BY: MSG_VIS_TEXT_REPLACE_SELECTED_WORDS PASS: *ds:si = VisTextClass object ds:di = VisTextClass instance data ss:bp = ReplaceSelectedWordParameters RETURN: DESTROYED: SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- TJ 10/ 5/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextReplaceSelectedWords proc far ; MSG_THES_REPLACE_SELECTED_WORDS class VisTextClass uses ax, cx, dx, bp .enter push bp ; ; if the the word has not been selected, select the word on the ; cursor, so that the the MSG_VIS_TEXT_REPLACE_SELECTION has a ; selection to replace and does not just become an insert ; ; CP 1/94 ; mov cx, VTKF_SELECT_WORD mov ax, MSG_VIS_TEXT_DO_KEY_FUNCTION call SearchSpellObjCallInstanceNoLockNear pop bp mov bx, ss:[bp].RSWP_string ; bx = string blockh call MemLock ; ax = string segment push bp, bx mov dx, ax ; dx:bp -> string clr bp mov ax, MSG_VIS_TEXT_REPLACE_SELECTION clr cx call SearchSpellObjCallInstanceNoLockNear pop bp, bx call MemFree ; ; Now we need to send a message out to the output telling it we're done ; push bp ; Save frame ptr again movdw bxsi, ss:[bp].RSWP_output ; bx.si <- output mov ax, ss:[bp].RSWP_message ; ax <- message to send ; cx == block handle ; dx == size of text clr di ; No flags call ObjMessage ; Send the notification pop bp .leave ret VisTextReplaceSelectedWords endm COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% VisTextSelectWord %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: If no current selection, selects the word nearest the cursor, Else does nothing. CALLED BY: MSG_THES_SELECT_WORD PASS: *ds:si = VisTextClass object ds:di = VisTextClass instance data ss:bp = SelectWordParameters RETURN: DESTROYED: SIDE EFFECTS: PSEUDO CODE/STRATEGY: REVISION HISTORY: Name Date Description ---- ---- ----------- TJ 10/16/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ VisTextSelectWord proc far ;MSG_THES_SELECT_WORD uses ax, cx, dx, bp localRange local VisTextRange objectOffset local word .enter mov di, ss:[bp] mov objectOffset, si ; get the selection range push bp mov dx, ss ; dx:bp -> VisTextRange to fill lea bp, localRange mov ax, MSG_VIS_TEXT_GET_SELECTION_RANGE call SearchSpellObjCallInstanceNoLockNear pop bp ; If there is a selection (start and end are different) then exit movdw dxax, localRange.VTR_start movdw cxbx, localRange.VTR_end cmpdw dxax, cxbx jne exit ; if SWP_type = nonzero then select numChars from cursor position tst ss:[di].SWP_type jz leftEdge clr cx mov bx, ss:[di].SWP_numChars subdw dxax, cxbx movdw localRange.VTR_start, dxax jmp doSelect leftEdge: ; Else select the (numChars) characters past the left end of the ; word that the cursor's currently in the middle of... mov si, objectOffset ; ds:si -> object call SelectByModeWordFar ; dx.ax = start of word to select movdw localRange.VTR_start, dxax clr cx mov bx, ss:[di].SWP_numChars; cx.bx = num chars to select adddw dxax, cxbx ; dx.ax = end of range to select movdw localRange.VTR_end, dxax doSelect: push bp, di lea bp, localRange ; ss:bp -> localRange mov ax, MSG_VIS_TEXT_SELECT_RANGE mov dx, size VisTextRange call SearchSpellObjCallInstanceNoLockNear pop bp, di exit: ; ; Now we need to send a message out to the output telling it we're done ; push bp ; Save frame ptr again movdw bxsi, ss:[di].SWP_output ; bx.si <- output mov ax, ss:[di].SWP_message ; ax <- message to send ; cx == block handle ; dx == size of text clr di ; No flags call ObjMessage ; Send the notification pop bp .leave ret VisTextSelectWord endp TextSearchSpell ends TextControlInit segment resource COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TextSetSpellLibrary %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Sets the handle of the spell library to make calls to. CALLED BY: GLOBAL PASS: bx - handle of spell library RETURN: nada DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 11/20/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ TextSetSpellLibrary proc far uses ax, cx, ds .enter mov ax, segment udata mov ds, ax tst bx jz exiting ; Get various entry points for the calls we will make mov ax, SROUT_CHECK_WORD call GetLibraryEntry movdw ds:[checkWordEntryPoint], cxax mov ax, SROUT_RESET_SPELL_CHECK call GetLibraryEntry movdw ds:[resetDoubleWordCheckEntryPoint], cxax mov ax, SROUT_GET_TEXT_OFFSETS call GetLibraryEntry movdw ds:[getTextOffsetsEntryPoint], cxax mov ax, SROUT_GET_ERROR_FLAGS call GetLibraryEntry movdw ds:[getErrorFlagsEntryPoint], cxax exit: .leave ret exiting: clrdw ds:[checkWordEntryPoint], bx clrdw ds:[resetDoubleWordCheckEntryPoint], bx clrdw ds:[getTextOffsetsEntryPoint], bx clrdw ds:[getErrorFlagsEntryPoint], bx jmp exit TextSetSpellLibrary endp COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetLibraryEntry %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% SYNOPSIS: Gets the library entry point CALLED BY: GLOBAL PASS: ax - library entry to get RETURN: cx.ax - library entry DESTROYED: nada PSEUDO CODE/STRATEGY: KNOWN BUGS/SIDE EFFECTS/IDEAS: REVISION HISTORY: Name Date Description ---- ---- ----------- atw 11/23/92 Initial version %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@ GetLibraryEntry proc near .enter mov cx, bx call ProcGetLibraryEntry xchg cx, bx .leave ret GetLibraryEntry endp TextControlInit ends
25.843493
79
0.622957
8d656cb678607b20d372ce4e0210c27947c0c842
369
asm
Assembly
programs/oeis/094/A094795.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/094/A094795.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/094/A094795.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A094795: a(n) = (1/n!)*A023043(n). ; 265,2119,9403,30637,81901,190435,398959,770713,1395217,2394751,3931555,6215749,9513973,14158747,20558551,29208625,40702489,55744183,75161227,99918301,131131645,170084179,218241343,277267657,349044001,435685615 lpb $0 mov $2,$0 sub $0,1 seq $2,94794 ; a(n) = (1/n!)*A001689(n). add $1,$2 lpe mul $1,6 add $1,265 mov $0,$1
28.384615
211
0.712737
4488c8b52dc5f9e20b80409daec6389df60d028b
259
asm
Assembly
programs/oeis/158/A158799.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
1
2021-03-15T11:38:20.000Z
2021-03-15T11:38:20.000Z
programs/oeis/158/A158799.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/158/A158799.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A158799: a(0)=1, a(1)=2, a(n)=3 for n>=2. ; 1,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3 sub $0,2 clr $0,$0 mov $1,$0 add $1,3
32.375
175
0.494208
8869d3ee58852c989be7e815766412ff58a484c2
16,828
asm
Assembly
Games/banchorce/source/boss.asm
CiaranGruber/Ti-84-Calculator
96742a4a2b9e21aa9d675575dc7e4f26365430c0
[ "MIT" ]
1
2019-03-31T11:49:12.000Z
2019-03-31T11:49:12.000Z
Games/banchorce/source/boss.asm
CiaranGruber/Ti-84-Calculator
96742a4a2b9e21aa9d675575dc7e4f26365430c0
[ "MIT" ]
null
null
null
Games/banchorce/source/boss.asm
CiaranGruber/Ti-84-Calculator
96742a4a2b9e21aa9d675575dc7e4f26365430c0
[ "MIT" ]
1
2020-03-09T13:21:19.000Z
2020-03-09T13:21:19.000Z
;---------------------------------------------------------------; ; ; ; Banchor ; ; Boss Routines ; ; ; ;---------------------------------------------------------------; ;------------------------------------------------ ; iniBoss - start a boss encounter ; input: HL => x coord entry in warp ;------------------------------------------------ iniBoss: ld a,(hl) srl a srl a srl a ld (demon),a dec a push af call loadBossGfx call clearAnimTable call clearBulletTable call clearDemonTable call clearEnemyTable REDRAW_HUD() xor a ld (hurt),a ld (playerDir),a ld (dCnt),a ld (dFlags),a ld (dHurt),a ld hl,B_INI_YX ld (y),hl pop hl ld l,3 mlt hl ld de,bossIniTable add hl,de ld de,(hl) ex de,hl ld de,finishIniBoss push de jp (hl) finishIniBoss: #ifndef INVINCIBLE ld (__demonDamage),a ld a,b ld (__demonBulletDamage),a #endif ld (__doDemon),ix ld (__drawDemon),de ld (__finishedDemon),hl ; do warp animation call fadeOut call drawMap call vramFlip call fadeIn ; fall through to mainBossLoop ;------------------------------------------------ ; main boss loop ;------------------------------------------------ mainBossLoop: ld hl,frame inc (hl) ld hl,mainBossLoop ld (__pauseJump),hl call keyScan ld hl,hurt ld a,(hl) or a jr z,mdlAfterHurt dec (hl) mdlAfterHurt: ld a,(attacking) or a jr z,checkPlayerMovementD inc a jr nz,afterPlayerMovementD checkPlayerMovementD: ld a,(kbdG7) push af bit kbitUp,a call nz,dPlayerUp pop af push af bit kbitDown,a call nz,dPlayerDown pop af push af bit kbitLeft,a call nz,dPlayerLeft pop af push af bit kbitRight,a call nz,dPlayerRight pop af or a jr z,afterPlayerMovementD ld hl,walkCnt inc (hl) afterPlayerMovementD: ld a,(kbdG1) bit kbitMode,a jp nz,pauseGame #ifdef BOSS_ESCAPE ; demon escape key for debugging purposes bit kbitGraph,a jp nz,demonFinished #endif bit kbit2nd,a ld hl,afterAttackingDemon jp nz,tryAttacking xor a ld (attacking),a afterAttackingDemon: ; Move demon __doDemon = $+1 call $000000 ; Check sword/demon collisions call loadDemonToCollide2 ld hl,dHurt ld a,(attacking) or a jr z,playerNotAttackingDemon inc a jr z,playerNotAttackingDemon push hl call loadSwordToCollide1 call checkCollision pop hl jr nc,playerNotAttackingDemon inc (hl) ld a,(attackStrength) ld de,0 \ ld e,a ld hl,(dHealth) or a sbc hl,de ld (dHealth),hl jp c,demonFinished jr afterCheckSDCollision playerNotAttackingDemon: ld (hl),0 afterCheckSDCollision: ; Check player/demon collisions call loadPlayerToCollide1 call checkCollision jr nc,afterCheckPDCollision ld a,(hurt) or a jr nz,afterCheckPDCollision #ifndef INVINCIBLE __demonDamage = $+1 ld b,$00 call calculateDamage call decPlayerHearts ld a,INI_HURT ld (hurt),a #endif afterCheckPDCollision: ; Check player/demon object collisions ld b,MAX_DEMON_OBJECTS ld ix,demonTable checkPDCollisions: push bc ld a,(ix+D_DIR) or a jr z,endCheckPDCollisions call loadBulletToCollide2 call checkCollision jr nc,endCheckPDCollisions ld a,(hurt) or a jr nz,endCheckPDCollisions #ifndef INVINCIBLE __demonBulletDamage = $+1 ld b,$00 call calculateDamage call decPlayerHearts ld a,INI_HURT ld (hurt),a #endif endCheckPDCollisions: pop bc ld de,DEMON_ENTRY_SIZE add ix,de djnz checkPDCollisions call drawMap __drawDemon = $+1 call $000000 call drawDemonObjects call drawPlayer ld a,(__redrawHud) or a call nz,drawHud call vramFlip ld a,(hearts) or a jp nz,mainBossLoop jp playerDead ;------------------------------------------------ ; Finished ;------------------------------------------------ demonFinished: xor a ld (attacking),a ld (demon),a ld (frame),a ld hl,(__drawDemon) ld (__drawDemonDeath),hl ; boss death animation ; first, pause for a bit call drawMap __drawDemonDeath = $+1 call $000000 call drawPlayer call vramFlip ld bc,100000 call waitBC ; do some explosions call clearAnimTable ld bc,16*256+0 ld hl,bossExplodeTable bossExplodeLoop: bit 0,b jr nz,noNewBossExplosion ld a,c cp 4 jr nc,noNewBossExplosion inc c push bc ld bc,(dy) add a,(hl) add a,b ld b,a inc hl ld a,(hl) add a,c ld c,a inc hl push hl call newAnim pop hl pop bc noNewBossExplosion: push bc push hl call drawMap call drawPlayer call drawAnims call vramFlip call updateAnims ld bc,10000 call waitBC pop hl pop bc djnz bossExplodeLoop ld bc,100000 call waitBC ; run routine to get all demon finished values (different for each demon) __finishedDemon = $+1 call $000000 ld hl,demonWarp ld (hl),a inc hl ld (hl),b inc hl ld (hl),c ex de,hl call addGold ld a,(ix) ; A = Number of change list entries to add or a jr z,noDemonChanges ld b,a inc ix doDemonChanges: push bc ld a,(ix+0) ld b,(ix+1) ld c,(ix+2) call addToChangeList pop bc ld de,3 add ix,de djnz doDemonChanges noDemonChanges: ; player health to max ld a,(maxHearts) ld (hearts),a ld a,INI_HEART_LEVEL ld (heartLevel),a ; open top of boss room ld hl,map+COLS+COLS+1 ld de,map+1 ld bc,COLS-2 ldir ; walk the player out of the room xor a ld (playerDir),a bossVictoryWalk: call drawMap ld a,HUD_COUNT_MAX call drawHud call drawPlayer call vramFlip ld hl,walkCnt inc (hl) ld a,(y) dec a ld (y),a jr nz,bossVictoryWalk ; reload standard tileset call loadStdGfx ; warp back to dungeon ld hl,demonWarp-1 jp warpToMap ;------------------------------------------------ ; drawBoss - Draw 16x16 demon sprite ; input: HL => Sprite ; output: none ;------------------------------------------------ drawBoss: ld a,(dHurt) or a ; is the boss being attacked? jr z,drawBossStart ; if not, draw normally ld a,(frame) and %00000001 jr z,drawBossStart ; only flash boss white every 2nd frame ; modify the boss sprite to be all white ld de,tempSprite push de ld b,0 ; actually 256 LOL drawBossModify: ld a,(hl) or a jr z,drawBossModifyWrite ld a,COLOUR_WHITE drawBossModifyWrite: ld (de),a inc hl inc de djnz drawBossModify pop hl drawBossStart: ld b,4 ld de,(dy) ld ix,bossDrawTable drawBossLoop: push bc push hl push de push ix ld b,d ld d,e ld e,b call drawSprite pop ix pop de ld a,d add a,(ix) ld d,a ld a,e add a,(ix+1) ld e,a inc ix inc ix pop hl ld bc,64 add hl,bc pop bc djnz drawBossLoop ret ;------------------------------------------------ ; drawDemonObjects - Draw demon objects ; input: none ; output: none ;------------------------------------------------ drawDemonObjects: ld ix,demonTable ld b,MAX_DEMON_OBJECTS drawDemonObjectsLoop: push bc push ix ld a,(ix+D_DIR) or a jr z,endDrawDemonObjectsLoop ld e,(ix+D_X) ld d,(ix+D_Y) ld hl,sprBossBullet call drawSprite endDrawDemonObjectsLoop: pop ix pop bc ld de,DEMON_ENTRY_SIZE add ix,de djnz drawDemonObjectsLoop ret ;------------------------------------------------ ; loadDemonToCollide2 - Load demon info to (collide2) ; input: none ; output: none ;------------------------------------------------ loadDemonToCollide2: ld hl,collide2 ld a,(dx) ld (hl),a inc hl ld (hl),16 inc hl ld a,(dy) ld (hl),a inc hl ld (hl),16 ret ;------------------------------------------------ ; clearDemonTable - Clear demonTable ; input: none ; output: none ;------------------------------------------------ clearDemonTable: ld hl,demonTable ld b,MAX_DEMON_OBJECTS*DEMON_ENTRY_SIZE jp _ld_hl_bz ;------------------------------------------------ ; getEmptyDemonEntry - Try to find an empty entry in demonTable ; input: none ; output: HL => Start of entry (if one was found) ; CA = 1 if no entry was empty ;------------------------------------------------ getEmptyDemonEntry: ld hl,demonTable ld b,MAX_DEMON_OBJECTS ld de,DEMON_ENTRY_SIZE findEmptyDemonEntry: ld a,(hl) or a ret z add hl,de djnz findEmptyDemonEntry scf ret ;------------------------------------------------ ; getNumBossObjects - check the number of active boss objects/bullets ; input: none ; output: A = result ;------------------------------------------------ getNumBossObjects: ld hl,demonTable ld bc,MAX_DEMON_OBJECTS*256+0 ld de,DEMON_ENTRY_SIZE countBossObjects: ld a,(hl) or a jr z,countBossObjectsNext inc c countBossObjectsNext: add hl,de djnz countBossObjects ld a,c ret ;------------------------------------------------ ; moveDemonObjectsNormal - Move all demon objects with standard angle code ; input: C = speed (same as values used in moveDir16) ; output: none ;------------------------------------------------ moveDemonObjectsNormal: ld b,MAX_DEMON_OBJECTS ld ix,demonTable moveDemonObjectsLoop: push bc ld b,c ld a,(ix+D_DIR) or a jr z,endMoveDemonObjectsLoop call moveDemonObject endMoveDemonObjectsLoop: pop bc ld de,DEMON_ENTRY_SIZE add ix,de djnz moveDemonObjectsLoop ret ;------------------------------------------------ ; moveDemonObject - Move a demon object ; input: IX => Start of object entry ; B = speed (same as values used in moveDir16) ; output: IX => Start of object entry ;------------------------------------------------ moveDemonObject: ld a,(ix+D_DIR) dec a call moveDir16 ld a,(ix+E_X) cp COLS*8 jr c,demonObjectCheckY cp -8 jr c,demonObjectOffScreen demonObjectCheckY: ld a,(ix+D_Y) cp ROWS*8 ret c cp -8 ret nc demonObjectOffScreen: ld (ix+D_DIR),0 ret ;------------------------------------------------ ; getDemonAngle - Get angle between demon & player ; input: none ; output: A = Angle ;------------------------------------------------ getDemonAngle: call swapDemonXY ld ix,dy-1 call getAngle ; Fall through to swapDemonXY and return ;------------------------------------------------ ; swapDemonXY - Swap Demon X & Y coordinates ; input: none ; output: none ;------------------------------------------------ swapDemonXY: ld hl,(dy) ld e,l ld l,h ld h,e ld (dy),hl ret ;------------------------------------------------ ; checkBossOnScreen - check to make sure boss is properly on-screen ; input: none ; output: none ;------------------------------------------------ checkBossOnScreen: ld hl,dy ld a,(hl) cp (ROWS*8)-16 jr c,bossOnScreen1 ld (hl),(ROWS*8)-16 bossOnScreen1: cp 8 jr nc,bossOnScreen2 ld (hl),8 bossOnScreen2: inc hl ; HL => Demon X pos ld a,(hl) cp (COLS*8)-16-8 jr c,bossOnScreen3 ld (hl),(COLS*8)-16-8 bossOnScreen3: cp 8 ret nc ld (hl),8 ret ;------------------------------------------------ ; loadBossGfx - load the tile data, load the boss sprites, load the boss room to (map) ; input: A = boss # ; output: none ;------------------------------------------------ loadBossGfx: push af add a,GFX_FILE_BOSS_FLOORS push af call getGfxFile pop bc ld hl,tileset ex de,hl push hl ld ix,huffTree call huffExtr ; unpack floor tiles pop hl ld de,tileset+(4*64) ld b,GFX_FILE_BOSS_WALLS ld ix,huffTree call huffExtr ; unpack wall tiles pop af add a,GFX_FILE_BOSS_SPRITES push af call getGfxFile pop bc ld hl,sprBoss ex de,hl ld ix,huffTree call huffExtr ; unpack boss sprites ld hl,bossRoom ld de,map ld bc,TILE_DATA_SIZE ldir ret ;------------------------------------------------ ; Initialisation routine pointers ;------------------------------------------------ bossIniTable: .dl iniHeath,iniDezemon,iniWendeg,iniBelkath,iniAnazar,iniMargoth,iniDurcrux,iniBanchor .end
26.838915
91
0.416686
369667c839489456d1c73f28ac620eb2d15a42b3
72
asm
Assembly
asm/testy6.asm
icefoxen/lang
628185020123aabe4753f96c6ab4378637a2dbf5
[ "MIT" ]
null
null
null
asm/testy6.asm
icefoxen/lang
628185020123aabe4753f96c6ab4378637a2dbf5
[ "MIT" ]
null
null
null
asm/testy6.asm
icefoxen/lang
628185020123aabe4753f96c6ab4378637a2dbf5
[ "MIT" ]
null
null
null
global main main: pusha push 0 push 1 pop ebx pop eax popa ret
6
11
0.666667
c9eec8c45c5d85eef45e5ce46870436fe84b72a3
426
asm
Assembly
oeis/188/A188225.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/188/A188225.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/188/A188225.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A188225: Number of ways to select 15 knights from n knights sitting at a round table if no adjacent knights are chosen. ; Submitted by Jamie Morken(s3.) ; 2,31,256,1496,6936,27132,93024,286824,810084,2124694,5230016,12183560,27041560,57500460,117675360,232676280,445962870,830905245,1508593920,2674776720,4639918800,7887861960,13160496960,21578373360,34810394760 mov $1,$0 add $0,14 bin $0,$1 add $1,30 mul $0,$1 div $0,15
38.727273
209
0.788732
e9d2be777fcc63d12051ae5c12496720f9395547
9,759
asm
Assembly
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1729.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
9
2020-08-13T19:41:58.000Z
2022-03-30T12:22:51.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1729.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
1
2021-04-29T06:29:35.000Z
2021-05-13T21:02:30.000Z
Transynther/x86/_processed/NONE/_xt_/i7-7700_9_0xca_notsx.log_21829_1729.asm
ljhsiun2/medusa
67d769b8a2fb42c538f10287abaf0e6dbb463f0c
[ "MIT" ]
3
2020-07-14T17:07:07.000Z
2022-03-21T01:12:22.000Z
.global s_prepare_buffers s_prepare_buffers: push %r8 push %rax push %rbp push %rbx push %rcx push %rdi push %rdx push %rsi lea addresses_WT_ht+0x139ac, %rsi lea addresses_UC_ht+0x13f4c, %rdi nop nop nop nop nop and %rbx, %rbx mov $98, %rcx rep movsb nop nop nop nop sub $15222, %rdx lea addresses_D_ht+0x1908a, %r8 nop nop nop nop cmp %rax, %rax mov (%r8), %rbx nop nop nop nop nop dec %rcx lea addresses_normal_ht+0xe3e1, %rsi lea addresses_normal_ht+0x1383e, %rdi nop nop nop nop sub $32750, %rbp mov $34, %rcx rep movsl nop nop nop sub $27795, %rdx lea addresses_WC_ht+0xb11c, %rbx clflush (%rbx) nop nop nop sub $59845, %rcx movb (%rbx), %r8b nop nop nop nop nop xor $47420, %r8 lea addresses_normal_ht+0xe60c, %rcx nop nop nop nop nop and %rdi, %rdi movb (%rcx), %al add %rdi, %rdi lea addresses_WT_ht+0xf8c, %rcx inc %rbp mov $0x6162636465666768, %rax movq %rax, %xmm6 vmovups %ymm6, (%rcx) nop inc %rbp lea addresses_normal_ht+0x1113c, %rbp nop nop nop nop nop cmp %rbx, %rbx mov $0x6162636465666768, %r8 movq %r8, %xmm1 vmovups %ymm1, (%rbp) nop nop sub %rbp, %rbp lea addresses_WC_ht+0x1e356, %rsi lea addresses_WT_ht+0xcf4c, %rdi nop nop nop and %r8, %r8 mov $55, %rcx rep movsl cmp $41918, %rdx lea addresses_normal_ht+0xec0c, %rsi lea addresses_D_ht+0x12ae6, %rdi nop nop nop nop nop and %rdx, %rdx mov $84, %rcx rep movsq xor %rbx, %rbx lea addresses_A_ht+0xf60c, %rax inc %rbx movb $0x61, (%rax) nop nop sub %rcx, %rcx lea addresses_D_ht+0x2c0c, %rsi lea addresses_WT_ht+0x1ea0c, %rdi clflush (%rdi) nop nop nop nop nop and %rbx, %rbx mov $90, %rcx rep movsq xor %rbx, %rbx lea addresses_UC_ht+0x1350c, %rbx nop nop nop nop nop inc %rbp mov $0x6162636465666768, %rax movq %rax, %xmm3 movups %xmm3, (%rbx) nop nop nop xor $26979, %rbp lea addresses_UC_ht+0xed0c, %rsi lea addresses_A_ht+0x13e0c, %rdi nop nop nop nop nop xor %rbx, %rbx mov $62, %rcx rep movsl nop nop sub %rbx, %rbx lea addresses_normal_ht+0x1c60c, %rsi lea addresses_D_ht+0x196c, %rdi nop nop lfence mov $82, %rcx rep movsw nop nop nop nop dec %rcx pop %rsi pop %rdx pop %rdi pop %rcx pop %rbx pop %rbp pop %rax pop %r8 ret .global s_faulty_load s_faulty_load: push %r11 push %r12 push %r13 push %r8 push %rbp push %rdi push %rsi // Store lea addresses_PSE+0x1d5b3, %rsi nop cmp $23359, %r11 movw $0x5152, (%rsi) nop nop nop nop xor $5113, %r13 // Store mov $0xd6c, %r12 nop nop nop and %r11, %r11 mov $0x5152535455565758, %r13 movq %r13, %xmm5 vmovups %ymm5, (%r12) sub $46624, %rsi // Store mov $0x30c, %r13 clflush (%r13) nop nop nop nop xor $54869, %r8 movw $0x5152, (%r13) nop nop nop inc %r13 // Store lea addresses_A+0x17384, %rbp clflush (%rbp) nop nop sub $39989, %r12 movl $0x51525354, (%rbp) nop nop nop nop nop sub $44373, %rdi // Store lea addresses_UC+0xe60c, %rbp nop nop nop nop inc %rsi mov $0x5152535455565758, %r11 movq %r11, %xmm4 movups %xmm4, (%rbp) nop nop nop nop xor %r12, %r12 // Store lea addresses_A+0x8c1c, %r13 nop dec %rsi movw $0x5152, (%r13) nop nop nop nop add %rsi, %rsi // Store lea addresses_UC+0x1113c, %r12 nop nop nop nop nop xor %rdi, %rdi mov $0x5152535455565758, %r11 movq %r11, %xmm5 vmovups %ymm5, (%r12) nop nop nop nop cmp $20607, %rdi // Store lea addresses_normal+0x1cecc, %r11 nop nop nop sub $3476, %rsi movw $0x5152, (%r11) nop and %r11, %r11 // Faulty Load lea addresses_PSE+0x10e0c, %r13 nop xor $48385, %r12 mov (%r13), %r11w lea oracles, %r8 and $0xff, %r11 shlq $12, %r11 mov (%r8,%r11,1), %r11 pop %rsi pop %rdi pop %rbp pop %r8 pop %r13 pop %r12 pop %r11 ret /* <gen_faulty_load> [REF] {'src': {'NT': False, 'AVXalign': True, 'size': 32, 'congruent': 0, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} {'dst': {'NT': True, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': False, 'type': 'addresses_PSE'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4, 'same': False, 'type': 'addresses_P'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 8, 'same': False, 'type': 'addresses_P'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 4, 'congruent': 3, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 7, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 2, 'same': False, 'type': 'addresses_A'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4, 'same': False, 'type': 'addresses_UC'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 6, 'same': False, 'type': 'addresses_normal'}, 'OP': 'STOR'} [Faulty Load] {'src': {'NT': False, 'AVXalign': False, 'size': 2, 'congruent': 0, 'same': True, 'type': 'addresses_PSE'}, 'OP': 'LOAD'} <gen_prepare_buffer> {'src': {'congruent': 5, 'same': False, 'type': 'addresses_WT_ht'}, 'dst': {'congruent': 5, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 8, 'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'LOAD'} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'REPM'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 3, 'same': False, 'type': 'addresses_WC_ht'}, 'OP': 'LOAD'} {'src': {'NT': False, 'AVXalign': False, 'size': 1, 'congruent': 11, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'LOAD'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 7, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'STOR'} {'dst': {'NT': False, 'AVXalign': False, 'size': 32, 'congruent': 4, 'same': False, 'type': 'addresses_normal_ht'}, 'OP': 'STOR'} {'src': {'congruent': 0, 'same': False, 'type': 'addresses_WC_ht'}, 'dst': {'congruent': 6, 'same': True, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'src': {'congruent': 9, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 1, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'dst': {'NT': True, 'AVXalign': True, 'size': 1, 'congruent': 10, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'STOR'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_D_ht'}, 'dst': {'congruent': 10, 'same': False, 'type': 'addresses_WT_ht'}, 'OP': 'REPM'} {'dst': {'NT': False, 'AVXalign': False, 'size': 16, 'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'OP': 'STOR'} {'src': {'congruent': 8, 'same': False, 'type': 'addresses_UC_ht'}, 'dst': {'congruent': 11, 'same': False, 'type': 'addresses_A_ht'}, 'OP': 'REPM'} {'src': {'congruent': 10, 'same': False, 'type': 'addresses_normal_ht'}, 'dst': {'congruent': 4, 'same': False, 'type': 'addresses_D_ht'}, 'OP': 'REPM'} {'33': 21829} 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 */
28.286957
2,999
0.6556
e491cc28ca8f426c0d23f583ec55b9b25636e062
761
asm
Assembly
oeis/020/A020752.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
11
2021-08-22T19:44:55.000Z
2022-03-20T16:47:57.000Z
oeis/020/A020752.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
9
2021-08-29T13:15:54.000Z
2022-03-09T19:52:31.000Z
oeis/020/A020752.asm
neoneye/loda-programs
84790877f8e6c2e821b183d2e334d612045d29c0
[ "Apache-2.0" ]
3
2021-08-22T20:56:47.000Z
2021-09-29T06:26:12.000Z
; A020752: Pisot sequence T(7,10), a(n) = floor(a(n-1)^2/a(n-2)). ; Submitted by Christian Krause ; 7,10,14,19,25,32,40,50,62,76,93,113,137,166,201,243,293,353,425,511,614,737,884,1060,1271,1524,1827,2190,2625,3146,3770,4517,5412,6484,7768,9306,11148,13354,15996,19160,22949,27487,32922,39431,47226,56561,67741,81130,97165,116369,139368,166912,199899,239405,286718,343381,411242,492514,589847,706415,846019,1013211,1213443,1453245,1740436,2084381,2496296,2989613,3580419,4287979,5135366,6150212,7365610,8821193,10564426,12652154,15152456,18146864,21733022,26027871,31171461,37331519,44708918 mov $2,1 mov $4,2 lpb $4 mov $1,7 mov $3,4 sub $3,$2 mov $4,0 lpb $0 sub $0,1 div $3,$2 mov $2,$1 add $1,$3 mul $3,$1 lpe lpe mov $0,$1
36.238095
493
0.718791
9c388a7acb84f3145b45fa5a9b46b4833c3bb1f3
303
asm
Assembly
programs/oeis/242/A242963.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/242/A242963.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
programs/oeis/242/A242963.asm
karttu/loda
9c3b0fc57b810302220c044a9d17db733c76a598
[ "Apache-2.0" ]
null
null
null
; A242963: Numbers n such that A242962(n) = sigma(n) = A000203(n). ; 5,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 pow $2,$0 pow $1,$2 add $1,$0 add $1,5
37.875
195
0.636964
7070c57040ce964a1dc02c4c9c852cb3e68dc19f
422
asm
Assembly
data/pokemon/base_stats/turban.asm
AtmaBuster/pokeplat-gen2
fa83b2e75575949b8f72cb2c48f7a1042e97f70f
[ "blessing" ]
6
2021-06-19T06:41:19.000Z
2022-02-15T17:12:33.000Z
data/pokemon/base_stats/turban.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
null
null
null
data/pokemon/base_stats/turban.asm
AtmaBuster/pokeplat-gen2-old
01e42c55db5408d72d89133dc84a46c699d849ad
[ "blessing" ]
2
2021-08-11T19:47:07.000Z
2022-01-01T07:07:56.000Z
db 0 ; species ID placeholder db 80, 90, 150, 30, 80, 65 ; hp atk def spd sat sdf db WATER, POISON ; type db 60 ; catch rate db 203 ; base exp db NO_ITEM, NO_ITEM ; items db GENDER_F50 ; gender ratio db 20 ; step cycles to hatch INCBIN "gfx/pokemon/turban/front.dimensions" db GROWTH_SLOW ; growth rate dn EGG_WATER_3, EGG_WATER_3 ; egg groups db 70 ; happiness ; tm/hm learnset tmhm ; end
21.1
45
0.680095
7820a62752361e2d1a60805ab6c1225ac59c8389
1,627
asm
Assembly
programs/oeis/137/A137340.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
22
2018-02-06T19:19:31.000Z
2022-01-17T21:53:31.000Z
programs/oeis/137/A137340.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
41
2021-02-22T19:00:34.000Z
2021-08-28T10:47:47.000Z
programs/oeis/137/A137340.asm
neoneye/loda
afe9559fb53ee12e3040da54bd6aa47283e0d9ec
[ "Apache-2.0" ]
5
2021-02-24T21:14:16.000Z
2021-08-09T19:48:05.000Z
; A137340: a(n) = 2*a(n-1) + 3*a(n-2), with a(0) = 1, a(1) = 9. ; 1,9,21,69,201,609,1821,5469,16401,49209,147621,442869,1328601,3985809,11957421,35872269,107616801,322850409,968551221,2905653669,8716961001,26150883009,78452649021,235357947069,706073841201,2118221523609,6354664570821,19063993712469,57191981137401,171575943412209,514727830236621,1544183490709869,4632550472129601,13897651416388809,41692954249166421,125078862747499269,375236588242497801,1125709764727493409,3377129294182480221,10131387882547440669,30394163647642322001,91182490942926966009,273547472828780898021,820642418486342694069,2461927255459028082201,7385781766377084246609,22157345299131252739821,66472035897393758219469,199416107692181274658401,598248323076543823975209,1794744969229631471925621,5384234907688894415776869,16152704723066683247330601,48458114169200049741991809,145374342507600149225975421,436123027522800447677926269,1308369082568401343033778801,3925107247705204029101336409,11775321743115612087304009221,35325965229346836261912027669,105977895688040508785736083001,317933687064121526357208249009,953801061192364579071624747021,2861403183577093737214874241069,8584209550731281211644622723201,25752628652193843634933868169609,77257885956581530904801604508821,231773657869744592714404813526469,695320973609233778143214440579401,2085962920827701334429643321738209,6257888762483104003288929965214621,18773666287449312009866789895643869,56320998862347936029600369686931601,168962996587043808088801109060794809,506888989761131424266403327182384421 mov $1,3 mov $2,$0 add $2,1 pow $1,$2 add $1,1 mul $1,5 div $1,24 mul $1,4 add $1,1 mov $0,$1
116.214286
1,467
0.902889