max_stars_repo_path
stringlengths 4
261
| max_stars_repo_name
stringlengths 6
106
| max_stars_count
int64 0
38.8k
| id
stringlengths 1
6
| text
stringlengths 7
1.05M
|
---|---|---|---|---|
libsrc/fcntl/dummy/close.asm | grancier/z180 | 0 | 7953 | ; Dummy function to keep rest of libs happy
;
; $Id: close.asm,v 1.5 2016/03/06 21:39:54 dom Exp $
;
SECTION code_clib
PUBLIC close
PUBLIC _close
.close
._close
ret
|
programs/oeis/084/A084857.asm | neoneye/loda | 22 | 8904 | <filename>programs/oeis/084/A084857.asm
; A084857: Inverse binomial transform of n^2*3^(n-1).
; 0,1,10,48,176,560,1632,4480,11776,29952,74240,180224,430080,1011712,2351104,5406720,12320768,27852800,62521344,139460608,309329920,682622976,1499463680,3279945728,7147094016,15518924800,33587986432
mov $1,2
mov $2,$0
mul $0,3
bin $0,2
pow $1,$2
mul $0,$1
div $0,6
|
src/globals.adb | bracke/websitegenerator | 1 | 1761 | with Ada.Characters.Handling;
with Ada.Strings.Fixed;
with Ada.Strings;
package body Globals is
Environment_String : String :=
Ada.Characters.Handling.To_Upper (
Ada.Environment_Variables.Value ("OS", "linux"));
Unix_Lineending : constant String
:= String'(1 => ASCII.LF);
Windows_Lineending : constant String
:= String'(1 => ASCII.CR, 2 => ASCII.LF);
begin
if Ada.Strings.Fixed.Index (Environment_String,"WINDOWS") = 0 then
Current_OS := Unix;
Current_Lineending := To_Unbounded_String(Unix_Lineending);
else
Current_OS := Windows;
Current_Lineending := To_Unbounded_String(Windows_Lineending);
end if;
end Globals; |
Lab8/main8.asm | YuriySavchenko/Assembler | 0 | 88253 | format ELF executable 3
;============= invoke modules =============
include 'print.asm'
include 'longop.asm'
include 'module.asm'
;==========================================
entry start ; label of start program
;================= code ===================
segment readable executable
;==========================================
start:
;-------------------------------------------------------------------
; print name of Developer
;-------------------------------------------------------------------
print brd, 30
print clr, 2
print dev, lenDev
print name, lenName
print brd, 30
print clr, 2
;-------------------------------------------------------------------
;-------------------------------------------------------------------
;-------------------------------------------------------------------
; fransform float number into string
;-------------------------------------------------------------------
push buff
push valueC
push 64
call FloatToDec
;-------------------------------------------------------------------
;-------------------------------------------------------------------
;-------------------------------------------------------------------
; print float number as string
;-------------------------------------------------------------------
print buff, 64
print clr, 2
print brd, 30
print clr, 2
;-------------------------------------------------------------------
;-------------------------------------------------------------------
;-------------------------------------------------------------------
; calculating expression
;-------------------------------------------------------------------
xor edx, edx
xor ecx, ecx
fld dword [valueB]
fptan
fdivp st1, st0
inc edx
fst dword [arrayTg+edx*4]
inc edx
.label_pow:
fld dword [arrayTg+4]
fmulp st1, st0
fst dword [arrayTg+edx*4]
inc edx
cmp edx, 6
jne .label_pow
fstp dword [valueM]
fld dword [arrayA+ecx*4]
inc ecx
.label_sum:
fld dword [arrayA+ecx*4]
fld dword [arrayTg+ecx*4]
fmulp st1, st0
faddp st1, st0
inc ecx
cmp ecx, 6
jne .label_sum
fstp dword [result]
;-------------------------------------------------------------------
;-------------------------------------------------------------------
;-------------------------------------------------------------------
; transform result of expression to string
;-------------------------------------------------------------------
push buffRes
push result
push 64
call FloatToDec
;-------------------------------------------------------------------
;-------------------------------------------------------------------
;-------------------------------------------------------------------
; print string which is result of expression
;-------------------------------------------------------------------
print buffRes, 64
print clr, 2
print brd, 30
print clr, 2
;-------------------------------------------------------------------
;-------------------------------------------------------------------
;================= exit =================
mov eax, 1 ; sys_exit
mov ebx, 0 ; code of error
int 0x80
;========================================
;================= data =================
segment readable writeable
;========================================
dev db "Developer: " ; word { developer }
lenDev = $-dev ; length of string { dev }
name db "<NAME>", 0xa, 0xd ; name of developer
lenName = $-name ; length of string { developer }
buff db 64 dup(0) ; text buffer string for output result
buffRes db 64 dup(0) ; text buffer string for output result of expression
clr db 0xa, 0xd ; step on the new line
brd db 30 dup ('-') ; border
valueC dd -2.999999 ; value C
valueM dd 0.0 ; variable for saving intermediate value
valueTg dd ? ; value for saving tan(valueB)
valueB dd 0.4 ; varibale for saving angle B
result dd ? ; result of equation
arrayA dd 9.0, 1.0, 2.0, 3.0, 4.0, 5.0 ; array A
arrayTg dd 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ; array tan(valueB)^index
|
examples/utils/sdl/sdl_sdl_opengl_h.ads | Fabien-Chouteau/GESTE | 13 | 19196 | <reponame>Fabien-Chouteau/GESTE
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with umingw_h;
with GL_gl_h;
with System;
package SDL_SDL_opengl_h is
-- unsupported macro: APIENTRYP APIENTRY *
-- unsupported macro: GLAPI extern
GL_GLEXT_VERSION : constant := 29; -- ../include/SDL/SDL_opengl.h:116
GL_UNSIGNED_BYTE_3_3_2 : constant := 16#8032#; -- ../include/SDL/SDL_opengl.h:119
GL_UNSIGNED_SHORT_4_4_4_4 : constant := 16#8033#; -- ../include/SDL/SDL_opengl.h:120
GL_UNSIGNED_SHORT_5_5_5_1 : constant := 16#8034#; -- ../include/SDL/SDL_opengl.h:121
GL_UNSIGNED_INT_8_8_8_8 : constant := 16#8035#; -- ../include/SDL/SDL_opengl.h:122
GL_UNSIGNED_INT_10_10_10_2 : constant := 16#8036#; -- ../include/SDL/SDL_opengl.h:123
GL_RESCALE_NORMAL : constant := 16#803A#; -- ../include/SDL/SDL_opengl.h:124
GL_TEXTURE_BINDING_3D : constant := 16#806A#; -- ../include/SDL/SDL_opengl.h:125
GL_PACK_SKIP_IMAGES : constant := 16#806B#; -- ../include/SDL/SDL_opengl.h:126
GL_PACK_IMAGE_HEIGHT : constant := 16#806C#; -- ../include/SDL/SDL_opengl.h:127
GL_UNPACK_SKIP_IMAGES : constant := 16#806D#; -- ../include/SDL/SDL_opengl.h:128
GL_UNPACK_IMAGE_HEIGHT : constant := 16#806E#; -- ../include/SDL/SDL_opengl.h:129
GL_TEXTURE_3D : constant := 16#806F#; -- ../include/SDL/SDL_opengl.h:130
GL_PROXY_TEXTURE_3D : constant := 16#8070#; -- ../include/SDL/SDL_opengl.h:131
GL_TEXTURE_DEPTH : constant := 16#8071#; -- ../include/SDL/SDL_opengl.h:132
GL_TEXTURE_WRAP_R : constant := 16#8072#; -- ../include/SDL/SDL_opengl.h:133
GL_MAX_3D_TEXTURE_SIZE : constant := 16#8073#; -- ../include/SDL/SDL_opengl.h:134
GL_UNSIGNED_BYTE_2_3_3_REV : constant := 16#8362#; -- ../include/SDL/SDL_opengl.h:135
GL_UNSIGNED_SHORT_5_6_5 : constant := 16#8363#; -- ../include/SDL/SDL_opengl.h:136
GL_UNSIGNED_SHORT_5_6_5_REV : constant := 16#8364#; -- ../include/SDL/SDL_opengl.h:137
GL_UNSIGNED_SHORT_4_4_4_4_REV : constant := 16#8365#; -- ../include/SDL/SDL_opengl.h:138
GL_UNSIGNED_SHORT_1_5_5_5_REV : constant := 16#8366#; -- ../include/SDL/SDL_opengl.h:139
GL_UNSIGNED_INT_8_8_8_8_REV : constant := 16#8367#; -- ../include/SDL/SDL_opengl.h:140
GL_UNSIGNED_INT_2_10_10_10_REV : constant := 16#8368#; -- ../include/SDL/SDL_opengl.h:141
GL_BGR : constant := 16#80E0#; -- ../include/SDL/SDL_opengl.h:142
GL_BGRA : constant := 16#80E1#; -- ../include/SDL/SDL_opengl.h:143
GL_MAX_ELEMENTS_VERTICES : constant := 16#80E8#; -- ../include/SDL/SDL_opengl.h:144
GL_MAX_ELEMENTS_INDICES : constant := 16#80E9#; -- ../include/SDL/SDL_opengl.h:145
GL_CLAMP_TO_EDGE : constant := 16#812F#; -- ../include/SDL/SDL_opengl.h:146
GL_TEXTURE_MIN_LOD : constant := 16#813A#; -- ../include/SDL/SDL_opengl.h:147
GL_TEXTURE_MAX_LOD : constant := 16#813B#; -- ../include/SDL/SDL_opengl.h:148
GL_TEXTURE_BASE_LEVEL : constant := 16#813C#; -- ../include/SDL/SDL_opengl.h:149
GL_TEXTURE_MAX_LEVEL : constant := 16#813D#; -- ../include/SDL/SDL_opengl.h:150
GL_LIGHT_MODEL_COLOR_CONTROL : constant := 16#81F8#; -- ../include/SDL/SDL_opengl.h:151
GL_SINGLE_COLOR : constant := 16#81F9#; -- ../include/SDL/SDL_opengl.h:152
GL_SEPARATE_SPECULAR_COLOR : constant := 16#81FA#; -- ../include/SDL/SDL_opengl.h:153
GL_SMOOTH_POINT_SIZE_RANGE : constant := 16#0B12#; -- ../include/SDL/SDL_opengl.h:154
GL_SMOOTH_POINT_SIZE_GRANULARITY : constant := 16#0B13#; -- ../include/SDL/SDL_opengl.h:155
GL_SMOOTH_LINE_WIDTH_RANGE : constant := 16#0B22#; -- ../include/SDL/SDL_opengl.h:156
GL_SMOOTH_LINE_WIDTH_GRANULARITY : constant := 16#0B23#; -- ../include/SDL/SDL_opengl.h:157
GL_ALIASED_POINT_SIZE_RANGE : constant := 16#846D#; -- ../include/SDL/SDL_opengl.h:158
GL_ALIASED_LINE_WIDTH_RANGE : constant := 16#846E#; -- ../include/SDL/SDL_opengl.h:159
GL_CONSTANT_COLOR : constant := 16#8001#; -- ../include/SDL/SDL_opengl.h:163
GL_ONE_MINUS_CONSTANT_COLOR : constant := 16#8002#; -- ../include/SDL/SDL_opengl.h:164
GL_CONSTANT_ALPHA : constant := 16#8003#; -- ../include/SDL/SDL_opengl.h:165
GL_ONE_MINUS_CONSTANT_ALPHA : constant := 16#8004#; -- ../include/SDL/SDL_opengl.h:166
GL_BLEND_COLOR : constant := 16#8005#; -- ../include/SDL/SDL_opengl.h:167
GL_FUNC_ADD : constant := 16#8006#; -- ../include/SDL/SDL_opengl.h:168
GL_MIN : constant := 16#8007#; -- ../include/SDL/SDL_opengl.h:169
GL_MAX : constant := 16#8008#; -- ../include/SDL/SDL_opengl.h:170
GL_BLEND_EQUATION : constant := 16#8009#; -- ../include/SDL/SDL_opengl.h:171
GL_FUNC_SUBTRACT : constant := 16#800A#; -- ../include/SDL/SDL_opengl.h:172
GL_FUNC_REVERSE_SUBTRACT : constant := 16#800B#; -- ../include/SDL/SDL_opengl.h:173
GL_CONVOLUTION_1D : constant := 16#8010#; -- ../include/SDL/SDL_opengl.h:174
GL_CONVOLUTION_2D : constant := 16#8011#; -- ../include/SDL/SDL_opengl.h:175
GL_SEPARABLE_2D : constant := 16#8012#; -- ../include/SDL/SDL_opengl.h:176
GL_CONVOLUTION_BORDER_MODE : constant := 16#8013#; -- ../include/SDL/SDL_opengl.h:177
GL_CONVOLUTION_FILTER_SCALE : constant := 16#8014#; -- ../include/SDL/SDL_opengl.h:178
GL_CONVOLUTION_FILTER_BIAS : constant := 16#8015#; -- ../include/SDL/SDL_opengl.h:179
GL_REDUCE : constant := 16#8016#; -- ../include/SDL/SDL_opengl.h:180
GL_CONVOLUTION_FORMAT : constant := 16#8017#; -- ../include/SDL/SDL_opengl.h:181
GL_CONVOLUTION_WIDTH : constant := 16#8018#; -- ../include/SDL/SDL_opengl.h:182
GL_CONVOLUTION_HEIGHT : constant := 16#8019#; -- ../include/SDL/SDL_opengl.h:183
GL_MAX_CONVOLUTION_WIDTH : constant := 16#801A#; -- ../include/SDL/SDL_opengl.h:184
GL_MAX_CONVOLUTION_HEIGHT : constant := 16#801B#; -- ../include/SDL/SDL_opengl.h:185
GL_POST_CONVOLUTION_RED_SCALE : constant := 16#801C#; -- ../include/SDL/SDL_opengl.h:186
GL_POST_CONVOLUTION_GREEN_SCALE : constant := 16#801D#; -- ../include/SDL/SDL_opengl.h:187
GL_POST_CONVOLUTION_BLUE_SCALE : constant := 16#801E#; -- ../include/SDL/SDL_opengl.h:188
GL_POST_CONVOLUTION_ALPHA_SCALE : constant := 16#801F#; -- ../include/SDL/SDL_opengl.h:189
GL_POST_CONVOLUTION_RED_BIAS : constant := 16#8020#; -- ../include/SDL/SDL_opengl.h:190
GL_POST_CONVOLUTION_GREEN_BIAS : constant := 16#8021#; -- ../include/SDL/SDL_opengl.h:191
GL_POST_CONVOLUTION_BLUE_BIAS : constant := 16#8022#; -- ../include/SDL/SDL_opengl.h:192
GL_POST_CONVOLUTION_ALPHA_BIAS : constant := 16#8023#; -- ../include/SDL/SDL_opengl.h:193
GL_HISTOGRAM : constant := 16#8024#; -- ../include/SDL/SDL_opengl.h:194
GL_PROXY_HISTOGRAM : constant := 16#8025#; -- ../include/SDL/SDL_opengl.h:195
GL_HISTOGRAM_WIDTH : constant := 16#8026#; -- ../include/SDL/SDL_opengl.h:196
GL_HISTOGRAM_FORMAT : constant := 16#8027#; -- ../include/SDL/SDL_opengl.h:197
GL_HISTOGRAM_RED_SIZE : constant := 16#8028#; -- ../include/SDL/SDL_opengl.h:198
GL_HISTOGRAM_GREEN_SIZE : constant := 16#8029#; -- ../include/SDL/SDL_opengl.h:199
GL_HISTOGRAM_BLUE_SIZE : constant := 16#802A#; -- ../include/SDL/SDL_opengl.h:200
GL_HISTOGRAM_ALPHA_SIZE : constant := 16#802B#; -- ../include/SDL/SDL_opengl.h:201
GL_HISTOGRAM_LUMINANCE_SIZE : constant := 16#802C#; -- ../include/SDL/SDL_opengl.h:202
GL_HISTOGRAM_SINK : constant := 16#802D#; -- ../include/SDL/SDL_opengl.h:203
GL_MINMAX : constant := 16#802E#; -- ../include/SDL/SDL_opengl.h:204
GL_MINMAX_FORMAT : constant := 16#802F#; -- ../include/SDL/SDL_opengl.h:205
GL_MINMAX_SINK : constant := 16#8030#; -- ../include/SDL/SDL_opengl.h:206
GL_TABLE_TOO_LARGE : constant := 16#8031#; -- ../include/SDL/SDL_opengl.h:207
GL_COLOR_MATRIX : constant := 16#80B1#; -- ../include/SDL/SDL_opengl.h:208
GL_COLOR_MATRIX_STACK_DEPTH : constant := 16#80B2#; -- ../include/SDL/SDL_opengl.h:209
GL_MAX_COLOR_MATRIX_STACK_DEPTH : constant := 16#80B3#; -- ../include/SDL/SDL_opengl.h:210
GL_POST_COLOR_MATRIX_RED_SCALE : constant := 16#80B4#; -- ../include/SDL/SDL_opengl.h:211
GL_POST_COLOR_MATRIX_GREEN_SCALE : constant := 16#80B5#; -- ../include/SDL/SDL_opengl.h:212
GL_POST_COLOR_MATRIX_BLUE_SCALE : constant := 16#80B6#; -- ../include/SDL/SDL_opengl.h:213
GL_POST_COLOR_MATRIX_ALPHA_SCALE : constant := 16#80B7#; -- ../include/SDL/SDL_opengl.h:214
GL_POST_COLOR_MATRIX_RED_BIAS : constant := 16#80B8#; -- ../include/SDL/SDL_opengl.h:215
GL_POST_COLOR_MATRIX_GREEN_BIAS : constant := 16#80B9#; -- ../include/SDL/SDL_opengl.h:216
GL_POST_COLOR_MATRIX_BLUE_BIAS : constant := 16#80BA#; -- ../include/SDL/SDL_opengl.h:217
GL_POST_COLOR_MATRIX_ALPHA_BIAS : constant := 16#80BB#; -- ../include/SDL/SDL_opengl.h:218
GL_COLOR_TABLE : constant := 16#80D0#; -- ../include/SDL/SDL_opengl.h:219
GL_POST_CONVOLUTION_COLOR_TABLE : constant := 16#80D1#; -- ../include/SDL/SDL_opengl.h:220
GL_POST_COLOR_MATRIX_COLOR_TABLE : constant := 16#80D2#; -- ../include/SDL/SDL_opengl.h:221
GL_PROXY_COLOR_TABLE : constant := 16#80D3#; -- ../include/SDL/SDL_opengl.h:222
GL_PROXY_POST_CONVOLUTION_COLOR_TABLE : constant := 16#80D4#; -- ../include/SDL/SDL_opengl.h:223
GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE : constant := 16#80D5#; -- ../include/SDL/SDL_opengl.h:224
GL_COLOR_TABLE_SCALE : constant := 16#80D6#; -- ../include/SDL/SDL_opengl.h:225
GL_COLOR_TABLE_BIAS : constant := 16#80D7#; -- ../include/SDL/SDL_opengl.h:226
GL_COLOR_TABLE_FORMAT : constant := 16#80D8#; -- ../include/SDL/SDL_opengl.h:227
GL_COLOR_TABLE_WIDTH : constant := 16#80D9#; -- ../include/SDL/SDL_opengl.h:228
GL_COLOR_TABLE_RED_SIZE : constant := 16#80DA#; -- ../include/SDL/SDL_opengl.h:229
GL_COLOR_TABLE_GREEN_SIZE : constant := 16#80DB#; -- ../include/SDL/SDL_opengl.h:230
GL_COLOR_TABLE_BLUE_SIZE : constant := 16#80DC#; -- ../include/SDL/SDL_opengl.h:231
GL_COLOR_TABLE_ALPHA_SIZE : constant := 16#80DD#; -- ../include/SDL/SDL_opengl.h:232
GL_COLOR_TABLE_LUMINANCE_SIZE : constant := 16#80DE#; -- ../include/SDL/SDL_opengl.h:233
GL_COLOR_TABLE_INTENSITY_SIZE : constant := 16#80DF#; -- ../include/SDL/SDL_opengl.h:234
GL_CONSTANT_BORDER : constant := 16#8151#; -- ../include/SDL/SDL_opengl.h:235
GL_REPLICATE_BORDER : constant := 16#8153#; -- ../include/SDL/SDL_opengl.h:236
GL_CONVOLUTION_BORDER_COLOR : constant := 16#8154#; -- ../include/SDL/SDL_opengl.h:237
GL_TEXTURE0 : constant := 16#84C0#; -- ../include/SDL/SDL_opengl.h:241
GL_TEXTURE1 : constant := 16#84C1#; -- ../include/SDL/SDL_opengl.h:242
GL_TEXTURE2 : constant := 16#84C2#; -- ../include/SDL/SDL_opengl.h:243
GL_TEXTURE3 : constant := 16#84C3#; -- ../include/SDL/SDL_opengl.h:244
GL_TEXTURE4 : constant := 16#84C4#; -- ../include/SDL/SDL_opengl.h:245
GL_TEXTURE5 : constant := 16#84C5#; -- ../include/SDL/SDL_opengl.h:246
GL_TEXTURE6 : constant := 16#84C6#; -- ../include/SDL/SDL_opengl.h:247
GL_TEXTURE7 : constant := 16#84C7#; -- ../include/SDL/SDL_opengl.h:248
GL_TEXTURE8 : constant := 16#84C8#; -- ../include/SDL/SDL_opengl.h:249
GL_TEXTURE9 : constant := 16#84C9#; -- ../include/SDL/SDL_opengl.h:250
GL_TEXTURE10 : constant := 16#84CA#; -- ../include/SDL/SDL_opengl.h:251
GL_TEXTURE11 : constant := 16#84CB#; -- ../include/SDL/SDL_opengl.h:252
GL_TEXTURE12 : constant := 16#84CC#; -- ../include/SDL/SDL_opengl.h:253
GL_TEXTURE13 : constant := 16#84CD#; -- ../include/SDL/SDL_opengl.h:254
GL_TEXTURE14 : constant := 16#84CE#; -- ../include/SDL/SDL_opengl.h:255
GL_TEXTURE15 : constant := 16#84CF#; -- ../include/SDL/SDL_opengl.h:256
GL_TEXTURE16 : constant := 16#84D0#; -- ../include/SDL/SDL_opengl.h:257
GL_TEXTURE17 : constant := 16#84D1#; -- ../include/SDL/SDL_opengl.h:258
GL_TEXTURE18 : constant := 16#84D2#; -- ../include/SDL/SDL_opengl.h:259
GL_TEXTURE19 : constant := 16#84D3#; -- ../include/SDL/SDL_opengl.h:260
GL_TEXTURE20 : constant := 16#84D4#; -- ../include/SDL/SDL_opengl.h:261
GL_TEXTURE21 : constant := 16#84D5#; -- ../include/SDL/SDL_opengl.h:262
GL_TEXTURE22 : constant := 16#84D6#; -- ../include/SDL/SDL_opengl.h:263
GL_TEXTURE23 : constant := 16#84D7#; -- ../include/SDL/SDL_opengl.h:264
GL_TEXTURE24 : constant := 16#84D8#; -- ../include/SDL/SDL_opengl.h:265
GL_TEXTURE25 : constant := 16#84D9#; -- ../include/SDL/SDL_opengl.h:266
GL_TEXTURE26 : constant := 16#84DA#; -- ../include/SDL/SDL_opengl.h:267
GL_TEXTURE27 : constant := 16#84DB#; -- ../include/SDL/SDL_opengl.h:268
GL_TEXTURE28 : constant := 16#84DC#; -- ../include/SDL/SDL_opengl.h:269
GL_TEXTURE29 : constant := 16#84DD#; -- ../include/SDL/SDL_opengl.h:270
GL_TEXTURE30 : constant := 16#84DE#; -- ../include/SDL/SDL_opengl.h:271
GL_TEXTURE31 : constant := 16#84DF#; -- ../include/SDL/SDL_opengl.h:272
GL_ACTIVE_TEXTURE : constant := 16#84E0#; -- ../include/SDL/SDL_opengl.h:273
GL_CLIENT_ACTIVE_TEXTURE : constant := 16#84E1#; -- ../include/SDL/SDL_opengl.h:274
GL_MAX_TEXTURE_UNITS : constant := 16#84E2#; -- ../include/SDL/SDL_opengl.h:275
GL_TRANSPOSE_MODELVIEW_MATRIX : constant := 16#84E3#; -- ../include/SDL/SDL_opengl.h:276
GL_TRANSPOSE_PROJECTION_MATRIX : constant := 16#84E4#; -- ../include/SDL/SDL_opengl.h:277
GL_TRANSPOSE_TEXTURE_MATRIX : constant := 16#84E5#; -- ../include/SDL/SDL_opengl.h:278
GL_TRANSPOSE_COLOR_MATRIX : constant := 16#84E6#; -- ../include/SDL/SDL_opengl.h:279
GL_MULTISAMPLE : constant := 16#809D#; -- ../include/SDL/SDL_opengl.h:280
GL_SAMPLE_ALPHA_TO_COVERAGE : constant := 16#809E#; -- ../include/SDL/SDL_opengl.h:281
GL_SAMPLE_ALPHA_TO_ONE : constant := 16#809F#; -- ../include/SDL/SDL_opengl.h:282
GL_SAMPLE_COVERAGE : constant := 16#80A0#; -- ../include/SDL/SDL_opengl.h:283
GL_SAMPLE_BUFFERS : constant := 16#80A8#; -- ../include/SDL/SDL_opengl.h:284
GL_SAMPLES : constant := 16#80A9#; -- ../include/SDL/SDL_opengl.h:285
GL_SAMPLE_COVERAGE_VALUE : constant := 16#80AA#; -- ../include/SDL/SDL_opengl.h:286
GL_SAMPLE_COVERAGE_INVERT : constant := 16#80AB#; -- ../include/SDL/SDL_opengl.h:287
GL_MULTISAMPLE_BIT : constant := 16#20000000#; -- ../include/SDL/SDL_opengl.h:288
GL_NORMAL_MAP : constant := 16#8511#; -- ../include/SDL/SDL_opengl.h:289
GL_REFLECTION_MAP : constant := 16#8512#; -- ../include/SDL/SDL_opengl.h:290
GL_TEXTURE_CUBE_MAP : constant := 16#8513#; -- ../include/SDL/SDL_opengl.h:291
GL_TEXTURE_BINDING_CUBE_MAP : constant := 16#8514#; -- ../include/SDL/SDL_opengl.h:292
GL_TEXTURE_CUBE_MAP_POSITIVE_X : constant := 16#8515#; -- ../include/SDL/SDL_opengl.h:293
GL_TEXTURE_CUBE_MAP_NEGATIVE_X : constant := 16#8516#; -- ../include/SDL/SDL_opengl.h:294
GL_TEXTURE_CUBE_MAP_POSITIVE_Y : constant := 16#8517#; -- ../include/SDL/SDL_opengl.h:295
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y : constant := 16#8518#; -- ../include/SDL/SDL_opengl.h:296
GL_TEXTURE_CUBE_MAP_POSITIVE_Z : constant := 16#8519#; -- ../include/SDL/SDL_opengl.h:297
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z : constant := 16#851A#; -- ../include/SDL/SDL_opengl.h:298
GL_PROXY_TEXTURE_CUBE_MAP : constant := 16#851B#; -- ../include/SDL/SDL_opengl.h:299
GL_MAX_CUBE_MAP_TEXTURE_SIZE : constant := 16#851C#; -- ../include/SDL/SDL_opengl.h:300
GL_COMPRESSED_ALPHA : constant := 16#84E9#; -- ../include/SDL/SDL_opengl.h:301
GL_COMPRESSED_LUMINANCE : constant := 16#84EA#; -- ../include/SDL/SDL_opengl.h:302
GL_COMPRESSED_LUMINANCE_ALPHA : constant := 16#84EB#; -- ../include/SDL/SDL_opengl.h:303
GL_COMPRESSED_INTENSITY : constant := 16#84EC#; -- ../include/SDL/SDL_opengl.h:304
GL_COMPRESSED_RGB : constant := 16#84ED#; -- ../include/SDL/SDL_opengl.h:305
GL_COMPRESSED_RGBA : constant := 16#84EE#; -- ../include/SDL/SDL_opengl.h:306
GL_TEXTURE_COMPRESSION_HINT : constant := 16#84EF#; -- ../include/SDL/SDL_opengl.h:307
GL_TEXTURE_COMPRESSED_IMAGE_SIZE : constant := 16#86A0#; -- ../include/SDL/SDL_opengl.h:308
GL_TEXTURE_COMPRESSED : constant := 16#86A1#; -- ../include/SDL/SDL_opengl.h:309
GL_NUM_COMPRESSED_TEXTURE_FORMATS : constant := 16#86A2#; -- ../include/SDL/SDL_opengl.h:310
GL_COMPRESSED_TEXTURE_FORMATS : constant := 16#86A3#; -- ../include/SDL/SDL_opengl.h:311
GL_CLAMP_TO_BORDER : constant := 16#812D#; -- ../include/SDL/SDL_opengl.h:312
GL_COMBINE : constant := 16#8570#; -- ../include/SDL/SDL_opengl.h:313
GL_COMBINE_RGB : constant := 16#8571#; -- ../include/SDL/SDL_opengl.h:314
GL_COMBINE_ALPHA : constant := 16#8572#; -- ../include/SDL/SDL_opengl.h:315
GL_SOURCE0_RGB : constant := 16#8580#; -- ../include/SDL/SDL_opengl.h:316
GL_SOURCE1_RGB : constant := 16#8581#; -- ../include/SDL/SDL_opengl.h:317
GL_SOURCE2_RGB : constant := 16#8582#; -- ../include/SDL/SDL_opengl.h:318
GL_SOURCE0_ALPHA : constant := 16#8588#; -- ../include/SDL/SDL_opengl.h:319
GL_SOURCE1_ALPHA : constant := 16#8589#; -- ../include/SDL/SDL_opengl.h:320
GL_SOURCE2_ALPHA : constant := 16#858A#; -- ../include/SDL/SDL_opengl.h:321
GL_OPERAND0_RGB : constant := 16#8590#; -- ../include/SDL/SDL_opengl.h:322
GL_OPERAND1_RGB : constant := 16#8591#; -- ../include/SDL/SDL_opengl.h:323
GL_OPERAND2_RGB : constant := 16#8592#; -- ../include/SDL/SDL_opengl.h:324
GL_OPERAND0_ALPHA : constant := 16#8598#; -- ../include/SDL/SDL_opengl.h:325
GL_OPERAND1_ALPHA : constant := 16#8599#; -- ../include/SDL/SDL_opengl.h:326
GL_OPERAND2_ALPHA : constant := 16#859A#; -- ../include/SDL/SDL_opengl.h:327
GL_RGB_SCALE : constant := 16#8573#; -- ../include/SDL/SDL_opengl.h:328
GL_ADD_SIGNED : constant := 16#8574#; -- ../include/SDL/SDL_opengl.h:329
GL_INTERPOLATE : constant := 16#8575#; -- ../include/SDL/SDL_opengl.h:330
GL_SUBTRACT : constant := 16#84E7#; -- ../include/SDL/SDL_opengl.h:331
GL_CONSTANT : constant := 16#8576#; -- ../include/SDL/SDL_opengl.h:332
GL_PRIMARY_COLOR : constant := 16#8577#; -- ../include/SDL/SDL_opengl.h:333
GL_PREVIOUS : constant := 16#8578#; -- ../include/SDL/SDL_opengl.h:334
GL_DOT3_RGB : constant := 16#86AE#; -- ../include/SDL/SDL_opengl.h:335
GL_DOT3_RGBA : constant := 16#86AF#; -- ../include/SDL/SDL_opengl.h:336
GL_BLEND_DST_RGB : constant := 16#80C8#; -- ../include/SDL/SDL_opengl.h:340
GL_BLEND_SRC_RGB : constant := 16#80C9#; -- ../include/SDL/SDL_opengl.h:341
GL_BLEND_DST_ALPHA : constant := 16#80CA#; -- ../include/SDL/SDL_opengl.h:342
GL_BLEND_SRC_ALPHA : constant := 16#80CB#; -- ../include/SDL/SDL_opengl.h:343
GL_POINT_SIZE_MIN : constant := 16#8126#; -- ../include/SDL/SDL_opengl.h:344
GL_POINT_SIZE_MAX : constant := 16#8127#; -- ../include/SDL/SDL_opengl.h:345
GL_POINT_FADE_THRESHOLD_SIZE : constant := 16#8128#; -- ../include/SDL/SDL_opengl.h:346
GL_POINT_DISTANCE_ATTENUATION : constant := 16#8129#; -- ../include/SDL/SDL_opengl.h:347
GL_GENERATE_MIPMAP : constant := 16#8191#; -- ../include/SDL/SDL_opengl.h:348
GL_GENERATE_MIPMAP_HINT : constant := 16#8192#; -- ../include/SDL/SDL_opengl.h:349
GL_DEPTH_COMPONENT16 : constant := 16#81A5#; -- ../include/SDL/SDL_opengl.h:350
GL_DEPTH_COMPONENT24 : constant := 16#81A6#; -- ../include/SDL/SDL_opengl.h:351
GL_DEPTH_COMPONENT32 : constant := 16#81A7#; -- ../include/SDL/SDL_opengl.h:352
GL_MIRRORED_REPEAT : constant := 16#8370#; -- ../include/SDL/SDL_opengl.h:353
GL_FOG_COORDINATE_SOURCE : constant := 16#8450#; -- ../include/SDL/SDL_opengl.h:354
GL_FOG_COORDINATE : constant := 16#8451#; -- ../include/SDL/SDL_opengl.h:355
GL_FRAGMENT_DEPTH : constant := 16#8452#; -- ../include/SDL/SDL_opengl.h:356
GL_CURRENT_FOG_COORDINATE : constant := 16#8453#; -- ../include/SDL/SDL_opengl.h:357
GL_FOG_COORDINATE_ARRAY_TYPE : constant := 16#8454#; -- ../include/SDL/SDL_opengl.h:358
GL_FOG_COORDINATE_ARRAY_STRIDE : constant := 16#8455#; -- ../include/SDL/SDL_opengl.h:359
GL_FOG_COORDINATE_ARRAY_POINTER : constant := 16#8456#; -- ../include/SDL/SDL_opengl.h:360
GL_FOG_COORDINATE_ARRAY : constant := 16#8457#; -- ../include/SDL/SDL_opengl.h:361
GL_COLOR_SUM : constant := 16#8458#; -- ../include/SDL/SDL_opengl.h:362
GL_CURRENT_SECONDARY_COLOR : constant := 16#8459#; -- ../include/SDL/SDL_opengl.h:363
GL_SECONDARY_COLOR_ARRAY_SIZE : constant := 16#845A#; -- ../include/SDL/SDL_opengl.h:364
GL_SECONDARY_COLOR_ARRAY_TYPE : constant := 16#845B#; -- ../include/SDL/SDL_opengl.h:365
GL_SECONDARY_COLOR_ARRAY_STRIDE : constant := 16#845C#; -- ../include/SDL/SDL_opengl.h:366
GL_SECONDARY_COLOR_ARRAY_POINTER : constant := 16#845D#; -- ../include/SDL/SDL_opengl.h:367
GL_SECONDARY_COLOR_ARRAY : constant := 16#845E#; -- ../include/SDL/SDL_opengl.h:368
GL_MAX_TEXTURE_LOD_BIAS : constant := 16#84FD#; -- ../include/SDL/SDL_opengl.h:369
GL_TEXTURE_FILTER_CONTROL : constant := 16#8500#; -- ../include/SDL/SDL_opengl.h:370
GL_TEXTURE_LOD_BIAS : constant := 16#8501#; -- ../include/SDL/SDL_opengl.h:371
GL_INCR_WRAP : constant := 16#8507#; -- ../include/SDL/SDL_opengl.h:372
GL_DECR_WRAP : constant := 16#8508#; -- ../include/SDL/SDL_opengl.h:373
GL_TEXTURE_DEPTH_SIZE : constant := 16#884A#; -- ../include/SDL/SDL_opengl.h:374
GL_DEPTH_TEXTURE_MODE : constant := 16#884B#; -- ../include/SDL/SDL_opengl.h:375
GL_TEXTURE_COMPARE_MODE : constant := 16#884C#; -- ../include/SDL/SDL_opengl.h:376
GL_TEXTURE_COMPARE_FUNC : constant := 16#884D#; -- ../include/SDL/SDL_opengl.h:377
GL_COMPARE_R_TO_TEXTURE : constant := 16#884E#; -- ../include/SDL/SDL_opengl.h:378
GL_BUFFER_SIZE : constant := 16#8764#; -- ../include/SDL/SDL_opengl.h:382
GL_BUFFER_USAGE : constant := 16#8765#; -- ../include/SDL/SDL_opengl.h:383
GL_QUERY_COUNTER_BITS : constant := 16#8864#; -- ../include/SDL/SDL_opengl.h:384
GL_CURRENT_QUERY : constant := 16#8865#; -- ../include/SDL/SDL_opengl.h:385
GL_QUERY_RESULT : constant := 16#8866#; -- ../include/SDL/SDL_opengl.h:386
GL_QUERY_RESULT_AVAILABLE : constant := 16#8867#; -- ../include/SDL/SDL_opengl.h:387
GL_ARRAY_BUFFER : constant := 16#8892#; -- ../include/SDL/SDL_opengl.h:388
GL_ELEMENT_ARRAY_BUFFER : constant := 16#8893#; -- ../include/SDL/SDL_opengl.h:389
GL_ARRAY_BUFFER_BINDING : constant := 16#8894#; -- ../include/SDL/SDL_opengl.h:390
GL_ELEMENT_ARRAY_BUFFER_BINDING : constant := 16#8895#; -- ../include/SDL/SDL_opengl.h:391
GL_VERTEX_ARRAY_BUFFER_BINDING : constant := 16#8896#; -- ../include/SDL/SDL_opengl.h:392
GL_NORMAL_ARRAY_BUFFER_BINDING : constant := 16#8897#; -- ../include/SDL/SDL_opengl.h:393
GL_COLOR_ARRAY_BUFFER_BINDING : constant := 16#8898#; -- ../include/SDL/SDL_opengl.h:394
GL_INDEX_ARRAY_BUFFER_BINDING : constant := 16#8899#; -- ../include/SDL/SDL_opengl.h:395
GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING : constant := 16#889A#; -- ../include/SDL/SDL_opengl.h:396
GL_EDGE_FLAG_ARRAY_BUFFER_BINDING : constant := 16#889B#; -- ../include/SDL/SDL_opengl.h:397
GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING : constant := 16#889C#; -- ../include/SDL/SDL_opengl.h:398
GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING : constant := 16#889D#; -- ../include/SDL/SDL_opengl.h:399
GL_WEIGHT_ARRAY_BUFFER_BINDING : constant := 16#889E#; -- ../include/SDL/SDL_opengl.h:400
GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING : constant := 16#889F#; -- ../include/SDL/SDL_opengl.h:401
GL_READ_ONLY : constant := 16#88B8#; -- ../include/SDL/SDL_opengl.h:402
GL_WRITE_ONLY : constant := 16#88B9#; -- ../include/SDL/SDL_opengl.h:403
GL_READ_WRITE : constant := 16#88BA#; -- ../include/SDL/SDL_opengl.h:404
GL_BUFFER_ACCESS : constant := 16#88BB#; -- ../include/SDL/SDL_opengl.h:405
GL_BUFFER_MAPPED : constant := 16#88BC#; -- ../include/SDL/SDL_opengl.h:406
GL_BUFFER_MAP_POINTER : constant := 16#88BD#; -- ../include/SDL/SDL_opengl.h:407
GL_STREAM_DRAW : constant := 16#88E0#; -- ../include/SDL/SDL_opengl.h:408
GL_STREAM_READ : constant := 16#88E1#; -- ../include/SDL/SDL_opengl.h:409
GL_STREAM_COPY : constant := 16#88E2#; -- ../include/SDL/SDL_opengl.h:410
GL_STATIC_DRAW : constant := 16#88E4#; -- ../include/SDL/SDL_opengl.h:411
GL_STATIC_READ : constant := 16#88E5#; -- ../include/SDL/SDL_opengl.h:412
GL_STATIC_COPY : constant := 16#88E6#; -- ../include/SDL/SDL_opengl.h:413
GL_DYNAMIC_DRAW : constant := 16#88E8#; -- ../include/SDL/SDL_opengl.h:414
GL_DYNAMIC_READ : constant := 16#88E9#; -- ../include/SDL/SDL_opengl.h:415
GL_DYNAMIC_COPY : constant := 16#88EA#; -- ../include/SDL/SDL_opengl.h:416
GL_SAMPLES_PASSED : constant := 16#8914#; -- ../include/SDL/SDL_opengl.h:417
-- unsupported macro: GL_FOG_COORD_SRC GL_FOG_COORDINATE_SOURCE
-- unsupported macro: GL_FOG_COORD GL_FOG_COORDINATE
-- unsupported macro: GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE
-- unsupported macro: GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE
-- unsupported macro: GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE
-- unsupported macro: GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER
-- unsupported macro: GL_FOG_COORD_ARRAY GL_FOG_COORDINATE_ARRAY
-- unsupported macro: GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING
-- unsupported macro: GL_SRC0_RGB GL_SOURCE0_RGB
-- unsupported macro: GL_SRC1_RGB GL_SOURCE1_RGB
-- unsupported macro: GL_SRC2_RGB GL_SOURCE2_RGB
-- unsupported macro: GL_SRC0_ALPHA GL_SOURCE0_ALPHA
-- unsupported macro: GL_SRC1_ALPHA GL_SOURCE1_ALPHA
-- unsupported macro: GL_SRC2_ALPHA GL_SOURCE2_ALPHA
-- unsupported macro: GL_BLEND_EQUATION_RGB GL_BLEND_EQUATION
GL_VERTEX_ATTRIB_ARRAY_ENABLED : constant := 16#8622#; -- ../include/SDL/SDL_opengl.h:436
GL_VERTEX_ATTRIB_ARRAY_SIZE : constant := 16#8623#; -- ../include/SDL/SDL_opengl.h:437
GL_VERTEX_ATTRIB_ARRAY_STRIDE : constant := 16#8624#; -- ../include/SDL/SDL_opengl.h:438
GL_VERTEX_ATTRIB_ARRAY_TYPE : constant := 16#8625#; -- ../include/SDL/SDL_opengl.h:439
GL_CURRENT_VERTEX_ATTRIB : constant := 16#8626#; -- ../include/SDL/SDL_opengl.h:440
GL_VERTEX_PROGRAM_POINT_SIZE : constant := 16#8642#; -- ../include/SDL/SDL_opengl.h:441
GL_VERTEX_PROGRAM_TWO_SIDE : constant := 16#8643#; -- ../include/SDL/SDL_opengl.h:442
GL_VERTEX_ATTRIB_ARRAY_POINTER : constant := 16#8645#; -- ../include/SDL/SDL_opengl.h:443
GL_STENCIL_BACK_FUNC : constant := 16#8800#; -- ../include/SDL/SDL_opengl.h:444
GL_STENCIL_BACK_FAIL : constant := 16#8801#; -- ../include/SDL/SDL_opengl.h:445
GL_STENCIL_BACK_PASS_DEPTH_FAIL : constant := 16#8802#; -- ../include/SDL/SDL_opengl.h:446
GL_STENCIL_BACK_PASS_DEPTH_PASS : constant := 16#8803#; -- ../include/SDL/SDL_opengl.h:447
GL_MAX_DRAW_BUFFERS : constant := 16#8824#; -- ../include/SDL/SDL_opengl.h:448
GL_DRAW_BUFFER0 : constant := 16#8825#; -- ../include/SDL/SDL_opengl.h:449
GL_DRAW_BUFFER1 : constant := 16#8826#; -- ../include/SDL/SDL_opengl.h:450
GL_DRAW_BUFFER2 : constant := 16#8827#; -- ../include/SDL/SDL_opengl.h:451
GL_DRAW_BUFFER3 : constant := 16#8828#; -- ../include/SDL/SDL_opengl.h:452
GL_DRAW_BUFFER4 : constant := 16#8829#; -- ../include/SDL/SDL_opengl.h:453
GL_DRAW_BUFFER5 : constant := 16#882A#; -- ../include/SDL/SDL_opengl.h:454
GL_DRAW_BUFFER6 : constant := 16#882B#; -- ../include/SDL/SDL_opengl.h:455
GL_DRAW_BUFFER7 : constant := 16#882C#; -- ../include/SDL/SDL_opengl.h:456
GL_DRAW_BUFFER8 : constant := 16#882D#; -- ../include/SDL/SDL_opengl.h:457
GL_DRAW_BUFFER9 : constant := 16#882E#; -- ../include/SDL/SDL_opengl.h:458
GL_DRAW_BUFFER10 : constant := 16#882F#; -- ../include/SDL/SDL_opengl.h:459
GL_DRAW_BUFFER11 : constant := 16#8830#; -- ../include/SDL/SDL_opengl.h:460
GL_DRAW_BUFFER12 : constant := 16#8831#; -- ../include/SDL/SDL_opengl.h:461
GL_DRAW_BUFFER13 : constant := 16#8832#; -- ../include/SDL/SDL_opengl.h:462
GL_DRAW_BUFFER14 : constant := 16#8833#; -- ../include/SDL/SDL_opengl.h:463
GL_DRAW_BUFFER15 : constant := 16#8834#; -- ../include/SDL/SDL_opengl.h:464
GL_BLEND_EQUATION_ALPHA : constant := 16#883D#; -- ../include/SDL/SDL_opengl.h:465
GL_POINT_SPRITE : constant := 16#8861#; -- ../include/SDL/SDL_opengl.h:466
GL_COORD_REPLACE : constant := 16#8862#; -- ../include/SDL/SDL_opengl.h:467
GL_MAX_VERTEX_ATTRIBS : constant := 16#8869#; -- ../include/SDL/SDL_opengl.h:468
GL_VERTEX_ATTRIB_ARRAY_NORMALIZED : constant := 16#886A#; -- ../include/SDL/SDL_opengl.h:469
GL_MAX_TEXTURE_COORDS : constant := 16#8871#; -- ../include/SDL/SDL_opengl.h:470
GL_MAX_TEXTURE_IMAGE_UNITS : constant := 16#8872#; -- ../include/SDL/SDL_opengl.h:471
GL_FRAGMENT_SHADER : constant := 16#8B30#; -- ../include/SDL/SDL_opengl.h:472
GL_VERTEX_SHADER : constant := 16#8B31#; -- ../include/SDL/SDL_opengl.h:473
GL_MAX_FRAGMENT_UNIFORM_COMPONENTS : constant := 16#8B49#; -- ../include/SDL/SDL_opengl.h:474
GL_MAX_VERTEX_UNIFORM_COMPONENTS : constant := 16#8B4A#; -- ../include/SDL/SDL_opengl.h:475
GL_MAX_VARYING_FLOATS : constant := 16#8B4B#; -- ../include/SDL/SDL_opengl.h:476
GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS : constant := 16#8B4C#; -- ../include/SDL/SDL_opengl.h:477
GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS : constant := 16#8B4D#; -- ../include/SDL/SDL_opengl.h:478
GL_SHADER_TYPE : constant := 16#8B4F#; -- ../include/SDL/SDL_opengl.h:479
GL_FLOAT_VEC2 : constant := 16#8B50#; -- ../include/SDL/SDL_opengl.h:480
GL_FLOAT_VEC3 : constant := 16#8B51#; -- ../include/SDL/SDL_opengl.h:481
GL_FLOAT_VEC4 : constant := 16#8B52#; -- ../include/SDL/SDL_opengl.h:482
GL_INT_VEC2 : constant := 16#8B53#; -- ../include/SDL/SDL_opengl.h:483
GL_INT_VEC3 : constant := 16#8B54#; -- ../include/SDL/SDL_opengl.h:484
GL_INT_VEC4 : constant := 16#8B55#; -- ../include/SDL/SDL_opengl.h:485
GL_BOOL : constant := 16#8B56#; -- ../include/SDL/SDL_opengl.h:486
GL_BOOL_VEC2 : constant := 16#8B57#; -- ../include/SDL/SDL_opengl.h:487
GL_BOOL_VEC3 : constant := 16#8B58#; -- ../include/SDL/SDL_opengl.h:488
GL_BOOL_VEC4 : constant := 16#8B59#; -- ../include/SDL/SDL_opengl.h:489
GL_FLOAT_MAT2 : constant := 16#8B5A#; -- ../include/SDL/SDL_opengl.h:490
GL_FLOAT_MAT3 : constant := 16#8B5B#; -- ../include/SDL/SDL_opengl.h:491
GL_FLOAT_MAT4 : constant := 16#8B5C#; -- ../include/SDL/SDL_opengl.h:492
GL_SAMPLER_1D : constant := 16#8B5D#; -- ../include/SDL/SDL_opengl.h:493
GL_SAMPLER_2D : constant := 16#8B5E#; -- ../include/SDL/SDL_opengl.h:494
GL_SAMPLER_3D : constant := 16#8B5F#; -- ../include/SDL/SDL_opengl.h:495
GL_SAMPLER_CUBE : constant := 16#8B60#; -- ../include/SDL/SDL_opengl.h:496
GL_SAMPLER_1D_SHADOW : constant := 16#8B61#; -- ../include/SDL/SDL_opengl.h:497
GL_SAMPLER_2D_SHADOW : constant := 16#8B62#; -- ../include/SDL/SDL_opengl.h:498
GL_DELETE_STATUS : constant := 16#8B80#; -- ../include/SDL/SDL_opengl.h:499
GL_COMPILE_STATUS : constant := 16#8B81#; -- ../include/SDL/SDL_opengl.h:500
GL_LINK_STATUS : constant := 16#8B82#; -- ../include/SDL/SDL_opengl.h:501
GL_VALIDATE_STATUS : constant := 16#8B83#; -- ../include/SDL/SDL_opengl.h:502
GL_INFO_LOG_LENGTH : constant := 16#8B84#; -- ../include/SDL/SDL_opengl.h:503
GL_ATTACHED_SHADERS : constant := 16#8B85#; -- ../include/SDL/SDL_opengl.h:504
GL_ACTIVE_UNIFORMS : constant := 16#8B86#; -- ../include/SDL/SDL_opengl.h:505
GL_ACTIVE_UNIFORM_MAX_LENGTH : constant := 16#8B87#; -- ../include/SDL/SDL_opengl.h:506
GL_SHADER_SOURCE_LENGTH : constant := 16#8B88#; -- ../include/SDL/SDL_opengl.h:507
GL_ACTIVE_ATTRIBUTES : constant := 16#8B89#; -- ../include/SDL/SDL_opengl.h:508
GL_ACTIVE_ATTRIBUTE_MAX_LENGTH : constant := 16#8B8A#; -- ../include/SDL/SDL_opengl.h:509
GL_FRAGMENT_SHADER_DERIVATIVE_HINT : constant := 16#8B8B#; -- ../include/SDL/SDL_opengl.h:510
GL_SHADING_LANGUAGE_VERSION : constant := 16#8B8C#; -- ../include/SDL/SDL_opengl.h:511
GL_CURRENT_PROGRAM : constant := 16#8B8D#; -- ../include/SDL/SDL_opengl.h:512
GL_POINT_SPRITE_COORD_ORIGIN : constant := 16#8CA0#; -- ../include/SDL/SDL_opengl.h:513
GL_LOWER_LEFT : constant := 16#8CA1#; -- ../include/SDL/SDL_opengl.h:514
GL_UPPER_LEFT : constant := 16#8CA2#; -- ../include/SDL/SDL_opengl.h:515
GL_STENCIL_BACK_REF : constant := 16#8CA3#; -- ../include/SDL/SDL_opengl.h:516
GL_STENCIL_BACK_VALUE_MASK : constant := 16#8CA4#; -- ../include/SDL/SDL_opengl.h:517
GL_STENCIL_BACK_WRITEMASK : constant := 16#8CA5#; -- ../include/SDL/SDL_opengl.h:518
GL_TEXTURE0_ARB : constant := 16#84C0#; -- ../include/SDL/SDL_opengl.h:522
GL_TEXTURE1_ARB : constant := 16#84C1#; -- ../include/SDL/SDL_opengl.h:523
GL_TEXTURE2_ARB : constant := 16#84C2#; -- ../include/SDL/SDL_opengl.h:524
GL_TEXTURE3_ARB : constant := 16#84C3#; -- ../include/SDL/SDL_opengl.h:525
GL_TEXTURE4_ARB : constant := 16#84C4#; -- ../include/SDL/SDL_opengl.h:526
GL_TEXTURE5_ARB : constant := 16#84C5#; -- ../include/SDL/SDL_opengl.h:527
GL_TEXTURE6_ARB : constant := 16#84C6#; -- ../include/SDL/SDL_opengl.h:528
GL_TEXTURE7_ARB : constant := 16#84C7#; -- ../include/SDL/SDL_opengl.h:529
GL_TEXTURE8_ARB : constant := 16#84C8#; -- ../include/SDL/SDL_opengl.h:530
GL_TEXTURE9_ARB : constant := 16#84C9#; -- ../include/SDL/SDL_opengl.h:531
GL_TEXTURE10_ARB : constant := 16#84CA#; -- ../include/SDL/SDL_opengl.h:532
GL_TEXTURE11_ARB : constant := 16#84CB#; -- ../include/SDL/SDL_opengl.h:533
GL_TEXTURE12_ARB : constant := 16#84CC#; -- ../include/SDL/SDL_opengl.h:534
GL_TEXTURE13_ARB : constant := 16#84CD#; -- ../include/SDL/SDL_opengl.h:535
GL_TEXTURE14_ARB : constant := 16#84CE#; -- ../include/SDL/SDL_opengl.h:536
GL_TEXTURE15_ARB : constant := 16#84CF#; -- ../include/SDL/SDL_opengl.h:537
GL_TEXTURE16_ARB : constant := 16#84D0#; -- ../include/SDL/SDL_opengl.h:538
GL_TEXTURE17_ARB : constant := 16#84D1#; -- ../include/SDL/SDL_opengl.h:539
GL_TEXTURE18_ARB : constant := 16#84D2#; -- ../include/SDL/SDL_opengl.h:540
GL_TEXTURE19_ARB : constant := 16#84D3#; -- ../include/SDL/SDL_opengl.h:541
GL_TEXTURE20_ARB : constant := 16#84D4#; -- ../include/SDL/SDL_opengl.h:542
GL_TEXTURE21_ARB : constant := 16#84D5#; -- ../include/SDL/SDL_opengl.h:543
GL_TEXTURE22_ARB : constant := 16#84D6#; -- ../include/SDL/SDL_opengl.h:544
GL_TEXTURE23_ARB : constant := 16#84D7#; -- ../include/SDL/SDL_opengl.h:545
GL_TEXTURE24_ARB : constant := 16#84D8#; -- ../include/SDL/SDL_opengl.h:546
GL_TEXTURE25_ARB : constant := 16#84D9#; -- ../include/SDL/SDL_opengl.h:547
GL_TEXTURE26_ARB : constant := 16#84DA#; -- ../include/SDL/SDL_opengl.h:548
GL_TEXTURE27_ARB : constant := 16#84DB#; -- ../include/SDL/SDL_opengl.h:549
GL_TEXTURE28_ARB : constant := 16#84DC#; -- ../include/SDL/SDL_opengl.h:550
GL_TEXTURE29_ARB : constant := 16#84DD#; -- ../include/SDL/SDL_opengl.h:551
GL_TEXTURE30_ARB : constant := 16#84DE#; -- ../include/SDL/SDL_opengl.h:552
GL_TEXTURE31_ARB : constant := 16#84DF#; -- ../include/SDL/SDL_opengl.h:553
GL_ACTIVE_TEXTURE_ARB : constant := 16#84E0#; -- ../include/SDL/SDL_opengl.h:554
GL_CLIENT_ACTIVE_TEXTURE_ARB : constant := 16#84E1#; -- ../include/SDL/SDL_opengl.h:555
GL_MAX_TEXTURE_UNITS_ARB : constant := 16#84E2#; -- ../include/SDL/SDL_opengl.h:556
GL_TRANSPOSE_MODELVIEW_MATRIX_ARB : constant := 16#84E3#; -- ../include/SDL/SDL_opengl.h:560
GL_TRANSPOSE_PROJECTION_MATRIX_ARB : constant := 16#84E4#; -- ../include/SDL/SDL_opengl.h:561
GL_TRANSPOSE_TEXTURE_MATRIX_ARB : constant := 16#84E5#; -- ../include/SDL/SDL_opengl.h:562
GL_TRANSPOSE_COLOR_MATRIX_ARB : constant := 16#84E6#; -- ../include/SDL/SDL_opengl.h:563
GL_MULTISAMPLE_ARB : constant := 16#809D#; -- ../include/SDL/SDL_opengl.h:567
GL_SAMPLE_ALPHA_TO_COVERAGE_ARB : constant := 16#809E#; -- ../include/SDL/SDL_opengl.h:568
GL_SAMPLE_ALPHA_TO_ONE_ARB : constant := 16#809F#; -- ../include/SDL/SDL_opengl.h:569
GL_SAMPLE_COVERAGE_ARB : constant := 16#80A0#; -- ../include/SDL/SDL_opengl.h:570
GL_SAMPLE_BUFFERS_ARB : constant := 16#80A8#; -- ../include/SDL/SDL_opengl.h:571
GL_SAMPLES_ARB : constant := 16#80A9#; -- ../include/SDL/SDL_opengl.h:572
GL_SAMPLE_COVERAGE_VALUE_ARB : constant := 16#80AA#; -- ../include/SDL/SDL_opengl.h:573
GL_SAMPLE_COVERAGE_INVERT_ARB : constant := 16#80AB#; -- ../include/SDL/SDL_opengl.h:574
GL_MULTISAMPLE_BIT_ARB : constant := 16#20000000#; -- ../include/SDL/SDL_opengl.h:575
GL_NORMAL_MAP_ARB : constant := 16#8511#; -- ../include/SDL/SDL_opengl.h:582
GL_REFLECTION_MAP_ARB : constant := 16#8512#; -- ../include/SDL/SDL_opengl.h:583
GL_TEXTURE_CUBE_MAP_ARB : constant := 16#8513#; -- ../include/SDL/SDL_opengl.h:584
GL_TEXTURE_BINDING_CUBE_MAP_ARB : constant := 16#8514#; -- ../include/SDL/SDL_opengl.h:585
GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB : constant := 16#8515#; -- ../include/SDL/SDL_opengl.h:586
GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB : constant := 16#8516#; -- ../include/SDL/SDL_opengl.h:587
GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB : constant := 16#8517#; -- ../include/SDL/SDL_opengl.h:588
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB : constant := 16#8518#; -- ../include/SDL/SDL_opengl.h:589
GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB : constant := 16#8519#; -- ../include/SDL/SDL_opengl.h:590
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB : constant := 16#851A#; -- ../include/SDL/SDL_opengl.h:591
GL_PROXY_TEXTURE_CUBE_MAP_ARB : constant := 16#851B#; -- ../include/SDL/SDL_opengl.h:592
GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB : constant := 16#851C#; -- ../include/SDL/SDL_opengl.h:593
GL_COMPRESSED_ALPHA_ARB : constant := 16#84E9#; -- ../include/SDL/SDL_opengl.h:597
GL_COMPRESSED_LUMINANCE_ARB : constant := 16#84EA#; -- ../include/SDL/SDL_opengl.h:598
GL_COMPRESSED_LUMINANCE_ALPHA_ARB : constant := 16#84EB#; -- ../include/SDL/SDL_opengl.h:599
GL_COMPRESSED_INTENSITY_ARB : constant := 16#84EC#; -- ../include/SDL/SDL_opengl.h:600
GL_COMPRESSED_RGB_ARB : constant := 16#84ED#; -- ../include/SDL/SDL_opengl.h:601
GL_COMPRESSED_RGBA_ARB : constant := 16#84EE#; -- ../include/SDL/SDL_opengl.h:602
GL_TEXTURE_COMPRESSION_HINT_ARB : constant := 16#84EF#; -- ../include/SDL/SDL_opengl.h:603
GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB : constant := 16#86A0#; -- ../include/SDL/SDL_opengl.h:604
GL_TEXTURE_COMPRESSED_ARB : constant := 16#86A1#; -- ../include/SDL/SDL_opengl.h:605
GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB : constant := 16#86A2#; -- ../include/SDL/SDL_opengl.h:606
GL_COMPRESSED_TEXTURE_FORMATS_ARB : constant := 16#86A3#; -- ../include/SDL/SDL_opengl.h:607
GL_CLAMP_TO_BORDER_ARB : constant := 16#812D#; -- ../include/SDL/SDL_opengl.h:611
GL_POINT_SIZE_MIN_ARB : constant := 16#8126#; -- ../include/SDL/SDL_opengl.h:615
GL_POINT_SIZE_MAX_ARB : constant := 16#8127#; -- ../include/SDL/SDL_opengl.h:616
GL_POINT_FADE_THRESHOLD_SIZE_ARB : constant := 16#8128#; -- ../include/SDL/SDL_opengl.h:617
GL_POINT_DISTANCE_ATTENUATION_ARB : constant := 16#8129#; -- ../include/SDL/SDL_opengl.h:618
GL_MAX_VERTEX_UNITS_ARB : constant := 16#86A4#; -- ../include/SDL/SDL_opengl.h:622
GL_ACTIVE_VERTEX_UNITS_ARB : constant := 16#86A5#; -- ../include/SDL/SDL_opengl.h:623
GL_WEIGHT_SUM_UNITY_ARB : constant := 16#86A6#; -- ../include/SDL/SDL_opengl.h:624
GL_VERTEX_BLEND_ARB : constant := 16#86A7#; -- ../include/SDL/SDL_opengl.h:625
GL_CURRENT_WEIGHT_ARB : constant := 16#86A8#; -- ../include/SDL/SDL_opengl.h:626
GL_WEIGHT_ARRAY_TYPE_ARB : constant := 16#86A9#; -- ../include/SDL/SDL_opengl.h:627
GL_WEIGHT_ARRAY_STRIDE_ARB : constant := 16#86AA#; -- ../include/SDL/SDL_opengl.h:628
GL_WEIGHT_ARRAY_SIZE_ARB : constant := 16#86AB#; -- ../include/SDL/SDL_opengl.h:629
GL_WEIGHT_ARRAY_POINTER_ARB : constant := 16#86AC#; -- ../include/SDL/SDL_opengl.h:630
GL_WEIGHT_ARRAY_ARB : constant := 16#86AD#; -- ../include/SDL/SDL_opengl.h:631
GL_MODELVIEW0_ARB : constant := 16#1700#; -- ../include/SDL/SDL_opengl.h:632
GL_MODELVIEW1_ARB : constant := 16#850A#; -- ../include/SDL/SDL_opengl.h:633
GL_MODELVIEW2_ARB : constant := 16#8722#; -- ../include/SDL/SDL_opengl.h:634
GL_MODELVIEW3_ARB : constant := 16#8723#; -- ../include/SDL/SDL_opengl.h:635
GL_MODELVIEW4_ARB : constant := 16#8724#; -- ../include/SDL/SDL_opengl.h:636
GL_MODELVIEW5_ARB : constant := 16#8725#; -- ../include/SDL/SDL_opengl.h:637
GL_MODELVIEW6_ARB : constant := 16#8726#; -- ../include/SDL/SDL_opengl.h:638
GL_MODELVIEW7_ARB : constant := 16#8727#; -- ../include/SDL/SDL_opengl.h:639
GL_MODELVIEW8_ARB : constant := 16#8728#; -- ../include/SDL/SDL_opengl.h:640
GL_MODELVIEW9_ARB : constant := 16#8729#; -- ../include/SDL/SDL_opengl.h:641
GL_MODELVIEW10_ARB : constant := 16#872A#; -- ../include/SDL/SDL_opengl.h:642
GL_MODELVIEW11_ARB : constant := 16#872B#; -- ../include/SDL/SDL_opengl.h:643
GL_MODELVIEW12_ARB : constant := 16#872C#; -- ../include/SDL/SDL_opengl.h:644
GL_MODELVIEW13_ARB : constant := 16#872D#; -- ../include/SDL/SDL_opengl.h:645
GL_MODELVIEW14_ARB : constant := 16#872E#; -- ../include/SDL/SDL_opengl.h:646
GL_MODELVIEW15_ARB : constant := 16#872F#; -- ../include/SDL/SDL_opengl.h:647
GL_MODELVIEW16_ARB : constant := 16#8730#; -- ../include/SDL/SDL_opengl.h:648
GL_MODELVIEW17_ARB : constant := 16#8731#; -- ../include/SDL/SDL_opengl.h:649
GL_MODELVIEW18_ARB : constant := 16#8732#; -- ../include/SDL/SDL_opengl.h:650
GL_MODELVIEW19_ARB : constant := 16#8733#; -- ../include/SDL/SDL_opengl.h:651
GL_MODELVIEW20_ARB : constant := 16#8734#; -- ../include/SDL/SDL_opengl.h:652
GL_MODELVIEW21_ARB : constant := 16#8735#; -- ../include/SDL/SDL_opengl.h:653
GL_MODELVIEW22_ARB : constant := 16#8736#; -- ../include/SDL/SDL_opengl.h:654
GL_MODELVIEW23_ARB : constant := 16#8737#; -- ../include/SDL/SDL_opengl.h:655
GL_MODELVIEW24_ARB : constant := 16#8738#; -- ../include/SDL/SDL_opengl.h:656
GL_MODELVIEW25_ARB : constant := 16#8739#; -- ../include/SDL/SDL_opengl.h:657
GL_MODELVIEW26_ARB : constant := 16#873A#; -- ../include/SDL/SDL_opengl.h:658
GL_MODELVIEW27_ARB : constant := 16#873B#; -- ../include/SDL/SDL_opengl.h:659
GL_MODELVIEW28_ARB : constant := 16#873C#; -- ../include/SDL/SDL_opengl.h:660
GL_MODELVIEW29_ARB : constant := 16#873D#; -- ../include/SDL/SDL_opengl.h:661
GL_MODELVIEW30_ARB : constant := 16#873E#; -- ../include/SDL/SDL_opengl.h:662
GL_MODELVIEW31_ARB : constant := 16#873F#; -- ../include/SDL/SDL_opengl.h:663
GL_MATRIX_PALETTE_ARB : constant := 16#8840#; -- ../include/SDL/SDL_opengl.h:667
GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB : constant := 16#8841#; -- ../include/SDL/SDL_opengl.h:668
GL_MAX_PALETTE_MATRICES_ARB : constant := 16#8842#; -- ../include/SDL/SDL_opengl.h:669
GL_CURRENT_PALETTE_MATRIX_ARB : constant := 16#8843#; -- ../include/SDL/SDL_opengl.h:670
GL_MATRIX_INDEX_ARRAY_ARB : constant := 16#8844#; -- ../include/SDL/SDL_opengl.h:671
GL_CURRENT_MATRIX_INDEX_ARB : constant := 16#8845#; -- ../include/SDL/SDL_opengl.h:672
GL_MATRIX_INDEX_ARRAY_SIZE_ARB : constant := 16#8846#; -- ../include/SDL/SDL_opengl.h:673
GL_MATRIX_INDEX_ARRAY_TYPE_ARB : constant := 16#8847#; -- ../include/SDL/SDL_opengl.h:674
GL_MATRIX_INDEX_ARRAY_STRIDE_ARB : constant := 16#8848#; -- ../include/SDL/SDL_opengl.h:675
GL_MATRIX_INDEX_ARRAY_POINTER_ARB : constant := 16#8849#; -- ../include/SDL/SDL_opengl.h:676
GL_COMBINE_ARB : constant := 16#8570#; -- ../include/SDL/SDL_opengl.h:680
GL_COMBINE_RGB_ARB : constant := 16#8571#; -- ../include/SDL/SDL_opengl.h:681
GL_COMBINE_ALPHA_ARB : constant := 16#8572#; -- ../include/SDL/SDL_opengl.h:682
GL_SOURCE0_RGB_ARB : constant := 16#8580#; -- ../include/SDL/SDL_opengl.h:683
GL_SOURCE1_RGB_ARB : constant := 16#8581#; -- ../include/SDL/SDL_opengl.h:684
GL_SOURCE2_RGB_ARB : constant := 16#8582#; -- ../include/SDL/SDL_opengl.h:685
GL_SOURCE0_ALPHA_ARB : constant := 16#8588#; -- ../include/SDL/SDL_opengl.h:686
GL_SOURCE1_ALPHA_ARB : constant := 16#8589#; -- ../include/SDL/SDL_opengl.h:687
GL_SOURCE2_ALPHA_ARB : constant := 16#858A#; -- ../include/SDL/SDL_opengl.h:688
GL_OPERAND0_RGB_ARB : constant := 16#8590#; -- ../include/SDL/SDL_opengl.h:689
GL_OPERAND1_RGB_ARB : constant := 16#8591#; -- ../include/SDL/SDL_opengl.h:690
GL_OPERAND2_RGB_ARB : constant := 16#8592#; -- ../include/SDL/SDL_opengl.h:691
GL_OPERAND0_ALPHA_ARB : constant := 16#8598#; -- ../include/SDL/SDL_opengl.h:692
GL_OPERAND1_ALPHA_ARB : constant := 16#8599#; -- ../include/SDL/SDL_opengl.h:693
GL_OPERAND2_ALPHA_ARB : constant := 16#859A#; -- ../include/SDL/SDL_opengl.h:694
GL_RGB_SCALE_ARB : constant := 16#8573#; -- ../include/SDL/SDL_opengl.h:695
GL_ADD_SIGNED_ARB : constant := 16#8574#; -- ../include/SDL/SDL_opengl.h:696
GL_INTERPOLATE_ARB : constant := 16#8575#; -- ../include/SDL/SDL_opengl.h:697
GL_SUBTRACT_ARB : constant := 16#84E7#; -- ../include/SDL/SDL_opengl.h:698
GL_CONSTANT_ARB : constant := 16#8576#; -- ../include/SDL/SDL_opengl.h:699
GL_PRIMARY_COLOR_ARB : constant := 16#8577#; -- ../include/SDL/SDL_opengl.h:700
GL_PREVIOUS_ARB : constant := 16#8578#; -- ../include/SDL/SDL_opengl.h:701
GL_DOT3_RGB_ARB : constant := 16#86AE#; -- ../include/SDL/SDL_opengl.h:708
GL_DOT3_RGBA_ARB : constant := 16#86AF#; -- ../include/SDL/SDL_opengl.h:709
GL_MIRRORED_REPEAT_ARB : constant := 16#8370#; -- ../include/SDL/SDL_opengl.h:713
GL_DEPTH_COMPONENT16_ARB : constant := 16#81A5#; -- ../include/SDL/SDL_opengl.h:717
GL_DEPTH_COMPONENT24_ARB : constant := 16#81A6#; -- ../include/SDL/SDL_opengl.h:718
GL_DEPTH_COMPONENT32_ARB : constant := 16#81A7#; -- ../include/SDL/SDL_opengl.h:719
GL_TEXTURE_DEPTH_SIZE_ARB : constant := 16#884A#; -- ../include/SDL/SDL_opengl.h:720
GL_DEPTH_TEXTURE_MODE_ARB : constant := 16#884B#; -- ../include/SDL/SDL_opengl.h:721
GL_TEXTURE_COMPARE_MODE_ARB : constant := 16#884C#; -- ../include/SDL/SDL_opengl.h:725
GL_TEXTURE_COMPARE_FUNC_ARB : constant := 16#884D#; -- ../include/SDL/SDL_opengl.h:726
GL_COMPARE_R_TO_TEXTURE_ARB : constant := 16#884E#; -- ../include/SDL/SDL_opengl.h:727
GL_TEXTURE_COMPARE_FAIL_VALUE_ARB : constant := 16#80BF#; -- ../include/SDL/SDL_opengl.h:731
GL_COLOR_SUM_ARB : constant := 16#8458#; -- ../include/SDL/SDL_opengl.h:738
GL_VERTEX_PROGRAM_ARB : constant := 16#8620#; -- ../include/SDL/SDL_opengl.h:739
GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB : constant := 16#8622#; -- ../include/SDL/SDL_opengl.h:740
GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB : constant := 16#8623#; -- ../include/SDL/SDL_opengl.h:741
GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB : constant := 16#8624#; -- ../include/SDL/SDL_opengl.h:742
GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB : constant := 16#8625#; -- ../include/SDL/SDL_opengl.h:743
GL_CURRENT_VERTEX_ATTRIB_ARB : constant := 16#8626#; -- ../include/SDL/SDL_opengl.h:744
GL_PROGRAM_LENGTH_ARB : constant := 16#8627#; -- ../include/SDL/SDL_opengl.h:745
GL_PROGRAM_STRING_ARB : constant := 16#8628#; -- ../include/SDL/SDL_opengl.h:746
GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB : constant := 16#862E#; -- ../include/SDL/SDL_opengl.h:747
GL_MAX_PROGRAM_MATRICES_ARB : constant := 16#862F#; -- ../include/SDL/SDL_opengl.h:748
GL_CURRENT_MATRIX_STACK_DEPTH_ARB : constant := 16#8640#; -- ../include/SDL/SDL_opengl.h:749
GL_CURRENT_MATRIX_ARB : constant := 16#8641#; -- ../include/SDL/SDL_opengl.h:750
GL_VERTEX_PROGRAM_POINT_SIZE_ARB : constant := 16#8642#; -- ../include/SDL/SDL_opengl.h:751
GL_VERTEX_PROGRAM_TWO_SIDE_ARB : constant := 16#8643#; -- ../include/SDL/SDL_opengl.h:752
GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB : constant := 16#8645#; -- ../include/SDL/SDL_opengl.h:753
GL_PROGRAM_ERROR_POSITION_ARB : constant := 16#864B#; -- ../include/SDL/SDL_opengl.h:754
GL_PROGRAM_BINDING_ARB : constant := 16#8677#; -- ../include/SDL/SDL_opengl.h:755
GL_MAX_VERTEX_ATTRIBS_ARB : constant := 16#8869#; -- ../include/SDL/SDL_opengl.h:756
GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB : constant := 16#886A#; -- ../include/SDL/SDL_opengl.h:757
GL_PROGRAM_ERROR_STRING_ARB : constant := 16#8874#; -- ../include/SDL/SDL_opengl.h:758
GL_PROGRAM_FORMAT_ASCII_ARB : constant := 16#8875#; -- ../include/SDL/SDL_opengl.h:759
GL_PROGRAM_FORMAT_ARB : constant := 16#8876#; -- ../include/SDL/SDL_opengl.h:760
GL_PROGRAM_INSTRUCTIONS_ARB : constant := 16#88A0#; -- ../include/SDL/SDL_opengl.h:761
GL_MAX_PROGRAM_INSTRUCTIONS_ARB : constant := 16#88A1#; -- ../include/SDL/SDL_opengl.h:762
GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB : constant := 16#88A2#; -- ../include/SDL/SDL_opengl.h:763
GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB : constant := 16#88A3#; -- ../include/SDL/SDL_opengl.h:764
GL_PROGRAM_TEMPORARIES_ARB : constant := 16#88A4#; -- ../include/SDL/SDL_opengl.h:765
GL_MAX_PROGRAM_TEMPORARIES_ARB : constant := 16#88A5#; -- ../include/SDL/SDL_opengl.h:766
GL_PROGRAM_NATIVE_TEMPORARIES_ARB : constant := 16#88A6#; -- ../include/SDL/SDL_opengl.h:767
GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB : constant := 16#88A7#; -- ../include/SDL/SDL_opengl.h:768
GL_PROGRAM_PARAMETERS_ARB : constant := 16#88A8#; -- ../include/SDL/SDL_opengl.h:769
GL_MAX_PROGRAM_PARAMETERS_ARB : constant := 16#88A9#; -- ../include/SDL/SDL_opengl.h:770
GL_PROGRAM_NATIVE_PARAMETERS_ARB : constant := 16#88AA#; -- ../include/SDL/SDL_opengl.h:771
GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB : constant := 16#88AB#; -- ../include/SDL/SDL_opengl.h:772
GL_PROGRAM_ATTRIBS_ARB : constant := 16#88AC#; -- ../include/SDL/SDL_opengl.h:773
GL_MAX_PROGRAM_ATTRIBS_ARB : constant := 16#88AD#; -- ../include/SDL/SDL_opengl.h:774
GL_PROGRAM_NATIVE_ATTRIBS_ARB : constant := 16#88AE#; -- ../include/SDL/SDL_opengl.h:775
GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB : constant := 16#88AF#; -- ../include/SDL/SDL_opengl.h:776
GL_PROGRAM_ADDRESS_REGISTERS_ARB : constant := 16#88B0#; -- ../include/SDL/SDL_opengl.h:777
GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB : constant := 16#88B1#; -- ../include/SDL/SDL_opengl.h:778
GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB : constant := 16#88B2#; -- ../include/SDL/SDL_opengl.h:779
GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB : constant := 16#88B3#; -- ../include/SDL/SDL_opengl.h:780
GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB : constant := 16#88B4#; -- ../include/SDL/SDL_opengl.h:781
GL_MAX_PROGRAM_ENV_PARAMETERS_ARB : constant := 16#88B5#; -- ../include/SDL/SDL_opengl.h:782
GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB : constant := 16#88B6#; -- ../include/SDL/SDL_opengl.h:783
GL_TRANSPOSE_CURRENT_MATRIX_ARB : constant := 16#88B7#; -- ../include/SDL/SDL_opengl.h:784
GL_MATRIX0_ARB : constant := 16#88C0#; -- ../include/SDL/SDL_opengl.h:785
GL_MATRIX1_ARB : constant := 16#88C1#; -- ../include/SDL/SDL_opengl.h:786
GL_MATRIX2_ARB : constant := 16#88C2#; -- ../include/SDL/SDL_opengl.h:787
GL_MATRIX3_ARB : constant := 16#88C3#; -- ../include/SDL/SDL_opengl.h:788
GL_MATRIX4_ARB : constant := 16#88C4#; -- ../include/SDL/SDL_opengl.h:789
GL_MATRIX5_ARB : constant := 16#88C5#; -- ../include/SDL/SDL_opengl.h:790
GL_MATRIX6_ARB : constant := 16#88C6#; -- ../include/SDL/SDL_opengl.h:791
GL_MATRIX7_ARB : constant := 16#88C7#; -- ../include/SDL/SDL_opengl.h:792
GL_MATRIX8_ARB : constant := 16#88C8#; -- ../include/SDL/SDL_opengl.h:793
GL_MATRIX9_ARB : constant := 16#88C9#; -- ../include/SDL/SDL_opengl.h:794
GL_MATRIX10_ARB : constant := 16#88CA#; -- ../include/SDL/SDL_opengl.h:795
GL_MATRIX11_ARB : constant := 16#88CB#; -- ../include/SDL/SDL_opengl.h:796
GL_MATRIX12_ARB : constant := 16#88CC#; -- ../include/SDL/SDL_opengl.h:797
GL_MATRIX13_ARB : constant := 16#88CD#; -- ../include/SDL/SDL_opengl.h:798
GL_MATRIX14_ARB : constant := 16#88CE#; -- ../include/SDL/SDL_opengl.h:799
GL_MATRIX15_ARB : constant := 16#88CF#; -- ../include/SDL/SDL_opengl.h:800
GL_MATRIX16_ARB : constant := 16#88D0#; -- ../include/SDL/SDL_opengl.h:801
GL_MATRIX17_ARB : constant := 16#88D1#; -- ../include/SDL/SDL_opengl.h:802
GL_MATRIX18_ARB : constant := 16#88D2#; -- ../include/SDL/SDL_opengl.h:803
GL_MATRIX19_ARB : constant := 16#88D3#; -- ../include/SDL/SDL_opengl.h:804
GL_MATRIX20_ARB : constant := 16#88D4#; -- ../include/SDL/SDL_opengl.h:805
GL_MATRIX21_ARB : constant := 16#88D5#; -- ../include/SDL/SDL_opengl.h:806
GL_MATRIX22_ARB : constant := 16#88D6#; -- ../include/SDL/SDL_opengl.h:807
GL_MATRIX23_ARB : constant := 16#88D7#; -- ../include/SDL/SDL_opengl.h:808
GL_MATRIX24_ARB : constant := 16#88D8#; -- ../include/SDL/SDL_opengl.h:809
GL_MATRIX25_ARB : constant := 16#88D9#; -- ../include/SDL/SDL_opengl.h:810
GL_MATRIX26_ARB : constant := 16#88DA#; -- ../include/SDL/SDL_opengl.h:811
GL_MATRIX27_ARB : constant := 16#88DB#; -- ../include/SDL/SDL_opengl.h:812
GL_MATRIX28_ARB : constant := 16#88DC#; -- ../include/SDL/SDL_opengl.h:813
GL_MATRIX29_ARB : constant := 16#88DD#; -- ../include/SDL/SDL_opengl.h:814
GL_MATRIX30_ARB : constant := 16#88DE#; -- ../include/SDL/SDL_opengl.h:815
GL_MATRIX31_ARB : constant := 16#88DF#; -- ../include/SDL/SDL_opengl.h:816
GL_FRAGMENT_PROGRAM_ARB : constant := 16#8804#; -- ../include/SDL/SDL_opengl.h:820
GL_PROGRAM_ALU_INSTRUCTIONS_ARB : constant := 16#8805#; -- ../include/SDL/SDL_opengl.h:821
GL_PROGRAM_TEX_INSTRUCTIONS_ARB : constant := 16#8806#; -- ../include/SDL/SDL_opengl.h:822
GL_PROGRAM_TEX_INDIRECTIONS_ARB : constant := 16#8807#; -- ../include/SDL/SDL_opengl.h:823
GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB : constant := 16#8808#; -- ../include/SDL/SDL_opengl.h:824
GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB : constant := 16#8809#; -- ../include/SDL/SDL_opengl.h:825
GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB : constant := 16#880A#; -- ../include/SDL/SDL_opengl.h:826
GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB : constant := 16#880B#; -- ../include/SDL/SDL_opengl.h:827
GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB : constant := 16#880C#; -- ../include/SDL/SDL_opengl.h:828
GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB : constant := 16#880D#; -- ../include/SDL/SDL_opengl.h:829
GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB : constant := 16#880E#; -- ../include/SDL/SDL_opengl.h:830
GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB : constant := 16#880F#; -- ../include/SDL/SDL_opengl.h:831
GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB : constant := 16#8810#; -- ../include/SDL/SDL_opengl.h:832
GL_MAX_TEXTURE_COORDS_ARB : constant := 16#8871#; -- ../include/SDL/SDL_opengl.h:833
GL_MAX_TEXTURE_IMAGE_UNITS_ARB : constant := 16#8872#; -- ../include/SDL/SDL_opengl.h:834
GL_BUFFER_SIZE_ARB : constant := 16#8764#; -- ../include/SDL/SDL_opengl.h:838
GL_BUFFER_USAGE_ARB : constant := 16#8765#; -- ../include/SDL/SDL_opengl.h:839
GL_ARRAY_BUFFER_ARB : constant := 16#8892#; -- ../include/SDL/SDL_opengl.h:840
GL_ELEMENT_ARRAY_BUFFER_ARB : constant := 16#8893#; -- ../include/SDL/SDL_opengl.h:841
GL_ARRAY_BUFFER_BINDING_ARB : constant := 16#8894#; -- ../include/SDL/SDL_opengl.h:842
GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB : constant := 16#8895#; -- ../include/SDL/SDL_opengl.h:843
GL_VERTEX_ARRAY_BUFFER_BINDING_ARB : constant := 16#8896#; -- ../include/SDL/SDL_opengl.h:844
GL_NORMAL_ARRAY_BUFFER_BINDING_ARB : constant := 16#8897#; -- ../include/SDL/SDL_opengl.h:845
GL_COLOR_ARRAY_BUFFER_BINDING_ARB : constant := 16#8898#; -- ../include/SDL/SDL_opengl.h:846
GL_INDEX_ARRAY_BUFFER_BINDING_ARB : constant := 16#8899#; -- ../include/SDL/SDL_opengl.h:847
GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB : constant := 16#889A#; -- ../include/SDL/SDL_opengl.h:848
GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB : constant := 16#889B#; -- ../include/SDL/SDL_opengl.h:849
GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB : constant := 16#889C#; -- ../include/SDL/SDL_opengl.h:850
GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB : constant := 16#889D#; -- ../include/SDL/SDL_opengl.h:851
GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB : constant := 16#889E#; -- ../include/SDL/SDL_opengl.h:852
GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB : constant := 16#889F#; -- ../include/SDL/SDL_opengl.h:853
GL_READ_ONLY_ARB : constant := 16#88B8#; -- ../include/SDL/SDL_opengl.h:854
GL_WRITE_ONLY_ARB : constant := 16#88B9#; -- ../include/SDL/SDL_opengl.h:855
GL_READ_WRITE_ARB : constant := 16#88BA#; -- ../include/SDL/SDL_opengl.h:856
GL_BUFFER_ACCESS_ARB : constant := 16#88BB#; -- ../include/SDL/SDL_opengl.h:857
GL_BUFFER_MAPPED_ARB : constant := 16#88BC#; -- ../include/SDL/SDL_opengl.h:858
GL_BUFFER_MAP_POINTER_ARB : constant := 16#88BD#; -- ../include/SDL/SDL_opengl.h:859
GL_STREAM_DRAW_ARB : constant := 16#88E0#; -- ../include/SDL/SDL_opengl.h:860
GL_STREAM_READ_ARB : constant := 16#88E1#; -- ../include/SDL/SDL_opengl.h:861
GL_STREAM_COPY_ARB : constant := 16#88E2#; -- ../include/SDL/SDL_opengl.h:862
GL_STATIC_DRAW_ARB : constant := 16#88E4#; -- ../include/SDL/SDL_opengl.h:863
GL_STATIC_READ_ARB : constant := 16#88E5#; -- ../include/SDL/SDL_opengl.h:864
GL_STATIC_COPY_ARB : constant := 16#88E6#; -- ../include/SDL/SDL_opengl.h:865
GL_DYNAMIC_DRAW_ARB : constant := 16#88E8#; -- ../include/SDL/SDL_opengl.h:866
GL_DYNAMIC_READ_ARB : constant := 16#88E9#; -- ../include/SDL/SDL_opengl.h:867
GL_DYNAMIC_COPY_ARB : constant := 16#88EA#; -- ../include/SDL/SDL_opengl.h:868
GL_QUERY_COUNTER_BITS_ARB : constant := 16#8864#; -- ../include/SDL/SDL_opengl.h:872
GL_CURRENT_QUERY_ARB : constant := 16#8865#; -- ../include/SDL/SDL_opengl.h:873
GL_QUERY_RESULT_ARB : constant := 16#8866#; -- ../include/SDL/SDL_opengl.h:874
GL_QUERY_RESULT_AVAILABLE_ARB : constant := 16#8867#; -- ../include/SDL/SDL_opengl.h:875
GL_SAMPLES_PASSED_ARB : constant := 16#8914#; -- ../include/SDL/SDL_opengl.h:876
GL_PROGRAM_OBJECT_ARB : constant := 16#8B40#; -- ../include/SDL/SDL_opengl.h:880
GL_SHADER_OBJECT_ARB : constant := 16#8B48#; -- ../include/SDL/SDL_opengl.h:881
GL_OBJECT_TYPE_ARB : constant := 16#8B4E#; -- ../include/SDL/SDL_opengl.h:882
GL_OBJECT_SUBTYPE_ARB : constant := 16#8B4F#; -- ../include/SDL/SDL_opengl.h:883
GL_FLOAT_VEC2_ARB : constant := 16#8B50#; -- ../include/SDL/SDL_opengl.h:884
GL_FLOAT_VEC3_ARB : constant := 16#8B51#; -- ../include/SDL/SDL_opengl.h:885
GL_FLOAT_VEC4_ARB : constant := 16#8B52#; -- ../include/SDL/SDL_opengl.h:886
GL_INT_VEC2_ARB : constant := 16#8B53#; -- ../include/SDL/SDL_opengl.h:887
GL_INT_VEC3_ARB : constant := 16#8B54#; -- ../include/SDL/SDL_opengl.h:888
GL_INT_VEC4_ARB : constant := 16#8B55#; -- ../include/SDL/SDL_opengl.h:889
GL_BOOL_ARB : constant := 16#8B56#; -- ../include/SDL/SDL_opengl.h:890
GL_BOOL_VEC2_ARB : constant := 16#8B57#; -- ../include/SDL/SDL_opengl.h:891
GL_BOOL_VEC3_ARB : constant := 16#8B58#; -- ../include/SDL/SDL_opengl.h:892
GL_BOOL_VEC4_ARB : constant := 16#8B59#; -- ../include/SDL/SDL_opengl.h:893
GL_FLOAT_MAT2_ARB : constant := 16#8B5A#; -- ../include/SDL/SDL_opengl.h:894
GL_FLOAT_MAT3_ARB : constant := 16#8B5B#; -- ../include/SDL/SDL_opengl.h:895
GL_FLOAT_MAT4_ARB : constant := 16#8B5C#; -- ../include/SDL/SDL_opengl.h:896
GL_SAMPLER_1D_ARB : constant := 16#8B5D#; -- ../include/SDL/SDL_opengl.h:897
GL_SAMPLER_2D_ARB : constant := 16#8B5E#; -- ../include/SDL/SDL_opengl.h:898
GL_SAMPLER_3D_ARB : constant := 16#8B5F#; -- ../include/SDL/SDL_opengl.h:899
GL_SAMPLER_CUBE_ARB : constant := 16#8B60#; -- ../include/SDL/SDL_opengl.h:900
GL_SAMPLER_1D_SHADOW_ARB : constant := 16#8B61#; -- ../include/SDL/SDL_opengl.h:901
GL_SAMPLER_2D_SHADOW_ARB : constant := 16#8B62#; -- ../include/SDL/SDL_opengl.h:902
GL_SAMPLER_2D_RECT_ARB : constant := 16#8B63#; -- ../include/SDL/SDL_opengl.h:903
GL_SAMPLER_2D_RECT_SHADOW_ARB : constant := 16#8B64#; -- ../include/SDL/SDL_opengl.h:904
GL_OBJECT_DELETE_STATUS_ARB : constant := 16#8B80#; -- ../include/SDL/SDL_opengl.h:905
GL_OBJECT_COMPILE_STATUS_ARB : constant := 16#8B81#; -- ../include/SDL/SDL_opengl.h:906
GL_OBJECT_LINK_STATUS_ARB : constant := 16#8B82#; -- ../include/SDL/SDL_opengl.h:907
GL_OBJECT_VALIDATE_STATUS_ARB : constant := 16#8B83#; -- ../include/SDL/SDL_opengl.h:908
GL_OBJECT_INFO_LOG_LENGTH_ARB : constant := 16#8B84#; -- ../include/SDL/SDL_opengl.h:909
GL_OBJECT_ATTACHED_OBJECTS_ARB : constant := 16#8B85#; -- ../include/SDL/SDL_opengl.h:910
GL_OBJECT_ACTIVE_UNIFORMS_ARB : constant := 16#8B86#; -- ../include/SDL/SDL_opengl.h:911
GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB : constant := 16#8B87#; -- ../include/SDL/SDL_opengl.h:912
GL_OBJECT_SHADER_SOURCE_LENGTH_ARB : constant := 16#8B88#; -- ../include/SDL/SDL_opengl.h:913
GL_VERTEX_SHADER_ARB : constant := 16#8B31#; -- ../include/SDL/SDL_opengl.h:917
GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB : constant := 16#8B4A#; -- ../include/SDL/SDL_opengl.h:918
GL_MAX_VARYING_FLOATS_ARB : constant := 16#8B4B#; -- ../include/SDL/SDL_opengl.h:919
GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB : constant := 16#8B4C#; -- ../include/SDL/SDL_opengl.h:920
GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB : constant := 16#8B4D#; -- ../include/SDL/SDL_opengl.h:921
GL_OBJECT_ACTIVE_ATTRIBUTES_ARB : constant := 16#8B89#; -- ../include/SDL/SDL_opengl.h:922
GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB : constant := 16#8B8A#; -- ../include/SDL/SDL_opengl.h:923
GL_FRAGMENT_SHADER_ARB : constant := 16#8B30#; -- ../include/SDL/SDL_opengl.h:927
GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB : constant := 16#8B49#; -- ../include/SDL/SDL_opengl.h:928
GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB : constant := 16#8B8B#; -- ../include/SDL/SDL_opengl.h:929
GL_SHADING_LANGUAGE_VERSION_ARB : constant := 16#8B8C#; -- ../include/SDL/SDL_opengl.h:933
GL_POINT_SPRITE_ARB : constant := 16#8861#; -- ../include/SDL/SDL_opengl.h:940
GL_COORD_REPLACE_ARB : constant := 16#8862#; -- ../include/SDL/SDL_opengl.h:941
GL_MAX_DRAW_BUFFERS_ARB : constant := 16#8824#; -- ../include/SDL/SDL_opengl.h:948
GL_DRAW_BUFFER0_ARB : constant := 16#8825#; -- ../include/SDL/SDL_opengl.h:949
GL_DRAW_BUFFER1_ARB : constant := 16#8826#; -- ../include/SDL/SDL_opengl.h:950
GL_DRAW_BUFFER2_ARB : constant := 16#8827#; -- ../include/SDL/SDL_opengl.h:951
GL_DRAW_BUFFER3_ARB : constant := 16#8828#; -- ../include/SDL/SDL_opengl.h:952
GL_DRAW_BUFFER4_ARB : constant := 16#8829#; -- ../include/SDL/SDL_opengl.h:953
GL_DRAW_BUFFER5_ARB : constant := 16#882A#; -- ../include/SDL/SDL_opengl.h:954
GL_DRAW_BUFFER6_ARB : constant := 16#882B#; -- ../include/SDL/SDL_opengl.h:955
GL_DRAW_BUFFER7_ARB : constant := 16#882C#; -- ../include/SDL/SDL_opengl.h:956
GL_DRAW_BUFFER8_ARB : constant := 16#882D#; -- ../include/SDL/SDL_opengl.h:957
GL_DRAW_BUFFER9_ARB : constant := 16#882E#; -- ../include/SDL/SDL_opengl.h:958
GL_DRAW_BUFFER10_ARB : constant := 16#882F#; -- ../include/SDL/SDL_opengl.h:959
GL_DRAW_BUFFER11_ARB : constant := 16#8830#; -- ../include/SDL/SDL_opengl.h:960
GL_DRAW_BUFFER12_ARB : constant := 16#8831#; -- ../include/SDL/SDL_opengl.h:961
GL_DRAW_BUFFER13_ARB : constant := 16#8832#; -- ../include/SDL/SDL_opengl.h:962
GL_DRAW_BUFFER14_ARB : constant := 16#8833#; -- ../include/SDL/SDL_opengl.h:963
GL_DRAW_BUFFER15_ARB : constant := 16#8834#; -- ../include/SDL/SDL_opengl.h:964
GL_TEXTURE_RECTANGLE_ARB : constant := 16#84F5#; -- ../include/SDL/SDL_opengl.h:968
GL_TEXTURE_BINDING_RECTANGLE_ARB : constant := 16#84F6#; -- ../include/SDL/SDL_opengl.h:969
GL_PROXY_TEXTURE_RECTANGLE_ARB : constant := 16#84F7#; -- ../include/SDL/SDL_opengl.h:970
GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB : constant := 16#84F8#; -- ../include/SDL/SDL_opengl.h:971
GL_RGBA_FLOAT_MODE_ARB : constant := 16#8820#; -- ../include/SDL/SDL_opengl.h:975
GL_CLAMP_VERTEX_COLOR_ARB : constant := 16#891A#; -- ../include/SDL/SDL_opengl.h:976
GL_CLAMP_FRAGMENT_COLOR_ARB : constant := 16#891B#; -- ../include/SDL/SDL_opengl.h:977
GL_CLAMP_READ_COLOR_ARB : constant := 16#891C#; -- ../include/SDL/SDL_opengl.h:978
GL_FIXED_ONLY_ARB : constant := 16#891D#; -- ../include/SDL/SDL_opengl.h:979
GL_HALF_FLOAT_ARB : constant := 16#140B#; -- ../include/SDL/SDL_opengl.h:983
GL_TEXTURE_RED_TYPE_ARB : constant := 16#8C10#; -- ../include/SDL/SDL_opengl.h:987
GL_TEXTURE_GREEN_TYPE_ARB : constant := 16#8C11#; -- ../include/SDL/SDL_opengl.h:988
GL_TEXTURE_BLUE_TYPE_ARB : constant := 16#8C12#; -- ../include/SDL/SDL_opengl.h:989
GL_TEXTURE_ALPHA_TYPE_ARB : constant := 16#8C13#; -- ../include/SDL/SDL_opengl.h:990
GL_TEXTURE_LUMINANCE_TYPE_ARB : constant := 16#8C14#; -- ../include/SDL/SDL_opengl.h:991
GL_TEXTURE_INTENSITY_TYPE_ARB : constant := 16#8C15#; -- ../include/SDL/SDL_opengl.h:992
GL_TEXTURE_DEPTH_TYPE_ARB : constant := 16#8C16#; -- ../include/SDL/SDL_opengl.h:993
GL_UNSIGNED_NORMALIZED_ARB : constant := 16#8C17#; -- ../include/SDL/SDL_opengl.h:994
GL_RGBA32F_ARB : constant := 16#8814#; -- ../include/SDL/SDL_opengl.h:995
GL_RGB32F_ARB : constant := 16#8815#; -- ../include/SDL/SDL_opengl.h:996
GL_ALPHA32F_ARB : constant := 16#8816#; -- ../include/SDL/SDL_opengl.h:997
GL_INTENSITY32F_ARB : constant := 16#8817#; -- ../include/SDL/SDL_opengl.h:998
GL_LUMINANCE32F_ARB : constant := 16#8818#; -- ../include/SDL/SDL_opengl.h:999
GL_LUMINANCE_ALPHA32F_ARB : constant := 16#8819#; -- ../include/SDL/SDL_opengl.h:1000
GL_RGBA16F_ARB : constant := 16#881A#; -- ../include/SDL/SDL_opengl.h:1001
GL_RGB16F_ARB : constant := 16#881B#; -- ../include/SDL/SDL_opengl.h:1002
GL_ALPHA16F_ARB : constant := 16#881C#; -- ../include/SDL/SDL_opengl.h:1003
GL_INTENSITY16F_ARB : constant := 16#881D#; -- ../include/SDL/SDL_opengl.h:1004
GL_LUMINANCE16F_ARB : constant := 16#881E#; -- ../include/SDL/SDL_opengl.h:1005
GL_LUMINANCE_ALPHA16F_ARB : constant := 16#881F#; -- ../include/SDL/SDL_opengl.h:1006
GL_PIXEL_PACK_BUFFER_ARB : constant := 16#88EB#; -- ../include/SDL/SDL_opengl.h:1010
GL_PIXEL_UNPACK_BUFFER_ARB : constant := 16#88EC#; -- ../include/SDL/SDL_opengl.h:1011
GL_PIXEL_PACK_BUFFER_BINDING_ARB : constant := 16#88ED#; -- ../include/SDL/SDL_opengl.h:1012
GL_PIXEL_UNPACK_BUFFER_BINDING_ARB : constant := 16#88EF#; -- ../include/SDL/SDL_opengl.h:1013
GL_ABGR_EXT : constant := 16#8000#; -- ../include/SDL/SDL_opengl.h:1017
GL_CONSTANT_COLOR_EXT : constant := 16#8001#; -- ../include/SDL/SDL_opengl.h:1021
GL_ONE_MINUS_CONSTANT_COLOR_EXT : constant := 16#8002#; -- ../include/SDL/SDL_opengl.h:1022
GL_CONSTANT_ALPHA_EXT : constant := 16#8003#; -- ../include/SDL/SDL_opengl.h:1023
GL_ONE_MINUS_CONSTANT_ALPHA_EXT : constant := 16#8004#; -- ../include/SDL/SDL_opengl.h:1024
GL_BLEND_COLOR_EXT : constant := 16#8005#; -- ../include/SDL/SDL_opengl.h:1025
GL_POLYGON_OFFSET_EXT : constant := 16#8037#; -- ../include/SDL/SDL_opengl.h:1029
GL_POLYGON_OFFSET_FACTOR_EXT : constant := 16#8038#; -- ../include/SDL/SDL_opengl.h:1030
GL_POLYGON_OFFSET_BIAS_EXT : constant := 16#8039#; -- ../include/SDL/SDL_opengl.h:1031
GL_ALPHA4_EXT : constant := 16#803B#; -- ../include/SDL/SDL_opengl.h:1035
GL_ALPHA8_EXT : constant := 16#803C#; -- ../include/SDL/SDL_opengl.h:1036
GL_ALPHA12_EXT : constant := 16#803D#; -- ../include/SDL/SDL_opengl.h:1037
GL_ALPHA16_EXT : constant := 16#803E#; -- ../include/SDL/SDL_opengl.h:1038
GL_LUMINANCE4_EXT : constant := 16#803F#; -- ../include/SDL/SDL_opengl.h:1039
GL_LUMINANCE8_EXT : constant := 16#8040#; -- ../include/SDL/SDL_opengl.h:1040
GL_LUMINANCE12_EXT : constant := 16#8041#; -- ../include/SDL/SDL_opengl.h:1041
GL_LUMINANCE16_EXT : constant := 16#8042#; -- ../include/SDL/SDL_opengl.h:1042
GL_LUMINANCE4_ALPHA4_EXT : constant := 16#8043#; -- ../include/SDL/SDL_opengl.h:1043
GL_LUMINANCE6_ALPHA2_EXT : constant := 16#8044#; -- ../include/SDL/SDL_opengl.h:1044
GL_LUMINANCE8_ALPHA8_EXT : constant := 16#8045#; -- ../include/SDL/SDL_opengl.h:1045
GL_LUMINANCE12_ALPHA4_EXT : constant := 16#8046#; -- ../include/SDL/SDL_opengl.h:1046
GL_LUMINANCE12_ALPHA12_EXT : constant := 16#8047#; -- ../include/SDL/SDL_opengl.h:1047
GL_LUMINANCE16_ALPHA16_EXT : constant := 16#8048#; -- ../include/SDL/SDL_opengl.h:1048
GL_INTENSITY_EXT : constant := 16#8049#; -- ../include/SDL/SDL_opengl.h:1049
GL_INTENSITY4_EXT : constant := 16#804A#; -- ../include/SDL/SDL_opengl.h:1050
GL_INTENSITY8_EXT : constant := 16#804B#; -- ../include/SDL/SDL_opengl.h:1051
GL_INTENSITY12_EXT : constant := 16#804C#; -- ../include/SDL/SDL_opengl.h:1052
GL_INTENSITY16_EXT : constant := 16#804D#; -- ../include/SDL/SDL_opengl.h:1053
GL_RGB2_EXT : constant := 16#804E#; -- ../include/SDL/SDL_opengl.h:1054
GL_RGB4_EXT : constant := 16#804F#; -- ../include/SDL/SDL_opengl.h:1055
GL_RGB5_EXT : constant := 16#8050#; -- ../include/SDL/SDL_opengl.h:1056
GL_RGB8_EXT : constant := 16#8051#; -- ../include/SDL/SDL_opengl.h:1057
GL_RGB10_EXT : constant := 16#8052#; -- ../include/SDL/SDL_opengl.h:1058
GL_RGB12_EXT : constant := 16#8053#; -- ../include/SDL/SDL_opengl.h:1059
GL_RGB16_EXT : constant := 16#8054#; -- ../include/SDL/SDL_opengl.h:1060
GL_RGBA2_EXT : constant := 16#8055#; -- ../include/SDL/SDL_opengl.h:1061
GL_RGBA4_EXT : constant := 16#8056#; -- ../include/SDL/SDL_opengl.h:1062
GL_RGB5_A1_EXT : constant := 16#8057#; -- ../include/SDL/SDL_opengl.h:1063
GL_RGBA8_EXT : constant := 16#8058#; -- ../include/SDL/SDL_opengl.h:1064
GL_RGB10_A2_EXT : constant := 16#8059#; -- ../include/SDL/SDL_opengl.h:1065
GL_RGBA12_EXT : constant := 16#805A#; -- ../include/SDL/SDL_opengl.h:1066
GL_RGBA16_EXT : constant := 16#805B#; -- ../include/SDL/SDL_opengl.h:1067
GL_TEXTURE_RED_SIZE_EXT : constant := 16#805C#; -- ../include/SDL/SDL_opengl.h:1068
GL_TEXTURE_GREEN_SIZE_EXT : constant := 16#805D#; -- ../include/SDL/SDL_opengl.h:1069
GL_TEXTURE_BLUE_SIZE_EXT : constant := 16#805E#; -- ../include/SDL/SDL_opengl.h:1070
GL_TEXTURE_ALPHA_SIZE_EXT : constant := 16#805F#; -- ../include/SDL/SDL_opengl.h:1071
GL_TEXTURE_LUMINANCE_SIZE_EXT : constant := 16#8060#; -- ../include/SDL/SDL_opengl.h:1072
GL_TEXTURE_INTENSITY_SIZE_EXT : constant := 16#8061#; -- ../include/SDL/SDL_opengl.h:1073
GL_REPLACE_EXT : constant := 16#8062#; -- ../include/SDL/SDL_opengl.h:1074
GL_PROXY_TEXTURE_1D_EXT : constant := 16#8063#; -- ../include/SDL/SDL_opengl.h:1075
GL_PROXY_TEXTURE_2D_EXT : constant := 16#8064#; -- ../include/SDL/SDL_opengl.h:1076
GL_TEXTURE_TOO_LARGE_EXT : constant := 16#8065#; -- ../include/SDL/SDL_opengl.h:1077
GL_PACK_SKIP_IMAGES_EXT : constant := 16#806B#; -- ../include/SDL/SDL_opengl.h:1081
GL_PACK_IMAGE_HEIGHT_EXT : constant := 16#806C#; -- ../include/SDL/SDL_opengl.h:1082
GL_UNPACK_SKIP_IMAGES_EXT : constant := 16#806D#; -- ../include/SDL/SDL_opengl.h:1083
GL_UNPACK_IMAGE_HEIGHT_EXT : constant := 16#806E#; -- ../include/SDL/SDL_opengl.h:1084
GL_TEXTURE_3D_EXT : constant := 16#806F#; -- ../include/SDL/SDL_opengl.h:1085
GL_PROXY_TEXTURE_3D_EXT : constant := 16#8070#; -- ../include/SDL/SDL_opengl.h:1086
GL_TEXTURE_DEPTH_EXT : constant := 16#8071#; -- ../include/SDL/SDL_opengl.h:1087
GL_TEXTURE_WRAP_R_EXT : constant := 16#8072#; -- ../include/SDL/SDL_opengl.h:1088
GL_MAX_3D_TEXTURE_SIZE_EXT : constant := 16#8073#; -- ../include/SDL/SDL_opengl.h:1089
GL_FILTER4_SGIS : constant := 16#8146#; -- ../include/SDL/SDL_opengl.h:1093
GL_TEXTURE_FILTER4_SIZE_SGIS : constant := 16#8147#; -- ../include/SDL/SDL_opengl.h:1094
GL_HISTOGRAM_EXT : constant := 16#8024#; -- ../include/SDL/SDL_opengl.h:1104
GL_PROXY_HISTOGRAM_EXT : constant := 16#8025#; -- ../include/SDL/SDL_opengl.h:1105
GL_HISTOGRAM_WIDTH_EXT : constant := 16#8026#; -- ../include/SDL/SDL_opengl.h:1106
GL_HISTOGRAM_FORMAT_EXT : constant := 16#8027#; -- ../include/SDL/SDL_opengl.h:1107
GL_HISTOGRAM_RED_SIZE_EXT : constant := 16#8028#; -- ../include/SDL/SDL_opengl.h:1108
GL_HISTOGRAM_GREEN_SIZE_EXT : constant := 16#8029#; -- ../include/SDL/SDL_opengl.h:1109
GL_HISTOGRAM_BLUE_SIZE_EXT : constant := 16#802A#; -- ../include/SDL/SDL_opengl.h:1110
GL_HISTOGRAM_ALPHA_SIZE_EXT : constant := 16#802B#; -- ../include/SDL/SDL_opengl.h:1111
GL_HISTOGRAM_LUMINANCE_SIZE_EXT : constant := 16#802C#; -- ../include/SDL/SDL_opengl.h:1112
GL_HISTOGRAM_SINK_EXT : constant := 16#802D#; -- ../include/SDL/SDL_opengl.h:1113
GL_MINMAX_EXT : constant := 16#802E#; -- ../include/SDL/SDL_opengl.h:1114
GL_MINMAX_FORMAT_EXT : constant := 16#802F#; -- ../include/SDL/SDL_opengl.h:1115
GL_MINMAX_SINK_EXT : constant := 16#8030#; -- ../include/SDL/SDL_opengl.h:1116
GL_TABLE_TOO_LARGE_EXT : constant := 16#8031#; -- ../include/SDL/SDL_opengl.h:1117
GL_CONVOLUTION_1D_EXT : constant := 16#8010#; -- ../include/SDL/SDL_opengl.h:1121
GL_CONVOLUTION_2D_EXT : constant := 16#8011#; -- ../include/SDL/SDL_opengl.h:1122
GL_SEPARABLE_2D_EXT : constant := 16#8012#; -- ../include/SDL/SDL_opengl.h:1123
GL_CONVOLUTION_BORDER_MODE_EXT : constant := 16#8013#; -- ../include/SDL/SDL_opengl.h:1124
GL_CONVOLUTION_FILTER_SCALE_EXT : constant := 16#8014#; -- ../include/SDL/SDL_opengl.h:1125
GL_CONVOLUTION_FILTER_BIAS_EXT : constant := 16#8015#; -- ../include/SDL/SDL_opengl.h:1126
GL_REDUCE_EXT : constant := 16#8016#; -- ../include/SDL/SDL_opengl.h:1127
GL_CONVOLUTION_FORMAT_EXT : constant := 16#8017#; -- ../include/SDL/SDL_opengl.h:1128
GL_CONVOLUTION_WIDTH_EXT : constant := 16#8018#; -- ../include/SDL/SDL_opengl.h:1129
GL_CONVOLUTION_HEIGHT_EXT : constant := 16#8019#; -- ../include/SDL/SDL_opengl.h:1130
GL_MAX_CONVOLUTION_WIDTH_EXT : constant := 16#801A#; -- ../include/SDL/SDL_opengl.h:1131
GL_MAX_CONVOLUTION_HEIGHT_EXT : constant := 16#801B#; -- ../include/SDL/SDL_opengl.h:1132
GL_POST_CONVOLUTION_RED_SCALE_EXT : constant := 16#801C#; -- ../include/SDL/SDL_opengl.h:1133
GL_POST_CONVOLUTION_GREEN_SCALE_EXT : constant := 16#801D#; -- ../include/SDL/SDL_opengl.h:1134
GL_POST_CONVOLUTION_BLUE_SCALE_EXT : constant := 16#801E#; -- ../include/SDL/SDL_opengl.h:1135
GL_POST_CONVOLUTION_ALPHA_SCALE_EXT : constant := 16#801F#; -- ../include/SDL/SDL_opengl.h:1136
GL_POST_CONVOLUTION_RED_BIAS_EXT : constant := 16#8020#; -- ../include/SDL/SDL_opengl.h:1137
GL_POST_CONVOLUTION_GREEN_BIAS_EXT : constant := 16#8021#; -- ../include/SDL/SDL_opengl.h:1138
GL_POST_CONVOLUTION_BLUE_BIAS_EXT : constant := 16#8022#; -- ../include/SDL/SDL_opengl.h:1139
GL_POST_CONVOLUTION_ALPHA_BIAS_EXT : constant := 16#8023#; -- ../include/SDL/SDL_opengl.h:1140
GL_COLOR_MATRIX_SGI : constant := 16#80B1#; -- ../include/SDL/SDL_opengl.h:1144
GL_COLOR_MATRIX_STACK_DEPTH_SGI : constant := 16#80B2#; -- ../include/SDL/SDL_opengl.h:1145
GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI : constant := 16#80B3#; -- ../include/SDL/SDL_opengl.h:1146
GL_POST_COLOR_MATRIX_RED_SCALE_SGI : constant := 16#80B4#; -- ../include/SDL/SDL_opengl.h:1147
GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI : constant := 16#80B5#; -- ../include/SDL/SDL_opengl.h:1148
GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI : constant := 16#80B6#; -- ../include/SDL/SDL_opengl.h:1149
GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI : constant := 16#80B7#; -- ../include/SDL/SDL_opengl.h:1150
GL_POST_COLOR_MATRIX_RED_BIAS_SGI : constant := 16#80B8#; -- ../include/SDL/SDL_opengl.h:1151
GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI : constant := 16#80B9#; -- ../include/SDL/SDL_opengl.h:1152
GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI : constant := 16#80BA#; -- ../include/SDL/SDL_opengl.h:1153
GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI : constant := 16#80BB#; -- ../include/SDL/SDL_opengl.h:1154
GL_COLOR_TABLE_SGI : constant := 16#80D0#; -- ../include/SDL/SDL_opengl.h:1158
GL_POST_CONVOLUTION_COLOR_TABLE_SGI : constant := 16#80D1#; -- ../include/SDL/SDL_opengl.h:1159
GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI : constant := 16#80D2#; -- ../include/SDL/SDL_opengl.h:1160
GL_PROXY_COLOR_TABLE_SGI : constant := 16#80D3#; -- ../include/SDL/SDL_opengl.h:1161
GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI : constant := 16#80D4#; -- ../include/SDL/SDL_opengl.h:1162
GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI : constant := 16#80D5#; -- ../include/SDL/SDL_opengl.h:1163
GL_COLOR_TABLE_SCALE_SGI : constant := 16#80D6#; -- ../include/SDL/SDL_opengl.h:1164
GL_COLOR_TABLE_BIAS_SGI : constant := 16#80D7#; -- ../include/SDL/SDL_opengl.h:1165
GL_COLOR_TABLE_FORMAT_SGI : constant := 16#80D8#; -- ../include/SDL/SDL_opengl.h:1166
GL_COLOR_TABLE_WIDTH_SGI : constant := 16#80D9#; -- ../include/SDL/SDL_opengl.h:1167
GL_COLOR_TABLE_RED_SIZE_SGI : constant := 16#80DA#; -- ../include/SDL/SDL_opengl.h:1168
GL_COLOR_TABLE_GREEN_SIZE_SGI : constant := 16#80DB#; -- ../include/SDL/SDL_opengl.h:1169
GL_COLOR_TABLE_BLUE_SIZE_SGI : constant := 16#80DC#; -- ../include/SDL/SDL_opengl.h:1170
GL_COLOR_TABLE_ALPHA_SIZE_SGI : constant := 16#80DD#; -- ../include/SDL/SDL_opengl.h:1171
GL_COLOR_TABLE_LUMINANCE_SIZE_SGI : constant := 16#80DE#; -- ../include/SDL/SDL_opengl.h:1172
GL_COLOR_TABLE_INTENSITY_SIZE_SGI : constant := 16#80DF#; -- ../include/SDL/SDL_opengl.h:1173
GL_PIXEL_TEXTURE_SGIS : constant := 16#8353#; -- ../include/SDL/SDL_opengl.h:1177
GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS : constant := 16#8354#; -- ../include/SDL/SDL_opengl.h:1178
GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS : constant := 16#8355#; -- ../include/SDL/SDL_opengl.h:1179
GL_PIXEL_GROUP_COLOR_SGIS : constant := 16#8356#; -- ../include/SDL/SDL_opengl.h:1180
GL_PIXEL_TEX_GEN_SGIX : constant := 16#8139#; -- ../include/SDL/SDL_opengl.h:1184
GL_PIXEL_TEX_GEN_MODE_SGIX : constant := 16#832B#; -- ../include/SDL/SDL_opengl.h:1185
GL_PACK_SKIP_VOLUMES_SGIS : constant := 16#8130#; -- ../include/SDL/SDL_opengl.h:1189
GL_PACK_IMAGE_DEPTH_SGIS : constant := 16#8131#; -- ../include/SDL/SDL_opengl.h:1190
GL_UNPACK_SKIP_VOLUMES_SGIS : constant := 16#8132#; -- ../include/SDL/SDL_opengl.h:1191
GL_UNPACK_IMAGE_DEPTH_SGIS : constant := 16#8133#; -- ../include/SDL/SDL_opengl.h:1192
GL_TEXTURE_4D_SGIS : constant := 16#8134#; -- ../include/SDL/SDL_opengl.h:1193
GL_PROXY_TEXTURE_4D_SGIS : constant := 16#8135#; -- ../include/SDL/SDL_opengl.h:1194
GL_TEXTURE_4DSIZE_SGIS : constant := 16#8136#; -- ../include/SDL/SDL_opengl.h:1195
GL_TEXTURE_WRAP_Q_SGIS : constant := 16#8137#; -- ../include/SDL/SDL_opengl.h:1196
GL_MAX_4D_TEXTURE_SIZE_SGIS : constant := 16#8138#; -- ../include/SDL/SDL_opengl.h:1197
GL_TEXTURE_4D_BINDING_SGIS : constant := 16#814F#; -- ../include/SDL/SDL_opengl.h:1198
GL_TEXTURE_COLOR_TABLE_SGI : constant := 16#80BC#; -- ../include/SDL/SDL_opengl.h:1202
GL_PROXY_TEXTURE_COLOR_TABLE_SGI : constant := 16#80BD#; -- ../include/SDL/SDL_opengl.h:1203
GL_CMYK_EXT : constant := 16#800C#; -- ../include/SDL/SDL_opengl.h:1207
GL_CMYKA_EXT : constant := 16#800D#; -- ../include/SDL/SDL_opengl.h:1208
GL_PACK_CMYK_HINT_EXT : constant := 16#800E#; -- ../include/SDL/SDL_opengl.h:1209
GL_UNPACK_CMYK_HINT_EXT : constant := 16#800F#; -- ../include/SDL/SDL_opengl.h:1210
GL_TEXTURE_PRIORITY_EXT : constant := 16#8066#; -- ../include/SDL/SDL_opengl.h:1214
GL_TEXTURE_RESIDENT_EXT : constant := 16#8067#; -- ../include/SDL/SDL_opengl.h:1215
GL_TEXTURE_1D_BINDING_EXT : constant := 16#8068#; -- ../include/SDL/SDL_opengl.h:1216
GL_TEXTURE_2D_BINDING_EXT : constant := 16#8069#; -- ../include/SDL/SDL_opengl.h:1217
GL_TEXTURE_3D_BINDING_EXT : constant := 16#806A#; -- ../include/SDL/SDL_opengl.h:1218
GL_DETAIL_TEXTURE_2D_SGIS : constant := 16#8095#; -- ../include/SDL/SDL_opengl.h:1222
GL_DETAIL_TEXTURE_2D_BINDING_SGIS : constant := 16#8096#; -- ../include/SDL/SDL_opengl.h:1223
GL_LINEAR_DETAIL_SGIS : constant := 16#8097#; -- ../include/SDL/SDL_opengl.h:1224
GL_LINEAR_DETAIL_ALPHA_SGIS : constant := 16#8098#; -- ../include/SDL/SDL_opengl.h:1225
GL_LINEAR_DETAIL_COLOR_SGIS : constant := 16#8099#; -- ../include/SDL/SDL_opengl.h:1226
GL_DETAIL_TEXTURE_LEVEL_SGIS : constant := 16#809A#; -- ../include/SDL/SDL_opengl.h:1227
GL_DETAIL_TEXTURE_MODE_SGIS : constant := 16#809B#; -- ../include/SDL/SDL_opengl.h:1228
GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS : constant := 16#809C#; -- ../include/SDL/SDL_opengl.h:1229
GL_LINEAR_SHARPEN_SGIS : constant := 16#80AD#; -- ../include/SDL/SDL_opengl.h:1233
GL_LINEAR_SHARPEN_ALPHA_SGIS : constant := 16#80AE#; -- ../include/SDL/SDL_opengl.h:1234
GL_LINEAR_SHARPEN_COLOR_SGIS : constant := 16#80AF#; -- ../include/SDL/SDL_opengl.h:1235
GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS : constant := 16#80B0#; -- ../include/SDL/SDL_opengl.h:1236
GL_UNSIGNED_BYTE_3_3_2_EXT : constant := 16#8032#; -- ../include/SDL/SDL_opengl.h:1240
GL_UNSIGNED_SHORT_4_4_4_4_EXT : constant := 16#8033#; -- ../include/SDL/SDL_opengl.h:1241
GL_UNSIGNED_SHORT_5_5_5_1_EXT : constant := 16#8034#; -- ../include/SDL/SDL_opengl.h:1242
GL_UNSIGNED_INT_8_8_8_8_EXT : constant := 16#8035#; -- ../include/SDL/SDL_opengl.h:1243
GL_UNSIGNED_INT_10_10_10_2_EXT : constant := 16#8036#; -- ../include/SDL/SDL_opengl.h:1244
GL_TEXTURE_MIN_LOD_SGIS : constant := 16#813A#; -- ../include/SDL/SDL_opengl.h:1248
GL_TEXTURE_MAX_LOD_SGIS : constant := 16#813B#; -- ../include/SDL/SDL_opengl.h:1249
GL_TEXTURE_BASE_LEVEL_SGIS : constant := 16#813C#; -- ../include/SDL/SDL_opengl.h:1250
GL_TEXTURE_MAX_LEVEL_SGIS : constant := 16#813D#; -- ../include/SDL/SDL_opengl.h:1251
GL_MULTISAMPLE_SGIS : constant := 16#809D#; -- ../include/SDL/SDL_opengl.h:1255
GL_SAMPLE_ALPHA_TO_MASK_SGIS : constant := 16#809E#; -- ../include/SDL/SDL_opengl.h:1256
GL_SAMPLE_ALPHA_TO_ONE_SGIS : constant := 16#809F#; -- ../include/SDL/SDL_opengl.h:1257
GL_SAMPLE_MASK_SGIS : constant := 16#80A0#; -- ../include/SDL/SDL_opengl.h:1258
GL_1PASS_SGIS : constant := 16#80A1#; -- ../include/SDL/SDL_opengl.h:1259
GL_2PASS_0_SGIS : constant := 16#80A2#; -- ../include/SDL/SDL_opengl.h:1260
GL_2PASS_1_SGIS : constant := 16#80A3#; -- ../include/SDL/SDL_opengl.h:1261
GL_4PASS_0_SGIS : constant := 16#80A4#; -- ../include/SDL/SDL_opengl.h:1262
GL_4PASS_1_SGIS : constant := 16#80A5#; -- ../include/SDL/SDL_opengl.h:1263
GL_4PASS_2_SGIS : constant := 16#80A6#; -- ../include/SDL/SDL_opengl.h:1264
GL_4PASS_3_SGIS : constant := 16#80A7#; -- ../include/SDL/SDL_opengl.h:1265
GL_SAMPLE_BUFFERS_SGIS : constant := 16#80A8#; -- ../include/SDL/SDL_opengl.h:1266
GL_SAMPLES_SGIS : constant := 16#80A9#; -- ../include/SDL/SDL_opengl.h:1267
GL_SAMPLE_MASK_VALUE_SGIS : constant := 16#80AA#; -- ../include/SDL/SDL_opengl.h:1268
GL_SAMPLE_MASK_INVERT_SGIS : constant := 16#80AB#; -- ../include/SDL/SDL_opengl.h:1269
GL_SAMPLE_PATTERN_SGIS : constant := 16#80AC#; -- ../include/SDL/SDL_opengl.h:1270
GL_RESCALE_NORMAL_EXT : constant := 16#803A#; -- ../include/SDL/SDL_opengl.h:1274
GL_GENERATE_MIPMAP_SGIS : constant := 16#8191#; -- ../include/SDL/SDL_opengl.h:1316
GL_GENERATE_MIPMAP_HINT_SGIS : constant := 16#8192#; -- ../include/SDL/SDL_opengl.h:1317
GL_LINEAR_CLIPMAP_LINEAR_SGIX : constant := 16#8170#; -- ../include/SDL/SDL_opengl.h:1321
GL_TEXTURE_CLIPMAP_CENTER_SGIX : constant := 16#8171#; -- ../include/SDL/SDL_opengl.h:1322
GL_TEXTURE_CLIPMAP_FRAME_SGIX : constant := 16#8172#; -- ../include/SDL/SDL_opengl.h:1323
GL_TEXTURE_CLIPMAP_OFFSET_SGIX : constant := 16#8173#; -- ../include/SDL/SDL_opengl.h:1324
GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX : constant := 16#8174#; -- ../include/SDL/SDL_opengl.h:1325
GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX : constant := 16#8175#; -- ../include/SDL/SDL_opengl.h:1326
GL_TEXTURE_CLIPMAP_DEPTH_SGIX : constant := 16#8176#; -- ../include/SDL/SDL_opengl.h:1327
GL_MAX_CLIPMAP_DEPTH_SGIX : constant := 16#8177#; -- ../include/SDL/SDL_opengl.h:1328
GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX : constant := 16#8178#; -- ../include/SDL/SDL_opengl.h:1329
GL_NEAREST_CLIPMAP_NEAREST_SGIX : constant := 16#844D#; -- ../include/SDL/SDL_opengl.h:1330
GL_NEAREST_CLIPMAP_LINEAR_SGIX : constant := 16#844E#; -- ../include/SDL/SDL_opengl.h:1331
GL_LINEAR_CLIPMAP_NEAREST_SGIX : constant := 16#844F#; -- ../include/SDL/SDL_opengl.h:1332
GL_TEXTURE_COMPARE_SGIX : constant := 16#819A#; -- ../include/SDL/SDL_opengl.h:1336
GL_TEXTURE_COMPARE_OPERATOR_SGIX : constant := 16#819B#; -- ../include/SDL/SDL_opengl.h:1337
GL_TEXTURE_LEQUAL_R_SGIX : constant := 16#819C#; -- ../include/SDL/SDL_opengl.h:1338
GL_TEXTURE_GEQUAL_R_SGIX : constant := 16#819D#; -- ../include/SDL/SDL_opengl.h:1339
GL_CLAMP_TO_EDGE_SGIS : constant := 16#812F#; -- ../include/SDL/SDL_opengl.h:1343
GL_CLAMP_TO_BORDER_SGIS : constant := 16#812D#; -- ../include/SDL/SDL_opengl.h:1347
GL_FUNC_ADD_EXT : constant := 16#8006#; -- ../include/SDL/SDL_opengl.h:1351
GL_MIN_EXT : constant := 16#8007#; -- ../include/SDL/SDL_opengl.h:1352
GL_MAX_EXT : constant := 16#8008#; -- ../include/SDL/SDL_opengl.h:1353
GL_BLEND_EQUATION_EXT : constant := 16#8009#; -- ../include/SDL/SDL_opengl.h:1354
GL_FUNC_SUBTRACT_EXT : constant := 16#800A#; -- ../include/SDL/SDL_opengl.h:1358
GL_FUNC_REVERSE_SUBTRACT_EXT : constant := 16#800B#; -- ../include/SDL/SDL_opengl.h:1359
GL_INTERLACE_SGIX : constant := 16#8094#; -- ../include/SDL/SDL_opengl.h:1366
GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX : constant := 16#813E#; -- ../include/SDL/SDL_opengl.h:1370
GL_PIXEL_TILE_CACHE_INCREMENT_SGIX : constant := 16#813F#; -- ../include/SDL/SDL_opengl.h:1371
GL_PIXEL_TILE_WIDTH_SGIX : constant := 16#8140#; -- ../include/SDL/SDL_opengl.h:1372
GL_PIXEL_TILE_HEIGHT_SGIX : constant := 16#8141#; -- ../include/SDL/SDL_opengl.h:1373
GL_PIXEL_TILE_GRID_WIDTH_SGIX : constant := 16#8142#; -- ../include/SDL/SDL_opengl.h:1374
GL_PIXEL_TILE_GRID_HEIGHT_SGIX : constant := 16#8143#; -- ../include/SDL/SDL_opengl.h:1375
GL_PIXEL_TILE_GRID_DEPTH_SGIX : constant := 16#8144#; -- ../include/SDL/SDL_opengl.h:1376
GL_PIXEL_TILE_CACHE_SIZE_SGIX : constant := 16#8145#; -- ../include/SDL/SDL_opengl.h:1377
GL_DUAL_ALPHA4_SGIS : constant := 16#8110#; -- ../include/SDL/SDL_opengl.h:1381
GL_DUAL_ALPHA8_SGIS : constant := 16#8111#; -- ../include/SDL/SDL_opengl.h:1382
GL_DUAL_ALPHA12_SGIS : constant := 16#8112#; -- ../include/SDL/SDL_opengl.h:1383
GL_DUAL_ALPHA16_SGIS : constant := 16#8113#; -- ../include/SDL/SDL_opengl.h:1384
GL_DUAL_LUMINANCE4_SGIS : constant := 16#8114#; -- ../include/SDL/SDL_opengl.h:1385
GL_DUAL_LUMINANCE8_SGIS : constant := 16#8115#; -- ../include/SDL/SDL_opengl.h:1386
GL_DUAL_LUMINANCE12_SGIS : constant := 16#8116#; -- ../include/SDL/SDL_opengl.h:1387
GL_DUAL_LUMINANCE16_SGIS : constant := 16#8117#; -- ../include/SDL/SDL_opengl.h:1388
GL_DUAL_INTENSITY4_SGIS : constant := 16#8118#; -- ../include/SDL/SDL_opengl.h:1389
GL_DUAL_INTENSITY8_SGIS : constant := 16#8119#; -- ../include/SDL/SDL_opengl.h:1390
GL_DUAL_INTENSITY12_SGIS : constant := 16#811A#; -- ../include/SDL/SDL_opengl.h:1391
GL_DUAL_INTENSITY16_SGIS : constant := 16#811B#; -- ../include/SDL/SDL_opengl.h:1392
GL_DUAL_LUMINANCE_ALPHA4_SGIS : constant := 16#811C#; -- ../include/SDL/SDL_opengl.h:1393
GL_DUAL_LUMINANCE_ALPHA8_SGIS : constant := 16#811D#; -- ../include/SDL/SDL_opengl.h:1394
GL_QUAD_ALPHA4_SGIS : constant := 16#811E#; -- ../include/SDL/SDL_opengl.h:1395
GL_QUAD_ALPHA8_SGIS : constant := 16#811F#; -- ../include/SDL/SDL_opengl.h:1396
GL_QUAD_LUMINANCE4_SGIS : constant := 16#8120#; -- ../include/SDL/SDL_opengl.h:1397
GL_QUAD_LUMINANCE8_SGIS : constant := 16#8121#; -- ../include/SDL/SDL_opengl.h:1398
GL_QUAD_INTENSITY4_SGIS : constant := 16#8122#; -- ../include/SDL/SDL_opengl.h:1399
GL_QUAD_INTENSITY8_SGIS : constant := 16#8123#; -- ../include/SDL/SDL_opengl.h:1400
GL_DUAL_TEXTURE_SELECT_SGIS : constant := 16#8124#; -- ../include/SDL/SDL_opengl.h:1401
GL_QUAD_TEXTURE_SELECT_SGIS : constant := 16#8125#; -- ../include/SDL/SDL_opengl.h:1402
GL_SPRITE_SGIX : constant := 16#8148#; -- ../include/SDL/SDL_opengl.h:1406
GL_SPRITE_MODE_SGIX : constant := 16#8149#; -- ../include/SDL/SDL_opengl.h:1407
GL_SPRITE_AXIS_SGIX : constant := 16#814A#; -- ../include/SDL/SDL_opengl.h:1408
GL_SPRITE_TRANSLATION_SGIX : constant := 16#814B#; -- ../include/SDL/SDL_opengl.h:1409
GL_SPRITE_AXIAL_SGIX : constant := 16#814C#; -- ../include/SDL/SDL_opengl.h:1410
GL_SPRITE_OBJECT_ALIGNED_SGIX : constant := 16#814D#; -- ../include/SDL/SDL_opengl.h:1411
GL_SPRITE_EYE_ALIGNED_SGIX : constant := 16#814E#; -- ../include/SDL/SDL_opengl.h:1412
GL_TEXTURE_MULTI_BUFFER_HINT_SGIX : constant := 16#812E#; -- ../include/SDL/SDL_opengl.h:1416
GL_POINT_SIZE_MIN_EXT : constant := 16#8126#; -- ../include/SDL/SDL_opengl.h:1420
GL_POINT_SIZE_MAX_EXT : constant := 16#8127#; -- ../include/SDL/SDL_opengl.h:1421
GL_POINT_FADE_THRESHOLD_SIZE_EXT : constant := 16#8128#; -- ../include/SDL/SDL_opengl.h:1422
GL_DISTANCE_ATTENUATION_EXT : constant := 16#8129#; -- ../include/SDL/SDL_opengl.h:1423
GL_POINT_SIZE_MIN_SGIS : constant := 16#8126#; -- ../include/SDL/SDL_opengl.h:1427
GL_POINT_SIZE_MAX_SGIS : constant := 16#8127#; -- ../include/SDL/SDL_opengl.h:1428
GL_POINT_FADE_THRESHOLD_SIZE_SGIS : constant := 16#8128#; -- ../include/SDL/SDL_opengl.h:1429
GL_DISTANCE_ATTENUATION_SGIS : constant := 16#8129#; -- ../include/SDL/SDL_opengl.h:1430
GL_INSTRUMENT_BUFFER_POINTER_SGIX : constant := 16#8180#; -- ../include/SDL/SDL_opengl.h:1434
GL_INSTRUMENT_MEASUREMENTS_SGIX : constant := 16#8181#; -- ../include/SDL/SDL_opengl.h:1435
GL_POST_TEXTURE_FILTER_BIAS_SGIX : constant := 16#8179#; -- ../include/SDL/SDL_opengl.h:1439
GL_POST_TEXTURE_FILTER_SCALE_SGIX : constant := 16#817A#; -- ../include/SDL/SDL_opengl.h:1440
GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX : constant := 16#817B#; -- ../include/SDL/SDL_opengl.h:1441
GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX : constant := 16#817C#; -- ../include/SDL/SDL_opengl.h:1442
GL_FRAMEZOOM_SGIX : constant := 16#818B#; -- ../include/SDL/SDL_opengl.h:1446
GL_FRAMEZOOM_FACTOR_SGIX : constant := 16#818C#; -- ../include/SDL/SDL_opengl.h:1447
GL_MAX_FRAMEZOOM_FACTOR_SGIX : constant := 16#818D#; -- ../include/SDL/SDL_opengl.h:1448
GL_TEXTURE_DEFORMATION_BIT_SGIX : constant := 16#00000001#; -- ../include/SDL/SDL_opengl.h:1455
GL_GEOMETRY_DEFORMATION_BIT_SGIX : constant := 16#00000002#; -- ../include/SDL/SDL_opengl.h:1456
GL_GEOMETRY_DEFORMATION_SGIX : constant := 16#8194#; -- ../include/SDL/SDL_opengl.h:1460
GL_TEXTURE_DEFORMATION_SGIX : constant := 16#8195#; -- ../include/SDL/SDL_opengl.h:1461
GL_DEFORMATIONS_MASK_SGIX : constant := 16#8196#; -- ../include/SDL/SDL_opengl.h:1462
GL_MAX_DEFORMATION_ORDER_SGIX : constant := 16#8197#; -- ../include/SDL/SDL_opengl.h:1463
GL_REFERENCE_PLANE_SGIX : constant := 16#817D#; -- ../include/SDL/SDL_opengl.h:1467
GL_REFERENCE_PLANE_EQUATION_SGIX : constant := 16#817E#; -- ../include/SDL/SDL_opengl.h:1468
GL_DEPTH_COMPONENT16_SGIX : constant := 16#81A5#; -- ../include/SDL/SDL_opengl.h:1475
GL_DEPTH_COMPONENT24_SGIX : constant := 16#81A6#; -- ../include/SDL/SDL_opengl.h:1476
GL_DEPTH_COMPONENT32_SGIX : constant := 16#81A7#; -- ../include/SDL/SDL_opengl.h:1477
GL_FOG_FUNC_SGIS : constant := 16#812A#; -- ../include/SDL/SDL_opengl.h:1481
GL_FOG_FUNC_POINTS_SGIS : constant := 16#812B#; -- ../include/SDL/SDL_opengl.h:1482
GL_MAX_FOG_FUNC_POINTS_SGIS : constant := 16#812C#; -- ../include/SDL/SDL_opengl.h:1483
GL_FOG_OFFSET_SGIX : constant := 16#8198#; -- ../include/SDL/SDL_opengl.h:1487
GL_FOG_OFFSET_VALUE_SGIX : constant := 16#8199#; -- ../include/SDL/SDL_opengl.h:1488
GL_IMAGE_SCALE_X_HP : constant := 16#8155#; -- ../include/SDL/SDL_opengl.h:1492
GL_IMAGE_SCALE_Y_HP : constant := 16#8156#; -- ../include/SDL/SDL_opengl.h:1493
GL_IMAGE_TRANSLATE_X_HP : constant := 16#8157#; -- ../include/SDL/SDL_opengl.h:1494
GL_IMAGE_TRANSLATE_Y_HP : constant := 16#8158#; -- ../include/SDL/SDL_opengl.h:1495
GL_IMAGE_ROTATE_ANGLE_HP : constant := 16#8159#; -- ../include/SDL/SDL_opengl.h:1496
GL_IMAGE_ROTATE_ORIGIN_X_HP : constant := 16#815A#; -- ../include/SDL/SDL_opengl.h:1497
GL_IMAGE_ROTATE_ORIGIN_Y_HP : constant := 16#815B#; -- ../include/SDL/SDL_opengl.h:1498
GL_IMAGE_MAG_FILTER_HP : constant := 16#815C#; -- ../include/SDL/SDL_opengl.h:1499
GL_IMAGE_MIN_FILTER_HP : constant := 16#815D#; -- ../include/SDL/SDL_opengl.h:1500
GL_IMAGE_CUBIC_WEIGHT_HP : constant := 16#815E#; -- ../include/SDL/SDL_opengl.h:1501
GL_CUBIC_HP : constant := 16#815F#; -- ../include/SDL/SDL_opengl.h:1502
GL_AVERAGE_HP : constant := 16#8160#; -- ../include/SDL/SDL_opengl.h:1503
GL_IMAGE_TRANSFORM_2D_HP : constant := 16#8161#; -- ../include/SDL/SDL_opengl.h:1504
GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP : constant := 16#8162#; -- ../include/SDL/SDL_opengl.h:1505
GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP : constant := 16#8163#; -- ../include/SDL/SDL_opengl.h:1506
GL_IGNORE_BORDER_HP : constant := 16#8150#; -- ../include/SDL/SDL_opengl.h:1510
GL_CONSTANT_BORDER_HP : constant := 16#8151#; -- ../include/SDL/SDL_opengl.h:1511
GL_REPLICATE_BORDER_HP : constant := 16#8153#; -- ../include/SDL/SDL_opengl.h:1512
GL_CONVOLUTION_BORDER_COLOR_HP : constant := 16#8154#; -- ../include/SDL/SDL_opengl.h:1513
GL_TEXTURE_ENV_BIAS_SGIX : constant := 16#80BE#; -- ../include/SDL/SDL_opengl.h:1520
GL_VERTEX_DATA_HINT_PGI : constant := 16#1A22A#; -- ../include/SDL/SDL_opengl.h:1527
GL_VERTEX_CONSISTENT_HINT_PGI : constant := 16#1A22B#; -- ../include/SDL/SDL_opengl.h:1528
GL_MATERIAL_SIDE_HINT_PGI : constant := 16#1A22C#; -- ../include/SDL/SDL_opengl.h:1529
GL_MAX_VERTEX_HINT_PGI : constant := 16#1A22D#; -- ../include/SDL/SDL_opengl.h:1530
GL_COLOR3_BIT_PGI : constant := 16#00010000#; -- ../include/SDL/SDL_opengl.h:1531
GL_COLOR4_BIT_PGI : constant := 16#00020000#; -- ../include/SDL/SDL_opengl.h:1532
GL_EDGEFLAG_BIT_PGI : constant := 16#00040000#; -- ../include/SDL/SDL_opengl.h:1533
GL_INDEX_BIT_PGI : constant := 16#00080000#; -- ../include/SDL/SDL_opengl.h:1534
GL_MAT_AMBIENT_BIT_PGI : constant := 16#00100000#; -- ../include/SDL/SDL_opengl.h:1535
GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI : constant := 16#00200000#; -- ../include/SDL/SDL_opengl.h:1536
GL_MAT_DIFFUSE_BIT_PGI : constant := 16#00400000#; -- ../include/SDL/SDL_opengl.h:1537
GL_MAT_EMISSION_BIT_PGI : constant := 16#00800000#; -- ../include/SDL/SDL_opengl.h:1538
GL_MAT_COLOR_INDEXES_BIT_PGI : constant := 16#01000000#; -- ../include/SDL/SDL_opengl.h:1539
GL_MAT_SHININESS_BIT_PGI : constant := 16#02000000#; -- ../include/SDL/SDL_opengl.h:1540
GL_MAT_SPECULAR_BIT_PGI : constant := 16#04000000#; -- ../include/SDL/SDL_opengl.h:1541
GL_NORMAL_BIT_PGI : constant := 16#08000000#; -- ../include/SDL/SDL_opengl.h:1542
GL_TEXCOORD1_BIT_PGI : constant := 16#10000000#; -- ../include/SDL/SDL_opengl.h:1543
GL_TEXCOORD2_BIT_PGI : constant := 16#20000000#; -- ../include/SDL/SDL_opengl.h:1544
GL_TEXCOORD3_BIT_PGI : constant := 16#40000000#; -- ../include/SDL/SDL_opengl.h:1545
GL_TEXCOORD4_BIT_PGI : constant := 16#80000000#; -- ../include/SDL/SDL_opengl.h:1546
GL_VERTEX23_BIT_PGI : constant := 16#00000004#; -- ../include/SDL/SDL_opengl.h:1547
GL_VERTEX4_BIT_PGI : constant := 16#00000008#; -- ../include/SDL/SDL_opengl.h:1548
GL_PREFER_DOUBLEBUFFER_HINT_PGI : constant := 16#1A1F8#; -- ../include/SDL/SDL_opengl.h:1552
GL_CONSERVE_MEMORY_HINT_PGI : constant := 16#1A1FD#; -- ../include/SDL/SDL_opengl.h:1553
GL_RECLAIM_MEMORY_HINT_PGI : constant := 16#1A1FE#; -- ../include/SDL/SDL_opengl.h:1554
GL_NATIVE_GRAPHICS_HANDLE_PGI : constant := 16#1A202#; -- ../include/SDL/SDL_opengl.h:1555
GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI : constant := 16#1A203#; -- ../include/SDL/SDL_opengl.h:1556
GL_NATIVE_GRAPHICS_END_HINT_PGI : constant := 16#1A204#; -- ../include/SDL/SDL_opengl.h:1557
GL_ALWAYS_FAST_HINT_PGI : constant := 16#1A20C#; -- ../include/SDL/SDL_opengl.h:1558
GL_ALWAYS_SOFT_HINT_PGI : constant := 16#1A20D#; -- ../include/SDL/SDL_opengl.h:1559
GL_ALLOW_DRAW_OBJ_HINT_PGI : constant := 16#1A20E#; -- ../include/SDL/SDL_opengl.h:1560
GL_ALLOW_DRAW_WIN_HINT_PGI : constant := 16#1A20F#; -- ../include/SDL/SDL_opengl.h:1561
GL_ALLOW_DRAW_FRG_HINT_PGI : constant := 16#1A210#; -- ../include/SDL/SDL_opengl.h:1562
GL_ALLOW_DRAW_MEM_HINT_PGI : constant := 16#1A211#; -- ../include/SDL/SDL_opengl.h:1563
GL_STRICT_DEPTHFUNC_HINT_PGI : constant := 16#1A216#; -- ../include/SDL/SDL_opengl.h:1564
GL_STRICT_LIGHTING_HINT_PGI : constant := 16#1A217#; -- ../include/SDL/SDL_opengl.h:1565
GL_STRICT_SCISSOR_HINT_PGI : constant := 16#1A218#; -- ../include/SDL/SDL_opengl.h:1566
GL_FULL_STIPPLE_HINT_PGI : constant := 16#1A219#; -- ../include/SDL/SDL_opengl.h:1567
GL_CLIP_NEAR_HINT_PGI : constant := 16#1A220#; -- ../include/SDL/SDL_opengl.h:1568
GL_CLIP_FAR_HINT_PGI : constant := 16#1A221#; -- ../include/SDL/SDL_opengl.h:1569
GL_WIDE_LINE_HINT_PGI : constant := 16#1A222#; -- ../include/SDL/SDL_opengl.h:1570
GL_BACK_NORMALS_HINT_PGI : constant := 16#1A223#; -- ../include/SDL/SDL_opengl.h:1571
GL_CLIP_VOLUME_CLIPPING_HINT_EXT : constant := 16#80F0#; -- ../include/SDL/SDL_opengl.h:1585
GL_LIST_PRIORITY_SGIX : constant := 16#8182#; -- ../include/SDL/SDL_opengl.h:1589
GL_IR_INSTRUMENT1_SGIX : constant := 16#817F#; -- ../include/SDL/SDL_opengl.h:1593
GL_CALLIGRAPHIC_FRAGMENT_SGIX : constant := 16#8183#; -- ../include/SDL/SDL_opengl.h:1597
GL_TEXTURE_LOD_BIAS_S_SGIX : constant := 16#818E#; -- ../include/SDL/SDL_opengl.h:1601
GL_TEXTURE_LOD_BIAS_T_SGIX : constant := 16#818F#; -- ../include/SDL/SDL_opengl.h:1602
GL_TEXTURE_LOD_BIAS_R_SGIX : constant := 16#8190#; -- ../include/SDL/SDL_opengl.h:1603
GL_SHADOW_AMBIENT_SGIX : constant := 16#80BF#; -- ../include/SDL/SDL_opengl.h:1607
GL_INDEX_MATERIAL_EXT : constant := 16#81B8#; -- ../include/SDL/SDL_opengl.h:1614
GL_INDEX_MATERIAL_PARAMETER_EXT : constant := 16#81B9#; -- ../include/SDL/SDL_opengl.h:1615
GL_INDEX_MATERIAL_FACE_EXT : constant := 16#81BA#; -- ../include/SDL/SDL_opengl.h:1616
GL_INDEX_TEST_EXT : constant := 16#81B5#; -- ../include/SDL/SDL_opengl.h:1620
GL_INDEX_TEST_FUNC_EXT : constant := 16#81B6#; -- ../include/SDL/SDL_opengl.h:1621
GL_INDEX_TEST_REF_EXT : constant := 16#81B7#; -- ../include/SDL/SDL_opengl.h:1622
GL_IUI_V2F_EXT : constant := 16#81AD#; -- ../include/SDL/SDL_opengl.h:1626
GL_IUI_V3F_EXT : constant := 16#81AE#; -- ../include/SDL/SDL_opengl.h:1627
GL_IUI_N3F_V2F_EXT : constant := 16#81AF#; -- ../include/SDL/SDL_opengl.h:1628
GL_IUI_N3F_V3F_EXT : constant := 16#81B0#; -- ../include/SDL/SDL_opengl.h:1629
GL_T2F_IUI_V2F_EXT : constant := 16#81B1#; -- ../include/SDL/SDL_opengl.h:1630
GL_T2F_IUI_V3F_EXT : constant := 16#81B2#; -- ../include/SDL/SDL_opengl.h:1631
GL_T2F_IUI_N3F_V2F_EXT : constant := 16#81B3#; -- ../include/SDL/SDL_opengl.h:1632
GL_T2F_IUI_N3F_V3F_EXT : constant := 16#81B4#; -- ../include/SDL/SDL_opengl.h:1633
GL_ARRAY_ELEMENT_LOCK_FIRST_EXT : constant := 16#81A8#; -- ../include/SDL/SDL_opengl.h:1637
GL_ARRAY_ELEMENT_LOCK_COUNT_EXT : constant := 16#81A9#; -- ../include/SDL/SDL_opengl.h:1638
GL_CULL_VERTEX_EXT : constant := 16#81AA#; -- ../include/SDL/SDL_opengl.h:1642
GL_CULL_VERTEX_EYE_POSITION_EXT : constant := 16#81AB#; -- ../include/SDL/SDL_opengl.h:1643
GL_CULL_VERTEX_OBJECT_POSITION_EXT : constant := 16#81AC#; -- ../include/SDL/SDL_opengl.h:1644
GL_YCRCB_422_SGIX : constant := 16#81BB#; -- ../include/SDL/SDL_opengl.h:1648
GL_YCRCB_444_SGIX : constant := 16#81BC#; -- ../include/SDL/SDL_opengl.h:1649
GL_FRAGMENT_LIGHTING_SGIX : constant := 16#8400#; -- ../include/SDL/SDL_opengl.h:1653
GL_FRAGMENT_COLOR_MATERIAL_SGIX : constant := 16#8401#; -- ../include/SDL/SDL_opengl.h:1654
GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX : constant := 16#8402#; -- ../include/SDL/SDL_opengl.h:1655
GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX : constant := 16#8403#; -- ../include/SDL/SDL_opengl.h:1656
GL_MAX_FRAGMENT_LIGHTS_SGIX : constant := 16#8404#; -- ../include/SDL/SDL_opengl.h:1657
GL_MAX_ACTIVE_LIGHTS_SGIX : constant := 16#8405#; -- ../include/SDL/SDL_opengl.h:1658
GL_CURRENT_RASTER_NORMAL_SGIX : constant := 16#8406#; -- ../include/SDL/SDL_opengl.h:1659
GL_LIGHT_ENV_MODE_SGIX : constant := 16#8407#; -- ../include/SDL/SDL_opengl.h:1660
GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX : constant := 16#8408#; -- ../include/SDL/SDL_opengl.h:1661
GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX : constant := 16#8409#; -- ../include/SDL/SDL_opengl.h:1662
GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX : constant := 16#840A#; -- ../include/SDL/SDL_opengl.h:1663
GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX : constant := 16#840B#; -- ../include/SDL/SDL_opengl.h:1664
GL_FRAGMENT_LIGHT0_SGIX : constant := 16#840C#; -- ../include/SDL/SDL_opengl.h:1665
GL_FRAGMENT_LIGHT1_SGIX : constant := 16#840D#; -- ../include/SDL/SDL_opengl.h:1666
GL_FRAGMENT_LIGHT2_SGIX : constant := 16#840E#; -- ../include/SDL/SDL_opengl.h:1667
GL_FRAGMENT_LIGHT3_SGIX : constant := 16#840F#; -- ../include/SDL/SDL_opengl.h:1668
GL_FRAGMENT_LIGHT4_SGIX : constant := 16#8410#; -- ../include/SDL/SDL_opengl.h:1669
GL_FRAGMENT_LIGHT5_SGIX : constant := 16#8411#; -- ../include/SDL/SDL_opengl.h:1670
GL_FRAGMENT_LIGHT6_SGIX : constant := 16#8412#; -- ../include/SDL/SDL_opengl.h:1671
GL_FRAGMENT_LIGHT7_SGIX : constant := 16#8413#; -- ../include/SDL/SDL_opengl.h:1672
GL_RASTER_POSITION_UNCLIPPED_IBM : constant := 16#19262#; -- ../include/SDL/SDL_opengl.h:1676
GL_TEXTURE_LIGHTING_MODE_HP : constant := 16#8167#; -- ../include/SDL/SDL_opengl.h:1680
GL_TEXTURE_POST_SPECULAR_HP : constant := 16#8168#; -- ../include/SDL/SDL_opengl.h:1681
GL_TEXTURE_PRE_SPECULAR_HP : constant := 16#8169#; -- ../include/SDL/SDL_opengl.h:1682
GL_MAX_ELEMENTS_VERTICES_EXT : constant := 16#80E8#; -- ../include/SDL/SDL_opengl.h:1686
GL_MAX_ELEMENTS_INDICES_EXT : constant := 16#80E9#; -- ../include/SDL/SDL_opengl.h:1687
GL_PHONG_WIN : constant := 16#80EA#; -- ../include/SDL/SDL_opengl.h:1691
GL_PHONG_HINT_WIN : constant := 16#80EB#; -- ../include/SDL/SDL_opengl.h:1692
GL_FOG_SPECULAR_TEXTURE_WIN : constant := 16#80EC#; -- ../include/SDL/SDL_opengl.h:1696
GL_FRAGMENT_MATERIAL_EXT : constant := 16#8349#; -- ../include/SDL/SDL_opengl.h:1700
GL_FRAGMENT_NORMAL_EXT : constant := 16#834A#; -- ../include/SDL/SDL_opengl.h:1701
GL_FRAGMENT_COLOR_EXT : constant := 16#834C#; -- ../include/SDL/SDL_opengl.h:1702
GL_ATTENUATION_EXT : constant := 16#834D#; -- ../include/SDL/SDL_opengl.h:1703
GL_SHADOW_ATTENUATION_EXT : constant := 16#834E#; -- ../include/SDL/SDL_opengl.h:1704
GL_TEXTURE_APPLICATION_MODE_EXT : constant := 16#834F#; -- ../include/SDL/SDL_opengl.h:1705
GL_TEXTURE_LIGHT_EXT : constant := 16#8350#; -- ../include/SDL/SDL_opengl.h:1706
GL_TEXTURE_MATERIAL_FACE_EXT : constant := 16#8351#; -- ../include/SDL/SDL_opengl.h:1707
GL_TEXTURE_MATERIAL_PARAMETER_EXT : constant := 16#8352#; -- ../include/SDL/SDL_opengl.h:1708
GL_ALPHA_MIN_SGIX : constant := 16#8320#; -- ../include/SDL/SDL_opengl.h:1713
GL_ALPHA_MAX_SGIX : constant := 16#8321#; -- ../include/SDL/SDL_opengl.h:1714
GL_PIXEL_TEX_GEN_Q_CEILING_SGIX : constant := 16#8184#; -- ../include/SDL/SDL_opengl.h:1718
GL_PIXEL_TEX_GEN_Q_ROUND_SGIX : constant := 16#8185#; -- ../include/SDL/SDL_opengl.h:1719
GL_PIXEL_TEX_GEN_Q_FLOOR_SGIX : constant := 16#8186#; -- ../include/SDL/SDL_opengl.h:1720
GL_PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX : constant := 16#8187#; -- ../include/SDL/SDL_opengl.h:1721
GL_PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX : constant := 16#8188#; -- ../include/SDL/SDL_opengl.h:1722
GL_PIXEL_TEX_GEN_ALPHA_LS_SGIX : constant := 16#8189#; -- ../include/SDL/SDL_opengl.h:1723
GL_PIXEL_TEX_GEN_ALPHA_MS_SGIX : constant := 16#818A#; -- ../include/SDL/SDL_opengl.h:1724
GL_ASYNC_MARKER_SGIX : constant := 16#8329#; -- ../include/SDL/SDL_opengl.h:1733
GL_ASYNC_TEX_IMAGE_SGIX : constant := 16#835C#; -- ../include/SDL/SDL_opengl.h:1737
GL_ASYNC_DRAW_PIXELS_SGIX : constant := 16#835D#; -- ../include/SDL/SDL_opengl.h:1738
GL_ASYNC_READ_PIXELS_SGIX : constant := 16#835E#; -- ../include/SDL/SDL_opengl.h:1739
GL_MAX_ASYNC_TEX_IMAGE_SGIX : constant := 16#835F#; -- ../include/SDL/SDL_opengl.h:1740
GL_MAX_ASYNC_DRAW_PIXELS_SGIX : constant := 16#8360#; -- ../include/SDL/SDL_opengl.h:1741
GL_MAX_ASYNC_READ_PIXELS_SGIX : constant := 16#8361#; -- ../include/SDL/SDL_opengl.h:1742
GL_ASYNC_HISTOGRAM_SGIX : constant := 16#832C#; -- ../include/SDL/SDL_opengl.h:1746
GL_MAX_ASYNC_HISTOGRAM_SGIX : constant := 16#832D#; -- ../include/SDL/SDL_opengl.h:1747
GL_PARALLEL_ARRAYS_INTEL : constant := 16#83F4#; -- ../include/SDL/SDL_opengl.h:1754
GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL : constant := 16#83F5#; -- ../include/SDL/SDL_opengl.h:1755
GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL : constant := 16#83F6#; -- ../include/SDL/SDL_opengl.h:1756
GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL : constant := 16#83F7#; -- ../include/SDL/SDL_opengl.h:1757
GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL : constant := 16#83F8#; -- ../include/SDL/SDL_opengl.h:1758
GL_OCCLUSION_TEST_HP : constant := 16#8165#; -- ../include/SDL/SDL_opengl.h:1762
GL_OCCLUSION_TEST_RESULT_HP : constant := 16#8166#; -- ../include/SDL/SDL_opengl.h:1763
GL_PIXEL_TRANSFORM_2D_EXT : constant := 16#8330#; -- ../include/SDL/SDL_opengl.h:1767
GL_PIXEL_MAG_FILTER_EXT : constant := 16#8331#; -- ../include/SDL/SDL_opengl.h:1768
GL_PIXEL_MIN_FILTER_EXT : constant := 16#8332#; -- ../include/SDL/SDL_opengl.h:1769
GL_PIXEL_CUBIC_WEIGHT_EXT : constant := 16#8333#; -- ../include/SDL/SDL_opengl.h:1770
GL_CUBIC_EXT : constant := 16#8334#; -- ../include/SDL/SDL_opengl.h:1771
GL_AVERAGE_EXT : constant := 16#8335#; -- ../include/SDL/SDL_opengl.h:1772
GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT : constant := 16#8336#; -- ../include/SDL/SDL_opengl.h:1773
GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT : constant := 16#8337#; -- ../include/SDL/SDL_opengl.h:1774
GL_PIXEL_TRANSFORM_2D_MATRIX_EXT : constant := 16#8338#; -- ../include/SDL/SDL_opengl.h:1775
GL_SHARED_TEXTURE_PALETTE_EXT : constant := 16#81FB#; -- ../include/SDL/SDL_opengl.h:1782
GL_LIGHT_MODEL_COLOR_CONTROL_EXT : constant := 16#81F8#; -- ../include/SDL/SDL_opengl.h:1786
GL_SINGLE_COLOR_EXT : constant := 16#81F9#; -- ../include/SDL/SDL_opengl.h:1787
GL_SEPARATE_SPECULAR_COLOR_EXT : constant := 16#81FA#; -- ../include/SDL/SDL_opengl.h:1788
GL_COLOR_SUM_EXT : constant := 16#8458#; -- ../include/SDL/SDL_opengl.h:1792
GL_CURRENT_SECONDARY_COLOR_EXT : constant := 16#8459#; -- ../include/SDL/SDL_opengl.h:1793
GL_SECONDARY_COLOR_ARRAY_SIZE_EXT : constant := 16#845A#; -- ../include/SDL/SDL_opengl.h:1794
GL_SECONDARY_COLOR_ARRAY_TYPE_EXT : constant := 16#845B#; -- ../include/SDL/SDL_opengl.h:1795
GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT : constant := 16#845C#; -- ../include/SDL/SDL_opengl.h:1796
GL_SECONDARY_COLOR_ARRAY_POINTER_EXT : constant := 16#845D#; -- ../include/SDL/SDL_opengl.h:1797
GL_SECONDARY_COLOR_ARRAY_EXT : constant := 16#845E#; -- ../include/SDL/SDL_opengl.h:1798
GL_PERTURB_EXT : constant := 16#85AE#; -- ../include/SDL/SDL_opengl.h:1802
GL_TEXTURE_NORMAL_EXT : constant := 16#85AF#; -- ../include/SDL/SDL_opengl.h:1803
GL_FOG_COORDINATE_SOURCE_EXT : constant := 16#8450#; -- ../include/SDL/SDL_opengl.h:1810
GL_FOG_COORDINATE_EXT : constant := 16#8451#; -- ../include/SDL/SDL_opengl.h:1811
GL_FRAGMENT_DEPTH_EXT : constant := 16#8452#; -- ../include/SDL/SDL_opengl.h:1812
GL_CURRENT_FOG_COORDINATE_EXT : constant := 16#8453#; -- ../include/SDL/SDL_opengl.h:1813
GL_FOG_COORDINATE_ARRAY_TYPE_EXT : constant := 16#8454#; -- ../include/SDL/SDL_opengl.h:1814
GL_FOG_COORDINATE_ARRAY_STRIDE_EXT : constant := 16#8455#; -- ../include/SDL/SDL_opengl.h:1815
GL_FOG_COORDINATE_ARRAY_POINTER_EXT : constant := 16#8456#; -- ../include/SDL/SDL_opengl.h:1816
GL_FOG_COORDINATE_ARRAY_EXT : constant := 16#8457#; -- ../include/SDL/SDL_opengl.h:1817
GL_SCREEN_COORDINATES_REND : constant := 16#8490#; -- ../include/SDL/SDL_opengl.h:1821
GL_INVERTED_SCREEN_W_REND : constant := 16#8491#; -- ../include/SDL/SDL_opengl.h:1822
GL_TANGENT_ARRAY_EXT : constant := 16#8439#; -- ../include/SDL/SDL_opengl.h:1826
GL_BINORMAL_ARRAY_EXT : constant := 16#843A#; -- ../include/SDL/SDL_opengl.h:1827
GL_CURRENT_TANGENT_EXT : constant := 16#843B#; -- ../include/SDL/SDL_opengl.h:1828
GL_CURRENT_BINORMAL_EXT : constant := 16#843C#; -- ../include/SDL/SDL_opengl.h:1829
GL_TANGENT_ARRAY_TYPE_EXT : constant := 16#843E#; -- ../include/SDL/SDL_opengl.h:1830
GL_TANGENT_ARRAY_STRIDE_EXT : constant := 16#843F#; -- ../include/SDL/SDL_opengl.h:1831
GL_BINORMAL_ARRAY_TYPE_EXT : constant := 16#8440#; -- ../include/SDL/SDL_opengl.h:1832
GL_BINORMAL_ARRAY_STRIDE_EXT : constant := 16#8441#; -- ../include/SDL/SDL_opengl.h:1833
GL_TANGENT_ARRAY_POINTER_EXT : constant := 16#8442#; -- ../include/SDL/SDL_opengl.h:1834
GL_BINORMAL_ARRAY_POINTER_EXT : constant := 16#8443#; -- ../include/SDL/SDL_opengl.h:1835
GL_MAP1_TANGENT_EXT : constant := 16#8444#; -- ../include/SDL/SDL_opengl.h:1836
GL_MAP2_TANGENT_EXT : constant := 16#8445#; -- ../include/SDL/SDL_opengl.h:1837
GL_MAP1_BINORMAL_EXT : constant := 16#8446#; -- ../include/SDL/SDL_opengl.h:1838
GL_MAP2_BINORMAL_EXT : constant := 16#8447#; -- ../include/SDL/SDL_opengl.h:1839
GL_COMBINE_EXT : constant := 16#8570#; -- ../include/SDL/SDL_opengl.h:1843
GL_COMBINE_RGB_EXT : constant := 16#8571#; -- ../include/SDL/SDL_opengl.h:1844
GL_COMBINE_ALPHA_EXT : constant := 16#8572#; -- ../include/SDL/SDL_opengl.h:1845
GL_RGB_SCALE_EXT : constant := 16#8573#; -- ../include/SDL/SDL_opengl.h:1846
GL_ADD_SIGNED_EXT : constant := 16#8574#; -- ../include/SDL/SDL_opengl.h:1847
GL_INTERPOLATE_EXT : constant := 16#8575#; -- ../include/SDL/SDL_opengl.h:1848
GL_CONSTANT_EXT : constant := 16#8576#; -- ../include/SDL/SDL_opengl.h:1849
GL_PRIMARY_COLOR_EXT : constant := 16#8577#; -- ../include/SDL/SDL_opengl.h:1850
GL_PREVIOUS_EXT : constant := 16#8578#; -- ../include/SDL/SDL_opengl.h:1851
GL_SOURCE0_RGB_EXT : constant := 16#8580#; -- ../include/SDL/SDL_opengl.h:1852
GL_SOURCE1_RGB_EXT : constant := 16#8581#; -- ../include/SDL/SDL_opengl.h:1853
GL_SOURCE2_RGB_EXT : constant := 16#8582#; -- ../include/SDL/SDL_opengl.h:1854
GL_SOURCE0_ALPHA_EXT : constant := 16#8588#; -- ../include/SDL/SDL_opengl.h:1855
GL_SOURCE1_ALPHA_EXT : constant := 16#8589#; -- ../include/SDL/SDL_opengl.h:1856
GL_SOURCE2_ALPHA_EXT : constant := 16#858A#; -- ../include/SDL/SDL_opengl.h:1857
GL_OPERAND0_RGB_EXT : constant := 16#8590#; -- ../include/SDL/SDL_opengl.h:1858
GL_OPERAND1_RGB_EXT : constant := 16#8591#; -- ../include/SDL/SDL_opengl.h:1859
GL_OPERAND2_RGB_EXT : constant := 16#8592#; -- ../include/SDL/SDL_opengl.h:1860
GL_OPERAND0_ALPHA_EXT : constant := 16#8598#; -- ../include/SDL/SDL_opengl.h:1861
GL_OPERAND1_ALPHA_EXT : constant := 16#8599#; -- ../include/SDL/SDL_opengl.h:1862
GL_OPERAND2_ALPHA_EXT : constant := 16#859A#; -- ../include/SDL/SDL_opengl.h:1863
GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE : constant := 16#85B0#; -- ../include/SDL/SDL_opengl.h:1867
GL_TRANSFORM_HINT_APPLE : constant := 16#85B1#; -- ../include/SDL/SDL_opengl.h:1871
GL_FOG_SCALE_SGIX : constant := 16#81FC#; -- ../include/SDL/SDL_opengl.h:1875
GL_FOG_SCALE_VALUE_SGIX : constant := 16#81FD#; -- ../include/SDL/SDL_opengl.h:1876
GL_UNPACK_CONSTANT_DATA_SUNX : constant := 16#81D5#; -- ../include/SDL/SDL_opengl.h:1880
GL_TEXTURE_CONSTANT_DATA_SUNX : constant := 16#81D6#; -- ../include/SDL/SDL_opengl.h:1881
GL_GLOBAL_ALPHA_SUN : constant := 16#81D9#; -- ../include/SDL/SDL_opengl.h:1885
GL_GLOBAL_ALPHA_FACTOR_SUN : constant := 16#81DA#; -- ../include/SDL/SDL_opengl.h:1886
GL_RESTART_SUN : constant := 16#0001#; -- ../include/SDL/SDL_opengl.h:1890
GL_REPLACE_MIDDLE_SUN : constant := 16#0002#; -- ../include/SDL/SDL_opengl.h:1891
GL_REPLACE_OLDEST_SUN : constant := 16#0003#; -- ../include/SDL/SDL_opengl.h:1892
GL_TRIANGLE_LIST_SUN : constant := 16#81D7#; -- ../include/SDL/SDL_opengl.h:1893
GL_REPLACEMENT_CODE_SUN : constant := 16#81D8#; -- ../include/SDL/SDL_opengl.h:1894
GL_REPLACEMENT_CODE_ARRAY_SUN : constant := 16#85C0#; -- ../include/SDL/SDL_opengl.h:1895
GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN : constant := 16#85C1#; -- ../include/SDL/SDL_opengl.h:1896
GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN : constant := 16#85C2#; -- ../include/SDL/SDL_opengl.h:1897
GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN : constant := 16#85C3#; -- ../include/SDL/SDL_opengl.h:1898
GL_R1UI_V3F_SUN : constant := 16#85C4#; -- ../include/SDL/SDL_opengl.h:1899
GL_R1UI_C4UB_V3F_SUN : constant := 16#85C5#; -- ../include/SDL/SDL_opengl.h:1900
GL_R1UI_C3F_V3F_SUN : constant := 16#85C6#; -- ../include/SDL/SDL_opengl.h:1901
GL_R1UI_N3F_V3F_SUN : constant := 16#85C7#; -- ../include/SDL/SDL_opengl.h:1902
GL_R1UI_C4F_N3F_V3F_SUN : constant := 16#85C8#; -- ../include/SDL/SDL_opengl.h:1903
GL_R1UI_T2F_V3F_SUN : constant := 16#85C9#; -- ../include/SDL/SDL_opengl.h:1904
GL_R1UI_T2F_N3F_V3F_SUN : constant := 16#85CA#; -- ../include/SDL/SDL_opengl.h:1905
GL_R1UI_T2F_C4F_N3F_V3F_SUN : constant := 16#85CB#; -- ../include/SDL/SDL_opengl.h:1906
GL_BLEND_DST_RGB_EXT : constant := 16#80C8#; -- ../include/SDL/SDL_opengl.h:1913
GL_BLEND_SRC_RGB_EXT : constant := 16#80C9#; -- ../include/SDL/SDL_opengl.h:1914
GL_BLEND_DST_ALPHA_EXT : constant := 16#80CA#; -- ../include/SDL/SDL_opengl.h:1915
GL_BLEND_SRC_ALPHA_EXT : constant := 16#80CB#; -- ../include/SDL/SDL_opengl.h:1916
GL_RED_MIN_CLAMP_INGR : constant := 16#8560#; -- ../include/SDL/SDL_opengl.h:1920
GL_GREEN_MIN_CLAMP_INGR : constant := 16#8561#; -- ../include/SDL/SDL_opengl.h:1921
GL_BLUE_MIN_CLAMP_INGR : constant := 16#8562#; -- ../include/SDL/SDL_opengl.h:1922
GL_ALPHA_MIN_CLAMP_INGR : constant := 16#8563#; -- ../include/SDL/SDL_opengl.h:1923
GL_RED_MAX_CLAMP_INGR : constant := 16#8564#; -- ../include/SDL/SDL_opengl.h:1924
GL_GREEN_MAX_CLAMP_INGR : constant := 16#8565#; -- ../include/SDL/SDL_opengl.h:1925
GL_BLUE_MAX_CLAMP_INGR : constant := 16#8566#; -- ../include/SDL/SDL_opengl.h:1926
GL_ALPHA_MAX_CLAMP_INGR : constant := 16#8567#; -- ../include/SDL/SDL_opengl.h:1927
GL_INTERLACE_READ_INGR : constant := 16#8568#; -- ../include/SDL/SDL_opengl.h:1931
GL_INCR_WRAP_EXT : constant := 16#8507#; -- ../include/SDL/SDL_opengl.h:1935
GL_DECR_WRAP_EXT : constant := 16#8508#; -- ../include/SDL/SDL_opengl.h:1936
GL_422_EXT : constant := 16#80CC#; -- ../include/SDL/SDL_opengl.h:1940
GL_422_REV_EXT : constant := 16#80CD#; -- ../include/SDL/SDL_opengl.h:1941
GL_422_AVERAGE_EXT : constant := 16#80CE#; -- ../include/SDL/SDL_opengl.h:1942
GL_422_REV_AVERAGE_EXT : constant := 16#80CF#; -- ../include/SDL/SDL_opengl.h:1943
GL_NORMAL_MAP_NV : constant := 16#8511#; -- ../include/SDL/SDL_opengl.h:1947
GL_REFLECTION_MAP_NV : constant := 16#8512#; -- ../include/SDL/SDL_opengl.h:1948
GL_NORMAL_MAP_EXT : constant := 16#8511#; -- ../include/SDL/SDL_opengl.h:1952
GL_REFLECTION_MAP_EXT : constant := 16#8512#; -- ../include/SDL/SDL_opengl.h:1953
GL_TEXTURE_CUBE_MAP_EXT : constant := 16#8513#; -- ../include/SDL/SDL_opengl.h:1954
GL_TEXTURE_BINDING_CUBE_MAP_EXT : constant := 16#8514#; -- ../include/SDL/SDL_opengl.h:1955
GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT : constant := 16#8515#; -- ../include/SDL/SDL_opengl.h:1956
GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT : constant := 16#8516#; -- ../include/SDL/SDL_opengl.h:1957
GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT : constant := 16#8517#; -- ../include/SDL/SDL_opengl.h:1958
GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT : constant := 16#8518#; -- ../include/SDL/SDL_opengl.h:1959
GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT : constant := 16#8519#; -- ../include/SDL/SDL_opengl.h:1960
GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT : constant := 16#851A#; -- ../include/SDL/SDL_opengl.h:1961
GL_PROXY_TEXTURE_CUBE_MAP_EXT : constant := 16#851B#; -- ../include/SDL/SDL_opengl.h:1962
GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT : constant := 16#851C#; -- ../include/SDL/SDL_opengl.h:1963
GL_WRAP_BORDER_SUN : constant := 16#81D4#; -- ../include/SDL/SDL_opengl.h:1967
GL_MAX_TEXTURE_LOD_BIAS_EXT : constant := 16#84FD#; -- ../include/SDL/SDL_opengl.h:1974
GL_TEXTURE_FILTER_CONTROL_EXT : constant := 16#8500#; -- ../include/SDL/SDL_opengl.h:1975
GL_TEXTURE_LOD_BIAS_EXT : constant := 16#8501#; -- ../include/SDL/SDL_opengl.h:1976
GL_TEXTURE_MAX_ANISOTROPY_EXT : constant := 16#84FE#; -- ../include/SDL/SDL_opengl.h:1980
GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT : constant := 16#84FF#; -- ../include/SDL/SDL_opengl.h:1981
-- unsupported macro: GL_MODELVIEW0_STACK_DEPTH_EXT GL_MODELVIEW_STACK_DEPTH
GL_MODELVIEW1_STACK_DEPTH_EXT : constant := 16#8502#; -- ../include/SDL/SDL_opengl.h:1986
-- unsupported macro: GL_MODELVIEW0_MATRIX_EXT GL_MODELVIEW_MATRIX
GL_MODELVIEW1_MATRIX_EXT : constant := 16#8506#; -- ../include/SDL/SDL_opengl.h:1988
GL_VERTEX_WEIGHTING_EXT : constant := 16#8509#; -- ../include/SDL/SDL_opengl.h:1989
-- unsupported macro: GL_MODELVIEW0_EXT GL_MODELVIEW
GL_MODELVIEW1_EXT : constant := 16#850A#; -- ../include/SDL/SDL_opengl.h:1991
GL_CURRENT_VERTEX_WEIGHT_EXT : constant := 16#850B#; -- ../include/SDL/SDL_opengl.h:1992
GL_VERTEX_WEIGHT_ARRAY_EXT : constant := 16#850C#; -- ../include/SDL/SDL_opengl.h:1993
GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT : constant := 16#850D#; -- ../include/SDL/SDL_opengl.h:1994
GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT : constant := 16#850E#; -- ../include/SDL/SDL_opengl.h:1995
GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT : constant := 16#850F#; -- ../include/SDL/SDL_opengl.h:1996
GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT : constant := 16#8510#; -- ../include/SDL/SDL_opengl.h:1997
GL_MAX_SHININESS_NV : constant := 16#8504#; -- ../include/SDL/SDL_opengl.h:2001
GL_MAX_SPOT_EXPONENT_NV : constant := 16#8505#; -- ../include/SDL/SDL_opengl.h:2002
GL_VERTEX_ARRAY_RANGE_NV : constant := 16#851D#; -- ../include/SDL/SDL_opengl.h:2006
GL_VERTEX_ARRAY_RANGE_LENGTH_NV : constant := 16#851E#; -- ../include/SDL/SDL_opengl.h:2007
GL_VERTEX_ARRAY_RANGE_VALID_NV : constant := 16#851F#; -- ../include/SDL/SDL_opengl.h:2008
GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV : constant := 16#8520#; -- ../include/SDL/SDL_opengl.h:2009
GL_VERTEX_ARRAY_RANGE_POINTER_NV : constant := 16#8521#; -- ../include/SDL/SDL_opengl.h:2010
GL_REGISTER_COMBINERS_NV : constant := 16#8522#; -- ../include/SDL/SDL_opengl.h:2014
GL_VARIABLE_A_NV : constant := 16#8523#; -- ../include/SDL/SDL_opengl.h:2015
GL_VARIABLE_B_NV : constant := 16#8524#; -- ../include/SDL/SDL_opengl.h:2016
GL_VARIABLE_C_NV : constant := 16#8525#; -- ../include/SDL/SDL_opengl.h:2017
GL_VARIABLE_D_NV : constant := 16#8526#; -- ../include/SDL/SDL_opengl.h:2018
GL_VARIABLE_E_NV : constant := 16#8527#; -- ../include/SDL/SDL_opengl.h:2019
GL_VARIABLE_F_NV : constant := 16#8528#; -- ../include/SDL/SDL_opengl.h:2020
GL_VARIABLE_G_NV : constant := 16#8529#; -- ../include/SDL/SDL_opengl.h:2021
GL_CONSTANT_COLOR0_NV : constant := 16#852A#; -- ../include/SDL/SDL_opengl.h:2022
GL_CONSTANT_COLOR1_NV : constant := 16#852B#; -- ../include/SDL/SDL_opengl.h:2023
GL_PRIMARY_COLOR_NV : constant := 16#852C#; -- ../include/SDL/SDL_opengl.h:2024
GL_SECONDARY_COLOR_NV : constant := 16#852D#; -- ../include/SDL/SDL_opengl.h:2025
GL_SPARE0_NV : constant := 16#852E#; -- ../include/SDL/SDL_opengl.h:2026
GL_SPARE1_NV : constant := 16#852F#; -- ../include/SDL/SDL_opengl.h:2027
GL_DISCARD_NV : constant := 16#8530#; -- ../include/SDL/SDL_opengl.h:2028
GL_E_TIMES_F_NV : constant := 16#8531#; -- ../include/SDL/SDL_opengl.h:2029
GL_SPARE0_PLUS_SECONDARY_COLOR_NV : constant := 16#8532#; -- ../include/SDL/SDL_opengl.h:2030
GL_UNSIGNED_IDENTITY_NV : constant := 16#8536#; -- ../include/SDL/SDL_opengl.h:2031
GL_UNSIGNED_INVERT_NV : constant := 16#8537#; -- ../include/SDL/SDL_opengl.h:2032
GL_EXPAND_NORMAL_NV : constant := 16#8538#; -- ../include/SDL/SDL_opengl.h:2033
GL_EXPAND_NEGATE_NV : constant := 16#8539#; -- ../include/SDL/SDL_opengl.h:2034
GL_HALF_BIAS_NORMAL_NV : constant := 16#853A#; -- ../include/SDL/SDL_opengl.h:2035
GL_HALF_BIAS_NEGATE_NV : constant := 16#853B#; -- ../include/SDL/SDL_opengl.h:2036
GL_SIGNED_IDENTITY_NV : constant := 16#853C#; -- ../include/SDL/SDL_opengl.h:2037
GL_SIGNED_NEGATE_NV : constant := 16#853D#; -- ../include/SDL/SDL_opengl.h:2038
GL_SCALE_BY_TWO_NV : constant := 16#853E#; -- ../include/SDL/SDL_opengl.h:2039
GL_SCALE_BY_FOUR_NV : constant := 16#853F#; -- ../include/SDL/SDL_opengl.h:2040
GL_SCALE_BY_ONE_HALF_NV : constant := 16#8540#; -- ../include/SDL/SDL_opengl.h:2041
GL_BIAS_BY_NEGATIVE_ONE_HALF_NV : constant := 16#8541#; -- ../include/SDL/SDL_opengl.h:2042
GL_COMBINER_INPUT_NV : constant := 16#8542#; -- ../include/SDL/SDL_opengl.h:2043
GL_COMBINER_MAPPING_NV : constant := 16#8543#; -- ../include/SDL/SDL_opengl.h:2044
GL_COMBINER_COMPONENT_USAGE_NV : constant := 16#8544#; -- ../include/SDL/SDL_opengl.h:2045
GL_COMBINER_AB_DOT_PRODUCT_NV : constant := 16#8545#; -- ../include/SDL/SDL_opengl.h:2046
GL_COMBINER_CD_DOT_PRODUCT_NV : constant := 16#8546#; -- ../include/SDL/SDL_opengl.h:2047
GL_COMBINER_MUX_SUM_NV : constant := 16#8547#; -- ../include/SDL/SDL_opengl.h:2048
GL_COMBINER_SCALE_NV : constant := 16#8548#; -- ../include/SDL/SDL_opengl.h:2049
GL_COMBINER_BIAS_NV : constant := 16#8549#; -- ../include/SDL/SDL_opengl.h:2050
GL_COMBINER_AB_OUTPUT_NV : constant := 16#854A#; -- ../include/SDL/SDL_opengl.h:2051
GL_COMBINER_CD_OUTPUT_NV : constant := 16#854B#; -- ../include/SDL/SDL_opengl.h:2052
GL_COMBINER_SUM_OUTPUT_NV : constant := 16#854C#; -- ../include/SDL/SDL_opengl.h:2053
GL_MAX_GENERAL_COMBINERS_NV : constant := 16#854D#; -- ../include/SDL/SDL_opengl.h:2054
GL_NUM_GENERAL_COMBINERS_NV : constant := 16#854E#; -- ../include/SDL/SDL_opengl.h:2055
GL_COLOR_SUM_CLAMP_NV : constant := 16#854F#; -- ../include/SDL/SDL_opengl.h:2056
GL_COMBINER0_NV : constant := 16#8550#; -- ../include/SDL/SDL_opengl.h:2057
GL_COMBINER1_NV : constant := 16#8551#; -- ../include/SDL/SDL_opengl.h:2058
GL_COMBINER2_NV : constant := 16#8552#; -- ../include/SDL/SDL_opengl.h:2059
GL_COMBINER3_NV : constant := 16#8553#; -- ../include/SDL/SDL_opengl.h:2060
GL_COMBINER4_NV : constant := 16#8554#; -- ../include/SDL/SDL_opengl.h:2061
GL_COMBINER5_NV : constant := 16#8555#; -- ../include/SDL/SDL_opengl.h:2062
GL_COMBINER6_NV : constant := 16#8556#; -- ../include/SDL/SDL_opengl.h:2063
GL_COMBINER7_NV : constant := 16#8557#; -- ../include/SDL/SDL_opengl.h:2064
GL_FOG_DISTANCE_MODE_NV : constant := 16#855A#; -- ../include/SDL/SDL_opengl.h:2073
GL_EYE_RADIAL_NV : constant := 16#855B#; -- ../include/SDL/SDL_opengl.h:2074
GL_EYE_PLANE_ABSOLUTE_NV : constant := 16#855C#; -- ../include/SDL/SDL_opengl.h:2075
GL_EMBOSS_LIGHT_NV : constant := 16#855D#; -- ../include/SDL/SDL_opengl.h:2080
GL_EMBOSS_CONSTANT_NV : constant := 16#855E#; -- ../include/SDL/SDL_opengl.h:2081
GL_EMBOSS_MAP_NV : constant := 16#855F#; -- ../include/SDL/SDL_opengl.h:2082
GL_COMBINE4_NV : constant := 16#8503#; -- ../include/SDL/SDL_opengl.h:2089
GL_SOURCE3_RGB_NV : constant := 16#8583#; -- ../include/SDL/SDL_opengl.h:2090
GL_SOURCE3_ALPHA_NV : constant := 16#858B#; -- ../include/SDL/SDL_opengl.h:2091
GL_OPERAND3_RGB_NV : constant := 16#8593#; -- ../include/SDL/SDL_opengl.h:2092
GL_OPERAND3_ALPHA_NV : constant := 16#859B#; -- ../include/SDL/SDL_opengl.h:2093
GL_COMPRESSED_RGB_S3TC_DXT1_EXT : constant := 16#83F0#; -- ../include/SDL/SDL_opengl.h:2103
GL_COMPRESSED_RGBA_S3TC_DXT1_EXT : constant := 16#83F1#; -- ../include/SDL/SDL_opengl.h:2104
GL_COMPRESSED_RGBA_S3TC_DXT3_EXT : constant := 16#83F2#; -- ../include/SDL/SDL_opengl.h:2105
GL_COMPRESSED_RGBA_S3TC_DXT5_EXT : constant := 16#83F3#; -- ../include/SDL/SDL_opengl.h:2106
GL_CULL_VERTEX_IBM : constant := 103050; -- ../include/SDL/SDL_opengl.h:2110
GL_VERTEX_ARRAY_LIST_IBM : constant := 103070; -- ../include/SDL/SDL_opengl.h:2117
GL_NORMAL_ARRAY_LIST_IBM : constant := 103071; -- ../include/SDL/SDL_opengl.h:2118
GL_COLOR_ARRAY_LIST_IBM : constant := 103072; -- ../include/SDL/SDL_opengl.h:2119
GL_INDEX_ARRAY_LIST_IBM : constant := 103073; -- ../include/SDL/SDL_opengl.h:2120
GL_TEXTURE_COORD_ARRAY_LIST_IBM : constant := 103074; -- ../include/SDL/SDL_opengl.h:2121
GL_EDGE_FLAG_ARRAY_LIST_IBM : constant := 103075; -- ../include/SDL/SDL_opengl.h:2122
GL_FOG_COORDINATE_ARRAY_LIST_IBM : constant := 103076; -- ../include/SDL/SDL_opengl.h:2123
GL_SECONDARY_COLOR_ARRAY_LIST_IBM : constant := 103077; -- ../include/SDL/SDL_opengl.h:2124
GL_VERTEX_ARRAY_LIST_STRIDE_IBM : constant := 103080; -- ../include/SDL/SDL_opengl.h:2125
GL_NORMAL_ARRAY_LIST_STRIDE_IBM : constant := 103081; -- ../include/SDL/SDL_opengl.h:2126
GL_COLOR_ARRAY_LIST_STRIDE_IBM : constant := 103082; -- ../include/SDL/SDL_opengl.h:2127
GL_INDEX_ARRAY_LIST_STRIDE_IBM : constant := 103083; -- ../include/SDL/SDL_opengl.h:2128
GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM : constant := 103084; -- ../include/SDL/SDL_opengl.h:2129
GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM : constant := 103085; -- ../include/SDL/SDL_opengl.h:2130
GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM : constant := 103086; -- ../include/SDL/SDL_opengl.h:2131
GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM : constant := 103087; -- ../include/SDL/SDL_opengl.h:2132
GL_PACK_SUBSAMPLE_RATE_SGIX : constant := 16#85A0#; -- ../include/SDL/SDL_opengl.h:2136
GL_UNPACK_SUBSAMPLE_RATE_SGIX : constant := 16#85A1#; -- ../include/SDL/SDL_opengl.h:2137
GL_PIXEL_SUBSAMPLE_4444_SGIX : constant := 16#85A2#; -- ../include/SDL/SDL_opengl.h:2138
GL_PIXEL_SUBSAMPLE_2424_SGIX : constant := 16#85A3#; -- ../include/SDL/SDL_opengl.h:2139
GL_PIXEL_SUBSAMPLE_4242_SGIX : constant := 16#85A4#; -- ../include/SDL/SDL_opengl.h:2140
GL_YCRCB_SGIX : constant := 16#8318#; -- ../include/SDL/SDL_opengl.h:2147
GL_YCRCBA_SGIX : constant := 16#8319#; -- ../include/SDL/SDL_opengl.h:2148
GL_DEPTH_PASS_INSTRUMENT_SGIX : constant := 16#8310#; -- ../include/SDL/SDL_opengl.h:2152
GL_DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX : constant := 16#8311#; -- ../include/SDL/SDL_opengl.h:2153
GL_DEPTH_PASS_INSTRUMENT_MAX_SGIX : constant := 16#8312#; -- ../include/SDL/SDL_opengl.h:2154
GL_COMPRESSED_RGB_FXT1_3DFX : constant := 16#86B0#; -- ../include/SDL/SDL_opengl.h:2158
GL_COMPRESSED_RGBA_FXT1_3DFX : constant := 16#86B1#; -- ../include/SDL/SDL_opengl.h:2159
GL_MULTISAMPLE_3DFX : constant := 16#86B2#; -- ../include/SDL/SDL_opengl.h:2163
GL_SAMPLE_BUFFERS_3DFX : constant := 16#86B3#; -- ../include/SDL/SDL_opengl.h:2164
GL_SAMPLES_3DFX : constant := 16#86B4#; -- ../include/SDL/SDL_opengl.h:2165
GL_MULTISAMPLE_BIT_3DFX : constant := 16#20000000#; -- ../include/SDL/SDL_opengl.h:2166
GL_MULTISAMPLE_EXT : constant := 16#809D#; -- ../include/SDL/SDL_opengl.h:2173
GL_SAMPLE_ALPHA_TO_MASK_EXT : constant := 16#809E#; -- ../include/SDL/SDL_opengl.h:2174
GL_SAMPLE_ALPHA_TO_ONE_EXT : constant := 16#809F#; -- ../include/SDL/SDL_opengl.h:2175
GL_SAMPLE_MASK_EXT : constant := 16#80A0#; -- ../include/SDL/SDL_opengl.h:2176
GL_1PASS_EXT : constant := 16#80A1#; -- ../include/SDL/SDL_opengl.h:2177
GL_2PASS_0_EXT : constant := 16#80A2#; -- ../include/SDL/SDL_opengl.h:2178
GL_2PASS_1_EXT : constant := 16#80A3#; -- ../include/SDL/SDL_opengl.h:2179
GL_4PASS_0_EXT : constant := 16#80A4#; -- ../include/SDL/SDL_opengl.h:2180
GL_4PASS_1_EXT : constant := 16#80A5#; -- ../include/SDL/SDL_opengl.h:2181
GL_4PASS_2_EXT : constant := 16#80A6#; -- ../include/SDL/SDL_opengl.h:2182
GL_4PASS_3_EXT : constant := 16#80A7#; -- ../include/SDL/SDL_opengl.h:2183
GL_SAMPLE_BUFFERS_EXT : constant := 16#80A8#; -- ../include/SDL/SDL_opengl.h:2184
GL_SAMPLES_EXT : constant := 16#80A9#; -- ../include/SDL/SDL_opengl.h:2185
GL_SAMPLE_MASK_VALUE_EXT : constant := 16#80AA#; -- ../include/SDL/SDL_opengl.h:2186
GL_SAMPLE_MASK_INVERT_EXT : constant := 16#80AB#; -- ../include/SDL/SDL_opengl.h:2187
GL_SAMPLE_PATTERN_EXT : constant := 16#80AC#; -- ../include/SDL/SDL_opengl.h:2188
GL_MULTISAMPLE_BIT_EXT : constant := 16#20000000#; -- ../include/SDL/SDL_opengl.h:2189
GL_VERTEX_PRECLIP_SGIX : constant := 16#83EE#; -- ../include/SDL/SDL_opengl.h:2193
GL_VERTEX_PRECLIP_HINT_SGIX : constant := 16#83EF#; -- ../include/SDL/SDL_opengl.h:2194
GL_CONVOLUTION_HINT_SGIX : constant := 16#8316#; -- ../include/SDL/SDL_opengl.h:2198
GL_PACK_RESAMPLE_SGIX : constant := 16#842C#; -- ../include/SDL/SDL_opengl.h:2202
GL_UNPACK_RESAMPLE_SGIX : constant := 16#842D#; -- ../include/SDL/SDL_opengl.h:2203
GL_RESAMPLE_REPLICATE_SGIX : constant := 16#842E#; -- ../include/SDL/SDL_opengl.h:2204
GL_RESAMPLE_ZERO_FILL_SGIX : constant := 16#842F#; -- ../include/SDL/SDL_opengl.h:2205
GL_RESAMPLE_DECIMATE_SGIX : constant := 16#8430#; -- ../include/SDL/SDL_opengl.h:2206
GL_EYE_DISTANCE_TO_POINT_SGIS : constant := 16#81F0#; -- ../include/SDL/SDL_opengl.h:2210
GL_OBJECT_DISTANCE_TO_POINT_SGIS : constant := 16#81F1#; -- ../include/SDL/SDL_opengl.h:2211
GL_EYE_DISTANCE_TO_LINE_SGIS : constant := 16#81F2#; -- ../include/SDL/SDL_opengl.h:2212
GL_OBJECT_DISTANCE_TO_LINE_SGIS : constant := 16#81F3#; -- ../include/SDL/SDL_opengl.h:2213
GL_EYE_POINT_SGIS : constant := 16#81F4#; -- ../include/SDL/SDL_opengl.h:2214
GL_OBJECT_POINT_SGIS : constant := 16#81F5#; -- ../include/SDL/SDL_opengl.h:2215
GL_EYE_LINE_SGIS : constant := 16#81F6#; -- ../include/SDL/SDL_opengl.h:2216
GL_OBJECT_LINE_SGIS : constant := 16#81F7#; -- ../include/SDL/SDL_opengl.h:2217
GL_TEXTURE_COLOR_WRITEMASK_SGIS : constant := 16#81EF#; -- ../include/SDL/SDL_opengl.h:2221
GL_DOT3_RGB_EXT : constant := 16#8740#; -- ../include/SDL/SDL_opengl.h:2225
GL_DOT3_RGBA_EXT : constant := 16#8741#; -- ../include/SDL/SDL_opengl.h:2226
GL_MIRROR_CLAMP_ATI : constant := 16#8742#; -- ../include/SDL/SDL_opengl.h:2230
GL_MIRROR_CLAMP_TO_EDGE_ATI : constant := 16#8743#; -- ../include/SDL/SDL_opengl.h:2231
GL_ALL_COMPLETED_NV : constant := 16#84F2#; -- ../include/SDL/SDL_opengl.h:2235
GL_FENCE_STATUS_NV : constant := 16#84F3#; -- ../include/SDL/SDL_opengl.h:2236
GL_FENCE_CONDITION_NV : constant := 16#84F4#; -- ../include/SDL/SDL_opengl.h:2237
GL_MIRRORED_REPEAT_IBM : constant := 16#8370#; -- ../include/SDL/SDL_opengl.h:2241
GL_EVAL_2D_NV : constant := 16#86C0#; -- ../include/SDL/SDL_opengl.h:2245
GL_EVAL_TRIANGULAR_2D_NV : constant := 16#86C1#; -- ../include/SDL/SDL_opengl.h:2246
GL_MAP_TESSELLATION_NV : constant := 16#86C2#; -- ../include/SDL/SDL_opengl.h:2247
GL_MAP_ATTRIB_U_ORDER_NV : constant := 16#86C3#; -- ../include/SDL/SDL_opengl.h:2248
GL_MAP_ATTRIB_V_ORDER_NV : constant := 16#86C4#; -- ../include/SDL/SDL_opengl.h:2249
GL_EVAL_FRACTIONAL_TESSELLATION_NV : constant := 16#86C5#; -- ../include/SDL/SDL_opengl.h:2250
GL_EVAL_VERTEX_ATTRIB0_NV : constant := 16#86C6#; -- ../include/SDL/SDL_opengl.h:2251
GL_EVAL_VERTEX_ATTRIB1_NV : constant := 16#86C7#; -- ../include/SDL/SDL_opengl.h:2252
GL_EVAL_VERTEX_ATTRIB2_NV : constant := 16#86C8#; -- ../include/SDL/SDL_opengl.h:2253
GL_EVAL_VERTEX_ATTRIB3_NV : constant := 16#86C9#; -- ../include/SDL/SDL_opengl.h:2254
GL_EVAL_VERTEX_ATTRIB4_NV : constant := 16#86CA#; -- ../include/SDL/SDL_opengl.h:2255
GL_EVAL_VERTEX_ATTRIB5_NV : constant := 16#86CB#; -- ../include/SDL/SDL_opengl.h:2256
GL_EVAL_VERTEX_ATTRIB6_NV : constant := 16#86CC#; -- ../include/SDL/SDL_opengl.h:2257
GL_EVAL_VERTEX_ATTRIB7_NV : constant := 16#86CD#; -- ../include/SDL/SDL_opengl.h:2258
GL_EVAL_VERTEX_ATTRIB8_NV : constant := 16#86CE#; -- ../include/SDL/SDL_opengl.h:2259
GL_EVAL_VERTEX_ATTRIB9_NV : constant := 16#86CF#; -- ../include/SDL/SDL_opengl.h:2260
GL_EVAL_VERTEX_ATTRIB10_NV : constant := 16#86D0#; -- ../include/SDL/SDL_opengl.h:2261
GL_EVAL_VERTEX_ATTRIB11_NV : constant := 16#86D1#; -- ../include/SDL/SDL_opengl.h:2262
GL_EVAL_VERTEX_ATTRIB12_NV : constant := 16#86D2#; -- ../include/SDL/SDL_opengl.h:2263
GL_EVAL_VERTEX_ATTRIB13_NV : constant := 16#86D3#; -- ../include/SDL/SDL_opengl.h:2264
GL_EVAL_VERTEX_ATTRIB14_NV : constant := 16#86D4#; -- ../include/SDL/SDL_opengl.h:2265
GL_EVAL_VERTEX_ATTRIB15_NV : constant := 16#86D5#; -- ../include/SDL/SDL_opengl.h:2266
GL_MAX_MAP_TESSELLATION_NV : constant := 16#86D6#; -- ../include/SDL/SDL_opengl.h:2267
GL_MAX_RATIONAL_EVAL_ORDER_NV : constant := 16#86D7#; -- ../include/SDL/SDL_opengl.h:2268
GL_DEPTH_STENCIL_NV : constant := 16#84F9#; -- ../include/SDL/SDL_opengl.h:2272
GL_UNSIGNED_INT_24_8_NV : constant := 16#84FA#; -- ../include/SDL/SDL_opengl.h:2273
GL_PER_STAGE_CONSTANTS_NV : constant := 16#8535#; -- ../include/SDL/SDL_opengl.h:2277
GL_TEXTURE_RECTANGLE_NV : constant := 16#84F5#; -- ../include/SDL/SDL_opengl.h:2284
GL_TEXTURE_BINDING_RECTANGLE_NV : constant := 16#84F6#; -- ../include/SDL/SDL_opengl.h:2285
GL_PROXY_TEXTURE_RECTANGLE_NV : constant := 16#84F7#; -- ../include/SDL/SDL_opengl.h:2286
GL_MAX_RECTANGLE_TEXTURE_SIZE_NV : constant := 16#84F8#; -- ../include/SDL/SDL_opengl.h:2287
GL_OFFSET_TEXTURE_RECTANGLE_NV : constant := 16#864C#; -- ../include/SDL/SDL_opengl.h:2291
GL_OFFSET_TEXTURE_RECTANGLE_SCALE_NV : constant := 16#864D#; -- ../include/SDL/SDL_opengl.h:2292
GL_DOT_PRODUCT_TEXTURE_RECTANGLE_NV : constant := 16#864E#; -- ../include/SDL/SDL_opengl.h:2293
GL_RGBA_UNSIGNED_DOT_PRODUCT_MAPPING_NV : constant := 16#86D9#; -- ../include/SDL/SDL_opengl.h:2294
GL_UNSIGNED_INT_S8_S8_8_8_NV : constant := 16#86DA#; -- ../include/SDL/SDL_opengl.h:2295
GL_UNSIGNED_INT_8_8_S8_S8_REV_NV : constant := 16#86DB#; -- ../include/SDL/SDL_opengl.h:2296
GL_DSDT_MAG_INTENSITY_NV : constant := 16#86DC#; -- ../include/SDL/SDL_opengl.h:2297
GL_SHADER_CONSISTENT_NV : constant := 16#86DD#; -- ../include/SDL/SDL_opengl.h:2298
GL_TEXTURE_SHADER_NV : constant := 16#86DE#; -- ../include/SDL/SDL_opengl.h:2299
GL_SHADER_OPERATION_NV : constant := 16#86DF#; -- ../include/SDL/SDL_opengl.h:2300
GL_CULL_MODES_NV : constant := 16#86E0#; -- ../include/SDL/SDL_opengl.h:2301
GL_OFFSET_TEXTURE_MATRIX_NV : constant := 16#86E1#; -- ../include/SDL/SDL_opengl.h:2302
GL_OFFSET_TEXTURE_SCALE_NV : constant := 16#86E2#; -- ../include/SDL/SDL_opengl.h:2303
GL_OFFSET_TEXTURE_BIAS_NV : constant := 16#86E3#; -- ../include/SDL/SDL_opengl.h:2304
-- unsupported macro: GL_OFFSET_TEXTURE_2D_MATRIX_NV GL_OFFSET_TEXTURE_MATRIX_NV
-- unsupported macro: GL_OFFSET_TEXTURE_2D_SCALE_NV GL_OFFSET_TEXTURE_SCALE_NV
-- unsupported macro: GL_OFFSET_TEXTURE_2D_BIAS_NV GL_OFFSET_TEXTURE_BIAS_NV
GL_PREVIOUS_TEXTURE_INPUT_NV : constant := 16#86E4#; -- ../include/SDL/SDL_opengl.h:2308
GL_CONST_EYE_NV : constant := 16#86E5#; -- ../include/SDL/SDL_opengl.h:2309
GL_PASS_THROUGH_NV : constant := 16#86E6#; -- ../include/SDL/SDL_opengl.h:2310
GL_CULL_FRAGMENT_NV : constant := 16#86E7#; -- ../include/SDL/SDL_opengl.h:2311
GL_OFFSET_TEXTURE_2D_NV : constant := 16#86E8#; -- ../include/SDL/SDL_opengl.h:2312
GL_DEPENDENT_AR_TEXTURE_2D_NV : constant := 16#86E9#; -- ../include/SDL/SDL_opengl.h:2313
GL_DEPENDENT_GB_TEXTURE_2D_NV : constant := 16#86EA#; -- ../include/SDL/SDL_opengl.h:2314
GL_DOT_PRODUCT_NV : constant := 16#86EC#; -- ../include/SDL/SDL_opengl.h:2315
GL_DOT_PRODUCT_DEPTH_REPLACE_NV : constant := 16#86ED#; -- ../include/SDL/SDL_opengl.h:2316
GL_DOT_PRODUCT_TEXTURE_2D_NV : constant := 16#86EE#; -- ../include/SDL/SDL_opengl.h:2317
GL_DOT_PRODUCT_TEXTURE_CUBE_MAP_NV : constant := 16#86F0#; -- ../include/SDL/SDL_opengl.h:2318
GL_DOT_PRODUCT_DIFFUSE_CUBE_MAP_NV : constant := 16#86F1#; -- ../include/SDL/SDL_opengl.h:2319
GL_DOT_PRODUCT_REFLECT_CUBE_MAP_NV : constant := 16#86F2#; -- ../include/SDL/SDL_opengl.h:2320
GL_DOT_PRODUCT_CONST_EYE_REFLECT_CUBE_MAP_NV : constant := 16#86F3#; -- ../include/SDL/SDL_opengl.h:2321
GL_HILO_NV : constant := 16#86F4#; -- ../include/SDL/SDL_opengl.h:2322
GL_DSDT_NV : constant := 16#86F5#; -- ../include/SDL/SDL_opengl.h:2323
GL_DSDT_MAG_NV : constant := 16#86F6#; -- ../include/SDL/SDL_opengl.h:2324
GL_DSDT_MAG_VIB_NV : constant := 16#86F7#; -- ../include/SDL/SDL_opengl.h:2325
GL_HILO16_NV : constant := 16#86F8#; -- ../include/SDL/SDL_opengl.h:2326
GL_SIGNED_HILO_NV : constant := 16#86F9#; -- ../include/SDL/SDL_opengl.h:2327
GL_SIGNED_HILO16_NV : constant := 16#86FA#; -- ../include/SDL/SDL_opengl.h:2328
GL_SIGNED_RGBA_NV : constant := 16#86FB#; -- ../include/SDL/SDL_opengl.h:2329
GL_SIGNED_RGBA8_NV : constant := 16#86FC#; -- ../include/SDL/SDL_opengl.h:2330
GL_SIGNED_RGB_NV : constant := 16#86FE#; -- ../include/SDL/SDL_opengl.h:2331
GL_SIGNED_RGB8_NV : constant := 16#86FF#; -- ../include/SDL/SDL_opengl.h:2332
GL_SIGNED_LUMINANCE_NV : constant := 16#8701#; -- ../include/SDL/SDL_opengl.h:2333
GL_SIGNED_LUMINANCE8_NV : constant := 16#8702#; -- ../include/SDL/SDL_opengl.h:2334
GL_SIGNED_LUMINANCE_ALPHA_NV : constant := 16#8703#; -- ../include/SDL/SDL_opengl.h:2335
GL_SIGNED_LUMINANCE8_ALPHA8_NV : constant := 16#8704#; -- ../include/SDL/SDL_opengl.h:2336
GL_SIGNED_ALPHA_NV : constant := 16#8705#; -- ../include/SDL/SDL_opengl.h:2337
GL_SIGNED_ALPHA8_NV : constant := 16#8706#; -- ../include/SDL/SDL_opengl.h:2338
GL_SIGNED_INTENSITY_NV : constant := 16#8707#; -- ../include/SDL/SDL_opengl.h:2339
GL_SIGNED_INTENSITY8_NV : constant := 16#8708#; -- ../include/SDL/SDL_opengl.h:2340
GL_DSDT8_NV : constant := 16#8709#; -- ../include/SDL/SDL_opengl.h:2341
GL_DSDT8_MAG8_NV : constant := 16#870A#; -- ../include/SDL/SDL_opengl.h:2342
GL_DSDT8_MAG8_INTENSITY8_NV : constant := 16#870B#; -- ../include/SDL/SDL_opengl.h:2343
GL_SIGNED_RGB_UNSIGNED_ALPHA_NV : constant := 16#870C#; -- ../include/SDL/SDL_opengl.h:2344
GL_SIGNED_RGB8_UNSIGNED_ALPHA8_NV : constant := 16#870D#; -- ../include/SDL/SDL_opengl.h:2345
GL_HI_SCALE_NV : constant := 16#870E#; -- ../include/SDL/SDL_opengl.h:2346
GL_LO_SCALE_NV : constant := 16#870F#; -- ../include/SDL/SDL_opengl.h:2347
GL_DS_SCALE_NV : constant := 16#8710#; -- ../include/SDL/SDL_opengl.h:2348
GL_DT_SCALE_NV : constant := 16#8711#; -- ../include/SDL/SDL_opengl.h:2349
GL_MAGNITUDE_SCALE_NV : constant := 16#8712#; -- ../include/SDL/SDL_opengl.h:2350
GL_VIBRANCE_SCALE_NV : constant := 16#8713#; -- ../include/SDL/SDL_opengl.h:2351
GL_HI_BIAS_NV : constant := 16#8714#; -- ../include/SDL/SDL_opengl.h:2352
GL_LO_BIAS_NV : constant := 16#8715#; -- ../include/SDL/SDL_opengl.h:2353
GL_DS_BIAS_NV : constant := 16#8716#; -- ../include/SDL/SDL_opengl.h:2354
GL_DT_BIAS_NV : constant := 16#8717#; -- ../include/SDL/SDL_opengl.h:2355
GL_MAGNITUDE_BIAS_NV : constant := 16#8718#; -- ../include/SDL/SDL_opengl.h:2356
GL_VIBRANCE_BIAS_NV : constant := 16#8719#; -- ../include/SDL/SDL_opengl.h:2357
GL_TEXTURE_BORDER_VALUES_NV : constant := 16#871A#; -- ../include/SDL/SDL_opengl.h:2358
GL_TEXTURE_HI_SIZE_NV : constant := 16#871B#; -- ../include/SDL/SDL_opengl.h:2359
GL_TEXTURE_LO_SIZE_NV : constant := 16#871C#; -- ../include/SDL/SDL_opengl.h:2360
GL_TEXTURE_DS_SIZE_NV : constant := 16#871D#; -- ../include/SDL/SDL_opengl.h:2361
GL_TEXTURE_DT_SIZE_NV : constant := 16#871E#; -- ../include/SDL/SDL_opengl.h:2362
GL_TEXTURE_MAG_SIZE_NV : constant := 16#871F#; -- ../include/SDL/SDL_opengl.h:2363
GL_DOT_PRODUCT_TEXTURE_3D_NV : constant := 16#86EF#; -- ../include/SDL/SDL_opengl.h:2367
GL_VERTEX_ARRAY_RANGE_WITHOUT_FLUSH_NV : constant := 16#8533#; -- ../include/SDL/SDL_opengl.h:2371
GL_VERTEX_PROGRAM_NV : constant := 16#8620#; -- ../include/SDL/SDL_opengl.h:2375
GL_VERTEX_STATE_PROGRAM_NV : constant := 16#8621#; -- ../include/SDL/SDL_opengl.h:2376
GL_ATTRIB_ARRAY_SIZE_NV : constant := 16#8623#; -- ../include/SDL/SDL_opengl.h:2377
GL_ATTRIB_ARRAY_STRIDE_NV : constant := 16#8624#; -- ../include/SDL/SDL_opengl.h:2378
GL_ATTRIB_ARRAY_TYPE_NV : constant := 16#8625#; -- ../include/SDL/SDL_opengl.h:2379
GL_CURRENT_ATTRIB_NV : constant := 16#8626#; -- ../include/SDL/SDL_opengl.h:2380
GL_PROGRAM_LENGTH_NV : constant := 16#8627#; -- ../include/SDL/SDL_opengl.h:2381
GL_PROGRAM_STRING_NV : constant := 16#8628#; -- ../include/SDL/SDL_opengl.h:2382
GL_MODELVIEW_PROJECTION_NV : constant := 16#8629#; -- ../include/SDL/SDL_opengl.h:2383
GL_IDENTITY_NV : constant := 16#862A#; -- ../include/SDL/SDL_opengl.h:2384
GL_INVERSE_NV : constant := 16#862B#; -- ../include/SDL/SDL_opengl.h:2385
GL_TRANSPOSE_NV : constant := 16#862C#; -- ../include/SDL/SDL_opengl.h:2386
GL_INVERSE_TRANSPOSE_NV : constant := 16#862D#; -- ../include/SDL/SDL_opengl.h:2387
GL_MAX_TRACK_MATRIX_STACK_DEPTH_NV : constant := 16#862E#; -- ../include/SDL/SDL_opengl.h:2388
GL_MAX_TRACK_MATRICES_NV : constant := 16#862F#; -- ../include/SDL/SDL_opengl.h:2389
GL_MATRIX0_NV : constant := 16#8630#; -- ../include/SDL/SDL_opengl.h:2390
GL_MATRIX1_NV : constant := 16#8631#; -- ../include/SDL/SDL_opengl.h:2391
GL_MATRIX2_NV : constant := 16#8632#; -- ../include/SDL/SDL_opengl.h:2392
GL_MATRIX3_NV : constant := 16#8633#; -- ../include/SDL/SDL_opengl.h:2393
GL_MATRIX4_NV : constant := 16#8634#; -- ../include/SDL/SDL_opengl.h:2394
GL_MATRIX5_NV : constant := 16#8635#; -- ../include/SDL/SDL_opengl.h:2395
GL_MATRIX6_NV : constant := 16#8636#; -- ../include/SDL/SDL_opengl.h:2396
GL_MATRIX7_NV : constant := 16#8637#; -- ../include/SDL/SDL_opengl.h:2397
GL_CURRENT_MATRIX_STACK_DEPTH_NV : constant := 16#8640#; -- ../include/SDL/SDL_opengl.h:2398
GL_CURRENT_MATRIX_NV : constant := 16#8641#; -- ../include/SDL/SDL_opengl.h:2399
GL_VERTEX_PROGRAM_POINT_SIZE_NV : constant := 16#8642#; -- ../include/SDL/SDL_opengl.h:2400
GL_VERTEX_PROGRAM_TWO_SIDE_NV : constant := 16#8643#; -- ../include/SDL/SDL_opengl.h:2401
GL_PROGRAM_PARAMETER_NV : constant := 16#8644#; -- ../include/SDL/SDL_opengl.h:2402
GL_ATTRIB_ARRAY_POINTER_NV : constant := 16#8645#; -- ../include/SDL/SDL_opengl.h:2403
GL_PROGRAM_TARGET_NV : constant := 16#8646#; -- ../include/SDL/SDL_opengl.h:2404
GL_PROGRAM_RESIDENT_NV : constant := 16#8647#; -- ../include/SDL/SDL_opengl.h:2405
GL_TRACK_MATRIX_NV : constant := 16#8648#; -- ../include/SDL/SDL_opengl.h:2406
GL_TRACK_MATRIX_TRANSFORM_NV : constant := 16#8649#; -- ../include/SDL/SDL_opengl.h:2407
GL_VERTEX_PROGRAM_BINDING_NV : constant := 16#864A#; -- ../include/SDL/SDL_opengl.h:2408
GL_PROGRAM_ERROR_POSITION_NV : constant := 16#864B#; -- ../include/SDL/SDL_opengl.h:2409
GL_VERTEX_ATTRIB_ARRAY0_NV : constant := 16#8650#; -- ../include/SDL/SDL_opengl.h:2410
GL_VERTEX_ATTRIB_ARRAY1_NV : constant := 16#8651#; -- ../include/SDL/SDL_opengl.h:2411
GL_VERTEX_ATTRIB_ARRAY2_NV : constant := 16#8652#; -- ../include/SDL/SDL_opengl.h:2412
GL_VERTEX_ATTRIB_ARRAY3_NV : constant := 16#8653#; -- ../include/SDL/SDL_opengl.h:2413
GL_VERTEX_ATTRIB_ARRAY4_NV : constant := 16#8654#; -- ../include/SDL/SDL_opengl.h:2414
GL_VERTEX_ATTRIB_ARRAY5_NV : constant := 16#8655#; -- ../include/SDL/SDL_opengl.h:2415
GL_VERTEX_ATTRIB_ARRAY6_NV : constant := 16#8656#; -- ../include/SDL/SDL_opengl.h:2416
GL_VERTEX_ATTRIB_ARRAY7_NV : constant := 16#8657#; -- ../include/SDL/SDL_opengl.h:2417
GL_VERTEX_ATTRIB_ARRAY8_NV : constant := 16#8658#; -- ../include/SDL/SDL_opengl.h:2418
GL_VERTEX_ATTRIB_ARRAY9_NV : constant := 16#8659#; -- ../include/SDL/SDL_opengl.h:2419
GL_VERTEX_ATTRIB_ARRAY10_NV : constant := 16#865A#; -- ../include/SDL/SDL_opengl.h:2420
GL_VERTEX_ATTRIB_ARRAY11_NV : constant := 16#865B#; -- ../include/SDL/SDL_opengl.h:2421
GL_VERTEX_ATTRIB_ARRAY12_NV : constant := 16#865C#; -- ../include/SDL/SDL_opengl.h:2422
GL_VERTEX_ATTRIB_ARRAY13_NV : constant := 16#865D#; -- ../include/SDL/SDL_opengl.h:2423
GL_VERTEX_ATTRIB_ARRAY14_NV : constant := 16#865E#; -- ../include/SDL/SDL_opengl.h:2424
GL_VERTEX_ATTRIB_ARRAY15_NV : constant := 16#865F#; -- ../include/SDL/SDL_opengl.h:2425
GL_MAP1_VERTEX_ATTRIB0_4_NV : constant := 16#8660#; -- ../include/SDL/SDL_opengl.h:2426
GL_MAP1_VERTEX_ATTRIB1_4_NV : constant := 16#8661#; -- ../include/SDL/SDL_opengl.h:2427
GL_MAP1_VERTEX_ATTRIB2_4_NV : constant := 16#8662#; -- ../include/SDL/SDL_opengl.h:2428
GL_MAP1_VERTEX_ATTRIB3_4_NV : constant := 16#8663#; -- ../include/SDL/SDL_opengl.h:2429
GL_MAP1_VERTEX_ATTRIB4_4_NV : constant := 16#8664#; -- ../include/SDL/SDL_opengl.h:2430
GL_MAP1_VERTEX_ATTRIB5_4_NV : constant := 16#8665#; -- ../include/SDL/SDL_opengl.h:2431
GL_MAP1_VERTEX_ATTRIB6_4_NV : constant := 16#8666#; -- ../include/SDL/SDL_opengl.h:2432
GL_MAP1_VERTEX_ATTRIB7_4_NV : constant := 16#8667#; -- ../include/SDL/SDL_opengl.h:2433
GL_MAP1_VERTEX_ATTRIB8_4_NV : constant := 16#8668#; -- ../include/SDL/SDL_opengl.h:2434
GL_MAP1_VERTEX_ATTRIB9_4_NV : constant := 16#8669#; -- ../include/SDL/SDL_opengl.h:2435
GL_MAP1_VERTEX_ATTRIB10_4_NV : constant := 16#866A#; -- ../include/SDL/SDL_opengl.h:2436
GL_MAP1_VERTEX_ATTRIB11_4_NV : constant := 16#866B#; -- ../include/SDL/SDL_opengl.h:2437
GL_MAP1_VERTEX_ATTRIB12_4_NV : constant := 16#866C#; -- ../include/SDL/SDL_opengl.h:2438
GL_MAP1_VERTEX_ATTRIB13_4_NV : constant := 16#866D#; -- ../include/SDL/SDL_opengl.h:2439
GL_MAP1_VERTEX_ATTRIB14_4_NV : constant := 16#866E#; -- ../include/SDL/SDL_opengl.h:2440
GL_MAP1_VERTEX_ATTRIB15_4_NV : constant := 16#866F#; -- ../include/SDL/SDL_opengl.h:2441
GL_MAP2_VERTEX_ATTRIB0_4_NV : constant := 16#8670#; -- ../include/SDL/SDL_opengl.h:2442
GL_MAP2_VERTEX_ATTRIB1_4_NV : constant := 16#8671#; -- ../include/SDL/SDL_opengl.h:2443
GL_MAP2_VERTEX_ATTRIB2_4_NV : constant := 16#8672#; -- ../include/SDL/SDL_opengl.h:2444
GL_MAP2_VERTEX_ATTRIB3_4_NV : constant := 16#8673#; -- ../include/SDL/SDL_opengl.h:2445
GL_MAP2_VERTEX_ATTRIB4_4_NV : constant := 16#8674#; -- ../include/SDL/SDL_opengl.h:2446
GL_MAP2_VERTEX_ATTRIB5_4_NV : constant := 16#8675#; -- ../include/SDL/SDL_opengl.h:2447
GL_MAP2_VERTEX_ATTRIB6_4_NV : constant := 16#8676#; -- ../include/SDL/SDL_opengl.h:2448
GL_MAP2_VERTEX_ATTRIB7_4_NV : constant := 16#8677#; -- ../include/SDL/SDL_opengl.h:2449
GL_MAP2_VERTEX_ATTRIB8_4_NV : constant := 16#8678#; -- ../include/SDL/SDL_opengl.h:2450
GL_MAP2_VERTEX_ATTRIB9_4_NV : constant := 16#8679#; -- ../include/SDL/SDL_opengl.h:2451
GL_MAP2_VERTEX_ATTRIB10_4_NV : constant := 16#867A#; -- ../include/SDL/SDL_opengl.h:2452
GL_MAP2_VERTEX_ATTRIB11_4_NV : constant := 16#867B#; -- ../include/SDL/SDL_opengl.h:2453
GL_MAP2_VERTEX_ATTRIB12_4_NV : constant := 16#867C#; -- ../include/SDL/SDL_opengl.h:2454
GL_MAP2_VERTEX_ATTRIB13_4_NV : constant := 16#867D#; -- ../include/SDL/SDL_opengl.h:2455
GL_MAP2_VERTEX_ATTRIB14_4_NV : constant := 16#867E#; -- ../include/SDL/SDL_opengl.h:2456
GL_MAP2_VERTEX_ATTRIB15_4_NV : constant := 16#867F#; -- ../include/SDL/SDL_opengl.h:2457
GL_TEXTURE_MAX_CLAMP_S_SGIX : constant := 16#8369#; -- ../include/SDL/SDL_opengl.h:2461
GL_TEXTURE_MAX_CLAMP_T_SGIX : constant := 16#836A#; -- ../include/SDL/SDL_opengl.h:2462
GL_TEXTURE_MAX_CLAMP_R_SGIX : constant := 16#836B#; -- ../include/SDL/SDL_opengl.h:2463
GL_SCALEBIAS_HINT_SGIX : constant := 16#8322#; -- ../include/SDL/SDL_opengl.h:2467
GL_INTERLACE_OML : constant := 16#8980#; -- ../include/SDL/SDL_opengl.h:2471
GL_INTERLACE_READ_OML : constant := 16#8981#; -- ../include/SDL/SDL_opengl.h:2472
GL_FORMAT_SUBSAMPLE_24_24_OML : constant := 16#8982#; -- ../include/SDL/SDL_opengl.h:2476
GL_FORMAT_SUBSAMPLE_244_244_OML : constant := 16#8983#; -- ../include/SDL/SDL_opengl.h:2477
GL_PACK_RESAMPLE_OML : constant := 16#8984#; -- ../include/SDL/SDL_opengl.h:2481
GL_UNPACK_RESAMPLE_OML : constant := 16#8985#; -- ../include/SDL/SDL_opengl.h:2482
GL_RESAMPLE_REPLICATE_OML : constant := 16#8986#; -- ../include/SDL/SDL_opengl.h:2483
GL_RESAMPLE_ZERO_FILL_OML : constant := 16#8987#; -- ../include/SDL/SDL_opengl.h:2484
GL_RESAMPLE_AVERAGE_OML : constant := 16#8988#; -- ../include/SDL/SDL_opengl.h:2485
GL_RESAMPLE_DECIMATE_OML : constant := 16#8989#; -- ../include/SDL/SDL_opengl.h:2486
GL_DEPTH_STENCIL_TO_RGBA_NV : constant := 16#886E#; -- ../include/SDL/SDL_opengl.h:2490
GL_DEPTH_STENCIL_TO_BGRA_NV : constant := 16#886F#; -- ../include/SDL/SDL_opengl.h:2491
GL_BUMP_ROT_MATRIX_ATI : constant := 16#8775#; -- ../include/SDL/SDL_opengl.h:2495
GL_BUMP_ROT_MATRIX_SIZE_ATI : constant := 16#8776#; -- ../include/SDL/SDL_opengl.h:2496
GL_BUMP_NUM_TEX_UNITS_ATI : constant := 16#8777#; -- ../include/SDL/SDL_opengl.h:2497
GL_BUMP_TEX_UNITS_ATI : constant := 16#8778#; -- ../include/SDL/SDL_opengl.h:2498
GL_DUDV_ATI : constant := 16#8779#; -- ../include/SDL/SDL_opengl.h:2499
GL_DU8DV8_ATI : constant := 16#877A#; -- ../include/SDL/SDL_opengl.h:2500
GL_BUMP_ENVMAP_ATI : constant := 16#877B#; -- ../include/SDL/SDL_opengl.h:2501
GL_BUMP_TARGET_ATI : constant := 16#877C#; -- ../include/SDL/SDL_opengl.h:2502
GL_FRAGMENT_SHADER_ATI : constant := 16#8920#; -- ../include/SDL/SDL_opengl.h:2506
GL_REG_0_ATI : constant := 16#8921#; -- ../include/SDL/SDL_opengl.h:2507
GL_REG_1_ATI : constant := 16#8922#; -- ../include/SDL/SDL_opengl.h:2508
GL_REG_2_ATI : constant := 16#8923#; -- ../include/SDL/SDL_opengl.h:2509
GL_REG_3_ATI : constant := 16#8924#; -- ../include/SDL/SDL_opengl.h:2510
GL_REG_4_ATI : constant := 16#8925#; -- ../include/SDL/SDL_opengl.h:2511
GL_REG_5_ATI : constant := 16#8926#; -- ../include/SDL/SDL_opengl.h:2512
GL_REG_6_ATI : constant := 16#8927#; -- ../include/SDL/SDL_opengl.h:2513
GL_REG_7_ATI : constant := 16#8928#; -- ../include/SDL/SDL_opengl.h:2514
GL_REG_8_ATI : constant := 16#8929#; -- ../include/SDL/SDL_opengl.h:2515
GL_REG_9_ATI : constant := 16#892A#; -- ../include/SDL/SDL_opengl.h:2516
GL_REG_10_ATI : constant := 16#892B#; -- ../include/SDL/SDL_opengl.h:2517
GL_REG_11_ATI : constant := 16#892C#; -- ../include/SDL/SDL_opengl.h:2518
GL_REG_12_ATI : constant := 16#892D#; -- ../include/SDL/SDL_opengl.h:2519
GL_REG_13_ATI : constant := 16#892E#; -- ../include/SDL/SDL_opengl.h:2520
GL_REG_14_ATI : constant := 16#892F#; -- ../include/SDL/SDL_opengl.h:2521
GL_REG_15_ATI : constant := 16#8930#; -- ../include/SDL/SDL_opengl.h:2522
GL_REG_16_ATI : constant := 16#8931#; -- ../include/SDL/SDL_opengl.h:2523
GL_REG_17_ATI : constant := 16#8932#; -- ../include/SDL/SDL_opengl.h:2524
GL_REG_18_ATI : constant := 16#8933#; -- ../include/SDL/SDL_opengl.h:2525
GL_REG_19_ATI : constant := 16#8934#; -- ../include/SDL/SDL_opengl.h:2526
GL_REG_20_ATI : constant := 16#8935#; -- ../include/SDL/SDL_opengl.h:2527
GL_REG_21_ATI : constant := 16#8936#; -- ../include/SDL/SDL_opengl.h:2528
GL_REG_22_ATI : constant := 16#8937#; -- ../include/SDL/SDL_opengl.h:2529
GL_REG_23_ATI : constant := 16#8938#; -- ../include/SDL/SDL_opengl.h:2530
GL_REG_24_ATI : constant := 16#8939#; -- ../include/SDL/SDL_opengl.h:2531
GL_REG_25_ATI : constant := 16#893A#; -- ../include/SDL/SDL_opengl.h:2532
GL_REG_26_ATI : constant := 16#893B#; -- ../include/SDL/SDL_opengl.h:2533
GL_REG_27_ATI : constant := 16#893C#; -- ../include/SDL/SDL_opengl.h:2534
GL_REG_28_ATI : constant := 16#893D#; -- ../include/SDL/SDL_opengl.h:2535
GL_REG_29_ATI : constant := 16#893E#; -- ../include/SDL/SDL_opengl.h:2536
GL_REG_30_ATI : constant := 16#893F#; -- ../include/SDL/SDL_opengl.h:2537
GL_REG_31_ATI : constant := 16#8940#; -- ../include/SDL/SDL_opengl.h:2538
GL_CON_0_ATI : constant := 16#8941#; -- ../include/SDL/SDL_opengl.h:2539
GL_CON_1_ATI : constant := 16#8942#; -- ../include/SDL/SDL_opengl.h:2540
GL_CON_2_ATI : constant := 16#8943#; -- ../include/SDL/SDL_opengl.h:2541
GL_CON_3_ATI : constant := 16#8944#; -- ../include/SDL/SDL_opengl.h:2542
GL_CON_4_ATI : constant := 16#8945#; -- ../include/SDL/SDL_opengl.h:2543
GL_CON_5_ATI : constant := 16#8946#; -- ../include/SDL/SDL_opengl.h:2544
GL_CON_6_ATI : constant := 16#8947#; -- ../include/SDL/SDL_opengl.h:2545
GL_CON_7_ATI : constant := 16#8948#; -- ../include/SDL/SDL_opengl.h:2546
GL_CON_8_ATI : constant := 16#8949#; -- ../include/SDL/SDL_opengl.h:2547
GL_CON_9_ATI : constant := 16#894A#; -- ../include/SDL/SDL_opengl.h:2548
GL_CON_10_ATI : constant := 16#894B#; -- ../include/SDL/SDL_opengl.h:2549
GL_CON_11_ATI : constant := 16#894C#; -- ../include/SDL/SDL_opengl.h:2550
GL_CON_12_ATI : constant := 16#894D#; -- ../include/SDL/SDL_opengl.h:2551
GL_CON_13_ATI : constant := 16#894E#; -- ../include/SDL/SDL_opengl.h:2552
GL_CON_14_ATI : constant := 16#894F#; -- ../include/SDL/SDL_opengl.h:2553
GL_CON_15_ATI : constant := 16#8950#; -- ../include/SDL/SDL_opengl.h:2554
GL_CON_16_ATI : constant := 16#8951#; -- ../include/SDL/SDL_opengl.h:2555
GL_CON_17_ATI : constant := 16#8952#; -- ../include/SDL/SDL_opengl.h:2556
GL_CON_18_ATI : constant := 16#8953#; -- ../include/SDL/SDL_opengl.h:2557
GL_CON_19_ATI : constant := 16#8954#; -- ../include/SDL/SDL_opengl.h:2558
GL_CON_20_ATI : constant := 16#8955#; -- ../include/SDL/SDL_opengl.h:2559
GL_CON_21_ATI : constant := 16#8956#; -- ../include/SDL/SDL_opengl.h:2560
GL_CON_22_ATI : constant := 16#8957#; -- ../include/SDL/SDL_opengl.h:2561
GL_CON_23_ATI : constant := 16#8958#; -- ../include/SDL/SDL_opengl.h:2562
GL_CON_24_ATI : constant := 16#8959#; -- ../include/SDL/SDL_opengl.h:2563
GL_CON_25_ATI : constant := 16#895A#; -- ../include/SDL/SDL_opengl.h:2564
GL_CON_26_ATI : constant := 16#895B#; -- ../include/SDL/SDL_opengl.h:2565
GL_CON_27_ATI : constant := 16#895C#; -- ../include/SDL/SDL_opengl.h:2566
GL_CON_28_ATI : constant := 16#895D#; -- ../include/SDL/SDL_opengl.h:2567
GL_CON_29_ATI : constant := 16#895E#; -- ../include/SDL/SDL_opengl.h:2568
GL_CON_30_ATI : constant := 16#895F#; -- ../include/SDL/SDL_opengl.h:2569
GL_CON_31_ATI : constant := 16#8960#; -- ../include/SDL/SDL_opengl.h:2570
GL_MOV_ATI : constant := 16#8961#; -- ../include/SDL/SDL_opengl.h:2571
GL_ADD_ATI : constant := 16#8963#; -- ../include/SDL/SDL_opengl.h:2572
GL_MUL_ATI : constant := 16#8964#; -- ../include/SDL/SDL_opengl.h:2573
GL_SUB_ATI : constant := 16#8965#; -- ../include/SDL/SDL_opengl.h:2574
GL_DOT3_ATI : constant := 16#8966#; -- ../include/SDL/SDL_opengl.h:2575
GL_DOT4_ATI : constant := 16#8967#; -- ../include/SDL/SDL_opengl.h:2576
GL_MAD_ATI : constant := 16#8968#; -- ../include/SDL/SDL_opengl.h:2577
GL_LERP_ATI : constant := 16#8969#; -- ../include/SDL/SDL_opengl.h:2578
GL_CND_ATI : constant := 16#896A#; -- ../include/SDL/SDL_opengl.h:2579
GL_CND0_ATI : constant := 16#896B#; -- ../include/SDL/SDL_opengl.h:2580
GL_DOT2_ADD_ATI : constant := 16#896C#; -- ../include/SDL/SDL_opengl.h:2581
GL_SECONDARY_INTERPOLATOR_ATI : constant := 16#896D#; -- ../include/SDL/SDL_opengl.h:2582
GL_NUM_FRAGMENT_REGISTERS_ATI : constant := 16#896E#; -- ../include/SDL/SDL_opengl.h:2583
GL_NUM_FRAGMENT_CONSTANTS_ATI : constant := 16#896F#; -- ../include/SDL/SDL_opengl.h:2584
GL_NUM_PASSES_ATI : constant := 16#8970#; -- ../include/SDL/SDL_opengl.h:2585
GL_NUM_INSTRUCTIONS_PER_PASS_ATI : constant := 16#8971#; -- ../include/SDL/SDL_opengl.h:2586
GL_NUM_INSTRUCTIONS_TOTAL_ATI : constant := 16#8972#; -- ../include/SDL/SDL_opengl.h:2587
GL_NUM_INPUT_INTERPOLATOR_COMPONENTS_ATI : constant := 16#8973#; -- ../include/SDL/SDL_opengl.h:2588
GL_NUM_LOOPBACK_COMPONENTS_ATI : constant := 16#8974#; -- ../include/SDL/SDL_opengl.h:2589
GL_COLOR_ALPHA_PAIRING_ATI : constant := 16#8975#; -- ../include/SDL/SDL_opengl.h:2590
GL_SWIZZLE_STR_ATI : constant := 16#8976#; -- ../include/SDL/SDL_opengl.h:2591
GL_SWIZZLE_STQ_ATI : constant := 16#8977#; -- ../include/SDL/SDL_opengl.h:2592
GL_SWIZZLE_STR_DR_ATI : constant := 16#8978#; -- ../include/SDL/SDL_opengl.h:2593
GL_SWIZZLE_STQ_DQ_ATI : constant := 16#8979#; -- ../include/SDL/SDL_opengl.h:2594
GL_SWIZZLE_STRQ_ATI : constant := 16#897A#; -- ../include/SDL/SDL_opengl.h:2595
GL_SWIZZLE_STRQ_DQ_ATI : constant := 16#897B#; -- ../include/SDL/SDL_opengl.h:2596
GL_RED_BIT_ATI : constant := 16#00000001#; -- ../include/SDL/SDL_opengl.h:2597
GL_GREEN_BIT_ATI : constant := 16#00000002#; -- ../include/SDL/SDL_opengl.h:2598
GL_BLUE_BIT_ATI : constant := 16#00000004#; -- ../include/SDL/SDL_opengl.h:2599
GL_2X_BIT_ATI : constant := 16#00000001#; -- ../include/SDL/SDL_opengl.h:2600
GL_4X_BIT_ATI : constant := 16#00000002#; -- ../include/SDL/SDL_opengl.h:2601
GL_8X_BIT_ATI : constant := 16#00000004#; -- ../include/SDL/SDL_opengl.h:2602
GL_HALF_BIT_ATI : constant := 16#00000008#; -- ../include/SDL/SDL_opengl.h:2603
GL_QUARTER_BIT_ATI : constant := 16#00000010#; -- ../include/SDL/SDL_opengl.h:2604
GL_EIGHTH_BIT_ATI : constant := 16#00000020#; -- ../include/SDL/SDL_opengl.h:2605
GL_SATURATE_BIT_ATI : constant := 16#00000040#; -- ../include/SDL/SDL_opengl.h:2606
GL_COMP_BIT_ATI : constant := 16#00000002#; -- ../include/SDL/SDL_opengl.h:2607
GL_NEGATE_BIT_ATI : constant := 16#00000004#; -- ../include/SDL/SDL_opengl.h:2608
GL_BIAS_BIT_ATI : constant := 16#00000008#; -- ../include/SDL/SDL_opengl.h:2609
GL_PN_TRIANGLES_ATI : constant := 16#87F0#; -- ../include/SDL/SDL_opengl.h:2613
GL_MAX_PN_TRIANGLES_TESSELATION_LEVEL_ATI : constant := 16#87F1#; -- ../include/SDL/SDL_opengl.h:2614
GL_PN_TRIANGLES_POINT_MODE_ATI : constant := 16#87F2#; -- ../include/SDL/SDL_opengl.h:2615
GL_PN_TRIANGLES_NORMAL_MODE_ATI : constant := 16#87F3#; -- ../include/SDL/SDL_opengl.h:2616
GL_PN_TRIANGLES_TESSELATION_LEVEL_ATI : constant := 16#87F4#; -- ../include/SDL/SDL_opengl.h:2617
GL_PN_TRIANGLES_POINT_MODE_LINEAR_ATI : constant := 16#87F5#; -- ../include/SDL/SDL_opengl.h:2618
GL_PN_TRIANGLES_POINT_MODE_CUBIC_ATI : constant := 16#87F6#; -- ../include/SDL/SDL_opengl.h:2619
GL_PN_TRIANGLES_NORMAL_MODE_LINEAR_ATI : constant := 16#87F7#; -- ../include/SDL/SDL_opengl.h:2620
GL_PN_TRIANGLES_NORMAL_MODE_QUADRATIC_ATI : constant := 16#87F8#; -- ../include/SDL/SDL_opengl.h:2621
GL_STATIC_ATI : constant := 16#8760#; -- ../include/SDL/SDL_opengl.h:2625
GL_DYNAMIC_ATI : constant := 16#8761#; -- ../include/SDL/SDL_opengl.h:2626
GL_PRESERVE_ATI : constant := 16#8762#; -- ../include/SDL/SDL_opengl.h:2627
GL_DISCARD_ATI : constant := 16#8763#; -- ../include/SDL/SDL_opengl.h:2628
GL_OBJECT_BUFFER_SIZE_ATI : constant := 16#8764#; -- ../include/SDL/SDL_opengl.h:2629
GL_OBJECT_BUFFER_USAGE_ATI : constant := 16#8765#; -- ../include/SDL/SDL_opengl.h:2630
GL_ARRAY_OBJECT_BUFFER_ATI : constant := 16#8766#; -- ../include/SDL/SDL_opengl.h:2631
GL_ARRAY_OBJECT_OFFSET_ATI : constant := 16#8767#; -- ../include/SDL/SDL_opengl.h:2632
GL_VERTEX_SHADER_EXT : constant := 16#8780#; -- ../include/SDL/SDL_opengl.h:2636
GL_VERTEX_SHADER_BINDING_EXT : constant := 16#8781#; -- ../include/SDL/SDL_opengl.h:2637
GL_OP_INDEX_EXT : constant := 16#8782#; -- ../include/SDL/SDL_opengl.h:2638
GL_OP_NEGATE_EXT : constant := 16#8783#; -- ../include/SDL/SDL_opengl.h:2639
GL_OP_DOT3_EXT : constant := 16#8784#; -- ../include/SDL/SDL_opengl.h:2640
GL_OP_DOT4_EXT : constant := 16#8785#; -- ../include/SDL/SDL_opengl.h:2641
GL_OP_MUL_EXT : constant := 16#8786#; -- ../include/SDL/SDL_opengl.h:2642
GL_OP_ADD_EXT : constant := 16#8787#; -- ../include/SDL/SDL_opengl.h:2643
GL_OP_MADD_EXT : constant := 16#8788#; -- ../include/SDL/SDL_opengl.h:2644
GL_OP_FRAC_EXT : constant := 16#8789#; -- ../include/SDL/SDL_opengl.h:2645
GL_OP_MAX_EXT : constant := 16#878A#; -- ../include/SDL/SDL_opengl.h:2646
GL_OP_MIN_EXT : constant := 16#878B#; -- ../include/SDL/SDL_opengl.h:2647
GL_OP_SET_GE_EXT : constant := 16#878C#; -- ../include/SDL/SDL_opengl.h:2648
GL_OP_SET_LT_EXT : constant := 16#878D#; -- ../include/SDL/SDL_opengl.h:2649
GL_OP_CLAMP_EXT : constant := 16#878E#; -- ../include/SDL/SDL_opengl.h:2650
GL_OP_FLOOR_EXT : constant := 16#878F#; -- ../include/SDL/SDL_opengl.h:2651
GL_OP_ROUND_EXT : constant := 16#8790#; -- ../include/SDL/SDL_opengl.h:2652
GL_OP_EXP_BASE_2_EXT : constant := 16#8791#; -- ../include/SDL/SDL_opengl.h:2653
GL_OP_LOG_BASE_2_EXT : constant := 16#8792#; -- ../include/SDL/SDL_opengl.h:2654
GL_OP_POWER_EXT : constant := 16#8793#; -- ../include/SDL/SDL_opengl.h:2655
GL_OP_RECIP_EXT : constant := 16#8794#; -- ../include/SDL/SDL_opengl.h:2656
GL_OP_RECIP_SQRT_EXT : constant := 16#8795#; -- ../include/SDL/SDL_opengl.h:2657
GL_OP_SUB_EXT : constant := 16#8796#; -- ../include/SDL/SDL_opengl.h:2658
GL_OP_CROSS_PRODUCT_EXT : constant := 16#8797#; -- ../include/SDL/SDL_opengl.h:2659
GL_OP_MULTIPLY_MATRIX_EXT : constant := 16#8798#; -- ../include/SDL/SDL_opengl.h:2660
GL_OP_MOV_EXT : constant := 16#8799#; -- ../include/SDL/SDL_opengl.h:2661
GL_OUTPUT_VERTEX_EXT : constant := 16#879A#; -- ../include/SDL/SDL_opengl.h:2662
GL_OUTPUT_COLOR0_EXT : constant := 16#879B#; -- ../include/SDL/SDL_opengl.h:2663
GL_OUTPUT_COLOR1_EXT : constant := 16#879C#; -- ../include/SDL/SDL_opengl.h:2664
GL_OUTPUT_TEXTURE_COORD0_EXT : constant := 16#879D#; -- ../include/SDL/SDL_opengl.h:2665
GL_OUTPUT_TEXTURE_COORD1_EXT : constant := 16#879E#; -- ../include/SDL/SDL_opengl.h:2666
GL_OUTPUT_TEXTURE_COORD2_EXT : constant := 16#879F#; -- ../include/SDL/SDL_opengl.h:2667
GL_OUTPUT_TEXTURE_COORD3_EXT : constant := 16#87A0#; -- ../include/SDL/SDL_opengl.h:2668
GL_OUTPUT_TEXTURE_COORD4_EXT : constant := 16#87A1#; -- ../include/SDL/SDL_opengl.h:2669
GL_OUTPUT_TEXTURE_COORD5_EXT : constant := 16#87A2#; -- ../include/SDL/SDL_opengl.h:2670
GL_OUTPUT_TEXTURE_COORD6_EXT : constant := 16#87A3#; -- ../include/SDL/SDL_opengl.h:2671
GL_OUTPUT_TEXTURE_COORD7_EXT : constant := 16#87A4#; -- ../include/SDL/SDL_opengl.h:2672
GL_OUTPUT_TEXTURE_COORD8_EXT : constant := 16#87A5#; -- ../include/SDL/SDL_opengl.h:2673
GL_OUTPUT_TEXTURE_COORD9_EXT : constant := 16#87A6#; -- ../include/SDL/SDL_opengl.h:2674
GL_OUTPUT_TEXTURE_COORD10_EXT : constant := 16#87A7#; -- ../include/SDL/SDL_opengl.h:2675
GL_OUTPUT_TEXTURE_COORD11_EXT : constant := 16#87A8#; -- ../include/SDL/SDL_opengl.h:2676
GL_OUTPUT_TEXTURE_COORD12_EXT : constant := 16#87A9#; -- ../include/SDL/SDL_opengl.h:2677
GL_OUTPUT_TEXTURE_COORD13_EXT : constant := 16#87AA#; -- ../include/SDL/SDL_opengl.h:2678
GL_OUTPUT_TEXTURE_COORD14_EXT : constant := 16#87AB#; -- ../include/SDL/SDL_opengl.h:2679
GL_OUTPUT_TEXTURE_COORD15_EXT : constant := 16#87AC#; -- ../include/SDL/SDL_opengl.h:2680
GL_OUTPUT_TEXTURE_COORD16_EXT : constant := 16#87AD#; -- ../include/SDL/SDL_opengl.h:2681
GL_OUTPUT_TEXTURE_COORD17_EXT : constant := 16#87AE#; -- ../include/SDL/SDL_opengl.h:2682
GL_OUTPUT_TEXTURE_COORD18_EXT : constant := 16#87AF#; -- ../include/SDL/SDL_opengl.h:2683
GL_OUTPUT_TEXTURE_COORD19_EXT : constant := 16#87B0#; -- ../include/SDL/SDL_opengl.h:2684
GL_OUTPUT_TEXTURE_COORD20_EXT : constant := 16#87B1#; -- ../include/SDL/SDL_opengl.h:2685
GL_OUTPUT_TEXTURE_COORD21_EXT : constant := 16#87B2#; -- ../include/SDL/SDL_opengl.h:2686
GL_OUTPUT_TEXTURE_COORD22_EXT : constant := 16#87B3#; -- ../include/SDL/SDL_opengl.h:2687
GL_OUTPUT_TEXTURE_COORD23_EXT : constant := 16#87B4#; -- ../include/SDL/SDL_opengl.h:2688
GL_OUTPUT_TEXTURE_COORD24_EXT : constant := 16#87B5#; -- ../include/SDL/SDL_opengl.h:2689
GL_OUTPUT_TEXTURE_COORD25_EXT : constant := 16#87B6#; -- ../include/SDL/SDL_opengl.h:2690
GL_OUTPUT_TEXTURE_COORD26_EXT : constant := 16#87B7#; -- ../include/SDL/SDL_opengl.h:2691
GL_OUTPUT_TEXTURE_COORD27_EXT : constant := 16#87B8#; -- ../include/SDL/SDL_opengl.h:2692
GL_OUTPUT_TEXTURE_COORD28_EXT : constant := 16#87B9#; -- ../include/SDL/SDL_opengl.h:2693
GL_OUTPUT_TEXTURE_COORD29_EXT : constant := 16#87BA#; -- ../include/SDL/SDL_opengl.h:2694
GL_OUTPUT_TEXTURE_COORD30_EXT : constant := 16#87BB#; -- ../include/SDL/SDL_opengl.h:2695
GL_OUTPUT_TEXTURE_COORD31_EXT : constant := 16#87BC#; -- ../include/SDL/SDL_opengl.h:2696
GL_OUTPUT_FOG_EXT : constant := 16#87BD#; -- ../include/SDL/SDL_opengl.h:2697
GL_SCALAR_EXT : constant := 16#87BE#; -- ../include/SDL/SDL_opengl.h:2698
GL_VECTOR_EXT : constant := 16#87BF#; -- ../include/SDL/SDL_opengl.h:2699
GL_MATRIX_EXT : constant := 16#87C0#; -- ../include/SDL/SDL_opengl.h:2700
GL_VARIANT_EXT : constant := 16#87C1#; -- ../include/SDL/SDL_opengl.h:2701
GL_INVARIANT_EXT : constant := 16#87C2#; -- ../include/SDL/SDL_opengl.h:2702
GL_LOCAL_CONSTANT_EXT : constant := 16#87C3#; -- ../include/SDL/SDL_opengl.h:2703
GL_LOCAL_EXT : constant := 16#87C4#; -- ../include/SDL/SDL_opengl.h:2704
GL_MAX_VERTEX_SHADER_INSTRUCTIONS_EXT : constant := 16#87C5#; -- ../include/SDL/SDL_opengl.h:2705
GL_MAX_VERTEX_SHADER_VARIANTS_EXT : constant := 16#87C6#; -- ../include/SDL/SDL_opengl.h:2706
GL_MAX_VERTEX_SHADER_INVARIANTS_EXT : constant := 16#87C7#; -- ../include/SDL/SDL_opengl.h:2707
GL_MAX_VERTEX_SHADER_LOCAL_CONSTANTS_EXT : constant := 16#87C8#; -- ../include/SDL/SDL_opengl.h:2708
GL_MAX_VERTEX_SHADER_LOCALS_EXT : constant := 16#87C9#; -- ../include/SDL/SDL_opengl.h:2709
GL_MAX_OPTIMIZED_VERTEX_SHADER_INSTRUCTIONS_EXT : constant := 16#87CA#; -- ../include/SDL/SDL_opengl.h:2710
GL_MAX_OPTIMIZED_VERTEX_SHADER_VARIANTS_EXT : constant := 16#87CB#; -- ../include/SDL/SDL_opengl.h:2711
GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCAL_CONSTANTS_EXT : constant := 16#87CC#; -- ../include/SDL/SDL_opengl.h:2712
GL_MAX_OPTIMIZED_VERTEX_SHADER_INVARIANTS_EXT : constant := 16#87CD#; -- ../include/SDL/SDL_opengl.h:2713
GL_MAX_OPTIMIZED_VERTEX_SHADER_LOCALS_EXT : constant := 16#87CE#; -- ../include/SDL/SDL_opengl.h:2714
GL_VERTEX_SHADER_INSTRUCTIONS_EXT : constant := 16#87CF#; -- ../include/SDL/SDL_opengl.h:2715
GL_VERTEX_SHADER_VARIANTS_EXT : constant := 16#87D0#; -- ../include/SDL/SDL_opengl.h:2716
GL_VERTEX_SHADER_INVARIANTS_EXT : constant := 16#87D1#; -- ../include/SDL/SDL_opengl.h:2717
GL_VERTEX_SHADER_LOCAL_CONSTANTS_EXT : constant := 16#87D2#; -- ../include/SDL/SDL_opengl.h:2718
GL_VERTEX_SHADER_LOCALS_EXT : constant := 16#87D3#; -- ../include/SDL/SDL_opengl.h:2719
GL_VERTEX_SHADER_OPTIMIZED_EXT : constant := 16#87D4#; -- ../include/SDL/SDL_opengl.h:2720
GL_X_EXT : constant := 16#87D5#; -- ../include/SDL/SDL_opengl.h:2721
GL_Y_EXT : constant := 16#87D6#; -- ../include/SDL/SDL_opengl.h:2722
GL_Z_EXT : constant := 16#87D7#; -- ../include/SDL/SDL_opengl.h:2723
GL_W_EXT : constant := 16#87D8#; -- ../include/SDL/SDL_opengl.h:2724
GL_NEGATIVE_X_EXT : constant := 16#87D9#; -- ../include/SDL/SDL_opengl.h:2725
GL_NEGATIVE_Y_EXT : constant := 16#87DA#; -- ../include/SDL/SDL_opengl.h:2726
GL_NEGATIVE_Z_EXT : constant := 16#87DB#; -- ../include/SDL/SDL_opengl.h:2727
GL_NEGATIVE_W_EXT : constant := 16#87DC#; -- ../include/SDL/SDL_opengl.h:2728
GL_ZERO_EXT : constant := 16#87DD#; -- ../include/SDL/SDL_opengl.h:2729
GL_ONE_EXT : constant := 16#87DE#; -- ../include/SDL/SDL_opengl.h:2730
GL_NEGATIVE_ONE_EXT : constant := 16#87DF#; -- ../include/SDL/SDL_opengl.h:2731
GL_NORMALIZED_RANGE_EXT : constant := 16#87E0#; -- ../include/SDL/SDL_opengl.h:2732
GL_FULL_RANGE_EXT : constant := 16#87E1#; -- ../include/SDL/SDL_opengl.h:2733
GL_CURRENT_VERTEX_EXT : constant := 16#87E2#; -- ../include/SDL/SDL_opengl.h:2734
GL_MVP_MATRIX_EXT : constant := 16#87E3#; -- ../include/SDL/SDL_opengl.h:2735
GL_VARIANT_VALUE_EXT : constant := 16#87E4#; -- ../include/SDL/SDL_opengl.h:2736
GL_VARIANT_DATATYPE_EXT : constant := 16#87E5#; -- ../include/SDL/SDL_opengl.h:2737
GL_VARIANT_ARRAY_STRIDE_EXT : constant := 16#87E6#; -- ../include/SDL/SDL_opengl.h:2738
GL_VARIANT_ARRAY_TYPE_EXT : constant := 16#87E7#; -- ../include/SDL/SDL_opengl.h:2739
GL_VARIANT_ARRAY_EXT : constant := 16#87E8#; -- ../include/SDL/SDL_opengl.h:2740
GL_VARIANT_ARRAY_POINTER_EXT : constant := 16#87E9#; -- ../include/SDL/SDL_opengl.h:2741
GL_INVARIANT_VALUE_EXT : constant := 16#87EA#; -- ../include/SDL/SDL_opengl.h:2742
GL_INVARIANT_DATATYPE_EXT : constant := 16#87EB#; -- ../include/SDL/SDL_opengl.h:2743
GL_LOCAL_CONSTANT_VALUE_EXT : constant := 16#87EC#; -- ../include/SDL/SDL_opengl.h:2744
GL_LOCAL_CONSTANT_DATATYPE_EXT : constant := 16#87ED#; -- ../include/SDL/SDL_opengl.h:2745
GL_MAX_VERTEX_STREAMS_ATI : constant := 16#876B#; -- ../include/SDL/SDL_opengl.h:2749
GL_VERTEX_STREAM0_ATI : constant := 16#876C#; -- ../include/SDL/SDL_opengl.h:2750
GL_VERTEX_STREAM1_ATI : constant := 16#876D#; -- ../include/SDL/SDL_opengl.h:2751
GL_VERTEX_STREAM2_ATI : constant := 16#876E#; -- ../include/SDL/SDL_opengl.h:2752
GL_VERTEX_STREAM3_ATI : constant := 16#876F#; -- ../include/SDL/SDL_opengl.h:2753
GL_VERTEX_STREAM4_ATI : constant := 16#8770#; -- ../include/SDL/SDL_opengl.h:2754
GL_VERTEX_STREAM5_ATI : constant := 16#8771#; -- ../include/SDL/SDL_opengl.h:2755
GL_VERTEX_STREAM6_ATI : constant := 16#8772#; -- ../include/SDL/SDL_opengl.h:2756
GL_VERTEX_STREAM7_ATI : constant := 16#8773#; -- ../include/SDL/SDL_opengl.h:2757
GL_VERTEX_SOURCE_ATI : constant := 16#8774#; -- ../include/SDL/SDL_opengl.h:2758
GL_ELEMENT_ARRAY_ATI : constant := 16#8768#; -- ../include/SDL/SDL_opengl.h:2762
GL_ELEMENT_ARRAY_TYPE_ATI : constant := 16#8769#; -- ../include/SDL/SDL_opengl.h:2763
GL_ELEMENT_ARRAY_POINTER_ATI : constant := 16#876A#; -- ../include/SDL/SDL_opengl.h:2764
GL_QUAD_MESH_SUN : constant := 16#8614#; -- ../include/SDL/SDL_opengl.h:2768
GL_TRIANGLE_MESH_SUN : constant := 16#8615#; -- ../include/SDL/SDL_opengl.h:2769
GL_SLICE_ACCUM_SUN : constant := 16#85CC#; -- ../include/SDL/SDL_opengl.h:2773
GL_MULTISAMPLE_FILTER_HINT_NV : constant := 16#8534#; -- ../include/SDL/SDL_opengl.h:2777
GL_DEPTH_CLAMP_NV : constant := 16#864F#; -- ../include/SDL/SDL_opengl.h:2781
GL_PIXEL_COUNTER_BITS_NV : constant := 16#8864#; -- ../include/SDL/SDL_opengl.h:2785
GL_CURRENT_OCCLUSION_QUERY_ID_NV : constant := 16#8865#; -- ../include/SDL/SDL_opengl.h:2786
GL_PIXEL_COUNT_NV : constant := 16#8866#; -- ../include/SDL/SDL_opengl.h:2787
GL_PIXEL_COUNT_AVAILABLE_NV : constant := 16#8867#; -- ../include/SDL/SDL_opengl.h:2788
GL_POINT_SPRITE_NV : constant := 16#8861#; -- ../include/SDL/SDL_opengl.h:2792
GL_COORD_REPLACE_NV : constant := 16#8862#; -- ../include/SDL/SDL_opengl.h:2793
GL_POINT_SPRITE_R_MODE_NV : constant := 16#8863#; -- ../include/SDL/SDL_opengl.h:2794
GL_OFFSET_PROJECTIVE_TEXTURE_2D_NV : constant := 16#8850#; -- ../include/SDL/SDL_opengl.h:2798
GL_OFFSET_PROJECTIVE_TEXTURE_2D_SCALE_NV : constant := 16#8851#; -- ../include/SDL/SDL_opengl.h:2799
GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_NV : constant := 16#8852#; -- ../include/SDL/SDL_opengl.h:2800
GL_OFFSET_PROJECTIVE_TEXTURE_RECTANGLE_SCALE_NV : constant := 16#8853#; -- ../include/SDL/SDL_opengl.h:2801
GL_OFFSET_HILO_TEXTURE_2D_NV : constant := 16#8854#; -- ../include/SDL/SDL_opengl.h:2802
GL_OFFSET_HILO_TEXTURE_RECTANGLE_NV : constant := 16#8855#; -- ../include/SDL/SDL_opengl.h:2803
GL_OFFSET_HILO_PROJECTIVE_TEXTURE_2D_NV : constant := 16#8856#; -- ../include/SDL/SDL_opengl.h:2804
GL_OFFSET_HILO_PROJECTIVE_TEXTURE_RECTANGLE_NV : constant := 16#8857#; -- ../include/SDL/SDL_opengl.h:2805
GL_DEPENDENT_HILO_TEXTURE_2D_NV : constant := 16#8858#; -- ../include/SDL/SDL_opengl.h:2806
GL_DEPENDENT_RGB_TEXTURE_3D_NV : constant := 16#8859#; -- ../include/SDL/SDL_opengl.h:2807
GL_DEPENDENT_RGB_TEXTURE_CUBE_MAP_NV : constant := 16#885A#; -- ../include/SDL/SDL_opengl.h:2808
GL_DOT_PRODUCT_PASS_THROUGH_NV : constant := 16#885B#; -- ../include/SDL/SDL_opengl.h:2809
GL_DOT_PRODUCT_TEXTURE_1D_NV : constant := 16#885C#; -- ../include/SDL/SDL_opengl.h:2810
GL_DOT_PRODUCT_AFFINE_DEPTH_REPLACE_NV : constant := 16#885D#; -- ../include/SDL/SDL_opengl.h:2811
GL_HILO8_NV : constant := 16#885E#; -- ../include/SDL/SDL_opengl.h:2812
GL_SIGNED_HILO8_NV : constant := 16#885F#; -- ../include/SDL/SDL_opengl.h:2813
GL_FORCE_BLUE_TO_ONE_NV : constant := 16#8860#; -- ../include/SDL/SDL_opengl.h:2814
GL_STENCIL_TEST_TWO_SIDE_EXT : constant := 16#8910#; -- ../include/SDL/SDL_opengl.h:2824
GL_ACTIVE_STENCIL_FACE_EXT : constant := 16#8911#; -- ../include/SDL/SDL_opengl.h:2825
GL_TEXT_FRAGMENT_SHADER_ATI : constant := 16#8200#; -- ../include/SDL/SDL_opengl.h:2829
GL_UNPACK_CLIENT_STORAGE_APPLE : constant := 16#85B2#; -- ../include/SDL/SDL_opengl.h:2833
GL_ELEMENT_ARRAY_APPLE : constant := 16#8768#; -- ../include/SDL/SDL_opengl.h:2837
GL_ELEMENT_ARRAY_TYPE_APPLE : constant := 16#8769#; -- ../include/SDL/SDL_opengl.h:2838
GL_ELEMENT_ARRAY_POINTER_APPLE : constant := 16#876A#; -- ../include/SDL/SDL_opengl.h:2839
GL_DRAW_PIXELS_APPLE : constant := 16#8A0A#; -- ../include/SDL/SDL_opengl.h:2843
GL_FENCE_APPLE : constant := 16#8A0B#; -- ../include/SDL/SDL_opengl.h:2844
GL_VERTEX_ARRAY_BINDING_APPLE : constant := 16#85B5#; -- ../include/SDL/SDL_opengl.h:2848
GL_VERTEX_ARRAY_RANGE_APPLE : constant := 16#851D#; -- ../include/SDL/SDL_opengl.h:2852
GL_VERTEX_ARRAY_RANGE_LENGTH_APPLE : constant := 16#851E#; -- ../include/SDL/SDL_opengl.h:2853
GL_VERTEX_ARRAY_STORAGE_HINT_APPLE : constant := 16#851F#; -- ../include/SDL/SDL_opengl.h:2854
GL_VERTEX_ARRAY_RANGE_POINTER_APPLE : constant := 16#8521#; -- ../include/SDL/SDL_opengl.h:2855
GL_STORAGE_CACHED_APPLE : constant := 16#85BE#; -- ../include/SDL/SDL_opengl.h:2856
GL_STORAGE_SHARED_APPLE : constant := 16#85BF#; -- ../include/SDL/SDL_opengl.h:2857
GL_YCBCR_422_APPLE : constant := 16#85B9#; -- ../include/SDL/SDL_opengl.h:2861
GL_UNSIGNED_SHORT_8_8_APPLE : constant := 16#85BA#; -- ../include/SDL/SDL_opengl.h:2862
GL_UNSIGNED_SHORT_8_8_REV_APPLE : constant := 16#85BB#; -- ../include/SDL/SDL_opengl.h:2863
GL_RGB_S3TC : constant := 16#83A0#; -- ../include/SDL/SDL_opengl.h:2867
GL_RGB4_S3TC : constant := 16#83A1#; -- ../include/SDL/SDL_opengl.h:2868
GL_RGBA_S3TC : constant := 16#83A2#; -- ../include/SDL/SDL_opengl.h:2869
GL_RGBA4_S3TC : constant := 16#83A3#; -- ../include/SDL/SDL_opengl.h:2870
GL_MAX_DRAW_BUFFERS_ATI : constant := 16#8824#; -- ../include/SDL/SDL_opengl.h:2874
GL_DRAW_BUFFER0_ATI : constant := 16#8825#; -- ../include/SDL/SDL_opengl.h:2875
GL_DRAW_BUFFER1_ATI : constant := 16#8826#; -- ../include/SDL/SDL_opengl.h:2876
GL_DRAW_BUFFER2_ATI : constant := 16#8827#; -- ../include/SDL/SDL_opengl.h:2877
GL_DRAW_BUFFER3_ATI : constant := 16#8828#; -- ../include/SDL/SDL_opengl.h:2878
GL_DRAW_BUFFER4_ATI : constant := 16#8829#; -- ../include/SDL/SDL_opengl.h:2879
GL_DRAW_BUFFER5_ATI : constant := 16#882A#; -- ../include/SDL/SDL_opengl.h:2880
GL_DRAW_BUFFER6_ATI : constant := 16#882B#; -- ../include/SDL/SDL_opengl.h:2881
GL_DRAW_BUFFER7_ATI : constant := 16#882C#; -- ../include/SDL/SDL_opengl.h:2882
GL_DRAW_BUFFER8_ATI : constant := 16#882D#; -- ../include/SDL/SDL_opengl.h:2883
GL_DRAW_BUFFER9_ATI : constant := 16#882E#; -- ../include/SDL/SDL_opengl.h:2884
GL_DRAW_BUFFER10_ATI : constant := 16#882F#; -- ../include/SDL/SDL_opengl.h:2885
GL_DRAW_BUFFER11_ATI : constant := 16#8830#; -- ../include/SDL/SDL_opengl.h:2886
GL_DRAW_BUFFER12_ATI : constant := 16#8831#; -- ../include/SDL/SDL_opengl.h:2887
GL_DRAW_BUFFER13_ATI : constant := 16#8832#; -- ../include/SDL/SDL_opengl.h:2888
GL_DRAW_BUFFER14_ATI : constant := 16#8833#; -- ../include/SDL/SDL_opengl.h:2889
GL_DRAW_BUFFER15_ATI : constant := 16#8834#; -- ../include/SDL/SDL_opengl.h:2890
GL_TYPE_RGBA_FLOAT_ATI : constant := 16#8820#; -- ../include/SDL/SDL_opengl.h:2894
GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI : constant := 16#8835#; -- ../include/SDL/SDL_opengl.h:2895
GL_MODULATE_ADD_ATI : constant := 16#8744#; -- ../include/SDL/SDL_opengl.h:2899
GL_MODULATE_SIGNED_ADD_ATI : constant := 16#8745#; -- ../include/SDL/SDL_opengl.h:2900
GL_MODULATE_SUBTRACT_ATI : constant := 16#8746#; -- ../include/SDL/SDL_opengl.h:2901
GL_RGBA_FLOAT32_ATI : constant := 16#8814#; -- ../include/SDL/SDL_opengl.h:2905
GL_RGB_FLOAT32_ATI : constant := 16#8815#; -- ../include/SDL/SDL_opengl.h:2906
GL_ALPHA_FLOAT32_ATI : constant := 16#8816#; -- ../include/SDL/SDL_opengl.h:2907
GL_INTENSITY_FLOAT32_ATI : constant := 16#8817#; -- ../include/SDL/SDL_opengl.h:2908
GL_LUMINANCE_FLOAT32_ATI : constant := 16#8818#; -- ../include/SDL/SDL_opengl.h:2909
GL_LUMINANCE_ALPHA_FLOAT32_ATI : constant := 16#8819#; -- ../include/SDL/SDL_opengl.h:2910
GL_RGBA_FLOAT16_ATI : constant := 16#881A#; -- ../include/SDL/SDL_opengl.h:2911
GL_RGB_FLOAT16_ATI : constant := 16#881B#; -- ../include/SDL/SDL_opengl.h:2912
GL_ALPHA_FLOAT16_ATI : constant := 16#881C#; -- ../include/SDL/SDL_opengl.h:2913
GL_INTENSITY_FLOAT16_ATI : constant := 16#881D#; -- ../include/SDL/SDL_opengl.h:2914
GL_LUMINANCE_FLOAT16_ATI : constant := 16#881E#; -- ../include/SDL/SDL_opengl.h:2915
GL_LUMINANCE_ALPHA_FLOAT16_ATI : constant := 16#881F#; -- ../include/SDL/SDL_opengl.h:2916
GL_FLOAT_R_NV : constant := 16#8880#; -- ../include/SDL/SDL_opengl.h:2920
GL_FLOAT_RG_NV : constant := 16#8881#; -- ../include/SDL/SDL_opengl.h:2921
GL_FLOAT_RGB_NV : constant := 16#8882#; -- ../include/SDL/SDL_opengl.h:2922
GL_FLOAT_RGBA_NV : constant := 16#8883#; -- ../include/SDL/SDL_opengl.h:2923
GL_FLOAT_R16_NV : constant := 16#8884#; -- ../include/SDL/SDL_opengl.h:2924
GL_FLOAT_R32_NV : constant := 16#8885#; -- ../include/SDL/SDL_opengl.h:2925
GL_FLOAT_RG16_NV : constant := 16#8886#; -- ../include/SDL/SDL_opengl.h:2926
GL_FLOAT_RG32_NV : constant := 16#8887#; -- ../include/SDL/SDL_opengl.h:2927
GL_FLOAT_RGB16_NV : constant := 16#8888#; -- ../include/SDL/SDL_opengl.h:2928
GL_FLOAT_RGB32_NV : constant := 16#8889#; -- ../include/SDL/SDL_opengl.h:2929
GL_FLOAT_RGBA16_NV : constant := 16#888A#; -- ../include/SDL/SDL_opengl.h:2930
GL_FLOAT_RGBA32_NV : constant := 16#888B#; -- ../include/SDL/SDL_opengl.h:2931
GL_TEXTURE_FLOAT_COMPONENTS_NV : constant := 16#888C#; -- ../include/SDL/SDL_opengl.h:2932
GL_FLOAT_CLEAR_COLOR_VALUE_NV : constant := 16#888D#; -- ../include/SDL/SDL_opengl.h:2933
GL_FLOAT_RGBA_MODE_NV : constant := 16#888E#; -- ../include/SDL/SDL_opengl.h:2934
GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV : constant := 16#8868#; -- ../include/SDL/SDL_opengl.h:2938
GL_FRAGMENT_PROGRAM_NV : constant := 16#8870#; -- ../include/SDL/SDL_opengl.h:2939
GL_MAX_TEXTURE_COORDS_NV : constant := 16#8871#; -- ../include/SDL/SDL_opengl.h:2940
GL_MAX_TEXTURE_IMAGE_UNITS_NV : constant := 16#8872#; -- ../include/SDL/SDL_opengl.h:2941
GL_FRAGMENT_PROGRAM_BINDING_NV : constant := 16#8873#; -- ../include/SDL/SDL_opengl.h:2942
GL_PROGRAM_ERROR_STRING_NV : constant := 16#8874#; -- ../include/SDL/SDL_opengl.h:2943
GL_HALF_FLOAT_NV : constant := 16#140B#; -- ../include/SDL/SDL_opengl.h:2947
GL_WRITE_PIXEL_DATA_RANGE_NV : constant := 16#8878#; -- ../include/SDL/SDL_opengl.h:2951
GL_READ_PIXEL_DATA_RANGE_NV : constant := 16#8879#; -- ../include/SDL/SDL_opengl.h:2952
GL_WRITE_PIXEL_DATA_RANGE_LENGTH_NV : constant := 16#887A#; -- ../include/SDL/SDL_opengl.h:2953
GL_READ_PIXEL_DATA_RANGE_LENGTH_NV : constant := 16#887B#; -- ../include/SDL/SDL_opengl.h:2954
GL_WRITE_PIXEL_DATA_RANGE_POINTER_NV : constant := 16#887C#; -- ../include/SDL/SDL_opengl.h:2955
GL_READ_PIXEL_DATA_RANGE_POINTER_NV : constant := 16#887D#; -- ../include/SDL/SDL_opengl.h:2956
GL_PRIMITIVE_RESTART_NV : constant := 16#8558#; -- ../include/SDL/SDL_opengl.h:2960
GL_PRIMITIVE_RESTART_INDEX_NV : constant := 16#8559#; -- ../include/SDL/SDL_opengl.h:2961
GL_TEXTURE_UNSIGNED_REMAP_MODE_NV : constant := 16#888F#; -- ../include/SDL/SDL_opengl.h:2965
GL_STENCIL_BACK_FUNC_ATI : constant := 16#8800#; -- ../include/SDL/SDL_opengl.h:2975
GL_STENCIL_BACK_FAIL_ATI : constant := 16#8801#; -- ../include/SDL/SDL_opengl.h:2976
GL_STENCIL_BACK_PASS_DEPTH_FAIL_ATI : constant := 16#8802#; -- ../include/SDL/SDL_opengl.h:2977
GL_STENCIL_BACK_PASS_DEPTH_PASS_ATI : constant := 16#8803#; -- ../include/SDL/SDL_opengl.h:2978
GL_IMPLEMENTATION_COLOR_READ_TYPE_OES : constant := 16#8B9A#; -- ../include/SDL/SDL_opengl.h:2985
GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES : constant := 16#8B9B#; -- ../include/SDL/SDL_opengl.h:2986
GL_DEPTH_BOUNDS_TEST_EXT : constant := 16#8890#; -- ../include/SDL/SDL_opengl.h:2990
GL_DEPTH_BOUNDS_EXT : constant := 16#8891#; -- ../include/SDL/SDL_opengl.h:2991
GL_MIRROR_CLAMP_EXT : constant := 16#8742#; -- ../include/SDL/SDL_opengl.h:2995
GL_MIRROR_CLAMP_TO_EDGE_EXT : constant := 16#8743#; -- ../include/SDL/SDL_opengl.h:2996
GL_MIRROR_CLAMP_TO_BORDER_EXT : constant := 16#8912#; -- ../include/SDL/SDL_opengl.h:2997
-- unsupported macro: GL_BLEND_EQUATION_RGB_EXT GL_BLEND_EQUATION
GL_BLEND_EQUATION_ALPHA_EXT : constant := 16#883D#; -- ../include/SDL/SDL_opengl.h:3002
GL_PACK_INVERT_MESA : constant := 16#8758#; -- ../include/SDL/SDL_opengl.h:3006
GL_UNSIGNED_SHORT_8_8_MESA : constant := 16#85BA#; -- ../include/SDL/SDL_opengl.h:3010
GL_UNSIGNED_SHORT_8_8_REV_MESA : constant := 16#85BB#; -- ../include/SDL/SDL_opengl.h:3011
GL_YCBCR_MESA : constant := 16#8757#; -- ../include/SDL/SDL_opengl.h:3012
GL_PIXEL_PACK_BUFFER_EXT : constant := 16#88EB#; -- ../include/SDL/SDL_opengl.h:3016
GL_PIXEL_UNPACK_BUFFER_EXT : constant := 16#88EC#; -- ../include/SDL/SDL_opengl.h:3017
GL_PIXEL_PACK_BUFFER_BINDING_EXT : constant := 16#88ED#; -- ../include/SDL/SDL_opengl.h:3018
GL_PIXEL_UNPACK_BUFFER_BINDING_EXT : constant := 16#88EF#; -- ../include/SDL/SDL_opengl.h:3019
GL_MAX_PROGRAM_EXEC_INSTRUCTIONS_NV : constant := 16#88F4#; -- ../include/SDL/SDL_opengl.h:3026
GL_MAX_PROGRAM_CALL_DEPTH_NV : constant := 16#88F5#; -- ../include/SDL/SDL_opengl.h:3027
GL_MAX_PROGRAM_IF_DEPTH_NV : constant := 16#88F6#; -- ../include/SDL/SDL_opengl.h:3028
GL_MAX_PROGRAM_LOOP_DEPTH_NV : constant := 16#88F7#; -- ../include/SDL/SDL_opengl.h:3029
GL_MAX_PROGRAM_LOOP_COUNT_NV : constant := 16#88F8#; -- ../include/SDL/SDL_opengl.h:3030
GL_INVALID_FRAMEBUFFER_OPERATION_EXT : constant := 16#0506#; -- ../include/SDL/SDL_opengl.h:3043
GL_MAX_RENDERBUFFER_SIZE_EXT : constant := 16#84E8#; -- ../include/SDL/SDL_opengl.h:3044
GL_FRAMEBUFFER_BINDING_EXT : constant := 16#8CA6#; -- ../include/SDL/SDL_opengl.h:3045
GL_RENDERBUFFER_BINDING_EXT : constant := 16#8CA7#; -- ../include/SDL/SDL_opengl.h:3046
GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_EXT : constant := 16#8CD0#; -- ../include/SDL/SDL_opengl.h:3047
GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_EXT : constant := 16#8CD1#; -- ../include/SDL/SDL_opengl.h:3048
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_EXT : constant := 16#8CD2#; -- ../include/SDL/SDL_opengl.h:3049
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_EXT : constant := 16#8CD3#; -- ../include/SDL/SDL_opengl.h:3050
GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT : constant := 16#8CD4#; -- ../include/SDL/SDL_opengl.h:3051
GL_FRAMEBUFFER_COMPLETE_EXT : constant := 16#8CD5#; -- ../include/SDL/SDL_opengl.h:3052
GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_EXT : constant := 16#8CD6#; -- ../include/SDL/SDL_opengl.h:3053
GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_EXT : constant := 16#8CD7#; -- ../include/SDL/SDL_opengl.h:3054
GL_FRAMEBUFFER_INCOMPLETE_DUPLICATE_ATTACHMENT_EXT : constant := 16#8CD8#; -- ../include/SDL/SDL_opengl.h:3055
GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT : constant := 16#8CD9#; -- ../include/SDL/SDL_opengl.h:3056
GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT : constant := 16#8CDA#; -- ../include/SDL/SDL_opengl.h:3057
GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT : constant := 16#8CDB#; -- ../include/SDL/SDL_opengl.h:3058
GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT : constant := 16#8CDC#; -- ../include/SDL/SDL_opengl.h:3059
GL_FRAMEBUFFER_UNSUPPORTED_EXT : constant := 16#8CDD#; -- ../include/SDL/SDL_opengl.h:3060
GL_MAX_COLOR_ATTACHMENTS_EXT : constant := 16#8CDF#; -- ../include/SDL/SDL_opengl.h:3061
GL_COLOR_ATTACHMENT0_EXT : constant := 16#8CE0#; -- ../include/SDL/SDL_opengl.h:3062
GL_COLOR_ATTACHMENT1_EXT : constant := 16#8CE1#; -- ../include/SDL/SDL_opengl.h:3063
GL_COLOR_ATTACHMENT2_EXT : constant := 16#8CE2#; -- ../include/SDL/SDL_opengl.h:3064
GL_COLOR_ATTACHMENT3_EXT : constant := 16#8CE3#; -- ../include/SDL/SDL_opengl.h:3065
GL_COLOR_ATTACHMENT4_EXT : constant := 16#8CE4#; -- ../include/SDL/SDL_opengl.h:3066
GL_COLOR_ATTACHMENT5_EXT : constant := 16#8CE5#; -- ../include/SDL/SDL_opengl.h:3067
GL_COLOR_ATTACHMENT6_EXT : constant := 16#8CE6#; -- ../include/SDL/SDL_opengl.h:3068
GL_COLOR_ATTACHMENT7_EXT : constant := 16#8CE7#; -- ../include/SDL/SDL_opengl.h:3069
GL_COLOR_ATTACHMENT8_EXT : constant := 16#8CE8#; -- ../include/SDL/SDL_opengl.h:3070
GL_COLOR_ATTACHMENT9_EXT : constant := 16#8CE9#; -- ../include/SDL/SDL_opengl.h:3071
GL_COLOR_ATTACHMENT10_EXT : constant := 16#8CEA#; -- ../include/SDL/SDL_opengl.h:3072
GL_COLOR_ATTACHMENT11_EXT : constant := 16#8CEB#; -- ../include/SDL/SDL_opengl.h:3073
GL_COLOR_ATTACHMENT12_EXT : constant := 16#8CEC#; -- ../include/SDL/SDL_opengl.h:3074
GL_COLOR_ATTACHMENT13_EXT : constant := 16#8CED#; -- ../include/SDL/SDL_opengl.h:3075
GL_COLOR_ATTACHMENT14_EXT : constant := 16#8CEE#; -- ../include/SDL/SDL_opengl.h:3076
GL_COLOR_ATTACHMENT15_EXT : constant := 16#8CEF#; -- ../include/SDL/SDL_opengl.h:3077
GL_DEPTH_ATTACHMENT_EXT : constant := 16#8D00#; -- ../include/SDL/SDL_opengl.h:3078
GL_STENCIL_ATTACHMENT_EXT : constant := 16#8D20#; -- ../include/SDL/SDL_opengl.h:3079
GL_FRAMEBUFFER_EXT : constant := 16#8D40#; -- ../include/SDL/SDL_opengl.h:3080
GL_RENDERBUFFER_EXT : constant := 16#8D41#; -- ../include/SDL/SDL_opengl.h:3081
GL_RENDERBUFFER_WIDTH_EXT : constant := 16#8D42#; -- ../include/SDL/SDL_opengl.h:3082
GL_RENDERBUFFER_HEIGHT_EXT : constant := 16#8D43#; -- ../include/SDL/SDL_opengl.h:3083
GL_RENDERBUFFER_INTERNAL_FORMAT_EXT : constant := 16#8D44#; -- ../include/SDL/SDL_opengl.h:3084
GL_STENCIL_INDEX1_EXT : constant := 16#8D46#; -- ../include/SDL/SDL_opengl.h:3085
GL_STENCIL_INDEX4_EXT : constant := 16#8D47#; -- ../include/SDL/SDL_opengl.h:3086
GL_STENCIL_INDEX8_EXT : constant := 16#8D48#; -- ../include/SDL/SDL_opengl.h:3087
GL_STENCIL_INDEX16_EXT : constant := 16#8D49#; -- ../include/SDL/SDL_opengl.h:3088
GL_RENDERBUFFER_RED_SIZE_EXT : constant := 16#8D50#; -- ../include/SDL/SDL_opengl.h:3089
GL_RENDERBUFFER_GREEN_SIZE_EXT : constant := 16#8D51#; -- ../include/SDL/SDL_opengl.h:3090
GL_RENDERBUFFER_BLUE_SIZE_EXT : constant := 16#8D52#; -- ../include/SDL/SDL_opengl.h:3091
GL_RENDERBUFFER_ALPHA_SIZE_EXT : constant := 16#8D53#; -- ../include/SDL/SDL_opengl.h:3092
GL_RENDERBUFFER_DEPTH_SIZE_EXT : constant := 16#8D54#; -- ../include/SDL/SDL_opengl.h:3093
GL_RENDERBUFFER_STENCIL_SIZE_EXT : constant := 16#8D55#; -- ../include/SDL/SDL_opengl.h:3094
GL_VERSION_1_2 : constant := 1; -- ../include/SDL/SDL_opengl.h:3151
GL_VERSION_1_3 : constant := 1; -- ../include/SDL/SDL_opengl.h:3233
GL_VERSION_1_4 : constant := 1; -- ../include/SDL/SDL_opengl.h:3331
GL_VERSION_1_5 : constant := 1; -- ../include/SDL/SDL_opengl.h:3427
GL_VERSION_2_0 : constant := 1; -- ../include/SDL/SDL_opengl.h:3471
GL_ARB_multitexture : constant := 1; -- ../include/SDL/SDL_opengl.h:3663
GL_ARB_transpose_matrix : constant := 1; -- ../include/SDL/SDL_opengl.h:3737
GL_ARB_multisample : constant := 1; -- ../include/SDL/SDL_opengl.h:3751
GL_ARB_texture_env_add : constant := 1; -- ../include/SDL/SDL_opengl.h:3759
GL_ARB_texture_cube_map : constant := 1; -- ../include/SDL/SDL_opengl.h:3763
GL_ARB_texture_compression : constant := 1; -- ../include/SDL/SDL_opengl.h:3767
GL_ARB_texture_border_clamp : constant := 1; -- ../include/SDL/SDL_opengl.h:3787
GL_ARB_point_parameters : constant := 1; -- ../include/SDL/SDL_opengl.h:3791
GL_ARB_vertex_blend : constant := 1; -- ../include/SDL/SDL_opengl.h:3801
GL_ARB_matrix_palette : constant := 1; -- ../include/SDL/SDL_opengl.h:3827
GL_ARB_texture_env_combine : constant := 1; -- ../include/SDL/SDL_opengl.h:3843
GL_ARB_texture_env_crossbar : constant := 1; -- ../include/SDL/SDL_opengl.h:3847
GL_ARB_texture_env_dot3 : constant := 1; -- ../include/SDL/SDL_opengl.h:3851
GL_ARB_texture_mirrored_repeat : constant := 1; -- ../include/SDL/SDL_opengl.h:3855
GL_ARB_depth_texture : constant := 1; -- ../include/SDL/SDL_opengl.h:3859
GL_ARB_shadow : constant := 1; -- ../include/SDL/SDL_opengl.h:3863
GL_ARB_shadow_ambient : constant := 1; -- ../include/SDL/SDL_opengl.h:3867
GL_ARB_window_pos : constant := 1; -- ../include/SDL/SDL_opengl.h:3871
GL_ARB_vertex_program : constant := 1; -- ../include/SDL/SDL_opengl.h:3909
GL_ARB_fragment_program : constant := 1; -- ../include/SDL/SDL_opengl.h:4039
GL_ARB_vertex_buffer_object : constant := 1; -- ../include/SDL/SDL_opengl.h:4044
GL_ARB_occlusion_query : constant := 1; -- ../include/SDL/SDL_opengl.h:4072
GL_ARB_shader_objects : constant := 1; -- ../include/SDL/SDL_opengl.h:4094
GL_ARB_vertex_shader : constant := 1; -- ../include/SDL/SDL_opengl.h:4178
GL_ARB_fragment_shader : constant := 1; -- ../include/SDL/SDL_opengl.h:4190
GL_ARB_shading_language_100 : constant := 1; -- ../include/SDL/SDL_opengl.h:4194
GL_ARB_texture_non_power_of_two : constant := 1; -- ../include/SDL/SDL_opengl.h:4198
GL_ARB_point_sprite : constant := 1; -- ../include/SDL/SDL_opengl.h:4202
GL_ARB_fragment_program_shadow : constant := 1; -- ../include/SDL/SDL_opengl.h:4206
GL_ARB_draw_buffers : constant := 1; -- ../include/SDL/SDL_opengl.h:4210
GL_ARB_texture_rectangle : constant := 1; -- ../include/SDL/SDL_opengl.h:4218
GL_ARB_color_buffer_float : constant := 1; -- ../include/SDL/SDL_opengl.h:4222
GL_ARB_half_float_pixel : constant := 1; -- ../include/SDL/SDL_opengl.h:4230
GL_ARB_texture_float : constant := 1; -- ../include/SDL/SDL_opengl.h:4234
GL_ARB_pixel_buffer_object : constant := 1; -- ../include/SDL/SDL_opengl.h:4238
GL_EXT_abgr : constant := 1; -- ../include/SDL/SDL_opengl.h:4242
GL_EXT_blend_color : constant := 1; -- ../include/SDL/SDL_opengl.h:4246
GL_EXT_polygon_offset : constant := 1; -- ../include/SDL/SDL_opengl.h:4254
GL_EXT_texture : constant := 1; -- ../include/SDL/SDL_opengl.h:4262
GL_EXT_texture3D : constant := 1; -- ../include/SDL/SDL_opengl.h:4266
GL_SGIS_texture_filter4 : constant := 1; -- ../include/SDL/SDL_opengl.h:4276
GL_EXT_subtexture : constant := 1; -- ../include/SDL/SDL_opengl.h:4286
GL_EXT_copy_texture : constant := 1; -- ../include/SDL/SDL_opengl.h:4296
GL_EXT_histogram : constant := 1; -- ../include/SDL/SDL_opengl.h:4312
GL_EXT_convolution : constant := 1; -- ../include/SDL/SDL_opengl.h:4338
GL_EXT_color_matrix : constant := 1; -- ../include/SDL/SDL_opengl.h:4370
GL_SGI_color_table : constant := 1; -- ../include/SDL/SDL_opengl.h:4374
GL_SGIX_pixel_texture : constant := 1; -- ../include/SDL/SDL_opengl.h:4394
GL_SGIS_pixel_texture : constant := 1; -- ../include/SDL/SDL_opengl.h:4402
GL_SGIS_texture4D : constant := 1; -- ../include/SDL/SDL_opengl.h:4420
GL_SGI_texture_color_table : constant := 1; -- ../include/SDL/SDL_opengl.h:4430
GL_EXT_cmyka : constant := 1; -- ../include/SDL/SDL_opengl.h:4434
GL_EXT_texture_object : constant := 1; -- ../include/SDL/SDL_opengl.h:4438
GL_SGIS_detail_texture : constant := 1; -- ../include/SDL/SDL_opengl.h:4456
GL_SGIS_sharpen_texture : constant := 1; -- ../include/SDL/SDL_opengl.h:4466
GL_EXT_packed_pixels : constant := 1; -- ../include/SDL/SDL_opengl.h:4476
GL_SGIS_texture_lod : constant := 1; -- ../include/SDL/SDL_opengl.h:4480
GL_SGIS_multisample : constant := 1; -- ../include/SDL/SDL_opengl.h:4484
GL_EXT_rescale_normal : constant := 1; -- ../include/SDL/SDL_opengl.h:4494
GL_EXT_misc_attribute : constant := 1; -- ../include/SDL/SDL_opengl.h:4522
GL_SGIS_generate_mipmap : constant := 1; -- ../include/SDL/SDL_opengl.h:4526
GL_SGIX_clipmap : constant := 1; -- ../include/SDL/SDL_opengl.h:4530
GL_SGIX_shadow : constant := 1; -- ../include/SDL/SDL_opengl.h:4534
GL_SGIS_texture_edge_clamp : constant := 1; -- ../include/SDL/SDL_opengl.h:4538
GL_SGIS_texture_border_clamp : constant := 1; -- ../include/SDL/SDL_opengl.h:4542
GL_EXT_blend_minmax : constant := 1; -- ../include/SDL/SDL_opengl.h:4546
GL_EXT_blend_subtract : constant := 1; -- ../include/SDL/SDL_opengl.h:4554
GL_EXT_blend_logic_op : constant := 1; -- ../include/SDL/SDL_opengl.h:4558
GL_SGIX_interlace : constant := 1; -- ../include/SDL/SDL_opengl.h:4562
GL_SGIX_pixel_tiles : constant := 1; -- ../include/SDL/SDL_opengl.h:4566
GL_SGIX_texture_select : constant := 1; -- ../include/SDL/SDL_opengl.h:4570
GL_SGIX_sprite : constant := 1; -- ../include/SDL/SDL_opengl.h:4574
GL_SGIX_texture_multi_buffer : constant := 1; -- ../include/SDL/SDL_opengl.h:4588
GL_EXT_point_parameters : constant := 1; -- ../include/SDL/SDL_opengl.h:4592
GL_SGIS_point_parameters : constant := 1; -- ../include/SDL/SDL_opengl.h:4602
GL_SGIX_instruments : constant := 1; -- ../include/SDL/SDL_opengl.h:4612
GL_SGIX_texture_scale_bias : constant := 1; -- ../include/SDL/SDL_opengl.h:4630
GL_SGIX_framezoom : constant := 1; -- ../include/SDL/SDL_opengl.h:4634
GL_SGIX_tag_sample_buffer : constant := 1; -- ../include/SDL/SDL_opengl.h:4642
GL_SGIX_polynomial_ffd : constant := 1; -- ../include/SDL/SDL_opengl.h:4650
GL_SGIX_reference_plane : constant := 1; -- ../include/SDL/SDL_opengl.h:4664
GL_SGIX_flush_raster : constant := 1; -- ../include/SDL/SDL_opengl.h:4672
GL_SGIX_depth_texture : constant := 1; -- ../include/SDL/SDL_opengl.h:4680
GL_SGIS_fog_function : constant := 1; -- ../include/SDL/SDL_opengl.h:4684
GL_SGIX_fog_offset : constant := 1; -- ../include/SDL/SDL_opengl.h:4694
GL_HP_image_transform : constant := 1; -- ../include/SDL/SDL_opengl.h:4698
GL_HP_convolution_border_modes : constant := 1; -- ../include/SDL/SDL_opengl.h:4716
GL_SGIX_texture_add_env : constant := 1; -- ../include/SDL/SDL_opengl.h:4720
GL_EXT_color_subtable : constant := 1; -- ../include/SDL/SDL_opengl.h:4724
GL_PGI_vertex_hints : constant := 1; -- ../include/SDL/SDL_opengl.h:4734
GL_PGI_misc_hints : constant := 1; -- ../include/SDL/SDL_opengl.h:4738
GL_EXT_clip_volume_hint : constant := 1; -- ../include/SDL/SDL_opengl.h:4760
GL_SGIX_list_priority : constant := 1; -- ../include/SDL/SDL_opengl.h:4764
GL_SGIX_ir_instrument1 : constant := 1; -- ../include/SDL/SDL_opengl.h:4782
GL_SGIX_calligraphic_fragment : constant := 1; -- ../include/SDL/SDL_opengl.h:4786
GL_SGIX_texture_lod_bias : constant := 1; -- ../include/SDL/SDL_opengl.h:4790
GL_SGIX_shadow_ambient : constant := 1; -- ../include/SDL/SDL_opengl.h:4794
GL_EXT_index_texture : constant := 1; -- ../include/SDL/SDL_opengl.h:4798
GL_EXT_index_material : constant := 1; -- ../include/SDL/SDL_opengl.h:4802
GL_EXT_index_func : constant := 1; -- ../include/SDL/SDL_opengl.h:4810
GL_EXT_index_array_formats : constant := 1; -- ../include/SDL/SDL_opengl.h:4818
GL_EXT_compiled_vertex_array : constant := 1; -- ../include/SDL/SDL_opengl.h:4822
GL_EXT_cull_vertex : constant := 1; -- ../include/SDL/SDL_opengl.h:4832
GL_SGIX_ycrcb : constant := 1; -- ../include/SDL/SDL_opengl.h:4842
GL_SGIX_fragment_lighting : constant := 1; -- ../include/SDL/SDL_opengl.h:4846
GL_IBM_rasterpos_clip : constant := 1; -- ../include/SDL/SDL_opengl.h:4888
GL_HP_texture_lighting : constant := 1; -- ../include/SDL/SDL_opengl.h:4892
GL_EXT_draw_range_elements : constant := 1; -- ../include/SDL/SDL_opengl.h:4896
GL_WIN_phong_shading : constant := 1; -- ../include/SDL/SDL_opengl.h:4904
GL_WIN_specular_fog : constant := 1; -- ../include/SDL/SDL_opengl.h:4908
GL_EXT_light_texture : constant := 1; -- ../include/SDL/SDL_opengl.h:4912
GL_SGIX_blend_alpha_minmax : constant := 1; -- ../include/SDL/SDL_opengl.h:4924
GL_SGIX_async : constant := 1; -- ../include/SDL/SDL_opengl.h:4932
GL_SGIX_async_pixel : constant := 1; -- ../include/SDL/SDL_opengl.h:4950
GL_SGIX_async_histogram : constant := 1; -- ../include/SDL/SDL_opengl.h:4954
GL_INTEL_parallel_arrays : constant := 1; -- ../include/SDL/SDL_opengl.h:4958
GL_HP_occlusion_test : constant := 1; -- ../include/SDL/SDL_opengl.h:4972
GL_EXT_pixel_transform : constant := 1; -- ../include/SDL/SDL_opengl.h:4976
GL_EXT_pixel_transform_color_table : constant := 1; -- ../include/SDL/SDL_opengl.h:4990
GL_EXT_shared_texture_palette : constant := 1; -- ../include/SDL/SDL_opengl.h:4994
GL_EXT_separate_specular_color : constant := 1; -- ../include/SDL/SDL_opengl.h:4998
GL_EXT_secondary_color : constant := 1; -- ../include/SDL/SDL_opengl.h:5002
GL_EXT_texture_perturb_normal : constant := 1; -- ../include/SDL/SDL_opengl.h:5042
GL_EXT_multi_draw_arrays : constant := 1; -- ../include/SDL/SDL_opengl.h:5050
GL_EXT_fog_coord : constant := 1; -- ../include/SDL/SDL_opengl.h:5060
GL_REND_screen_coordinates : constant := 1; -- ../include/SDL/SDL_opengl.h:5076
GL_EXT_coordinate_frame : constant := 1; -- ../include/SDL/SDL_opengl.h:5080
GL_EXT_texture_env_combine : constant := 1; -- ../include/SDL/SDL_opengl.h:5130
GL_APPLE_specular_vector : constant := 1; -- ../include/SDL/SDL_opengl.h:5134
GL_APPLE_transform_hint : constant := 1; -- ../include/SDL/SDL_opengl.h:5138
GL_SGIX_fog_scale : constant := 1; -- ../include/SDL/SDL_opengl.h:5142
GL_SUNX_constant_data : constant := 1; -- ../include/SDL/SDL_opengl.h:5146
GL_SUN_global_alpha : constant := 1; -- ../include/SDL/SDL_opengl.h:5154
GL_SUN_triangle_list : constant := 1; -- ../include/SDL/SDL_opengl.h:5176
GL_SUN_vertex : constant := 1; -- ../include/SDL/SDL_opengl.h:5196
GL_EXT_blend_func_separate : constant := 1; -- ../include/SDL/SDL_opengl.h:5282
GL_INGR_blend_func_separate : constant := 1; -- ../include/SDL/SDL_opengl.h:5290
GL_INGR_color_clamp : constant := 1; -- ../include/SDL/SDL_opengl.h:5298
GL_INGR_interlace_read : constant := 1; -- ../include/SDL/SDL_opengl.h:5302
GL_EXT_stencil_wrap : constant := 1; -- ../include/SDL/SDL_opengl.h:5306
GL_EXT_422_pixels : constant := 1; -- ../include/SDL/SDL_opengl.h:5310
GL_NV_texgen_reflection : constant := 1; -- ../include/SDL/SDL_opengl.h:5314
GL_SUN_convolution_border_modes : constant := 1; -- ../include/SDL/SDL_opengl.h:5318
GL_EXT_texture_env_add : constant := 1; -- ../include/SDL/SDL_opengl.h:5322
GL_EXT_texture_lod_bias : constant := 1; -- ../include/SDL/SDL_opengl.h:5326
GL_EXT_texture_filter_anisotropic : constant := 1; -- ../include/SDL/SDL_opengl.h:5330
GL_EXT_vertex_weighting : constant := 1; -- ../include/SDL/SDL_opengl.h:5334
GL_NV_light_max_exponent : constant := 1; -- ../include/SDL/SDL_opengl.h:5346
GL_NV_vertex_array_range : constant := 1; -- ../include/SDL/SDL_opengl.h:5350
GL_NV_register_combiners : constant := 1; -- ../include/SDL/SDL_opengl.h:5360
GL_NV_fog_distance : constant := 1; -- ../include/SDL/SDL_opengl.h:5392
GL_NV_texgen_emboss : constant := 1; -- ../include/SDL/SDL_opengl.h:5396
GL_NV_blend_square : constant := 1; -- ../include/SDL/SDL_opengl.h:5400
GL_NV_texture_env_combine4 : constant := 1; -- ../include/SDL/SDL_opengl.h:5404
GL_MESA_resize_buffers : constant := 1; -- ../include/SDL/SDL_opengl.h:5408
GL_MESA_window_pos : constant := 1; -- ../include/SDL/SDL_opengl.h:5416
GL_IBM_cull_vertex : constant := 1; -- ../include/SDL/SDL_opengl.h:5470
GL_IBM_multimode_draw_arrays : constant := 1; -- ../include/SDL/SDL_opengl.h:5474
GL_IBM_vertex_array_lists : constant := 1; -- ../include/SDL/SDL_opengl.h:5484
GL_SGIX_subsample : constant := 1; -- ../include/SDL/SDL_opengl.h:5506
GL_SGIX_ycrcba : constant := 1; -- ../include/SDL/SDL_opengl.h:5510
GL_SGIX_ycrcb_subsample : constant := 1; -- ../include/SDL/SDL_opengl.h:5514
GL_SGIX_depth_pass_instrument : constant := 1; -- ../include/SDL/SDL_opengl.h:5518
GL_3DFX_texture_compression_FXT1 : constant := 1; -- ../include/SDL/SDL_opengl.h:5522
GL_3DFX_multisample : constant := 1; -- ../include/SDL/SDL_opengl.h:5526
GL_3DFX_tbuffer : constant := 1; -- ../include/SDL/SDL_opengl.h:5530
GL_EXT_multisample : constant := 1; -- ../include/SDL/SDL_opengl.h:5538
GL_SGIX_vertex_preclip : constant := 1; -- ../include/SDL/SDL_opengl.h:5548
GL_SGIX_convolution_accuracy : constant := 1; -- ../include/SDL/SDL_opengl.h:5552
GL_SGIX_resample : constant := 1; -- ../include/SDL/SDL_opengl.h:5556
GL_SGIS_point_line_texgen : constant := 1; -- ../include/SDL/SDL_opengl.h:5560
GL_SGIS_texture_color_mask : constant := 1; -- ../include/SDL/SDL_opengl.h:5564
GL_SGIX_igloo_interface : constant := 1; -- ../include/SDL/SDL_opengl.h:5572
GL_EXT_texture_env_dot3 : constant := 1; -- ../include/SDL/SDL_opengl.h:5580
GL_ATI_texture_mirror_once : constant := 1; -- ../include/SDL/SDL_opengl.h:5584
GL_NV_fence : constant := 1; -- ../include/SDL/SDL_opengl.h:5588
GL_NV_evaluators : constant := 1; -- ../include/SDL/SDL_opengl.h:5608
GL_NV_packed_depth_stencil : constant := 1; -- ../include/SDL/SDL_opengl.h:5632
GL_NV_register_combiners2 : constant := 1; -- ../include/SDL/SDL_opengl.h:5636
GL_NV_texture_compression_vtc : constant := 1; -- ../include/SDL/SDL_opengl.h:5646
GL_NV_texture_rectangle : constant := 1; -- ../include/SDL/SDL_opengl.h:5650
GL_NV_texture_shader : constant := 1; -- ../include/SDL/SDL_opengl.h:5654
GL_NV_texture_shader2 : constant := 1; -- ../include/SDL/SDL_opengl.h:5658
GL_NV_vertex_array_range2 : constant := 1; -- ../include/SDL/SDL_opengl.h:5662
GL_NV_vertex_program : constant := 1; -- ../include/SDL/SDL_opengl.h:5666
GL_SGIX_texture_coordinate_clamp : constant := 1; -- ../include/SDL/SDL_opengl.h:5800
GL_SGIX_scalebias_hint : constant := 1; -- ../include/SDL/SDL_opengl.h:5804
GL_OML_interlace : constant := 1; -- ../include/SDL/SDL_opengl.h:5808
GL_OML_subsample : constant := 1; -- ../include/SDL/SDL_opengl.h:5812
GL_OML_resample : constant := 1; -- ../include/SDL/SDL_opengl.h:5816
GL_NV_copy_depth_to_color : constant := 1; -- ../include/SDL/SDL_opengl.h:5820
GL_ATI_envmap_bumpmap : constant := 1; -- ../include/SDL/SDL_opengl.h:5824
GL_ATI_fragment_shader : constant := 1; -- ../include/SDL/SDL_opengl.h:5838
GL_ATI_pn_triangles : constant := 1; -- ../include/SDL/SDL_opengl.h:5872
GL_ATI_vertex_array_object : constant := 1; -- ../include/SDL/SDL_opengl.h:5882
GL_EXT_vertex_shader : constant := 1; -- ../include/SDL/SDL_opengl.h:5912
GL_ATI_vertex_streams : constant := 1; -- ../include/SDL/SDL_opengl.h:6002
GL_ATI_element_array : constant := 1; -- ../include/SDL/SDL_opengl.h:6098
GL_SUN_mesh_array : constant := 1; -- ../include/SDL/SDL_opengl.h:6110
GL_SUN_slice_accum : constant := 1; -- ../include/SDL/SDL_opengl.h:6118
GL_NV_multisample_filter_hint : constant := 1; -- ../include/SDL/SDL_opengl.h:6122
GL_NV_depth_clamp : constant := 1; -- ../include/SDL/SDL_opengl.h:6126
GL_NV_occlusion_query : constant := 1; -- ../include/SDL/SDL_opengl.h:6130
GL_NV_point_sprite : constant := 1; -- ../include/SDL/SDL_opengl.h:6150
GL_NV_texture_shader3 : constant := 1; -- ../include/SDL/SDL_opengl.h:6160
GL_NV_vertex_program1_1 : constant := 1; -- ../include/SDL/SDL_opengl.h:6164
GL_EXT_shadow_funcs : constant := 1; -- ../include/SDL/SDL_opengl.h:6168
GL_EXT_stencil_two_side : constant := 1; -- ../include/SDL/SDL_opengl.h:6172
GL_ATI_text_fragment_shader : constant := 1; -- ../include/SDL/SDL_opengl.h:6180
GL_APPLE_client_storage : constant := 1; -- ../include/SDL/SDL_opengl.h:6184
GL_APPLE_element_array : constant := 1; -- ../include/SDL/SDL_opengl.h:6188
GL_APPLE_fence : constant := 1; -- ../include/SDL/SDL_opengl.h:6204
GL_APPLE_vertex_array_object : constant := 1; -- ../include/SDL/SDL_opengl.h:6226
GL_APPLE_vertex_array_range : constant := 1; -- ../include/SDL/SDL_opengl.h:6240
GL_APPLE_ycbcr_422 : constant := 1; -- ../include/SDL/SDL_opengl.h:6252
GL_S3_s3tc : constant := 1; -- ../include/SDL/SDL_opengl.h:6256
GL_ATI_draw_buffers : constant := 1; -- ../include/SDL/SDL_opengl.h:6260
GL_ATI_pixel_format_float : constant := 1; -- ../include/SDL/SDL_opengl.h:6268
GL_ATI_texture_env_combine3 : constant := 1; -- ../include/SDL/SDL_opengl.h:6275
GL_ATI_texture_float : constant := 1; -- ../include/SDL/SDL_opengl.h:6279
GL_NV_float_buffer : constant := 1; -- ../include/SDL/SDL_opengl.h:6283
GL_NV_fragment_program : constant := 1; -- ../include/SDL/SDL_opengl.h:6287
GL_NV_half_float : constant := 1; -- ../include/SDL/SDL_opengl.h:6306
GL_NV_pixel_data_range : constant := 1; -- ../include/SDL/SDL_opengl.h:6404
GL_NV_primitive_restart : constant := 1; -- ../include/SDL/SDL_opengl.h:6414
GL_NV_texture_expand_normal : constant := 1; -- ../include/SDL/SDL_opengl.h:6424
GL_NV_vertex_program2 : constant := 1; -- ../include/SDL/SDL_opengl.h:6428
GL_ATI_map_object_buffer : constant := 1; -- ../include/SDL/SDL_opengl.h:6432
GL_ATI_separate_stencil : constant := 1; -- ../include/SDL/SDL_opengl.h:6442
GL_ATI_vertex_attrib_array_object : constant := 1; -- ../include/SDL/SDL_opengl.h:6452
GL_OES_read_format : constant := 1; -- ../include/SDL/SDL_opengl.h:6464
GL_EXT_depth_bounds_test : constant := 1; -- ../include/SDL/SDL_opengl.h:6468
GL_EXT_texture_mirror_clamp : constant := 1; -- ../include/SDL/SDL_opengl.h:6476
GL_EXT_blend_equation_separate : constant := 1; -- ../include/SDL/SDL_opengl.h:6480
GL_MESA_pack_invert : constant := 1; -- ../include/SDL/SDL_opengl.h:6488
GL_MESA_ycbcr_texture : constant := 1; -- ../include/SDL/SDL_opengl.h:6492
GL_EXT_pixel_buffer_object : constant := 1; -- ../include/SDL/SDL_opengl.h:6496
GL_NV_fragment_program_option : constant := 1; -- ../include/SDL/SDL_opengl.h:6500
GL_NV_fragment_program2 : constant := 1; -- ../include/SDL/SDL_opengl.h:6504
GL_NV_vertex_program2_option : constant := 1; -- ../include/SDL/SDL_opengl.h:6508
GL_NV_vertex_program3 : constant := 1; -- ../include/SDL/SDL_opengl.h:6512
GL_EXT_framebuffer_object : constant := 1; -- ../include/SDL/SDL_opengl.h:6516
GL_GREMEDY_string_marker : constant := 1; -- ../include/SDL/SDL_opengl.h:6556
subtype GLchar is char; -- ../include/SDL/SDL_opengl.h:3106
subtype GLintptr is umingw_h.ptrdiff_t; -- ../include/SDL/SDL_opengl.h:3115
subtype GLsizeiptr is umingw_h.ptrdiff_t; -- ../include/SDL/SDL_opengl.h:3116
subtype GLintptrARB is umingw_h.ptrdiff_t; -- ../include/SDL/SDL_opengl.h:3126
subtype GLsizeiptrARB is umingw_h.ptrdiff_t; -- ../include/SDL/SDL_opengl.h:3127
subtype GLcharARB is char; -- ../include/SDL/SDL_opengl.h:3133
subtype GLhandleARB is unsigned; -- ../include/SDL/SDL_opengl.h:3137
subtype GLhalfARB is unsigned_short; -- ../include/SDL/SDL_opengl.h:3143
subtype GLhalfNV is unsigned_short; -- ../include/SDL/SDL_opengl.h:3147
type PFNGLBLENDCOLORPROC is access procedure
(arg1 : GL_gl_h.GLclampf;
arg2 : GL_gl_h.GLclampf;
arg3 : GL_gl_h.GLclampf;
arg4 : GL_gl_h.GLclampf);
pragma Convention (C, PFNGLBLENDCOLORPROC); -- ../include/SDL/SDL_opengl.h:3192
type PFNGLBLENDEQUATIONPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLBLENDEQUATIONPROC); -- ../include/SDL/SDL_opengl.h:3193
type PFNGLDRAWRANGEELEMENTSPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLenum;
arg6 : System.Address);
pragma Convention (C, PFNGLDRAWRANGEELEMENTSPROC); -- ../include/SDL/SDL_opengl.h:3194
type PFNGLCOLORTABLEPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLenum;
arg5 : GL_gl_h.GLenum;
arg6 : System.Address);
pragma Convention (C, PFNGLCOLORTABLEPROC); -- ../include/SDL/SDL_opengl.h:3195
type PFNGLCOLORTABLEPARAMETERFVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCOLORTABLEPARAMETERFVPROC); -- ../include/SDL/SDL_opengl.h:3196
type PFNGLCOLORTABLEPARAMETERIVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLCOLORTABLEPARAMETERIVPROC); -- ../include/SDL/SDL_opengl.h:3197
type PFNGLCOPYCOLORTABLEPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLCOPYCOLORTABLEPROC); -- ../include/SDL/SDL_opengl.h:3198
type PFNGLGETCOLORTABLEPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : System.Address);
pragma Convention (C, PFNGLGETCOLORTABLEPROC); -- ../include/SDL/SDL_opengl.h:3199
type PFNGLGETCOLORTABLEPARAMETERFVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETCOLORTABLEPARAMETERFVPROC); -- ../include/SDL/SDL_opengl.h:3200
type PFNGLGETCOLORTABLEPARAMETERIVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETCOLORTABLEPARAMETERIVPROC); -- ../include/SDL/SDL_opengl.h:3201
type PFNGLCOLORSUBTABLEPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLsizei;
arg3 : GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLenum;
arg5 : GL_gl_h.GLenum;
arg6 : System.Address);
pragma Convention (C, PFNGLCOLORSUBTABLEPROC); -- ../include/SDL/SDL_opengl.h:3202
type PFNGLCOPYCOLORSUBTABLEPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLsizei;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLCOPYCOLORSUBTABLEPROC); -- ../include/SDL/SDL_opengl.h:3203
type PFNGLCONVOLUTIONFILTER1DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLenum;
arg5 : GL_gl_h.GLenum;
arg6 : System.Address);
pragma Convention (C, PFNGLCONVOLUTIONFILTER1DPROC); -- ../include/SDL/SDL_opengl.h:3204
type PFNGLCONVOLUTIONFILTER2DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLenum;
arg6 : GL_gl_h.GLenum;
arg7 : System.Address);
pragma Convention (C, PFNGLCONVOLUTIONFILTER2DPROC); -- ../include/SDL/SDL_opengl.h:3205
type PFNGLCONVOLUTIONPARAMETERFPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCONVOLUTIONPARAMETERFPROC); -- ../include/SDL/SDL_opengl.h:3206
type PFNGLCONVOLUTIONPARAMETERFVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCONVOLUTIONPARAMETERFVPROC); -- ../include/SDL/SDL_opengl.h:3207
type PFNGLCONVOLUTIONPARAMETERIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLCONVOLUTIONPARAMETERIPROC); -- ../include/SDL/SDL_opengl.h:3208
type PFNGLCONVOLUTIONPARAMETERIVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLCONVOLUTIONPARAMETERIVPROC); -- ../include/SDL/SDL_opengl.h:3209
type PFNGLCOPYCONVOLUTIONFILTER1DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLCOPYCONVOLUTIONFILTER1DPROC); -- ../include/SDL/SDL_opengl.h:3210
type PFNGLCOPYCONVOLUTIONFILTER2DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLCOPYCONVOLUTIONFILTER2DPROC); -- ../include/SDL/SDL_opengl.h:3211
type PFNGLGETCONVOLUTIONFILTERPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : System.Address);
pragma Convention (C, PFNGLGETCONVOLUTIONFILTERPROC); -- ../include/SDL/SDL_opengl.h:3212
type PFNGLGETCONVOLUTIONPARAMETERFVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETCONVOLUTIONPARAMETERFVPROC); -- ../include/SDL/SDL_opengl.h:3213
type PFNGLGETCONVOLUTIONPARAMETERIVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETCONVOLUTIONPARAMETERIVPROC); -- ../include/SDL/SDL_opengl.h:3214
type PFNGLGETSEPARABLEFILTERPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : System.Address;
arg5 : System.Address;
arg6 : System.Address);
pragma Convention (C, PFNGLGETSEPARABLEFILTERPROC); -- ../include/SDL/SDL_opengl.h:3215
type PFNGLSEPARABLEFILTER2DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLenum;
arg6 : GL_gl_h.GLenum;
arg7 : System.Address;
arg8 : System.Address);
pragma Convention (C, PFNGLSEPARABLEFILTER2DPROC); -- ../include/SDL/SDL_opengl.h:3216
type PFNGLGETHISTOGRAMPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLboolean;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum;
arg5 : System.Address);
pragma Convention (C, PFNGLGETHISTOGRAMPROC); -- ../include/SDL/SDL_opengl.h:3217
type PFNGLGETHISTOGRAMPARAMETERFVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETHISTOGRAMPARAMETERFVPROC); -- ../include/SDL/SDL_opengl.h:3218
type PFNGLGETHISTOGRAMPARAMETERIVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETHISTOGRAMPARAMETERIVPROC); -- ../include/SDL/SDL_opengl.h:3219
type PFNGLGETMINMAXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLboolean;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum;
arg5 : System.Address);
pragma Convention (C, PFNGLGETMINMAXPROC); -- ../include/SDL/SDL_opengl.h:3220
type PFNGLGETMINMAXPARAMETERFVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETMINMAXPARAMETERFVPROC); -- ../include/SDL/SDL_opengl.h:3221
type PFNGLGETMINMAXPARAMETERIVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETMINMAXPARAMETERIVPROC); -- ../include/SDL/SDL_opengl.h:3222
type PFNGLHISTOGRAMPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLsizei;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLboolean);
pragma Convention (C, PFNGLHISTOGRAMPROC); -- ../include/SDL/SDL_opengl.h:3223
type PFNGLMINMAXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLboolean);
pragma Convention (C, PFNGLMINMAXPROC); -- ../include/SDL/SDL_opengl.h:3224
type PFNGLRESETHISTOGRAMPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLRESETHISTOGRAMPROC); -- ../include/SDL/SDL_opengl.h:3225
type PFNGLRESETMINMAXPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLRESETMINMAXPROC); -- ../include/SDL/SDL_opengl.h:3226
type PFNGLTEXIMAGE3DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLsizei;
arg7 : GL_gl_h.GLint;
arg8 : GL_gl_h.GLenum;
arg9 : GL_gl_h.GLenum;
arg10 : System.Address);
pragma Convention (C, PFNGLTEXIMAGE3DPROC); -- ../include/SDL/SDL_opengl.h:3227
type PFNGLTEXSUBIMAGE3DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLsizei;
arg7 : GL_gl_h.GLsizei;
arg8 : GL_gl_h.GLsizei;
arg9 : GL_gl_h.GLenum;
arg10 : GL_gl_h.GLenum;
arg11 : System.Address);
pragma Convention (C, PFNGLTEXSUBIMAGE3DPROC); -- ../include/SDL/SDL_opengl.h:3228
type PFNGLCOPYTEXSUBIMAGE3DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLint;
arg7 : GL_gl_h.GLint;
arg8 : GL_gl_h.GLsizei;
arg9 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLCOPYTEXSUBIMAGE3DPROC); -- ../include/SDL/SDL_opengl.h:3229
type PFNGLACTIVETEXTUREPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLACTIVETEXTUREPROC); -- ../include/SDL/SDL_opengl.h:3282
type PFNGLCLIENTACTIVETEXTUREPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLCLIENTACTIVETEXTUREPROC); -- ../include/SDL/SDL_opengl.h:3283
type PFNGLMULTITEXCOORD1DPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD1DPROC); -- ../include/SDL/SDL_opengl.h:3284
type PFNGLMULTITEXCOORD1DVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD1DVPROC); -- ../include/SDL/SDL_opengl.h:3285
type PFNGLMULTITEXCOORD1FPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD1FPROC); -- ../include/SDL/SDL_opengl.h:3286
type PFNGLMULTITEXCOORD1FVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD1FVPROC); -- ../include/SDL/SDL_opengl.h:3287
type PFNGLMULTITEXCOORD1IPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD1IPROC); -- ../include/SDL/SDL_opengl.h:3288
type PFNGLMULTITEXCOORD1IVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD1IVPROC); -- ../include/SDL/SDL_opengl.h:3289
type PFNGLMULTITEXCOORD1SPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD1SPROC); -- ../include/SDL/SDL_opengl.h:3290
type PFNGLMULTITEXCOORD1SVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD1SVPROC); -- ../include/SDL/SDL_opengl.h:3291
type PFNGLMULTITEXCOORD2DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD2DPROC); -- ../include/SDL/SDL_opengl.h:3292
type PFNGLMULTITEXCOORD2DVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD2DVPROC); -- ../include/SDL/SDL_opengl.h:3293
type PFNGLMULTITEXCOORD2FPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD2FPROC); -- ../include/SDL/SDL_opengl.h:3294
type PFNGLMULTITEXCOORD2FVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD2FVPROC); -- ../include/SDL/SDL_opengl.h:3295
type PFNGLMULTITEXCOORD2IPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD2IPROC); -- ../include/SDL/SDL_opengl.h:3296
type PFNGLMULTITEXCOORD2IVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD2IVPROC); -- ../include/SDL/SDL_opengl.h:3297
type PFNGLMULTITEXCOORD2SPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD2SPROC); -- ../include/SDL/SDL_opengl.h:3298
type PFNGLMULTITEXCOORD2SVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD2SVPROC); -- ../include/SDL/SDL_opengl.h:3299
type PFNGLMULTITEXCOORD3DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD3DPROC); -- ../include/SDL/SDL_opengl.h:3300
type PFNGLMULTITEXCOORD3DVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD3DVPROC); -- ../include/SDL/SDL_opengl.h:3301
type PFNGLMULTITEXCOORD3FPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD3FPROC); -- ../include/SDL/SDL_opengl.h:3302
type PFNGLMULTITEXCOORD3FVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD3FVPROC); -- ../include/SDL/SDL_opengl.h:3303
type PFNGLMULTITEXCOORD3IPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD3IPROC); -- ../include/SDL/SDL_opengl.h:3304
type PFNGLMULTITEXCOORD3IVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD3IVPROC); -- ../include/SDL/SDL_opengl.h:3305
type PFNGLMULTITEXCOORD3SPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort;
arg4 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD3SPROC); -- ../include/SDL/SDL_opengl.h:3306
type PFNGLMULTITEXCOORD3SVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD3SVPROC); -- ../include/SDL/SDL_opengl.h:3307
type PFNGLMULTITEXCOORD4DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble;
arg5 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD4DPROC); -- ../include/SDL/SDL_opengl.h:3308
type PFNGLMULTITEXCOORD4DVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD4DVPROC); -- ../include/SDL/SDL_opengl.h:3309
type PFNGLMULTITEXCOORD4FPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD4FPROC); -- ../include/SDL/SDL_opengl.h:3310
type PFNGLMULTITEXCOORD4FVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD4FVPROC); -- ../include/SDL/SDL_opengl.h:3311
type PFNGLMULTITEXCOORD4IPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD4IPROC); -- ../include/SDL/SDL_opengl.h:3312
type PFNGLMULTITEXCOORD4IVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD4IVPROC); -- ../include/SDL/SDL_opengl.h:3313
type PFNGLMULTITEXCOORD4SPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort;
arg4 : GL_gl_h.GLshort;
arg5 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD4SPROC); -- ../include/SDL/SDL_opengl.h:3314
type PFNGLMULTITEXCOORD4SVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD4SVPROC); -- ../include/SDL/SDL_opengl.h:3315
type PFNGLLOADTRANSPOSEMATRIXFPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLLOADTRANSPOSEMATRIXFPROC); -- ../include/SDL/SDL_opengl.h:3316
type PFNGLLOADTRANSPOSEMATRIXDPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLLOADTRANSPOSEMATRIXDPROC); -- ../include/SDL/SDL_opengl.h:3317
type PFNGLMULTTRANSPOSEMATRIXFPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTTRANSPOSEMATRIXFPROC); -- ../include/SDL/SDL_opengl.h:3318
type PFNGLMULTTRANSPOSEMATRIXDPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTTRANSPOSEMATRIXDPROC); -- ../include/SDL/SDL_opengl.h:3319
type PFNGLSAMPLECOVERAGEPROC is access procedure (arg1 : GL_gl_h.GLclampf; arg2 : GL_gl_h.GLboolean);
pragma Convention (C, PFNGLSAMPLECOVERAGEPROC); -- ../include/SDL/SDL_opengl.h:3320
type PFNGLCOMPRESSEDTEXIMAGE3DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLsizei;
arg7 : GL_gl_h.GLint;
arg8 : GL_gl_h.GLsizei;
arg9 : System.Address);
pragma Convention (C, PFNGLCOMPRESSEDTEXIMAGE3DPROC); -- ../include/SDL/SDL_opengl.h:3321
type PFNGLCOMPRESSEDTEXIMAGE2DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLint;
arg7 : GL_gl_h.GLsizei;
arg8 : System.Address);
pragma Convention (C, PFNGLCOMPRESSEDTEXIMAGE2DPROC); -- ../include/SDL/SDL_opengl.h:3322
type PFNGLCOMPRESSEDTEXIMAGE1DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLsizei;
arg7 : System.Address);
pragma Convention (C, PFNGLCOMPRESSEDTEXIMAGE1DPROC); -- ../include/SDL/SDL_opengl.h:3323
type PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLsizei;
arg7 : GL_gl_h.GLsizei;
arg8 : GL_gl_h.GLsizei;
arg9 : GL_gl_h.GLenum;
arg10 : GL_gl_h.GLsizei;
arg11 : System.Address);
pragma Convention (C, PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC); -- ../include/SDL/SDL_opengl.h:3324
type PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLsizei;
arg7 : GL_gl_h.GLenum;
arg8 : GL_gl_h.GLsizei;
arg9 : System.Address);
pragma Convention (C, PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC); -- ../include/SDL/SDL_opengl.h:3325
type PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLenum;
arg6 : GL_gl_h.GLsizei;
arg7 : System.Address);
pragma Convention (C, PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC); -- ../include/SDL/SDL_opengl.h:3326
type PFNGLGETCOMPRESSEDTEXIMAGEPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : System.Address);
pragma Convention (C, PFNGLGETCOMPRESSEDTEXIMAGEPROC); -- ../include/SDL/SDL_opengl.h:3327
type PFNGLBLENDFUNCSEPARATEPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLBLENDFUNCSEPARATEPROC); -- ../include/SDL/SDL_opengl.h:3379
type PFNGLFOGCOORDFPROC is access procedure (arg1 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLFOGCOORDFPROC); -- ../include/SDL/SDL_opengl.h:3380
type PFNGLFOGCOORDFVPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLFOGCOORDFVPROC); -- ../include/SDL/SDL_opengl.h:3381
type PFNGLFOGCOORDDPROC is access procedure (arg1 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLFOGCOORDDPROC); -- ../include/SDL/SDL_opengl.h:3382
type PFNGLFOGCOORDDVPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLFOGCOORDDVPROC); -- ../include/SDL/SDL_opengl.h:3383
type PFNGLFOGCOORDPOINTERPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLsizei;
arg3 : System.Address);
pragma Convention (C, PFNGLFOGCOORDPOINTERPROC); -- ../include/SDL/SDL_opengl.h:3384
type PFNGLMULTIDRAWARRAYSPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : access GL_gl_h.GLint;
arg3 : access GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLMULTIDRAWARRAYSPROC); -- ../include/SDL/SDL_opengl.h:3385
type PFNGLMULTIDRAWELEMENTSPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : access GL_gl_h.GLsizei;
arg3 : GL_gl_h.GLenum;
arg4 : System.Address;
arg5 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLMULTIDRAWELEMENTSPROC); -- ../include/SDL/SDL_opengl.h:3386
type PFNGLPOINTPARAMETERFPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPOINTPARAMETERFPROC); -- ../include/SDL/SDL_opengl.h:3387
type PFNGLPOINTPARAMETERFVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPOINTPARAMETERFVPROC); -- ../include/SDL/SDL_opengl.h:3388
type PFNGLPOINTPARAMETERIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLPOINTPARAMETERIPROC); -- ../include/SDL/SDL_opengl.h:3389
type PFNGLPOINTPARAMETERIVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLPOINTPARAMETERIVPROC); -- ../include/SDL/SDL_opengl.h:3390
type PFNGLSECONDARYCOLOR3BPROC is access procedure
(arg1 : GL_gl_h.GLbyte;
arg2 : GL_gl_h.GLbyte;
arg3 : GL_gl_h.GLbyte);
pragma Convention (C, PFNGLSECONDARYCOLOR3BPROC); -- ../include/SDL/SDL_opengl.h:3391
type PFNGLSECONDARYCOLOR3BVPROC is access procedure (arg1 : access GL_gl_h.GLbyte);
pragma Convention (C, PFNGLSECONDARYCOLOR3BVPROC); -- ../include/SDL/SDL_opengl.h:3392
type PFNGLSECONDARYCOLOR3DPROC is access procedure
(arg1 : GL_gl_h.GLdouble;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLSECONDARYCOLOR3DPROC); -- ../include/SDL/SDL_opengl.h:3393
type PFNGLSECONDARYCOLOR3DVPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLSECONDARYCOLOR3DVPROC); -- ../include/SDL/SDL_opengl.h:3394
type PFNGLSECONDARYCOLOR3FPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLSECONDARYCOLOR3FPROC); -- ../include/SDL/SDL_opengl.h:3395
type PFNGLSECONDARYCOLOR3FVPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLSECONDARYCOLOR3FVPROC); -- ../include/SDL/SDL_opengl.h:3396
type PFNGLSECONDARYCOLOR3IPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLSECONDARYCOLOR3IPROC); -- ../include/SDL/SDL_opengl.h:3397
type PFNGLSECONDARYCOLOR3IVPROC is access procedure (arg1 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLSECONDARYCOLOR3IVPROC); -- ../include/SDL/SDL_opengl.h:3398
type PFNGLSECONDARYCOLOR3SPROC is access procedure
(arg1 : GL_gl_h.GLshort;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLSECONDARYCOLOR3SPROC); -- ../include/SDL/SDL_opengl.h:3399
type PFNGLSECONDARYCOLOR3SVPROC is access procedure (arg1 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLSECONDARYCOLOR3SVPROC); -- ../include/SDL/SDL_opengl.h:3400
type PFNGLSECONDARYCOLOR3UBPROC is access procedure
(arg1 : GL_gl_h.GLubyte;
arg2 : GL_gl_h.GLubyte;
arg3 : GL_gl_h.GLubyte);
pragma Convention (C, PFNGLSECONDARYCOLOR3UBPROC); -- ../include/SDL/SDL_opengl.h:3401
type PFNGLSECONDARYCOLOR3UBVPROC is access procedure (arg1 : access GL_gl_h.GLubyte);
pragma Convention (C, PFNGLSECONDARYCOLOR3UBVPROC); -- ../include/SDL/SDL_opengl.h:3402
type PFNGLSECONDARYCOLOR3UIPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLSECONDARYCOLOR3UIPROC); -- ../include/SDL/SDL_opengl.h:3403
type PFNGLSECONDARYCOLOR3UIVPROC is access procedure (arg1 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLSECONDARYCOLOR3UIVPROC); -- ../include/SDL/SDL_opengl.h:3404
type PFNGLSECONDARYCOLOR3USPROC is access procedure
(arg1 : GL_gl_h.GLushort;
arg2 : GL_gl_h.GLushort;
arg3 : GL_gl_h.GLushort);
pragma Convention (C, PFNGLSECONDARYCOLOR3USPROC); -- ../include/SDL/SDL_opengl.h:3405
type PFNGLSECONDARYCOLOR3USVPROC is access procedure (arg1 : access GL_gl_h.GLushort);
pragma Convention (C, PFNGLSECONDARYCOLOR3USVPROC); -- ../include/SDL/SDL_opengl.h:3406
type PFNGLSECONDARYCOLORPOINTERPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : System.Address);
pragma Convention (C, PFNGLSECONDARYCOLORPOINTERPROC); -- ../include/SDL/SDL_opengl.h:3407
type PFNGLWINDOWPOS2DPROC is access procedure (arg1 : GL_gl_h.GLdouble; arg2 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLWINDOWPOS2DPROC); -- ../include/SDL/SDL_opengl.h:3408
type PFNGLWINDOWPOS2DVPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLWINDOWPOS2DVPROC); -- ../include/SDL/SDL_opengl.h:3409
type PFNGLWINDOWPOS2FPROC is access procedure (arg1 : GL_gl_h.GLfloat; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLWINDOWPOS2FPROC); -- ../include/SDL/SDL_opengl.h:3410
type PFNGLWINDOWPOS2FVPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLWINDOWPOS2FVPROC); -- ../include/SDL/SDL_opengl.h:3411
type PFNGLWINDOWPOS2IPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLWINDOWPOS2IPROC); -- ../include/SDL/SDL_opengl.h:3412
type PFNGLWINDOWPOS2IVPROC is access procedure (arg1 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLWINDOWPOS2IVPROC); -- ../include/SDL/SDL_opengl.h:3413
type PFNGLWINDOWPOS2SPROC is access procedure (arg1 : GL_gl_h.GLshort; arg2 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLWINDOWPOS2SPROC); -- ../include/SDL/SDL_opengl.h:3414
type PFNGLWINDOWPOS2SVPROC is access procedure (arg1 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLWINDOWPOS2SVPROC); -- ../include/SDL/SDL_opengl.h:3415
type PFNGLWINDOWPOS3DPROC is access procedure
(arg1 : GL_gl_h.GLdouble;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLWINDOWPOS3DPROC); -- ../include/SDL/SDL_opengl.h:3416
type PFNGLWINDOWPOS3DVPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLWINDOWPOS3DVPROC); -- ../include/SDL/SDL_opengl.h:3417
type PFNGLWINDOWPOS3FPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLWINDOWPOS3FPROC); -- ../include/SDL/SDL_opengl.h:3418
type PFNGLWINDOWPOS3FVPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLWINDOWPOS3FVPROC); -- ../include/SDL/SDL_opengl.h:3419
type PFNGLWINDOWPOS3IPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLWINDOWPOS3IPROC); -- ../include/SDL/SDL_opengl.h:3420
type PFNGLWINDOWPOS3IVPROC is access procedure (arg1 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLWINDOWPOS3IVPROC); -- ../include/SDL/SDL_opengl.h:3421
type PFNGLWINDOWPOS3SPROC is access procedure
(arg1 : GL_gl_h.GLshort;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLWINDOWPOS3SPROC); -- ../include/SDL/SDL_opengl.h:3422
type PFNGLWINDOWPOS3SVPROC is access procedure (arg1 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLWINDOWPOS3SVPROC); -- ../include/SDL/SDL_opengl.h:3423
type PFNGLGENQUERIESPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGENQUERIESPROC); -- ../include/SDL/SDL_opengl.h:3449
type PFNGLDELETEQUERIESPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETEQUERIESPROC); -- ../include/SDL/SDL_opengl.h:3450
type PFNGLISQUERYPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISQUERYPROC); -- ../include/SDL/SDL_opengl.h:3451
type PFNGLBEGINQUERYPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLBEGINQUERYPROC); -- ../include/SDL/SDL_opengl.h:3452
type PFNGLENDQUERYPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLENDQUERYPROC); -- ../include/SDL/SDL_opengl.h:3453
type PFNGLGETQUERYIVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETQUERYIVPROC); -- ../include/SDL/SDL_opengl.h:3454
type PFNGLGETQUERYOBJECTIVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETQUERYOBJECTIVPROC); -- ../include/SDL/SDL_opengl.h:3455
type PFNGLGETQUERYOBJECTUIVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGETQUERYOBJECTUIVPROC); -- ../include/SDL/SDL_opengl.h:3456
type PFNGLBINDBUFFERPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLBINDBUFFERPROC); -- ../include/SDL/SDL_opengl.h:3457
type PFNGLDELETEBUFFERSPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETEBUFFERSPROC); -- ../include/SDL/SDL_opengl.h:3458
type PFNGLGENBUFFERSPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGENBUFFERSPROC); -- ../include/SDL/SDL_opengl.h:3459
type PFNGLISBUFFERPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISBUFFERPROC); -- ../include/SDL/SDL_opengl.h:3460
type PFNGLBUFFERDATAPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GLsizeiptr;
arg3 : System.Address;
arg4 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLBUFFERDATAPROC); -- ../include/SDL/SDL_opengl.h:3461
type PFNGLBUFFERSUBDATAPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GLintptr;
arg3 : GLsizeiptr;
arg4 : System.Address);
pragma Convention (C, PFNGLBUFFERSUBDATAPROC); -- ../include/SDL/SDL_opengl.h:3462
type PFNGLGETBUFFERSUBDATAPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GLintptr;
arg3 : GLsizeiptr;
arg4 : System.Address);
pragma Convention (C, PFNGLGETBUFFERSUBDATAPROC); -- ../include/SDL/SDL_opengl.h:3463
type PFNGLMAPBUFFERPROC is access function (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLenum) return System.Address;
pragma Convention (C, PFNGLMAPBUFFERPROC); -- ../include/SDL/SDL_opengl.h:3464
type PFNGLUNMAPBUFFERPROC is access function (arg1 : GL_gl_h.GLenum) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLUNMAPBUFFERPROC); -- ../include/SDL/SDL_opengl.h:3465
type PFNGLGETBUFFERPARAMETERIVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETBUFFERPARAMETERIVPROC); -- ../include/SDL/SDL_opengl.h:3466
type PFNGLGETBUFFERPOINTERVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : System.Address);
pragma Convention (C, PFNGLGETBUFFERPOINTERVPROC); -- ../include/SDL/SDL_opengl.h:3467
type PFNGLBLENDEQUATIONSEPARATEPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLBLENDEQUATIONSEPARATEPROC); -- ../include/SDL/SDL_opengl.h:3567
type PFNGLDRAWBUFFERSPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLenum);
pragma Convention (C, PFNGLDRAWBUFFERSPROC); -- ../include/SDL/SDL_opengl.h:3568
type PFNGLSTENCILOPSEPARATEPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLSTENCILOPSEPARATEPROC); -- ../include/SDL/SDL_opengl.h:3569
type PFNGLSTENCILFUNCSEPARATEPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLSTENCILFUNCSEPARATEPROC); -- ../include/SDL/SDL_opengl.h:3570
type PFNGLSTENCILMASKSEPARATEPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLSTENCILMASKSEPARATEPROC); -- ../include/SDL/SDL_opengl.h:3571
type PFNGLATTACHSHADERPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLATTACHSHADERPROC); -- ../include/SDL/SDL_opengl.h:3572
type PFNGLBINDATTRIBLOCATIONPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLuint;
arg3 : access GLchar);
pragma Convention (C, PFNGLBINDATTRIBLOCATIONPROC); -- ../include/SDL/SDL_opengl.h:3573
type PFNGLCOMPILESHADERPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLCOMPILESHADERPROC); -- ../include/SDL/SDL_opengl.h:3574
type PFNGLCREATEPROGRAMPROC is access function return GL_gl_h.GLuint;
pragma Convention (C, PFNGLCREATEPROGRAMPROC); -- ../include/SDL/SDL_opengl.h:3575
type PFNGLCREATESHADERPROC is access function (arg1 : GL_gl_h.GLenum) return GL_gl_h.GLuint;
pragma Convention (C, PFNGLCREATESHADERPROC); -- ../include/SDL/SDL_opengl.h:3576
type PFNGLDELETEPROGRAMPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETEPROGRAMPROC); -- ../include/SDL/SDL_opengl.h:3577
type PFNGLDELETESHADERPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETESHADERPROC); -- ../include/SDL/SDL_opengl.h:3578
type PFNGLDETACHSHADERPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLDETACHSHADERPROC); -- ../include/SDL/SDL_opengl.h:3579
type PFNGLDISABLEVERTEXATTRIBARRAYPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLDISABLEVERTEXATTRIBARRAYPROC); -- ../include/SDL/SDL_opengl.h:3580
type PFNGLENABLEVERTEXATTRIBARRAYPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLENABLEVERTEXATTRIBARRAYPROC); -- ../include/SDL/SDL_opengl.h:3581
type PFNGLGETACTIVEATTRIBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLsizei;
arg4 : access GL_gl_h.GLsizei;
arg5 : access GL_gl_h.GLint;
arg6 : access GL_gl_h.GLenum;
arg7 : access GLchar);
pragma Convention (C, PFNGLGETACTIVEATTRIBPROC); -- ../include/SDL/SDL_opengl.h:3582
type PFNGLGETACTIVEUNIFORMPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLsizei;
arg4 : access GL_gl_h.GLsizei;
arg5 : access GL_gl_h.GLint;
arg6 : access GL_gl_h.GLenum;
arg7 : access GLchar);
pragma Convention (C, PFNGLGETACTIVEUNIFORMPROC); -- ../include/SDL/SDL_opengl.h:3583
type PFNGLGETATTACHEDSHADERSPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLsizei;
arg4 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGETATTACHEDSHADERSPROC); -- ../include/SDL/SDL_opengl.h:3584
type PFNGLGETATTRIBLOCATIONPROC is access function (arg1 : GL_gl_h.GLuint; arg2 : access GLchar) return GL_gl_h.GLint;
pragma Convention (C, PFNGLGETATTRIBLOCATIONPROC); -- ../include/SDL/SDL_opengl.h:3585
type PFNGLGETPROGRAMIVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETPROGRAMIVPROC); -- ../include/SDL/SDL_opengl.h:3586
type PFNGLGETPROGRAMINFOLOGPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLsizei;
arg4 : access GLchar);
pragma Convention (C, PFNGLGETPROGRAMINFOLOGPROC); -- ../include/SDL/SDL_opengl.h:3587
type PFNGLGETSHADERIVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETSHADERIVPROC); -- ../include/SDL/SDL_opengl.h:3588
type PFNGLGETSHADERINFOLOGPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLsizei;
arg4 : access GLchar);
pragma Convention (C, PFNGLGETSHADERINFOLOGPROC); -- ../include/SDL/SDL_opengl.h:3589
type PFNGLGETSHADERSOURCEPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLsizei;
arg4 : access GLchar);
pragma Convention (C, PFNGLGETSHADERSOURCEPROC); -- ../include/SDL/SDL_opengl.h:3590
type PFNGLGETUNIFORMLOCATIONPROC is access function (arg1 : GL_gl_h.GLuint; arg2 : access GLchar) return GL_gl_h.GLint;
pragma Convention (C, PFNGLGETUNIFORMLOCATIONPROC); -- ../include/SDL/SDL_opengl.h:3591
type PFNGLGETUNIFORMFVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLint;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETUNIFORMFVPROC); -- ../include/SDL/SDL_opengl.h:3592
type PFNGLGETUNIFORMIVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLint;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETUNIFORMIVPROC); -- ../include/SDL/SDL_opengl.h:3593
type PFNGLGETVERTEXATTRIBDVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLGETVERTEXATTRIBDVPROC); -- ../include/SDL/SDL_opengl.h:3594
type PFNGLGETVERTEXATTRIBFVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETVERTEXATTRIBFVPROC); -- ../include/SDL/SDL_opengl.h:3595
type PFNGLGETVERTEXATTRIBIVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETVERTEXATTRIBIVPROC); -- ../include/SDL/SDL_opengl.h:3596
type PFNGLGETVERTEXATTRIBPOINTERVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : System.Address);
pragma Convention (C, PFNGLGETVERTEXATTRIBPOINTERVPROC); -- ../include/SDL/SDL_opengl.h:3597
type PFNGLISPROGRAMPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISPROGRAMPROC); -- ../include/SDL/SDL_opengl.h:3598
type PFNGLISSHADERPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISSHADERPROC); -- ../include/SDL/SDL_opengl.h:3599
type PFNGLLINKPROGRAMPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLLINKPROGRAMPROC); -- ../include/SDL/SDL_opengl.h:3600
type PFNGLSHADERSOURCEPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : System.Address;
arg4 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLSHADERSOURCEPROC); -- ../include/SDL/SDL_opengl.h:3601
type PFNGLUSEPROGRAMPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLUSEPROGRAMPROC); -- ../include/SDL/SDL_opengl.h:3602
type PFNGLUNIFORM1FPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM1FPROC); -- ../include/SDL/SDL_opengl.h:3603
type PFNGLUNIFORM2FPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM2FPROC); -- ../include/SDL/SDL_opengl.h:3604
type PFNGLUNIFORM3FPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM3FPROC); -- ../include/SDL/SDL_opengl.h:3605
type PFNGLUNIFORM4FPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM4FPROC); -- ../include/SDL/SDL_opengl.h:3606
type PFNGLUNIFORM1IPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM1IPROC); -- ../include/SDL/SDL_opengl.h:3607
type PFNGLUNIFORM2IPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM2IPROC); -- ../include/SDL/SDL_opengl.h:3608
type PFNGLUNIFORM3IPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM3IPROC); -- ../include/SDL/SDL_opengl.h:3609
type PFNGLUNIFORM4IPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM4IPROC); -- ../include/SDL/SDL_opengl.h:3610
type PFNGLUNIFORM1FVPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM1FVPROC); -- ../include/SDL/SDL_opengl.h:3611
type PFNGLUNIFORM2FVPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM2FVPROC); -- ../include/SDL/SDL_opengl.h:3612
type PFNGLUNIFORM3FVPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM3FVPROC); -- ../include/SDL/SDL_opengl.h:3613
type PFNGLUNIFORM4FVPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM4FVPROC); -- ../include/SDL/SDL_opengl.h:3614
type PFNGLUNIFORM1IVPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM1IVPROC); -- ../include/SDL/SDL_opengl.h:3615
type PFNGLUNIFORM2IVPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM2IVPROC); -- ../include/SDL/SDL_opengl.h:3616
type PFNGLUNIFORM3IVPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM3IVPROC); -- ../include/SDL/SDL_opengl.h:3617
type PFNGLUNIFORM4IVPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM4IVPROC); -- ../include/SDL/SDL_opengl.h:3618
type PFNGLUNIFORMMATRIX2FVPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : GL_gl_h.GLboolean;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORMMATRIX2FVPROC); -- ../include/SDL/SDL_opengl.h:3619
type PFNGLUNIFORMMATRIX3FVPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : GL_gl_h.GLboolean;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORMMATRIX3FVPROC); -- ../include/SDL/SDL_opengl.h:3620
type PFNGLUNIFORMMATRIX4FVPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : GL_gl_h.GLboolean;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORMMATRIX4FVPROC); -- ../include/SDL/SDL_opengl.h:3621
type PFNGLVALIDATEPROGRAMPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLVALIDATEPROGRAMPROC); -- ../include/SDL/SDL_opengl.h:3622
type PFNGLVERTEXATTRIB1DPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB1DPROC); -- ../include/SDL/SDL_opengl.h:3623
type PFNGLVERTEXATTRIB1DVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB1DVPROC); -- ../include/SDL/SDL_opengl.h:3624
type PFNGLVERTEXATTRIB1FPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB1FPROC); -- ../include/SDL/SDL_opengl.h:3625
type PFNGLVERTEXATTRIB1FVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB1FVPROC); -- ../include/SDL/SDL_opengl.h:3626
type PFNGLVERTEXATTRIB1SPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB1SPROC); -- ../include/SDL/SDL_opengl.h:3627
type PFNGLVERTEXATTRIB1SVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB1SVPROC); -- ../include/SDL/SDL_opengl.h:3628
type PFNGLVERTEXATTRIB2DPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB2DPROC); -- ../include/SDL/SDL_opengl.h:3629
type PFNGLVERTEXATTRIB2DVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB2DVPROC); -- ../include/SDL/SDL_opengl.h:3630
type PFNGLVERTEXATTRIB2FPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB2FPROC); -- ../include/SDL/SDL_opengl.h:3631
type PFNGLVERTEXATTRIB2FVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB2FVPROC); -- ../include/SDL/SDL_opengl.h:3632
type PFNGLVERTEXATTRIB2SPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB2SPROC); -- ../include/SDL/SDL_opengl.h:3633
type PFNGLVERTEXATTRIB2SVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB2SVPROC); -- ../include/SDL/SDL_opengl.h:3634
type PFNGLVERTEXATTRIB3DPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB3DPROC); -- ../include/SDL/SDL_opengl.h:3635
type PFNGLVERTEXATTRIB3DVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB3DVPROC); -- ../include/SDL/SDL_opengl.h:3636
type PFNGLVERTEXATTRIB3FPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB3FPROC); -- ../include/SDL/SDL_opengl.h:3637
type PFNGLVERTEXATTRIB3FVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB3FVPROC); -- ../include/SDL/SDL_opengl.h:3638
type PFNGLVERTEXATTRIB3SPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort;
arg4 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB3SPROC); -- ../include/SDL/SDL_opengl.h:3639
type PFNGLVERTEXATTRIB3SVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB3SVPROC); -- ../include/SDL/SDL_opengl.h:3640
type PFNGLVERTEXATTRIB4NBVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLbyte);
pragma Convention (C, PFNGLVERTEXATTRIB4NBVPROC); -- ../include/SDL/SDL_opengl.h:3641
type PFNGLVERTEXATTRIB4NIVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXATTRIB4NIVPROC); -- ../include/SDL/SDL_opengl.h:3642
type PFNGLVERTEXATTRIB4NSVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB4NSVPROC); -- ../include/SDL/SDL_opengl.h:3643
type PFNGLVERTEXATTRIB4NUBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLubyte;
arg3 : GL_gl_h.GLubyte;
arg4 : GL_gl_h.GLubyte;
arg5 : GL_gl_h.GLubyte);
pragma Convention (C, PFNGLVERTEXATTRIB4NUBPROC); -- ../include/SDL/SDL_opengl.h:3644
type PFNGLVERTEXATTRIB4NUBVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLubyte);
pragma Convention (C, PFNGLVERTEXATTRIB4NUBVPROC); -- ../include/SDL/SDL_opengl.h:3645
type PFNGLVERTEXATTRIB4NUIVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLVERTEXATTRIB4NUIVPROC); -- ../include/SDL/SDL_opengl.h:3646
type PFNGLVERTEXATTRIB4NUSVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLushort);
pragma Convention (C, PFNGLVERTEXATTRIB4NUSVPROC); -- ../include/SDL/SDL_opengl.h:3647
type PFNGLVERTEXATTRIB4BVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLbyte);
pragma Convention (C, PFNGLVERTEXATTRIB4BVPROC); -- ../include/SDL/SDL_opengl.h:3648
type PFNGLVERTEXATTRIB4DPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble;
arg5 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB4DPROC); -- ../include/SDL/SDL_opengl.h:3649
type PFNGLVERTEXATTRIB4DVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB4DVPROC); -- ../include/SDL/SDL_opengl.h:3650
type PFNGLVERTEXATTRIB4FPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB4FPROC); -- ../include/SDL/SDL_opengl.h:3651
type PFNGLVERTEXATTRIB4FVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB4FVPROC); -- ../include/SDL/SDL_opengl.h:3652
type PFNGLVERTEXATTRIB4IVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXATTRIB4IVPROC); -- ../include/SDL/SDL_opengl.h:3653
type PFNGLVERTEXATTRIB4SPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort;
arg4 : GL_gl_h.GLshort;
arg5 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB4SPROC); -- ../include/SDL/SDL_opengl.h:3654
type PFNGLVERTEXATTRIB4SVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB4SVPROC); -- ../include/SDL/SDL_opengl.h:3655
type PFNGLVERTEXATTRIB4UBVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLubyte);
pragma Convention (C, PFNGLVERTEXATTRIB4UBVPROC); -- ../include/SDL/SDL_opengl.h:3656
type PFNGLVERTEXATTRIB4UIVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLVERTEXATTRIB4UIVPROC); -- ../include/SDL/SDL_opengl.h:3657
type PFNGLVERTEXATTRIB4USVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLushort);
pragma Convention (C, PFNGLVERTEXATTRIB4USVPROC); -- ../include/SDL/SDL_opengl.h:3658
type PFNGLVERTEXATTRIBPOINTERPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLboolean;
arg5 : GL_gl_h.GLsizei;
arg6 : System.Address);
pragma Convention (C, PFNGLVERTEXATTRIBPOINTERPROC); -- ../include/SDL/SDL_opengl.h:3659
type PFNGLACTIVETEXTUREARBPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLACTIVETEXTUREARBPROC); -- ../include/SDL/SDL_opengl.h:3700
type PFNGLCLIENTACTIVETEXTUREARBPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLCLIENTACTIVETEXTUREARBPROC); -- ../include/SDL/SDL_opengl.h:3701
type PFNGLMULTITEXCOORD1DARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD1DARBPROC); -- ../include/SDL/SDL_opengl.h:3702
type PFNGLMULTITEXCOORD1DVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD1DVARBPROC); -- ../include/SDL/SDL_opengl.h:3703
type PFNGLMULTITEXCOORD1FARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD1FARBPROC); -- ../include/SDL/SDL_opengl.h:3704
type PFNGLMULTITEXCOORD1FVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD1FVARBPROC); -- ../include/SDL/SDL_opengl.h:3705
type PFNGLMULTITEXCOORD1IARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD1IARBPROC); -- ../include/SDL/SDL_opengl.h:3706
type PFNGLMULTITEXCOORD1IVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD1IVARBPROC); -- ../include/SDL/SDL_opengl.h:3707
type PFNGLMULTITEXCOORD1SARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD1SARBPROC); -- ../include/SDL/SDL_opengl.h:3708
type PFNGLMULTITEXCOORD1SVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD1SVARBPROC); -- ../include/SDL/SDL_opengl.h:3709
type PFNGLMULTITEXCOORD2DARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD2DARBPROC); -- ../include/SDL/SDL_opengl.h:3710
type PFNGLMULTITEXCOORD2DVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD2DVARBPROC); -- ../include/SDL/SDL_opengl.h:3711
type PFNGLMULTITEXCOORD2FARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD2FARBPROC); -- ../include/SDL/SDL_opengl.h:3712
type PFNGLMULTITEXCOORD2FVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD2FVARBPROC); -- ../include/SDL/SDL_opengl.h:3713
type PFNGLMULTITEXCOORD2IARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD2IARBPROC); -- ../include/SDL/SDL_opengl.h:3714
type PFNGLMULTITEXCOORD2IVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD2IVARBPROC); -- ../include/SDL/SDL_opengl.h:3715
type PFNGLMULTITEXCOORD2SARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD2SARBPROC); -- ../include/SDL/SDL_opengl.h:3716
type PFNGLMULTITEXCOORD2SVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD2SVARBPROC); -- ../include/SDL/SDL_opengl.h:3717
type PFNGLMULTITEXCOORD3DARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD3DARBPROC); -- ../include/SDL/SDL_opengl.h:3718
type PFNGLMULTITEXCOORD3DVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD3DVARBPROC); -- ../include/SDL/SDL_opengl.h:3719
type PFNGLMULTITEXCOORD3FARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD3FARBPROC); -- ../include/SDL/SDL_opengl.h:3720
type PFNGLMULTITEXCOORD3FVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD3FVARBPROC); -- ../include/SDL/SDL_opengl.h:3721
type PFNGLMULTITEXCOORD3IARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD3IARBPROC); -- ../include/SDL/SDL_opengl.h:3722
type PFNGLMULTITEXCOORD3IVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD3IVARBPROC); -- ../include/SDL/SDL_opengl.h:3723
type PFNGLMULTITEXCOORD3SARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort;
arg4 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD3SARBPROC); -- ../include/SDL/SDL_opengl.h:3724
type PFNGLMULTITEXCOORD3SVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD3SVARBPROC); -- ../include/SDL/SDL_opengl.h:3725
type PFNGLMULTITEXCOORD4DARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble;
arg5 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD4DARBPROC); -- ../include/SDL/SDL_opengl.h:3726
type PFNGLMULTITEXCOORD4DVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTITEXCOORD4DVARBPROC); -- ../include/SDL/SDL_opengl.h:3727
type PFNGLMULTITEXCOORD4FARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD4FARBPROC); -- ../include/SDL/SDL_opengl.h:3728
type PFNGLMULTITEXCOORD4FVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTITEXCOORD4FVARBPROC); -- ../include/SDL/SDL_opengl.h:3729
type PFNGLMULTITEXCOORD4IARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD4IARBPROC); -- ../include/SDL/SDL_opengl.h:3730
type PFNGLMULTITEXCOORD4IVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTITEXCOORD4IVARBPROC); -- ../include/SDL/SDL_opengl.h:3731
type PFNGLMULTITEXCOORD4SARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort;
arg4 : GL_gl_h.GLshort;
arg5 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD4SARBPROC); -- ../include/SDL/SDL_opengl.h:3732
type PFNGLMULTITEXCOORD4SVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLMULTITEXCOORD4SVARBPROC); -- ../include/SDL/SDL_opengl.h:3733
type PFNGLLOADTRANSPOSEMATRIXFARBPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLLOADTRANSPOSEMATRIXFARBPROC); -- ../include/SDL/SDL_opengl.h:3744
type PFNGLLOADTRANSPOSEMATRIXDARBPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLLOADTRANSPOSEMATRIXDARBPROC); -- ../include/SDL/SDL_opengl.h:3745
type PFNGLMULTTRANSPOSEMATRIXFARBPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMULTTRANSPOSEMATRIXFARBPROC); -- ../include/SDL/SDL_opengl.h:3746
type PFNGLMULTTRANSPOSEMATRIXDARBPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLMULTTRANSPOSEMATRIXDARBPROC); -- ../include/SDL/SDL_opengl.h:3747
type PFNGLSAMPLECOVERAGEARBPROC is access procedure (arg1 : GL_gl_h.GLclampf; arg2 : GL_gl_h.GLboolean);
pragma Convention (C, PFNGLSAMPLECOVERAGEARBPROC); -- ../include/SDL/SDL_opengl.h:3755
type PFNGLCOMPRESSEDTEXIMAGE3DARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLsizei;
arg7 : GL_gl_h.GLint;
arg8 : GL_gl_h.GLsizei;
arg9 : System.Address);
pragma Convention (C, PFNGLCOMPRESSEDTEXIMAGE3DARBPROC); -- ../include/SDL/SDL_opengl.h:3777
type PFNGLCOMPRESSEDTEXIMAGE2DARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLint;
arg7 : GL_gl_h.GLsizei;
arg8 : System.Address);
pragma Convention (C, PFNGLCOMPRESSEDTEXIMAGE2DARBPROC); -- ../include/SDL/SDL_opengl.h:3778
type PFNGLCOMPRESSEDTEXIMAGE1DARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLsizei;
arg7 : System.Address);
pragma Convention (C, PFNGLCOMPRESSEDTEXIMAGE1DARBPROC); -- ../include/SDL/SDL_opengl.h:3779
type PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLsizei;
arg7 : GL_gl_h.GLsizei;
arg8 : GL_gl_h.GLsizei;
arg9 : GL_gl_h.GLenum;
arg10 : GL_gl_h.GLsizei;
arg11 : System.Address);
pragma Convention (C, PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC); -- ../include/SDL/SDL_opengl.h:3780
type PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLsizei;
arg7 : GL_gl_h.GLenum;
arg8 : GL_gl_h.GLsizei;
arg9 : System.Address);
pragma Convention (C, PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC); -- ../include/SDL/SDL_opengl.h:3781
type PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLenum;
arg6 : GL_gl_h.GLsizei;
arg7 : System.Address);
pragma Convention (C, PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC); -- ../include/SDL/SDL_opengl.h:3782
type PFNGLGETCOMPRESSEDTEXIMAGEARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : System.Address);
pragma Convention (C, PFNGLGETCOMPRESSEDTEXIMAGEARBPROC); -- ../include/SDL/SDL_opengl.h:3783
type PFNGLPOINTPARAMETERFARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPOINTPARAMETERFARBPROC); -- ../include/SDL/SDL_opengl.h:3796
type PFNGLPOINTPARAMETERFVARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPOINTPARAMETERFVARBPROC); -- ../include/SDL/SDL_opengl.h:3797
type PFNGLWEIGHTBVARBPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : access GL_gl_h.GLbyte);
pragma Convention (C, PFNGLWEIGHTBVARBPROC); -- ../include/SDL/SDL_opengl.h:3814
type PFNGLWEIGHTSVARBPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLWEIGHTSVARBPROC); -- ../include/SDL/SDL_opengl.h:3815
type PFNGLWEIGHTIVARBPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLWEIGHTIVARBPROC); -- ../include/SDL/SDL_opengl.h:3816
type PFNGLWEIGHTFVARBPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLWEIGHTFVARBPROC); -- ../include/SDL/SDL_opengl.h:3817
type PFNGLWEIGHTDVARBPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLWEIGHTDVARBPROC); -- ../include/SDL/SDL_opengl.h:3818
type PFNGLWEIGHTUBVARBPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : access GL_gl_h.GLubyte);
pragma Convention (C, PFNGLWEIGHTUBVARBPROC); -- ../include/SDL/SDL_opengl.h:3819
type PFNGLWEIGHTUSVARBPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : access GL_gl_h.GLushort);
pragma Convention (C, PFNGLWEIGHTUSVARBPROC); -- ../include/SDL/SDL_opengl.h:3820
type PFNGLWEIGHTUIVARBPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLWEIGHTUIVARBPROC); -- ../include/SDL/SDL_opengl.h:3821
type PFNGLWEIGHTPOINTERARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : System.Address);
pragma Convention (C, PFNGLWEIGHTPOINTERARBPROC); -- ../include/SDL/SDL_opengl.h:3822
type PFNGLVERTEXBLENDARBPROC is access procedure (arg1 : GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXBLENDARBPROC); -- ../include/SDL/SDL_opengl.h:3823
type PFNGLCURRENTPALETTEMATRIXARBPROC is access procedure (arg1 : GL_gl_h.GLint);
pragma Convention (C, PFNGLCURRENTPALETTEMATRIXARBPROC); -- ../include/SDL/SDL_opengl.h:3835
type PFNGLMATRIXINDEXUBVARBPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : access GL_gl_h.GLubyte);
pragma Convention (C, PFNGLMATRIXINDEXUBVARBPROC); -- ../include/SDL/SDL_opengl.h:3836
type PFNGLMATRIXINDEXUSVARBPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : access GL_gl_h.GLushort);
pragma Convention (C, PFNGLMATRIXINDEXUSVARBPROC); -- ../include/SDL/SDL_opengl.h:3837
type PFNGLMATRIXINDEXUIVARBPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLMATRIXINDEXUIVARBPROC); -- ../include/SDL/SDL_opengl.h:3838
type PFNGLMATRIXINDEXPOINTERARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : System.Address);
pragma Convention (C, PFNGLMATRIXINDEXPOINTERARBPROC); -- ../include/SDL/SDL_opengl.h:3839
type PFNGLWINDOWPOS2DARBPROC is access procedure (arg1 : GL_gl_h.GLdouble; arg2 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLWINDOWPOS2DARBPROC); -- ../include/SDL/SDL_opengl.h:3890
type PFNGLWINDOWPOS2DVARBPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLWINDOWPOS2DVARBPROC); -- ../include/SDL/SDL_opengl.h:3891
type PFNGLWINDOWPOS2FARBPROC is access procedure (arg1 : GL_gl_h.GLfloat; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLWINDOWPOS2FARBPROC); -- ../include/SDL/SDL_opengl.h:3892
type PFNGLWINDOWPOS2FVARBPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLWINDOWPOS2FVARBPROC); -- ../include/SDL/SDL_opengl.h:3893
type PFNGLWINDOWPOS2IARBPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLWINDOWPOS2IARBPROC); -- ../include/SDL/SDL_opengl.h:3894
type PFNGLWINDOWPOS2IVARBPROC is access procedure (arg1 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLWINDOWPOS2IVARBPROC); -- ../include/SDL/SDL_opengl.h:3895
type PFNGLWINDOWPOS2SARBPROC is access procedure (arg1 : GL_gl_h.GLshort; arg2 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLWINDOWPOS2SARBPROC); -- ../include/SDL/SDL_opengl.h:3896
type PFNGLWINDOWPOS2SVARBPROC is access procedure (arg1 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLWINDOWPOS2SVARBPROC); -- ../include/SDL/SDL_opengl.h:3897
type PFNGLWINDOWPOS3DARBPROC is access procedure
(arg1 : GL_gl_h.GLdouble;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLWINDOWPOS3DARBPROC); -- ../include/SDL/SDL_opengl.h:3898
type PFNGLWINDOWPOS3DVARBPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLWINDOWPOS3DVARBPROC); -- ../include/SDL/SDL_opengl.h:3899
type PFNGLWINDOWPOS3FARBPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLWINDOWPOS3FARBPROC); -- ../include/SDL/SDL_opengl.h:3900
type PFNGLWINDOWPOS3FVARBPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLWINDOWPOS3FVARBPROC); -- ../include/SDL/SDL_opengl.h:3901
type PFNGLWINDOWPOS3IARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLWINDOWPOS3IARBPROC); -- ../include/SDL/SDL_opengl.h:3902
type PFNGLWINDOWPOS3IVARBPROC is access procedure (arg1 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLWINDOWPOS3IVARBPROC); -- ../include/SDL/SDL_opengl.h:3903
type PFNGLWINDOWPOS3SARBPROC is access procedure
(arg1 : GL_gl_h.GLshort;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLWINDOWPOS3SARBPROC); -- ../include/SDL/SDL_opengl.h:3904
type PFNGLWINDOWPOS3SVARBPROC is access procedure (arg1 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLWINDOWPOS3SVARBPROC); -- ../include/SDL/SDL_opengl.h:3905
type PFNGLVERTEXATTRIB1DARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB1DARBPROC); -- ../include/SDL/SDL_opengl.h:3974
type PFNGLVERTEXATTRIB1DVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB1DVARBPROC); -- ../include/SDL/SDL_opengl.h:3975
type PFNGLVERTEXATTRIB1FARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB1FARBPROC); -- ../include/SDL/SDL_opengl.h:3976
type PFNGLVERTEXATTRIB1FVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB1FVARBPROC); -- ../include/SDL/SDL_opengl.h:3977
type PFNGLVERTEXATTRIB1SARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB1SARBPROC); -- ../include/SDL/SDL_opengl.h:3978
type PFNGLVERTEXATTRIB1SVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB1SVARBPROC); -- ../include/SDL/SDL_opengl.h:3979
type PFNGLVERTEXATTRIB2DARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB2DARBPROC); -- ../include/SDL/SDL_opengl.h:3980
type PFNGLVERTEXATTRIB2DVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB2DVARBPROC); -- ../include/SDL/SDL_opengl.h:3981
type PFNGLVERTEXATTRIB2FARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB2FARBPROC); -- ../include/SDL/SDL_opengl.h:3982
type PFNGLVERTEXATTRIB2FVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB2FVARBPROC); -- ../include/SDL/SDL_opengl.h:3983
type PFNGLVERTEXATTRIB2SARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB2SARBPROC); -- ../include/SDL/SDL_opengl.h:3984
type PFNGLVERTEXATTRIB2SVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB2SVARBPROC); -- ../include/SDL/SDL_opengl.h:3985
type PFNGLVERTEXATTRIB3DARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB3DARBPROC); -- ../include/SDL/SDL_opengl.h:3986
type PFNGLVERTEXATTRIB3DVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB3DVARBPROC); -- ../include/SDL/SDL_opengl.h:3987
type PFNGLVERTEXATTRIB3FARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB3FARBPROC); -- ../include/SDL/SDL_opengl.h:3988
type PFNGLVERTEXATTRIB3FVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB3FVARBPROC); -- ../include/SDL/SDL_opengl.h:3989
type PFNGLVERTEXATTRIB3SARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort;
arg4 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB3SARBPROC); -- ../include/SDL/SDL_opengl.h:3990
type PFNGLVERTEXATTRIB3SVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB3SVARBPROC); -- ../include/SDL/SDL_opengl.h:3991
type PFNGLVERTEXATTRIB4NBVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLbyte);
pragma Convention (C, PFNGLVERTEXATTRIB4NBVARBPROC); -- ../include/SDL/SDL_opengl.h:3992
type PFNGLVERTEXATTRIB4NIVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXATTRIB4NIVARBPROC); -- ../include/SDL/SDL_opengl.h:3993
type PFNGLVERTEXATTRIB4NSVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB4NSVARBPROC); -- ../include/SDL/SDL_opengl.h:3994
type PFNGLVERTEXATTRIB4NUBARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLubyte;
arg3 : GL_gl_h.GLubyte;
arg4 : GL_gl_h.GLubyte;
arg5 : GL_gl_h.GLubyte);
pragma Convention (C, PFNGLVERTEXATTRIB4NUBARBPROC); -- ../include/SDL/SDL_opengl.h:3995
type PFNGLVERTEXATTRIB4NUBVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLubyte);
pragma Convention (C, PFNGLVERTEXATTRIB4NUBVARBPROC); -- ../include/SDL/SDL_opengl.h:3996
type PFNGLVERTEXATTRIB4NUIVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLVERTEXATTRIB4NUIVARBPROC); -- ../include/SDL/SDL_opengl.h:3997
type PFNGLVERTEXATTRIB4NUSVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLushort);
pragma Convention (C, PFNGLVERTEXATTRIB4NUSVARBPROC); -- ../include/SDL/SDL_opengl.h:3998
type PFNGLVERTEXATTRIB4BVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLbyte);
pragma Convention (C, PFNGLVERTEXATTRIB4BVARBPROC); -- ../include/SDL/SDL_opengl.h:3999
type PFNGLVERTEXATTRIB4DARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble;
arg5 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB4DARBPROC); -- ../include/SDL/SDL_opengl.h:4000
type PFNGLVERTEXATTRIB4DVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB4DVARBPROC); -- ../include/SDL/SDL_opengl.h:4001
type PFNGLVERTEXATTRIB4FARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB4FARBPROC); -- ../include/SDL/SDL_opengl.h:4002
type PFNGLVERTEXATTRIB4FVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB4FVARBPROC); -- ../include/SDL/SDL_opengl.h:4003
type PFNGLVERTEXATTRIB4IVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXATTRIB4IVARBPROC); -- ../include/SDL/SDL_opengl.h:4004
type PFNGLVERTEXATTRIB4SARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort;
arg4 : GL_gl_h.GLshort;
arg5 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB4SARBPROC); -- ../include/SDL/SDL_opengl.h:4005
type PFNGLVERTEXATTRIB4SVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB4SVARBPROC); -- ../include/SDL/SDL_opengl.h:4006
type PFNGLVERTEXATTRIB4UBVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLubyte);
pragma Convention (C, PFNGLVERTEXATTRIB4UBVARBPROC); -- ../include/SDL/SDL_opengl.h:4007
type PFNGLVERTEXATTRIB4UIVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLVERTEXATTRIB4UIVARBPROC); -- ../include/SDL/SDL_opengl.h:4008
type PFNGLVERTEXATTRIB4USVARBPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLushort);
pragma Convention (C, PFNGLVERTEXATTRIB4USVARBPROC); -- ../include/SDL/SDL_opengl.h:4009
type PFNGLVERTEXATTRIBPOINTERARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLboolean;
arg5 : GL_gl_h.GLsizei;
arg6 : System.Address);
pragma Convention (C, PFNGLVERTEXATTRIBPOINTERARBPROC); -- ../include/SDL/SDL_opengl.h:4010
type PFNGLENABLEVERTEXATTRIBARRAYARBPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLENABLEVERTEXATTRIBARRAYARBPROC); -- ../include/SDL/SDL_opengl.h:4011
type PFNGLDISABLEVERTEXATTRIBARRAYARBPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLDISABLEVERTEXATTRIBARRAYARBPROC); -- ../include/SDL/SDL_opengl.h:4012
type PFNGLPROGRAMSTRINGARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : System.Address);
pragma Convention (C, PFNGLPROGRAMSTRINGARBPROC); -- ../include/SDL/SDL_opengl.h:4013
type PFNGLBINDPROGRAMARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLBINDPROGRAMARBPROC); -- ../include/SDL/SDL_opengl.h:4014
type PFNGLDELETEPROGRAMSARBPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETEPROGRAMSARBPROC); -- ../include/SDL/SDL_opengl.h:4015
type PFNGLGENPROGRAMSARBPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGENPROGRAMSARBPROC); -- ../include/SDL/SDL_opengl.h:4016
type PFNGLPROGRAMENVPARAMETER4DARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble;
arg5 : GL_gl_h.GLdouble;
arg6 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLPROGRAMENVPARAMETER4DARBPROC); -- ../include/SDL/SDL_opengl.h:4017
type PFNGLPROGRAMENVPARAMETER4DVARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLPROGRAMENVPARAMETER4DVARBPROC); -- ../include/SDL/SDL_opengl.h:4018
type PFNGLPROGRAMENVPARAMETER4FARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPROGRAMENVPARAMETER4FARBPROC); -- ../include/SDL/SDL_opengl.h:4019
type PFNGLPROGRAMENVPARAMETER4FVARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPROGRAMENVPARAMETER4FVARBPROC); -- ../include/SDL/SDL_opengl.h:4020
type PFNGLPROGRAMLOCALPARAMETER4DARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble;
arg5 : GL_gl_h.GLdouble;
arg6 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLPROGRAMLOCALPARAMETER4DARBPROC); -- ../include/SDL/SDL_opengl.h:4021
type PFNGLPROGRAMLOCALPARAMETER4DVARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLPROGRAMLOCALPARAMETER4DVARBPROC); -- ../include/SDL/SDL_opengl.h:4022
type PFNGLPROGRAMLOCALPARAMETER4FARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPROGRAMLOCALPARAMETER4FARBPROC); -- ../include/SDL/SDL_opengl.h:4023
type PFNGLPROGRAMLOCALPARAMETER4FVARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPROGRAMLOCALPARAMETER4FVARBPROC); -- ../include/SDL/SDL_opengl.h:4024
type PFNGLGETPROGRAMENVPARAMETERDVARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLGETPROGRAMENVPARAMETERDVARBPROC); -- ../include/SDL/SDL_opengl.h:4025
type PFNGLGETPROGRAMENVPARAMETERFVARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETPROGRAMENVPARAMETERFVARBPROC); -- ../include/SDL/SDL_opengl.h:4026
type PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC); -- ../include/SDL/SDL_opengl.h:4027
type PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC); -- ../include/SDL/SDL_opengl.h:4028
type PFNGLGETPROGRAMIVARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETPROGRAMIVARBPROC); -- ../include/SDL/SDL_opengl.h:4029
type PFNGLGETPROGRAMSTRINGARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : System.Address);
pragma Convention (C, PFNGLGETPROGRAMSTRINGARBPROC); -- ../include/SDL/SDL_opengl.h:4030
type PFNGLGETVERTEXATTRIBDVARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLGETVERTEXATTRIBDVARBPROC); -- ../include/SDL/SDL_opengl.h:4031
type PFNGLGETVERTEXATTRIBFVARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETVERTEXATTRIBFVARBPROC); -- ../include/SDL/SDL_opengl.h:4032
type PFNGLGETVERTEXATTRIBIVARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETVERTEXATTRIBIVARBPROC); -- ../include/SDL/SDL_opengl.h:4033
type PFNGLGETVERTEXATTRIBPOINTERVARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : System.Address);
pragma Convention (C, PFNGLGETVERTEXATTRIBPOINTERVARBPROC); -- ../include/SDL/SDL_opengl.h:4034
type PFNGLISPROGRAMARBPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISPROGRAMARBPROC); -- ../include/SDL/SDL_opengl.h:4035
type PFNGLBINDBUFFERARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLBINDBUFFERARBPROC); -- ../include/SDL/SDL_opengl.h:4058
type PFNGLDELETEBUFFERSARBPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETEBUFFERSARBPROC); -- ../include/SDL/SDL_opengl.h:4059
type PFNGLGENBUFFERSARBPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGENBUFFERSARBPROC); -- ../include/SDL/SDL_opengl.h:4060
type PFNGLISBUFFERARBPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISBUFFERARBPROC); -- ../include/SDL/SDL_opengl.h:4061
type PFNGLBUFFERDATAARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GLsizeiptrARB;
arg3 : System.Address;
arg4 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLBUFFERDATAARBPROC); -- ../include/SDL/SDL_opengl.h:4062
type PFNGLBUFFERSUBDATAARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GLintptrARB;
arg3 : GLsizeiptrARB;
arg4 : System.Address);
pragma Convention (C, PFNGLBUFFERSUBDATAARBPROC); -- ../include/SDL/SDL_opengl.h:4063
type PFNGLGETBUFFERSUBDATAARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GLintptrARB;
arg3 : GLsizeiptrARB;
arg4 : System.Address);
pragma Convention (C, PFNGLGETBUFFERSUBDATAARBPROC); -- ../include/SDL/SDL_opengl.h:4064
type PFNGLMAPBUFFERARBPROC is access function (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLenum) return System.Address;
pragma Convention (C, PFNGLMAPBUFFERARBPROC); -- ../include/SDL/SDL_opengl.h:4065
type PFNGLUNMAPBUFFERARBPROC is access function (arg1 : GL_gl_h.GLenum) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLUNMAPBUFFERARBPROC); -- ../include/SDL/SDL_opengl.h:4066
type PFNGLGETBUFFERPARAMETERIVARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETBUFFERPARAMETERIVARBPROC); -- ../include/SDL/SDL_opengl.h:4067
type PFNGLGETBUFFERPOINTERVARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : System.Address);
pragma Convention (C, PFNGLGETBUFFERPOINTERVARBPROC); -- ../include/SDL/SDL_opengl.h:4068
type PFNGLGENQUERIESARBPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGENQUERIESARBPROC); -- ../include/SDL/SDL_opengl.h:4083
type PFNGLDELETEQUERIESARBPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETEQUERIESARBPROC); -- ../include/SDL/SDL_opengl.h:4084
type PFNGLISQUERYARBPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISQUERYARBPROC); -- ../include/SDL/SDL_opengl.h:4085
type PFNGLBEGINQUERYARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLBEGINQUERYARBPROC); -- ../include/SDL/SDL_opengl.h:4086
type PFNGLENDQUERYARBPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLENDQUERYARBPROC); -- ../include/SDL/SDL_opengl.h:4087
type PFNGLGETQUERYIVARBPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETQUERYIVARBPROC); -- ../include/SDL/SDL_opengl.h:4088
type PFNGLGETQUERYOBJECTIVARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETQUERYOBJECTIVARBPROC); -- ../include/SDL/SDL_opengl.h:4089
type PFNGLGETQUERYOBJECTUIVARBPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGETQUERYOBJECTUIVARBPROC); -- ../include/SDL/SDL_opengl.h:4090
type PFNGLDELETEOBJECTARBPROC is access procedure (arg1 : GLhandleARB);
pragma Convention (C, PFNGLDELETEOBJECTARBPROC); -- ../include/SDL/SDL_opengl.h:4136
type PFNGLGETHANDLEARBPROC is access function (arg1 : GL_gl_h.GLenum) return GLhandleARB;
pragma Convention (C, PFNGLGETHANDLEARBPROC); -- ../include/SDL/SDL_opengl.h:4137
type PFNGLDETACHOBJECTARBPROC is access procedure (arg1 : GLhandleARB; arg2 : GLhandleARB);
pragma Convention (C, PFNGLDETACHOBJECTARBPROC); -- ../include/SDL/SDL_opengl.h:4138
type PFNGLCREATESHADEROBJECTARBPROC is access function (arg1 : GL_gl_h.GLenum) return GLhandleARB;
pragma Convention (C, PFNGLCREATESHADEROBJECTARBPROC); -- ../include/SDL/SDL_opengl.h:4139
type PFNGLSHADERSOURCEARBPROC is access procedure
(arg1 : GLhandleARB;
arg2 : GL_gl_h.GLsizei;
arg3 : System.Address;
arg4 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLSHADERSOURCEARBPROC); -- ../include/SDL/SDL_opengl.h:4140
type PFNGLCOMPILESHADERARBPROC is access procedure (arg1 : GLhandleARB);
pragma Convention (C, PFNGLCOMPILESHADERARBPROC); -- ../include/SDL/SDL_opengl.h:4141
type PFNGLCREATEPROGRAMOBJECTARBPROC is access function return GLhandleARB;
pragma Convention (C, PFNGLCREATEPROGRAMOBJECTARBPROC); -- ../include/SDL/SDL_opengl.h:4142
type PFNGLATTACHOBJECTARBPROC is access procedure (arg1 : GLhandleARB; arg2 : GLhandleARB);
pragma Convention (C, PFNGLATTACHOBJECTARBPROC); -- ../include/SDL/SDL_opengl.h:4143
type PFNGLLINKPROGRAMARBPROC is access procedure (arg1 : GLhandleARB);
pragma Convention (C, PFNGLLINKPROGRAMARBPROC); -- ../include/SDL/SDL_opengl.h:4144
type PFNGLUSEPROGRAMOBJECTARBPROC is access procedure (arg1 : GLhandleARB);
pragma Convention (C, PFNGLUSEPROGRAMOBJECTARBPROC); -- ../include/SDL/SDL_opengl.h:4145
type PFNGLVALIDATEPROGRAMARBPROC is access procedure (arg1 : GLhandleARB);
pragma Convention (C, PFNGLVALIDATEPROGRAMARBPROC); -- ../include/SDL/SDL_opengl.h:4146
type PFNGLUNIFORM1FARBPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM1FARBPROC); -- ../include/SDL/SDL_opengl.h:4147
type PFNGLUNIFORM2FARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM2FARBPROC); -- ../include/SDL/SDL_opengl.h:4148
type PFNGLUNIFORM3FARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM3FARBPROC); -- ../include/SDL/SDL_opengl.h:4149
type PFNGLUNIFORM4FARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM4FARBPROC); -- ../include/SDL/SDL_opengl.h:4150
type PFNGLUNIFORM1IARBPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM1IARBPROC); -- ../include/SDL/SDL_opengl.h:4151
type PFNGLUNIFORM2IARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM2IARBPROC); -- ../include/SDL/SDL_opengl.h:4152
type PFNGLUNIFORM3IARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM3IARBPROC); -- ../include/SDL/SDL_opengl.h:4153
type PFNGLUNIFORM4IARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM4IARBPROC); -- ../include/SDL/SDL_opengl.h:4154
type PFNGLUNIFORM1FVARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM1FVARBPROC); -- ../include/SDL/SDL_opengl.h:4155
type PFNGLUNIFORM2FVARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM2FVARBPROC); -- ../include/SDL/SDL_opengl.h:4156
type PFNGLUNIFORM3FVARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM3FVARBPROC); -- ../include/SDL/SDL_opengl.h:4157
type PFNGLUNIFORM4FVARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORM4FVARBPROC); -- ../include/SDL/SDL_opengl.h:4158
type PFNGLUNIFORM1IVARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM1IVARBPROC); -- ../include/SDL/SDL_opengl.h:4159
type PFNGLUNIFORM2IVARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM2IVARBPROC); -- ../include/SDL/SDL_opengl.h:4160
type PFNGLUNIFORM3IVARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM3IVARBPROC); -- ../include/SDL/SDL_opengl.h:4161
type PFNGLUNIFORM4IVARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLUNIFORM4IVARBPROC); -- ../include/SDL/SDL_opengl.h:4162
type PFNGLUNIFORMMATRIX2FVARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : GL_gl_h.GLboolean;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORMMATRIX2FVARBPROC); -- ../include/SDL/SDL_opengl.h:4163
type PFNGLUNIFORMMATRIX3FVARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : GL_gl_h.GLboolean;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORMMATRIX3FVARBPROC); -- ../include/SDL/SDL_opengl.h:4164
type PFNGLUNIFORMMATRIX4FVARBPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLsizei;
arg3 : GL_gl_h.GLboolean;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLUNIFORMMATRIX4FVARBPROC); -- ../include/SDL/SDL_opengl.h:4165
type PFNGLGETOBJECTPARAMETERFVARBPROC is access procedure
(arg1 : GLhandleARB;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETOBJECTPARAMETERFVARBPROC); -- ../include/SDL/SDL_opengl.h:4166
type PFNGLGETOBJECTPARAMETERIVARBPROC is access procedure
(arg1 : GLhandleARB;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETOBJECTPARAMETERIVARBPROC); -- ../include/SDL/SDL_opengl.h:4167
type PFNGLGETINFOLOGARBPROC is access procedure
(arg1 : GLhandleARB;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLsizei;
arg4 : access GLcharARB);
pragma Convention (C, PFNGLGETINFOLOGARBPROC); -- ../include/SDL/SDL_opengl.h:4168
type PFNGLGETATTACHEDOBJECTSARBPROC is access procedure
(arg1 : GLhandleARB;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLsizei;
arg4 : access GLhandleARB);
pragma Convention (C, PFNGLGETATTACHEDOBJECTSARBPROC); -- ../include/SDL/SDL_opengl.h:4169
type PFNGLGETUNIFORMLOCATIONARBPROC is access function (arg1 : GLhandleARB; arg2 : access GLcharARB) return GL_gl_h.GLint;
pragma Convention (C, PFNGLGETUNIFORMLOCATIONARBPROC); -- ../include/SDL/SDL_opengl.h:4170
type PFNGLGETACTIVEUNIFORMARBPROC is access procedure
(arg1 : GLhandleARB;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLsizei;
arg4 : access GL_gl_h.GLsizei;
arg5 : access GL_gl_h.GLint;
arg6 : access GL_gl_h.GLenum;
arg7 : access GLcharARB);
pragma Convention (C, PFNGLGETACTIVEUNIFORMARBPROC); -- ../include/SDL/SDL_opengl.h:4171
type PFNGLGETUNIFORMFVARBPROC is access procedure
(arg1 : GLhandleARB;
arg2 : GL_gl_h.GLint;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETUNIFORMFVARBPROC); -- ../include/SDL/SDL_opengl.h:4172
type PFNGLGETUNIFORMIVARBPROC is access procedure
(arg1 : GLhandleARB;
arg2 : GL_gl_h.GLint;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETUNIFORMIVARBPROC); -- ../include/SDL/SDL_opengl.h:4173
type PFNGLGETSHADERSOURCEARBPROC is access procedure
(arg1 : GLhandleARB;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLsizei;
arg4 : access GLcharARB);
pragma Convention (C, PFNGLGETSHADERSOURCEARBPROC); -- ../include/SDL/SDL_opengl.h:4174
type PFNGLBINDATTRIBLOCATIONARBPROC is access procedure
(arg1 : GLhandleARB;
arg2 : GL_gl_h.GLuint;
arg3 : access GLcharARB);
pragma Convention (C, PFNGLBINDATTRIBLOCATIONARBPROC); -- ../include/SDL/SDL_opengl.h:4184
type PFNGLGETACTIVEATTRIBARBPROC is access procedure
(arg1 : GLhandleARB;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLsizei;
arg4 : access GL_gl_h.GLsizei;
arg5 : access GL_gl_h.GLint;
arg6 : access GL_gl_h.GLenum;
arg7 : access GLcharARB);
pragma Convention (C, PFNGLGETACTIVEATTRIBARBPROC); -- ../include/SDL/SDL_opengl.h:4185
type PFNGLGETATTRIBLOCATIONARBPROC is access function (arg1 : GLhandleARB; arg2 : access GLcharARB) return GL_gl_h.GLint;
pragma Convention (C, PFNGLGETATTRIBLOCATIONARBPROC); -- ../include/SDL/SDL_opengl.h:4186
type PFNGLDRAWBUFFERSARBPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLenum);
pragma Convention (C, PFNGLDRAWBUFFERSARBPROC); -- ../include/SDL/SDL_opengl.h:4214
type PFNGLCLAMPCOLORARBPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLCLAMPCOLORARBPROC); -- ../include/SDL/SDL_opengl.h:4226
type PFNGLBLENDCOLOREXTPROC is access procedure
(arg1 : GL_gl_h.GLclampf;
arg2 : GL_gl_h.GLclampf;
arg3 : GL_gl_h.GLclampf;
arg4 : GL_gl_h.GLclampf);
pragma Convention (C, PFNGLBLENDCOLOREXTPROC); -- ../include/SDL/SDL_opengl.h:4250
type PFNGLPOLYGONOFFSETEXTPROC is access procedure (arg1 : GL_gl_h.GLfloat; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPOLYGONOFFSETEXTPROC); -- ../include/SDL/SDL_opengl.h:4258
type PFNGLTEXIMAGE3DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLsizei;
arg7 : GL_gl_h.GLint;
arg8 : GL_gl_h.GLenum;
arg9 : GL_gl_h.GLenum;
arg10 : System.Address);
pragma Convention (C, PFNGLTEXIMAGE3DEXTPROC); -- ../include/SDL/SDL_opengl.h:4271
type PFNGLTEXSUBIMAGE3DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLsizei;
arg7 : GL_gl_h.GLsizei;
arg8 : GL_gl_h.GLsizei;
arg9 : GL_gl_h.GLenum;
arg10 : GL_gl_h.GLenum;
arg11 : System.Address);
pragma Convention (C, PFNGLTEXSUBIMAGE3DEXTPROC); -- ../include/SDL/SDL_opengl.h:4272
type PFNGLGETTEXFILTERFUNCSGISPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETTEXFILTERFUNCSGISPROC); -- ../include/SDL/SDL_opengl.h:4281
type PFNGLTEXFILTERFUNCSGISPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXFILTERFUNCSGISPROC); -- ../include/SDL/SDL_opengl.h:4282
type PFNGLTEXSUBIMAGE1DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLenum;
arg6 : GL_gl_h.GLenum;
arg7 : System.Address);
pragma Convention (C, PFNGLTEXSUBIMAGE1DEXTPROC); -- ../include/SDL/SDL_opengl.h:4291
type PFNGLTEXSUBIMAGE2DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLsizei;
arg7 : GL_gl_h.GLenum;
arg8 : GL_gl_h.GLenum;
arg9 : System.Address);
pragma Convention (C, PFNGLTEXSUBIMAGE2DEXTPROC); -- ../include/SDL/SDL_opengl.h:4292
type PFNGLCOPYTEXIMAGE1DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLsizei;
arg7 : GL_gl_h.GLint);
pragma Convention (C, PFNGLCOPYTEXIMAGE1DEXTPROC); -- ../include/SDL/SDL_opengl.h:4304
type PFNGLCOPYTEXIMAGE2DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLsizei;
arg7 : GL_gl_h.GLsizei;
arg8 : GL_gl_h.GLint);
pragma Convention (C, PFNGLCOPYTEXIMAGE2DEXTPROC); -- ../include/SDL/SDL_opengl.h:4305
type PFNGLCOPYTEXSUBIMAGE1DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLCOPYTEXSUBIMAGE1DEXTPROC); -- ../include/SDL/SDL_opengl.h:4306
type PFNGLCOPYTEXSUBIMAGE2DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLint;
arg7 : GL_gl_h.GLsizei;
arg8 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLCOPYTEXSUBIMAGE2DEXTPROC); -- ../include/SDL/SDL_opengl.h:4307
type PFNGLCOPYTEXSUBIMAGE3DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLint;
arg7 : GL_gl_h.GLint;
arg8 : GL_gl_h.GLsizei;
arg9 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLCOPYTEXSUBIMAGE3DEXTPROC); -- ../include/SDL/SDL_opengl.h:4308
type PFNGLGETHISTOGRAMEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLboolean;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum;
arg5 : System.Address);
pragma Convention (C, PFNGLGETHISTOGRAMEXTPROC); -- ../include/SDL/SDL_opengl.h:4325
type PFNGLGETHISTOGRAMPARAMETERFVEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETHISTOGRAMPARAMETERFVEXTPROC); -- ../include/SDL/SDL_opengl.h:4326
type PFNGLGETHISTOGRAMPARAMETERIVEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETHISTOGRAMPARAMETERIVEXTPROC); -- ../include/SDL/SDL_opengl.h:4327
type PFNGLGETMINMAXEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLboolean;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum;
arg5 : System.Address);
pragma Convention (C, PFNGLGETMINMAXEXTPROC); -- ../include/SDL/SDL_opengl.h:4328
type PFNGLGETMINMAXPARAMETERFVEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETMINMAXPARAMETERFVEXTPROC); -- ../include/SDL/SDL_opengl.h:4329
type PFNGLGETMINMAXPARAMETERIVEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETMINMAXPARAMETERIVEXTPROC); -- ../include/SDL/SDL_opengl.h:4330
type PFNGLHISTOGRAMEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLsizei;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLboolean);
pragma Convention (C, PFNGLHISTOGRAMEXTPROC); -- ../include/SDL/SDL_opengl.h:4331
type PFNGLMINMAXEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLboolean);
pragma Convention (C, PFNGLMINMAXEXTPROC); -- ../include/SDL/SDL_opengl.h:4332
type PFNGLRESETHISTOGRAMEXTPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLRESETHISTOGRAMEXTPROC); -- ../include/SDL/SDL_opengl.h:4333
type PFNGLRESETMINMAXEXTPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLRESETMINMAXEXTPROC); -- ../include/SDL/SDL_opengl.h:4334
type PFNGLCONVOLUTIONFILTER1DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLenum;
arg5 : GL_gl_h.GLenum;
arg6 : System.Address);
pragma Convention (C, PFNGLCONVOLUTIONFILTER1DEXTPROC); -- ../include/SDL/SDL_opengl.h:4354
type PFNGLCONVOLUTIONFILTER2DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLenum;
arg6 : GL_gl_h.GLenum;
arg7 : System.Address);
pragma Convention (C, PFNGLCONVOLUTIONFILTER2DEXTPROC); -- ../include/SDL/SDL_opengl.h:4355
type PFNGLCONVOLUTIONPARAMETERFEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCONVOLUTIONPARAMETERFEXTPROC); -- ../include/SDL/SDL_opengl.h:4356
type PFNGLCONVOLUTIONPARAMETERFVEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCONVOLUTIONPARAMETERFVEXTPROC); -- ../include/SDL/SDL_opengl.h:4357
type PFNGLCONVOLUTIONPARAMETERIEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLCONVOLUTIONPARAMETERIEXTPROC); -- ../include/SDL/SDL_opengl.h:4358
type PFNGLCONVOLUTIONPARAMETERIVEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLCONVOLUTIONPARAMETERIVEXTPROC); -- ../include/SDL/SDL_opengl.h:4359
type PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC); -- ../include/SDL/SDL_opengl.h:4360
type PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC); -- ../include/SDL/SDL_opengl.h:4361
type PFNGLGETCONVOLUTIONFILTEREXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : System.Address);
pragma Convention (C, PFNGLGETCONVOLUTIONFILTEREXTPROC); -- ../include/SDL/SDL_opengl.h:4362
type PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC); -- ../include/SDL/SDL_opengl.h:4363
type PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC); -- ../include/SDL/SDL_opengl.h:4364
type PFNGLGETSEPARABLEFILTEREXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : System.Address;
arg5 : System.Address;
arg6 : System.Address);
pragma Convention (C, PFNGLGETSEPARABLEFILTEREXTPROC); -- ../include/SDL/SDL_opengl.h:4365
type PFNGLSEPARABLEFILTER2DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLenum;
arg6 : GL_gl_h.GLenum;
arg7 : System.Address;
arg8 : System.Address);
pragma Convention (C, PFNGLSEPARABLEFILTER2DEXTPROC); -- ../include/SDL/SDL_opengl.h:4366
type PFNGLCOLORTABLESGIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLenum;
arg5 : GL_gl_h.GLenum;
arg6 : System.Address);
pragma Convention (C, PFNGLCOLORTABLESGIPROC); -- ../include/SDL/SDL_opengl.h:4384
type PFNGLCOLORTABLEPARAMETERFVSGIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCOLORTABLEPARAMETERFVSGIPROC); -- ../include/SDL/SDL_opengl.h:4385
type PFNGLCOLORTABLEPARAMETERIVSGIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLCOLORTABLEPARAMETERIVSGIPROC); -- ../include/SDL/SDL_opengl.h:4386
type PFNGLCOPYCOLORTABLESGIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLCOPYCOLORTABLESGIPROC); -- ../include/SDL/SDL_opengl.h:4387
type PFNGLGETCOLORTABLESGIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : System.Address);
pragma Convention (C, PFNGLGETCOLORTABLESGIPROC); -- ../include/SDL/SDL_opengl.h:4388
type PFNGLGETCOLORTABLEPARAMETERFVSGIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETCOLORTABLEPARAMETERFVSGIPROC); -- ../include/SDL/SDL_opengl.h:4389
type PFNGLGETCOLORTABLEPARAMETERIVSGIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETCOLORTABLEPARAMETERIVSGIPROC); -- ../include/SDL/SDL_opengl.h:4390
type PFNGLPIXELTEXGENSGIXPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLPIXELTEXGENSGIXPROC); -- ../include/SDL/SDL_opengl.h:4398
type PFNGLPIXELTEXGENPARAMETERISGISPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLPIXELTEXGENPARAMETERISGISPROC); -- ../include/SDL/SDL_opengl.h:4411
type PFNGLPIXELTEXGENPARAMETERIVSGISPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLPIXELTEXGENPARAMETERIVSGISPROC); -- ../include/SDL/SDL_opengl.h:4412
type PFNGLPIXELTEXGENPARAMETERFSGISPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPIXELTEXGENPARAMETERFSGISPROC); -- ../include/SDL/SDL_opengl.h:4413
type PFNGLPIXELTEXGENPARAMETERFVSGISPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPIXELTEXGENPARAMETERFVSGISPROC); -- ../include/SDL/SDL_opengl.h:4414
type PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETPIXELTEXGENPARAMETERIVSGISPROC); -- ../include/SDL/SDL_opengl.h:4415
type PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETPIXELTEXGENPARAMETERFVSGISPROC); -- ../include/SDL/SDL_opengl.h:4416
type PFNGLTEXIMAGE4DSGISPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLsizei;
arg7 : GL_gl_h.GLsizei;
arg8 : GL_gl_h.GLint;
arg9 : GL_gl_h.GLenum;
arg10 : GL_gl_h.GLenum;
arg11 : System.Address);
pragma Convention (C, PFNGLTEXIMAGE4DSGISPROC); -- ../include/SDL/SDL_opengl.h:4425
type PFNGLTEXSUBIMAGE4DSGISPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLint;
arg7 : GL_gl_h.GLsizei;
arg8 : GL_gl_h.GLsizei;
arg9 : GL_gl_h.GLsizei;
arg10 : GL_gl_h.GLsizei;
arg11 : GL_gl_h.GLenum;
arg12 : GL_gl_h.GLenum;
arg13 : System.Address);
pragma Convention (C, PFNGLTEXSUBIMAGE4DSGISPROC); -- ../include/SDL/SDL_opengl.h:4426
type PFNGLARETEXTURESRESIDENTEXTPROC is access function
(arg1 : GL_gl_h.GLsizei;
arg2 : access GL_gl_h.GLuint;
arg3 : access GL_gl_h.GLboolean) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLARETEXTURESRESIDENTEXTPROC); -- ../include/SDL/SDL_opengl.h:4447
type PFNGLBINDTEXTUREEXTPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLBINDTEXTUREEXTPROC); -- ../include/SDL/SDL_opengl.h:4448
type PFNGLDELETETEXTURESEXTPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETETEXTURESEXTPROC); -- ../include/SDL/SDL_opengl.h:4449
type PFNGLGENTEXTURESEXTPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGENTEXTURESEXTPROC); -- ../include/SDL/SDL_opengl.h:4450
type PFNGLISTEXTUREEXTPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISTEXTUREEXTPROC); -- ../include/SDL/SDL_opengl.h:4451
type PFNGLPRIORITIZETEXTURESEXTPROC is access procedure
(arg1 : GL_gl_h.GLsizei;
arg2 : access GL_gl_h.GLuint;
arg3 : access GL_gl_h.GLclampf);
pragma Convention (C, PFNGLPRIORITIZETEXTURESEXTPROC); -- ../include/SDL/SDL_opengl.h:4452
type PFNGLDETAILTEXFUNCSGISPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLDETAILTEXFUNCSGISPROC); -- ../include/SDL/SDL_opengl.h:4461
type PFNGLGETDETAILTEXFUNCSGISPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETDETAILTEXFUNCSGISPROC); -- ../include/SDL/SDL_opengl.h:4462
type PFNGLSHARPENTEXFUNCSGISPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLSHARPENTEXFUNCSGISPROC); -- ../include/SDL/SDL_opengl.h:4471
type PFNGLGETSHARPENTEXFUNCSGISPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETSHARPENTEXFUNCSGISPROC); -- ../include/SDL/SDL_opengl.h:4472
type PFNGLSAMPLEMASKSGISPROC is access procedure (arg1 : GL_gl_h.GLclampf; arg2 : GL_gl_h.GLboolean);
pragma Convention (C, PFNGLSAMPLEMASKSGISPROC); -- ../include/SDL/SDL_opengl.h:4489
type PFNGLSAMPLEPATTERNSGISPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLSAMPLEPATTERNSGISPROC); -- ../include/SDL/SDL_opengl.h:4490
type PFNGLBLENDEQUATIONEXTPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLBLENDEQUATIONEXTPROC); -- ../include/SDL/SDL_opengl.h:4550
type PFNGLSPRITEPARAMETERFSGIXPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLSPRITEPARAMETERFSGIXPROC); -- ../include/SDL/SDL_opengl.h:4581
type PFNGLSPRITEPARAMETERFVSGIXPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLSPRITEPARAMETERFVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4582
type PFNGLSPRITEPARAMETERISGIXPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLSPRITEPARAMETERISGIXPROC); -- ../include/SDL/SDL_opengl.h:4583
type PFNGLSPRITEPARAMETERIVSGIXPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLSPRITEPARAMETERIVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4584
type PFNGLPOINTPARAMETERFEXTPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPOINTPARAMETERFEXTPROC); -- ../include/SDL/SDL_opengl.h:4597
type PFNGLPOINTPARAMETERFVEXTPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPOINTPARAMETERFVEXTPROC); -- ../include/SDL/SDL_opengl.h:4598
type PFNGLPOINTPARAMETERFSGISPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPOINTPARAMETERFSGISPROC); -- ../include/SDL/SDL_opengl.h:4607
type PFNGLPOINTPARAMETERFVSGISPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPOINTPARAMETERFVSGISPROC); -- ../include/SDL/SDL_opengl.h:4608
type PFNGLGETINSTRUMENTSSGIXPROC is access function return GL_gl_h.GLint;
pragma Convention (C, PFNGLGETINSTRUMENTSSGIXPROC); -- ../include/SDL/SDL_opengl.h:4621
type PFNGLINSTRUMENTSBUFFERSGIXPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLINSTRUMENTSBUFFERSGIXPROC); -- ../include/SDL/SDL_opengl.h:4622
type PFNGLPOLLINSTRUMENTSSGIXPROC is access function (arg1 : access GL_gl_h.GLint) return GL_gl_h.GLint;
pragma Convention (C, PFNGLPOLLINSTRUMENTSSGIXPROC); -- ../include/SDL/SDL_opengl.h:4623
type PFNGLREADINSTRUMENTSSGIXPROC is access procedure (arg1 : GL_gl_h.GLint);
pragma Convention (C, PFNGLREADINSTRUMENTSSGIXPROC); -- ../include/SDL/SDL_opengl.h:4624
type PFNGLSTARTINSTRUMENTSSGIXPROC is access procedure;
pragma Convention (C, PFNGLSTARTINSTRUMENTSSGIXPROC); -- ../include/SDL/SDL_opengl.h:4625
type PFNGLSTOPINSTRUMENTSSGIXPROC is access procedure (arg1 : GL_gl_h.GLint);
pragma Convention (C, PFNGLSTOPINSTRUMENTSSGIXPROC); -- ../include/SDL/SDL_opengl.h:4626
type PFNGLFRAMEZOOMSGIXPROC is access procedure (arg1 : GL_gl_h.GLint);
pragma Convention (C, PFNGLFRAMEZOOMSGIXPROC); -- ../include/SDL/SDL_opengl.h:4638
type PFNGLTAGSAMPLEBUFFERSGIXPROC is access procedure;
pragma Convention (C, PFNGLTAGSAMPLEBUFFERSGIXPROC); -- ../include/SDL/SDL_opengl.h:4646
type PFNGLDEFORMATIONMAP3DSGIXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLdouble;
arg7 : GL_gl_h.GLdouble;
arg8 : GL_gl_h.GLint;
arg9 : GL_gl_h.GLint;
arg10 : GL_gl_h.GLdouble;
arg11 : GL_gl_h.GLdouble;
arg12 : GL_gl_h.GLint;
arg13 : GL_gl_h.GLint;
arg14 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLDEFORMATIONMAP3DSGIXPROC); -- ../include/SDL/SDL_opengl.h:4657
type PFNGLDEFORMATIONMAP3FSGIXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLfloat;
arg7 : GL_gl_h.GLfloat;
arg8 : GL_gl_h.GLint;
arg9 : GL_gl_h.GLint;
arg10 : GL_gl_h.GLfloat;
arg11 : GL_gl_h.GLfloat;
arg12 : GL_gl_h.GLint;
arg13 : GL_gl_h.GLint;
arg14 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLDEFORMATIONMAP3FSGIXPROC); -- ../include/SDL/SDL_opengl.h:4658
type PFNGLDEFORMSGIXPROC is access procedure (arg1 : GL_gl_h.GLbitfield);
pragma Convention (C, PFNGLDEFORMSGIXPROC); -- ../include/SDL/SDL_opengl.h:4659
type PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC is access procedure (arg1 : GL_gl_h.GLbitfield);
pragma Convention (C, PFNGLLOADIDENTITYDEFORMATIONMAPSGIXPROC); -- ../include/SDL/SDL_opengl.h:4660
type PFNGLREFERENCEPLANESGIXPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLREFERENCEPLANESGIXPROC); -- ../include/SDL/SDL_opengl.h:4668
type PFNGLFLUSHRASTERSGIXPROC is access procedure;
pragma Convention (C, PFNGLFLUSHRASTERSGIXPROC); -- ../include/SDL/SDL_opengl.h:4676
type PFNGLFOGFUNCSGISPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLFOGFUNCSGISPROC); -- ../include/SDL/SDL_opengl.h:4689
type PFNGLGETFOGFUNCSGISPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETFOGFUNCSGISPROC); -- ../include/SDL/SDL_opengl.h:4690
type PFNGLIMAGETRANSFORMPARAMETERIHPPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLIMAGETRANSFORMPARAMETERIHPPROC); -- ../include/SDL/SDL_opengl.h:4707
type PFNGLIMAGETRANSFORMPARAMETERFHPPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLIMAGETRANSFORMPARAMETERFHPPROC); -- ../include/SDL/SDL_opengl.h:4708
type PFNGLIMAGETRANSFORMPARAMETERIVHPPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLIMAGETRANSFORMPARAMETERIVHPPROC); -- ../include/SDL/SDL_opengl.h:4709
type PFNGLIMAGETRANSFORMPARAMETERFVHPPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLIMAGETRANSFORMPARAMETERFVHPPROC); -- ../include/SDL/SDL_opengl.h:4710
type PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC); -- ../include/SDL/SDL_opengl.h:4711
type PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC); -- ../include/SDL/SDL_opengl.h:4712
type PFNGLCOLORSUBTABLEEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLsizei;
arg3 : GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLenum;
arg5 : GL_gl_h.GLenum;
arg6 : System.Address);
pragma Convention (C, PFNGLCOLORSUBTABLEEXTPROC); -- ../include/SDL/SDL_opengl.h:4729
type PFNGLCOPYCOLORSUBTABLEEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLsizei;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLCOPYCOLORSUBTABLEEXTPROC); -- ../include/SDL/SDL_opengl.h:4730
type PFNGLHINTPGIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLHINTPGIPROC); -- ../include/SDL/SDL_opengl.h:4742
type PFNGLGETLISTPARAMETERFVSGIXPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETLISTPARAMETERFVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4773
type PFNGLGETLISTPARAMETERIVSGIXPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETLISTPARAMETERIVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4774
type PFNGLLISTPARAMETERFSGIXPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLLISTPARAMETERFSGIXPROC); -- ../include/SDL/SDL_opengl.h:4775
type PFNGLLISTPARAMETERFVSGIXPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLLISTPARAMETERFVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4776
type PFNGLLISTPARAMETERISGIXPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLLISTPARAMETERISGIXPROC); -- ../include/SDL/SDL_opengl.h:4777
type PFNGLLISTPARAMETERIVSGIXPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLLISTPARAMETERIVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4778
type PFNGLINDEXMATERIALEXTPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLINDEXMATERIALEXTPROC); -- ../include/SDL/SDL_opengl.h:4806
type PFNGLINDEXFUNCEXTPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLclampf);
pragma Convention (C, PFNGLINDEXFUNCEXTPROC); -- ../include/SDL/SDL_opengl.h:4814
type PFNGLLOCKARRAYSEXTPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLLOCKARRAYSEXTPROC); -- ../include/SDL/SDL_opengl.h:4827
type PFNGLUNLOCKARRAYSEXTPROC is access procedure;
pragma Convention (C, PFNGLUNLOCKARRAYSEXTPROC); -- ../include/SDL/SDL_opengl.h:4828
type PFNGLCULLPARAMETERDVEXTPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLCULLPARAMETERDVEXTPROC); -- ../include/SDL/SDL_opengl.h:4837
type PFNGLCULLPARAMETERFVEXTPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCULLPARAMETERFVEXTPROC); -- ../include/SDL/SDL_opengl.h:4838
type PFNGLFRAGMENTCOLORMATERIALSGIXPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLFRAGMENTCOLORMATERIALSGIXPROC); -- ../include/SDL/SDL_opengl.h:4867
type PFNGLFRAGMENTLIGHTFSGIXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLFRAGMENTLIGHTFSGIXPROC); -- ../include/SDL/SDL_opengl.h:4868
type PFNGLFRAGMENTLIGHTFVSGIXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLFRAGMENTLIGHTFVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4869
type PFNGLFRAGMENTLIGHTISGIXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLFRAGMENTLIGHTISGIXPROC); -- ../include/SDL/SDL_opengl.h:4870
type PFNGLFRAGMENTLIGHTIVSGIXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLFRAGMENTLIGHTIVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4871
type PFNGLFRAGMENTLIGHTMODELFSGIXPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLFRAGMENTLIGHTMODELFSGIXPROC); -- ../include/SDL/SDL_opengl.h:4872
type PFNGLFRAGMENTLIGHTMODELFVSGIXPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLFRAGMENTLIGHTMODELFVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4873
type PFNGLFRAGMENTLIGHTMODELISGIXPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLFRAGMENTLIGHTMODELISGIXPROC); -- ../include/SDL/SDL_opengl.h:4874
type PFNGLFRAGMENTLIGHTMODELIVSGIXPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLFRAGMENTLIGHTMODELIVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4875
type PFNGLFRAGMENTMATERIALFSGIXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLFRAGMENTMATERIALFSGIXPROC); -- ../include/SDL/SDL_opengl.h:4876
type PFNGLFRAGMENTMATERIALFVSGIXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLFRAGMENTMATERIALFVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4877
type PFNGLFRAGMENTMATERIALISGIXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLFRAGMENTMATERIALISGIXPROC); -- ../include/SDL/SDL_opengl.h:4878
type PFNGLFRAGMENTMATERIALIVSGIXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLFRAGMENTMATERIALIVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4879
type PFNGLGETFRAGMENTLIGHTFVSGIXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETFRAGMENTLIGHTFVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4880
type PFNGLGETFRAGMENTLIGHTIVSGIXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETFRAGMENTLIGHTIVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4881
type PFNGLGETFRAGMENTMATERIALFVSGIXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETFRAGMENTMATERIALFVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4882
type PFNGLGETFRAGMENTMATERIALIVSGIXPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETFRAGMENTMATERIALIVSGIXPROC); -- ../include/SDL/SDL_opengl.h:4883
type PFNGLLIGHTENVISGIXPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLLIGHTENVISGIXPROC); -- ../include/SDL/SDL_opengl.h:4884
type PFNGLDRAWRANGEELEMENTSEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLenum;
arg6 : System.Address);
pragma Convention (C, PFNGLDRAWRANGEELEMENTSEXTPROC); -- ../include/SDL/SDL_opengl.h:4900
type PFNGLAPPLYTEXTUREEXTPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLAPPLYTEXTUREEXTPROC); -- ../include/SDL/SDL_opengl.h:4918
type PFNGLTEXTURELIGHTEXTPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLTEXTURELIGHTEXTPROC); -- ../include/SDL/SDL_opengl.h:4919
type PFNGLTEXTUREMATERIALEXTPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLTEXTUREMATERIALEXTPROC); -- ../include/SDL/SDL_opengl.h:4920
type PFNGLASYNCMARKERSGIXPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLASYNCMARKERSGIXPROC); -- ../include/SDL/SDL_opengl.h:4941
type PFNGLFINISHASYNCSGIXPROC is access function (arg1 : access GL_gl_h.GLuint) return GL_gl_h.GLint;
pragma Convention (C, PFNGLFINISHASYNCSGIXPROC); -- ../include/SDL/SDL_opengl.h:4942
type PFNGLPOLLASYNCSGIXPROC is access function (arg1 : access GL_gl_h.GLuint) return GL_gl_h.GLint;
pragma Convention (C, PFNGLPOLLASYNCSGIXPROC); -- ../include/SDL/SDL_opengl.h:4943
type PFNGLGENASYNCMARKERSSGIXPROC is access function (arg1 : GL_gl_h.GLsizei) return GL_gl_h.GLuint;
pragma Convention (C, PFNGLGENASYNCMARKERSSGIXPROC); -- ../include/SDL/SDL_opengl.h:4944
type PFNGLDELETEASYNCMARKERSSGIXPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLDELETEASYNCMARKERSSGIXPROC); -- ../include/SDL/SDL_opengl.h:4945
type PFNGLISASYNCMARKERSGIXPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISASYNCMARKERSGIXPROC); -- ../include/SDL/SDL_opengl.h:4946
type PFNGLVERTEXPOINTERVINTELPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLenum;
arg3 : System.Address);
pragma Convention (C, PFNGLVERTEXPOINTERVINTELPROC); -- ../include/SDL/SDL_opengl.h:4965
type PFNGLNORMALPOINTERVINTELPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : System.Address);
pragma Convention (C, PFNGLNORMALPOINTERVINTELPROC); -- ../include/SDL/SDL_opengl.h:4966
type PFNGLCOLORPOINTERVINTELPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLenum;
arg3 : System.Address);
pragma Convention (C, PFNGLCOLORPOINTERVINTELPROC); -- ../include/SDL/SDL_opengl.h:4967
type PFNGLTEXCOORDPOINTERVINTELPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLenum;
arg3 : System.Address);
pragma Convention (C, PFNGLTEXCOORDPOINTERVINTELPROC); -- ../include/SDL/SDL_opengl.h:4968
type PFNGLPIXELTRANSFORMPARAMETERIEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLPIXELTRANSFORMPARAMETERIEXTPROC); -- ../include/SDL/SDL_opengl.h:4983
type PFNGLPIXELTRANSFORMPARAMETERFEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPIXELTRANSFORMPARAMETERFEXTPROC); -- ../include/SDL/SDL_opengl.h:4984
type PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC); -- ../include/SDL/SDL_opengl.h:4985
type PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC); -- ../include/SDL/SDL_opengl.h:4986
type PFNGLSECONDARYCOLOR3BEXTPROC is access procedure
(arg1 : GL_gl_h.GLbyte;
arg2 : GL_gl_h.GLbyte;
arg3 : GL_gl_h.GLbyte);
pragma Convention (C, PFNGLSECONDARYCOLOR3BEXTPROC); -- ../include/SDL/SDL_opengl.h:5022
type PFNGLSECONDARYCOLOR3BVEXTPROC is access procedure (arg1 : access GL_gl_h.GLbyte);
pragma Convention (C, PFNGLSECONDARYCOLOR3BVEXTPROC); -- ../include/SDL/SDL_opengl.h:5023
type PFNGLSECONDARYCOLOR3DEXTPROC is access procedure
(arg1 : GL_gl_h.GLdouble;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLSECONDARYCOLOR3DEXTPROC); -- ../include/SDL/SDL_opengl.h:5024
type PFNGLSECONDARYCOLOR3DVEXTPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLSECONDARYCOLOR3DVEXTPROC); -- ../include/SDL/SDL_opengl.h:5025
type PFNGLSECONDARYCOLOR3FEXTPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLSECONDARYCOLOR3FEXTPROC); -- ../include/SDL/SDL_opengl.h:5026
type PFNGLSECONDARYCOLOR3FVEXTPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLSECONDARYCOLOR3FVEXTPROC); -- ../include/SDL/SDL_opengl.h:5027
type PFNGLSECONDARYCOLOR3IEXTPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLSECONDARYCOLOR3IEXTPROC); -- ../include/SDL/SDL_opengl.h:5028
type PFNGLSECONDARYCOLOR3IVEXTPROC is access procedure (arg1 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLSECONDARYCOLOR3IVEXTPROC); -- ../include/SDL/SDL_opengl.h:5029
type PFNGLSECONDARYCOLOR3SEXTPROC is access procedure
(arg1 : GL_gl_h.GLshort;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLSECONDARYCOLOR3SEXTPROC); -- ../include/SDL/SDL_opengl.h:5030
type PFNGLSECONDARYCOLOR3SVEXTPROC is access procedure (arg1 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLSECONDARYCOLOR3SVEXTPROC); -- ../include/SDL/SDL_opengl.h:5031
type PFNGLSECONDARYCOLOR3UBEXTPROC is access procedure
(arg1 : GL_gl_h.GLubyte;
arg2 : GL_gl_h.GLubyte;
arg3 : GL_gl_h.GLubyte);
pragma Convention (C, PFNGLSECONDARYCOLOR3UBEXTPROC); -- ../include/SDL/SDL_opengl.h:5032
type PFNGLSECONDARYCOLOR3UBVEXTPROC is access procedure (arg1 : access GL_gl_h.GLubyte);
pragma Convention (C, PFNGLSECONDARYCOLOR3UBVEXTPROC); -- ../include/SDL/SDL_opengl.h:5033
type PFNGLSECONDARYCOLOR3UIEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLSECONDARYCOLOR3UIEXTPROC); -- ../include/SDL/SDL_opengl.h:5034
type PFNGLSECONDARYCOLOR3UIVEXTPROC is access procedure (arg1 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLSECONDARYCOLOR3UIVEXTPROC); -- ../include/SDL/SDL_opengl.h:5035
type PFNGLSECONDARYCOLOR3USEXTPROC is access procedure
(arg1 : GL_gl_h.GLushort;
arg2 : GL_gl_h.GLushort;
arg3 : GL_gl_h.GLushort);
pragma Convention (C, PFNGLSECONDARYCOLOR3USEXTPROC); -- ../include/SDL/SDL_opengl.h:5036
type PFNGLSECONDARYCOLOR3USVEXTPROC is access procedure (arg1 : access GL_gl_h.GLushort);
pragma Convention (C, PFNGLSECONDARYCOLOR3USVEXTPROC); -- ../include/SDL/SDL_opengl.h:5037
type PFNGLSECONDARYCOLORPOINTEREXTPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : System.Address);
pragma Convention (C, PFNGLSECONDARYCOLORPOINTEREXTPROC); -- ../include/SDL/SDL_opengl.h:5038
type PFNGLTEXTURENORMALEXTPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLTEXTURENORMALEXTPROC); -- ../include/SDL/SDL_opengl.h:5046
type PFNGLMULTIDRAWARRAYSEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : access GL_gl_h.GLint;
arg3 : access GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLMULTIDRAWARRAYSEXTPROC); -- ../include/SDL/SDL_opengl.h:5055
type PFNGLMULTIDRAWELEMENTSEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : access GL_gl_h.GLsizei;
arg3 : GL_gl_h.GLenum;
arg4 : System.Address;
arg5 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLMULTIDRAWELEMENTSEXTPROC); -- ../include/SDL/SDL_opengl.h:5056
type PFNGLFOGCOORDFEXTPROC is access procedure (arg1 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLFOGCOORDFEXTPROC); -- ../include/SDL/SDL_opengl.h:5068
type PFNGLFOGCOORDFVEXTPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLFOGCOORDFVEXTPROC); -- ../include/SDL/SDL_opengl.h:5069
type PFNGLFOGCOORDDEXTPROC is access procedure (arg1 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLFOGCOORDDEXTPROC); -- ../include/SDL/SDL_opengl.h:5070
type PFNGLFOGCOORDDVEXTPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLFOGCOORDDVEXTPROC); -- ../include/SDL/SDL_opengl.h:5071
type PFNGLFOGCOORDPOINTEREXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLsizei;
arg3 : System.Address);
pragma Convention (C, PFNGLFOGCOORDPOINTEREXTPROC); -- ../include/SDL/SDL_opengl.h:5072
type PFNGLTANGENT3BEXTPROC is access procedure
(arg1 : GL_gl_h.GLbyte;
arg2 : GL_gl_h.GLbyte;
arg3 : GL_gl_h.GLbyte);
pragma Convention (C, PFNGLTANGENT3BEXTPROC); -- ../include/SDL/SDL_opengl.h:5105
type PFNGLTANGENT3BVEXTPROC is access procedure (arg1 : access GL_gl_h.GLbyte);
pragma Convention (C, PFNGLTANGENT3BVEXTPROC); -- ../include/SDL/SDL_opengl.h:5106
type PFNGLTANGENT3DEXTPROC is access procedure
(arg1 : GL_gl_h.GLdouble;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLTANGENT3DEXTPROC); -- ../include/SDL/SDL_opengl.h:5107
type PFNGLTANGENT3DVEXTPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLTANGENT3DVEXTPROC); -- ../include/SDL/SDL_opengl.h:5108
type PFNGLTANGENT3FEXTPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTANGENT3FEXTPROC); -- ../include/SDL/SDL_opengl.h:5109
type PFNGLTANGENT3FVEXTPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTANGENT3FVEXTPROC); -- ../include/SDL/SDL_opengl.h:5110
type PFNGLTANGENT3IEXTPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLTANGENT3IEXTPROC); -- ../include/SDL/SDL_opengl.h:5111
type PFNGLTANGENT3IVEXTPROC is access procedure (arg1 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLTANGENT3IVEXTPROC); -- ../include/SDL/SDL_opengl.h:5112
type PFNGLTANGENT3SEXTPROC is access procedure
(arg1 : GL_gl_h.GLshort;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLTANGENT3SEXTPROC); -- ../include/SDL/SDL_opengl.h:5113
type PFNGLTANGENT3SVEXTPROC is access procedure (arg1 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLTANGENT3SVEXTPROC); -- ../include/SDL/SDL_opengl.h:5114
type PFNGLBINORMAL3BEXTPROC is access procedure
(arg1 : GL_gl_h.GLbyte;
arg2 : GL_gl_h.GLbyte;
arg3 : GL_gl_h.GLbyte);
pragma Convention (C, PFNGLBINORMAL3BEXTPROC); -- ../include/SDL/SDL_opengl.h:5115
type PFNGLBINORMAL3BVEXTPROC is access procedure (arg1 : access GL_gl_h.GLbyte);
pragma Convention (C, PFNGLBINORMAL3BVEXTPROC); -- ../include/SDL/SDL_opengl.h:5116
type PFNGLBINORMAL3DEXTPROC is access procedure
(arg1 : GL_gl_h.GLdouble;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLBINORMAL3DEXTPROC); -- ../include/SDL/SDL_opengl.h:5117
type PFNGLBINORMAL3DVEXTPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLBINORMAL3DVEXTPROC); -- ../include/SDL/SDL_opengl.h:5118
type PFNGLBINORMAL3FEXTPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLBINORMAL3FEXTPROC); -- ../include/SDL/SDL_opengl.h:5119
type PFNGLBINORMAL3FVEXTPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLBINORMAL3FVEXTPROC); -- ../include/SDL/SDL_opengl.h:5120
type PFNGLBINORMAL3IEXTPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLBINORMAL3IEXTPROC); -- ../include/SDL/SDL_opengl.h:5121
type PFNGLBINORMAL3IVEXTPROC is access procedure (arg1 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLBINORMAL3IVEXTPROC); -- ../include/SDL/SDL_opengl.h:5122
type PFNGLBINORMAL3SEXTPROC is access procedure
(arg1 : GL_gl_h.GLshort;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLBINORMAL3SEXTPROC); -- ../include/SDL/SDL_opengl.h:5123
type PFNGLBINORMAL3SVEXTPROC is access procedure (arg1 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLBINORMAL3SVEXTPROC); -- ../include/SDL/SDL_opengl.h:5124
type PFNGLTANGENTPOINTEREXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLsizei;
arg3 : System.Address);
pragma Convention (C, PFNGLTANGENTPOINTEREXTPROC); -- ../include/SDL/SDL_opengl.h:5125
type PFNGLBINORMALPOINTEREXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLsizei;
arg3 : System.Address);
pragma Convention (C, PFNGLBINORMALPOINTEREXTPROC); -- ../include/SDL/SDL_opengl.h:5126
type PFNGLFINISHTEXTURESUNXPROC is access procedure;
pragma Convention (C, PFNGLFINISHTEXTURESUNXPROC); -- ../include/SDL/SDL_opengl.h:5150
type PFNGLGLOBALALPHAFACTORBSUNPROC is access procedure (arg1 : GL_gl_h.GLbyte);
pragma Convention (C, PFNGLGLOBALALPHAFACTORBSUNPROC); -- ../include/SDL/SDL_opengl.h:5165
type PFNGLGLOBALALPHAFACTORSSUNPROC is access procedure (arg1 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLGLOBALALPHAFACTORSSUNPROC); -- ../include/SDL/SDL_opengl.h:5166
type PFNGLGLOBALALPHAFACTORISUNPROC is access procedure (arg1 : GL_gl_h.GLint);
pragma Convention (C, PFNGLGLOBALALPHAFACTORISUNPROC); -- ../include/SDL/SDL_opengl.h:5167
type PFNGLGLOBALALPHAFACTORFSUNPROC is access procedure (arg1 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGLOBALALPHAFACTORFSUNPROC); -- ../include/SDL/SDL_opengl.h:5168
type PFNGLGLOBALALPHAFACTORDSUNPROC is access procedure (arg1 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLGLOBALALPHAFACTORDSUNPROC); -- ../include/SDL/SDL_opengl.h:5169
type PFNGLGLOBALALPHAFACTORUBSUNPROC is access procedure (arg1 : GL_gl_h.GLubyte);
pragma Convention (C, PFNGLGLOBALALPHAFACTORUBSUNPROC); -- ../include/SDL/SDL_opengl.h:5170
type PFNGLGLOBALALPHAFACTORUSSUNPROC is access procedure (arg1 : GL_gl_h.GLushort);
pragma Convention (C, PFNGLGLOBALALPHAFACTORUSSUNPROC); -- ../include/SDL/SDL_opengl.h:5171
type PFNGLGLOBALALPHAFACTORUISUNPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLGLOBALALPHAFACTORUISUNPROC); -- ../include/SDL/SDL_opengl.h:5172
type PFNGLREPLACEMENTCODEUISUNPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLREPLACEMENTCODEUISUNPROC); -- ../include/SDL/SDL_opengl.h:5186
type PFNGLREPLACEMENTCODEUSSUNPROC is access procedure (arg1 : GL_gl_h.GLushort);
pragma Convention (C, PFNGLREPLACEMENTCODEUSSUNPROC); -- ../include/SDL/SDL_opengl.h:5187
type PFNGLREPLACEMENTCODEUBSUNPROC is access procedure (arg1 : GL_gl_h.GLubyte);
pragma Convention (C, PFNGLREPLACEMENTCODEUBSUNPROC); -- ../include/SDL/SDL_opengl.h:5188
type PFNGLREPLACEMENTCODEUIVSUNPROC is access procedure (arg1 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLREPLACEMENTCODEUIVSUNPROC); -- ../include/SDL/SDL_opengl.h:5189
type PFNGLREPLACEMENTCODEUSVSUNPROC is access procedure (arg1 : access GL_gl_h.GLushort);
pragma Convention (C, PFNGLREPLACEMENTCODEUSVSUNPROC); -- ../include/SDL/SDL_opengl.h:5190
type PFNGLREPLACEMENTCODEUBVSUNPROC is access procedure (arg1 : access GL_gl_h.GLubyte);
pragma Convention (C, PFNGLREPLACEMENTCODEUBVSUNPROC); -- ../include/SDL/SDL_opengl.h:5191
type PFNGLREPLACEMENTCODEPOINTERSUNPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLsizei;
arg3 : System.Address);
pragma Convention (C, PFNGLREPLACEMENTCODEPOINTERSUNPROC); -- ../include/SDL/SDL_opengl.h:5192
type PFNGLCOLOR4UBVERTEX2FSUNPROC is access procedure
(arg1 : GL_gl_h.GLubyte;
arg2 : GL_gl_h.GLubyte;
arg3 : GL_gl_h.GLubyte;
arg4 : GL_gl_h.GLubyte;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCOLOR4UBVERTEX2FSUNPROC); -- ../include/SDL/SDL_opengl.h:5239
type PFNGLCOLOR4UBVERTEX2FVSUNPROC is access procedure (arg1 : access GL_gl_h.GLubyte; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCOLOR4UBVERTEX2FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5240
type PFNGLCOLOR4UBVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLubyte;
arg2 : GL_gl_h.GLubyte;
arg3 : GL_gl_h.GLubyte;
arg4 : GL_gl_h.GLubyte;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat;
arg7 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCOLOR4UBVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5241
type PFNGLCOLOR4UBVERTEX3FVSUNPROC is access procedure (arg1 : access GL_gl_h.GLubyte; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCOLOR4UBVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5242
type PFNGLCOLOR3FVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCOLOR3FVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5243
type PFNGLCOLOR3FVERTEX3FVSUNPROC is access procedure (arg1 : access GL_gl_h.GLfloat; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCOLOR3FVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5244
type PFNGLNORMAL3FVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLNORMAL3FVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5245
type PFNGLNORMAL3FVERTEX3FVSUNPROC is access procedure (arg1 : access GL_gl_h.GLfloat; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLNORMAL3FVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5246
type PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat;
arg7 : GL_gl_h.GLfloat;
arg8 : GL_gl_h.GLfloat;
arg9 : GL_gl_h.GLfloat;
arg10 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5247
type PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC is access procedure
(arg1 : access GL_gl_h.GLfloat;
arg2 : access GL_gl_h.GLfloat;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5248
type PFNGLTEXCOORD2FVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXCOORD2FVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5249
type PFNGLTEXCOORD2FVERTEX3FVSUNPROC is access procedure (arg1 : access GL_gl_h.GLfloat; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXCOORD2FVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5250
type PFNGLTEXCOORD4FVERTEX4FSUNPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat;
arg7 : GL_gl_h.GLfloat;
arg8 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXCOORD4FVERTEX4FSUNPROC); -- ../include/SDL/SDL_opengl.h:5251
type PFNGLTEXCOORD4FVERTEX4FVSUNPROC is access procedure (arg1 : access GL_gl_h.GLfloat; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXCOORD4FVERTEX4FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5252
type PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLubyte;
arg4 : GL_gl_h.GLubyte;
arg5 : GL_gl_h.GLubyte;
arg6 : GL_gl_h.GLubyte;
arg7 : GL_gl_h.GLfloat;
arg8 : GL_gl_h.GLfloat;
arg9 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5253
type PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC is access procedure
(arg1 : access GL_gl_h.GLfloat;
arg2 : access GL_gl_h.GLubyte;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5254
type PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat;
arg7 : GL_gl_h.GLfloat;
arg8 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5255
type PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC is access procedure
(arg1 : access GL_gl_h.GLfloat;
arg2 : access GL_gl_h.GLfloat;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5256
type PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat;
arg7 : GL_gl_h.GLfloat;
arg8 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5257
type PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC is access procedure
(arg1 : access GL_gl_h.GLfloat;
arg2 : access GL_gl_h.GLfloat;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5258
type PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat;
arg7 : GL_gl_h.GLfloat;
arg8 : GL_gl_h.GLfloat;
arg9 : GL_gl_h.GLfloat;
arg10 : GL_gl_h.GLfloat;
arg11 : GL_gl_h.GLfloat;
arg12 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5259
type PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC is access procedure
(arg1 : access GL_gl_h.GLfloat;
arg2 : access GL_gl_h.GLfloat;
arg3 : access GL_gl_h.GLfloat;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5260
type PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat;
arg7 : GL_gl_h.GLfloat;
arg8 : GL_gl_h.GLfloat;
arg9 : GL_gl_h.GLfloat;
arg10 : GL_gl_h.GLfloat;
arg11 : GL_gl_h.GLfloat;
arg12 : GL_gl_h.GLfloat;
arg13 : GL_gl_h.GLfloat;
arg14 : GL_gl_h.GLfloat;
arg15 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC); -- ../include/SDL/SDL_opengl.h:5261
type PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC is access procedure
(arg1 : access GL_gl_h.GLfloat;
arg2 : access GL_gl_h.GLfloat;
arg3 : access GL_gl_h.GLfloat;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5262
type PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5263
type PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC is access procedure (arg1 : access GL_gl_h.GLuint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5264
type PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLubyte;
arg3 : GL_gl_h.GLubyte;
arg4 : GL_gl_h.GLubyte;
arg5 : GL_gl_h.GLubyte;
arg6 : GL_gl_h.GLfloat;
arg7 : GL_gl_h.GLfloat;
arg8 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5265
type PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC is access procedure
(arg1 : access GL_gl_h.GLuint;
arg2 : access GL_gl_h.GLubyte;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5266
type PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat;
arg7 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5267
type PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC is access procedure
(arg1 : access GL_gl_h.GLuint;
arg2 : access GL_gl_h.GLfloat;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5268
type PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat;
arg7 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5269
type PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC is access procedure
(arg1 : access GL_gl_h.GLuint;
arg2 : access GL_gl_h.GLfloat;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5270
type PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat;
arg7 : GL_gl_h.GLfloat;
arg8 : GL_gl_h.GLfloat;
arg9 : GL_gl_h.GLfloat;
arg10 : GL_gl_h.GLfloat;
arg11 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5271
type PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC is access procedure
(arg1 : access GL_gl_h.GLuint;
arg2 : access GL_gl_h.GLfloat;
arg3 : access GL_gl_h.GLfloat;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5272
type PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5273
type PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC is access procedure
(arg1 : access GL_gl_h.GLuint;
arg2 : access GL_gl_h.GLfloat;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5274
type PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat;
arg7 : GL_gl_h.GLfloat;
arg8 : GL_gl_h.GLfloat;
arg9 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5275
type PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC is access procedure
(arg1 : access GL_gl_h.GLuint;
arg2 : access GL_gl_h.GLfloat;
arg3 : access GL_gl_h.GLfloat;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5276
type PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat;
arg7 : GL_gl_h.GLfloat;
arg8 : GL_gl_h.GLfloat;
arg9 : GL_gl_h.GLfloat;
arg10 : GL_gl_h.GLfloat;
arg11 : GL_gl_h.GLfloat;
arg12 : GL_gl_h.GLfloat;
arg13 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC); -- ../include/SDL/SDL_opengl.h:5277
type PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC is access procedure
(arg1 : access GL_gl_h.GLuint;
arg2 : access GL_gl_h.GLfloat;
arg3 : access GL_gl_h.GLfloat;
arg4 : access GL_gl_h.GLfloat;
arg5 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC); -- ../include/SDL/SDL_opengl.h:5278
type PFNGLBLENDFUNCSEPARATEEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLBLENDFUNCSEPARATEEXTPROC); -- ../include/SDL/SDL_opengl.h:5286
type PFNGLBLENDFUNCSEPARATEINGRPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLBLENDFUNCSEPARATEINGRPROC); -- ../include/SDL/SDL_opengl.h:5294
type PFNGLVERTEXWEIGHTFEXTPROC is access procedure (arg1 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXWEIGHTFEXTPROC); -- ../include/SDL/SDL_opengl.h:5340
type PFNGLVERTEXWEIGHTFVEXTPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXWEIGHTFVEXTPROC); -- ../include/SDL/SDL_opengl.h:5341
type PFNGLVERTEXWEIGHTPOINTEREXTPROC is access procedure
(arg1 : GL_gl_h.GLsizei;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : System.Address);
pragma Convention (C, PFNGLVERTEXWEIGHTPOINTEREXTPROC); -- ../include/SDL/SDL_opengl.h:5342
type PFNGLFLUSHVERTEXARRAYRANGENVPROC is access procedure;
pragma Convention (C, PFNGLFLUSHVERTEXARRAYRANGENVPROC); -- ../include/SDL/SDL_opengl.h:5355
type PFNGLVERTEXARRAYRANGENVPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : System.Address);
pragma Convention (C, PFNGLVERTEXARRAYRANGENVPROC); -- ../include/SDL/SDL_opengl.h:5356
type PFNGLCOMBINERPARAMETERFVNVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCOMBINERPARAMETERFVNVPROC); -- ../include/SDL/SDL_opengl.h:5376
type PFNGLCOMBINERPARAMETERFNVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCOMBINERPARAMETERFNVPROC); -- ../include/SDL/SDL_opengl.h:5377
type PFNGLCOMBINERPARAMETERIVNVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLCOMBINERPARAMETERIVNVPROC); -- ../include/SDL/SDL_opengl.h:5378
type PFNGLCOMBINERPARAMETERINVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLCOMBINERPARAMETERINVPROC); -- ../include/SDL/SDL_opengl.h:5379
type PFNGLCOMBINERINPUTNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum;
arg5 : GL_gl_h.GLenum;
arg6 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLCOMBINERINPUTNVPROC); -- ../include/SDL/SDL_opengl.h:5380
type PFNGLCOMBINEROUTPUTNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum;
arg5 : GL_gl_h.GLenum;
arg6 : GL_gl_h.GLenum;
arg7 : GL_gl_h.GLenum;
arg8 : GL_gl_h.GLboolean;
arg9 : GL_gl_h.GLboolean;
arg10 : GL_gl_h.GLboolean);
pragma Convention (C, PFNGLCOMBINEROUTPUTNVPROC); -- ../include/SDL/SDL_opengl.h:5381
type PFNGLFINALCOMBINERINPUTNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLFINALCOMBINERINPUTNVPROC); -- ../include/SDL/SDL_opengl.h:5382
type PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum;
arg5 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC); -- ../include/SDL/SDL_opengl.h:5383
type PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum;
arg5 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC); -- ../include/SDL/SDL_opengl.h:5384
type PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC); -- ../include/SDL/SDL_opengl.h:5385
type PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC); -- ../include/SDL/SDL_opengl.h:5386
type PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC); -- ../include/SDL/SDL_opengl.h:5387
type PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC); -- ../include/SDL/SDL_opengl.h:5388
type PFNGLRESIZEBUFFERSMESAPROC is access procedure;
pragma Convention (C, PFNGLRESIZEBUFFERSMESAPROC); -- ../include/SDL/SDL_opengl.h:5412
type PFNGLWINDOWPOS2DMESAPROC is access procedure (arg1 : GL_gl_h.GLdouble; arg2 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLWINDOWPOS2DMESAPROC); -- ../include/SDL/SDL_opengl.h:5443
type PFNGLWINDOWPOS2DVMESAPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLWINDOWPOS2DVMESAPROC); -- ../include/SDL/SDL_opengl.h:5444
type PFNGLWINDOWPOS2FMESAPROC is access procedure (arg1 : GL_gl_h.GLfloat; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLWINDOWPOS2FMESAPROC); -- ../include/SDL/SDL_opengl.h:5445
type PFNGLWINDOWPOS2FVMESAPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLWINDOWPOS2FVMESAPROC); -- ../include/SDL/SDL_opengl.h:5446
type PFNGLWINDOWPOS2IMESAPROC is access procedure (arg1 : GL_gl_h.GLint; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLWINDOWPOS2IMESAPROC); -- ../include/SDL/SDL_opengl.h:5447
type PFNGLWINDOWPOS2IVMESAPROC is access procedure (arg1 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLWINDOWPOS2IVMESAPROC); -- ../include/SDL/SDL_opengl.h:5448
type PFNGLWINDOWPOS2SMESAPROC is access procedure (arg1 : GL_gl_h.GLshort; arg2 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLWINDOWPOS2SMESAPROC); -- ../include/SDL/SDL_opengl.h:5449
type PFNGLWINDOWPOS2SVMESAPROC is access procedure (arg1 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLWINDOWPOS2SVMESAPROC); -- ../include/SDL/SDL_opengl.h:5450
type PFNGLWINDOWPOS3DMESAPROC is access procedure
(arg1 : GL_gl_h.GLdouble;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLWINDOWPOS3DMESAPROC); -- ../include/SDL/SDL_opengl.h:5451
type PFNGLWINDOWPOS3DVMESAPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLWINDOWPOS3DVMESAPROC); -- ../include/SDL/SDL_opengl.h:5452
type PFNGLWINDOWPOS3FMESAPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLWINDOWPOS3FMESAPROC); -- ../include/SDL/SDL_opengl.h:5453
type PFNGLWINDOWPOS3FVMESAPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLWINDOWPOS3FVMESAPROC); -- ../include/SDL/SDL_opengl.h:5454
type PFNGLWINDOWPOS3IMESAPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLWINDOWPOS3IMESAPROC); -- ../include/SDL/SDL_opengl.h:5455
type PFNGLWINDOWPOS3IVMESAPROC is access procedure (arg1 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLWINDOWPOS3IVMESAPROC); -- ../include/SDL/SDL_opengl.h:5456
type PFNGLWINDOWPOS3SMESAPROC is access procedure
(arg1 : GL_gl_h.GLshort;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLWINDOWPOS3SMESAPROC); -- ../include/SDL/SDL_opengl.h:5457
type PFNGLWINDOWPOS3SVMESAPROC is access procedure (arg1 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLWINDOWPOS3SVMESAPROC); -- ../include/SDL/SDL_opengl.h:5458
type PFNGLWINDOWPOS4DMESAPROC is access procedure
(arg1 : GL_gl_h.GLdouble;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLWINDOWPOS4DMESAPROC); -- ../include/SDL/SDL_opengl.h:5459
type PFNGLWINDOWPOS4DVMESAPROC is access procedure (arg1 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLWINDOWPOS4DVMESAPROC); -- ../include/SDL/SDL_opengl.h:5460
type PFNGLWINDOWPOS4FMESAPROC is access procedure
(arg1 : GL_gl_h.GLfloat;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLWINDOWPOS4FMESAPROC); -- ../include/SDL/SDL_opengl.h:5461
type PFNGLWINDOWPOS4FVMESAPROC is access procedure (arg1 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLWINDOWPOS4FVMESAPROC); -- ../include/SDL/SDL_opengl.h:5462
type PFNGLWINDOWPOS4IMESAPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint);
pragma Convention (C, PFNGLWINDOWPOS4IMESAPROC); -- ../include/SDL/SDL_opengl.h:5463
type PFNGLWINDOWPOS4IVMESAPROC is access procedure (arg1 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLWINDOWPOS4IVMESAPROC); -- ../include/SDL/SDL_opengl.h:5464
type PFNGLWINDOWPOS4SMESAPROC is access procedure
(arg1 : GL_gl_h.GLshort;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort;
arg4 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLWINDOWPOS4SMESAPROC); -- ../include/SDL/SDL_opengl.h:5465
type PFNGLWINDOWPOS4SVMESAPROC is access procedure (arg1 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLWINDOWPOS4SVMESAPROC); -- ../include/SDL/SDL_opengl.h:5466
type PFNGLMULTIMODEDRAWARRAYSIBMPROC is access procedure
(arg1 : access GL_gl_h.GLenum;
arg2 : access GL_gl_h.GLint;
arg3 : access GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTIMODEDRAWARRAYSIBMPROC); -- ../include/SDL/SDL_opengl.h:5479
type PFNGLMULTIMODEDRAWELEMENTSIBMPROC is access procedure
(arg1 : access GL_gl_h.GLenum;
arg2 : access GL_gl_h.GLsizei;
arg3 : GL_gl_h.GLenum;
arg4 : System.Address;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLint);
pragma Convention (C, PFNGLMULTIMODEDRAWELEMENTSIBMPROC); -- ../include/SDL/SDL_opengl.h:5480
type PFNGLCOLORPOINTERLISTIBMPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint;
arg4 : System.Address;
arg5 : GL_gl_h.GLint);
pragma Convention (C, PFNGLCOLORPOINTERLISTIBMPROC); -- ../include/SDL/SDL_opengl.h:5495
type PFNGLSECONDARYCOLORPOINTERLISTIBMPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint;
arg4 : System.Address;
arg5 : GL_gl_h.GLint);
pragma Convention (C, PFNGLSECONDARYCOLORPOINTERLISTIBMPROC); -- ../include/SDL/SDL_opengl.h:5496
type PFNGLEDGEFLAGPOINTERLISTIBMPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : System.Address;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLEDGEFLAGPOINTERLISTIBMPROC); -- ../include/SDL/SDL_opengl.h:5497
type PFNGLFOGCOORDPOINTERLISTIBMPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : System.Address;
arg4 : GL_gl_h.GLint);
pragma Convention (C, PFNGLFOGCOORDPOINTERLISTIBMPROC); -- ../include/SDL/SDL_opengl.h:5498
type PFNGLINDEXPOINTERLISTIBMPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : System.Address;
arg4 : GL_gl_h.GLint);
pragma Convention (C, PFNGLINDEXPOINTERLISTIBMPROC); -- ../include/SDL/SDL_opengl.h:5499
type PFNGLNORMALPOINTERLISTIBMPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : System.Address;
arg4 : GL_gl_h.GLint);
pragma Convention (C, PFNGLNORMALPOINTERLISTIBMPROC); -- ../include/SDL/SDL_opengl.h:5500
type PFNGLTEXCOORDPOINTERLISTIBMPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint;
arg4 : System.Address;
arg5 : GL_gl_h.GLint);
pragma Convention (C, PFNGLTEXCOORDPOINTERLISTIBMPROC); -- ../include/SDL/SDL_opengl.h:5501
type PFNGLVERTEXPOINTERLISTIBMPROC is access procedure
(arg1 : GL_gl_h.GLint;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint;
arg4 : System.Address;
arg5 : GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXPOINTERLISTIBMPROC); -- ../include/SDL/SDL_opengl.h:5502
type PFNGLTBUFFERMASK3DFXPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLTBUFFERMASK3DFXPROC); -- ../include/SDL/SDL_opengl.h:5534
type PFNGLSAMPLEMASKEXTPROC is access procedure (arg1 : GL_gl_h.GLclampf; arg2 : GL_gl_h.GLboolean);
pragma Convention (C, PFNGLSAMPLEMASKEXTPROC); -- ../include/SDL/SDL_opengl.h:5543
type PFNGLSAMPLEPATTERNEXTPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLSAMPLEPATTERNEXTPROC); -- ../include/SDL/SDL_opengl.h:5544
type PFNGLTEXTURECOLORMASKSGISPROC is access procedure
(arg1 : GL_gl_h.GLboolean;
arg2 : GL_gl_h.GLboolean;
arg3 : GL_gl_h.GLboolean;
arg4 : GL_gl_h.GLboolean);
pragma Convention (C, PFNGLTEXTURECOLORMASKSGISPROC); -- ../include/SDL/SDL_opengl.h:5568
type PFNGLIGLOOINTERFACESGIXPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : System.Address);
pragma Convention (C, PFNGLIGLOOINTERFACESGIXPROC); -- ../include/SDL/SDL_opengl.h:5576
type PFNGLDELETEFENCESNVPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETEFENCESNVPROC); -- ../include/SDL/SDL_opengl.h:5598
type PFNGLGENFENCESNVPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGENFENCESNVPROC); -- ../include/SDL/SDL_opengl.h:5599
type PFNGLISFENCENVPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISFENCENVPROC); -- ../include/SDL/SDL_opengl.h:5600
type PFNGLTESTFENCENVPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLTESTFENCENVPROC); -- ../include/SDL/SDL_opengl.h:5601
type PFNGLGETFENCEIVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETFENCEIVNVPROC); -- ../include/SDL/SDL_opengl.h:5602
type PFNGLFINISHFENCENVPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLFINISHFENCENVPROC); -- ../include/SDL/SDL_opengl.h:5603
type PFNGLSETFENCENVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLSETFENCENVPROC); -- ../include/SDL/SDL_opengl.h:5604
type PFNGLMAPCONTROLPOINTSNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLint;
arg7 : GL_gl_h.GLint;
arg8 : GL_gl_h.GLboolean;
arg9 : System.Address);
pragma Convention (C, PFNGLMAPCONTROLPOINTSNVPROC); -- ../include/SDL/SDL_opengl.h:5620
type PFNGLMAPPARAMETERIVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLMAPPARAMETERIVNVPROC); -- ../include/SDL/SDL_opengl.h:5621
type PFNGLMAPPARAMETERFVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLMAPPARAMETERFVNVPROC); -- ../include/SDL/SDL_opengl.h:5622
type PFNGLGETMAPCONTROLPOINTSNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLboolean;
arg7 : System.Address);
pragma Convention (C, PFNGLGETMAPCONTROLPOINTSNVPROC); -- ../include/SDL/SDL_opengl.h:5623
type PFNGLGETMAPPARAMETERIVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETMAPPARAMETERIVNVPROC); -- ../include/SDL/SDL_opengl.h:5624
type PFNGLGETMAPPARAMETERFVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETMAPPARAMETERFVNVPROC); -- ../include/SDL/SDL_opengl.h:5625
type PFNGLGETMAPATTRIBPARAMETERIVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLenum;
arg4 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETMAPATTRIBPARAMETERIVNVPROC); -- ../include/SDL/SDL_opengl.h:5626
type PFNGLGETMAPATTRIBPARAMETERFVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLenum;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETMAPATTRIBPARAMETERFVNVPROC); -- ../include/SDL/SDL_opengl.h:5627
type PFNGLEVALMAPSNVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLEVALMAPSNVPROC); -- ../include/SDL/SDL_opengl.h:5628
type PFNGLCOMBINERSTAGEPARAMETERFVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLCOMBINERSTAGEPARAMETERFVNVPROC); -- ../include/SDL/SDL_opengl.h:5641
type PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC); -- ../include/SDL/SDL_opengl.h:5642
type PFNGLAREPROGRAMSRESIDENTNVPROC is access function
(arg1 : GL_gl_h.GLsizei;
arg2 : access GL_gl_h.GLuint;
arg3 : access GL_gl_h.GLboolean) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLAREPROGRAMSRESIDENTNVPROC); -- ../include/SDL/SDL_opengl.h:5733
type PFNGLBINDPROGRAMNVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLBINDPROGRAMNVPROC); -- ../include/SDL/SDL_opengl.h:5734
type PFNGLDELETEPROGRAMSNVPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETEPROGRAMSNVPROC); -- ../include/SDL/SDL_opengl.h:5735
type PFNGLEXECUTEPROGRAMNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLEXECUTEPROGRAMNVPROC); -- ../include/SDL/SDL_opengl.h:5736
type PFNGLGENPROGRAMSNVPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGENPROGRAMSNVPROC); -- ../include/SDL/SDL_opengl.h:5737
type PFNGLGETPROGRAMPARAMETERDVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLenum;
arg4 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLGETPROGRAMPARAMETERDVNVPROC); -- ../include/SDL/SDL_opengl.h:5738
type PFNGLGETPROGRAMPARAMETERFVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLenum;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETPROGRAMPARAMETERFVNVPROC); -- ../include/SDL/SDL_opengl.h:5739
type PFNGLGETPROGRAMIVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETPROGRAMIVNVPROC); -- ../include/SDL/SDL_opengl.h:5740
type PFNGLGETPROGRAMSTRINGNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLubyte);
pragma Convention (C, PFNGLGETPROGRAMSTRINGNVPROC); -- ../include/SDL/SDL_opengl.h:5741
type PFNGLGETTRACKMATRIXIVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLenum;
arg4 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETTRACKMATRIXIVNVPROC); -- ../include/SDL/SDL_opengl.h:5742
type PFNGLGETVERTEXATTRIBDVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLGETVERTEXATTRIBDVNVPROC); -- ../include/SDL/SDL_opengl.h:5743
type PFNGLGETVERTEXATTRIBFVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETVERTEXATTRIBFVNVPROC); -- ../include/SDL/SDL_opengl.h:5744
type PFNGLGETVERTEXATTRIBIVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETVERTEXATTRIBIVNVPROC); -- ../include/SDL/SDL_opengl.h:5745
type PFNGLGETVERTEXATTRIBPOINTERVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : System.Address);
pragma Convention (C, PFNGLGETVERTEXATTRIBPOINTERVNVPROC); -- ../include/SDL/SDL_opengl.h:5746
type PFNGLISPROGRAMNVPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISPROGRAMNVPROC); -- ../include/SDL/SDL_opengl.h:5747
type PFNGLLOADPROGRAMNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLsizei;
arg4 : access GL_gl_h.GLubyte);
pragma Convention (C, PFNGLLOADPROGRAMNVPROC); -- ../include/SDL/SDL_opengl.h:5748
type PFNGLPROGRAMPARAMETER4DNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble;
arg5 : GL_gl_h.GLdouble;
arg6 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLPROGRAMPARAMETER4DNVPROC); -- ../include/SDL/SDL_opengl.h:5749
type PFNGLPROGRAMPARAMETER4DVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLPROGRAMPARAMETER4DVNVPROC); -- ../include/SDL/SDL_opengl.h:5750
type PFNGLPROGRAMPARAMETER4FNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPROGRAMPARAMETER4FNVPROC); -- ../include/SDL/SDL_opengl.h:5751
type PFNGLPROGRAMPARAMETER4FVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPROGRAMPARAMETER4FVNVPROC); -- ../include/SDL/SDL_opengl.h:5752
type PFNGLPROGRAMPARAMETERS4DVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint;
arg4 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLPROGRAMPARAMETERS4DVNVPROC); -- ../include/SDL/SDL_opengl.h:5753
type PFNGLPROGRAMPARAMETERS4FVNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPROGRAMPARAMETERS4FVNVPROC); -- ../include/SDL/SDL_opengl.h:5754
type PFNGLREQUESTRESIDENTPROGRAMSNVPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLREQUESTRESIDENTPROGRAMSNVPROC); -- ../include/SDL/SDL_opengl.h:5755
type PFNGLTRACKMATRIXNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLTRACKMATRIXNVPROC); -- ../include/SDL/SDL_opengl.h:5756
type PFNGLVERTEXATTRIBPOINTERNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLsizei;
arg5 : System.Address);
pragma Convention (C, PFNGLVERTEXATTRIBPOINTERNVPROC); -- ../include/SDL/SDL_opengl.h:5757
type PFNGLVERTEXATTRIB1DNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB1DNVPROC); -- ../include/SDL/SDL_opengl.h:5758
type PFNGLVERTEXATTRIB1DVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB1DVNVPROC); -- ../include/SDL/SDL_opengl.h:5759
type PFNGLVERTEXATTRIB1FNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB1FNVPROC); -- ../include/SDL/SDL_opengl.h:5760
type PFNGLVERTEXATTRIB1FVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB1FVNVPROC); -- ../include/SDL/SDL_opengl.h:5761
type PFNGLVERTEXATTRIB1SNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB1SNVPROC); -- ../include/SDL/SDL_opengl.h:5762
type PFNGLVERTEXATTRIB1SVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB1SVNVPROC); -- ../include/SDL/SDL_opengl.h:5763
type PFNGLVERTEXATTRIB2DNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB2DNVPROC); -- ../include/SDL/SDL_opengl.h:5764
type PFNGLVERTEXATTRIB2DVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB2DVNVPROC); -- ../include/SDL/SDL_opengl.h:5765
type PFNGLVERTEXATTRIB2FNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB2FNVPROC); -- ../include/SDL/SDL_opengl.h:5766
type PFNGLVERTEXATTRIB2FVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB2FVNVPROC); -- ../include/SDL/SDL_opengl.h:5767
type PFNGLVERTEXATTRIB2SNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB2SNVPROC); -- ../include/SDL/SDL_opengl.h:5768
type PFNGLVERTEXATTRIB2SVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB2SVNVPROC); -- ../include/SDL/SDL_opengl.h:5769
type PFNGLVERTEXATTRIB3DNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB3DNVPROC); -- ../include/SDL/SDL_opengl.h:5770
type PFNGLVERTEXATTRIB3DVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB3DVNVPROC); -- ../include/SDL/SDL_opengl.h:5771
type PFNGLVERTEXATTRIB3FNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB3FNVPROC); -- ../include/SDL/SDL_opengl.h:5772
type PFNGLVERTEXATTRIB3FVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB3FVNVPROC); -- ../include/SDL/SDL_opengl.h:5773
type PFNGLVERTEXATTRIB3SNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort;
arg4 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB3SNVPROC); -- ../include/SDL/SDL_opengl.h:5774
type PFNGLVERTEXATTRIB3SVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB3SVNVPROC); -- ../include/SDL/SDL_opengl.h:5775
type PFNGLVERTEXATTRIB4DNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble;
arg5 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB4DNVPROC); -- ../include/SDL/SDL_opengl.h:5776
type PFNGLVERTEXATTRIB4DVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIB4DVNVPROC); -- ../include/SDL/SDL_opengl.h:5777
type PFNGLVERTEXATTRIB4FNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB4FNVPROC); -- ../include/SDL/SDL_opengl.h:5778
type PFNGLVERTEXATTRIB4FVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIB4FVNVPROC); -- ../include/SDL/SDL_opengl.h:5779
type PFNGLVERTEXATTRIB4SNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort;
arg4 : GL_gl_h.GLshort;
arg5 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB4SNVPROC); -- ../include/SDL/SDL_opengl.h:5780
type PFNGLVERTEXATTRIB4SVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIB4SVNVPROC); -- ../include/SDL/SDL_opengl.h:5781
type PFNGLVERTEXATTRIB4UBNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLubyte;
arg3 : GL_gl_h.GLubyte;
arg4 : GL_gl_h.GLubyte;
arg5 : GL_gl_h.GLubyte);
pragma Convention (C, PFNGLVERTEXATTRIB4UBNVPROC); -- ../include/SDL/SDL_opengl.h:5782
type PFNGLVERTEXATTRIB4UBVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLubyte);
pragma Convention (C, PFNGLVERTEXATTRIB4UBVNVPROC); -- ../include/SDL/SDL_opengl.h:5783
type PFNGLVERTEXATTRIBS1DVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIBS1DVNVPROC); -- ../include/SDL/SDL_opengl.h:5784
type PFNGLVERTEXATTRIBS1FVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIBS1FVNVPROC); -- ../include/SDL/SDL_opengl.h:5785
type PFNGLVERTEXATTRIBS1SVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIBS1SVNVPROC); -- ../include/SDL/SDL_opengl.h:5786
type PFNGLVERTEXATTRIBS2DVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIBS2DVNVPROC); -- ../include/SDL/SDL_opengl.h:5787
type PFNGLVERTEXATTRIBS2FVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIBS2FVNVPROC); -- ../include/SDL/SDL_opengl.h:5788
type PFNGLVERTEXATTRIBS2SVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIBS2SVNVPROC); -- ../include/SDL/SDL_opengl.h:5789
type PFNGLVERTEXATTRIBS3DVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIBS3DVNVPROC); -- ../include/SDL/SDL_opengl.h:5790
type PFNGLVERTEXATTRIBS3FVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIBS3FVNVPROC); -- ../include/SDL/SDL_opengl.h:5791
type PFNGLVERTEXATTRIBS3SVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIBS3SVNVPROC); -- ../include/SDL/SDL_opengl.h:5792
type PFNGLVERTEXATTRIBS4DVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXATTRIBS4DVNVPROC); -- ../include/SDL/SDL_opengl.h:5793
type PFNGLVERTEXATTRIBS4FVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXATTRIBS4FVNVPROC); -- ../include/SDL/SDL_opengl.h:5794
type PFNGLVERTEXATTRIBS4SVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXATTRIBS4SVNVPROC); -- ../include/SDL/SDL_opengl.h:5795
type PFNGLVERTEXATTRIBS4UBVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLubyte);
pragma Convention (C, PFNGLVERTEXATTRIBS4UBVNVPROC); -- ../include/SDL/SDL_opengl.h:5796
type PFNGLTEXBUMPPARAMETERIVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLTEXBUMPPARAMETERIVATIPROC); -- ../include/SDL/SDL_opengl.h:5831
type PFNGLTEXBUMPPARAMETERFVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLTEXBUMPPARAMETERFVATIPROC); -- ../include/SDL/SDL_opengl.h:5832
type PFNGLGETTEXBUMPPARAMETERIVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETTEXBUMPPARAMETERIVATIPROC); -- ../include/SDL/SDL_opengl.h:5833
type PFNGLGETTEXBUMPPARAMETERFVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETTEXBUMPPARAMETERFVATIPROC); -- ../include/SDL/SDL_opengl.h:5834
type PFNGLGENFRAGMENTSHADERSATIPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLuint;
pragma Convention (C, PFNGLGENFRAGMENTSHADERSATIPROC); -- ../include/SDL/SDL_opengl.h:5855
type PFNGLBINDFRAGMENTSHADERATIPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLBINDFRAGMENTSHADERATIPROC); -- ../include/SDL/SDL_opengl.h:5856
type PFNGLDELETEFRAGMENTSHADERATIPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETEFRAGMENTSHADERATIPROC); -- ../include/SDL/SDL_opengl.h:5857
type PFNGLBEGINFRAGMENTSHADERATIPROC is access procedure;
pragma Convention (C, PFNGLBEGINFRAGMENTSHADERATIPROC); -- ../include/SDL/SDL_opengl.h:5858
type PFNGLENDFRAGMENTSHADERATIPROC is access procedure;
pragma Convention (C, PFNGLENDFRAGMENTSHADERATIPROC); -- ../include/SDL/SDL_opengl.h:5859
type PFNGLPASSTEXCOORDATIPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLPASSTEXCOORDATIPROC); -- ../include/SDL/SDL_opengl.h:5860
type PFNGLSAMPLEMAPATIPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLSAMPLEMAPATIPROC); -- ../include/SDL/SDL_opengl.h:5861
type PFNGLCOLORFRAGMENTOP1ATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint;
arg4 : GL_gl_h.GLuint;
arg5 : GL_gl_h.GLuint;
arg6 : GL_gl_h.GLuint;
arg7 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLCOLORFRAGMENTOP1ATIPROC); -- ../include/SDL/SDL_opengl.h:5862
type PFNGLCOLORFRAGMENTOP2ATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint;
arg4 : GL_gl_h.GLuint;
arg5 : GL_gl_h.GLuint;
arg6 : GL_gl_h.GLuint;
arg7 : GL_gl_h.GLuint;
arg8 : GL_gl_h.GLuint;
arg9 : GL_gl_h.GLuint;
arg10 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLCOLORFRAGMENTOP2ATIPROC); -- ../include/SDL/SDL_opengl.h:5863
type PFNGLCOLORFRAGMENTOP3ATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint;
arg4 : GL_gl_h.GLuint;
arg5 : GL_gl_h.GLuint;
arg6 : GL_gl_h.GLuint;
arg7 : GL_gl_h.GLuint;
arg8 : GL_gl_h.GLuint;
arg9 : GL_gl_h.GLuint;
arg10 : GL_gl_h.GLuint;
arg11 : GL_gl_h.GLuint;
arg12 : GL_gl_h.GLuint;
arg13 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLCOLORFRAGMENTOP3ATIPROC); -- ../include/SDL/SDL_opengl.h:5864
type PFNGLALPHAFRAGMENTOP1ATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint;
arg4 : GL_gl_h.GLuint;
arg5 : GL_gl_h.GLuint;
arg6 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLALPHAFRAGMENTOP1ATIPROC); -- ../include/SDL/SDL_opengl.h:5865
type PFNGLALPHAFRAGMENTOP2ATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint;
arg4 : GL_gl_h.GLuint;
arg5 : GL_gl_h.GLuint;
arg6 : GL_gl_h.GLuint;
arg7 : GL_gl_h.GLuint;
arg8 : GL_gl_h.GLuint;
arg9 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLALPHAFRAGMENTOP2ATIPROC); -- ../include/SDL/SDL_opengl.h:5866
type PFNGLALPHAFRAGMENTOP3ATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint;
arg4 : GL_gl_h.GLuint;
arg5 : GL_gl_h.GLuint;
arg6 : GL_gl_h.GLuint;
arg7 : GL_gl_h.GLuint;
arg8 : GL_gl_h.GLuint;
arg9 : GL_gl_h.GLuint;
arg10 : GL_gl_h.GLuint;
arg11 : GL_gl_h.GLuint;
arg12 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLALPHAFRAGMENTOP3ATIPROC); -- ../include/SDL/SDL_opengl.h:5867
type PFNGLSETFRAGMENTSHADERCONSTANTATIPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLSETFRAGMENTSHADERCONSTANTATIPROC); -- ../include/SDL/SDL_opengl.h:5868
type PFNGLPNTRIANGLESIATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLPNTRIANGLESIATIPROC); -- ../include/SDL/SDL_opengl.h:5877
type PFNGLPNTRIANGLESFATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPNTRIANGLESFATIPROC); -- ../include/SDL/SDL_opengl.h:5878
type PFNGLNEWOBJECTBUFFERATIPROC is access function
(arg1 : GL_gl_h.GLsizei;
arg2 : System.Address;
arg3 : GL_gl_h.GLenum) return GL_gl_h.GLuint;
pragma Convention (C, PFNGLNEWOBJECTBUFFERATIPROC); -- ../include/SDL/SDL_opengl.h:5897
type PFNGLISOBJECTBUFFERATIPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISOBJECTBUFFERATIPROC); -- ../include/SDL/SDL_opengl.h:5898
type PFNGLUPDATEOBJECTBUFFERATIPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLsizei;
arg4 : System.Address;
arg5 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLUPDATEOBJECTBUFFERATIPROC); -- ../include/SDL/SDL_opengl.h:5899
type PFNGLGETOBJECTBUFFERFVATIPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETOBJECTBUFFERFVATIPROC); -- ../include/SDL/SDL_opengl.h:5900
type PFNGLGETOBJECTBUFFERIVATIPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETOBJECTBUFFERIVATIPROC); -- ../include/SDL/SDL_opengl.h:5901
type PFNGLFREEOBJECTBUFFERATIPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLFREEOBJECTBUFFERATIPROC); -- ../include/SDL/SDL_opengl.h:5902
type PFNGLARRAYOBJECTATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLsizei;
arg5 : GL_gl_h.GLuint;
arg6 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLARRAYOBJECTATIPROC); -- ../include/SDL/SDL_opengl.h:5903
type PFNGLGETARRAYOBJECTFVATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETARRAYOBJECTFVATIPROC); -- ../include/SDL/SDL_opengl.h:5904
type PFNGLGETARRAYOBJECTIVATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETARRAYOBJECTIVATIPROC); -- ../include/SDL/SDL_opengl.h:5905
type PFNGLVARIANTARRAYOBJECTATIPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLuint;
arg5 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLVARIANTARRAYOBJECTATIPROC); -- ../include/SDL/SDL_opengl.h:5906
type PFNGLGETVARIANTARRAYOBJECTFVATIPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETVARIANTARRAYOBJECTFVATIPROC); -- ../include/SDL/SDL_opengl.h:5907
type PFNGLGETVARIANTARRAYOBJECTIVATIPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETVARIANTARRAYOBJECTIVATIPROC); -- ../include/SDL/SDL_opengl.h:5908
type PFNGLBEGINVERTEXSHADEREXTPROC is access procedure;
pragma Convention (C, PFNGLBEGINVERTEXSHADEREXTPROC); -- ../include/SDL/SDL_opengl.h:5957
type PFNGLENDVERTEXSHADEREXTPROC is access procedure;
pragma Convention (C, PFNGLENDVERTEXSHADEREXTPROC); -- ../include/SDL/SDL_opengl.h:5958
type PFNGLBINDVERTEXSHADEREXTPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLBINDVERTEXSHADEREXTPROC); -- ../include/SDL/SDL_opengl.h:5959
type PFNGLGENVERTEXSHADERSEXTPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLuint;
pragma Convention (C, PFNGLGENVERTEXSHADERSEXTPROC); -- ../include/SDL/SDL_opengl.h:5960
type PFNGLDELETEVERTEXSHADEREXTPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETEVERTEXSHADEREXTPROC); -- ../include/SDL/SDL_opengl.h:5961
type PFNGLSHADEROP1EXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLSHADEROP1EXTPROC); -- ../include/SDL/SDL_opengl.h:5962
type PFNGLSHADEROP2EXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint;
arg4 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLSHADEROP2EXTPROC); -- ../include/SDL/SDL_opengl.h:5963
type PFNGLSHADEROP3EXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint;
arg4 : GL_gl_h.GLuint;
arg5 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLSHADEROP3EXTPROC); -- ../include/SDL/SDL_opengl.h:5964
type PFNGLSWIZZLEEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum;
arg5 : GL_gl_h.GLenum;
arg6 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLSWIZZLEEXTPROC); -- ../include/SDL/SDL_opengl.h:5965
type PFNGLWRITEMASKEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum;
arg5 : GL_gl_h.GLenum;
arg6 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLWRITEMASKEXTPROC); -- ../include/SDL/SDL_opengl.h:5966
type PFNGLINSERTCOMPONENTEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLINSERTCOMPONENTEXTPROC); -- ../include/SDL/SDL_opengl.h:5967
type PFNGLEXTRACTCOMPONENTEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLEXTRACTCOMPONENTEXTPROC); -- ../include/SDL/SDL_opengl.h:5968
type PFNGLGENSYMBOLSEXTPROC is access function
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLuint) return GL_gl_h.GLuint;
pragma Convention (C, PFNGLGENSYMBOLSEXTPROC); -- ../include/SDL/SDL_opengl.h:5969
type PFNGLSETINVARIANTEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : System.Address);
pragma Convention (C, PFNGLSETINVARIANTEXTPROC); -- ../include/SDL/SDL_opengl.h:5970
type PFNGLSETLOCALCONSTANTEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : System.Address);
pragma Convention (C, PFNGLSETLOCALCONSTANTEXTPROC); -- ../include/SDL/SDL_opengl.h:5971
type PFNGLVARIANTBVEXTPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLbyte);
pragma Convention (C, PFNGLVARIANTBVEXTPROC); -- ../include/SDL/SDL_opengl.h:5972
type PFNGLVARIANTSVEXTPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVARIANTSVEXTPROC); -- ../include/SDL/SDL_opengl.h:5973
type PFNGLVARIANTIVEXTPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLVARIANTIVEXTPROC); -- ../include/SDL/SDL_opengl.h:5974
type PFNGLVARIANTFVEXTPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVARIANTFVEXTPROC); -- ../include/SDL/SDL_opengl.h:5975
type PFNGLVARIANTDVEXTPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVARIANTDVEXTPROC); -- ../include/SDL/SDL_opengl.h:5976
type PFNGLVARIANTUBVEXTPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLubyte);
pragma Convention (C, PFNGLVARIANTUBVEXTPROC); -- ../include/SDL/SDL_opengl.h:5977
type PFNGLVARIANTUSVEXTPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLushort);
pragma Convention (C, PFNGLVARIANTUSVEXTPROC); -- ../include/SDL/SDL_opengl.h:5978
type PFNGLVARIANTUIVEXTPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLVARIANTUIVEXTPROC); -- ../include/SDL/SDL_opengl.h:5979
type PFNGLVARIANTPOINTEREXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLuint;
arg4 : System.Address);
pragma Convention (C, PFNGLVARIANTPOINTEREXTPROC); -- ../include/SDL/SDL_opengl.h:5980
type PFNGLENABLEVARIANTCLIENTSTATEEXTPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLENABLEVARIANTCLIENTSTATEEXTPROC); -- ../include/SDL/SDL_opengl.h:5981
type PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC); -- ../include/SDL/SDL_opengl.h:5982
type PFNGLBINDLIGHTPARAMETEREXTPROC is access function (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLenum) return GL_gl_h.GLuint;
pragma Convention (C, PFNGLBINDLIGHTPARAMETEREXTPROC); -- ../include/SDL/SDL_opengl.h:5983
type PFNGLBINDMATERIALPARAMETEREXTPROC is access function (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLenum) return GL_gl_h.GLuint;
pragma Convention (C, PFNGLBINDMATERIALPARAMETEREXTPROC); -- ../include/SDL/SDL_opengl.h:5984
type PFNGLBINDTEXGENPARAMETEREXTPROC is access function
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum) return GL_gl_h.GLuint;
pragma Convention (C, PFNGLBINDTEXGENPARAMETEREXTPROC); -- ../include/SDL/SDL_opengl.h:5985
type PFNGLBINDTEXTUREUNITPARAMETEREXTPROC is access function (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLenum) return GL_gl_h.GLuint;
pragma Convention (C, PFNGLBINDTEXTUREUNITPARAMETEREXTPROC); -- ../include/SDL/SDL_opengl.h:5986
type PFNGLBINDPARAMETEREXTPROC is access function (arg1 : GL_gl_h.GLenum) return GL_gl_h.GLuint;
pragma Convention (C, PFNGLBINDPARAMETEREXTPROC); -- ../include/SDL/SDL_opengl.h:5987
type PFNGLISVARIANTENABLEDEXTPROC is access function (arg1 : GL_gl_h.GLuint; arg2 : GL_gl_h.GLenum) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISVARIANTENABLEDEXTPROC); -- ../include/SDL/SDL_opengl.h:5988
type PFNGLGETVARIANTBOOLEANVEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLboolean);
pragma Convention (C, PFNGLGETVARIANTBOOLEANVEXTPROC); -- ../include/SDL/SDL_opengl.h:5989
type PFNGLGETVARIANTINTEGERVEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETVARIANTINTEGERVEXTPROC); -- ../include/SDL/SDL_opengl.h:5990
type PFNGLGETVARIANTFLOATVEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETVARIANTFLOATVEXTPROC); -- ../include/SDL/SDL_opengl.h:5991
type PFNGLGETVARIANTPOINTERVEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : System.Address);
pragma Convention (C, PFNGLGETVARIANTPOINTERVEXTPROC); -- ../include/SDL/SDL_opengl.h:5992
type PFNGLGETINVARIANTBOOLEANVEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLboolean);
pragma Convention (C, PFNGLGETINVARIANTBOOLEANVEXTPROC); -- ../include/SDL/SDL_opengl.h:5993
type PFNGLGETINVARIANTINTEGERVEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETINVARIANTINTEGERVEXTPROC); -- ../include/SDL/SDL_opengl.h:5994
type PFNGLGETINVARIANTFLOATVEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETINVARIANTFLOATVEXTPROC); -- ../include/SDL/SDL_opengl.h:5995
type PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLboolean);
pragma Convention (C, PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC); -- ../include/SDL/SDL_opengl.h:5996
type PFNGLGETLOCALCONSTANTINTEGERVEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETLOCALCONSTANTINTEGERVEXTPROC); -- ../include/SDL/SDL_opengl.h:5997
type PFNGLGETLOCALCONSTANTFLOATVEXTPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETLOCALCONSTANTFLOATVEXTPROC); -- ../include/SDL/SDL_opengl.h:5998
type PFNGLVERTEXSTREAM1SATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXSTREAM1SATIPROC); -- ../include/SDL/SDL_opengl.h:6050
type PFNGLVERTEXSTREAM1SVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXSTREAM1SVATIPROC); -- ../include/SDL/SDL_opengl.h:6051
type PFNGLVERTEXSTREAM1IATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXSTREAM1IATIPROC); -- ../include/SDL/SDL_opengl.h:6052
type PFNGLVERTEXSTREAM1IVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXSTREAM1IVATIPROC); -- ../include/SDL/SDL_opengl.h:6053
type PFNGLVERTEXSTREAM1FATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXSTREAM1FATIPROC); -- ../include/SDL/SDL_opengl.h:6054
type PFNGLVERTEXSTREAM1FVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXSTREAM1FVATIPROC); -- ../include/SDL/SDL_opengl.h:6055
type PFNGLVERTEXSTREAM1DATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXSTREAM1DATIPROC); -- ../include/SDL/SDL_opengl.h:6056
type PFNGLVERTEXSTREAM1DVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXSTREAM1DVATIPROC); -- ../include/SDL/SDL_opengl.h:6057
type PFNGLVERTEXSTREAM2SATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXSTREAM2SATIPROC); -- ../include/SDL/SDL_opengl.h:6058
type PFNGLVERTEXSTREAM2SVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXSTREAM2SVATIPROC); -- ../include/SDL/SDL_opengl.h:6059
type PFNGLVERTEXSTREAM2IATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXSTREAM2IATIPROC); -- ../include/SDL/SDL_opengl.h:6060
type PFNGLVERTEXSTREAM2IVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXSTREAM2IVATIPROC); -- ../include/SDL/SDL_opengl.h:6061
type PFNGLVERTEXSTREAM2FATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXSTREAM2FATIPROC); -- ../include/SDL/SDL_opengl.h:6062
type PFNGLVERTEXSTREAM2FVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXSTREAM2FVATIPROC); -- ../include/SDL/SDL_opengl.h:6063
type PFNGLVERTEXSTREAM2DATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXSTREAM2DATIPROC); -- ../include/SDL/SDL_opengl.h:6064
type PFNGLVERTEXSTREAM2DVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXSTREAM2DVATIPROC); -- ../include/SDL/SDL_opengl.h:6065
type PFNGLVERTEXSTREAM3SATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort;
arg4 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXSTREAM3SATIPROC); -- ../include/SDL/SDL_opengl.h:6066
type PFNGLVERTEXSTREAM3SVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXSTREAM3SVATIPROC); -- ../include/SDL/SDL_opengl.h:6067
type PFNGLVERTEXSTREAM3IATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXSTREAM3IATIPROC); -- ../include/SDL/SDL_opengl.h:6068
type PFNGLVERTEXSTREAM3IVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXSTREAM3IVATIPROC); -- ../include/SDL/SDL_opengl.h:6069
type PFNGLVERTEXSTREAM3FATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXSTREAM3FATIPROC); -- ../include/SDL/SDL_opengl.h:6070
type PFNGLVERTEXSTREAM3FVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXSTREAM3FVATIPROC); -- ../include/SDL/SDL_opengl.h:6071
type PFNGLVERTEXSTREAM3DATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXSTREAM3DATIPROC); -- ../include/SDL/SDL_opengl.h:6072
type PFNGLVERTEXSTREAM3DVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXSTREAM3DVATIPROC); -- ../include/SDL/SDL_opengl.h:6073
type PFNGLVERTEXSTREAM4SATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort;
arg4 : GL_gl_h.GLshort;
arg5 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXSTREAM4SATIPROC); -- ../include/SDL/SDL_opengl.h:6074
type PFNGLVERTEXSTREAM4SVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLVERTEXSTREAM4SVATIPROC); -- ../include/SDL/SDL_opengl.h:6075
type PFNGLVERTEXSTREAM4IATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXSTREAM4IATIPROC); -- ../include/SDL/SDL_opengl.h:6076
type PFNGLVERTEXSTREAM4IVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXSTREAM4IVATIPROC); -- ../include/SDL/SDL_opengl.h:6077
type PFNGLVERTEXSTREAM4FATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXSTREAM4FATIPROC); -- ../include/SDL/SDL_opengl.h:6078
type PFNGLVERTEXSTREAM4FVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXSTREAM4FVATIPROC); -- ../include/SDL/SDL_opengl.h:6079
type PFNGLVERTEXSTREAM4DATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble;
arg5 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXSTREAM4DATIPROC); -- ../include/SDL/SDL_opengl.h:6080
type PFNGLVERTEXSTREAM4DVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLVERTEXSTREAM4DVATIPROC); -- ../include/SDL/SDL_opengl.h:6081
type PFNGLNORMALSTREAM3BATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLbyte;
arg3 : GL_gl_h.GLbyte;
arg4 : GL_gl_h.GLbyte);
pragma Convention (C, PFNGLNORMALSTREAM3BATIPROC); -- ../include/SDL/SDL_opengl.h:6082
type PFNGLNORMALSTREAM3BVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLbyte);
pragma Convention (C, PFNGLNORMALSTREAM3BVATIPROC); -- ../include/SDL/SDL_opengl.h:6083
type PFNGLNORMALSTREAM3SATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLshort;
arg3 : GL_gl_h.GLshort;
arg4 : GL_gl_h.GLshort);
pragma Convention (C, PFNGLNORMALSTREAM3SATIPROC); -- ../include/SDL/SDL_opengl.h:6084
type PFNGLNORMALSTREAM3SVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLshort);
pragma Convention (C, PFNGLNORMALSTREAM3SVATIPROC); -- ../include/SDL/SDL_opengl.h:6085
type PFNGLNORMALSTREAM3IATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLint);
pragma Convention (C, PFNGLNORMALSTREAM3IATIPROC); -- ../include/SDL/SDL_opengl.h:6086
type PFNGLNORMALSTREAM3IVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLNORMALSTREAM3IVATIPROC); -- ../include/SDL/SDL_opengl.h:6087
type PFNGLNORMALSTREAM3FATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLfloat;
arg3 : GL_gl_h.GLfloat;
arg4 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLNORMALSTREAM3FATIPROC); -- ../include/SDL/SDL_opengl.h:6088
type PFNGLNORMALSTREAM3FVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLNORMALSTREAM3FVATIPROC); -- ../include/SDL/SDL_opengl.h:6089
type PFNGLNORMALSTREAM3DATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLdouble;
arg3 : GL_gl_h.GLdouble;
arg4 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLNORMALSTREAM3DATIPROC); -- ../include/SDL/SDL_opengl.h:6090
type PFNGLNORMALSTREAM3DVATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLNORMALSTREAM3DVATIPROC); -- ../include/SDL/SDL_opengl.h:6091
type PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC); -- ../include/SDL/SDL_opengl.h:6092
type PFNGLVERTEXBLENDENVIATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXBLENDENVIATIPROC); -- ../include/SDL/SDL_opengl.h:6093
type PFNGLVERTEXBLENDENVFATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLVERTEXBLENDENVFATIPROC); -- ../include/SDL/SDL_opengl.h:6094
type PFNGLELEMENTPOINTERATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : System.Address);
pragma Convention (C, PFNGLELEMENTPOINTERATIPROC); -- ../include/SDL/SDL_opengl.h:6104
type PFNGLDRAWELEMENTARRAYATIPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLDRAWELEMENTARRAYATIPROC); -- ../include/SDL/SDL_opengl.h:6105
type PFNGLDRAWRANGEELEMENTARRAYATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint;
arg4 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLDRAWRANGEELEMENTARRAYATIPROC); -- ../include/SDL/SDL_opengl.h:6106
type PFNGLDRAWMESHARRAYSSUNPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLDRAWMESHARRAYSSUNPROC); -- ../include/SDL/SDL_opengl.h:6114
type PFNGLGENOCCLUSIONQUERIESNVPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGENOCCLUSIONQUERIESNVPROC); -- ../include/SDL/SDL_opengl.h:6140
type PFNGLDELETEOCCLUSIONQUERIESNVPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETEOCCLUSIONQUERIESNVPROC); -- ../include/SDL/SDL_opengl.h:6141
type PFNGLISOCCLUSIONQUERYNVPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISOCCLUSIONQUERYNVPROC); -- ../include/SDL/SDL_opengl.h:6142
type PFNGLBEGINOCCLUSIONQUERYNVPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLBEGINOCCLUSIONQUERYNVPROC); -- ../include/SDL/SDL_opengl.h:6143
type PFNGLENDOCCLUSIONQUERYNVPROC is access procedure;
pragma Convention (C, PFNGLENDOCCLUSIONQUERYNVPROC); -- ../include/SDL/SDL_opengl.h:6144
type PFNGLGETOCCLUSIONQUERYIVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETOCCLUSIONQUERYIVNVPROC); -- ../include/SDL/SDL_opengl.h:6145
type PFNGLGETOCCLUSIONQUERYUIVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGETOCCLUSIONQUERYUIVNVPROC); -- ../include/SDL/SDL_opengl.h:6146
type PFNGLPOINTPARAMETERINVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLPOINTPARAMETERINVPROC); -- ../include/SDL/SDL_opengl.h:6155
type PFNGLPOINTPARAMETERIVNVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLPOINTPARAMETERIVNVPROC); -- ../include/SDL/SDL_opengl.h:6156
type PFNGLACTIVESTENCILFACEEXTPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLACTIVESTENCILFACEEXTPROC); -- ../include/SDL/SDL_opengl.h:6176
type PFNGLELEMENTPOINTERAPPLEPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : System.Address);
pragma Convention (C, PFNGLELEMENTPOINTERAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6196
type PFNGLDRAWELEMENTARRAYAPPLEPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLDRAWELEMENTARRAYAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6197
type PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint;
arg4 : GL_gl_h.GLint;
arg5 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6198
type PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : access GL_gl_h.GLint;
arg3 : access GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6199
type PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLuint;
arg3 : GL_gl_h.GLuint;
arg4 : access GL_gl_h.GLint;
arg5 : access GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6200
type PFNGLGENFENCESAPPLEPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGENFENCESAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6215
type PFNGLDELETEFENCESAPPLEPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETEFENCESAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6216
type PFNGLSETFENCEAPPLEPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLSETFENCEAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6217
type PFNGLISFENCEAPPLEPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISFENCEAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6218
type PFNGLTESTFENCEAPPLEPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLTESTFENCEAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6219
type PFNGLFINISHFENCEAPPLEPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLFINISHFENCEAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6220
type PFNGLTESTOBJECTAPPLEPROC is access function (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLTESTOBJECTAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6221
type PFNGLFINISHOBJECTAPPLEPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLFINISHOBJECTAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6222
type PFNGLBINDVERTEXARRAYAPPLEPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLBINDVERTEXARRAYAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6233
type PFNGLDELETEVERTEXARRAYSAPPLEPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETEVERTEXARRAYSAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6234
type PFNGLGENVERTEXARRAYSAPPLEPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGENVERTEXARRAYSAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6235
type PFNGLISVERTEXARRAYAPPLEPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISVERTEXARRAYAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6236
type PFNGLVERTEXARRAYRANGEAPPLEPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : System.Address);
pragma Convention (C, PFNGLVERTEXARRAYRANGEAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6246
type PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : System.Address);
pragma Convention (C, PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6247
type PFNGLVERTEXARRAYPARAMETERIAPPLEPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLint);
pragma Convention (C, PFNGLVERTEXARRAYPARAMETERIAPPLEPROC); -- ../include/SDL/SDL_opengl.h:6248
type PFNGLDRAWBUFFERSATIPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLenum);
pragma Convention (C, PFNGLDRAWBUFFERSATIPROC); -- ../include/SDL/SDL_opengl.h:6264
type PFNGLPROGRAMNAMEDPARAMETER4FNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLubyte;
arg4 : GL_gl_h.GLfloat;
arg5 : GL_gl_h.GLfloat;
arg6 : GL_gl_h.GLfloat;
arg7 : GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPROGRAMNAMEDPARAMETER4FNVPROC); -- ../include/SDL/SDL_opengl.h:6297
type PFNGLPROGRAMNAMEDPARAMETER4DNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLubyte;
arg4 : GL_gl_h.GLdouble;
arg5 : GL_gl_h.GLdouble;
arg6 : GL_gl_h.GLdouble;
arg7 : GL_gl_h.GLdouble);
pragma Convention (C, PFNGLPROGRAMNAMEDPARAMETER4DNVPROC); -- ../include/SDL/SDL_opengl.h:6298
type PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLubyte;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC); -- ../include/SDL/SDL_opengl.h:6299
type PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLubyte;
arg4 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC); -- ../include/SDL/SDL_opengl.h:6300
type PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLubyte;
arg4 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC); -- ../include/SDL/SDL_opengl.h:6301
type PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GL_gl_h.GLubyte;
arg4 : access GL_gl_h.GLdouble);
pragma Convention (C, PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC); -- ../include/SDL/SDL_opengl.h:6302
type PFNGLVERTEX2HNVPROC is access procedure (arg1 : GLhalfNV; arg2 : GLhalfNV);
pragma Convention (C, PFNGLVERTEX2HNVPROC); -- ../include/SDL/SDL_opengl.h:6355
type PFNGLVERTEX2HVNVPROC is access procedure (arg1 : access GLhalfNV);
pragma Convention (C, PFNGLVERTEX2HVNVPROC); -- ../include/SDL/SDL_opengl.h:6356
type PFNGLVERTEX3HNVPROC is access procedure
(arg1 : GLhalfNV;
arg2 : GLhalfNV;
arg3 : GLhalfNV);
pragma Convention (C, PFNGLVERTEX3HNVPROC); -- ../include/SDL/SDL_opengl.h:6357
type PFNGLVERTEX3HVNVPROC is access procedure (arg1 : access GLhalfNV);
pragma Convention (C, PFNGLVERTEX3HVNVPROC); -- ../include/SDL/SDL_opengl.h:6358
type PFNGLVERTEX4HNVPROC is access procedure
(arg1 : GLhalfNV;
arg2 : GLhalfNV;
arg3 : GLhalfNV;
arg4 : GLhalfNV);
pragma Convention (C, PFNGLVERTEX4HNVPROC); -- ../include/SDL/SDL_opengl.h:6359
type PFNGLVERTEX4HVNVPROC is access procedure (arg1 : access GLhalfNV);
pragma Convention (C, PFNGLVERTEX4HVNVPROC); -- ../include/SDL/SDL_opengl.h:6360
type PFNGLNORMAL3HNVPROC is access procedure
(arg1 : GLhalfNV;
arg2 : GLhalfNV;
arg3 : GLhalfNV);
pragma Convention (C, PFNGLNORMAL3HNVPROC); -- ../include/SDL/SDL_opengl.h:6361
type PFNGLNORMAL3HVNVPROC is access procedure (arg1 : access GLhalfNV);
pragma Convention (C, PFNGLNORMAL3HVNVPROC); -- ../include/SDL/SDL_opengl.h:6362
type PFNGLCOLOR3HNVPROC is access procedure
(arg1 : GLhalfNV;
arg2 : GLhalfNV;
arg3 : GLhalfNV);
pragma Convention (C, PFNGLCOLOR3HNVPROC); -- ../include/SDL/SDL_opengl.h:6363
type PFNGLCOLOR3HVNVPROC is access procedure (arg1 : access GLhalfNV);
pragma Convention (C, PFNGLCOLOR3HVNVPROC); -- ../include/SDL/SDL_opengl.h:6364
type PFNGLCOLOR4HNVPROC is access procedure
(arg1 : GLhalfNV;
arg2 : GLhalfNV;
arg3 : GLhalfNV;
arg4 : GLhalfNV);
pragma Convention (C, PFNGLCOLOR4HNVPROC); -- ../include/SDL/SDL_opengl.h:6365
type PFNGLCOLOR4HVNVPROC is access procedure (arg1 : access GLhalfNV);
pragma Convention (C, PFNGLCOLOR4HVNVPROC); -- ../include/SDL/SDL_opengl.h:6366
type PFNGLTEXCOORD1HNVPROC is access procedure (arg1 : GLhalfNV);
pragma Convention (C, PFNGLTEXCOORD1HNVPROC); -- ../include/SDL/SDL_opengl.h:6367
type PFNGLTEXCOORD1HVNVPROC is access procedure (arg1 : access GLhalfNV);
pragma Convention (C, PFNGLTEXCOORD1HVNVPROC); -- ../include/SDL/SDL_opengl.h:6368
type PFNGLTEXCOORD2HNVPROC is access procedure (arg1 : GLhalfNV; arg2 : GLhalfNV);
pragma Convention (C, PFNGLTEXCOORD2HNVPROC); -- ../include/SDL/SDL_opengl.h:6369
type PFNGLTEXCOORD2HVNVPROC is access procedure (arg1 : access GLhalfNV);
pragma Convention (C, PFNGLTEXCOORD2HVNVPROC); -- ../include/SDL/SDL_opengl.h:6370
type PFNGLTEXCOORD3HNVPROC is access procedure
(arg1 : GLhalfNV;
arg2 : GLhalfNV;
arg3 : GLhalfNV);
pragma Convention (C, PFNGLTEXCOORD3HNVPROC); -- ../include/SDL/SDL_opengl.h:6371
type PFNGLTEXCOORD3HVNVPROC is access procedure (arg1 : access GLhalfNV);
pragma Convention (C, PFNGLTEXCOORD3HVNVPROC); -- ../include/SDL/SDL_opengl.h:6372
type PFNGLTEXCOORD4HNVPROC is access procedure
(arg1 : GLhalfNV;
arg2 : GLhalfNV;
arg3 : GLhalfNV;
arg4 : GLhalfNV);
pragma Convention (C, PFNGLTEXCOORD4HNVPROC); -- ../include/SDL/SDL_opengl.h:6373
type PFNGLTEXCOORD4HVNVPROC is access procedure (arg1 : access GLhalfNV);
pragma Convention (C, PFNGLTEXCOORD4HVNVPROC); -- ../include/SDL/SDL_opengl.h:6374
type PFNGLMULTITEXCOORD1HNVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GLhalfNV);
pragma Convention (C, PFNGLMULTITEXCOORD1HNVPROC); -- ../include/SDL/SDL_opengl.h:6375
type PFNGLMULTITEXCOORD1HVNVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GLhalfNV);
pragma Convention (C, PFNGLMULTITEXCOORD1HVNVPROC); -- ../include/SDL/SDL_opengl.h:6376
type PFNGLMULTITEXCOORD2HNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GLhalfNV;
arg3 : GLhalfNV);
pragma Convention (C, PFNGLMULTITEXCOORD2HNVPROC); -- ../include/SDL/SDL_opengl.h:6377
type PFNGLMULTITEXCOORD2HVNVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GLhalfNV);
pragma Convention (C, PFNGLMULTITEXCOORD2HVNVPROC); -- ../include/SDL/SDL_opengl.h:6378
type PFNGLMULTITEXCOORD3HNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GLhalfNV;
arg3 : GLhalfNV;
arg4 : GLhalfNV);
pragma Convention (C, PFNGLMULTITEXCOORD3HNVPROC); -- ../include/SDL/SDL_opengl.h:6379
type PFNGLMULTITEXCOORD3HVNVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GLhalfNV);
pragma Convention (C, PFNGLMULTITEXCOORD3HVNVPROC); -- ../include/SDL/SDL_opengl.h:6380
type PFNGLMULTITEXCOORD4HNVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GLhalfNV;
arg3 : GLhalfNV;
arg4 : GLhalfNV;
arg5 : GLhalfNV);
pragma Convention (C, PFNGLMULTITEXCOORD4HNVPROC); -- ../include/SDL/SDL_opengl.h:6381
type PFNGLMULTITEXCOORD4HVNVPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : access GLhalfNV);
pragma Convention (C, PFNGLMULTITEXCOORD4HVNVPROC); -- ../include/SDL/SDL_opengl.h:6382
type PFNGLFOGCOORDHNVPROC is access procedure (arg1 : GLhalfNV);
pragma Convention (C, PFNGLFOGCOORDHNVPROC); -- ../include/SDL/SDL_opengl.h:6383
type PFNGLFOGCOORDHVNVPROC is access procedure (arg1 : access GLhalfNV);
pragma Convention (C, PFNGLFOGCOORDHVNVPROC); -- ../include/SDL/SDL_opengl.h:6384
type PFNGLSECONDARYCOLOR3HNVPROC is access procedure
(arg1 : GLhalfNV;
arg2 : GLhalfNV;
arg3 : GLhalfNV);
pragma Convention (C, PFNGLSECONDARYCOLOR3HNVPROC); -- ../include/SDL/SDL_opengl.h:6385
type PFNGLSECONDARYCOLOR3HVNVPROC is access procedure (arg1 : access GLhalfNV);
pragma Convention (C, PFNGLSECONDARYCOLOR3HVNVPROC); -- ../include/SDL/SDL_opengl.h:6386
type PFNGLVERTEXWEIGHTHNVPROC is access procedure (arg1 : GLhalfNV);
pragma Convention (C, PFNGLVERTEXWEIGHTHNVPROC); -- ../include/SDL/SDL_opengl.h:6387
type PFNGLVERTEXWEIGHTHVNVPROC is access procedure (arg1 : access GLhalfNV);
pragma Convention (C, PFNGLVERTEXWEIGHTHVNVPROC); -- ../include/SDL/SDL_opengl.h:6388
type PFNGLVERTEXATTRIB1HNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : GLhalfNV);
pragma Convention (C, PFNGLVERTEXATTRIB1HNVPROC); -- ../include/SDL/SDL_opengl.h:6389
type PFNGLVERTEXATTRIB1HVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GLhalfNV);
pragma Convention (C, PFNGLVERTEXATTRIB1HVNVPROC); -- ../include/SDL/SDL_opengl.h:6390
type PFNGLVERTEXATTRIB2HNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GLhalfNV;
arg3 : GLhalfNV);
pragma Convention (C, PFNGLVERTEXATTRIB2HNVPROC); -- ../include/SDL/SDL_opengl.h:6391
type PFNGLVERTEXATTRIB2HVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GLhalfNV);
pragma Convention (C, PFNGLVERTEXATTRIB2HVNVPROC); -- ../include/SDL/SDL_opengl.h:6392
type PFNGLVERTEXATTRIB3HNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GLhalfNV;
arg3 : GLhalfNV;
arg4 : GLhalfNV);
pragma Convention (C, PFNGLVERTEXATTRIB3HNVPROC); -- ../include/SDL/SDL_opengl.h:6393
type PFNGLVERTEXATTRIB3HVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GLhalfNV);
pragma Convention (C, PFNGLVERTEXATTRIB3HVNVPROC); -- ../include/SDL/SDL_opengl.h:6394
type PFNGLVERTEXATTRIB4HNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GLhalfNV;
arg3 : GLhalfNV;
arg4 : GLhalfNV;
arg5 : GLhalfNV);
pragma Convention (C, PFNGLVERTEXATTRIB4HNVPROC); -- ../include/SDL/SDL_opengl.h:6395
type PFNGLVERTEXATTRIB4HVNVPROC is access procedure (arg1 : GL_gl_h.GLuint; arg2 : access GLhalfNV);
pragma Convention (C, PFNGLVERTEXATTRIB4HVNVPROC); -- ../include/SDL/SDL_opengl.h:6396
type PFNGLVERTEXATTRIBS1HVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GLhalfNV);
pragma Convention (C, PFNGLVERTEXATTRIBS1HVNVPROC); -- ../include/SDL/SDL_opengl.h:6397
type PFNGLVERTEXATTRIBS2HVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GLhalfNV);
pragma Convention (C, PFNGLVERTEXATTRIBS2HVNVPROC); -- ../include/SDL/SDL_opengl.h:6398
type PFNGLVERTEXATTRIBS3HVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GLhalfNV);
pragma Convention (C, PFNGLVERTEXATTRIBS3HVNVPROC); -- ../include/SDL/SDL_opengl.h:6399
type PFNGLVERTEXATTRIBS4HVNVPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLsizei;
arg3 : access GLhalfNV);
pragma Convention (C, PFNGLVERTEXATTRIBS4HVNVPROC); -- ../include/SDL/SDL_opengl.h:6400
type PFNGLPIXELDATARANGENVPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLsizei;
arg3 : System.Address);
pragma Convention (C, PFNGLPIXELDATARANGENVPROC); -- ../include/SDL/SDL_opengl.h:6409
type PFNGLFLUSHPIXELDATARANGENVPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLFLUSHPIXELDATARANGENVPROC); -- ../include/SDL/SDL_opengl.h:6410
type PFNGLPRIMITIVERESTARTNVPROC is access procedure;
pragma Convention (C, PFNGLPRIMITIVERESTARTNVPROC); -- ../include/SDL/SDL_opengl.h:6419
type PFNGLPRIMITIVERESTARTINDEXNVPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLPRIMITIVERESTARTINDEXNVPROC); -- ../include/SDL/SDL_opengl.h:6420
type PFNGLMAPOBJECTBUFFERATIPROC is access function (arg1 : GL_gl_h.GLuint) return System.Address;
pragma Convention (C, PFNGLMAPOBJECTBUFFERATIPROC); -- ../include/SDL/SDL_opengl.h:6437
type PFNGLUNMAPOBJECTBUFFERATIPROC is access procedure (arg1 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLUNMAPOBJECTBUFFERATIPROC); -- ../include/SDL/SDL_opengl.h:6438
type PFNGLSTENCILOPSEPARATEATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLSTENCILOPSEPARATEATIPROC); -- ../include/SDL/SDL_opengl.h:6447
type PFNGLSTENCILFUNCSEPARATEATIPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLint;
arg4 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLSTENCILFUNCSEPARATEATIPROC); -- ../include/SDL/SDL_opengl.h:6448
type PFNGLVERTEXATTRIBARRAYOBJECTATIPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLint;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLboolean;
arg5 : GL_gl_h.GLsizei;
arg6 : GL_gl_h.GLuint;
arg7 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLVERTEXATTRIBARRAYOBJECTATIPROC); -- ../include/SDL/SDL_opengl.h:6458
type PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLfloat);
pragma Convention (C, PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC); -- ../include/SDL/SDL_opengl.h:6459
type PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC is access procedure
(arg1 : GL_gl_h.GLuint;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC); -- ../include/SDL/SDL_opengl.h:6460
type PFNGLDEPTHBOUNDSEXTPROC is access procedure (arg1 : GL_gl_h.GLclampd; arg2 : GL_gl_h.GLclampd);
pragma Convention (C, PFNGLDEPTHBOUNDSEXTPROC); -- ../include/SDL/SDL_opengl.h:6472
type PFNGLBLENDEQUATIONSEPARATEEXTPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLBLENDEQUATIONSEPARATEEXTPROC); -- ../include/SDL/SDL_opengl.h:6484
type PFNGLISRENDERBUFFEREXTPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISRENDERBUFFEREXTPROC); -- ../include/SDL/SDL_opengl.h:6536
type PFNGLBINDRENDERBUFFEREXTPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLBINDRENDERBUFFEREXTPROC); -- ../include/SDL/SDL_opengl.h:6537
type PFNGLDELETERENDERBUFFERSEXTPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETERENDERBUFFERSEXTPROC); -- ../include/SDL/SDL_opengl.h:6538
type PFNGLGENRENDERBUFFERSEXTPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGENRENDERBUFFERSEXTPROC); -- ../include/SDL/SDL_opengl.h:6539
type PFNGLRENDERBUFFERSTORAGEEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLsizei;
arg4 : GL_gl_h.GLsizei);
pragma Convention (C, PFNGLRENDERBUFFERSTORAGEEXTPROC); -- ../include/SDL/SDL_opengl.h:6540
type PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC); -- ../include/SDL/SDL_opengl.h:6541
type PFNGLISFRAMEBUFFEREXTPROC is access function (arg1 : GL_gl_h.GLuint) return GL_gl_h.GLboolean;
pragma Convention (C, PFNGLISFRAMEBUFFEREXTPROC); -- ../include/SDL/SDL_opengl.h:6542
type PFNGLBINDFRAMEBUFFEREXTPROC is access procedure (arg1 : GL_gl_h.GLenum; arg2 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLBINDFRAMEBUFFEREXTPROC); -- ../include/SDL/SDL_opengl.h:6543
type PFNGLDELETEFRAMEBUFFERSEXTPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLDELETEFRAMEBUFFERSEXTPROC); -- ../include/SDL/SDL_opengl.h:6544
type PFNGLGENFRAMEBUFFERSEXTPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : access GL_gl_h.GLuint);
pragma Convention (C, PFNGLGENFRAMEBUFFERSEXTPROC); -- ../include/SDL/SDL_opengl.h:6545
type PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC is access function (arg1 : GL_gl_h.GLenum) return GL_gl_h.GLenum;
pragma Convention (C, PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC); -- ../include/SDL/SDL_opengl.h:6546
type PFNGLFRAMEBUFFERTEXTURE1DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLuint;
arg5 : GL_gl_h.GLint);
pragma Convention (C, PFNGLFRAMEBUFFERTEXTURE1DEXTPROC); -- ../include/SDL/SDL_opengl.h:6547
type PFNGLFRAMEBUFFERTEXTURE2DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLuint;
arg5 : GL_gl_h.GLint);
pragma Convention (C, PFNGLFRAMEBUFFERTEXTURE2DEXTPROC); -- ../include/SDL/SDL_opengl.h:6548
type PFNGLFRAMEBUFFERTEXTURE3DEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLuint;
arg5 : GL_gl_h.GLint;
arg6 : GL_gl_h.GLint);
pragma Convention (C, PFNGLFRAMEBUFFERTEXTURE3DEXTPROC); -- ../include/SDL/SDL_opengl.h:6549
type PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : GL_gl_h.GLuint);
pragma Convention (C, PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC); -- ../include/SDL/SDL_opengl.h:6550
type PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC is access procedure
(arg1 : GL_gl_h.GLenum;
arg2 : GL_gl_h.GLenum;
arg3 : GL_gl_h.GLenum;
arg4 : access GL_gl_h.GLint);
pragma Convention (C, PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC); -- ../include/SDL/SDL_opengl.h:6551
type PFNGLGENERATEMIPMAPEXTPROC is access procedure (arg1 : GL_gl_h.GLenum);
pragma Convention (C, PFNGLGENERATEMIPMAPEXTPROC); -- ../include/SDL/SDL_opengl.h:6552
type PFNGLSTRINGMARKERGREMEDYPROC is access procedure (arg1 : GL_gl_h.GLsizei; arg2 : System.Address);
pragma Convention (C, PFNGLSTRINGMARKERGREMEDYPROC); -- ../include/SDL/SDL_opengl.h:6560
end SDL_SDL_opengl_h;
|
archive/test/manual/etags/ada-src/etags-test-for.ada | RyanMcCarl/.emacs.d | 0 | 4587 | <filename>archive/test/manual/etags/ada-src/etags-test-for.ada
type LL_Task_Procedure_Access is access procedure (Arg : System.Address);
function Body_Required
(N : Node_Id) return Boolean is
begin
pragma Assert (False
or else NT (N).Nkind = N_Compilation_Unit);
return Flag13 (N);
end Body_Required;
type Type_Specific_Data is record
Idepth : Natural;
Expanded_Name : Cstring_Ptr;
External_Tag : Cstring_Ptr;
HT_Link : Tag;
Ancestor_Tags : Tag_Table (Natural);
end record;
function "abs" (Right : Complex) return Real'Base renames Modulus;
type Barrier_Function_Pointer is access
function
(O : System.Address;
E : Protected_Entry_Index)
return Boolean;
function "=" (L, R : System.Address) return Boolean
renames System."=";
type usfreelock_ptr is access
procedure (lock : ulock_t; arena : usptr_t_ptr);
function p pragma Import (C,
"pthread_mutexattr_setprio_ceiling",
"pthread_mutexattr_setprio_ceiling");
pragma Import ()
procedure LL_Wrapper (T : TCB_Ptr);
function p ("p");
-- This file is an Ada file containing test data
-- for etags (Ada83 and Ada95 support).
package Pkg1 is
type Private_T is private;
package Inner1 is
procedure Private_T;
end Inner1;
package Inner2 is
task Private_T;
end Inner2;
type Public_T is
record
A : Integer;
B : Integer;
end record;
procedure Pkg1_Proc1;
procedure Pkg1_Proc2 (I : Integer);
function Pkg1_Func1 return Boolean;
function Pkg1_Func2 (Ijk : Integer; Z : Integer) return Natural;
package Pkg1_Pkg1 is
procedure Pkg1_Pkg1_Proc1;
end Pkg1_Pkg1;
task type Task_Type is
entry Entry1;
entry Entry2 (I : Integer);
end;
private
type Private_T is
record
Z : Integer;
W : Boolean;
end record;
end Pkg1;
package body Pkg1 is
procedure Pkg1_Proc1 is
begin
null;
end;
package body Inner1 is
procedure Private_T is
begin
null;
end;
end Inner1;
package body Inner2 is
task body Private_T is
begin
loop
null;
end loop;
end;
end Inner2;
task body Task_Type is
begin
select
accept Entry1 do
null;
end;
or
accept Entry2 (I : Integer) do
null;
end;
end select;
end;
procedure Pkg1_Proc2 (I : Integer) is
begin
null;
end Pkg1_Proc2;
function Pkg1_Func1 return Boolean is separate;
function Pkg1_Func2 (Ijk : Integer; Z : Integer) return Natural is
begin
return 1;
end;
package body Pkg1_Pkg1 is separate;
end Pkg1;
separate (Pkg1)
package body Pkg1_Pkg1 is
procedure Pkg1_Pkg1_Proc1 is
begin
null;
end;
end Pkg1_Pkg1;
separate (Pkg1)
function Pkg1_Func1 return Boolean is
begin
return False;
end;
-- from now on, this is Ada 95 specific.
package Truc is
I : Integer;
end Truc;
package Truc.Bidule is
protected Bidule is
entry Basar;
end Bidule;
protected type Machin_T is
entry Truc;
end Machin_T;
end Truc.Bidule;
package body Truc.Bidule is
protected body Bidule is
entry Basar is
begin
null;
end;
end Bidule;
protected Machin_T is
entry Truc is
begin
null;
end;
end Machin_T;
end Truc.Bidule;
|
app/src/main/antlr/FLiteSharp.g4 | Rye-Catcher/FLiteSharp | 1 | 6638 | grammar FLiteSharp;
@header {
package io.antlr.gen;
}
/*
* Tokens (terminal)
*/
POW: '**';
MUL: '*';
DIV: '/';
ADD: '+';
SUB: '-';
LESSTHAN: '<';
LESSTHANOREQUAL: '<=';
GREATERTHAN: '>';
GREATERTHANOREQUAL: '>=';
EQUAL: '=';
NOTEQUAL: '<>';
OR: '||';
AND: '&&';
NOT: 'not';
TERNARYOP: '?';
ATTACH: '::';
CONC: '@';
INTEGER: [0-9]+;
DOUBLE: [0-9]+ '.' [0-9]+;
BOOLEAN: 'true' | 'false';
UNIT: '(' WS* ')';
TYPE: 'int' | 'double' | 'bool' | 'unit';
TYPEOP: ':';
UNITOFMEASURE: '[<Measure>]';
TYPEKEYWORD: 'type';
WS: [ \t]+;
TOSKIP: [\r\n\t]+ -> skip;
LEFTPAR: '(';
RIGHTPAR: ')';
LEFTSQPAR: '[';
RIGHTSQPAR: ']';
IF: 'if';
THEN: 'then';
ELSE: 'else';
IN: 'in';
BEGIN: 'begin';
END: 'end';
MATCH: 'match';
WITH: 'with';
ARROW: '->';
PATTERN_CONDITION: 'when';
SEMICOLON: ';';
LET: 'let';
LAMBDADEC: 'fun';
RECURSION: 'rec';
VARIABLE
: [a-zA-Z] [a-zA-Z0-9]*
;
COMMENT
: '(*' .*? '*)' -> skip
;
LINE_COMMENT
: '//' ~[\r\n]* -> skip
;
start
: (sequenceLine | unitDeclaration)* EOF
;
expression
: parenthesesExpression # Parentheses
| blockExpression # Block
| <assoc=right> left=expression WS? operator=POW WS? right=expression # Power
| SUB expression # Negative
| left=expression WS? operator=(MUL | DIV) WS? right=expression # MultiplicationDivision
| left=expression WS? operator=(ADD | SUB) WS? right=expression # AdditionSubtraction
| left=expression WS? operator=LESSTHAN WS? right=expression # LessThan
| left=expression WS? operator=LESSTHANOREQUAL WS? right=expression # LessThanOrEqual
| left=expression WS? operator=GREATERTHAN WS? right=expression # GreaterThan
| left=expression WS? operator=GREATERTHANOREQUAL WS? right=expression # GreaterThanOrEqual
| left=expression WS? operator=EQUAL WS? right=expression # Equal
| left=expression WS? operator=NOTEQUAL WS? right=expression # NotEqual
| operator=NOT WS? argument=expression # Not
| left=expression WS? operator=AND WS? right=expression # And
| left=expression WS? operator=OR WS? right=expression # Or
| left=expression WS? operator=ATTACH WS? right=listExpression # Attach
| left=listExpression WS? operator=CONC WS? right=listExpression # Concatenate
| patternMatching # PatternMatchingExpression
| conditionalExpr # ConditionalExpression
| WS? VARIABLE WS? # Variable
| funcApplication # FunctionApplication
| WS? INTEGER ('<' WS? uom=unitFormula WS? '>')? WS? # Integer
| WS? DOUBLE ('<' WS? uom=unitFormula WS? '>')? WS? # Double
| WS? BOOLEAN WS? # Boolean
| WS? UNIT WS? # Unit
| tupleExpression # Tuple
| listExpression # List
| lambdaExpression # LambdaFunction
;
parenthesesExpression
: WS? LEFTPAR WS? inner=expression WS? RIGHTPAR WS?
;
blockExpression
: WS? BEGIN WS? sequentialExpression WS? END
;
sequentialExpression
: ((sequenceLine)* expression SEMICOLON)?
;
sequenceLine
: bind WS? IN WS?
| funcDeclaration WS? IN WS?
| recFuncDeclaration WS? IN WS?
| expression WS? SEMICOLON WS?
;
patternMatching
: MATCH WS subject=expression WS WITH patternBranch+
;
patternBranch
: WS? '|' WS? pattern=expression WS?
(PATTERN_CONDITION WS? condition=expression)? ARROW WS? result=expression WS?
;
tupleExpression
: WS? LEFTPAR WS? expression WS? (',' expression)+ WS? RIGHTPAR WS?
;
listExpression
: WS? LEFTSQPAR (WS? expression WS? (';' WS? expression WS?)*)? RIGHTSQPAR WS?
;
lambdaParameters
: UNIT | (LEFTPAR WS? VARIABLE WS? TYPEOP WS? typeDeclaration WS? RIGHTPAR WS?)+
;
lambdaExpression
: WS? LAMBDADEC WS? lambdaParameters WS? '->' WS? lambdaBody=expression WS?
;
recFuncDeclaration
: WS? LET WS? RECURSION WS? functionName=VARIABLE WS? params=lambdaParameters WS? TYPEOP WS? type=typeDeclaration WS?
'=' WS? functionBody=blockExpression WS?
;
funcDeclaration
: WS? LET WS? functionName=VARIABLE WS? params=lambdaParameters WS? TYPEOP WS? type=typeDeclaration WS?
'=' WS? functionBody=blockExpression WS?
;
applyParameters
: <assoc=left>WS+ expression+
;
funcApplication
: WS? name=VARIABLE applyParameters WS?
;
bind
: WS? LET WS? name=VARIABLE WS? TYPEOP WS? type=typeDeclaration WS? EQUAL WS? expression WS?
;
conditionalExpr
: WS? IF WS? test=expression WS? THEN WS? consequent=blockExpression WS? (WS? ELSE WS? alternate=blockExpression WS?)?
;
typeDeclaration
: LEFTPAR WS? typeDeclaration WS? RIGHTPAR # ParenthesesType
| TYPE ('<' WS? uom=unitFormula WS? '>')? # PrimitiveType
| typeDeclaration WS? 'list' # ListType
| left=typeDeclaration WS? '*' WS? right=typeDeclaration # TupleType
| left=typeDeclaration WS? '->' WS? right=typeDeclaration # FunctionType
;
unitDeclaration
: WS? UNITOFMEASURE WS? TYPEKEYWORD WS? name=VARIABLE WS? (EQUAL WS? formula=unitFormula WS?)?
;
unitFormula
: (operator=DIV)? WS? (unitElement WS?)+ WS? (unitProduct)* WS?
;
unitProduct
: WS? operator=(MUL | DIV) WS? (unitElement WS?)+ WS?
;
unitElement
: INTEGER /*Should be only 1*/ # OneUnit
| VARIABLE # SingleUnit
| LEFTPAR WS? unitFormula WS? RIGHTPAR # ParenthesisUnit
| argument=unitElement WS? operator='^' WS? exp=exponent # ExponentialUnit
;
exponent
: INTEGER
| SUB WS? INTEGER
| LEFTPAR WS? INTEGER WS? RIGHTPAR
| LEFTPAR WS? SUB WS? INTEGER WS? RIGHTPAR
; |
src/usb-device-hid-joystick.adb | Fabien-Chouteau/usb_embedded | 14 | 25664 | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018-2021, AdaCore --
-- --
-- Redistribution and use in source and binary forms, with or without --
-- modification, are permitted provided that the following conditions are --
-- met: --
-- 1. Redistributions of source code must retain the above copyright --
-- notice, this list of conditions and the following disclaimer. --
-- 2. Redistributions in binary form must reproduce the above copyright --
-- notice, this list of conditions and the following disclaimer in --
-- the documentation and/or other materials provided with the --
-- distribution. --
-- 3. Neither the name of the copyright holder nor the names of its --
-- contributors may be used to endorse or promote products derived --
-- from this software without specific prior written permission. --
-- --
-- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS --
-- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT --
-- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR --
-- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT --
-- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, --
-- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT --
-- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, --
-- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY --
-- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT --
-- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE --
-- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --
-- --
------------------------------------------------------------------------------
with Ada.Unchecked_Conversion;
package body USB.Device.HID.Joystick is
--------------
-- Set_Axis --
--------------
procedure Set_Axis (This : in out Instance;
A : Axis;
Value : Interfaces.Integer_8)
is
function To_UInt8 is new Ada.Unchecked_Conversion (Interfaces.Integer_8,
UInt8);
begin
This.Report (This.Report'First + (case A is
when X => 0,
when Y => 1)) := To_UInt8 (Value);
end Set_Axis;
-----------------
-- Set_Buttons --
-----------------
procedure Set_Buttons (This : in out Instance;
Buttons : UInt8)
is
begin
This.Report (This.Report'Last) := Buttons;
end Set_Buttons;
end USB.Device.HID.Joystick;
|
src/libraries/Rewriters_Lib/src/rewriters_context_utils.adb | selroc/Renaissance-Ada | 1 | 5204 | <gh_stars>1-10
with Ada.Assertions; use Ada.Assertions;
package body Rewriters_Context_Utils is
function Combine_Contexts (C1, C2 : Ada_Node) return Ada_Node
is
begin
if Is_Reflexive_Ancestor (C1, C2)
then
return C1;
else
Assert (Check => Is_Reflexive_Ancestor (C2, C1),
Message => "Unexpectedly, contexts don't share same node.");
return C2;
end if;
end Combine_Contexts;
end Rewriters_Context_Utils;
|
source/resolver/program-complete_contexts-case_statements.ads | reznikmm/gela | 0 | 13986 | -- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Cross_Reference_Updaters;
with Program.Elements.Case_Statements;
with Program.Interpretations;
package Program.Complete_Contexts.Case_Statements is
pragma Preelaborate;
procedure Case_Statement
(Sets : not null Program.Interpretations.Context_Access;
Setter : not null Program.Cross_Reference_Updaters
.Cross_Reference_Updater_Access;
Element : Program.Elements.Case_Statements.Case_Statement_Access);
end Program.Complete_Contexts.Case_Statements;
|
externals/skia/third_party/externals/yasm/source/patched-yasm/modules/parsers/tasm/tests/dup.asm | terrajobst/linux-packaging-skiasharp | 2,151 | 25957 | a db 10 dup(1)
|
pwnlib/shellcraft/templates/mips/linux/ftruncate.asm | IMULMUL/python3-pwntools | 325 | 172311 | <reponame>IMULMUL/python3-pwntools<filename>pwnlib/shellcraft/templates/mips/linux/ftruncate.asm
<%
from pwnlib.shellcraft.mips.linux import syscall
%>
<%page args="fd, length"/>
<%docstring>
Invokes the syscall ftruncate. See 'man 2 ftruncate' for more information.
Arguments:
fd(int): fd
length(off_t): length
</%docstring>
${syscall('SYS_ftruncate', fd, length)}
|
src/main.adb | thomas070605/shoot-n-loot | 0 | 16802 | <gh_stars>0
-- Shoot'n'loot
-- Copyright (c) 2020 <NAME>
with Menus;
with Arith_64;
pragma Unreferenced (Arith_64);
procedure Main is
begin
Menus.Run;
end Main;
|
Asteroids/AsteroidsASM/softmath.asm | ragibson/FPGA-Asteroids | 5 | 1888 | # Implements fixed-point arithmetic with 6 bits for the decimal part and 10
# bits for the integer part (referred to as fp16_t).
#
# This effectively lets the game perform calculations on each pixel at the
# level of 64x64 subpixels.
#
# Integer and fixed-point multiplication/division are implemented in software.
#
# A lookup table for cosine is used to compute sine and cosine for fp16_t.
.data TABLE_START
# lookup table for cos(d), 0 <= d < 360 (values in fp16_t)
fpcos_table:
.word 64, 64, 64, 64, 64, 64, 64, 64, 63, 63, 63, 63, 63, 62, 62,
62, 62, 61, 61, 61, 60, 60, 59, 59, 58, 58, 58, 57, 57, 56,
55, 55, 54, 54, 53, 52, 52, 51, 50, 50, 49, 48, 48, 47, 46,
45, 44, 44, 43, 42, 41, 40, 39, 39, 38, 37, 36, 35, 34, 33,
32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18,
17, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 4, 3, 2, 1,
0, -1, -2, -3, -4, -6, -7, -8, -9, -10, -11, -12, -13, -14, -15,
-17, -18, -19, -20, -21, -22, -23, -24, -25, -26, -27, -28, -29, -30, -31,
-32, -33, -34, -35, -36, -37, -38, -39, -39, -40, -41, -42, -43, -44, -44,
-45, -46, -47, -48, -48, -49, -50, -50, -51, -52, -52, -53, -54, -54, -55,
-55, -56, -57, -57, -58, -58, -58, -59, -59, -60, -60, -61, -61, -61, -62,
-62, -62, -62, -63, -63, -63, -63, -63, -64, -64, -64, -64, -64, -64, -64,
-64, -64, -64, -64, -64, -64, -64, -64, -63, -63, -63, -63, -63, -62, -62,
-62, -62, -61, -61, -61, -60, -60, -59, -59, -58, -58, -58, -57, -57, -56,
-55, -55, -54, -54, -53, -52, -52, -51, -50, -50, -49, -48, -48, -47, -46,
-45, -44, -44, -43, -42, -41, -40, -39, -39, -38, -37, -36, -35, -34, -33,
-32, -31, -30, -29, -28, -27, -26, -25, -24, -23, -22, -21, -20, -19, -18,
-17, -15, -14, -13, -12, -11, -10, -9, -8, -7, -6, -4, -3, -2, -1,
0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 37, 38, 39, 39, 40, 41, 42, 43, 44, 44,
45, 46, 47, 48, 48, 49, 50, 50, 51, 52, 52, 53, 54, 54, 55,
55, 56, 57, 57, 58, 58, 58, 59, 59, 60, 60, 61, 61, 61, 62,
62, 62, 62, 63, 63, 63, 63, 63, 64, 64, 64, 64, 64, 64, 64
.text
# Computes $v0 = ($a0 << FP_SHIFT_AMOUNT)
int_to_fp:
sll $v0, $a0, FP_SHIFT_AMOUNT
jr $ra
# Computes $v0 = ($a0 >> FP_SHIFT_AMOUNT)
fp_ipart:
srl $v0, $a0, FP_SHIFT_AMOUNT
jr $ra
# Computes $v0 = ($a0 & FP_FRAC_MASK)
fp_fpart:
andi $v0, $a0, FP_FRAC_MASK
jr $ra
# Computes $v0 = ($a0 * $a1), saves no registers, uses $t0-$t5
imult:
slt $t0, $a0, $0
slt $t1, $a1, $0
xor $t2, $t0, $t1 # neg_result = (a < 0) ^ (b < 0)
beq $t0, $0, skip_imult_negate_a # if (a < 0)
sub $a0, $0, $a0 # a = -a
skip_imult_negate_a:
beq $t1, $0, skip_imult_negate_b # if (b < 0)
sub $a1, $0, $a1 # b = -b
skip_imult_negate_b:
li $t3, 0 # res = 0
start_imult_while:
slt $t4, $0, $a1
beq $t4, $0, end_imult_while # while (b < 0)
andi $t5, $a1, 0x1
beq $t5, $0, skip_imult_add # if (b & 1)
add $t3, $t3, $a0 # res += a
skip_imult_add:
sll $a0, $a0, 1
sra $a1, $a1, 1
beq $0, $0, start_imult_while
end_imult_while:
beq $t2, $0, skip_neg_result # if (neg_result)
sub $t3, $0, $t3 # res = -res
skip_neg_result:
move $v0, $t3
jr $ra # return res
# Computes $v0 = ($a0 / $a1), saves no registers, uses $t0-$t5
idiv:
slt $t0, $a0, $0 # neg_result = a < 0
beq $t0, $0, skip_idiv_negate_a # if (neg_result)
sub $a0, $0, $a0 # a = -a
skip_idiv_negate_a:
li $t1, 1 # place = 1
li $t2, 0 # res = 0
start_idiv_while1:
slt $t3, $a0, $a1 # while (a >= b)
bne $t3, $0, end_idiv_while1
sll $t1, $t1, 1 # place <<= 1
sll $a1, $a1, 1 # b <<= 1
beq $0, $0, start_idiv_while1
end_idiv_while1:
start_idiv_while2:
slt $t4, $0, $t1
beq $t4, $0, end_idiv_while2 # while (place > 0)
slt $t5, $a0, $a1
bne $t5, $0, skip_idiv_sub # if (a >= b)
sub $a0, $a0, $a1 # a -= b
add $t2, $t2, $t1 # res += place
skip_idiv_sub:
sra $t1, $t1, 1 # place >>= 1
sra $a1, $a1, 1 # b >>= 1
beq $0, $0, start_idiv_while2
end_idiv_while2:
beq $t0, $0, skip_idiv_negate_res # if (neg_result)
sub $t2, $0, $t2 # res = -res
skip_idiv_negate_res:
move $v0, $t2
jr $ra # return res
# Computes "rounded" $v0 = (a >> FP_SHIFT_AMOUNT), saves no registers, uses $t0-$t1
round_fp_to_int:
sra $t0, $a0, FP_SHIFT_AMOUNT # res = a >> FP_SHIFT_AMOUNT
and $t1, $a0, FP_ROUND_MASK
beq $t1, $0, skip_round_increment # if (a & FP_ROUND_MASK)
addi $t0, $t0, 1 # res++
skip_round_increment:
move $v0, $t0
jr $ra # return res
# Computes $v0 = abs($a0), saves no registers, uses $t0
abs:
slt $t0, $a0, $0
beq $t0, $0, skip_abs_negate # if (a < 0)
sub $a0, $0, $a0 # a = -a
skip_abs_negate:
move $v0, $a0
jr $ra # return a
# Computes $v0 = imult($a0, $a1) >> FP_SHIFT_AMOUNT, saves $ra, uses $t0-$t5
fpmult:
addi $sp, $sp, -4
sw $ra, 0($sp)
jal imult
sra $v0, $v0, FP_SHIFT_AMOUNT
lw $ra, 0($sp)
addi $sp, $sp, 4
jr $ra # return imult(a, b) >> FP_SHIFT_AMOUNT
# Computes $v0 = idiv($a0 << FP_SHIFT_AMOUNT, $a1), saves $ra, uses $t0-$t5
fpdiv:
addi $sp, $sp, -4
sw $ra, 0($sp)
sll $a0, $a0, FP_SHIFT_AMOUNT # a <<= FP_SHIFT_AMOUNT
jal idiv
lw $ra, 0($sp)
addi $sp, $sp, 4
jr $ra # return idiv(a, b)
# Computes ($a0 % $a1), saves no registers, uses $t0-$t1
mod:
slt $t0, $a0, $a1
bne $t0, $0, skip_mod_sub # if (x >= m)
sub $a0, $a0, $a1 # x -= m
beq $0, $0, skip_mod_add
skip_mod_sub:
slt $t0, $a0, $0
beq $t0, $0, skip_mod_add # else if (x < 0)
add $a0, $a0, $a1 # x += m
skip_mod_add:
move $v0, $a0
jr $ra # return x
# Computes $v0 = cos($a0) ($a0 in degrees, result in fp16_t), saves $ra, uses $t0-$t1
fpcos:
addi $sp, $sp, -4
sw $ra, 0($sp)
jal round_fp_to_int # ideg = round_fp_to_int(degrees)
move $a0, $v0
li $a1, 360
jal mod # ideg %= 360
sll $v0, $v0, 2 # word-align array index
lw $v0, fpcos_table($v0)
lw $ra, 0($sp)
addi $sp, $sp, 4
jr $ra # return fpcos_table[ideg]
# Computes $v0 = sin($a0) ($a0 in degrees, result in fp16_t), saves $ra, uses $t0-$t1
fpsin:
addi $sp, $sp, -4
sw $ra, 0($sp)
subi $a0, $a0, FP_90_DEG # degrees -= INT_TO_FP(90)
jal fpcos
lw $ra, 0($sp)
addi $sp, $sp, 4
jr $ra # return fpcos(degrees)
|
ffight/lcs/boss/44.asm | zengfr/arcade_game_romhacking_sourcecode_top_secret_data | 6 | 241670 | copyright zengfr site:http://github.com/zengfr/romhack
007520 move.w A1, ($44,A3) [boss+40, enemy+40]
007524 rts [boss+44, enemy+44]
copyright zengfr site:http://github.com/zengfr/romhack
|
llvm-gcc-4.2-2.9/gcc/ada/s-osprim-mingw.adb | vidkidz/crossbridge | 1 | 2509 | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- S Y S T E M . O S _ P R I M I T I V E S --
-- --
-- B o d y --
-- --
-- Copyright (C) 1998-2005 Free Software Foundation, Inc. --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 2, or (at your option) any later ver- --
-- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNARL; see file COPYING. If not, write --
-- to the Free Software Foundation, 51 Franklin Street, Fifth Floor, --
-- Boston, MA 02110-1301, USA. --
-- --
-- As a special exception, if other files instantiate generics from this --
-- unit, or you link this unit with other files to produce an executable, --
-- this unit does not by itself cause the resulting executable to be --
-- covered by the GNU General Public License. This exception does not --
-- however invalidate any other reasons why the executable file might be --
-- covered by the GNU Public License. --
-- --
-- GNARL was developed by the GNARL team at Florida State University. --
-- Extensive contributions were provided by Ada Core Technologies, Inc. --
-- --
------------------------------------------------------------------------------
-- This is the NT version of this package
with Interfaces.C;
package body System.OS_Primitives is
---------------------------
-- Win32 API Definitions --
---------------------------
-- These definitions are copied from System.OS_Interface because we do not
-- want to depend on gnarl here.
type DWORD is new Interfaces.C.unsigned_long;
type LARGE_INTEGER is delta 1.0 range -2.0**63 .. 2.0**63 - 1.0;
type BOOL is new Boolean;
for BOOL'Size use Interfaces.C.unsigned_long'Size;
procedure GetSystemTimeAsFileTime (lpFileTime : access Long_Long_Integer);
pragma Import (Stdcall, GetSystemTimeAsFileTime, "GetSystemTimeAsFileTime");
function QueryPerformanceCounter
(lpPerformanceCount : access LARGE_INTEGER) return BOOL;
pragma Import
(Stdcall, QueryPerformanceCounter, "QueryPerformanceCounter");
function QueryPerformanceFrequency
(lpFrequency : access LARGE_INTEGER) return BOOL;
pragma Import
(Stdcall, QueryPerformanceFrequency, "QueryPerformanceFrequency");
procedure Sleep (dwMilliseconds : DWORD);
pragma Import (Stdcall, Sleep, External_Name => "Sleep");
----------------------------------------
-- Data for the high resolution clock --
----------------------------------------
-- Declare some pointers to access multi-word data above. This is needed
-- to workaround a limitation in the GNU/Linker auto-import feature used
-- to build the GNAT runtime DLLs. In fact the Clock and Monotonic_Clock
-- routines are inlined and they are using some multi-word variables.
-- GNU/Linker will fail to auto-import those variables when building
-- libgnarl.dll. The indirection level introduced here has no measurable
-- penalties.
--
-- Note that access variables below must not be declared as constant
-- otherwise the compiler optimization will remove this indirect access.
type DA is access all Duration;
-- Use to have indirect access to multi-word variables
type LIA is access all LARGE_INTEGER;
-- Use to have indirect access to multi-word variables
type LLIA is access all Long_Long_Integer;
-- Use to have indirect access to multi-word variables
Tick_Frequency : aliased LARGE_INTEGER;
TFA : constant LIA := Tick_Frequency'Access;
-- Holds frequency of high-performance counter used by Clock
-- Windows NT uses a 1_193_182 Hz counter on PCs.
Base_Ticks : aliased LARGE_INTEGER;
BTA : constant LIA := Base_Ticks'Access;
-- Holds the Tick count for the base time.
Base_Monotonic_Ticks : aliased LARGE_INTEGER;
BMTA : constant LIA := Base_Monotonic_Ticks'Access;
-- Holds the Tick count for the base monotonic time
Base_Clock : aliased Duration;
BCA : constant DA := Base_Clock'Access;
-- Holds the current clock for the standard clock's base time
Base_Monotonic_Clock : aliased Duration;
BMCA : constant DA := Base_Monotonic_Clock'Access;
-- Holds the current clock for monotonic clock's base time
Base_Time : aliased Long_Long_Integer;
BTiA : constant LLIA := Base_Time'Access;
-- Holds the base time used to check for system time change, used with
-- the standard clock.
procedure Get_Base_Time;
-- Retrieve the base time and base ticks. These values will be used by
-- clock to compute the current time by adding to it a fraction of the
-- performance counter. This is for the implementation of a
-- high-resolution clock. Note that this routine does not change the base
-- monotonic values used by the monotonic clock.
-----------
-- Clock --
-----------
-- This implementation of clock provides high resolution timer values
-- using QueryPerformanceCounter. This call return a 64 bits values (based
-- on the 8253 16 bits counter). This counter is updated every 1/1_193_182
-- times per seconds. The call to QueryPerformanceCounter takes 6
-- microsecs to complete.
function Clock return Duration is
Max_Shift : constant Duration := 2.0;
Hundreds_Nano_In_Sec : constant Long_Long_Float := 1.0E7;
Current_Ticks : aliased LARGE_INTEGER;
Elap_Secs_Tick : Duration;
Elap_Secs_Sys : Duration;
Now : aliased Long_Long_Integer;
begin
if not QueryPerformanceCounter (Current_Ticks'Access) then
return 0.0;
end if;
GetSystemTimeAsFileTime (Now'Access);
Elap_Secs_Sys :=
Duration (Long_Long_Float (abs (Now - BTiA.all)) /
Hundreds_Nano_In_Sec);
Elap_Secs_Tick :=
Duration (Long_Long_Float (Current_Ticks - BTA.all) /
Long_Long_Float (TFA.all));
-- If we have a shift of more than Max_Shift seconds we resynchonize the
-- Clock. This is probably due to a manual Clock adjustment, an DST
-- adjustment or an NTP synchronisation. And we want to adjust the
-- time for this system (non-monotonic) clock.
if abs (Elap_Secs_Sys - Elap_Secs_Tick) > Max_Shift then
Get_Base_Time;
Elap_Secs_Tick :=
Duration (Long_Long_Float (Current_Ticks - BTA.all) /
Long_Long_Float (TFA.all));
end if;
return BCA.all + Elap_Secs_Tick;
end Clock;
-------------------
-- Get_Base_Time --
-------------------
procedure Get_Base_Time is
-- The resolution for GetSystemTime is 1 millisecond.
-- The time to get both base times should take less than 1 millisecond.
-- Therefore, the elapsed time reported by GetSystemTime between both
-- actions should be null.
Max_Elapsed : constant := 0;
Test_Now : aliased Long_Long_Integer;
epoch_1970 : constant := 16#19D_B1DE_D53E_8000#; -- win32 UTC epoch
system_time_ns : constant := 100; -- 100 ns per tick
Sec_Unit : constant := 10#1#E9;
begin
-- Here we must be sure that both of these calls are done in a short
-- amount of time. Both are base time and should in theory be taken
-- at the very same time.
loop
GetSystemTimeAsFileTime (Base_Time'Access);
if not QueryPerformanceCounter (Base_Ticks'Access) then
pragma Assert
(Standard.False,
"Could not query high performance counter in Clock");
null;
end if;
GetSystemTimeAsFileTime (Test_Now'Access);
exit when Test_Now - Base_Time = Max_Elapsed;
end loop;
Base_Clock := Duration
(Long_Long_Float ((Base_Time - epoch_1970) * system_time_ns) /
Long_Long_Float (Sec_Unit));
end Get_Base_Time;
---------------------
-- Monotonic_Clock --
---------------------
function Monotonic_Clock return Duration is
Current_Ticks : aliased LARGE_INTEGER;
Elap_Secs_Tick : Duration;
begin
if not QueryPerformanceCounter (Current_Ticks'Access) then
return 0.0;
end if;
Elap_Secs_Tick :=
Duration (Long_Long_Float (Current_Ticks - BMTA.all) /
Long_Long_Float (TFA.all));
return BMCA.all + Elap_Secs_Tick;
end Monotonic_Clock;
-----------------
-- Timed_Delay --
-----------------
procedure Timed_Delay (Time : Duration; Mode : Integer) is
Rel_Time : Duration;
Abs_Time : Duration;
Check_Time : Duration := Monotonic_Clock;
begin
if Mode = Relative then
Rel_Time := Time;
Abs_Time := Time + Check_Time;
else
Rel_Time := Time - Check_Time;
Abs_Time := Time;
end if;
if Rel_Time > 0.0 then
loop
Sleep (DWORD (Rel_Time * 1000.0));
Check_Time := Monotonic_Clock;
exit when Abs_Time <= Check_Time;
Rel_Time := Abs_Time - Check_Time;
end loop;
end if;
end Timed_Delay;
----------------
-- Initialize --
----------------
Initialized : Boolean := False;
procedure Initialize is
begin
if Initialized then
return;
end if;
Initialized := True;
-- Get starting time as base
if not QueryPerformanceFrequency (Tick_Frequency'Access) then
raise Program_Error
with "cannot get high performance counter frequency";
end if;
Get_Base_Time;
-- Keep base clock and ticks for the monotonic clock. These values
-- should never be changed to ensure proper behavior of the monotonic
-- clock.
Base_Monotonic_Clock := Base_Clock;
Base_Monotonic_Ticks := Base_Ticks;
end Initialize;
end System.OS_Primitives;
|
_build/dispatcher/jmp_ippsGFpECSetPointHashBackCompatible_aa97efb1.asm | zyktrcn/ippcp | 1 | 240916 | extern m7_ippsGFpECSetPointHashBackCompatible:function
extern n8_ippsGFpECSetPointHashBackCompatible:function
extern y8_ippsGFpECSetPointHashBackCompatible:function
extern e9_ippsGFpECSetPointHashBackCompatible:function
extern l9_ippsGFpECSetPointHashBackCompatible:function
extern n0_ippsGFpECSetPointHashBackCompatible:function
extern k0_ippsGFpECSetPointHashBackCompatible:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
dq .Lin_ippsGFpECSetPointHashBackCompatible
.Larraddr_ippsGFpECSetPointHashBackCompatible:
dq m7_ippsGFpECSetPointHashBackCompatible
dq n8_ippsGFpECSetPointHashBackCompatible
dq y8_ippsGFpECSetPointHashBackCompatible
dq e9_ippsGFpECSetPointHashBackCompatible
dq l9_ippsGFpECSetPointHashBackCompatible
dq n0_ippsGFpECSetPointHashBackCompatible
dq k0_ippsGFpECSetPointHashBackCompatible
segment .text
global ippsGFpECSetPointHashBackCompatible:function (ippsGFpECSetPointHashBackCompatible.LEndippsGFpECSetPointHashBackCompatible - ippsGFpECSetPointHashBackCompatible)
.Lin_ippsGFpECSetPointHashBackCompatible:
db 0xf3, 0x0f, 0x1e, 0xfa
call ippcpSafeInit wrt ..plt
align 16
ippsGFpECSetPointHashBackCompatible:
db 0xf3, 0x0f, 0x1e, 0xfa
mov rax, qword [rel ippcpJumpIndexForMergedLibs wrt ..gotpc]
movsxd rax, dword [rax]
lea r11, [rel .Larraddr_ippsGFpECSetPointHashBackCompatible]
mov r11, qword [r11+rax*8]
jmp r11
.LEndippsGFpECSetPointHashBackCompatible:
|
programs/oeis/268/A268228.asm | neoneye/loda | 22 | 179075 | ; A268228: a(n) = sum of digits of (2n + 1)^2.
; 1,9,7,13,9,4,16,9,19,10,9,16,13,18,13,16,18,10,19,9,16,22,9,13,7,9,19,10,18,16,13,27,13,25,18,10,19,18,25,13,18,31,16,27,19,19,27,16,22,18,4,16,9,19,19,9,25,13,27,13,16,18,19,19,18,16,31,18,31,16,27,19,10,18,7,13,18,13,25,18,19,28,18,34,22,18,31,16,18,10,19,27,16,31,18,22,25,18,28,19
mul $0,2
add $0,1
seq $0,4159 ; Sum of digits of n^2.
|
book-01/Assembly/asm/avx-512/packed/avx512_p_vector_cross_product.asm | gfurtadoalmeida/study-assembly-x64 | 2 | 82004 | <gh_stars>1-10
; Indices for gather and scatter instructions.
;
; Vector array representation in memory:
; XYZ|XYZ|XYZ|XYZ
; V0 V1 V2 V3
;
; So, to access the vector V3 we need to access
; the locations 6, 7, 8.
; Using the gather indexes below, V3 would be:
; Index V3.X = idxGatherX[2] = 6
; Index V3.Y = idxGatherY[2] = 7
; Index V3.Z = idxGatherZ[2] = 8
;
; GS_X[i]GS_Y[i]GS_Z[i] = one vector
;
; Indexes of the first 8 vectors.
; The code uses the firsts 8 indexes and
; then calculate the next ones.
ConstVals segment readonly align(64) 'const'
GS_X qword 0, 3, 6, 9, 12, 15, 18, 21
GS_Y qword 1, 4, 7, 10, 13, 16, 19, 22
GS_Z qword 2, 5, 8, 11, 14, 17, 20, 23
ConstVals ends
.code
; bool AVX512_Packed_Vector_Cross_Product_(const Vector * a, const Vector * b, Vector * result, uint32_t length)
AVX512_Packed_Vector_Cross_Product_ proc
xor eax, eax
test r9, r9 ; Stop if length == 0
jz Done
test r9, 07h ; Stop if length % 8 != 0
jnz Done
vmovdqa64 zmm29, zmmword ptr [GS_X] ; zmm29 = X component indices
vmovdqa64 zmm30, zmmword ptr [GS_Y] ; zmm30 = Y component indices
vmovdqa64 zmm31, zmmword ptr [GS_Z] ; zmm31 = Z component indices
align 16
@@:
; Set the first 8 bits to one, this way vgatherqpd will get 8 numbers.
; Not necessary and shown just to learn.
kxnorb k1, k1, k1
vgatherqpd zmm0{k1}, [rcx+zmm29*type real8] ; zmm0 = A.X values
kxnorb k2, k2, k2
vgatherqpd zmm1{k2}, [rcx+zmm30*type real8] ; zmm1 = A.Y values
kxnorb k3, k3, k3
vgatherqpd zmm2{k3}, [rcx+zmm31*type real8] ; zmm2 = A.Z values
kxnorb k4, k4, k4
vgatherqpd zmm3{k4}, [rdx+zmm29*type real8] ; zmm3 = B.X values
kxnorb k5, k5, k5
vgatherqpd zmm4{k5}, [rdx+zmm30*type real8] ; zmm4 = B.Y values
kxnorb k6, k6, k6
vgatherqpd zmm5{k6}, [rdx+zmm31*type real8] ; zmm5 = B.Z values
; Calculate 8 vector cross products
vmulpd zmm16, zmm1, zmm5
vmulpd zmm17, zmm2, zmm4
vsubpd zmm18, zmm16, zmm17 ; c.X = a.Y * b.Z - a.Z * b.Y
vmulpd zmm19, zmm2, zmm3
vmulpd zmm20, zmm0, zmm5
vsubpd zmm21, zmm19, zmm20 ; c.Y = a.Z * b.X - a.X * b.Z
vmulpd zmm22, zmm0, zmm4
vmulpd zmm23, zmm1, zmm3
vsubpd zmm24, zmm22, zmm23 ; c.Z = a.X * b.Y - a.Y * b.X
; Save calculated cross products
kxnorb k4, k4, k4
vscatterqpd [r8+zmm29*type real8]{k4}, zmm18 ; save C.X components
kxnorb k5, k5, k5
vscatterqpd [r8+zmm30*type real8]{k5}, zmm21 ; save C.Y components
kxnorb k6, k6, k6
vscatterqpd [r8+zmm31*type real8]{k6}, zmm24 ; save C.Z components
; Update pointers and counters
add rcx, 192 ; a += 8 vectors * 3 numbers [x,y,z] * 8 bytes/number
add rdx, 192 ; b += 8 vectors * 3 numbers [x,y,z] * 8 bytes/number
add r8, 192 ; c += 8 vectors * 3 numbers [x,y,z] * 8 bytes/number
add rax, 8
cmp rax, r9
jb @B
mov eax, 1
Done:
vzeroupper
ret
AVX512_Packed_Vector_Cross_Product_ endp
end |
base/Kernel/Native/ix86/_ulldvrm.asm | sphinxlogic/Singularity-RDK-2.0 | 0 | 105020 | ;*******************************************************************************
;ulldvrm.asm - unsigned long divide and remainder routine
;
; Copyright (c) Microsoft Corporation. All rights reserved.
;
;Purpose:
; defines the unsigned long divide and remainder routine
; __aulldvrm
;
;Revision History:
; 10-06-98 SMK Initial version.
;
;*******************************************************************************
include hal.inc
;***
;ulldvrm - unsigned long divide and remainder
;
;Purpose:
; Does a unsigned long divide and remainder of the arguments. Arguments
; are not changed.
;
;Entry:
; Arguments are passed on the stack:
; 1st pushed: divisor (QWORD)
; 2nd pushed: dividend (QWORD)
;
;Exit:
; EDX:EAX contains the quotient (dividend/divisor)
; EBX:ECX contains the remainder (divided % divisor)
; NOTE: this routine removes the parameters from the stack.
;
;Uses:
; ECX
;
;Exceptions:
;
;*******************************************************************************
__aulldvrm PROC NEAR
push esi
; Set up the local stack and save the index registers. When this is done
; the stack frame will look as follows (assuming that the expression a/b will
; generate a call to aulldvrm(a, b)):
;
; -----------------
; | |
; |---------------|
; | |
; |--divisor (b)--|
; | |
; |---------------|
; | |
; |--dividend (a)-|
; | |
; |---------------|
; | return addr** |
; |---------------|
; ESP---->| ESI |
; -----------------
;
DVND equ [esp + 8] ; stack address of dividend (a)
DVSR equ [esp + 16] ; stack address of divisor (b)
;
; Now do the divide. First look to see if the divisor is less than 4194304K.
; If so, then we can use a simple algorithm with word divides, otherwise
; things get a little more complex.
;
mov eax,HIWORD(DVSR) ; check to see if divisor < 4194304K
or eax,eax
jnz short L1 ; nope, gotta do this the hard way
mov ecx,LOWORD(DVSR) ; load divisor
mov eax,HIWORD(DVND) ; load high word of dividend
xor edx,edx
div ecx ; get high order bits of quotient
mov ebx,eax ; save high bits of quotient
mov eax,LOWORD(DVND) ; edx:eax <- remainder:lo word of dividend
div ecx ; get low order bits of quotient
mov esi,eax ; ebx:esi <- quotient
;
; Now we need to do a multiply so that we can compute the remainder.
;
mov eax,ebx ; set up high word of quotient
mul dword ptr LOWORD(DVSR) ; HIWORD(QUOT) * DVSR
mov ecx,eax ; save the result in ecx
mov eax,esi ; set up low word of quotient
mul dword ptr LOWORD(DVSR) ; LOWORD(QUOT) * DVSR
add edx,ecx ; EDX:EAX = QUOT * DVSR
jmp short L2 ; complete remainder calculation
;
; Here we do it the hard way. Remember, eax contains DVSRHI
;
L1:
mov ecx,eax ; ecx:ebx <- divisor
mov ebx,LOWORD(DVSR)
mov edx,HIWORD(DVND) ; edx:eax <- dividend
mov eax,LOWORD(DVND)
L3:
shr ecx,1 ; shift divisor right one bit; hi bit <- 0
rcr ebx,1
shr edx,1 ; shift dividend right one bit; hi bit <- 0
rcr eax,1
or ecx,ecx
jnz short L3 ; loop until divisor < 4194304K
div ebx ; now divide, ignore remainder
mov esi,eax ; save quotient
;
; We may be off by one, so to check, we will multiply the quotient
; by the divisor and check the result against the orignal dividend
; Note that we must also check for overflow, which can occur if the
; dividend is close to 2**64 and the quotient is off by 1.
;
mul dword ptr HIWORD(DVSR) ; QUOT * HIWORD(DVSR)
mov ecx,eax
mov eax,LOWORD(DVSR)
mul esi ; QUOT * LOWORD(DVSR)
add edx,ecx ; EDX:EAX = QUOT * DVSR
jc short L4 ; carry means Quotient is off by 1
;
; do long compare here between original dividend and the result of the
; multiply in edx:eax. If original is larger or equal, we are ok, otherwise
; subtract one (1) from the quotient.
;
cmp edx,HIWORD(DVND) ; compare hi words of result and original
ja short L4 ; if result > original, do subtract
jb short L5 ; if result < original, we are ok
cmp eax,LOWORD(DVND) ; hi words are equal, compare lo words
jbe short L5 ; if less or equal we are ok, else subtract
L4:
dec esi ; subtract 1 from quotient
sub eax,LOWORD(DVSR) ; subtract divisor from result
sbb edx,HIWORD(DVSR)
L5:
xor ebx,ebx ; ebx:esi <- quotient
L2:
;
; Calculate remainder by subtracting the result from the original dividend.
; Since the result is already in a register, we will do the subtract in the
; opposite direction and negate the result.
;
sub eax,LOWORD(DVND) ; subtract dividend from result
sbb edx,HIWORD(DVND)
neg edx ; otherwise, negate the result
neg eax
sbb edx,0
;
; Now we need to get the quotient into edx:eax and the remainder into ebx:ecx.
;
mov ecx,edx
mov edx,ebx
mov ebx,ecx
mov ecx,eax
mov eax,esi
;
; Just the cleanup left to do. edx:eax contains the quotient.
; Restore the saved registers and return.
;
pop esi
ret 16
__aulldvrm ENDP
end
|
oeis/038/A038629.asm | neoneye/loda-programs | 11 | 100810 | ; A038629: Convolution of Catalan numbers A000108 with Catalan numbers but C(0)=1 replaced by 3.
; 3,4,9,24,70,216,693,2288,7722,26520,92378,325584,1158924,4160240,15043725,54747360,200360130,736928280,2722540590,10098646800,37594507860,140415097680,526024740930,1976023374624,7441754696100,28091245875056,106268257060308,402815053582368,1529738120152088,5819470935395040,22174609043411517,84623336955502016,323404260166339506,1237616302974216984,4742173579206762790,18192369375675056016,69870401096342649348,268635471436250186128,1033893097303989203190,3982977785736443709600
mov $2,$0
mul $0,2
bin $0,$2
mul $0,114
add $2,2
div $0,$2
sub $0,57
div $0,19
add $0,3
|
libsrc/balloc/ba_BlockCount.asm | meesokim/z88dk | 0 | 22673 | ; 05.2005 aralbrec
PUBLIC ba_BlockCount
EXTERN BABlockCount
.ba_BlockCount
call BABlockCount
ld l,c
ld h,b
ret
|
project_files/kernel.asm | ojasagg/XV6-Demand-Paging | 0 | 175666 | <gh_stars>0
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 a0 10 00 mov $0x10a000,%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 c0 c5 10 80 mov $0x8010c5c0,%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 d0 30 10 80 mov $0x801030d0,%eax
jmp *%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 c5 10 80 mov $0x8010c5f4,%ebx
struct buf head;
} bcache;
void
binit(void)
{
80100049: 83 ec 0c sub $0xc,%esp
struct buf *b;
initlock(&bcache.lock, "bcache");
8010004c: 68 80 75 10 80 push $0x80107580
80100051: 68 c0 c5 10 80 push $0x8010c5c0
80100056: e8 a5 43 00 00 call 80104400 <initlock>
//PAGEBREAK!
// Create linked list of buffers
bcache.head.prev = &bcache.head;
8010005b: c7 05 0c 0d 11 80 bc movl $0x80110cbc,0x80110d0c
80100062: 0c 11 80
bcache.head.next = &bcache.head;
80100065: c7 05 10 0d 11 80 bc movl $0x80110cbc,0x80110d10
8010006c: 0c 11 80
8010006f: 83 c4 10 add $0x10,%esp
80100072: ba bc 0c 11 80 mov $0x80110cbc,%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
for(b = bcache.buf; b < bcache.buf+NBUF; b++){
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
//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++){
b->next = bcache.head.next;
80100088: 89 53 54 mov %edx,0x54(%ebx)
b->prev = &bcache.head;
8010008b: c7 43 50 bc 0c 11 80 movl $0x80110cbc,0x50(%ebx)
initsleeplock(&b->lock, "buffer");
80100092: 68 87 75 10 80 push $0x80107587
80100097: 50 push %eax
80100098: e8 53 42 00 00 call 801042f0 <initsleeplock>
bcache.head.next->prev = b;
8010009d: a1 10 0d 11 80 mov 0x80110d10,%eax
//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++){
801000a2: 83 c4 10 add $0x10,%esp
801000a5: 89 da mov %ebx,%edx
b->next = bcache.head.next;
b->prev = &bcache.head;
initsleeplock(&b->lock, "buffer");
bcache.head.next->prev = b;
801000a7: 89 58 50 mov %ebx,0x50(%eax)
//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++){
801000aa: 8d 83 5c 02 00 00 lea 0x25c(%ebx),%eax
b->next = bcache.head.next;
b->prev = &bcache.head;
initsleeplock(&b->lock, "buffer");
bcache.head.next->prev = b;
bcache.head.next = b;
801000b0: 89 1d 10 0d 11 80 mov %ebx,0x80110d10
//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++){
801000b6: 3d bc 0c 11 80 cmp $0x80110cbc,%eax
801000bb: 75 c3 jne 80100080 <binit+0x40>
b->prev = &bcache.head;
initsleeplock(&b->lock, "buffer");
bcache.head.next->prev = b;
bcache.head.next = b;
}
}
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
static struct buf*
bget(uint dev, uint blockno)
{
struct buf *b;
acquire(&bcache.lock);
801000df: 68 c0 c5 10 80 push $0x8010c5c0
801000e4: e8 17 44 00 00 call 80104500 <acquire>
// Is the block already cached?
for(b = bcache.head.next; b != &bcache.head; b = b->next){
801000e9: 8b 1d 10 0d 11 80 mov 0x80110d10,%ebx
801000ef: 83 c4 10 add $0x10,%esp
801000f2: 81 fb bc 0c 11 80 cmp $0x80110cbc,%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 0c 11 80 cmp $0x80110cbc,%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
}
// Not cached; recycle an unused buffer.
// Even if refcnt==0, B_DIRTY indicates a buffer is in use
// because log.c has modified it but not yet committed it.
for(b = bcache.head.prev; b != &bcache.head; b = b->prev){
80100120: 8b 1d 0c 0d 11 80 mov 0x80110d0c,%ebx
80100126: 81 fb bc 0c 11 80 cmp $0x80110cbc,%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 0c 11 80 cmp $0x80110cbc,%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 c5 10 80 push $0x8010c5c0
80100162: e8 b9 44 00 00 call 80104620 <release>
acquiresleep(&b->lock);
80100167: 8d 43 0c lea 0xc(%ebx),%eax
8010016a: 89 04 24 mov %eax,(%esp)
8010016d: e8 be 41 00 00 call 80104330 <acquiresleep>
80100172: 83 c4 10 add $0x10,%esp
bread(uint dev, uint blockno)
{
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 dd 21 00 00 call 80102360 <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
release(&bcache.lock);
acquiresleep(&b->lock);
return b;
}
}
panic("bget: no buffers");
80100190: 83 ec 0c sub $0xc,%esp
80100193: 68 8e 75 10 80 push $0x8010758e
80100198: e8 03 03 00 00 call 801004a0 <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 1d 42 00 00 call 801043d0 <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
bwrite(struct buf *b)
{
if(!holdingsleep(&b->lock))
panic("bwrite");
b->flags |= B_DIRTY;
iderw(b);
801001c4: e9 97 21 00 00 jmp 80102360 <iderw>
// Write b's contents to disk. Must be locked.
void
bwrite(struct buf *b)
{
if(!holdingsleep(&b->lock))
panic("bwrite");
801001c9: 83 ec 0c sub $0xc,%esp
801001cc: 68 9f 75 10 80 push $0x8010759f
801001d1: e8 ca 02 00 00 call 801004a0 <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 dc 41 00 00 call 801043d0 <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 8c 41 00 00 call 80104390 <releasesleep>
acquire(&bcache.lock);
80100204: c7 04 24 c0 c5 10 80 movl $0x8010c5c0,(%esp)
8010020b: e8 f0 42 00 00 call 80104500 <acquire>
b->refcnt--;
80100210: 8b 43 4c mov 0x4c(%ebx),%eax
if (b->refcnt == 0) {
80100213: 83 c4 10 add $0x10,%esp
panic("brelse");
releasesleep(&b->lock);
acquire(&bcache.lock);
b->refcnt--;
80100216: 83 e8 01 sub $0x1,%eax
if (b->refcnt == 0) {
80100219: 85 c0 test %eax,%eax
panic("brelse");
releasesleep(&b->lock);
acquire(&bcache.lock);
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 0d 11 80 mov 0x80110d10,%eax
b->prev = &bcache.head;
80100237: c7 43 50 bc 0c 11 80 movl $0x80110cbc,0x50(%ebx)
b->refcnt--;
if (b->refcnt == 0) {
// no one is waiting for it.
b->next->prev = b->prev;
b->prev->next = b->next;
b->next = bcache.head.next;
8010023e: 89 43 54 mov %eax,0x54(%ebx)
b->prev = &bcache.head;
bcache.head.next->prev = b;
80100241: a1 10 0d 11 80 mov 0x80110d10,%eax
80100246: 89 58 50 mov %ebx,0x50(%eax)
bcache.head.next = b;
80100249: 89 1d 10 0d 11 80 mov %ebx,0x80110d10
}
release(&bcache.lock);
8010024f: c7 45 08 c0 c5 10 80 movl $0x8010c5c0,0x8(%ebp)
}
80100256: 8d 65 f8 lea -0x8(%ebp),%esp
80100259: 5b pop %ebx
8010025a: 5e pop %esi
8010025b: 5d pop %ebp
b->prev = &bcache.head;
bcache.head.next->prev = b;
bcache.head.next = b;
}
release(&bcache.lock);
8010025c: e9 bf 43 00 00 jmp 80104620 <release>
// Move to the head of the MRU list.
void
brelse(struct buf *b)
{
if(!holdingsleep(&b->lock))
panic("brelse");
80100261: 83 ec 0c sub $0xc,%esp
80100264: 68 a6 75 10 80 push $0x801075a6
80100269: e8 32 02 00 00 call 801004a0 <panic>
8010026e: 66 90 xchg %ax,%ax
80100270 <write_page_to_disk>:
/* Write 4096 bytes pg to the eight consecutive
* starting at blk.
*/
void
write_page_to_disk(uint dev, char *pg, uint blk)
{
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 1c sub $0x1c,%esp
80100279: 8b 5d 0c mov 0xc(%ebp),%ebx
8010027c: 8b 45 08 mov 0x8(%ebp),%eax
8010027f: 8b 75 10 mov 0x10(%ebp),%esi
if(pg==0)
80100282: 85 db test %ebx,%ebx
/* Write 4096 bytes pg to the eight consecutive
* starting at blk.
*/
void
write_page_to_disk(uint dev, char *pg, uint blk)
{
80100284: 89 45 e4 mov %eax,-0x1c(%ebp)
if(pg==0)
80100287: 0f 84 83 00 00 00 je 80100310 <write_page_to_disk+0xa0>
{
cprintf("Returning\n");
return ;
}
cprintf("wriitng to disk\n");
8010028d: 83 ec 0c sub $0xc,%esp
80100290: 68 b8 75 10 80 push $0x801075b8
80100295: e8 f6 04 00 00 call 80100790 <cprintf>
8010029a: 8d 83 00 10 00 00 lea 0x1000(%ebx),%eax
801002a0: 83 c4 10 add $0x10,%esp
801002a3: 89 45 e0 mov %eax,-0x20(%ebp)
801002a6: 8d 76 00 lea 0x0(%esi),%esi
801002a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
int i;
struct buf* b;
for(i = 0; i<8; i++)
{
begin_op();
801002b0: e8 0b 2b 00 00 call 80102dc0 <begin_op>
b = bread(dev, blk+i);
801002b5: 83 ec 08 sub $0x8,%esp
801002b8: 56 push %esi
801002b9: ff 75 e4 pushl -0x1c(%ebp)
801002bc: 83 c6 01 add $0x1,%esi
801002bf: e8 0c fe ff ff call 801000d0 <bread>
801002c4: 89 c7 mov %eax,%edi
memmove(b->data, pg+i*512,512);
801002c6: 8d 40 5c lea 0x5c(%eax),%eax
801002c9: 83 c4 0c add $0xc,%esp
801002cc: 68 00 02 00 00 push $0x200
801002d1: 53 push %ebx
801002d2: 81 c3 00 02 00 00 add $0x200,%ebx
801002d8: 50 push %eax
801002d9: e8 42 44 00 00 call 80104720 <memmove>
log_write(b);
801002de: 89 3c 24 mov %edi,(%esp)
801002e1: e8 ba 2c 00 00 call 80102fa0 <log_write>
brelse(b);
801002e6: 89 3c 24 mov %edi,(%esp)
801002e9: e8 f2 fe ff ff call 801001e0 <brelse>
end_op();
801002ee: e8 3d 2b 00 00 call 80102e30 <end_op>
return ;
}
cprintf("wriitng to disk\n");
int i;
struct buf* b;
for(i = 0; i<8; i++)
801002f3: 83 c4 10 add $0x10,%esp
801002f6: 3b 5d e0 cmp -0x20(%ebp),%ebx
801002f9: 75 b5 jne 801002b0 <write_page_to_disk+0x40>
memmove(b->data, pg+i*512,512);
log_write(b);
brelse(b);
end_op();
}
cprintf("write complete\n");
801002fb: c7 45 08 c9 75 10 80 movl $0x801075c9,0x8(%ebp)
}
80100302: 8d 65 f4 lea -0xc(%ebp),%esp
80100305: 5b pop %ebx
80100306: 5e pop %esi
80100307: 5f pop %edi
80100308: 5d pop %ebp
memmove(b->data, pg+i*512,512);
log_write(b);
brelse(b);
end_op();
}
cprintf("write complete\n");
80100309: e9 82 04 00 00 jmp 80100790 <cprintf>
8010030e: 66 90 xchg %ax,%ax
void
write_page_to_disk(uint dev, char *pg, uint blk)
{
if(pg==0)
{
cprintf("Returning\n");
80100310: c7 45 08 ad 75 10 80 movl $0x801075ad,0x8(%ebp)
log_write(b);
brelse(b);
end_op();
}
cprintf("write complete\n");
}
80100317: 8d 65 f4 lea -0xc(%ebp),%esp
8010031a: 5b pop %ebx
8010031b: 5e pop %esi
8010031c: 5f pop %edi
8010031d: 5d pop %ebp
memmove(b->data, pg+i*512,512);
log_write(b);
brelse(b);
end_op();
}
cprintf("write complete\n");
8010031e: e9 6d 04 00 00 jmp 80100790 <cprintf>
80100323: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80100329: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80100330 <read_page_from_disk>:
/* Read 4096 bytes from the eight consecutive
* starting at blk into pg.
*/
void
read_page_from_disk(uint dev, char *pg, uint blk)
{
80100330: 55 push %ebp
80100331: 89 e5 mov %esp,%ebp
80100333: 57 push %edi
80100334: 56 push %esi
80100335: 53 push %ebx
80100336: 83 ec 1c sub $0x1c,%esp
80100339: 8b 45 08 mov 0x8(%ebp),%eax
8010033c: 8b 5d 0c mov 0xc(%ebp),%ebx
8010033f: 8b 75 10 mov 0x10(%ebp),%esi
80100342: 89 45 e0 mov %eax,-0x20(%ebp)
80100345: 8d 83 00 10 00 00 lea 0x1000(%ebx),%eax
8010034b: 89 45 e4 mov %eax,-0x1c(%ebp)
8010034e: 66 90 xchg %ax,%ax
int i;
for(i = 0; i<8; i++)
{
struct buf* b = bread(dev, blk+i);
80100350: 83 ec 08 sub $0x8,%esp
80100353: 56 push %esi
80100354: ff 75 e0 pushl -0x20(%ebp)
80100357: 83 c6 01 add $0x1,%esi
8010035a: e8 71 fd ff ff call 801000d0 <bread>
8010035f: 89 c7 mov %eax,%edi
memmove(pg+i*512, b->data, 512);
80100361: 8d 40 5c lea 0x5c(%eax),%eax
80100364: 83 c4 0c add $0xc,%esp
80100367: 68 00 02 00 00 push $0x200
8010036c: 50 push %eax
8010036d: 53 push %ebx
8010036e: 81 c3 00 02 00 00 add $0x200,%ebx
80100374: e8 a7 43 00 00 call 80104720 <memmove>
//cprintf("hiiiii\n");
brelse(b);
80100379: 89 3c 24 mov %edi,(%esp)
8010037c: e8 5f fe ff ff call 801001e0 <brelse>
*/
void
read_page_from_disk(uint dev, char *pg, uint blk)
{
int i;
for(i = 0; i<8; i++)
80100381: 83 c4 10 add $0x10,%esp
80100384: 3b 5d e4 cmp -0x1c(%ebp),%ebx
80100387: 75 c7 jne 80100350 <read_page_from_disk+0x20>
struct buf* b = bread(dev, blk+i);
memmove(pg+i*512, b->data, 512);
//cprintf("hiiiii\n");
brelse(b);
}
cprintf("read complete\n");
80100389: c7 45 08 d9 75 10 80 movl $0x801075d9,0x8(%ebp)
}
80100390: 8d 65 f4 lea -0xc(%ebp),%esp
80100393: 5b pop %ebx
80100394: 5e pop %esi
80100395: 5f pop %edi
80100396: 5d pop %ebp
struct buf* b = bread(dev, blk+i);
memmove(pg+i*512, b->data, 512);
//cprintf("hiiiii\n");
brelse(b);
}
cprintf("read complete\n");
80100397: e9 f4 03 00 00 jmp 80100790 <cprintf>
8010039c: 66 90 xchg %ax,%ax
8010039e: 66 90 xchg %ax,%ax
801003a0 <consoleread>:
}
}
int
consoleread(struct inode *ip, char *dst, int n)
{
801003a0: 55 push %ebp
801003a1: 89 e5 mov %esp,%ebp
801003a3: 57 push %edi
801003a4: 56 push %esi
801003a5: 53 push %ebx
801003a6: 83 ec 28 sub $0x28,%esp
801003a9: 8b 7d 08 mov 0x8(%ebp),%edi
801003ac: 8b 75 0c mov 0xc(%ebp),%esi
uint target;
int c;
iunlock(ip);
801003af: 57 push %edi
801003b0: e8 0b 16 00 00 call 801019c0 <iunlock>
target = n;
acquire(&cons.lock);
801003b5: c7 04 24 20 b5 10 80 movl $0x8010b520,(%esp)
801003bc: e8 3f 41 00 00 call 80104500 <acquire>
while(n > 0){
801003c1: 8b 5d 10 mov 0x10(%ebp),%ebx
801003c4: 83 c4 10 add $0x10,%esp
801003c7: 31 c0 xor %eax,%eax
801003c9: 85 db test %ebx,%ebx
801003cb: 0f 8e 9a 00 00 00 jle 8010046b <consoleread+0xcb>
while(input.r == input.w){
801003d1: a1 a0 0f 11 80 mov 0x80110fa0,%eax
801003d6: 3b 05 a4 0f 11 80 cmp 0x80110fa4,%eax
801003dc: 74 24 je 80100402 <consoleread+0x62>
801003de: eb 58 jmp 80100438 <consoleread+0x98>
if(myproc()->killed){
release(&cons.lock);
ilock(ip);
return -1;
}
sleep(&input.r, &cons.lock);
801003e0: 83 ec 08 sub $0x8,%esp
801003e3: 68 20 b5 10 80 push $0x8010b520
801003e8: 68 a0 0f 11 80 push $0x80110fa0
801003ed: e8 7e 3b 00 00 call 80103f70 <sleep>
iunlock(ip);
target = n;
acquire(&cons.lock);
while(n > 0){
while(input.r == input.w){
801003f2: a1 a0 0f 11 80 mov 0x80110fa0,%eax
801003f7: 83 c4 10 add $0x10,%esp
801003fa: 3b 05 a4 0f 11 80 cmp 0x80110fa4,%eax
80100400: 75 36 jne 80100438 <consoleread+0x98>
if(myproc()->killed){
80100402: e8 e9 35 00 00 call 801039f0 <myproc>
80100407: 8b 40 24 mov 0x24(%eax),%eax
8010040a: 85 c0 test %eax,%eax
8010040c: 74 d2 je 801003e0 <consoleread+0x40>
release(&cons.lock);
8010040e: 83 ec 0c sub $0xc,%esp
80100411: 68 20 b5 10 80 push $0x8010b520
80100416: e8 05 42 00 00 call 80104620 <release>
ilock(ip);
8010041b: 89 3c 24 mov %edi,(%esp)
8010041e: e8 bd 14 00 00 call 801018e0 <ilock>
return -1;
80100423: 83 c4 10 add $0x10,%esp
80100426: b8 ff ff ff ff mov $0xffffffff,%eax
}
release(&cons.lock);
ilock(ip);
return target - n;
}
8010042b: 8d 65 f4 lea -0xc(%ebp),%esp
8010042e: 5b pop %ebx
8010042f: 5e pop %esi
80100430: 5f pop %edi
80100431: 5d pop %ebp
80100432: c3 ret
80100433: 90 nop
80100434: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
ilock(ip);
return -1;
}
sleep(&input.r, &cons.lock);
}
c = input.buf[input.r++ % INPUT_BUF];
80100438: 8d 50 01 lea 0x1(%eax),%edx
8010043b: 89 15 a0 0f 11 80 mov %edx,0x80110fa0
80100441: 89 c2 mov %eax,%edx
80100443: 83 e2 7f and $0x7f,%edx
80100446: 0f be 92 20 0f 11 80 movsbl -0x7feef0e0(%edx),%edx
if(c == C('D')){ // EOF
8010044d: 83 fa 04 cmp $0x4,%edx
80100450: 74 39 je 8010048b <consoleread+0xeb>
// caller gets a 0-byte result.
input.r--;
}
break;
}
*dst++ = c;
80100452: 83 c6 01 add $0x1,%esi
--n;
80100455: 83 eb 01 sub $0x1,%ebx
if(c == '\n')
80100458: 83 fa 0a cmp $0xa,%edx
// caller gets a 0-byte result.
input.r--;
}
break;
}
*dst++ = c;
8010045b: 88 56 ff mov %dl,-0x1(%esi)
--n;
if(c == '\n')
8010045e: 74 35 je 80100495 <consoleread+0xf5>
int c;
iunlock(ip);
target = n;
acquire(&cons.lock);
while(n > 0){
80100460: 85 db test %ebx,%ebx
80100462: 0f 85 69 ff ff ff jne 801003d1 <consoleread+0x31>
80100468: 8b 45 10 mov 0x10(%ebp),%eax
*dst++ = c;
--n;
if(c == '\n')
break;
}
release(&cons.lock);
8010046b: 83 ec 0c sub $0xc,%esp
8010046e: 89 45 e4 mov %eax,-0x1c(%ebp)
80100471: 68 20 b5 10 80 push $0x8010b520
80100476: e8 a5 41 00 00 call 80104620 <release>
ilock(ip);
8010047b: 89 3c 24 mov %edi,(%esp)
8010047e: e8 5d 14 00 00 call 801018e0 <ilock>
return target - n;
80100483: 83 c4 10 add $0x10,%esp
80100486: 8b 45 e4 mov -0x1c(%ebp),%eax
80100489: eb a0 jmp 8010042b <consoleread+0x8b>
}
sleep(&input.r, &cons.lock);
}
c = input.buf[input.r++ % INPUT_BUF];
if(c == C('D')){ // EOF
if(n < target){
8010048b: 39 5d 10 cmp %ebx,0x10(%ebp)
8010048e: 76 05 jbe 80100495 <consoleread+0xf5>
// Save ^D for next time, to make sure
// caller gets a 0-byte result.
input.r--;
80100490: a3 a0 0f 11 80 mov %eax,0x80110fa0
80100495: 8b 45 10 mov 0x10(%ebp),%eax
80100498: 29 d8 sub %ebx,%eax
8010049a: eb cf jmp 8010046b <consoleread+0xcb>
8010049c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801004a0 <panic>:
release(&cons.lock);
}
void
panic(char *s)
{
801004a0: 55 push %ebp
801004a1: 89 e5 mov %esp,%ebp
801004a3: 56 push %esi
801004a4: 53 push %ebx
801004a5: 83 ec 30 sub $0x30,%esp
}
static inline void
cli(void)
{
asm volatile("cli");
801004a8: fa cli
int i;
uint pcs[10];
cli();
cons.locking = 0;
801004a9: c7 05 54 b5 10 80 00 movl $0x0,0x8010b554
801004b0: 00 00 00
// use lapiccpunum so that we can call panic from mycpu()
cprintf("lapicid %d: panic: ", lapicid());
cprintf(s);
cprintf("\n");
getcallerpcs(&s, pcs);
801004b3: 8d 5d d0 lea -0x30(%ebp),%ebx
801004b6: 8d 75 f8 lea -0x8(%ebp),%esi
uint pcs[10];
cli();
cons.locking = 0;
// use lapiccpunum so that we can call panic from mycpu()
cprintf("lapicid %d: panic: ", lapicid());
801004b9: e8 a2 24 00 00 call 80102960 <lapicid>
801004be: 83 ec 08 sub $0x8,%esp
801004c1: 50 push %eax
801004c2: 68 e8 75 10 80 push $0x801075e8
801004c7: e8 c4 02 00 00 call 80100790 <cprintf>
cprintf(s);
801004cc: 58 pop %eax
801004cd: ff 75 08 pushl 0x8(%ebp)
801004d0: e8 bb 02 00 00 call 80100790 <cprintf>
cprintf("\n");
801004d5: c7 04 24 f3 76 10 80 movl $0x801076f3,(%esp)
801004dc: e8 af 02 00 00 call 80100790 <cprintf>
getcallerpcs(&s, pcs);
801004e1: 5a pop %edx
801004e2: 8d 45 08 lea 0x8(%ebp),%eax
801004e5: 59 pop %ecx
801004e6: 53 push %ebx
801004e7: 50 push %eax
801004e8: e8 33 3f 00 00 call 80104420 <getcallerpcs>
801004ed: 83 c4 10 add $0x10,%esp
for(i=0; i<10; i++)
cprintf(" %p", pcs[i]);
801004f0: 83 ec 08 sub $0x8,%esp
801004f3: ff 33 pushl (%ebx)
801004f5: 83 c3 04 add $0x4,%ebx
801004f8: 68 fc 75 10 80 push $0x801075fc
801004fd: e8 8e 02 00 00 call 80100790 <cprintf>
// use lapiccpunum so that we can call panic from mycpu()
cprintf("lapicid %d: panic: ", lapicid());
cprintf(s);
cprintf("\n");
getcallerpcs(&s, pcs);
for(i=0; i<10; i++)
80100502: 83 c4 10 add $0x10,%esp
80100505: 39 f3 cmp %esi,%ebx
80100507: 75 e7 jne 801004f0 <panic+0x50>
cprintf(" %p", pcs[i]);
panicked = 1; // freeze other CPU
80100509: c7 05 58 b5 10 80 01 movl $0x1,0x8010b558
80100510: 00 00 00
80100513: eb fe jmp 80100513 <panic+0x73>
80100515: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80100519: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80100520 <consputc>:
}
void
consputc(int c)
{
if(panicked){
80100520: 8b 15 58 b5 10 80 mov 0x8010b558,%edx
80100526: 85 d2 test %edx,%edx
80100528: 74 06 je 80100530 <consputc+0x10>
8010052a: fa cli
8010052b: eb fe jmp 8010052b <consputc+0xb>
8010052d: 8d 76 00 lea 0x0(%esi),%esi
crt[pos] = ' ' | 0x0700;
}
void
consputc(int c)
{
80100530: 55 push %ebp
80100531: 89 e5 mov %esp,%ebp
80100533: 57 push %edi
80100534: 56 push %esi
80100535: 53 push %ebx
80100536: 89 c3 mov %eax,%ebx
80100538: 83 ec 0c sub $0xc,%esp
cli();
for(;;)
;
}
if(c == BACKSPACE){
8010053b: 3d 00 01 00 00 cmp $0x100,%eax
80100540: 0f 84 b8 00 00 00 je 801005fe <consputc+0xde>
uartputc('\b'); uartputc(' '); uartputc('\b');
} else
uartputc(c);
80100546: 83 ec 0c sub $0xc,%esp
80100549: 50 push %eax
8010054a: e8 91 5a 00 00 call 80105fe0 <uartputc>
8010054f: 83 c4 10 add $0x10,%esp
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80100552: bf d4 03 00 00 mov $0x3d4,%edi
80100557: b8 0e 00 00 00 mov $0xe,%eax
8010055c: 89 fa mov %edi,%edx
8010055e: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
8010055f: be d5 03 00 00 mov $0x3d5,%esi
80100564: 89 f2 mov %esi,%edx
80100566: ec in (%dx),%al
{
int pos;
// Cursor position: col + 80*row.
outb(CRTPORT, 14);
pos = inb(CRTPORT+1) << 8;
80100567: 0f b6 c0 movzbl %al,%eax
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
8010056a: 89 fa mov %edi,%edx
8010056c: c1 e0 08 shl $0x8,%eax
8010056f: 89 c1 mov %eax,%ecx
80100571: b8 0f 00 00 00 mov $0xf,%eax
80100576: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80100577: 89 f2 mov %esi,%edx
80100579: ec in (%dx),%al
outb(CRTPORT, 15);
pos |= inb(CRTPORT+1);
8010057a: 0f b6 c0 movzbl %al,%eax
8010057d: 09 c8 or %ecx,%eax
if(c == '\n')
8010057f: 83 fb 0a cmp $0xa,%ebx
80100582: 0f 84 0b 01 00 00 je 80100693 <consputc+0x173>
pos += 80 - pos%80;
else if(c == BACKSPACE){
80100588: 81 fb 00 01 00 00 cmp $0x100,%ebx
8010058e: 0f 84 e6 00 00 00 je 8010067a <consputc+0x15a>
if(pos > 0) --pos;
} else
crt[pos++] = (c&0xff) | 0x0700; // black on white
80100594: 0f b6 d3 movzbl %bl,%edx
80100597: 8d 78 01 lea 0x1(%eax),%edi
8010059a: 80 ce 07 or $0x7,%dh
8010059d: 66 89 94 00 00 80 0b mov %dx,-0x7ff48000(%eax,%eax,1)
801005a4: 80
if(pos < 0 || pos > 25*80)
801005a5: 81 ff d0 07 00 00 cmp $0x7d0,%edi
801005ab: 0f 8f bc 00 00 00 jg 8010066d <consputc+0x14d>
panic("pos under/overflow");
if((pos/80) >= 24){ // Scroll up.
801005b1: 81 ff 7f 07 00 00 cmp $0x77f,%edi
801005b7: 7f 6f jg 80100628 <consputc+0x108>
801005b9: 89 f8 mov %edi,%eax
801005bb: 8d 8c 3f 00 80 0b 80 lea -0x7ff48000(%edi,%edi,1),%ecx
801005c2: 89 fb mov %edi,%ebx
801005c4: c1 e8 08 shr $0x8,%eax
801005c7: 89 c6 mov %eax,%esi
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801005c9: bf d4 03 00 00 mov $0x3d4,%edi
801005ce: b8 0e 00 00 00 mov $0xe,%eax
801005d3: 89 fa mov %edi,%edx
801005d5: ee out %al,(%dx)
801005d6: ba d5 03 00 00 mov $0x3d5,%edx
801005db: 89 f0 mov %esi,%eax
801005dd: ee out %al,(%dx)
801005de: b8 0f 00 00 00 mov $0xf,%eax
801005e3: 89 fa mov %edi,%edx
801005e5: ee out %al,(%dx)
801005e6: ba d5 03 00 00 mov $0x3d5,%edx
801005eb: 89 d8 mov %ebx,%eax
801005ed: ee out %al,(%dx)
outb(CRTPORT, 14);
outb(CRTPORT+1, pos>>8);
outb(CRTPORT, 15);
outb(CRTPORT+1, pos);
crt[pos] = ' ' | 0x0700;
801005ee: b8 20 07 00 00 mov $0x720,%eax
801005f3: 66 89 01 mov %ax,(%ecx)
if(c == BACKSPACE){
uartputc('\b'); uartputc(' '); uartputc('\b');
} else
uartputc(c);
cgaputc(c);
}
801005f6: 8d 65 f4 lea -0xc(%ebp),%esp
801005f9: 5b pop %ebx
801005fa: 5e pop %esi
801005fb: 5f pop %edi
801005fc: 5d pop %ebp
801005fd: c3 ret
for(;;)
;
}
if(c == BACKSPACE){
uartputc('\b'); uartputc(' '); uartputc('\b');
801005fe: 83 ec 0c sub $0xc,%esp
80100601: 6a 08 push $0x8
80100603: e8 d8 59 00 00 call 80105fe0 <uartputc>
80100608: c7 04 24 20 00 00 00 movl $0x20,(%esp)
8010060f: e8 cc 59 00 00 call 80105fe0 <uartputc>
80100614: c7 04 24 08 00 00 00 movl $0x8,(%esp)
8010061b: e8 c0 59 00 00 call 80105fe0 <uartputc>
80100620: 83 c4 10 add $0x10,%esp
80100623: e9 2a ff ff ff jmp 80100552 <consputc+0x32>
if(pos < 0 || pos > 25*80)
panic("pos under/overflow");
if((pos/80) >= 24){ // Scroll up.
memmove(crt, crt+80, sizeof(crt[0])*23*80);
80100628: 83 ec 04 sub $0x4,%esp
pos -= 80;
8010062b: 8d 5f b0 lea -0x50(%edi),%ebx
if(pos < 0 || pos > 25*80)
panic("pos under/overflow");
if((pos/80) >= 24){ // Scroll up.
memmove(crt, crt+80, sizeof(crt[0])*23*80);
8010062e: 68 60 0e 00 00 push $0xe60
80100633: 68 a0 80 0b 80 push $0x800b80a0
80100638: 68 00 80 0b 80 push $0x800b8000
pos -= 80;
memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos));
8010063d: 8d b4 1b 00 80 0b 80 lea -0x7ff48000(%ebx,%ebx,1),%esi
if(pos < 0 || pos > 25*80)
panic("pos under/overflow");
if((pos/80) >= 24){ // Scroll up.
memmove(crt, crt+80, sizeof(crt[0])*23*80);
80100644: e8 d7 40 00 00 call 80104720 <memmove>
pos -= 80;
memset(crt+pos, 0, sizeof(crt[0])*(24*80 - pos));
80100649: b8 80 07 00 00 mov $0x780,%eax
8010064e: 83 c4 0c add $0xc,%esp
80100651: 29 d8 sub %ebx,%eax
80100653: 01 c0 add %eax,%eax
80100655: 50 push %eax
80100656: 6a 00 push $0x0
80100658: 56 push %esi
80100659: e8 12 40 00 00 call 80104670 <memset>
8010065e: 89 f1 mov %esi,%ecx
80100660: 83 c4 10 add $0x10,%esp
80100663: be 07 00 00 00 mov $0x7,%esi
80100668: e9 5c ff ff ff jmp 801005c9 <consputc+0xa9>
if(pos > 0) --pos;
} else
crt[pos++] = (c&0xff) | 0x0700; // black on white
if(pos < 0 || pos > 25*80)
panic("pos under/overflow");
8010066d: 83 ec 0c sub $0xc,%esp
80100670: 68 00 76 10 80 push $0x80107600
80100675: e8 26 fe ff ff call 801004a0 <panic>
pos |= inb(CRTPORT+1);
if(c == '\n')
pos += 80 - pos%80;
else if(c == BACKSPACE){
if(pos > 0) --pos;
8010067a: 85 c0 test %eax,%eax
8010067c: 8d 78 ff lea -0x1(%eax),%edi
8010067f: 0f 85 20 ff ff ff jne 801005a5 <consputc+0x85>
80100685: b9 00 80 0b 80 mov $0x800b8000,%ecx
8010068a: 31 db xor %ebx,%ebx
8010068c: 31 f6 xor %esi,%esi
8010068e: e9 36 ff ff ff jmp 801005c9 <consputc+0xa9>
pos = inb(CRTPORT+1) << 8;
outb(CRTPORT, 15);
pos |= inb(CRTPORT+1);
if(c == '\n')
pos += 80 - pos%80;
80100693: ba 67 66 66 66 mov $0x66666667,%edx
80100698: f7 ea imul %edx
8010069a: 89 d0 mov %edx,%eax
8010069c: c1 e8 05 shr $0x5,%eax
8010069f: 8d 04 80 lea (%eax,%eax,4),%eax
801006a2: c1 e0 04 shl $0x4,%eax
801006a5: 8d 78 50 lea 0x50(%eax),%edi
801006a8: e9 f8 fe ff ff jmp 801005a5 <consputc+0x85>
801006ad: 8d 76 00 lea 0x0(%esi),%esi
801006b0 <printint>:
int locking;
} cons;
static void
printint(int xx, int base, int sign)
{
801006b0: 55 push %ebp
801006b1: 89 e5 mov %esp,%ebp
801006b3: 57 push %edi
801006b4: 56 push %esi
801006b5: 53 push %ebx
801006b6: 89 d6 mov %edx,%esi
801006b8: 83 ec 2c sub $0x2c,%esp
static char digits[] = "0123456789abcdef";
char buf[16];
int i;
uint x;
if(sign && (sign = xx < 0))
801006bb: 85 c9 test %ecx,%ecx
int locking;
} cons;
static void
printint(int xx, int base, int sign)
{
801006bd: 89 4d d4 mov %ecx,-0x2c(%ebp)
static char digits[] = "0123456789abcdef";
char buf[16];
int i;
uint x;
if(sign && (sign = xx < 0))
801006c0: 74 0c je 801006ce <printint+0x1e>
801006c2: 89 c7 mov %eax,%edi
801006c4: c1 ef 1f shr $0x1f,%edi
801006c7: 85 c0 test %eax,%eax
801006c9: 89 7d d4 mov %edi,-0x2c(%ebp)
801006cc: 78 51 js 8010071f <printint+0x6f>
x = -xx;
else
x = xx;
i = 0;
801006ce: 31 ff xor %edi,%edi
801006d0: 8d 5d d7 lea -0x29(%ebp),%ebx
801006d3: eb 05 jmp 801006da <printint+0x2a>
801006d5: 8d 76 00 lea 0x0(%esi),%esi
do{
buf[i++] = digits[x % base];
801006d8: 89 cf mov %ecx,%edi
801006da: 31 d2 xor %edx,%edx
801006dc: 8d 4f 01 lea 0x1(%edi),%ecx
801006df: f7 f6 div %esi
801006e1: 0f b6 92 2c 76 10 80 movzbl -0x7fef89d4(%edx),%edx
}while((x /= base) != 0);
801006e8: 85 c0 test %eax,%eax
else
x = xx;
i = 0;
do{
buf[i++] = digits[x % base];
801006ea: 88 14 0b mov %dl,(%ebx,%ecx,1)
}while((x /= base) != 0);
801006ed: 75 e9 jne 801006d8 <printint+0x28>
if(sign)
801006ef: 8b 45 d4 mov -0x2c(%ebp),%eax
801006f2: 85 c0 test %eax,%eax
801006f4: 74 08 je 801006fe <printint+0x4e>
buf[i++] = '-';
801006f6: c6 44 0d d8 2d movb $0x2d,-0x28(%ebp,%ecx,1)
801006fb: 8d 4f 02 lea 0x2(%edi),%ecx
801006fe: 8d 74 0d d7 lea -0x29(%ebp,%ecx,1),%esi
80100702: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
while(--i >= 0)
consputc(buf[i]);
80100708: 0f be 06 movsbl (%esi),%eax
8010070b: 83 ee 01 sub $0x1,%esi
8010070e: e8 0d fe ff ff call 80100520 <consputc>
}while((x /= base) != 0);
if(sign)
buf[i++] = '-';
while(--i >= 0)
80100713: 39 de cmp %ebx,%esi
80100715: 75 f1 jne 80100708 <printint+0x58>
consputc(buf[i]);
}
80100717: 83 c4 2c add $0x2c,%esp
8010071a: 5b pop %ebx
8010071b: 5e pop %esi
8010071c: 5f pop %edi
8010071d: 5d pop %ebp
8010071e: c3 ret
char buf[16];
int i;
uint x;
if(sign && (sign = xx < 0))
x = -xx;
8010071f: f7 d8 neg %eax
80100721: eb ab jmp 801006ce <printint+0x1e>
80100723: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80100729: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80100730 <consolewrite>:
return target - n;
}
int
consolewrite(struct inode *ip, char *buf, int n)
{
80100730: 55 push %ebp
80100731: 89 e5 mov %esp,%ebp
80100733: 57 push %edi
80100734: 56 push %esi
80100735: 53 push %ebx
80100736: 83 ec 18 sub $0x18,%esp
int i;
iunlock(ip);
80100739: ff 75 08 pushl 0x8(%ebp)
return target - n;
}
int
consolewrite(struct inode *ip, char *buf, int n)
{
8010073c: 8b 75 10 mov 0x10(%ebp),%esi
int i;
iunlock(ip);
8010073f: e8 7c 12 00 00 call 801019c0 <iunlock>
acquire(&cons.lock);
80100744: c7 04 24 20 b5 10 80 movl $0x8010b520,(%esp)
8010074b: e8 b0 3d 00 00 call 80104500 <acquire>
80100750: 8b 7d 0c mov 0xc(%ebp),%edi
for(i = 0; i < n; i++)
80100753: 83 c4 10 add $0x10,%esp
80100756: 85 f6 test %esi,%esi
80100758: 8d 1c 37 lea (%edi,%esi,1),%ebx
8010075b: 7e 12 jle 8010076f <consolewrite+0x3f>
8010075d: 8d 76 00 lea 0x0(%esi),%esi
consputc(buf[i] & 0xff);
80100760: 0f b6 07 movzbl (%edi),%eax
80100763: 83 c7 01 add $0x1,%edi
80100766: e8 b5 fd ff ff call 80100520 <consputc>
{
int i;
iunlock(ip);
acquire(&cons.lock);
for(i = 0; i < n; i++)
8010076b: 39 df cmp %ebx,%edi
8010076d: 75 f1 jne 80100760 <consolewrite+0x30>
consputc(buf[i] & 0xff);
release(&cons.lock);
8010076f: 83 ec 0c sub $0xc,%esp
80100772: 68 20 b5 10 80 push $0x8010b520
80100777: e8 a4 3e 00 00 call 80104620 <release>
ilock(ip);
8010077c: 58 pop %eax
8010077d: ff 75 08 pushl 0x8(%ebp)
80100780: e8 5b 11 00 00 call 801018e0 <ilock>
return n;
}
80100785: 8d 65 f4 lea -0xc(%ebp),%esp
80100788: 89 f0 mov %esi,%eax
8010078a: 5b pop %ebx
8010078b: 5e pop %esi
8010078c: 5f pop %edi
8010078d: 5d pop %ebp
8010078e: c3 ret
8010078f: 90 nop
80100790 <cprintf>:
//PAGEBREAK: 50
// Print to the console. only understands %d, %x, %p, %s.
void
cprintf(char *fmt, ...)
{
80100790: 55 push %ebp
80100791: 89 e5 mov %esp,%ebp
80100793: 57 push %edi
80100794: 56 push %esi
80100795: 53 push %ebx
80100796: 83 ec 1c sub $0x1c,%esp
int i, c, locking;
uint *argp;
char *s;
locking = cons.locking;
80100799: a1 54 b5 10 80 mov 0x8010b554,%eax
if(locking)
8010079e: 85 c0 test %eax,%eax
{
int i, c, locking;
uint *argp;
char *s;
locking = cons.locking;
801007a0: 89 45 e0 mov %eax,-0x20(%ebp)
if(locking)
801007a3: 0f 85 47 01 00 00 jne 801008f0 <cprintf+0x160>
acquire(&cons.lock);
if (fmt == 0)
801007a9: 8b 45 08 mov 0x8(%ebp),%eax
801007ac: 85 c0 test %eax,%eax
801007ae: 89 c1 mov %eax,%ecx
801007b0: 0f 84 4f 01 00 00 je 80100905 <cprintf+0x175>
panic("null fmt");
argp = (uint*)(void*)(&fmt + 1);
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
801007b6: 0f b6 00 movzbl (%eax),%eax
801007b9: 31 db xor %ebx,%ebx
801007bb: 8d 75 0c lea 0xc(%ebp),%esi
801007be: 89 cf mov %ecx,%edi
801007c0: 85 c0 test %eax,%eax
801007c2: 75 55 jne 80100819 <cprintf+0x89>
801007c4: eb 68 jmp 8010082e <cprintf+0x9e>
801007c6: 8d 76 00 lea 0x0(%esi),%esi
801007c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
if(c != '%'){
consputc(c);
continue;
}
c = fmt[++i] & 0xff;
801007d0: 83 c3 01 add $0x1,%ebx
801007d3: 0f b6 14 1f movzbl (%edi,%ebx,1),%edx
if(c == 0)
801007d7: 85 d2 test %edx,%edx
801007d9: 74 53 je 8010082e <cprintf+0x9e>
break;
switch(c){
801007db: 83 fa 70 cmp $0x70,%edx
801007de: 74 7a je 8010085a <cprintf+0xca>
801007e0: 7f 6e jg 80100850 <cprintf+0xc0>
801007e2: 83 fa 25 cmp $0x25,%edx
801007e5: 0f 84 ad 00 00 00 je 80100898 <cprintf+0x108>
801007eb: 83 fa 64 cmp $0x64,%edx
801007ee: 0f 85 84 00 00 00 jne 80100878 <cprintf+0xe8>
case 'd':
printint(*argp++, 10, 1);
801007f4: 8d 46 04 lea 0x4(%esi),%eax
801007f7: b9 01 00 00 00 mov $0x1,%ecx
801007fc: ba 0a 00 00 00 mov $0xa,%edx
80100801: 89 45 e4 mov %eax,-0x1c(%ebp)
80100804: 8b 06 mov (%esi),%eax
80100806: e8 a5 fe ff ff call 801006b0 <printint>
8010080b: 8b 75 e4 mov -0x1c(%ebp),%esi
if (fmt == 0)
panic("null fmt");
argp = (uint*)(void*)(&fmt + 1);
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
8010080e: 83 c3 01 add $0x1,%ebx
80100811: 0f b6 04 1f movzbl (%edi,%ebx,1),%eax
80100815: 85 c0 test %eax,%eax
80100817: 74 15 je 8010082e <cprintf+0x9e>
if(c != '%'){
80100819: 83 f8 25 cmp $0x25,%eax
8010081c: 74 b2 je 801007d0 <cprintf+0x40>
s = "(null)";
for(; *s; s++)
consputc(*s);
break;
case '%':
consputc('%');
8010081e: e8 fd fc ff ff call 80100520 <consputc>
if (fmt == 0)
panic("null fmt");
argp = (uint*)(void*)(&fmt + 1);
for(i = 0; (c = fmt[i] & 0xff) != 0; i++){
80100823: 83 c3 01 add $0x1,%ebx
80100826: 0f b6 04 1f movzbl (%edi,%ebx,1),%eax
8010082a: 85 c0 test %eax,%eax
8010082c: 75 eb jne 80100819 <cprintf+0x89>
consputc(c);
break;
}
}
if(locking)
8010082e: 8b 45 e0 mov -0x20(%ebp),%eax
80100831: 85 c0 test %eax,%eax
80100833: 74 10 je 80100845 <cprintf+0xb5>
release(&cons.lock);
80100835: 83 ec 0c sub $0xc,%esp
80100838: 68 20 b5 10 80 push $0x8010b520
8010083d: e8 de 3d 00 00 call 80104620 <release>
80100842: 83 c4 10 add $0x10,%esp
}
80100845: 8d 65 f4 lea -0xc(%ebp),%esp
80100848: 5b pop %ebx
80100849: 5e pop %esi
8010084a: 5f pop %edi
8010084b: 5d pop %ebp
8010084c: c3 ret
8010084d: 8d 76 00 lea 0x0(%esi),%esi
continue;
}
c = fmt[++i] & 0xff;
if(c == 0)
break;
switch(c){
80100850: 83 fa 73 cmp $0x73,%edx
80100853: 74 5b je 801008b0 <cprintf+0x120>
80100855: 83 fa 78 cmp $0x78,%edx
80100858: 75 1e jne 80100878 <cprintf+0xe8>
case 'd':
printint(*argp++, 10, 1);
break;
case 'x':
case 'p':
printint(*argp++, 16, 0);
8010085a: 8d 46 04 lea 0x4(%esi),%eax
8010085d: 31 c9 xor %ecx,%ecx
8010085f: ba 10 00 00 00 mov $0x10,%edx
80100864: 89 45 e4 mov %eax,-0x1c(%ebp)
80100867: 8b 06 mov (%esi),%eax
80100869: e8 42 fe ff ff call 801006b0 <printint>
8010086e: 8b 75 e4 mov -0x1c(%ebp),%esi
break;
80100871: eb 9b jmp 8010080e <cprintf+0x7e>
80100873: 90 nop
80100874: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
case '%':
consputc('%');
break;
default:
// Print unknown % sequence to draw attention.
consputc('%');
80100878: b8 25 00 00 00 mov $0x25,%eax
8010087d: 89 55 e4 mov %edx,-0x1c(%ebp)
80100880: e8 9b fc ff ff call 80100520 <consputc>
consputc(c);
80100885: 8b 55 e4 mov -0x1c(%ebp),%edx
80100888: 89 d0 mov %edx,%eax
8010088a: e8 91 fc ff ff call 80100520 <consputc>
break;
8010088f: e9 7a ff ff ff jmp 8010080e <cprintf+0x7e>
80100894: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
s = "(null)";
for(; *s; s++)
consputc(*s);
break;
case '%':
consputc('%');
80100898: b8 25 00 00 00 mov $0x25,%eax
8010089d: e8 7e fc ff ff call 80100520 <consputc>
801008a2: e9 7c ff ff ff jmp 80100823 <cprintf+0x93>
801008a7: 89 f6 mov %esi,%esi
801008a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
case 'x':
case 'p':
printint(*argp++, 16, 0);
break;
case 's':
if((s = (char*)*argp++) == 0)
801008b0: 8d 46 04 lea 0x4(%esi),%eax
801008b3: 8b 36 mov (%esi),%esi
801008b5: 89 45 e4 mov %eax,-0x1c(%ebp)
s = "(null)";
801008b8: b8 13 76 10 80 mov $0x80107613,%eax
801008bd: 85 f6 test %esi,%esi
801008bf: 0f 44 f0 cmove %eax,%esi
for(; *s; s++)
801008c2: 0f be 06 movsbl (%esi),%eax
801008c5: 84 c0 test %al,%al
801008c7: 74 16 je 801008df <cprintf+0x14f>
801008c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801008d0: 83 c6 01 add $0x1,%esi
consputc(*s);
801008d3: e8 48 fc ff ff call 80100520 <consputc>
printint(*argp++, 16, 0);
break;
case 's':
if((s = (char*)*argp++) == 0)
s = "(null)";
for(; *s; s++)
801008d8: 0f be 06 movsbl (%esi),%eax
801008db: 84 c0 test %al,%al
801008dd: 75 f1 jne 801008d0 <cprintf+0x140>
case 'x':
case 'p':
printint(*argp++, 16, 0);
break;
case 's':
if((s = (char*)*argp++) == 0)
801008df: 8b 75 e4 mov -0x1c(%ebp),%esi
801008e2: e9 27 ff ff ff jmp 8010080e <cprintf+0x7e>
801008e7: 89 f6 mov %esi,%esi
801008e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
uint *argp;
char *s;
locking = cons.locking;
if(locking)
acquire(&cons.lock);
801008f0: 83 ec 0c sub $0xc,%esp
801008f3: 68 20 b5 10 80 push $0x8010b520
801008f8: e8 03 3c 00 00 call 80104500 <acquire>
801008fd: 83 c4 10 add $0x10,%esp
80100900: e9 a4 fe ff ff jmp 801007a9 <cprintf+0x19>
if (fmt == 0)
panic("null fmt");
80100905: 83 ec 0c sub $0xc,%esp
80100908: 68 1a 76 10 80 push $0x8010761a
8010090d: e8 8e fb ff ff call 801004a0 <panic>
80100912: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80100919: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80100920 <consoleintr>:
#define C(x) ((x)-'@') // Control-x
void
consoleintr(int (*getc)(void))
{
80100920: 55 push %ebp
80100921: 89 e5 mov %esp,%ebp
80100923: 57 push %edi
80100924: 56 push %esi
80100925: 53 push %ebx
int c, doprocdump = 0;
80100926: 31 f6 xor %esi,%esi
#define C(x) ((x)-'@') // Control-x
void
consoleintr(int (*getc)(void))
{
80100928: 83 ec 18 sub $0x18,%esp
8010092b: 8b 5d 08 mov 0x8(%ebp),%ebx
int c, doprocdump = 0;
acquire(&cons.lock);
8010092e: 68 20 b5 10 80 push $0x8010b520
80100933: e8 c8 3b 00 00 call 80104500 <acquire>
while((c = getc()) >= 0){
80100938: 83 c4 10 add $0x10,%esp
8010093b: 90 nop
8010093c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80100940: ff d3 call *%ebx
80100942: 85 c0 test %eax,%eax
80100944: 89 c7 mov %eax,%edi
80100946: 78 48 js 80100990 <consoleintr+0x70>
switch(c){
80100948: 83 ff 10 cmp $0x10,%edi
8010094b: 0f 84 3f 01 00 00 je 80100a90 <consoleintr+0x170>
80100951: 7e 5d jle 801009b0 <consoleintr+0x90>
80100953: 83 ff 15 cmp $0x15,%edi
80100956: 0f 84 dc 00 00 00 je 80100a38 <consoleintr+0x118>
8010095c: 83 ff 7f cmp $0x7f,%edi
8010095f: 75 54 jne 801009b5 <consoleintr+0x95>
input.e--;
consputc(BACKSPACE);
}
break;
case C('H'): case '\x7f': // Backspace
if(input.e != input.w){
80100961: a1 a8 0f 11 80 mov 0x80110fa8,%eax
80100966: 3b 05 a4 0f 11 80 cmp 0x80110fa4,%eax
8010096c: 74 d2 je 80100940 <consoleintr+0x20>
input.e--;
8010096e: 83 e8 01 sub $0x1,%eax
80100971: a3 a8 0f 11 80 mov %eax,0x80110fa8
consputc(BACKSPACE);
80100976: b8 00 01 00 00 mov $0x100,%eax
8010097b: e8 a0 fb ff ff call 80100520 <consputc>
consoleintr(int (*getc)(void))
{
int c, doprocdump = 0;
acquire(&cons.lock);
while((c = getc()) >= 0){
80100980: ff d3 call *%ebx
80100982: 85 c0 test %eax,%eax
80100984: 89 c7 mov %eax,%edi
80100986: 79 c0 jns 80100948 <consoleintr+0x28>
80100988: 90 nop
80100989: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
}
}
break;
}
}
release(&cons.lock);
80100990: 83 ec 0c sub $0xc,%esp
80100993: 68 20 b5 10 80 push $0x8010b520
80100998: e8 83 3c 00 00 call 80104620 <release>
if(doprocdump) {
8010099d: 83 c4 10 add $0x10,%esp
801009a0: 85 f6 test %esi,%esi
801009a2: 0f 85 f8 00 00 00 jne 80100aa0 <consoleintr+0x180>
procdump(); // now call procdump() wo. cons.lock held
}
}
801009a8: 8d 65 f4 lea -0xc(%ebp),%esp
801009ab: 5b pop %ebx
801009ac: 5e pop %esi
801009ad: 5f pop %edi
801009ae: 5d pop %ebp
801009af: c3 ret
{
int c, doprocdump = 0;
acquire(&cons.lock);
while((c = getc()) >= 0){
switch(c){
801009b0: 83 ff 08 cmp $0x8,%edi
801009b3: 74 ac je 80100961 <consoleintr+0x41>
input.e--;
consputc(BACKSPACE);
}
break;
default:
if(c != 0 && input.e-input.r < INPUT_BUF){
801009b5: 85 ff test %edi,%edi
801009b7: 74 87 je 80100940 <consoleintr+0x20>
801009b9: a1 a8 0f 11 80 mov 0x80110fa8,%eax
801009be: 89 c2 mov %eax,%edx
801009c0: 2b 15 a0 0f 11 80 sub 0x80110fa0,%edx
801009c6: 83 fa 7f cmp $0x7f,%edx
801009c9: 0f 87 71 ff ff ff ja 80100940 <consoleintr+0x20>
c = (c == '\r') ? '\n' : c;
input.buf[input.e++ % INPUT_BUF] = c;
801009cf: 8d 50 01 lea 0x1(%eax),%edx
801009d2: 83 e0 7f and $0x7f,%eax
consputc(BACKSPACE);
}
break;
default:
if(c != 0 && input.e-input.r < INPUT_BUF){
c = (c == '\r') ? '\n' : c;
801009d5: 83 ff 0d cmp $0xd,%edi
input.buf[input.e++ % INPUT_BUF] = c;
801009d8: 89 15 a8 0f 11 80 mov %edx,0x80110fa8
consputc(BACKSPACE);
}
break;
default:
if(c != 0 && input.e-input.r < INPUT_BUF){
c = (c == '\r') ? '\n' : c;
801009de: 0f 84 c8 00 00 00 je 80100aac <consoleintr+0x18c>
input.buf[input.e++ % INPUT_BUF] = c;
801009e4: 89 f9 mov %edi,%ecx
801009e6: 88 88 20 0f 11 80 mov %cl,-0x7feef0e0(%eax)
consputc(c);
801009ec: 89 f8 mov %edi,%eax
801009ee: e8 2d fb ff ff call 80100520 <consputc>
if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){
801009f3: 83 ff 0a cmp $0xa,%edi
801009f6: 0f 84 c1 00 00 00 je 80100abd <consoleintr+0x19d>
801009fc: 83 ff 04 cmp $0x4,%edi
801009ff: 0f 84 b8 00 00 00 je 80100abd <consoleintr+0x19d>
80100a05: a1 a0 0f 11 80 mov 0x80110fa0,%eax
80100a0a: 83 e8 80 sub $0xffffff80,%eax
80100a0d: 39 05 a8 0f 11 80 cmp %eax,0x80110fa8
80100a13: 0f 85 27 ff ff ff jne 80100940 <consoleintr+0x20>
input.w = input.e;
wakeup(&input.r);
80100a19: 83 ec 0c sub $0xc,%esp
if(c != 0 && input.e-input.r < INPUT_BUF){
c = (c == '\r') ? '\n' : c;
input.buf[input.e++ % INPUT_BUF] = c;
consputc(c);
if(c == '\n' || c == C('D') || input.e == input.r+INPUT_BUF){
input.w = input.e;
80100a1c: a3 a4 0f 11 80 mov %eax,0x80110fa4
wakeup(&input.r);
80100a21: 68 a0 0f 11 80 push $0x80110fa0
80100a26: e8 15 37 00 00 call 80104140 <wakeup>
80100a2b: 83 c4 10 add $0x10,%esp
80100a2e: e9 0d ff ff ff jmp 80100940 <consoleintr+0x20>
80100a33: 90 nop
80100a34: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
case C('P'): // Process listing.
// procdump() locks cons.lock indirectly; invoke later
doprocdump = 1;
break;
case C('U'): // Kill line.
while(input.e != input.w &&
80100a38: a1 a8 0f 11 80 mov 0x80110fa8,%eax
80100a3d: 39 05 a4 0f 11 80 cmp %eax,0x80110fa4
80100a43: 75 2b jne 80100a70 <consoleintr+0x150>
80100a45: e9 f6 fe ff ff jmp 80100940 <consoleintr+0x20>
80100a4a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
input.buf[(input.e-1) % INPUT_BUF] != '\n'){
input.e--;
80100a50: a3 a8 0f 11 80 mov %eax,0x80110fa8
consputc(BACKSPACE);
80100a55: b8 00 01 00 00 mov $0x100,%eax
80100a5a: e8 c1 fa ff ff call 80100520 <consputc>
case C('P'): // Process listing.
// procdump() locks cons.lock indirectly; invoke later
doprocdump = 1;
break;
case C('U'): // Kill line.
while(input.e != input.w &&
80100a5f: a1 a8 0f 11 80 mov 0x80110fa8,%eax
80100a64: 3b 05 a4 0f 11 80 cmp 0x80110fa4,%eax
80100a6a: 0f 84 d0 fe ff ff je 80100940 <consoleintr+0x20>
input.buf[(input.e-1) % INPUT_BUF] != '\n'){
80100a70: 83 e8 01 sub $0x1,%eax
80100a73: 89 c2 mov %eax,%edx
80100a75: 83 e2 7f and $0x7f,%edx
case C('P'): // Process listing.
// procdump() locks cons.lock indirectly; invoke later
doprocdump = 1;
break;
case C('U'): // Kill line.
while(input.e != input.w &&
80100a78: 80 ba 20 0f 11 80 0a cmpb $0xa,-0x7feef0e0(%edx)
80100a7f: 75 cf jne 80100a50 <consoleintr+0x130>
80100a81: e9 ba fe ff ff jmp 80100940 <consoleintr+0x20>
80100a86: 8d 76 00 lea 0x0(%esi),%esi
80100a89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
acquire(&cons.lock);
while((c = getc()) >= 0){
switch(c){
case C('P'): // Process listing.
// procdump() locks cons.lock indirectly; invoke later
doprocdump = 1;
80100a90: be 01 00 00 00 mov $0x1,%esi
80100a95: e9 a6 fe ff ff jmp 80100940 <consoleintr+0x20>
80100a9a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
}
release(&cons.lock);
if(doprocdump) {
procdump(); // now call procdump() wo. cons.lock held
}
}
80100aa0: 8d 65 f4 lea -0xc(%ebp),%esp
80100aa3: 5b pop %ebx
80100aa4: 5e pop %esi
80100aa5: 5f pop %edi
80100aa6: 5d pop %ebp
break;
}
}
release(&cons.lock);
if(doprocdump) {
procdump(); // now call procdump() wo. cons.lock held
80100aa7: e9 84 37 00 00 jmp 80104230 <procdump>
}
break;
default:
if(c != 0 && input.e-input.r < INPUT_BUF){
c = (c == '\r') ? '\n' : c;
input.buf[input.e++ % INPUT_BUF] = c;
80100aac: c6 80 20 0f 11 80 0a movb $0xa,-0x7feef0e0(%eax)
consputc(c);
80100ab3: b8 0a 00 00 00 mov $0xa,%eax
80100ab8: e8 63 fa ff ff call 80100520 <consputc>
80100abd: a1 a8 0f 11 80 mov 0x80110fa8,%eax
80100ac2: e9 52 ff ff ff jmp 80100a19 <consoleintr+0xf9>
80100ac7: 89 f6 mov %esi,%esi
80100ac9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80100ad0 <consoleinit>:
return n;
}
void
consoleinit(void)
{
80100ad0: 55 push %ebp
80100ad1: 89 e5 mov %esp,%ebp
80100ad3: 83 ec 10 sub $0x10,%esp
initlock(&cons.lock, "console");
80100ad6: 68 23 76 10 80 push $0x80107623
80100adb: 68 20 b5 10 80 push $0x8010b520
80100ae0: e8 1b 39 00 00 call 80104400 <initlock>
devsw[CONSOLE].write = consolewrite;
devsw[CONSOLE].read = consoleread;
cons.locking = 1;
ioapicenable(IRQ_KBD, 0);
80100ae5: 58 pop %eax
80100ae6: 5a pop %edx
80100ae7: 6a 00 push $0x0
80100ae9: 6a 01 push $0x1
void
consoleinit(void)
{
initlock(&cons.lock, "console");
devsw[CONSOLE].write = consolewrite;
80100aeb: c7 05 6c 19 11 80 30 movl $0x80100730,0x8011196c
80100af2: 07 10 80
devsw[CONSOLE].read = consoleread;
80100af5: c7 05 68 19 11 80 a0 movl $0x801003a0,0x80111968
80100afc: 03 10 80
cons.locking = 1;
80100aff: c7 05 54 b5 10 80 01 movl $0x1,0x8010b554
80100b06: 00 00 00
ioapicenable(IRQ_KBD, 0);
80100b09: e8 02 1a 00 00 call 80102510 <ioapicenable>
}
80100b0e: 83 c4 10 add $0x10,%esp
80100b11: c9 leave
80100b12: c3 ret
80100b13: 66 90 xchg %ax,%ax
80100b15: 66 90 xchg %ax,%ax
80100b17: 66 90 xchg %ax,%ax
80100b19: 66 90 xchg %ax,%ax
80100b1b: 66 90 xchg %ax,%ax
80100b1d: 66 90 xchg %ax,%ax
80100b1f: 90 nop
80100b20 <exec>:
#include "x86.h"
#include "elf.h"
int
exec(char *path, char **argv)
{
80100b20: 55 push %ebp
80100b21: 89 e5 mov %esp,%ebp
80100b23: 57 push %edi
80100b24: 56 push %esi
80100b25: 53 push %ebx
80100b26: 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();
80100b2c: e8 bf 2e 00 00 call 801039f0 <myproc>
80100b31: 89 85 f4 fe ff ff mov %eax,-0x10c(%ebp)
begin_op();
80100b37: e8 84 22 00 00 call 80102dc0 <begin_op>
if((ip = namei(path)) == 0){
80100b3c: 83 ec 0c sub $0xc,%esp
80100b3f: ff 75 08 pushl 0x8(%ebp)
80100b42: e8 e9 15 00 00 call 80102130 <namei>
80100b47: 83 c4 10 add $0x10,%esp
80100b4a: 85 c0 test %eax,%eax
80100b4c: 0f 84 9c 01 00 00 je 80100cee <exec+0x1ce>
end_op();
cprintf("exec: fail\n");
return -1;
}
ilock(ip);
80100b52: 83 ec 0c sub $0xc,%esp
80100b55: 89 c3 mov %eax,%ebx
80100b57: 50 push %eax
80100b58: e8 83 0d 00 00 call 801018e0 <ilock>
pgdir = 0;
// Check ELF header
if(readi(ip, (char*)&elf, 0, sizeof(elf)) != sizeof(elf))
80100b5d: 8d 85 24 ff ff ff lea -0xdc(%ebp),%eax
80100b63: 6a 34 push $0x34
80100b65: 6a 00 push $0x0
80100b67: 50 push %eax
80100b68: 53 push %ebx
80100b69: e8 52 10 00 00 call 80101bc0 <readi>
80100b6e: 83 c4 20 add $0x20,%esp
80100b71: 83 f8 34 cmp $0x34,%eax
80100b74: 74 22 je 80100b98 <exec+0x78>
bad:
if(pgdir)
freevm(pgdir);
if(ip){
iunlockput(ip);
80100b76: 83 ec 0c sub $0xc,%esp
80100b79: 53 push %ebx
80100b7a: e8 f1 0f 00 00 call 80101b70 <iunlockput>
end_op();
80100b7f: e8 ac 22 00 00 call 80102e30 <end_op>
80100b84: 83 c4 10 add $0x10,%esp
}
return -1;
80100b87: b8 ff ff ff ff mov $0xffffffff,%eax
}
80100b8c: 8d 65 f4 lea -0xc(%ebp),%esp
80100b8f: 5b pop %ebx
80100b90: 5e pop %esi
80100b91: 5f pop %edi
80100b92: 5d pop %ebp
80100b93: c3 ret
80100b94: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
pgdir = 0;
// Check ELF header
if(readi(ip, (char*)&elf, 0, sizeof(elf)) != sizeof(elf))
goto bad;
if(elf.magic != ELF_MAGIC)
80100b98: 81 bd 24 ff ff ff 7f cmpl $0x464c457f,-0xdc(%ebp)
80100b9f: 45 4c 46
80100ba2: 75 d2 jne 80100b76 <exec+0x56>
goto bad;
if((pgdir = setupkvm()) == 0)
80100ba4: e8 07 66 00 00 call 801071b0 <setupkvm>
80100ba9: 85 c0 test %eax,%eax
80100bab: 89 85 f0 fe ff ff mov %eax,-0x110(%ebp)
80100bb1: 74 c3 je 80100b76 <exec+0x56>
goto bad;
// Load program into memory.
sz = 0;
for(i=0, off=elf.phoff; i<elf.phnum; i++, off+=sizeof(ph)){
80100bb3: 66 83 bd 50 ff ff ff cmpw $0x0,-0xb0(%ebp)
80100bba: 00
80100bbb: 8b b5 40 ff ff ff mov -0xc0(%ebp),%esi
80100bc1: c7 85 ec fe ff ff 00 movl $0x0,-0x114(%ebp)
80100bc8: 00 00 00
80100bcb: 0f 84 c5 00 00 00 je 80100c96 <exec+0x176>
80100bd1: 31 ff xor %edi,%edi
80100bd3: eb 18 jmp 80100bed <exec+0xcd>
80100bd5: 8d 76 00 lea 0x0(%esi),%esi
80100bd8: 0f b7 85 50 ff ff ff movzwl -0xb0(%ebp),%eax
80100bdf: 83 c7 01 add $0x1,%edi
80100be2: 83 c6 20 add $0x20,%esi
80100be5: 39 f8 cmp %edi,%eax
80100be7: 0f 8e a9 00 00 00 jle 80100c96 <exec+0x176>
if(readi(ip, (char*)&ph, off, sizeof(ph)) != sizeof(ph))
80100bed: 8d 85 04 ff ff ff lea -0xfc(%ebp),%eax
80100bf3: 6a 20 push $0x20
80100bf5: 56 push %esi
80100bf6: 50 push %eax
80100bf7: 53 push %ebx
80100bf8: e8 c3 0f 00 00 call 80101bc0 <readi>
80100bfd: 83 c4 10 add $0x10,%esp
80100c00: 83 f8 20 cmp $0x20,%eax
80100c03: 75 7b jne 80100c80 <exec+0x160>
goto bad;
if(ph.type != ELF_PROG_LOAD)
80100c05: 83 bd 04 ff ff ff 01 cmpl $0x1,-0xfc(%ebp)
80100c0c: 75 ca jne 80100bd8 <exec+0xb8>
continue;
if(ph.memsz < ph.filesz)
80100c0e: 8b 85 18 ff ff ff mov -0xe8(%ebp),%eax
80100c14: 3b 85 14 ff ff ff cmp -0xec(%ebp),%eax
80100c1a: 72 64 jb 80100c80 <exec+0x160>
goto bad;
if(ph.vaddr + ph.memsz < ph.vaddr)
80100c1c: 03 85 0c ff ff ff add -0xf4(%ebp),%eax
80100c22: 72 5c jb 80100c80 <exec+0x160>
goto bad;
if((sz = allocuvm(pgdir, sz, ph.vaddr + ph.memsz)) == 0)
80100c24: 83 ec 04 sub $0x4,%esp
80100c27: 50 push %eax
80100c28: ff b5 ec fe ff ff pushl -0x114(%ebp)
80100c2e: ff b5 f0 fe ff ff pushl -0x110(%ebp)
80100c34: e8 c7 63 00 00 call 80107000 <allocuvm>
80100c39: 83 c4 10 add $0x10,%esp
80100c3c: 85 c0 test %eax,%eax
80100c3e: 89 85 ec fe ff ff mov %eax,-0x114(%ebp)
80100c44: 74 3a je 80100c80 <exec+0x160>
goto bad;
if(ph.vaddr % PGSIZE != 0)
80100c46: 8b 85 0c ff ff ff mov -0xf4(%ebp),%eax
80100c4c: a9 ff 0f 00 00 test $0xfff,%eax
80100c51: 75 2d jne 80100c80 <exec+0x160>
goto bad;
if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0)
80100c53: 83 ec 0c sub $0xc,%esp
80100c56: ff b5 14 ff ff ff pushl -0xec(%ebp)
80100c5c: ff b5 08 ff ff ff pushl -0xf8(%ebp)
80100c62: 53 push %ebx
80100c63: 50 push %eax
80100c64: ff b5 f0 fe ff ff pushl -0x110(%ebp)
80100c6a: e8 d1 62 00 00 call 80106f40 <loaduvm>
80100c6f: 83 c4 20 add $0x20,%esp
80100c72: 85 c0 test %eax,%eax
80100c74: 0f 89 5e ff ff ff jns 80100bd8 <exec+0xb8>
80100c7a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
freevm(oldpgdir);
return 0;
bad:
if(pgdir)
freevm(pgdir);
80100c80: 83 ec 0c sub $0xc,%esp
80100c83: ff b5 f0 fe ff ff pushl -0x110(%ebp)
80100c89: e8 a2 64 00 00 call 80107130 <freevm>
80100c8e: 83 c4 10 add $0x10,%esp
80100c91: e9 e0 fe ff ff jmp 80100b76 <exec+0x56>
if(ph.vaddr % PGSIZE != 0)
goto bad;
if(loaduvm(pgdir, (char*)ph.vaddr, ip, ph.off, ph.filesz) < 0)
goto bad;
}
iunlockput(ip);
80100c96: 83 ec 0c sub $0xc,%esp
80100c99: 53 push %ebx
80100c9a: e8 d1 0e 00 00 call 80101b70 <iunlockput>
end_op();
80100c9f: e8 8c 21 00 00 call 80102e30 <end_op>
ip = 0;
// Allocate two pages at the next page boundary.
// Make the first inaccessible. Use the second as the user stack.
sz = PGROUNDUP(sz);
80100ca4: 8b 85 ec fe ff ff mov -0x114(%ebp),%eax
if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0)
80100caa: 83 c4 0c add $0xc,%esp
end_op();
ip = 0;
// Allocate two pages at the next page boundary.
// Make the first inaccessible. Use the second as the user stack.
sz = PGROUNDUP(sz);
80100cad: 05 ff 0f 00 00 add $0xfff,%eax
80100cb2: 25 00 f0 ff ff and $0xfffff000,%eax
if((sz = allocuvm(pgdir, sz, sz + 2*PGSIZE)) == 0)
80100cb7: 8d 90 00 20 00 00 lea 0x2000(%eax),%edx
80100cbd: 52 push %edx
80100cbe: 50 push %eax
80100cbf: ff b5 f0 fe ff ff pushl -0x110(%ebp)
80100cc5: e8 36 63 00 00 call 80107000 <allocuvm>
80100cca: 83 c4 10 add $0x10,%esp
80100ccd: 85 c0 test %eax,%eax
80100ccf: 89 c6 mov %eax,%esi
80100cd1: 75 3a jne 80100d0d <exec+0x1ed>
freevm(oldpgdir);
return 0;
bad:
if(pgdir)
freevm(pgdir);
80100cd3: 83 ec 0c sub $0xc,%esp
80100cd6: ff b5 f0 fe ff ff pushl -0x110(%ebp)
80100cdc: e8 4f 64 00 00 call 80107130 <freevm>
80100ce1: 83 c4 10 add $0x10,%esp
if(ip){
iunlockput(ip);
end_op();
}
return -1;
80100ce4: b8 ff ff ff ff mov $0xffffffff,%eax
80100ce9: e9 9e fe ff ff jmp 80100b8c <exec+0x6c>
struct proc *curproc = myproc();
begin_op();
if((ip = namei(path)) == 0){
end_op();
80100cee: e8 3d 21 00 00 call 80102e30 <end_op>
cprintf("exec: fail\n");
80100cf3: 83 ec 0c sub $0xc,%esp
80100cf6: 68 3d 76 10 80 push $0x8010763d
80100cfb: e8 90 fa ff ff call 80100790 <cprintf>
return -1;
80100d00: 83 c4 10 add $0x10,%esp
80100d03: b8 ff ff ff ff mov $0xffffffff,%eax
80100d08: e9 7f fe ff ff jmp 80100b8c <exec+0x6c>
// 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;
clearpteu(pgdir, (char*)(sz - 2*PGSIZE));
80100d0d: 8d 80 00 e0 ff ff lea -0x2000(%eax),%eax
80100d13: 83 ec 08 sub $0x8,%esp
sp = sz;
// Push argument strings, prepare rest of stack in ustack.
for(argc = 0; argv[argc]; argc++) {
80100d16: 31 ff xor %edi,%edi
80100d18: 89 f3 mov %esi,%ebx
// 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;
clearpteu(pgdir, (char*)(sz - 2*PGSIZE));
80100d1a: 50 push %eax
80100d1b: ff b5 f0 fe ff ff pushl -0x110(%ebp)
80100d21: e8 2a 66 00 00 call 80107350 <clearpteu>
sp = sz;
// Push argument strings, prepare rest of stack in ustack.
for(argc = 0; argv[argc]; argc++) {
80100d26: 8b 45 0c mov 0xc(%ebp),%eax
80100d29: 83 c4 10 add $0x10,%esp
80100d2c: 8d 95 58 ff ff ff lea -0xa8(%ebp),%edx
80100d32: 8b 00 mov (%eax),%eax
80100d34: 85 c0 test %eax,%eax
80100d36: 74 79 je 80100db1 <exec+0x291>
80100d38: 89 b5 ec fe ff ff mov %esi,-0x114(%ebp)
80100d3e: 8b b5 f0 fe ff ff mov -0x110(%ebp),%esi
80100d44: eb 13 jmp 80100d59 <exec+0x239>
80100d46: 8d 76 00 lea 0x0(%esi),%esi
80100d49: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
if(argc >= MAXARG)
80100d50: 83 ff 20 cmp $0x20,%edi
80100d53: 0f 84 7a ff ff ff je 80100cd3 <exec+0x1b3>
goto bad;
sp = (sp - (strlen(argv[argc]) + 1)) & ~3;
80100d59: 83 ec 0c sub $0xc,%esp
80100d5c: 50 push %eax
80100d5d: e8 4e 3b 00 00 call 801048b0 <strlen>
80100d62: f7 d0 not %eax
80100d64: 01 c3 add %eax,%ebx
if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0)
80100d66: 8b 45 0c mov 0xc(%ebp),%eax
80100d69: 5a pop %edx
// Push argument strings, prepare rest of stack in ustack.
for(argc = 0; argv[argc]; argc++) {
if(argc >= MAXARG)
goto bad;
sp = (sp - (strlen(argv[argc]) + 1)) & ~3;
80100d6a: 83 e3 fc and $0xfffffffc,%ebx
if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0)
80100d6d: ff 34 b8 pushl (%eax,%edi,4)
80100d70: e8 3b 3b 00 00 call 801048b0 <strlen>
80100d75: 83 c0 01 add $0x1,%eax
80100d78: 50 push %eax
80100d79: 8b 45 0c mov 0xc(%ebp),%eax
80100d7c: ff 34 b8 pushl (%eax,%edi,4)
80100d7f: 53 push %ebx
80100d80: 56 push %esi
80100d81: e8 4a 67 00 00 call 801074d0 <copyout>
80100d86: 83 c4 20 add $0x20,%esp
80100d89: 85 c0 test %eax,%eax
80100d8b: 0f 88 42 ff ff ff js 80100cd3 <exec+0x1b3>
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++) {
80100d91: 8b 45 0c mov 0xc(%ebp),%eax
if(argc >= MAXARG)
goto bad;
sp = (sp - (strlen(argv[argc]) + 1)) & ~3;
if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0)
goto bad;
ustack[3+argc] = sp;
80100d94: 89 9c bd 64 ff ff ff mov %ebx,-0x9c(%ebp,%edi,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++) {
80100d9b: 83 c7 01 add $0x1,%edi
if(argc >= MAXARG)
goto bad;
sp = (sp - (strlen(argv[argc]) + 1)) & ~3;
if(copyout(pgdir, sp, argv[argc], strlen(argv[argc]) + 1) < 0)
goto bad;
ustack[3+argc] = sp;
80100d9e: 8d 95 58 ff ff ff lea -0xa8(%ebp),%edx
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++) {
80100da4: 8b 04 b8 mov (%eax,%edi,4),%eax
80100da7: 85 c0 test %eax,%eax
80100da9: 75 a5 jne 80100d50 <exec+0x230>
80100dab: 8b b5 ec fe ff ff mov -0x114(%ebp),%esi
}
ustack[3+argc] = 0;
ustack[0] = 0xffffffff; // fake return PC
ustack[1] = argc;
ustack[2] = sp - (argc+1)*4; // argv pointer
80100db1: 8d 04 bd 04 00 00 00 lea 0x4(,%edi,4),%eax
80100db8: 89 d9 mov %ebx,%ecx
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;
80100dba: c7 84 bd 64 ff ff ff movl $0x0,-0x9c(%ebp,%edi,4)
80100dc1: 00 00 00 00
ustack[0] = 0xffffffff; // fake return PC
80100dc5: c7 85 58 ff ff ff ff movl $0xffffffff,-0xa8(%ebp)
80100dcc: ff ff ff
ustack[1] = argc;
80100dcf: 89 bd 5c ff ff ff mov %edi,-0xa4(%ebp)
ustack[2] = sp - (argc+1)*4; // argv pointer
80100dd5: 29 c1 sub %eax,%ecx
sp -= (3+argc+1) * 4;
80100dd7: 83 c0 0c add $0xc,%eax
80100dda: 29 c3 sub %eax,%ebx
if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0)
80100ddc: 50 push %eax
80100ddd: 52 push %edx
80100dde: 53 push %ebx
80100ddf: ff b5 f0 fe ff ff pushl -0x110(%ebp)
}
ustack[3+argc] = 0;
ustack[0] = 0xffffffff; // fake return PC
ustack[1] = argc;
ustack[2] = sp - (argc+1)*4; // argv pointer
80100de5: 89 8d 60 ff ff ff mov %ecx,-0xa0(%ebp)
sp -= (3+argc+1) * 4;
if(copyout(pgdir, sp, ustack, (3+argc+1)*4) < 0)
80100deb: e8 e0 66 00 00 call 801074d0 <copyout>
80100df0: 83 c4 10 add $0x10,%esp
80100df3: 85 c0 test %eax,%eax
80100df5: 0f 88 d8 fe ff ff js 80100cd3 <exec+0x1b3>
goto bad;
// Save program name for debugging.
for(last=s=path; *s; s++)
80100dfb: 8b 45 08 mov 0x8(%ebp),%eax
80100dfe: 0f b6 10 movzbl (%eax),%edx
80100e01: 84 d2 test %dl,%dl
80100e03: 74 19 je 80100e1e <exec+0x2fe>
80100e05: 8b 4d 08 mov 0x8(%ebp),%ecx
80100e08: 83 c0 01 add $0x1,%eax
if(*s == '/')
last = s+1;
80100e0b: 80 fa 2f cmp $0x2f,%dl
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++)
80100e0e: 0f b6 10 movzbl (%eax),%edx
if(*s == '/')
last = s+1;
80100e11: 0f 44 c8 cmove %eax,%ecx
80100e14: 83 c0 01 add $0x1,%eax
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++)
80100e17: 84 d2 test %dl,%dl
80100e19: 75 f0 jne 80100e0b <exec+0x2eb>
80100e1b: 89 4d 08 mov %ecx,0x8(%ebp)
if(*s == '/')
last = s+1;
safestrcpy(curproc->name, last, sizeof(curproc->name));
80100e1e: 8b bd f4 fe ff ff mov -0x10c(%ebp),%edi
80100e24: 50 push %eax
80100e25: 6a 10 push $0x10
80100e27: ff 75 08 pushl 0x8(%ebp)
80100e2a: 89 f8 mov %edi,%eax
80100e2c: 83 c0 6c add $0x6c,%eax
80100e2f: 50 push %eax
80100e30: e8 3b 3a 00 00 call 80104870 <safestrcpy>
// Commit to the user image.
oldpgdir = curproc->pgdir;
curproc->pgdir = pgdir;
80100e35: 8b 8d f0 fe ff ff mov -0x110(%ebp),%ecx
if(*s == '/')
last = s+1;
safestrcpy(curproc->name, last, sizeof(curproc->name));
// Commit to the user image.
oldpgdir = curproc->pgdir;
80100e3b: 89 f8 mov %edi,%eax
80100e3d: 8b 7f 04 mov 0x4(%edi),%edi
curproc->pgdir = pgdir;
curproc->sz = sz;
80100e40: 89 30 mov %esi,(%eax)
last = s+1;
safestrcpy(curproc->name, last, sizeof(curproc->name));
// Commit to the user image.
oldpgdir = curproc->pgdir;
curproc->pgdir = pgdir;
80100e42: 89 48 04 mov %ecx,0x4(%eax)
curproc->sz = sz;
curproc->tf->eip = elf.entry; // main
80100e45: 89 c1 mov %eax,%ecx
80100e47: 8b 95 3c ff ff ff mov -0xc4(%ebp),%edx
80100e4d: 8b 40 18 mov 0x18(%eax),%eax
80100e50: 89 50 38 mov %edx,0x38(%eax)
curproc->tf->esp = sp;
80100e53: 8b 41 18 mov 0x18(%ecx),%eax
80100e56: 89 58 44 mov %ebx,0x44(%eax)
switchuvm(curproc);
80100e59: 89 0c 24 mov %ecx,(%esp)
80100e5c: e8 4f 5f 00 00 call 80106db0 <switchuvm>
freevm(oldpgdir);
80100e61: 89 3c 24 mov %edi,(%esp)
80100e64: e8 c7 62 00 00 call 80107130 <freevm>
return 0;
80100e69: 83 c4 10 add $0x10,%esp
80100e6c: 31 c0 xor %eax,%eax
80100e6e: e9 19 fd ff ff jmp 80100b8c <exec+0x6c>
80100e73: 66 90 xchg %ax,%ax
80100e75: 66 90 xchg %ax,%ax
80100e77: 66 90 xchg %ax,%ax
80100e79: 66 90 xchg %ax,%ax
80100e7b: 66 90 xchg %ax,%ax
80100e7d: 66 90 xchg %ax,%ax
80100e7f: 90 nop
80100e80 <fileinit>:
struct file file[NFILE];
} ftable;
void
fileinit(void)
{
80100e80: 55 push %ebp
80100e81: 89 e5 mov %esp,%ebp
80100e83: 83 ec 10 sub $0x10,%esp
initlock(&ftable.lock, "ftable");
80100e86: 68 49 76 10 80 push $0x80107649
80100e8b: 68 c0 0f 11 80 push $0x80110fc0
80100e90: e8 6b 35 00 00 call 80104400 <initlock>
}
80100e95: 83 c4 10 add $0x10,%esp
80100e98: c9 leave
80100e99: c3 ret
80100e9a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80100ea0 <filealloc>:
// Allocate a file structure.
struct file*
filealloc(void)
{
80100ea0: 55 push %ebp
80100ea1: 89 e5 mov %esp,%ebp
80100ea3: 53 push %ebx
struct file *f;
acquire(&ftable.lock);
for(f = ftable.file; f < ftable.file + NFILE; f++){
80100ea4: bb f4 0f 11 80 mov $0x80110ff4,%ebx
}
// Allocate a file structure.
struct file*
filealloc(void)
{
80100ea9: 83 ec 10 sub $0x10,%esp
struct file *f;
acquire(&ftable.lock);
80100eac: 68 c0 0f 11 80 push $0x80110fc0
80100eb1: e8 4a 36 00 00 call 80104500 <acquire>
80100eb6: 83 c4 10 add $0x10,%esp
80100eb9: eb 10 jmp 80100ecb <filealloc+0x2b>
80100ebb: 90 nop
80100ebc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for(f = ftable.file; f < ftable.file + NFILE; f++){
80100ec0: 83 c3 18 add $0x18,%ebx
80100ec3: 81 fb 54 19 11 80 cmp $0x80111954,%ebx
80100ec9: 74 25 je 80100ef0 <filealloc+0x50>
if(f->ref == 0){
80100ecb: 8b 43 04 mov 0x4(%ebx),%eax
80100ece: 85 c0 test %eax,%eax
80100ed0: 75 ee jne 80100ec0 <filealloc+0x20>
f->ref = 1;
release(&ftable.lock);
80100ed2: 83 ec 0c sub $0xc,%esp
struct file *f;
acquire(&ftable.lock);
for(f = ftable.file; f < ftable.file + NFILE; f++){
if(f->ref == 0){
f->ref = 1;
80100ed5: c7 43 04 01 00 00 00 movl $0x1,0x4(%ebx)
release(&ftable.lock);
80100edc: 68 c0 0f 11 80 push $0x80110fc0
80100ee1: e8 3a 37 00 00 call 80104620 <release>
return f;
80100ee6: 89 d8 mov %ebx,%eax
80100ee8: 83 c4 10 add $0x10,%esp
}
}
release(&ftable.lock);
return 0;
}
80100eeb: 8b 5d fc mov -0x4(%ebp),%ebx
80100eee: c9 leave
80100eef: c3 ret
f->ref = 1;
release(&ftable.lock);
return f;
}
}
release(&ftable.lock);
80100ef0: 83 ec 0c sub $0xc,%esp
80100ef3: 68 c0 0f 11 80 push $0x80110fc0
80100ef8: e8 23 37 00 00 call 80104620 <release>
return 0;
80100efd: 83 c4 10 add $0x10,%esp
80100f00: 31 c0 xor %eax,%eax
}
80100f02: 8b 5d fc mov -0x4(%ebp),%ebx
80100f05: c9 leave
80100f06: c3 ret
80100f07: 89 f6 mov %esi,%esi
80100f09: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80100f10 <filedup>:
// Increment ref count for file f.
struct file*
filedup(struct file *f)
{
80100f10: 55 push %ebp
80100f11: 89 e5 mov %esp,%ebp
80100f13: 53 push %ebx
80100f14: 83 ec 10 sub $0x10,%esp
80100f17: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&ftable.lock);
80100f1a: 68 c0 0f 11 80 push $0x80110fc0
80100f1f: e8 dc 35 00 00 call 80104500 <acquire>
if(f->ref < 1)
80100f24: 8b 43 04 mov 0x4(%ebx),%eax
80100f27: 83 c4 10 add $0x10,%esp
80100f2a: 85 c0 test %eax,%eax
80100f2c: 7e 1a jle 80100f48 <filedup+0x38>
panic("filedup");
f->ref++;
80100f2e: 83 c0 01 add $0x1,%eax
release(&ftable.lock);
80100f31: 83 ec 0c sub $0xc,%esp
filedup(struct file *f)
{
acquire(&ftable.lock);
if(f->ref < 1)
panic("filedup");
f->ref++;
80100f34: 89 43 04 mov %eax,0x4(%ebx)
release(&ftable.lock);
80100f37: 68 c0 0f 11 80 push $0x80110fc0
80100f3c: e8 df 36 00 00 call 80104620 <release>
return f;
}
80100f41: 89 d8 mov %ebx,%eax
80100f43: 8b 5d fc mov -0x4(%ebp),%ebx
80100f46: c9 leave
80100f47: c3 ret
struct file*
filedup(struct file *f)
{
acquire(&ftable.lock);
if(f->ref < 1)
panic("filedup");
80100f48: 83 ec 0c sub $0xc,%esp
80100f4b: 68 50 76 10 80 push $0x80107650
80100f50: e8 4b f5 ff ff call 801004a0 <panic>
80100f55: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80100f59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80100f60 <fileclose>:
}
// Close file f. (Decrement ref count, close when reaches 0.)
void
fileclose(struct file *f)
{
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 28 sub $0x28,%esp
80100f69: 8b 7d 08 mov 0x8(%ebp),%edi
struct file ff;
acquire(&ftable.lock);
80100f6c: 68 c0 0f 11 80 push $0x80110fc0
80100f71: e8 8a 35 00 00 call 80104500 <acquire>
if(f->ref < 1)
80100f76: 8b 47 04 mov 0x4(%edi),%eax
80100f79: 83 c4 10 add $0x10,%esp
80100f7c: 85 c0 test %eax,%eax
80100f7e: 0f 8e 9b 00 00 00 jle 8010101f <fileclose+0xbf>
panic("fileclose");
if(--f->ref > 0){
80100f84: 83 e8 01 sub $0x1,%eax
80100f87: 85 c0 test %eax,%eax
80100f89: 89 47 04 mov %eax,0x4(%edi)
80100f8c: 74 1a je 80100fa8 <fileclose+0x48>
release(&ftable.lock);
80100f8e: c7 45 08 c0 0f 11 80 movl $0x80110fc0,0x8(%ebp)
else if(ff.type == FD_INODE){
begin_op();
iput(ff.ip);
end_op();
}
}
80100f95: 8d 65 f4 lea -0xc(%ebp),%esp
80100f98: 5b pop %ebx
80100f99: 5e pop %esi
80100f9a: 5f pop %edi
80100f9b: 5d pop %ebp
acquire(&ftable.lock);
if(f->ref < 1)
panic("fileclose");
if(--f->ref > 0){
release(&ftable.lock);
80100f9c: e9 7f 36 00 00 jmp 80104620 <release>
80100fa1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
return;
}
ff = *f;
80100fa8: 0f b6 47 09 movzbl 0x9(%edi),%eax
80100fac: 8b 1f mov (%edi),%ebx
f->ref = 0;
f->type = FD_NONE;
release(&ftable.lock);
80100fae: 83 ec 0c sub $0xc,%esp
panic("fileclose");
if(--f->ref > 0){
release(&ftable.lock);
return;
}
ff = *f;
80100fb1: 8b 77 0c mov 0xc(%edi),%esi
f->ref = 0;
f->type = FD_NONE;
80100fb4: c7 07 00 00 00 00 movl $0x0,(%edi)
panic("fileclose");
if(--f->ref > 0){
release(&ftable.lock);
return;
}
ff = *f;
80100fba: 88 45 e7 mov %al,-0x19(%ebp)
80100fbd: 8b 47 10 mov 0x10(%edi),%eax
f->ref = 0;
f->type = FD_NONE;
release(&ftable.lock);
80100fc0: 68 c0 0f 11 80 push $0x80110fc0
panic("fileclose");
if(--f->ref > 0){
release(&ftable.lock);
return;
}
ff = *f;
80100fc5: 89 45 e0 mov %eax,-0x20(%ebp)
f->ref = 0;
f->type = FD_NONE;
release(&ftable.lock);
80100fc8: e8 53 36 00 00 call 80104620 <release>
if(ff.type == FD_PIPE)
80100fcd: 83 c4 10 add $0x10,%esp
80100fd0: 83 fb 01 cmp $0x1,%ebx
80100fd3: 74 13 je 80100fe8 <fileclose+0x88>
pipeclose(ff.pipe, ff.writable);
else if(ff.type == FD_INODE){
80100fd5: 83 fb 02 cmp $0x2,%ebx
80100fd8: 74 26 je 80101000 <fileclose+0xa0>
begin_op();
iput(ff.ip);
end_op();
}
}
80100fda: 8d 65 f4 lea -0xc(%ebp),%esp
80100fdd: 5b pop %ebx
80100fde: 5e pop %esi
80100fdf: 5f pop %edi
80100fe0: 5d pop %ebp
80100fe1: c3 ret
80100fe2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
f->ref = 0;
f->type = FD_NONE;
release(&ftable.lock);
if(ff.type == FD_PIPE)
pipeclose(ff.pipe, ff.writable);
80100fe8: 0f be 5d e7 movsbl -0x19(%ebp),%ebx
80100fec: 83 ec 08 sub $0x8,%esp
80100fef: 53 push %ebx
80100ff0: 56 push %esi
80100ff1: e8 6a 25 00 00 call 80103560 <pipeclose>
80100ff6: 83 c4 10 add $0x10,%esp
80100ff9: eb df jmp 80100fda <fileclose+0x7a>
80100ffb: 90 nop
80100ffc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
else if(ff.type == FD_INODE){
begin_op();
80101000: e8 bb 1d 00 00 call 80102dc0 <begin_op>
iput(ff.ip);
80101005: 83 ec 0c sub $0xc,%esp
80101008: ff 75 e0 pushl -0x20(%ebp)
8010100b: e8 00 0a 00 00 call 80101a10 <iput>
end_op();
80101010: 83 c4 10 add $0x10,%esp
}
}
80101013: 8d 65 f4 lea -0xc(%ebp),%esp
80101016: 5b pop %ebx
80101017: 5e pop %esi
80101018: 5f pop %edi
80101019: 5d pop %ebp
if(ff.type == FD_PIPE)
pipeclose(ff.pipe, ff.writable);
else if(ff.type == FD_INODE){
begin_op();
iput(ff.ip);
end_op();
8010101a: e9 11 1e 00 00 jmp 80102e30 <end_op>
{
struct file ff;
acquire(&ftable.lock);
if(f->ref < 1)
panic("fileclose");
8010101f: 83 ec 0c sub $0xc,%esp
80101022: 68 58 76 10 80 push $0x80107658
80101027: e8 74 f4 ff ff call 801004a0 <panic>
8010102c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101030 <filestat>:
}
// Get metadata about file f.
int
filestat(struct file *f, struct stat *st)
{
80101030: 55 push %ebp
80101031: 89 e5 mov %esp,%ebp
80101033: 53 push %ebx
80101034: 83 ec 04 sub $0x4,%esp
80101037: 8b 5d 08 mov 0x8(%ebp),%ebx
if(f->type == FD_INODE){
8010103a: 83 3b 02 cmpl $0x2,(%ebx)
8010103d: 75 31 jne 80101070 <filestat+0x40>
ilock(f->ip);
8010103f: 83 ec 0c sub $0xc,%esp
80101042: ff 73 10 pushl 0x10(%ebx)
80101045: e8 96 08 00 00 call 801018e0 <ilock>
stati(f->ip, st);
8010104a: 58 pop %eax
8010104b: 5a pop %edx
8010104c: ff 75 0c pushl 0xc(%ebp)
8010104f: ff 73 10 pushl 0x10(%ebx)
80101052: e8 39 0b 00 00 call 80101b90 <stati>
iunlock(f->ip);
80101057: 59 pop %ecx
80101058: ff 73 10 pushl 0x10(%ebx)
8010105b: e8 60 09 00 00 call 801019c0 <iunlock>
return 0;
80101060: 83 c4 10 add $0x10,%esp
80101063: 31 c0 xor %eax,%eax
}
return -1;
}
80101065: 8b 5d fc mov -0x4(%ebp),%ebx
80101068: c9 leave
80101069: c3 ret
8010106a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
ilock(f->ip);
stati(f->ip, st);
iunlock(f->ip);
return 0;
}
return -1;
80101070: b8 ff ff ff ff mov $0xffffffff,%eax
}
80101075: 8b 5d fc mov -0x4(%ebp),%ebx
80101078: c9 leave
80101079: c3 ret
8010107a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80101080 <fileread>:
// Read from file f.
int
fileread(struct file *f, char *addr, int n)
{
80101080: 55 push %ebp
80101081: 89 e5 mov %esp,%ebp
80101083: 57 push %edi
80101084: 56 push %esi
80101085: 53 push %ebx
80101086: 83 ec 0c sub $0xc,%esp
80101089: 8b 5d 08 mov 0x8(%ebp),%ebx
8010108c: 8b 75 0c mov 0xc(%ebp),%esi
8010108f: 8b 7d 10 mov 0x10(%ebp),%edi
int r;
if(f->readable == 0)
80101092: 80 7b 08 00 cmpb $0x0,0x8(%ebx)
80101096: 74 60 je 801010f8 <fileread+0x78>
return -1;
if(f->type == FD_PIPE)
80101098: 8b 03 mov (%ebx),%eax
8010109a: 83 f8 01 cmp $0x1,%eax
8010109d: 74 41 je 801010e0 <fileread+0x60>
return piperead(f->pipe, addr, n);
if(f->type == FD_INODE){
8010109f: 83 f8 02 cmp $0x2,%eax
801010a2: 75 5b jne 801010ff <fileread+0x7f>
ilock(f->ip);
801010a4: 83 ec 0c sub $0xc,%esp
801010a7: ff 73 10 pushl 0x10(%ebx)
801010aa: e8 31 08 00 00 call 801018e0 <ilock>
if((r = readi(f->ip, addr, f->off, n)) > 0)
801010af: 57 push %edi
801010b0: ff 73 14 pushl 0x14(%ebx)
801010b3: 56 push %esi
801010b4: ff 73 10 pushl 0x10(%ebx)
801010b7: e8 04 0b 00 00 call 80101bc0 <readi>
801010bc: 83 c4 20 add $0x20,%esp
801010bf: 85 c0 test %eax,%eax
801010c1: 89 c6 mov %eax,%esi
801010c3: 7e 03 jle 801010c8 <fileread+0x48>
f->off += r;
801010c5: 01 43 14 add %eax,0x14(%ebx)
iunlock(f->ip);
801010c8: 83 ec 0c sub $0xc,%esp
801010cb: ff 73 10 pushl 0x10(%ebx)
801010ce: e8 ed 08 00 00 call 801019c0 <iunlock>
return r;
801010d3: 83 c4 10 add $0x10,%esp
return -1;
if(f->type == FD_PIPE)
return piperead(f->pipe, addr, n);
if(f->type == FD_INODE){
ilock(f->ip);
if((r = readi(f->ip, addr, f->off, n)) > 0)
801010d6: 89 f0 mov %esi,%eax
f->off += r;
iunlock(f->ip);
return r;
}
panic("fileread");
}
801010d8: 8d 65 f4 lea -0xc(%ebp),%esp
801010db: 5b pop %ebx
801010dc: 5e pop %esi
801010dd: 5f pop %edi
801010de: 5d pop %ebp
801010df: c3 ret
int r;
if(f->readable == 0)
return -1;
if(f->type == FD_PIPE)
return piperead(f->pipe, addr, n);
801010e0: 8b 43 0c mov 0xc(%ebx),%eax
801010e3: 89 45 08 mov %eax,0x8(%ebp)
f->off += r;
iunlock(f->ip);
return r;
}
panic("fileread");
}
801010e6: 8d 65 f4 lea -0xc(%ebp),%esp
801010e9: 5b pop %ebx
801010ea: 5e pop %esi
801010eb: 5f pop %edi
801010ec: 5d pop %ebp
int r;
if(f->readable == 0)
return -1;
if(f->type == FD_PIPE)
return piperead(f->pipe, addr, n);
801010ed: e9 0e 26 00 00 jmp 80103700 <piperead>
801010f2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
fileread(struct file *f, char *addr, int n)
{
int r;
if(f->readable == 0)
return -1;
801010f8: b8 ff ff ff ff mov $0xffffffff,%eax
801010fd: eb d9 jmp 801010d8 <fileread+0x58>
if((r = readi(f->ip, addr, f->off, n)) > 0)
f->off += r;
iunlock(f->ip);
return r;
}
panic("fileread");
801010ff: 83 ec 0c sub $0xc,%esp
80101102: 68 62 76 10 80 push $0x80107662
80101107: e8 94 f3 ff ff call 801004a0 <panic>
8010110c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101110 <filewrite>:
//PAGEBREAK!
// Write to file f.
int
filewrite(struct file *f, char *addr, int n)
{
80101110: 55 push %ebp
80101111: 89 e5 mov %esp,%ebp
80101113: 57 push %edi
80101114: 56 push %esi
80101115: 53 push %ebx
80101116: 83 ec 1c sub $0x1c,%esp
80101119: 8b 75 08 mov 0x8(%ebp),%esi
8010111c: 8b 45 0c mov 0xc(%ebp),%eax
int r;
if(f->writable == 0)
8010111f: 80 7e 09 00 cmpb $0x0,0x9(%esi)
//PAGEBREAK!
// Write to file f.
int
filewrite(struct file *f, char *addr, int n)
{
80101123: 89 45 dc mov %eax,-0x24(%ebp)
80101126: 8b 45 10 mov 0x10(%ebp),%eax
80101129: 89 45 e4 mov %eax,-0x1c(%ebp)
int r;
if(f->writable == 0)
8010112c: 0f 84 aa 00 00 00 je 801011dc <filewrite+0xcc>
return -1;
if(f->type == FD_PIPE)
80101132: 8b 06 mov (%esi),%eax
80101134: 83 f8 01 cmp $0x1,%eax
80101137: 0f 84 c2 00 00 00 je 801011ff <filewrite+0xef>
return pipewrite(f->pipe, addr, n);
if(f->type == FD_INODE){
8010113d: 83 f8 02 cmp $0x2,%eax
80101140: 0f 85 d8 00 00 00 jne 8010121e <filewrite+0x10e>
// 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){
80101146: 8b 45 e4 mov -0x1c(%ebp),%eax
80101149: 31 ff xor %edi,%edi
8010114b: 85 c0 test %eax,%eax
8010114d: 7f 34 jg 80101183 <filewrite+0x73>
8010114f: e9 9c 00 00 00 jmp 801011f0 <filewrite+0xe0>
80101154: 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;
80101158: 01 46 14 add %eax,0x14(%esi)
iunlock(f->ip);
8010115b: 83 ec 0c sub $0xc,%esp
8010115e: ff 76 10 pushl 0x10(%esi)
n1 = max;
begin_op();
ilock(f->ip);
if ((r = writei(f->ip, addr + i, f->off, n1)) > 0)
f->off += r;
80101161: 89 45 e0 mov %eax,-0x20(%ebp)
iunlock(f->ip);
80101164: e8 57 08 00 00 call 801019c0 <iunlock>
end_op();
80101169: e8 c2 1c 00 00 call 80102e30 <end_op>
8010116e: 8b 45 e0 mov -0x20(%ebp),%eax
80101171: 83 c4 10 add $0x10,%esp
if(r < 0)
break;
if(r != n1)
80101174: 39 d8 cmp %ebx,%eax
80101176: 0f 85 95 00 00 00 jne 80101211 <filewrite+0x101>
panic("short filewrite");
i += r;
8010117c: 01 c7 add %eax,%edi
// 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){
8010117e: 39 7d e4 cmp %edi,-0x1c(%ebp)
80101181: 7e 6d jle 801011f0 <filewrite+0xe0>
int n1 = n - i;
80101183: 8b 5d e4 mov -0x1c(%ebp),%ebx
80101186: b8 00 06 00 00 mov $0x600,%eax
8010118b: 29 fb sub %edi,%ebx
8010118d: 81 fb 00 06 00 00 cmp $0x600,%ebx
80101193: 0f 4f d8 cmovg %eax,%ebx
if(n1 > max)
n1 = max;
begin_op();
80101196: e8 25 1c 00 00 call 80102dc0 <begin_op>
ilock(f->ip);
8010119b: 83 ec 0c sub $0xc,%esp
8010119e: ff 76 10 pushl 0x10(%esi)
801011a1: e8 3a 07 00 00 call 801018e0 <ilock>
if ((r = writei(f->ip, addr + i, f->off, n1)) > 0)
801011a6: 8b 45 dc mov -0x24(%ebp),%eax
801011a9: 53 push %ebx
801011aa: ff 76 14 pushl 0x14(%esi)
801011ad: 01 f8 add %edi,%eax
801011af: 50 push %eax
801011b0: ff 76 10 pushl 0x10(%esi)
801011b3: e8 08 0b 00 00 call 80101cc0 <writei>
801011b8: 83 c4 20 add $0x20,%esp
801011bb: 85 c0 test %eax,%eax
801011bd: 7f 99 jg 80101158 <filewrite+0x48>
f->off += r;
iunlock(f->ip);
801011bf: 83 ec 0c sub $0xc,%esp
801011c2: ff 76 10 pushl 0x10(%esi)
801011c5: 89 45 e0 mov %eax,-0x20(%ebp)
801011c8: e8 f3 07 00 00 call 801019c0 <iunlock>
end_op();
801011cd: e8 5e 1c 00 00 call 80102e30 <end_op>
if(r < 0)
801011d2: 8b 45 e0 mov -0x20(%ebp),%eax
801011d5: 83 c4 10 add $0x10,%esp
801011d8: 85 c0 test %eax,%eax
801011da: 74 98 je 80101174 <filewrite+0x64>
i += r;
}
return i == n ? n : -1;
}
panic("filewrite");
}
801011dc: 8d 65 f4 lea -0xc(%ebp),%esp
break;
if(r != n1)
panic("short filewrite");
i += r;
}
return i == n ? n : -1;
801011df: b8 ff ff ff ff mov $0xffffffff,%eax
}
panic("filewrite");
}
801011e4: 5b pop %ebx
801011e5: 5e pop %esi
801011e6: 5f pop %edi
801011e7: 5d pop %ebp
801011e8: c3 ret
801011e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
break;
if(r != n1)
panic("short filewrite");
i += r;
}
return i == n ? n : -1;
801011f0: 3b 7d e4 cmp -0x1c(%ebp),%edi
801011f3: 75 e7 jne 801011dc <filewrite+0xcc>
}
panic("filewrite");
}
801011f5: 8d 65 f4 lea -0xc(%ebp),%esp
801011f8: 89 f8 mov %edi,%eax
801011fa: 5b pop %ebx
801011fb: 5e pop %esi
801011fc: 5f pop %edi
801011fd: 5d pop %ebp
801011fe: c3 ret
int r;
if(f->writable == 0)
return -1;
if(f->type == FD_PIPE)
return pipewrite(f->pipe, addr, n);
801011ff: 8b 46 0c mov 0xc(%esi),%eax
80101202: 89 45 08 mov %eax,0x8(%ebp)
i += r;
}
return i == n ? n : -1;
}
panic("filewrite");
}
80101205: 8d 65 f4 lea -0xc(%ebp),%esp
80101208: 5b pop %ebx
80101209: 5e pop %esi
8010120a: 5f pop %edi
8010120b: 5d pop %ebp
int r;
if(f->writable == 0)
return -1;
if(f->type == FD_PIPE)
return pipewrite(f->pipe, addr, n);
8010120c: e9 ef 23 00 00 jmp 80103600 <pipewrite>
end_op();
if(r < 0)
break;
if(r != n1)
panic("short filewrite");
80101211: 83 ec 0c sub $0xc,%esp
80101214: 68 6b 76 10 80 push $0x8010766b
80101219: e8 82 f2 ff ff call 801004a0 <panic>
i += r;
}
return i == n ? n : -1;
}
panic("filewrite");
8010121e: 83 ec 0c sub $0xc,%esp
80101221: 68 71 76 10 80 push $0x80107671
80101226: e8 75 f2 ff ff call 801004a0 <panic>
8010122b: 66 90 xchg %ax,%ax
8010122d: 66 90 xchg %ax,%ax
8010122f: 90 nop
80101230 <balloc>:
// Blocks.
// Allocate a zeroed disk block.
static uint
balloc(uint dev)
{
80101230: 55 push %ebp
80101231: 89 e5 mov %esp,%ebp
80101233: 57 push %edi
80101234: 56 push %esi
80101235: 53 push %ebx
80101236: 83 ec 1c sub $0x1c,%esp
int b, bi, m;
struct buf *bp;
bp = 0;
for(b = 0; b < sb.size; b += BPB){
80101239: 8b 0d c0 19 11 80 mov 0x801119c0,%ecx
// Blocks.
// Allocate a zeroed disk block.
static uint
balloc(uint dev)
{
8010123f: 89 45 d8 mov %eax,-0x28(%ebp)
int b, bi, m;
struct buf *bp;
bp = 0;
for(b = 0; b < sb.size; b += BPB){
80101242: 85 c9 test %ecx,%ecx
80101244: 0f 84 85 00 00 00 je 801012cf <balloc+0x9f>
8010124a: c7 45 dc 00 00 00 00 movl $0x0,-0x24(%ebp)
bp = bread(dev, BBLOCK(b, sb));
80101251: 8b 75 dc mov -0x24(%ebp),%esi
80101254: 83 ec 08 sub $0x8,%esp
80101257: 89 f0 mov %esi,%eax
80101259: c1 f8 0c sar $0xc,%eax
8010125c: 03 05 d8 19 11 80 add 0x801119d8,%eax
80101262: 50 push %eax
80101263: ff 75 d8 pushl -0x28(%ebp)
80101266: e8 65 ee ff ff call 801000d0 <bread>
8010126b: 89 45 e4 mov %eax,-0x1c(%ebp)
8010126e: a1 c0 19 11 80 mov 0x801119c0,%eax
80101273: 83 c4 10 add $0x10,%esp
80101276: 89 45 e0 mov %eax,-0x20(%ebp)
for(bi = 0; bi < BPB && b + bi < sb.size; bi++){
80101279: 31 c0 xor %eax,%eax
8010127b: eb 2d jmp 801012aa <balloc+0x7a>
8010127d: 8d 76 00 lea 0x0(%esi),%esi
m = 1 << (bi % 8);
80101280: 89 c1 mov %eax,%ecx
80101282: ba 01 00 00 00 mov $0x1,%edx
if((bp->data[bi/8] & m) == 0){ // Is block free?
80101287: 8b 5d e4 mov -0x1c(%ebp),%ebx
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++){
m = 1 << (bi % 8);
8010128a: 83 e1 07 and $0x7,%ecx
8010128d: d3 e2 shl %cl,%edx
if((bp->data[bi/8] & m) == 0){ // Is block free?
8010128f: 89 c1 mov %eax,%ecx
80101291: c1 f9 03 sar $0x3,%ecx
80101294: 0f b6 7c 0b 5c movzbl 0x5c(%ebx,%ecx,1),%edi
80101299: 85 d7 test %edx,%edi
8010129b: 74 43 je 801012e0 <balloc+0xb0>
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++){
8010129d: 83 c0 01 add $0x1,%eax
801012a0: 83 c6 01 add $0x1,%esi
801012a3: 3d 00 10 00 00 cmp $0x1000,%eax
801012a8: 74 05 je 801012af <balloc+0x7f>
801012aa: 3b 75 e0 cmp -0x20(%ebp),%esi
801012ad: 72 d1 jb 80101280 <balloc+0x50>
brelse(bp);
bzero(dev, b + bi);
return b + bi;
}
}
brelse(bp);
801012af: 83 ec 0c sub $0xc,%esp
801012b2: ff 75 e4 pushl -0x1c(%ebp)
801012b5: e8 26 ef ff ff call 801001e0 <brelse>
{
int b, bi, m;
struct buf *bp;
bp = 0;
for(b = 0; b < sb.size; b += BPB){
801012ba: 81 45 dc 00 10 00 00 addl $0x1000,-0x24(%ebp)
801012c1: 83 c4 10 add $0x10,%esp
801012c4: 8b 45 dc mov -0x24(%ebp),%eax
801012c7: 39 05 c0 19 11 80 cmp %eax,0x801119c0
801012cd: 77 82 ja 80101251 <balloc+0x21>
return b + bi;
}
}
brelse(bp);
}
panic("balloc: out of blocks");
801012cf: 83 ec 0c sub $0xc,%esp
801012d2: 68 7b 76 10 80 push $0x8010767b
801012d7: e8 c4 f1 ff ff call 801004a0 <panic>
801012dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for(b = 0; b < sb.size; b += BPB){
bp = bread(dev, BBLOCK(b, sb));
for(bi = 0; bi < BPB && b + bi < sb.size; bi++){
m = 1 << (bi % 8);
if((bp->data[bi/8] & m) == 0){ // Is block free?
bp->data[bi/8] |= m; // Mark block in use.
801012e0: 8b 45 e4 mov -0x1c(%ebp),%eax
// log_write(bp);
brelse(bp);
801012e3: 83 ec 0c sub $0xc,%esp
for(b = 0; b < sb.size; b += BPB){
bp = bread(dev, BBLOCK(b, sb));
for(bi = 0; bi < BPB && b + bi < sb.size; bi++){
m = 1 << (bi % 8);
if((bp->data[bi/8] & m) == 0){ // Is block free?
bp->data[bi/8] |= m; // Mark block in use.
801012e6: 09 fa or %edi,%edx
801012e8: 88 54 08 5c mov %dl,0x5c(%eax,%ecx,1)
// log_write(bp);
brelse(bp);
801012ec: 50 push %eax
801012ed: e8 ee ee ff ff call 801001e0 <brelse>
static void
bzero(int dev, int bno)
{
struct buf *bp;
bp = bread(dev, bno);
801012f2: 58 pop %eax
801012f3: 5a pop %edx
801012f4: 56 push %esi
801012f5: ff 75 d8 pushl -0x28(%ebp)
801012f8: e8 d3 ed ff ff call 801000d0 <bread>
801012fd: 89 c3 mov %eax,%ebx
memset(bp->data, 0, BSIZE);
801012ff: 8d 40 5c lea 0x5c(%eax),%eax
80101302: 83 c4 0c add $0xc,%esp
80101305: 68 00 02 00 00 push $0x200
8010130a: 6a 00 push $0x0
8010130c: 50 push %eax
8010130d: e8 5e 33 00 00 call 80104670 <memset>
//log_write(bp);
brelse(bp);
80101312: 89 1c 24 mov %ebx,(%esp)
80101315: e8 c6 ee ff ff call 801001e0 <brelse>
}
}
brelse(bp);
}
panic("balloc: out of blocks");
}
8010131a: 8d 65 f4 lea -0xc(%ebp),%esp
8010131d: 89 f0 mov %esi,%eax
8010131f: 5b pop %ebx
80101320: 5e pop %esi
80101321: 5f pop %edi
80101322: 5d pop %ebp
80101323: c3 ret
80101324: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
8010132a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80101330 <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)
{
80101330: 55 push %ebp
80101331: 89 e5 mov %esp,%ebp
80101333: 57 push %edi
80101334: 56 push %esi
80101335: 53 push %ebx
80101336: 89 c7 mov %eax,%edi
struct inode *ip, *empty;
acquire(&icache.lock);
// Is the inode already cached?
empty = 0;
80101338: 31 f6 xor %esi,%esi
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
8010133a: bb 14 1a 11 80 mov $0x80111a14,%ebx
// 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)
{
8010133f: 83 ec 28 sub $0x28,%esp
80101342: 89 55 e4 mov %edx,-0x1c(%ebp)
struct inode *ip, *empty;
acquire(&icache.lock);
80101345: 68 e0 19 11 80 push $0x801119e0
8010134a: e8 b1 31 00 00 call 80104500 <acquire>
8010134f: 83 c4 10 add $0x10,%esp
// Is the inode already cached?
empty = 0;
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
80101352: 8b 55 e4 mov -0x1c(%ebp),%edx
80101355: eb 1b jmp 80101372 <iget+0x42>
80101357: 89 f6 mov %esi,%esi
80101359: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){
ip->ref++;
release(&icache.lock);
return ip;
}
if(empty == 0 && ip->ref == 0) // Remember empty slot.
80101360: 85 f6 test %esi,%esi
80101362: 74 44 je 801013a8 <iget+0x78>
acquire(&icache.lock);
// Is the inode already cached?
empty = 0;
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
80101364: 81 c3 90 00 00 00 add $0x90,%ebx
8010136a: 81 fb 34 36 11 80 cmp $0x80113634,%ebx
80101370: 74 4e je 801013c0 <iget+0x90>
if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){
80101372: 8b 4b 08 mov 0x8(%ebx),%ecx
80101375: 85 c9 test %ecx,%ecx
80101377: 7e e7 jle 80101360 <iget+0x30>
80101379: 39 3b cmp %edi,(%ebx)
8010137b: 75 e3 jne 80101360 <iget+0x30>
8010137d: 39 53 04 cmp %edx,0x4(%ebx)
80101380: 75 de jne 80101360 <iget+0x30>
ip->ref++;
release(&icache.lock);
80101382: 83 ec 0c sub $0xc,%esp
// Is the inode already cached?
empty = 0;
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){
ip->ref++;
80101385: 83 c1 01 add $0x1,%ecx
release(&icache.lock);
return ip;
80101388: 89 de mov %ebx,%esi
// Is the inode already cached?
empty = 0;
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){
ip->ref++;
release(&icache.lock);
8010138a: 68 e0 19 11 80 push $0x801119e0
// Is the inode already cached?
empty = 0;
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){
ip->ref++;
8010138f: 89 4b 08 mov %ecx,0x8(%ebx)
release(&icache.lock);
80101392: e8 89 32 00 00 call 80104620 <release>
return ip;
80101397: 83 c4 10 add $0x10,%esp
ip->ref = 1;
ip->valid = 0;
release(&icache.lock);
return ip;
}
8010139a: 8d 65 f4 lea -0xc(%ebp),%esp
8010139d: 89 f0 mov %esi,%eax
8010139f: 5b pop %ebx
801013a0: 5e pop %esi
801013a1: 5f pop %edi
801013a2: 5d pop %ebp
801013a3: c3 ret
801013a4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(ip->ref > 0 && ip->dev == dev && ip->inum == inum){
ip->ref++;
release(&icache.lock);
return ip;
}
if(empty == 0 && ip->ref == 0) // Remember empty slot.
801013a8: 85 c9 test %ecx,%ecx
801013aa: 0f 44 f3 cmove %ebx,%esi
acquire(&icache.lock);
// Is the inode already cached?
empty = 0;
for(ip = &icache.inode[0]; ip < &icache.inode[NINODE]; ip++){
801013ad: 81 c3 90 00 00 00 add $0x90,%ebx
801013b3: 81 fb 34 36 11 80 cmp $0x80113634,%ebx
801013b9: 75 b7 jne 80101372 <iget+0x42>
801013bb: 90 nop
801013bc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(empty == 0 && ip->ref == 0) // Remember empty slot.
empty = ip;
}
// Recycle an inode cache entry.
if(empty == 0)
801013c0: 85 f6 test %esi,%esi
801013c2: 74 2d je 801013f1 <iget+0xc1>
ip = empty;
ip->dev = dev;
ip->inum = inum;
ip->ref = 1;
ip->valid = 0;
release(&icache.lock);
801013c4: 83 ec 0c sub $0xc,%esp
// Recycle an inode cache entry.
if(empty == 0)
panic("iget: no inodes");
ip = empty;
ip->dev = dev;
801013c7: 89 3e mov %edi,(%esi)
ip->inum = inum;
801013c9: 89 56 04 mov %edx,0x4(%esi)
ip->ref = 1;
801013cc: c7 46 08 01 00 00 00 movl $0x1,0x8(%esi)
ip->valid = 0;
801013d3: c7 46 4c 00 00 00 00 movl $0x0,0x4c(%esi)
release(&icache.lock);
801013da: 68 e0 19 11 80 push $0x801119e0
801013df: e8 3c 32 00 00 call 80104620 <release>
return ip;
801013e4: 83 c4 10 add $0x10,%esp
}
801013e7: 8d 65 f4 lea -0xc(%ebp),%esp
801013ea: 89 f0 mov %esi,%eax
801013ec: 5b pop %ebx
801013ed: 5e pop %esi
801013ee: 5f pop %edi
801013ef: 5d pop %ebp
801013f0: c3 ret
empty = ip;
}
// Recycle an inode cache entry.
if(empty == 0)
panic("iget: no inodes");
801013f1: 83 ec 0c sub $0xc,%esp
801013f4: 68 91 76 10 80 push $0x80107691
801013f9: e8 a2 f0 ff ff call 801004a0 <panic>
801013fe: 66 90 xchg %ax,%ax
80101400 <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)
{
80101400: 55 push %ebp
80101401: 89 e5 mov %esp,%ebp
80101403: 57 push %edi
80101404: 56 push %esi
80101405: 53 push %ebx
80101406: 89 c6 mov %eax,%esi
80101408: 83 ec 1c sub $0x1c,%esp
uint addr, *a;
struct buf *bp;
if(bn < NDIRECT){
8010140b: 83 fa 0b cmp $0xb,%edx
8010140e: 77 18 ja 80101428 <bmap+0x28>
80101410: 8d 1c 90 lea (%eax,%edx,4),%ebx
if((addr = ip->addrs[bn]) == 0)
80101413: 8b 43 5c mov 0x5c(%ebx),%eax
80101416: 85 c0 test %eax,%eax
80101418: 74 76 je 80101490 <bmap+0x90>
brelse(bp);
return addr;
}
panic("bmap: out of range");
}
8010141a: 8d 65 f4 lea -0xc(%ebp),%esp
8010141d: 5b pop %ebx
8010141e: 5e pop %esi
8010141f: 5f pop %edi
80101420: 5d pop %ebp
80101421: c3 ret
80101422: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if(bn < NDIRECT){
if((addr = ip->addrs[bn]) == 0)
ip->addrs[bn] = addr = balloc(ip->dev);
return addr;
}
bn -= NDIRECT;
80101428: 8d 5a f4 lea -0xc(%edx),%ebx
if(bn < NINDIRECT){
8010142b: 83 fb 7f cmp $0x7f,%ebx
8010142e: 0f 87 83 00 00 00 ja 801014b7 <bmap+0xb7>
// Load indirect block, allocating if necessary.
if((addr = ip->addrs[NDIRECT]) == 0)
80101434: 8b 80 8c 00 00 00 mov 0x8c(%eax),%eax
8010143a: 85 c0 test %eax,%eax
8010143c: 74 6a je 801014a8 <bmap+0xa8>
ip->addrs[NDIRECT] = addr = balloc(ip->dev);
bp = bread(ip->dev, addr);
8010143e: 83 ec 08 sub $0x8,%esp
80101441: 50 push %eax
80101442: ff 36 pushl (%esi)
80101444: e8 87 ec ff ff call 801000d0 <bread>
a = (uint*)bp->data;
if((addr = a[bn]) == 0){
80101449: 8d 54 98 5c lea 0x5c(%eax,%ebx,4),%edx
8010144d: 83 c4 10 add $0x10,%esp
if(bn < NINDIRECT){
// Load indirect block, allocating if necessary.
if((addr = ip->addrs[NDIRECT]) == 0)
ip->addrs[NDIRECT] = addr = balloc(ip->dev);
bp = bread(ip->dev, addr);
80101450: 89 c7 mov %eax,%edi
a = (uint*)bp->data;
if((addr = a[bn]) == 0){
80101452: 8b 1a mov (%edx),%ebx
80101454: 85 db test %ebx,%ebx
80101456: 75 1d jne 80101475 <bmap+0x75>
a[bn] = addr = balloc(ip->dev);
80101458: 8b 06 mov (%esi),%eax
8010145a: 89 55 e4 mov %edx,-0x1c(%ebp)
8010145d: e8 ce fd ff ff call 80101230 <balloc>
80101462: 8b 55 e4 mov -0x1c(%ebp),%edx
log_write(bp);
80101465: 83 ec 0c sub $0xc,%esp
if((addr = ip->addrs[NDIRECT]) == 0)
ip->addrs[NDIRECT] = addr = balloc(ip->dev);
bp = bread(ip->dev, addr);
a = (uint*)bp->data;
if((addr = a[bn]) == 0){
a[bn] = addr = balloc(ip->dev);
80101468: 89 c3 mov %eax,%ebx
8010146a: 89 02 mov %eax,(%edx)
log_write(bp);
8010146c: 57 push %edi
8010146d: e8 2e 1b 00 00 call 80102fa0 <log_write>
80101472: 83 c4 10 add $0x10,%esp
}
brelse(bp);
80101475: 83 ec 0c sub $0xc,%esp
80101478: 57 push %edi
80101479: e8 62 ed ff ff call 801001e0 <brelse>
8010147e: 83 c4 10 add $0x10,%esp
return addr;
}
panic("bmap: out of range");
}
80101481: 8d 65 f4 lea -0xc(%ebp),%esp
a = (uint*)bp->data;
if((addr = a[bn]) == 0){
a[bn] = addr = balloc(ip->dev);
log_write(bp);
}
brelse(bp);
80101484: 89 d8 mov %ebx,%eax
return addr;
}
panic("bmap: out of range");
}
80101486: 5b pop %ebx
80101487: 5e pop %esi
80101488: 5f pop %edi
80101489: 5d pop %ebp
8010148a: c3 ret
8010148b: 90 nop
8010148c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
uint addr, *a;
struct buf *bp;
if(bn < NDIRECT){
if((addr = ip->addrs[bn]) == 0)
ip->addrs[bn] = addr = balloc(ip->dev);
80101490: 8b 06 mov (%esi),%eax
80101492: e8 99 fd ff ff call 80101230 <balloc>
80101497: 89 43 5c mov %eax,0x5c(%ebx)
brelse(bp);
return addr;
}
panic("bmap: out of range");
}
8010149a: 8d 65 f4 lea -0xc(%ebp),%esp
8010149d: 5b pop %ebx
8010149e: 5e pop %esi
8010149f: 5f pop %edi
801014a0: 5d pop %ebp
801014a1: c3 ret
801014a2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
bn -= NDIRECT;
if(bn < NINDIRECT){
// Load indirect block, allocating if necessary.
if((addr = ip->addrs[NDIRECT]) == 0)
ip->addrs[NDIRECT] = addr = balloc(ip->dev);
801014a8: 8b 06 mov (%esi),%eax
801014aa: e8 81 fd ff ff call 80101230 <balloc>
801014af: 89 86 8c 00 00 00 mov %eax,0x8c(%esi)
801014b5: eb 87 jmp 8010143e <bmap+0x3e>
}
brelse(bp);
return addr;
}
panic("bmap: out of range");
801014b7: 83 ec 0c sub $0xc,%esp
801014ba: 68 a1 76 10 80 push $0x801076a1
801014bf: e8 dc ef ff ff call 801004a0 <panic>
801014c4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801014ca: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
801014d0 <readsb>:
int numallocblocks = 0;
// Read the super block.
void
readsb(int dev, struct superblock *sb)
{
801014d0: 55 push %ebp
801014d1: 89 e5 mov %esp,%ebp
801014d3: 56 push %esi
801014d4: 53 push %ebx
801014d5: 8b 75 0c mov 0xc(%ebp),%esi
struct buf *bp;
bp = bread(dev, 1);
801014d8: 83 ec 08 sub $0x8,%esp
801014db: 6a 01 push $0x1
801014dd: ff 75 08 pushl 0x8(%ebp)
801014e0: e8 eb eb ff ff call 801000d0 <bread>
801014e5: 89 c3 mov %eax,%ebx
memmove(sb, bp->data, sizeof(*sb));
801014e7: 8d 40 5c lea 0x5c(%eax),%eax
801014ea: 83 c4 0c add $0xc,%esp
801014ed: 6a 1c push $0x1c
801014ef: 50 push %eax
801014f0: 56 push %esi
801014f1: e8 2a 32 00 00 call 80104720 <memmove>
brelse(bp);
801014f6: 89 5d 08 mov %ebx,0x8(%ebp)
801014f9: 83 c4 10 add $0x10,%esp
}
801014fc: 8d 65 f8 lea -0x8(%ebp),%esp
801014ff: 5b pop %ebx
80101500: 5e pop %esi
80101501: 5d pop %ebp
{
struct buf *bp;
bp = bread(dev, 1);
memmove(sb, bp->data, sizeof(*sb));
brelse(bp);
80101502: e9 d9 ec ff ff jmp 801001e0 <brelse>
80101507: 89 f6 mov %esi,%esi
80101509: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101510 <bfree>:
}
// Free a disk block.
static void
bfree(int dev, uint b)
{
80101510: 55 push %ebp
80101511: 89 e5 mov %esp,%ebp
80101513: 56 push %esi
80101514: 53 push %ebx
80101515: 89 d3 mov %edx,%ebx
80101517: 89 c6 mov %eax,%esi
struct buf *bp;
int bi, m;
readsb(dev, &sb);
80101519: 83 ec 08 sub $0x8,%esp
8010151c: 68 c0 19 11 80 push $0x801119c0
80101521: 50 push %eax
80101522: e8 a9 ff ff ff call 801014d0 <readsb>
bp = bread(dev, BBLOCK(b, sb));
80101527: 58 pop %eax
80101528: 5a pop %edx
80101529: 89 da mov %ebx,%edx
8010152b: c1 ea 0c shr $0xc,%edx
8010152e: 03 15 d8 19 11 80 add 0x801119d8,%edx
80101534: 52 push %edx
80101535: 56 push %esi
80101536: e8 95 eb ff ff call 801000d0 <bread>
bi = b % BPB;
m = 1 << (bi % 8);
8010153b: 89 d9 mov %ebx,%ecx
if((bp->data[bi/8] & m) == 0)
8010153d: 81 e3 ff 0f 00 00 and $0xfff,%ebx
int bi, m;
readsb(dev, &sb);
bp = bread(dev, BBLOCK(b, sb));
bi = b % BPB;
m = 1 << (bi % 8);
80101543: ba 01 00 00 00 mov $0x1,%edx
if((bp->data[bi/8] & m) == 0)
80101548: c1 fb 03 sar $0x3,%ebx
int bi, m;
readsb(dev, &sb);
bp = bread(dev, BBLOCK(b, sb));
bi = b % BPB;
m = 1 << (bi % 8);
8010154b: 83 e1 07 and $0x7,%ecx
if((bp->data[bi/8] & m) == 0)
8010154e: 83 c4 10 add $0x10,%esp
80101551: 0f b6 74 18 5c movzbl 0x5c(%eax,%ebx,1),%esi
int bi, m;
readsb(dev, &sb);
bp = bread(dev, BBLOCK(b, sb));
bi = b % BPB;
m = 1 << (bi % 8);
80101556: d3 e2 shl %cl,%edx
if((bp->data[bi/8] & m) == 0)
80101558: 85 d6 test %edx,%esi
8010155a: 74 1d je 80101579 <bfree+0x69>
8010155c: 89 f1 mov %esi,%ecx
panic("freeing free block");
bp->data[bi/8] &= ~m;
8010155e: f7 d2 not %edx
// log_write(bp);
brelse(bp);
80101560: 83 ec 0c sub $0xc,%esp
bp = bread(dev, BBLOCK(b, sb));
bi = b % BPB;
m = 1 << (bi % 8);
if((bp->data[bi/8] & m) == 0)
panic("freeing free block");
bp->data[bi/8] &= ~m;
80101563: 21 d1 and %edx,%ecx
80101565: 88 4c 18 5c mov %cl,0x5c(%eax,%ebx,1)
// log_write(bp);
brelse(bp);
80101569: 50 push %eax
8010156a: e8 71 ec ff ff call 801001e0 <brelse>
}
8010156f: 83 c4 10 add $0x10,%esp
80101572: 8d 65 f8 lea -0x8(%ebp),%esp
80101575: 5b pop %ebx
80101576: 5e pop %esi
80101577: 5d pop %ebp
80101578: c3 ret
readsb(dev, &sb);
bp = bread(dev, BBLOCK(b, sb));
bi = b % BPB;
m = 1 << (bi % 8);
if((bp->data[bi/8] & m) == 0)
panic("freeing free block");
80101579: 83 ec 0c sub $0xc,%esp
8010157c: 68 b4 76 10 80 push $0x801076b4
80101581: e8 1a ef ff ff call 801004a0 <panic>
80101586: 8d 76 00 lea 0x0(%esi),%esi
80101589: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101590 <balloc_page>:
* free blocks. It is okay, if you assume that the first
* block is always 8 bytes aligned.
*/
uint
balloc_page(uint dev)
{
80101590: 55 push %ebp
80101591: 89 e5 mov %esp,%ebp
80101593: 57 push %edi
80101594: 56 push %esi
80101595: 53 push %ebx
readsb(dev, &sb);
int i ;
uint n[8];
uint f[sb.nblocks];
int fcount = 0;
for(i=0;i<8;i++)
80101596: 31 ff xor %edi,%edi
cprintf("balloc page \n");
readsb(dev, &sb);
int i ;
uint n[8];
uint f[sb.nblocks];
int fcount = 0;
80101598: 31 db xor %ebx,%ebx
* free blocks. It is okay, if you assume that the first
* block is always 8 bytes aligned.
*/
uint
balloc_page(uint dev)
{
8010159a: 83 ec 48 sub $0x48,%esp
cprintf("balloc page \n");
8010159d: 68 e7 76 10 80 push $0x801076e7
801015a2: e8 e9 f1 ff ff call 80100790 <cprintf>
readsb(dev, &sb);
801015a7: 58 pop %eax
801015a8: 5a pop %edx
801015a9: 68 c0 19 11 80 push $0x801119c0
801015ae: ff 75 08 pushl 0x8(%ebp)
801015b1: e8 1a ff ff ff call 801014d0 <readsb>
int i ;
uint n[8];
uint f[sb.nblocks];
801015b6: a1 c4 19 11 80 mov 0x801119c4,%eax
801015bb: 83 c4 10 add $0x10,%esp
801015be: 8d 04 85 12 00 00 00 lea 0x12(,%eax,4),%eax
801015c5: 83 e0 f0 and $0xfffffff0,%eax
801015c8: 29 c4 sub %eax,%esp
801015ca: 89 e6 mov %esp,%esi
801015cc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
int fcount = 0;
for(i=0;i<8;i++)
{
n[i] = balloc(dev);
801015d0: 8b 45 08 mov 0x8(%ebp),%eax
801015d3: e8 58 fc ff ff call 80101230 <balloc>
cprintf("bvalue %d\n",n[i]);
801015d8: 83 ec 08 sub $0x8,%esp
uint n[8];
uint f[sb.nblocks];
int fcount = 0;
for(i=0;i<8;i++)
{
n[i] = balloc(dev);
801015db: 89 44 bd c8 mov %eax,-0x38(%ebp,%edi,4)
cprintf("bvalue %d\n",n[i]);
801015df: 89 45 c4 mov %eax,-0x3c(%ebp)
801015e2: 50 push %eax
801015e3: 68 c7 76 10 80 push $0x801076c7
801015e8: e8 a3 f1 ff ff call 80100790 <cprintf>
//cprintf("ek block allocated\n");
if(i>0 && ((n[i]-n[i-1])>1))
801015ed: 83 c4 10 add $0x10,%esp
801015f0: 85 ff test %edi,%edi
801015f2: 0f 84 98 00 00 00 je 80101690 <balloc_page+0x100>
801015f8: 8b 45 c4 mov -0x3c(%ebp),%eax
801015fb: 2b 44 bd c4 sub -0x3c(%ebp,%edi,4),%eax
801015ff: 83 f8 01 cmp $0x1,%eax
80101602: 76 3c jbe 80101640 <balloc_page+0xb0>
{
cprintf("oops\n");
80101604: 83 ec 0c sub $0xc,%esp
80101607: 68 d2 76 10 80 push $0x801076d2
8010160c: e8 7f f1 ff ff call 80100790 <cprintf>
80101611: 8d 4f 01 lea 0x1(%edi),%ecx
80101614: 8d 14 9e lea (%esi,%ebx,4),%edx
80101617: 83 c4 10 add $0x10,%esp
for(int j = 0 ; j<=i ; j++)
8010161a: 31 c0 xor %eax,%eax
8010161c: 89 5d c4 mov %ebx,-0x3c(%ebp)
8010161f: 90 nop
f[fcount+j]=n[j];
80101620: 8b 5c 85 c8 mov -0x38(%ebp,%eax,4),%ebx
80101624: 89 1c 82 mov %ebx,(%edx,%eax,4)
cprintf("bvalue %d\n",n[i]);
//cprintf("ek block allocated\n");
if(i>0 && ((n[i]-n[i-1])>1))
{
cprintf("oops\n");
for(int j = 0 ; j<=i ; j++)
80101627: 83 c0 01 add $0x1,%eax
8010162a: 39 c8 cmp %ecx,%eax
8010162c: 75 f2 jne 80101620 <balloc_page+0x90>
8010162e: 8b 5d c4 mov -0x3c(%ebp),%ebx
f[fcount+j]=n[j];
fcount += i;
80101631: 01 fb add %edi,%ebx
readsb(dev, &sb);
int i ;
uint n[8];
uint f[sb.nblocks];
int fcount = 0;
for(i=0;i<8;i++)
80101633: bf 01 00 00 00 mov $0x1,%edi
80101638: eb 96 jmp 801015d0 <balloc_page+0x40>
8010163a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80101640: 83 c7 01 add $0x1,%edi
80101643: 83 ff 08 cmp $0x8,%edi
80101646: 75 88 jne 801015d0 <balloc_page+0x40>
fcount += i;
i = 0;
}
}
for(i = 0 ; i<fcount; i++)
80101648: 31 ff xor %edi,%edi
8010164a: 85 db test %ebx,%ebx
8010164c: 74 26 je 80101674 <balloc_page+0xe4>
8010164e: 66 90 xchg %ax,%ax
{
cprintf("freeing mem\n");
80101650: 83 ec 0c sub $0xc,%esp
80101653: 68 f5 76 10 80 push $0x801076f5
80101658: e8 33 f1 ff ff call 80100790 <cprintf>
bfree(ROOTDEV, f[i]);
8010165d: 8b 14 be mov (%esi,%edi,4),%edx
80101660: b8 01 00 00 00 mov $0x1,%eax
fcount += i;
i = 0;
}
}
for(i = 0 ; i<fcount; i++)
80101665: 83 c7 01 add $0x1,%edi
{
cprintf("freeing mem\n");
bfree(ROOTDEV, f[i]);
80101668: e8 a3 fe ff ff call 80101510 <bfree>
fcount += i;
i = 0;
}
}
for(i = 0 ; i<fcount; i++)
8010166d: 83 c4 10 add $0x10,%esp
80101670: 39 df cmp %ebx,%edi
80101672: 75 dc jne 80101650 <balloc_page+0xc0>
{
cprintf("freeing mem\n");
bfree(ROOTDEV, f[i]);
}
cprintf("returning from balloc page \n");
80101674: 83 ec 0c sub $0xc,%esp
80101677: 68 d8 76 10 80 push $0x801076d8
8010167c: e8 0f f1 ff ff call 80100790 <cprintf>
return n[0];
80101681: 8b 45 c8 mov -0x38(%ebp),%eax
}
80101684: 8d 65 f4 lea -0xc(%ebp),%esp
80101687: 5b pop %ebx
80101688: 5e pop %esi
80101689: 5f pop %edi
8010168a: 5d pop %ebp
8010168b: c3 ret
8010168c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
readsb(dev, &sb);
int i ;
uint n[8];
uint f[sb.nblocks];
int fcount = 0;
for(i=0;i<8;i++)
80101690: bf 01 00 00 00 mov $0x1,%edi
80101695: e9 36 ff ff ff jmp 801015d0 <balloc_page+0x40>
8010169a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801016a0 <bfree_page>:
/* Free disk blocks allocated using balloc_page.
*/
void
bfree_page(int dev, uint b)
{
801016a0: 55 push %ebp
801016a1: 89 e5 mov %esp,%ebp
801016a3: 56 push %esi
801016a4: 53 push %ebx
801016a5: 8b 5d 0c mov 0xc(%ebp),%ebx
cprintf("FREEING MEM\n");
801016a8: 83 ec 0c sub $0xc,%esp
801016ab: 68 02 77 10 80 push $0x80107702
uint i ;
for(i = b ; i< b+8; i++)
801016b0: 8d 73 08 lea 0x8(%ebx),%esi
/* Free disk blocks allocated using balloc_page.
*/
void
bfree_page(int dev, uint b)
{
cprintf("FREEING MEM\n");
801016b3: e8 d8 f0 ff ff call 80100790 <cprintf>
uint i ;
for(i = b ; i< b+8; i++)
801016b8: 83 c4 10 add $0x10,%esp
801016bb: 39 f3 cmp %esi,%ebx
801016bd: 73 14 jae 801016d3 <bfree_page+0x33>
801016bf: 90 nop
{
bfree(ROOTDEV, i);
801016c0: 89 da mov %ebx,%edx
801016c2: b8 01 00 00 00 mov $0x1,%eax
void
bfree_page(int dev, uint b)
{
cprintf("FREEING MEM\n");
uint i ;
for(i = b ; i< b+8; i++)
801016c7: 83 c3 01 add $0x1,%ebx
{
bfree(ROOTDEV, i);
801016ca: e8 41 fe ff ff call 80101510 <bfree>
void
bfree_page(int dev, uint b)
{
cprintf("FREEING MEM\n");
uint i ;
for(i = b ; i< b+8; i++)
801016cf: 39 f3 cmp %esi,%ebx
801016d1: 75 ed jne 801016c0 <bfree_page+0x20>
{
bfree(ROOTDEV, i);
}
}
801016d3: 8d 65 f8 lea -0x8(%ebp),%esp
801016d6: 5b pop %ebx
801016d7: 5e pop %esi
801016d8: 5d pop %ebp
801016d9: c3 ret
801016da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801016e0 <iinit>:
struct inode inode[NINODE];
} icache;
void
iinit(int dev)
{
801016e0: 55 push %ebp
801016e1: 89 e5 mov %esp,%ebp
801016e3: 53 push %ebx
801016e4: bb 20 1a 11 80 mov $0x80111a20,%ebx
801016e9: 83 ec 0c sub $0xc,%esp
int i = 0;
initlock(&icache.lock, "icache");
801016ec: 68 0f 77 10 80 push $0x8010770f
801016f1: 68 e0 19 11 80 push $0x801119e0
801016f6: e8 05 2d 00 00 call 80104400 <initlock>
801016fb: 83 c4 10 add $0x10,%esp
801016fe: 66 90 xchg %ax,%ax
for(i = 0; i < NINODE; i++) {
initsleeplock(&icache.inode[i].lock, "inode");
80101700: 83 ec 08 sub $0x8,%esp
80101703: 68 16 77 10 80 push $0x80107716
80101708: 53 push %ebx
80101709: 81 c3 90 00 00 00 add $0x90,%ebx
8010170f: e8 dc 2b 00 00 call 801042f0 <initsleeplock>
iinit(int dev)
{
int i = 0;
initlock(&icache.lock, "icache");
for(i = 0; i < NINODE; i++) {
80101714: 83 c4 10 add $0x10,%esp
80101717: 81 fb 40 36 11 80 cmp $0x80113640,%ebx
8010171d: 75 e1 jne 80101700 <iinit+0x20>
initsleeplock(&icache.inode[i].lock, "inode");
}
readsb(dev, &sb);
8010171f: 83 ec 08 sub $0x8,%esp
80101722: 68 c0 19 11 80 push $0x801119c0
80101727: ff 75 08 pushl 0x8(%ebp)
8010172a: e8 a1 fd ff ff call 801014d0 <readsb>
cprintf("sb: size %d nblocks %d ninodes %d nlog %d logstart %d\
8010172f: ff 35 d8 19 11 80 pushl 0x801119d8
80101735: ff 35 d4 19 11 80 pushl 0x801119d4
8010173b: ff 35 d0 19 11 80 pushl 0x801119d0
80101741: ff 35 cc 19 11 80 pushl 0x801119cc
80101747: ff 35 c8 19 11 80 pushl 0x801119c8
8010174d: ff 35 c4 19 11 80 pushl 0x801119c4
80101753: ff 35 c0 19 11 80 pushl 0x801119c0
80101759: 68 7c 77 10 80 push $0x8010777c
8010175e: e8 2d f0 ff ff call 80100790 <cprintf>
inodestart %d bmap start %d\n", sb.size, sb.nblocks,
sb.ninodes, sb.nlog, sb.logstart, sb.inodestart,
sb.bmapstart);
}
80101763: 83 c4 30 add $0x30,%esp
80101766: 8b 5d fc mov -0x4(%ebp),%ebx
80101769: c9 leave
8010176a: c3 ret
8010176b: 90 nop
8010176c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101770 <ialloc>:
// Allocate an inode on device dev.
// Mark it as allocated by giving it type type.
// Returns an unlocked but allocated and referenced inode.
struct inode*
ialloc(uint dev, short type)
{
80101770: 55 push %ebp
80101771: 89 e5 mov %esp,%ebp
80101773: 57 push %edi
80101774: 56 push %esi
80101775: 53 push %ebx
80101776: 83 ec 1c sub $0x1c,%esp
int inum;
struct buf *bp;
struct dinode *dip;
for(inum = 1; inum < sb.ninodes; inum++){
80101779: 83 3d c8 19 11 80 01 cmpl $0x1,0x801119c8
// Allocate an inode on device dev.
// Mark it as allocated by giving it type type.
// Returns an unlocked but allocated and referenced inode.
struct inode*
ialloc(uint dev, short type)
{
80101780: 8b 45 0c mov 0xc(%ebp),%eax
80101783: 8b 75 08 mov 0x8(%ebp),%esi
80101786: 89 45 e4 mov %eax,-0x1c(%ebp)
int inum;
struct buf *bp;
struct dinode *dip;
for(inum = 1; inum < sb.ninodes; inum++){
80101789: 0f 86 91 00 00 00 jbe 80101820 <ialloc+0xb0>
8010178f: bb 01 00 00 00 mov $0x1,%ebx
80101794: eb 21 jmp 801017b7 <ialloc+0x47>
80101796: 8d 76 00 lea 0x0(%esi),%esi
80101799: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
dip->type = type;
log_write(bp); // mark it allocated on the disk
brelse(bp);
return iget(dev, inum);
}
brelse(bp);
801017a0: 83 ec 0c sub $0xc,%esp
{
int inum;
struct buf *bp;
struct dinode *dip;
for(inum = 1; inum < sb.ninodes; inum++){
801017a3: 83 c3 01 add $0x1,%ebx
dip->type = type;
log_write(bp); // mark it allocated on the disk
brelse(bp);
return iget(dev, inum);
}
brelse(bp);
801017a6: 57 push %edi
801017a7: e8 34 ea ff ff call 801001e0 <brelse>
{
int inum;
struct buf *bp;
struct dinode *dip;
for(inum = 1; inum < sb.ninodes; inum++){
801017ac: 83 c4 10 add $0x10,%esp
801017af: 39 1d c8 19 11 80 cmp %ebx,0x801119c8
801017b5: 76 69 jbe 80101820 <ialloc+0xb0>
bp = bread(dev, IBLOCK(inum, sb));
801017b7: 89 d8 mov %ebx,%eax
801017b9: 83 ec 08 sub $0x8,%esp
801017bc: c1 e8 03 shr $0x3,%eax
801017bf: 03 05 d4 19 11 80 add 0x801119d4,%eax
801017c5: 50 push %eax
801017c6: 56 push %esi
801017c7: e8 04 e9 ff ff call 801000d0 <bread>
801017cc: 89 c7 mov %eax,%edi
dip = (struct dinode*)bp->data + inum%IPB;
801017ce: 89 d8 mov %ebx,%eax
if(dip->type == 0){ // a free inode
801017d0: 83 c4 10 add $0x10,%esp
struct buf *bp;
struct dinode *dip;
for(inum = 1; inum < sb.ninodes; inum++){
bp = bread(dev, IBLOCK(inum, sb));
dip = (struct dinode*)bp->data + inum%IPB;
801017d3: 83 e0 07 and $0x7,%eax
801017d6: c1 e0 06 shl $0x6,%eax
801017d9: 8d 4c 07 5c lea 0x5c(%edi,%eax,1),%ecx
if(dip->type == 0){ // a free inode
801017dd: 66 83 39 00 cmpw $0x0,(%ecx)
801017e1: 75 bd jne 801017a0 <ialloc+0x30>
memset(dip, 0, sizeof(*dip));
801017e3: 83 ec 04 sub $0x4,%esp
801017e6: 89 4d e0 mov %ecx,-0x20(%ebp)
801017e9: 6a 40 push $0x40
801017eb: 6a 00 push $0x0
801017ed: 51 push %ecx
801017ee: e8 7d 2e 00 00 call 80104670 <memset>
dip->type = type;
801017f3: 0f b7 45 e4 movzwl -0x1c(%ebp),%eax
801017f7: 8b 4d e0 mov -0x20(%ebp),%ecx
801017fa: 66 89 01 mov %ax,(%ecx)
log_write(bp); // mark it allocated on the disk
801017fd: 89 3c 24 mov %edi,(%esp)
80101800: e8 9b 17 00 00 call 80102fa0 <log_write>
brelse(bp);
80101805: 89 3c 24 mov %edi,(%esp)
80101808: e8 d3 e9 ff ff call 801001e0 <brelse>
return iget(dev, inum);
8010180d: 83 c4 10 add $0x10,%esp
}
brelse(bp);
}
panic("ialloc: no inodes");
}
80101810: 8d 65 f4 lea -0xc(%ebp),%esp
if(dip->type == 0){ // a free inode
memset(dip, 0, sizeof(*dip));
dip->type = type;
log_write(bp); // mark it allocated on the disk
brelse(bp);
return iget(dev, inum);
80101813: 89 da mov %ebx,%edx
80101815: 89 f0 mov %esi,%eax
}
brelse(bp);
}
panic("ialloc: no inodes");
}
80101817: 5b pop %ebx
80101818: 5e pop %esi
80101819: 5f pop %edi
8010181a: 5d pop %ebp
if(dip->type == 0){ // a free inode
memset(dip, 0, sizeof(*dip));
dip->type = type;
log_write(bp); // mark it allocated on the disk
brelse(bp);
return iget(dev, inum);
8010181b: e9 10 fb ff ff jmp 80101330 <iget>
}
brelse(bp);
}
panic("ialloc: no inodes");
80101820: 83 ec 0c sub $0xc,%esp
80101823: 68 1c 77 10 80 push $0x8010771c
80101828: e8 73 ec ff ff call 801004a0 <panic>
8010182d: 8d 76 00 lea 0x0(%esi),%esi
80101830 <iupdate>:
// Must be called after every change to an ip->xxx field
// that lives on disk, since i-node cache is write-through.
// Caller must hold ip->lock.
void
iupdate(struct inode *ip)
{
80101830: 55 push %ebp
80101831: 89 e5 mov %esp,%ebp
80101833: 56 push %esi
80101834: 53 push %ebx
80101835: 8b 5d 08 mov 0x8(%ebp),%ebx
struct buf *bp;
struct dinode *dip;
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
80101838: 83 ec 08 sub $0x8,%esp
8010183b: 8b 43 04 mov 0x4(%ebx),%eax
dip->type = ip->type;
dip->major = ip->major;
dip->minor = ip->minor;
dip->nlink = ip->nlink;
dip->size = ip->size;
memmove(dip->addrs, ip->addrs, sizeof(ip->addrs));
8010183e: 83 c3 5c add $0x5c,%ebx
iupdate(struct inode *ip)
{
struct buf *bp;
struct dinode *dip;
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
80101841: c1 e8 03 shr $0x3,%eax
80101844: 03 05 d4 19 11 80 add 0x801119d4,%eax
8010184a: 50 push %eax
8010184b: ff 73 a4 pushl -0x5c(%ebx)
8010184e: e8 7d e8 ff ff call 801000d0 <bread>
80101853: 89 c6 mov %eax,%esi
dip = (struct dinode*)bp->data + ip->inum%IPB;
80101855: 8b 43 a8 mov -0x58(%ebx),%eax
dip->type = ip->type;
80101858: 0f b7 53 f4 movzwl -0xc(%ebx),%edx
dip->major = ip->major;
dip->minor = ip->minor;
dip->nlink = ip->nlink;
dip->size = ip->size;
memmove(dip->addrs, ip->addrs, sizeof(ip->addrs));
8010185c: 83 c4 0c add $0xc,%esp
{
struct buf *bp;
struct dinode *dip;
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
dip = (struct dinode*)bp->data + ip->inum%IPB;
8010185f: 83 e0 07 and $0x7,%eax
80101862: c1 e0 06 shl $0x6,%eax
80101865: 8d 44 06 5c lea 0x5c(%esi,%eax,1),%eax
dip->type = ip->type;
80101869: 66 89 10 mov %dx,(%eax)
dip->major = ip->major;
8010186c: 0f b7 53 f6 movzwl -0xa(%ebx),%edx
dip->minor = ip->minor;
dip->nlink = ip->nlink;
dip->size = ip->size;
memmove(dip->addrs, ip->addrs, sizeof(ip->addrs));
80101870: 83 c0 0c add $0xc,%eax
struct dinode *dip;
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
dip = (struct dinode*)bp->data + ip->inum%IPB;
dip->type = ip->type;
dip->major = ip->major;
80101873: 66 89 50 f6 mov %dx,-0xa(%eax)
dip->minor = ip->minor;
80101877: 0f b7 53 f8 movzwl -0x8(%ebx),%edx
8010187b: 66 89 50 f8 mov %dx,-0x8(%eax)
dip->nlink = ip->nlink;
8010187f: 0f b7 53 fa movzwl -0x6(%ebx),%edx
80101883: 66 89 50 fa mov %dx,-0x6(%eax)
dip->size = ip->size;
80101887: 8b 53 fc mov -0x4(%ebx),%edx
8010188a: 89 50 fc mov %edx,-0x4(%eax)
memmove(dip->addrs, ip->addrs, sizeof(ip->addrs));
8010188d: 6a 34 push $0x34
8010188f: 53 push %ebx
80101890: 50 push %eax
80101891: e8 8a 2e 00 00 call 80104720 <memmove>
log_write(bp);
80101896: 89 34 24 mov %esi,(%esp)
80101899: e8 02 17 00 00 call 80102fa0 <log_write>
brelse(bp);
8010189e: 89 75 08 mov %esi,0x8(%ebp)
801018a1: 83 c4 10 add $0x10,%esp
}
801018a4: 8d 65 f8 lea -0x8(%ebp),%esp
801018a7: 5b pop %ebx
801018a8: 5e pop %esi
801018a9: 5d pop %ebp
dip->minor = ip->minor;
dip->nlink = ip->nlink;
dip->size = ip->size;
memmove(dip->addrs, ip->addrs, sizeof(ip->addrs));
log_write(bp);
brelse(bp);
801018aa: e9 31 e9 ff ff jmp 801001e0 <brelse>
801018af: 90 nop
801018b0 <idup>:
// Increment reference count for ip.
// Returns ip to enable ip = idup(ip1) idiom.
struct inode*
idup(struct inode *ip)
{
801018b0: 55 push %ebp
801018b1: 89 e5 mov %esp,%ebp
801018b3: 53 push %ebx
801018b4: 83 ec 10 sub $0x10,%esp
801018b7: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&icache.lock);
801018ba: 68 e0 19 11 80 push $0x801119e0
801018bf: e8 3c 2c 00 00 call 80104500 <acquire>
ip->ref++;
801018c4: 83 43 08 01 addl $0x1,0x8(%ebx)
release(&icache.lock);
801018c8: c7 04 24 e0 19 11 80 movl $0x801119e0,(%esp)
801018cf: e8 4c 2d 00 00 call 80104620 <release>
return ip;
}
801018d4: 89 d8 mov %ebx,%eax
801018d6: 8b 5d fc mov -0x4(%ebp),%ebx
801018d9: c9 leave
801018da: c3 ret
801018db: 90 nop
801018dc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801018e0 <ilock>:
// Lock the given inode.
// Reads the inode from disk if necessary.
void
ilock(struct inode *ip)
{
801018e0: 55 push %ebp
801018e1: 89 e5 mov %esp,%ebp
801018e3: 56 push %esi
801018e4: 53 push %ebx
801018e5: 8b 5d 08 mov 0x8(%ebp),%ebx
struct buf *bp;
struct dinode *dip;
if(ip == 0 || ip->ref < 1)
801018e8: 85 db test %ebx,%ebx
801018ea: 0f 84 b7 00 00 00 je 801019a7 <ilock+0xc7>
801018f0: 8b 53 08 mov 0x8(%ebx),%edx
801018f3: 85 d2 test %edx,%edx
801018f5: 0f 8e ac 00 00 00 jle 801019a7 <ilock+0xc7>
panic("ilock");
acquiresleep(&ip->lock);
801018fb: 8d 43 0c lea 0xc(%ebx),%eax
801018fe: 83 ec 0c sub $0xc,%esp
80101901: 50 push %eax
80101902: e8 29 2a 00 00 call 80104330 <acquiresleep>
if(ip->valid == 0){
80101907: 8b 43 4c mov 0x4c(%ebx),%eax
8010190a: 83 c4 10 add $0x10,%esp
8010190d: 85 c0 test %eax,%eax
8010190f: 74 0f je 80101920 <ilock+0x40>
brelse(bp);
ip->valid = 1;
if(ip->type == 0)
panic("ilock: no type");
}
}
80101911: 8d 65 f8 lea -0x8(%ebp),%esp
80101914: 5b pop %ebx
80101915: 5e pop %esi
80101916: 5d pop %ebp
80101917: c3 ret
80101918: 90 nop
80101919: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
panic("ilock");
acquiresleep(&ip->lock);
if(ip->valid == 0){
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
80101920: 8b 43 04 mov 0x4(%ebx),%eax
80101923: 83 ec 08 sub $0x8,%esp
80101926: c1 e8 03 shr $0x3,%eax
80101929: 03 05 d4 19 11 80 add 0x801119d4,%eax
8010192f: 50 push %eax
80101930: ff 33 pushl (%ebx)
80101932: e8 99 e7 ff ff call 801000d0 <bread>
80101937: 89 c6 mov %eax,%esi
dip = (struct dinode*)bp->data + ip->inum%IPB;
80101939: 8b 43 04 mov 0x4(%ebx),%eax
ip->type = dip->type;
ip->major = dip->major;
ip->minor = dip->minor;
ip->nlink = dip->nlink;
ip->size = dip->size;
memmove(ip->addrs, dip->addrs, sizeof(ip->addrs));
8010193c: 83 c4 0c add $0xc,%esp
acquiresleep(&ip->lock);
if(ip->valid == 0){
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
dip = (struct dinode*)bp->data + ip->inum%IPB;
8010193f: 83 e0 07 and $0x7,%eax
80101942: c1 e0 06 shl $0x6,%eax
80101945: 8d 44 06 5c lea 0x5c(%esi,%eax,1),%eax
ip->type = dip->type;
80101949: 0f b7 10 movzwl (%eax),%edx
ip->major = dip->major;
ip->minor = dip->minor;
ip->nlink = dip->nlink;
ip->size = dip->size;
memmove(ip->addrs, dip->addrs, sizeof(ip->addrs));
8010194c: 83 c0 0c add $0xc,%eax
acquiresleep(&ip->lock);
if(ip->valid == 0){
bp = bread(ip->dev, IBLOCK(ip->inum, sb));
dip = (struct dinode*)bp->data + ip->inum%IPB;
ip->type = dip->type;
8010194f: 66 89 53 50 mov %dx,0x50(%ebx)
ip->major = dip->major;
80101953: 0f b7 50 f6 movzwl -0xa(%eax),%edx
80101957: 66 89 53 52 mov %dx,0x52(%ebx)
ip->minor = dip->minor;
8010195b: 0f b7 50 f8 movzwl -0x8(%eax),%edx
8010195f: 66 89 53 54 mov %dx,0x54(%ebx)
ip->nlink = dip->nlink;
80101963: 0f b7 50 fa movzwl -0x6(%eax),%edx
80101967: 66 89 53 56 mov %dx,0x56(%ebx)
ip->size = dip->size;
8010196b: 8b 50 fc mov -0x4(%eax),%edx
8010196e: 89 53 58 mov %edx,0x58(%ebx)
memmove(ip->addrs, dip->addrs, sizeof(ip->addrs));
80101971: 6a 34 push $0x34
80101973: 50 push %eax
80101974: 8d 43 5c lea 0x5c(%ebx),%eax
80101977: 50 push %eax
80101978: e8 a3 2d 00 00 call 80104720 <memmove>
brelse(bp);
8010197d: 89 34 24 mov %esi,(%esp)
80101980: e8 5b e8 ff ff call 801001e0 <brelse>
ip->valid = 1;
if(ip->type == 0)
80101985: 83 c4 10 add $0x10,%esp
80101988: 66 83 7b 50 00 cmpw $0x0,0x50(%ebx)
ip->minor = dip->minor;
ip->nlink = dip->nlink;
ip->size = dip->size;
memmove(ip->addrs, dip->addrs, sizeof(ip->addrs));
brelse(bp);
ip->valid = 1;
8010198d: c7 43 4c 01 00 00 00 movl $0x1,0x4c(%ebx)
if(ip->type == 0)
80101994: 0f 85 77 ff ff ff jne 80101911 <ilock+0x31>
panic("ilock: no type");
8010199a: 83 ec 0c sub $0xc,%esp
8010199d: 68 34 77 10 80 push $0x80107734
801019a2: e8 f9 ea ff ff call 801004a0 <panic>
{
struct buf *bp;
struct dinode *dip;
if(ip == 0 || ip->ref < 1)
panic("ilock");
801019a7: 83 ec 0c sub $0xc,%esp
801019aa: 68 2e 77 10 80 push $0x8010772e
801019af: e8 ec ea ff ff call 801004a0 <panic>
801019b4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801019ba: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
801019c0 <iunlock>:
}
// Unlock the given inode.
void
iunlock(struct inode *ip)
{
801019c0: 55 push %ebp
801019c1: 89 e5 mov %esp,%ebp
801019c3: 56 push %esi
801019c4: 53 push %ebx
801019c5: 8b 5d 08 mov 0x8(%ebp),%ebx
if(ip == 0 || !holdingsleep(&ip->lock) || ip->ref < 1)
801019c8: 85 db test %ebx,%ebx
801019ca: 74 28 je 801019f4 <iunlock+0x34>
801019cc: 8d 73 0c lea 0xc(%ebx),%esi
801019cf: 83 ec 0c sub $0xc,%esp
801019d2: 56 push %esi
801019d3: e8 f8 29 00 00 call 801043d0 <holdingsleep>
801019d8: 83 c4 10 add $0x10,%esp
801019db: 85 c0 test %eax,%eax
801019dd: 74 15 je 801019f4 <iunlock+0x34>
801019df: 8b 43 08 mov 0x8(%ebx),%eax
801019e2: 85 c0 test %eax,%eax
801019e4: 7e 0e jle 801019f4 <iunlock+0x34>
panic("iunlock");
releasesleep(&ip->lock);
801019e6: 89 75 08 mov %esi,0x8(%ebp)
}
801019e9: 8d 65 f8 lea -0x8(%ebp),%esp
801019ec: 5b pop %ebx
801019ed: 5e pop %esi
801019ee: 5d pop %ebp
iunlock(struct inode *ip)
{
if(ip == 0 || !holdingsleep(&ip->lock) || ip->ref < 1)
panic("iunlock");
releasesleep(&ip->lock);
801019ef: e9 9c 29 00 00 jmp 80104390 <releasesleep>
// Unlock the given inode.
void
iunlock(struct inode *ip)
{
if(ip == 0 || !holdingsleep(&ip->lock) || ip->ref < 1)
panic("iunlock");
801019f4: 83 ec 0c sub $0xc,%esp
801019f7: 68 43 77 10 80 push $0x80107743
801019fc: e8 9f ea ff ff call 801004a0 <panic>
80101a01: eb 0d jmp 80101a10 <iput>
80101a03: 90 nop
80101a04: 90 nop
80101a05: 90 nop
80101a06: 90 nop
80101a07: 90 nop
80101a08: 90 nop
80101a09: 90 nop
80101a0a: 90 nop
80101a0b: 90 nop
80101a0c: 90 nop
80101a0d: 90 nop
80101a0e: 90 nop
80101a0f: 90 nop
80101a10 <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)
{
80101a10: 55 push %ebp
80101a11: 89 e5 mov %esp,%ebp
80101a13: 57 push %edi
80101a14: 56 push %esi
80101a15: 53 push %ebx
80101a16: 83 ec 28 sub $0x28,%esp
80101a19: 8b 75 08 mov 0x8(%ebp),%esi
acquiresleep(&ip->lock);
80101a1c: 8d 7e 0c lea 0xc(%esi),%edi
80101a1f: 57 push %edi
80101a20: e8 0b 29 00 00 call 80104330 <acquiresleep>
if(ip->valid && ip->nlink == 0){
80101a25: 8b 56 4c mov 0x4c(%esi),%edx
80101a28: 83 c4 10 add $0x10,%esp
80101a2b: 85 d2 test %edx,%edx
80101a2d: 74 07 je 80101a36 <iput+0x26>
80101a2f: 66 83 7e 56 00 cmpw $0x0,0x56(%esi)
80101a34: 74 32 je 80101a68 <iput+0x58>
ip->type = 0;
iupdate(ip);
ip->valid = 0;
}
}
releasesleep(&ip->lock);
80101a36: 83 ec 0c sub $0xc,%esp
80101a39: 57 push %edi
80101a3a: e8 51 29 00 00 call 80104390 <releasesleep>
acquire(&icache.lock);
80101a3f: c7 04 24 e0 19 11 80 movl $0x801119e0,(%esp)
80101a46: e8 b5 2a 00 00 call 80104500 <acquire>
ip->ref--;
80101a4b: 83 6e 08 01 subl $0x1,0x8(%esi)
release(&icache.lock);
80101a4f: 83 c4 10 add $0x10,%esp
80101a52: c7 45 08 e0 19 11 80 movl $0x801119e0,0x8(%ebp)
}
80101a59: 8d 65 f4 lea -0xc(%ebp),%esp
80101a5c: 5b pop %ebx
80101a5d: 5e pop %esi
80101a5e: 5f pop %edi
80101a5f: 5d pop %ebp
}
releasesleep(&ip->lock);
acquire(&icache.lock);
ip->ref--;
release(&icache.lock);
80101a60: e9 bb 2b 00 00 jmp 80104620 <release>
80101a65: 8d 76 00 lea 0x0(%esi),%esi
void
iput(struct inode *ip)
{
acquiresleep(&ip->lock);
if(ip->valid && ip->nlink == 0){
acquire(&icache.lock);
80101a68: 83 ec 0c sub $0xc,%esp
80101a6b: 68 e0 19 11 80 push $0x801119e0
80101a70: e8 8b 2a 00 00 call 80104500 <acquire>
int r = ip->ref;
80101a75: 8b 5e 08 mov 0x8(%esi),%ebx
release(&icache.lock);
80101a78: c7 04 24 e0 19 11 80 movl $0x801119e0,(%esp)
80101a7f: e8 9c 2b 00 00 call 80104620 <release>
if(r == 1){
80101a84: 83 c4 10 add $0x10,%esp
80101a87: 83 fb 01 cmp $0x1,%ebx
80101a8a: 75 aa jne 80101a36 <iput+0x26>
80101a8c: 8d 8e 8c 00 00 00 lea 0x8c(%esi),%ecx
80101a92: 89 7d e4 mov %edi,-0x1c(%ebp)
80101a95: 8d 5e 5c lea 0x5c(%esi),%ebx
80101a98: 89 cf mov %ecx,%edi
80101a9a: eb 0b jmp 80101aa7 <iput+0x97>
80101a9c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101aa0: 83 c3 04 add $0x4,%ebx
{
int i, j;
struct buf *bp;
uint *a;
for(i = 0; i < NDIRECT; i++){
80101aa3: 39 fb cmp %edi,%ebx
80101aa5: 74 19 je 80101ac0 <iput+0xb0>
if(ip->addrs[i]){
80101aa7: 8b 13 mov (%ebx),%edx
80101aa9: 85 d2 test %edx,%edx
80101aab: 74 f3 je 80101aa0 <iput+0x90>
bfree(ip->dev, ip->addrs[i]);
80101aad: 8b 06 mov (%esi),%eax
80101aaf: e8 5c fa ff ff call 80101510 <bfree>
ip->addrs[i] = 0;
80101ab4: c7 03 00 00 00 00 movl $0x0,(%ebx)
80101aba: eb e4 jmp 80101aa0 <iput+0x90>
80101abc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
}
}
if(ip->addrs[NDIRECT]){
80101ac0: 8b 86 8c 00 00 00 mov 0x8c(%esi),%eax
80101ac6: 8b 7d e4 mov -0x1c(%ebp),%edi
80101ac9: 85 c0 test %eax,%eax
80101acb: 75 33 jne 80101b00 <iput+0xf0>
bfree(ip->dev, ip->addrs[NDIRECT]);
ip->addrs[NDIRECT] = 0;
}
ip->size = 0;
iupdate(ip);
80101acd: 83 ec 0c sub $0xc,%esp
brelse(bp);
bfree(ip->dev, ip->addrs[NDIRECT]);
ip->addrs[NDIRECT] = 0;
}
ip->size = 0;
80101ad0: c7 46 58 00 00 00 00 movl $0x0,0x58(%esi)
iupdate(ip);
80101ad7: 56 push %esi
80101ad8: e8 53 fd ff ff call 80101830 <iupdate>
int r = ip->ref;
release(&icache.lock);
if(r == 1){
// inode has no links and no other references: truncate and free.
itrunc(ip);
ip->type = 0;
80101add: 31 c0 xor %eax,%eax
80101adf: 66 89 46 50 mov %ax,0x50(%esi)
iupdate(ip);
80101ae3: 89 34 24 mov %esi,(%esp)
80101ae6: e8 45 fd ff ff call 80101830 <iupdate>
ip->valid = 0;
80101aeb: c7 46 4c 00 00 00 00 movl $0x0,0x4c(%esi)
80101af2: 83 c4 10 add $0x10,%esp
80101af5: e9 3c ff ff ff jmp 80101a36 <iput+0x26>
80101afa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
ip->addrs[i] = 0;
}
}
if(ip->addrs[NDIRECT]){
bp = bread(ip->dev, ip->addrs[NDIRECT]);
80101b00: 83 ec 08 sub $0x8,%esp
80101b03: 50 push %eax
80101b04: ff 36 pushl (%esi)
80101b06: e8 c5 e5 ff ff call 801000d0 <bread>
80101b0b: 8d 88 5c 02 00 00 lea 0x25c(%eax),%ecx
80101b11: 89 7d e0 mov %edi,-0x20(%ebp)
80101b14: 89 45 e4 mov %eax,-0x1c(%ebp)
a = (uint*)bp->data;
80101b17: 8d 58 5c lea 0x5c(%eax),%ebx
80101b1a: 83 c4 10 add $0x10,%esp
80101b1d: 89 cf mov %ecx,%edi
80101b1f: eb 0e jmp 80101b2f <iput+0x11f>
80101b21: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80101b28: 83 c3 04 add $0x4,%ebx
for(j = 0; j < NINDIRECT; j++){
80101b2b: 39 fb cmp %edi,%ebx
80101b2d: 74 0f je 80101b3e <iput+0x12e>
if(a[j])
80101b2f: 8b 13 mov (%ebx),%edx
80101b31: 85 d2 test %edx,%edx
80101b33: 74 f3 je 80101b28 <iput+0x118>
bfree(ip->dev, a[j]);
80101b35: 8b 06 mov (%esi),%eax
80101b37: e8 d4 f9 ff ff call 80101510 <bfree>
80101b3c: eb ea jmp 80101b28 <iput+0x118>
}
brelse(bp);
80101b3e: 83 ec 0c sub $0xc,%esp
80101b41: ff 75 e4 pushl -0x1c(%ebp)
80101b44: 8b 7d e0 mov -0x20(%ebp),%edi
80101b47: e8 94 e6 ff ff call 801001e0 <brelse>
bfree(ip->dev, ip->addrs[NDIRECT]);
80101b4c: 8b 96 8c 00 00 00 mov 0x8c(%esi),%edx
80101b52: 8b 06 mov (%esi),%eax
80101b54: e8 b7 f9 ff ff call 80101510 <bfree>
ip->addrs[NDIRECT] = 0;
80101b59: c7 86 8c 00 00 00 00 movl $0x0,0x8c(%esi)
80101b60: 00 00 00
80101b63: 83 c4 10 add $0x10,%esp
80101b66: e9 62 ff ff ff jmp 80101acd <iput+0xbd>
80101b6b: 90 nop
80101b6c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101b70 <iunlockput>:
}
// Common idiom: unlock, then put.
void
iunlockput(struct inode *ip)
{
80101b70: 55 push %ebp
80101b71: 89 e5 mov %esp,%ebp
80101b73: 53 push %ebx
80101b74: 83 ec 10 sub $0x10,%esp
80101b77: 8b 5d 08 mov 0x8(%ebp),%ebx
iunlock(ip);
80101b7a: 53 push %ebx
80101b7b: e8 40 fe ff ff call 801019c0 <iunlock>
iput(ip);
80101b80: 89 5d 08 mov %ebx,0x8(%ebp)
80101b83: 83 c4 10 add $0x10,%esp
}
80101b86: 8b 5d fc mov -0x4(%ebp),%ebx
80101b89: c9 leave
// Common idiom: unlock, then put.
void
iunlockput(struct inode *ip)
{
iunlock(ip);
iput(ip);
80101b8a: e9 81 fe ff ff jmp 80101a10 <iput>
80101b8f: 90 nop
80101b90 <stati>:
// Copy stat information from inode.
// Caller must hold ip->lock.
void
stati(struct inode *ip, struct stat *st)
{
80101b90: 55 push %ebp
80101b91: 89 e5 mov %esp,%ebp
80101b93: 8b 55 08 mov 0x8(%ebp),%edx
80101b96: 8b 45 0c mov 0xc(%ebp),%eax
st->dev = ip->dev;
80101b99: 8b 0a mov (%edx),%ecx
80101b9b: 89 48 04 mov %ecx,0x4(%eax)
st->ino = ip->inum;
80101b9e: 8b 4a 04 mov 0x4(%edx),%ecx
80101ba1: 89 48 08 mov %ecx,0x8(%eax)
st->type = ip->type;
80101ba4: 0f b7 4a 50 movzwl 0x50(%edx),%ecx
80101ba8: 66 89 08 mov %cx,(%eax)
st->nlink = ip->nlink;
80101bab: 0f b7 4a 56 movzwl 0x56(%edx),%ecx
80101baf: 66 89 48 0c mov %cx,0xc(%eax)
st->size = ip->size;
80101bb3: 8b 52 58 mov 0x58(%edx),%edx
80101bb6: 89 50 10 mov %edx,0x10(%eax)
}
80101bb9: 5d pop %ebp
80101bba: c3 ret
80101bbb: 90 nop
80101bbc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101bc0 <readi>:
//PAGEBREAK!
// Read data from inode.
// Caller must hold ip->lock.
int
readi(struct inode *ip, char *dst, uint off, uint n)
{
80101bc0: 55 push %ebp
80101bc1: 89 e5 mov %esp,%ebp
80101bc3: 57 push %edi
80101bc4: 56 push %esi
80101bc5: 53 push %ebx
80101bc6: 83 ec 1c sub $0x1c,%esp
80101bc9: 8b 45 08 mov 0x8(%ebp),%eax
80101bcc: 8b 7d 0c mov 0xc(%ebp),%edi
80101bcf: 8b 75 10 mov 0x10(%ebp),%esi
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
80101bd2: 66 83 78 50 03 cmpw $0x3,0x50(%eax)
//PAGEBREAK!
// Read data from inode.
// Caller must hold ip->lock.
int
readi(struct inode *ip, char *dst, uint off, uint n)
{
80101bd7: 89 7d e0 mov %edi,-0x20(%ebp)
80101bda: 8b 7d 14 mov 0x14(%ebp),%edi
80101bdd: 89 45 d8 mov %eax,-0x28(%ebp)
80101be0: 89 7d e4 mov %edi,-0x1c(%ebp)
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
80101be3: 0f 84 a7 00 00 00 je 80101c90 <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)
80101be9: 8b 45 d8 mov -0x28(%ebp),%eax
80101bec: 8b 40 58 mov 0x58(%eax),%eax
80101bef: 39 f0 cmp %esi,%eax
80101bf1: 0f 82 c1 00 00 00 jb 80101cb8 <readi+0xf8>
80101bf7: 8b 7d e4 mov -0x1c(%ebp),%edi
80101bfa: 89 fa mov %edi,%edx
80101bfc: 01 f2 add %esi,%edx
80101bfe: 0f 82 b4 00 00 00 jb 80101cb8 <readi+0xf8>
return -1;
if(off + n > ip->size)
n = ip->size - off;
80101c04: 89 c1 mov %eax,%ecx
80101c06: 29 f1 sub %esi,%ecx
80101c08: 39 d0 cmp %edx,%eax
80101c0a: 0f 43 cf cmovae %edi,%ecx
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
80101c0d: 31 ff xor %edi,%edi
80101c0f: 85 c9 test %ecx,%ecx
}
if(off > ip->size || off + n < off)
return -1;
if(off + n > ip->size)
n = ip->size - off;
80101c11: 89 4d e4 mov %ecx,-0x1c(%ebp)
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
80101c14: 74 6d je 80101c83 <readi+0xc3>
80101c16: 8d 76 00 lea 0x0(%esi),%esi
80101c19: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
bp = bread(ip->dev, bmap(ip, off/BSIZE));
80101c20: 8b 5d d8 mov -0x28(%ebp),%ebx
80101c23: 89 f2 mov %esi,%edx
80101c25: c1 ea 09 shr $0x9,%edx
80101c28: 89 d8 mov %ebx,%eax
80101c2a: e8 d1 f7 ff ff call 80101400 <bmap>
80101c2f: 83 ec 08 sub $0x8,%esp
80101c32: 50 push %eax
80101c33: ff 33 pushl (%ebx)
m = min(n - tot, BSIZE - off%BSIZE);
80101c35: bb 00 02 00 00 mov $0x200,%ebx
return -1;
if(off + n > ip->size)
n = ip->size - off;
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
bp = bread(ip->dev, bmap(ip, off/BSIZE));
80101c3a: e8 91 e4 ff ff call 801000d0 <bread>
80101c3f: 89 c2 mov %eax,%edx
m = min(n - tot, BSIZE - off%BSIZE);
80101c41: 8b 45 e4 mov -0x1c(%ebp),%eax
80101c44: 89 f1 mov %esi,%ecx
80101c46: 81 e1 ff 01 00 00 and $0x1ff,%ecx
80101c4c: 83 c4 0c add $0xc,%esp
memmove(dst, bp->data + off%BSIZE, m);
80101c4f: 89 55 dc mov %edx,-0x24(%ebp)
if(off + n > ip->size)
n = ip->size - off;
for(tot=0; tot<n; tot+=m, off+=m, dst+=m){
bp = bread(ip->dev, bmap(ip, off/BSIZE));
m = min(n - tot, BSIZE - off%BSIZE);
80101c52: 29 cb sub %ecx,%ebx
80101c54: 29 f8 sub %edi,%eax
80101c56: 39 c3 cmp %eax,%ebx
80101c58: 0f 47 d8 cmova %eax,%ebx
memmove(dst, bp->data + off%BSIZE, m);
80101c5b: 8d 44 0a 5c lea 0x5c(%edx,%ecx,1),%eax
80101c5f: 53 push %ebx
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){
80101c60: 01 df add %ebx,%edi
80101c62: 01 de add %ebx,%esi
bp = bread(ip->dev, bmap(ip, off/BSIZE));
m = min(n - tot, BSIZE - off%BSIZE);
memmove(dst, bp->data + off%BSIZE, m);
80101c64: 50 push %eax
80101c65: ff 75 e0 pushl -0x20(%ebp)
80101c68: e8 b3 2a 00 00 call 80104720 <memmove>
brelse(bp);
80101c6d: 8b 55 dc mov -0x24(%ebp),%edx
80101c70: 89 14 24 mov %edx,(%esp)
80101c73: e8 68 e5 ff ff call 801001e0 <brelse>
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){
80101c78: 01 5d e0 add %ebx,-0x20(%ebp)
80101c7b: 83 c4 10 add $0x10,%esp
80101c7e: 39 7d e4 cmp %edi,-0x1c(%ebp)
80101c81: 77 9d ja 80101c20 <readi+0x60>
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;
80101c83: 8b 45 e4 mov -0x1c(%ebp),%eax
}
80101c86: 8d 65 f4 lea -0xc(%ebp),%esp
80101c89: 5b pop %ebx
80101c8a: 5e pop %esi
80101c8b: 5f pop %edi
80101c8c: 5d pop %ebp
80101c8d: c3 ret
80101c8e: 66 90 xchg %ax,%ax
{
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read)
80101c90: 0f bf 40 52 movswl 0x52(%eax),%eax
80101c94: 66 83 f8 09 cmp $0x9,%ax
80101c98: 77 1e ja 80101cb8 <readi+0xf8>
80101c9a: 8b 04 c5 60 19 11 80 mov -0x7feee6a0(,%eax,8),%eax
80101ca1: 85 c0 test %eax,%eax
80101ca3: 74 13 je 80101cb8 <readi+0xf8>
return -1;
return devsw[ip->major].read(ip, dst, n);
80101ca5: 89 7d 10 mov %edi,0x10(%ebp)
m = min(n - tot, BSIZE - off%BSIZE);
memmove(dst, bp->data + off%BSIZE, m);
brelse(bp);
}
return n;
}
80101ca8: 8d 65 f4 lea -0xc(%ebp),%esp
80101cab: 5b pop %ebx
80101cac: 5e pop %esi
80101cad: 5f pop %edi
80101cae: 5d pop %ebp
struct buf *bp;
if(ip->type == T_DEV){
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read)
return -1;
return devsw[ip->major].read(ip, dst, n);
80101caf: ff e0 jmp *%eax
80101cb1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].read)
return -1;
80101cb8: b8 ff ff ff ff mov $0xffffffff,%eax
80101cbd: eb c7 jmp 80101c86 <readi+0xc6>
80101cbf: 90 nop
80101cc0 <writei>:
// PAGEBREAK!
// Write data to inode.
// Caller must hold ip->lock.
int
writei(struct inode *ip, char *src, uint off, uint n)
{
80101cc0: 55 push %ebp
80101cc1: 89 e5 mov %esp,%ebp
80101cc3: 57 push %edi
80101cc4: 56 push %esi
80101cc5: 53 push %ebx
80101cc6: 83 ec 1c sub $0x1c,%esp
80101cc9: 8b 45 08 mov 0x8(%ebp),%eax
80101ccc: 8b 75 0c mov 0xc(%ebp),%esi
80101ccf: 8b 7d 14 mov 0x14(%ebp),%edi
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
80101cd2: 66 83 78 50 03 cmpw $0x3,0x50(%eax)
// PAGEBREAK!
// Write data to inode.
// Caller must hold ip->lock.
int
writei(struct inode *ip, char *src, uint off, uint n)
{
80101cd7: 89 75 dc mov %esi,-0x24(%ebp)
80101cda: 89 45 d8 mov %eax,-0x28(%ebp)
80101cdd: 8b 75 10 mov 0x10(%ebp),%esi
80101ce0: 89 7d e0 mov %edi,-0x20(%ebp)
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
80101ce3: 0f 84 b7 00 00 00 je 80101da0 <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)
80101ce9: 8b 45 d8 mov -0x28(%ebp),%eax
80101cec: 39 70 58 cmp %esi,0x58(%eax)
80101cef: 0f 82 eb 00 00 00 jb 80101de0 <writei+0x120>
80101cf5: 8b 7d e0 mov -0x20(%ebp),%edi
80101cf8: 89 f8 mov %edi,%eax
80101cfa: 01 f0 add %esi,%eax
return -1;
if(off + n > MAXFILE*BSIZE)
80101cfc: 3d 00 18 01 00 cmp $0x11800,%eax
80101d01: 0f 87 d9 00 00 00 ja 80101de0 <writei+0x120>
80101d07: 39 c6 cmp %eax,%esi
80101d09: 0f 87 d1 00 00 00 ja 80101de0 <writei+0x120>
return -1;
for(tot=0; tot<n; tot+=m, off+=m, src+=m){
80101d0f: 85 ff test %edi,%edi
80101d11: c7 45 e4 00 00 00 00 movl $0x0,-0x1c(%ebp)
80101d18: 74 78 je 80101d92 <writei+0xd2>
80101d1a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
bp = bread(ip->dev, bmap(ip, off/BSIZE));
80101d20: 8b 7d d8 mov -0x28(%ebp),%edi
80101d23: 89 f2 mov %esi,%edx
m = min(n - tot, BSIZE - off%BSIZE);
80101d25: bb 00 02 00 00 mov $0x200,%ebx
return -1;
if(off + n > MAXFILE*BSIZE)
return -1;
for(tot=0; tot<n; tot+=m, off+=m, src+=m){
bp = bread(ip->dev, bmap(ip, off/BSIZE));
80101d2a: c1 ea 09 shr $0x9,%edx
80101d2d: 89 f8 mov %edi,%eax
80101d2f: e8 cc f6 ff ff call 80101400 <bmap>
80101d34: 83 ec 08 sub $0x8,%esp
80101d37: 50 push %eax
80101d38: ff 37 pushl (%edi)
80101d3a: e8 91 e3 ff ff call 801000d0 <bread>
80101d3f: 89 c7 mov %eax,%edi
m = min(n - tot, BSIZE - off%BSIZE);
80101d41: 8b 45 e0 mov -0x20(%ebp),%eax
80101d44: 2b 45 e4 sub -0x1c(%ebp),%eax
80101d47: 89 f1 mov %esi,%ecx
80101d49: 83 c4 0c add $0xc,%esp
80101d4c: 81 e1 ff 01 00 00 and $0x1ff,%ecx
80101d52: 29 cb sub %ecx,%ebx
80101d54: 39 c3 cmp %eax,%ebx
80101d56: 0f 47 d8 cmova %eax,%ebx
memmove(bp->data + off%BSIZE, src, m);
80101d59: 8d 44 0f 5c lea 0x5c(%edi,%ecx,1),%eax
80101d5d: 53 push %ebx
80101d5e: ff 75 dc pushl -0x24(%ebp)
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){
80101d61: 01 de add %ebx,%esi
bp = bread(ip->dev, bmap(ip, off/BSIZE));
m = min(n - tot, BSIZE - off%BSIZE);
memmove(bp->data + off%BSIZE, src, m);
80101d63: 50 push %eax
80101d64: e8 b7 29 00 00 call 80104720 <memmove>
log_write(bp);
80101d69: 89 3c 24 mov %edi,(%esp)
80101d6c: e8 2f 12 00 00 call 80102fa0 <log_write>
brelse(bp);
80101d71: 89 3c 24 mov %edi,(%esp)
80101d74: e8 67 e4 ff ff call 801001e0 <brelse>
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){
80101d79: 01 5d e4 add %ebx,-0x1c(%ebp)
80101d7c: 01 5d dc add %ebx,-0x24(%ebp)
80101d7f: 83 c4 10 add $0x10,%esp
80101d82: 8b 55 e4 mov -0x1c(%ebp),%edx
80101d85: 39 55 e0 cmp %edx,-0x20(%ebp)
80101d88: 77 96 ja 80101d20 <writei+0x60>
memmove(bp->data + off%BSIZE, src, m);
log_write(bp);
brelse(bp);
}
if(n > 0 && off > ip->size){
80101d8a: 8b 45 d8 mov -0x28(%ebp),%eax
80101d8d: 3b 70 58 cmp 0x58(%eax),%esi
80101d90: 77 36 ja 80101dc8 <writei+0x108>
ip->size = off;
iupdate(ip);
}
return n;
80101d92: 8b 45 e0 mov -0x20(%ebp),%eax
}
80101d95: 8d 65 f4 lea -0xc(%ebp),%esp
80101d98: 5b pop %ebx
80101d99: 5e pop %esi
80101d9a: 5f pop %edi
80101d9b: 5d pop %ebp
80101d9c: c3 ret
80101d9d: 8d 76 00 lea 0x0(%esi),%esi
{
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write)
80101da0: 0f bf 40 52 movswl 0x52(%eax),%eax
80101da4: 66 83 f8 09 cmp $0x9,%ax
80101da8: 77 36 ja 80101de0 <writei+0x120>
80101daa: 8b 04 c5 64 19 11 80 mov -0x7feee69c(,%eax,8),%eax
80101db1: 85 c0 test %eax,%eax
80101db3: 74 2b je 80101de0 <writei+0x120>
return -1;
return devsw[ip->major].write(ip, src, n);
80101db5: 89 7d 10 mov %edi,0x10(%ebp)
if(n > 0 && off > ip->size){
ip->size = off;
iupdate(ip);
}
return n;
}
80101db8: 8d 65 f4 lea -0xc(%ebp),%esp
80101dbb: 5b pop %ebx
80101dbc: 5e pop %esi
80101dbd: 5f pop %edi
80101dbe: 5d pop %ebp
struct buf *bp;
if(ip->type == T_DEV){
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write)
return -1;
return devsw[ip->major].write(ip, src, n);
80101dbf: ff e0 jmp *%eax
80101dc1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
log_write(bp);
brelse(bp);
}
if(n > 0 && off > ip->size){
ip->size = off;
80101dc8: 8b 45 d8 mov -0x28(%ebp),%eax
iupdate(ip);
80101dcb: 83 ec 0c sub $0xc,%esp
log_write(bp);
brelse(bp);
}
if(n > 0 && off > ip->size){
ip->size = off;
80101dce: 89 70 58 mov %esi,0x58(%eax)
iupdate(ip);
80101dd1: 50 push %eax
80101dd2: e8 59 fa ff ff call 80101830 <iupdate>
80101dd7: 83 c4 10 add $0x10,%esp
80101dda: eb b6 jmp 80101d92 <writei+0xd2>
80101ddc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
uint tot, m;
struct buf *bp;
if(ip->type == T_DEV){
if(ip->major < 0 || ip->major >= NDEV || !devsw[ip->major].write)
return -1;
80101de0: b8 ff ff ff ff mov $0xffffffff,%eax
80101de5: eb ae jmp 80101d95 <writei+0xd5>
80101de7: 89 f6 mov %esi,%esi
80101de9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101df0 <namecmp>:
//PAGEBREAK!
// Directories
int
namecmp(const char *s, const char *t)
{
80101df0: 55 push %ebp
80101df1: 89 e5 mov %esp,%ebp
80101df3: 83 ec 0c sub $0xc,%esp
return strncmp(s, t, DIRSIZ);
80101df6: 6a 0e push $0xe
80101df8: ff 75 0c pushl 0xc(%ebp)
80101dfb: ff 75 08 pushl 0x8(%ebp)
80101dfe: e8 9d 29 00 00 call 801047a0 <strncmp>
}
80101e03: c9 leave
80101e04: c3 ret
80101e05: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80101e09: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80101e10 <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)
{
80101e10: 55 push %ebp
80101e11: 89 e5 mov %esp,%ebp
80101e13: 57 push %edi
80101e14: 56 push %esi
80101e15: 53 push %ebx
80101e16: 83 ec 1c sub $0x1c,%esp
80101e19: 8b 5d 08 mov 0x8(%ebp),%ebx
uint off, inum;
struct dirent de;
if(dp->type != T_DIR)
80101e1c: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx)
80101e21: 0f 85 80 00 00 00 jne 80101ea7 <dirlookup+0x97>
panic("dirlookup not DIR");
for(off = 0; off < dp->size; off += sizeof(de)){
80101e27: 8b 53 58 mov 0x58(%ebx),%edx
80101e2a: 31 ff xor %edi,%edi
80101e2c: 8d 75 d8 lea -0x28(%ebp),%esi
80101e2f: 85 d2 test %edx,%edx
80101e31: 75 0d jne 80101e40 <dirlookup+0x30>
80101e33: eb 5b jmp 80101e90 <dirlookup+0x80>
80101e35: 8d 76 00 lea 0x0(%esi),%esi
80101e38: 83 c7 10 add $0x10,%edi
80101e3b: 39 7b 58 cmp %edi,0x58(%ebx)
80101e3e: 76 50 jbe 80101e90 <dirlookup+0x80>
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
80101e40: 6a 10 push $0x10
80101e42: 57 push %edi
80101e43: 56 push %esi
80101e44: 53 push %ebx
80101e45: e8 76 fd ff ff call 80101bc0 <readi>
80101e4a: 83 c4 10 add $0x10,%esp
80101e4d: 83 f8 10 cmp $0x10,%eax
80101e50: 75 48 jne 80101e9a <dirlookup+0x8a>
panic("dirlookup read");
if(de.inum == 0)
80101e52: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp)
80101e57: 74 df je 80101e38 <dirlookup+0x28>
// Directories
int
namecmp(const char *s, const char *t)
{
return strncmp(s, t, DIRSIZ);
80101e59: 8d 45 da lea -0x26(%ebp),%eax
80101e5c: 83 ec 04 sub $0x4,%esp
80101e5f: 6a 0e push $0xe
80101e61: 50 push %eax
80101e62: ff 75 0c pushl 0xc(%ebp)
80101e65: e8 36 29 00 00 call 801047a0 <strncmp>
for(off = 0; off < dp->size; off += sizeof(de)){
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
panic("dirlookup read");
if(de.inum == 0)
continue;
if(namecmp(name, de.name) == 0){
80101e6a: 83 c4 10 add $0x10,%esp
80101e6d: 85 c0 test %eax,%eax
80101e6f: 75 c7 jne 80101e38 <dirlookup+0x28>
// entry matches path element
if(poff)
80101e71: 8b 45 10 mov 0x10(%ebp),%eax
80101e74: 85 c0 test %eax,%eax
80101e76: 74 05 je 80101e7d <dirlookup+0x6d>
*poff = off;
80101e78: 8b 45 10 mov 0x10(%ebp),%eax
80101e7b: 89 38 mov %edi,(%eax)
inum = de.inum;
return iget(dp->dev, inum);
80101e7d: 0f b7 55 d8 movzwl -0x28(%ebp),%edx
80101e81: 8b 03 mov (%ebx),%eax
80101e83: e8 a8 f4 ff ff call 80101330 <iget>
}
}
return 0;
}
80101e88: 8d 65 f4 lea -0xc(%ebp),%esp
80101e8b: 5b pop %ebx
80101e8c: 5e pop %esi
80101e8d: 5f pop %edi
80101e8e: 5d pop %ebp
80101e8f: c3 ret
80101e90: 8d 65 f4 lea -0xc(%ebp),%esp
inum = de.inum;
return iget(dp->dev, inum);
}
}
return 0;
80101e93: 31 c0 xor %eax,%eax
}
80101e95: 5b pop %ebx
80101e96: 5e pop %esi
80101e97: 5f pop %edi
80101e98: 5d pop %ebp
80101e99: c3 ret
if(dp->type != T_DIR)
panic("dirlookup not DIR");
for(off = 0; off < dp->size; off += sizeof(de)){
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
panic("dirlookup read");
80101e9a: 83 ec 0c sub $0xc,%esp
80101e9d: 68 5d 77 10 80 push $0x8010775d
80101ea2: e8 f9 e5 ff ff call 801004a0 <panic>
{
uint off, inum;
struct dirent de;
if(dp->type != T_DIR)
panic("dirlookup not DIR");
80101ea7: 83 ec 0c sub $0xc,%esp
80101eaa: 68 4b 77 10 80 push $0x8010774b
80101eaf: e8 ec e5 ff ff call 801004a0 <panic>
80101eb4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80101eba: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80101ec0 <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)
{
80101ec0: 55 push %ebp
80101ec1: 89 e5 mov %esp,%ebp
80101ec3: 57 push %edi
80101ec4: 56 push %esi
80101ec5: 53 push %ebx
80101ec6: 89 cf mov %ecx,%edi
80101ec8: 89 c3 mov %eax,%ebx
80101eca: 83 ec 1c sub $0x1c,%esp
struct inode *ip, *next;
if(*path == '/')
80101ecd: 80 38 2f cmpb $0x2f,(%eax)
// 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)
{
80101ed0: 89 55 e0 mov %edx,-0x20(%ebp)
struct inode *ip, *next;
if(*path == '/')
80101ed3: 0f 84 53 01 00 00 je 8010202c <namex+0x16c>
ip = iget(ROOTDEV, ROOTINO);
else
ip = idup(myproc()->cwd);
80101ed9: e8 12 1b 00 00 call 801039f0 <myproc>
// Increment reference count for ip.
// Returns ip to enable ip = idup(ip1) idiom.
struct inode*
idup(struct inode *ip)
{
acquire(&icache.lock);
80101ede: 83 ec 0c sub $0xc,%esp
struct inode *ip, *next;
if(*path == '/')
ip = iget(ROOTDEV, ROOTINO);
else
ip = idup(myproc()->cwd);
80101ee1: 8b 70 68 mov 0x68(%eax),%esi
// Increment reference count for ip.
// Returns ip to enable ip = idup(ip1) idiom.
struct inode*
idup(struct inode *ip)
{
acquire(&icache.lock);
80101ee4: 68 e0 19 11 80 push $0x801119e0
80101ee9: e8 12 26 00 00 call 80104500 <acquire>
ip->ref++;
80101eee: 83 46 08 01 addl $0x1,0x8(%esi)
release(&icache.lock);
80101ef2: c7 04 24 e0 19 11 80 movl $0x801119e0,(%esp)
80101ef9: e8 22 27 00 00 call 80104620 <release>
80101efe: 83 c4 10 add $0x10,%esp
80101f01: eb 08 jmp 80101f0b <namex+0x4b>
80101f03: 90 nop
80101f04: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
{
char *s;
int len;
while(*path == '/')
path++;
80101f08: 83 c3 01 add $0x1,%ebx
skipelem(char *path, char *name)
{
char *s;
int len;
while(*path == '/')
80101f0b: 0f b6 03 movzbl (%ebx),%eax
80101f0e: 3c 2f cmp $0x2f,%al
80101f10: 74 f6 je 80101f08 <namex+0x48>
path++;
if(*path == 0)
80101f12: 84 c0 test %al,%al
80101f14: 0f 84 e3 00 00 00 je 80101ffd <namex+0x13d>
return 0;
s = path;
while(*path != '/' && *path != 0)
80101f1a: 0f b6 03 movzbl (%ebx),%eax
80101f1d: 89 da mov %ebx,%edx
80101f1f: 84 c0 test %al,%al
80101f21: 0f 84 ac 00 00 00 je 80101fd3 <namex+0x113>
80101f27: 3c 2f cmp $0x2f,%al
80101f29: 75 09 jne 80101f34 <namex+0x74>
80101f2b: e9 a3 00 00 00 jmp 80101fd3 <namex+0x113>
80101f30: 84 c0 test %al,%al
80101f32: 74 0a je 80101f3e <namex+0x7e>
path++;
80101f34: 83 c2 01 add $0x1,%edx
while(*path == '/')
path++;
if(*path == 0)
return 0;
s = path;
while(*path != '/' && *path != 0)
80101f37: 0f b6 02 movzbl (%edx),%eax
80101f3a: 3c 2f cmp $0x2f,%al
80101f3c: 75 f2 jne 80101f30 <namex+0x70>
80101f3e: 89 d1 mov %edx,%ecx
80101f40: 29 d9 sub %ebx,%ecx
path++;
len = path - s;
if(len >= DIRSIZ)
80101f42: 83 f9 0d cmp $0xd,%ecx
80101f45: 0f 8e 8d 00 00 00 jle 80101fd8 <namex+0x118>
memmove(name, s, DIRSIZ);
80101f4b: 83 ec 04 sub $0x4,%esp
80101f4e: 89 55 e4 mov %edx,-0x1c(%ebp)
80101f51: 6a 0e push $0xe
80101f53: 53 push %ebx
80101f54: 57 push %edi
80101f55: e8 c6 27 00 00 call 80104720 <memmove>
path++;
if(*path == 0)
return 0;
s = path;
while(*path != '/' && *path != 0)
path++;
80101f5a: 8b 55 e4 mov -0x1c(%ebp),%edx
len = path - s;
if(len >= DIRSIZ)
memmove(name, s, DIRSIZ);
80101f5d: 83 c4 10 add $0x10,%esp
path++;
if(*path == 0)
return 0;
s = path;
while(*path != '/' && *path != 0)
path++;
80101f60: 89 d3 mov %edx,%ebx
memmove(name, s, DIRSIZ);
else {
memmove(name, s, len);
name[len] = 0;
}
while(*path == '/')
80101f62: 80 3a 2f cmpb $0x2f,(%edx)
80101f65: 75 11 jne 80101f78 <namex+0xb8>
80101f67: 89 f6 mov %esi,%esi
80101f69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
path++;
80101f70: 83 c3 01 add $0x1,%ebx
memmove(name, s, DIRSIZ);
else {
memmove(name, s, len);
name[len] = 0;
}
while(*path == '/')
80101f73: 80 3b 2f cmpb $0x2f,(%ebx)
80101f76: 74 f8 je 80101f70 <namex+0xb0>
ip = iget(ROOTDEV, ROOTINO);
else
ip = idup(myproc()->cwd);
while((path = skipelem(path, name)) != 0){
ilock(ip);
80101f78: 83 ec 0c sub $0xc,%esp
80101f7b: 56 push %esi
80101f7c: e8 5f f9 ff ff call 801018e0 <ilock>
if(ip->type != T_DIR){
80101f81: 83 c4 10 add $0x10,%esp
80101f84: 66 83 7e 50 01 cmpw $0x1,0x50(%esi)
80101f89: 0f 85 7f 00 00 00 jne 8010200e <namex+0x14e>
iunlockput(ip);
return 0;
}
if(nameiparent && *path == '\0'){
80101f8f: 8b 55 e0 mov -0x20(%ebp),%edx
80101f92: 85 d2 test %edx,%edx
80101f94: 74 09 je 80101f9f <namex+0xdf>
80101f96: 80 3b 00 cmpb $0x0,(%ebx)
80101f99: 0f 84 a3 00 00 00 je 80102042 <namex+0x182>
// Stop one level early.
iunlock(ip);
return ip;
}
if((next = dirlookup(ip, name, 0)) == 0){
80101f9f: 83 ec 04 sub $0x4,%esp
80101fa2: 6a 00 push $0x0
80101fa4: 57 push %edi
80101fa5: 56 push %esi
80101fa6: e8 65 fe ff ff call 80101e10 <dirlookup>
80101fab: 83 c4 10 add $0x10,%esp
80101fae: 85 c0 test %eax,%eax
80101fb0: 74 5c je 8010200e <namex+0x14e>
// Common idiom: unlock, then put.
void
iunlockput(struct inode *ip)
{
iunlock(ip);
80101fb2: 83 ec 0c sub $0xc,%esp
80101fb5: 89 45 e4 mov %eax,-0x1c(%ebp)
80101fb8: 56 push %esi
80101fb9: e8 02 fa ff ff call 801019c0 <iunlock>
iput(ip);
80101fbe: 89 34 24 mov %esi,(%esp)
80101fc1: e8 4a fa ff ff call 80101a10 <iput>
80101fc6: 8b 45 e4 mov -0x1c(%ebp),%eax
80101fc9: 83 c4 10 add $0x10,%esp
80101fcc: 89 c6 mov %eax,%esi
80101fce: e9 38 ff ff ff jmp 80101f0b <namex+0x4b>
while(*path == '/')
path++;
if(*path == 0)
return 0;
s = path;
while(*path != '/' && *path != 0)
80101fd3: 31 c9 xor %ecx,%ecx
80101fd5: 8d 76 00 lea 0x0(%esi),%esi
path++;
len = path - s;
if(len >= DIRSIZ)
memmove(name, s, DIRSIZ);
else {
memmove(name, s, len);
80101fd8: 83 ec 04 sub $0x4,%esp
80101fdb: 89 55 dc mov %edx,-0x24(%ebp)
80101fde: 89 4d e4 mov %ecx,-0x1c(%ebp)
80101fe1: 51 push %ecx
80101fe2: 53 push %ebx
80101fe3: 57 push %edi
80101fe4: e8 37 27 00 00 call 80104720 <memmove>
name[len] = 0;
80101fe9: 8b 4d e4 mov -0x1c(%ebp),%ecx
80101fec: 8b 55 dc mov -0x24(%ebp),%edx
80101fef: 83 c4 10 add $0x10,%esp
80101ff2: c6 04 0f 00 movb $0x0,(%edi,%ecx,1)
80101ff6: 89 d3 mov %edx,%ebx
80101ff8: e9 65 ff ff ff jmp 80101f62 <namex+0xa2>
return 0;
}
iunlockput(ip);
ip = next;
}
if(nameiparent){
80101ffd: 8b 45 e0 mov -0x20(%ebp),%eax
80102000: 85 c0 test %eax,%eax
80102002: 75 54 jne 80102058 <namex+0x198>
80102004: 89 f0 mov %esi,%eax
iput(ip);
return 0;
}
return ip;
}
80102006: 8d 65 f4 lea -0xc(%ebp),%esp
80102009: 5b pop %ebx
8010200a: 5e pop %esi
8010200b: 5f pop %edi
8010200c: 5d pop %ebp
8010200d: c3 ret
// Common idiom: unlock, then put.
void
iunlockput(struct inode *ip)
{
iunlock(ip);
8010200e: 83 ec 0c sub $0xc,%esp
80102011: 56 push %esi
80102012: e8 a9 f9 ff ff call 801019c0 <iunlock>
iput(ip);
80102017: 89 34 24 mov %esi,(%esp)
8010201a: e8 f1 f9 ff ff call 80101a10 <iput>
iunlock(ip);
return ip;
}
if((next = dirlookup(ip, name, 0)) == 0){
iunlockput(ip);
return 0;
8010201f: 83 c4 10 add $0x10,%esp
if(nameiparent){
iput(ip);
return 0;
}
return ip;
}
80102022: 8d 65 f4 lea -0xc(%ebp),%esp
iunlock(ip);
return ip;
}
if((next = dirlookup(ip, name, 0)) == 0){
iunlockput(ip);
return 0;
80102025: 31 c0 xor %eax,%eax
if(nameiparent){
iput(ip);
return 0;
}
return ip;
}
80102027: 5b pop %ebx
80102028: 5e pop %esi
80102029: 5f pop %edi
8010202a: 5d pop %ebp
8010202b: c3 ret
namex(char *path, int nameiparent, char *name)
{
struct inode *ip, *next;
if(*path == '/')
ip = iget(ROOTDEV, ROOTINO);
8010202c: ba 01 00 00 00 mov $0x1,%edx
80102031: b8 01 00 00 00 mov $0x1,%eax
80102036: e8 f5 f2 ff ff call 80101330 <iget>
8010203b: 89 c6 mov %eax,%esi
8010203d: e9 c9 fe ff ff jmp 80101f0b <namex+0x4b>
iunlockput(ip);
return 0;
}
if(nameiparent && *path == '\0'){
// Stop one level early.
iunlock(ip);
80102042: 83 ec 0c sub $0xc,%esp
80102045: 56 push %esi
80102046: e8 75 f9 ff ff call 801019c0 <iunlock>
return ip;
8010204b: 83 c4 10 add $0x10,%esp
if(nameiparent){
iput(ip);
return 0;
}
return ip;
}
8010204e: 8d 65 f4 lea -0xc(%ebp),%esp
return 0;
}
if(nameiparent && *path == '\0'){
// Stop one level early.
iunlock(ip);
return ip;
80102051: 89 f0 mov %esi,%eax
if(nameiparent){
iput(ip);
return 0;
}
return ip;
}
80102053: 5b pop %ebx
80102054: 5e pop %esi
80102055: 5f pop %edi
80102056: 5d pop %ebp
80102057: c3 ret
}
iunlockput(ip);
ip = next;
}
if(nameiparent){
iput(ip);
80102058: 83 ec 0c sub $0xc,%esp
8010205b: 56 push %esi
8010205c: e8 af f9 ff ff call 80101a10 <iput>
return 0;
80102061: 83 c4 10 add $0x10,%esp
80102064: 31 c0 xor %eax,%eax
80102066: eb 9e jmp 80102006 <namex+0x146>
80102068: 90 nop
80102069: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80102070 <dirlink>:
}
// Write a new directory entry (name, inum) into the directory dp.
int
dirlink(struct inode *dp, char *name, uint inum)
{
80102070: 55 push %ebp
80102071: 89 e5 mov %esp,%ebp
80102073: 57 push %edi
80102074: 56 push %esi
80102075: 53 push %ebx
80102076: 83 ec 20 sub $0x20,%esp
80102079: 8b 5d 08 mov 0x8(%ebp),%ebx
int off;
struct dirent de;
struct inode *ip;
// Check that name is not present.
if((ip = dirlookup(dp, name, 0)) != 0){
8010207c: 6a 00 push $0x0
8010207e: ff 75 0c pushl 0xc(%ebp)
80102081: 53 push %ebx
80102082: e8 89 fd ff ff call 80101e10 <dirlookup>
80102087: 83 c4 10 add $0x10,%esp
8010208a: 85 c0 test %eax,%eax
8010208c: 75 67 jne 801020f5 <dirlink+0x85>
iput(ip);
return -1;
}
// Look for an empty dirent.
for(off = 0; off < dp->size; off += sizeof(de)){
8010208e: 8b 7b 58 mov 0x58(%ebx),%edi
80102091: 8d 75 d8 lea -0x28(%ebp),%esi
80102094: 85 ff test %edi,%edi
80102096: 74 29 je 801020c1 <dirlink+0x51>
80102098: 31 ff xor %edi,%edi
8010209a: 8d 75 d8 lea -0x28(%ebp),%esi
8010209d: eb 09 jmp 801020a8 <dirlink+0x38>
8010209f: 90 nop
801020a0: 83 c7 10 add $0x10,%edi
801020a3: 39 7b 58 cmp %edi,0x58(%ebx)
801020a6: 76 19 jbe 801020c1 <dirlink+0x51>
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
801020a8: 6a 10 push $0x10
801020aa: 57 push %edi
801020ab: 56 push %esi
801020ac: 53 push %ebx
801020ad: e8 0e fb ff ff call 80101bc0 <readi>
801020b2: 83 c4 10 add $0x10,%esp
801020b5: 83 f8 10 cmp $0x10,%eax
801020b8: 75 4e jne 80102108 <dirlink+0x98>
panic("dirlink read");
if(de.inum == 0)
801020ba: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp)
801020bf: 75 df jne 801020a0 <dirlink+0x30>
break;
}
strncpy(de.name, name, DIRSIZ);
801020c1: 8d 45 da lea -0x26(%ebp),%eax
801020c4: 83 ec 04 sub $0x4,%esp
801020c7: 6a 0e push $0xe
801020c9: ff 75 0c pushl 0xc(%ebp)
801020cc: 50 push %eax
801020cd: e8 3e 27 00 00 call 80104810 <strncpy>
de.inum = inum;
801020d2: 8b 45 10 mov 0x10(%ebp),%eax
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
801020d5: 6a 10 push $0x10
801020d7: 57 push %edi
801020d8: 56 push %esi
801020d9: 53 push %ebx
if(de.inum == 0)
break;
}
strncpy(de.name, name, DIRSIZ);
de.inum = inum;
801020da: 66 89 45 d8 mov %ax,-0x28(%ebp)
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
801020de: e8 dd fb ff ff call 80101cc0 <writei>
801020e3: 83 c4 20 add $0x20,%esp
801020e6: 83 f8 10 cmp $0x10,%eax
801020e9: 75 2a jne 80102115 <dirlink+0xa5>
panic("dirlink");
return 0;
801020eb: 31 c0 xor %eax,%eax
}
801020ed: 8d 65 f4 lea -0xc(%ebp),%esp
801020f0: 5b pop %ebx
801020f1: 5e pop %esi
801020f2: 5f pop %edi
801020f3: 5d pop %ebp
801020f4: c3 ret
struct dirent de;
struct inode *ip;
// Check that name is not present.
if((ip = dirlookup(dp, name, 0)) != 0){
iput(ip);
801020f5: 83 ec 0c sub $0xc,%esp
801020f8: 50 push %eax
801020f9: e8 12 f9 ff ff call 80101a10 <iput>
return -1;
801020fe: 83 c4 10 add $0x10,%esp
80102101: b8 ff ff ff ff mov $0xffffffff,%eax
80102106: eb e5 jmp 801020ed <dirlink+0x7d>
}
// Look for an empty dirent.
for(off = 0; off < dp->size; off += sizeof(de)){
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
panic("dirlink read");
80102108: 83 ec 0c sub $0xc,%esp
8010210b: 68 6c 77 10 80 push $0x8010776c
80102110: e8 8b e3 ff ff call 801004a0 <panic>
}
strncpy(de.name, name, DIRSIZ);
de.inum = inum;
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
panic("dirlink");
80102115: 83 ec 0c sub $0xc,%esp
80102118: 68 66 7d 10 80 push $0x80107d66
8010211d: e8 7e e3 ff ff call 801004a0 <panic>
80102122: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80102129: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102130 <namei>:
return ip;
}
struct inode*
namei(char *path)
{
80102130: 55 push %ebp
char name[DIRSIZ];
return namex(path, 0, name);
80102131: 31 d2 xor %edx,%edx
return ip;
}
struct inode*
namei(char *path)
{
80102133: 89 e5 mov %esp,%ebp
80102135: 83 ec 18 sub $0x18,%esp
char name[DIRSIZ];
return namex(path, 0, name);
80102138: 8b 45 08 mov 0x8(%ebp),%eax
8010213b: 8d 4d ea lea -0x16(%ebp),%ecx
8010213e: e8 7d fd ff ff call 80101ec0 <namex>
}
80102143: c9 leave
80102144: c3 ret
80102145: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102149: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102150 <nameiparent>:
struct inode*
nameiparent(char *path, char *name)
{
80102150: 55 push %ebp
return namex(path, 1, name);
80102151: ba 01 00 00 00 mov $0x1,%edx
return namex(path, 0, name);
}
struct inode*
nameiparent(char *path, char *name)
{
80102156: 89 e5 mov %esp,%ebp
return namex(path, 1, name);
80102158: 8b 4d 0c mov 0xc(%ebp),%ecx
8010215b: 8b 45 08 mov 0x8(%ebp),%eax
}
8010215e: 5d pop %ebp
}
struct inode*
nameiparent(char *path, char *name)
{
return namex(path, 1, name);
8010215f: e9 5c fd ff ff jmp 80101ec0 <namex>
80102164: 66 90 xchg %ax,%ax
80102166: 66 90 xchg %ax,%ax
80102168: 66 90 xchg %ax,%ax
8010216a: 66 90 xchg %ax,%ax
8010216c: 66 90 xchg %ax,%ax
8010216e: 66 90 xchg %ax,%ax
80102170 <idestart>:
}
// Start the request for b. Caller must hold idelock.
static void
idestart(struct buf *b)
{
80102170: 55 push %ebp
if(b == 0)
80102171: 85 c0 test %eax,%eax
}
// Start the request for b. Caller must hold idelock.
static void
idestart(struct buf *b)
{
80102173: 89 e5 mov %esp,%ebp
80102175: 56 push %esi
80102176: 53 push %ebx
if(b == 0)
80102177: 0f 84 ad 00 00 00 je 8010222a <idestart+0xba>
panic("idestart");
if(b->blockno >= FSSIZE)
8010217d: 8b 58 08 mov 0x8(%eax),%ebx
80102180: 89 c1 mov %eax,%ecx
80102182: 81 fb ff f3 01 00 cmp $0x1f3ff,%ebx
80102188: 0f 87 8f 00 00 00 ja 8010221d <idestart+0xad>
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
8010218e: ba f7 01 00 00 mov $0x1f7,%edx
80102193: 90 nop
80102194: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102198: ec in (%dx),%al
static int
idewait(int checkerr)
{
int r;
while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY)
80102199: 83 e0 c0 and $0xffffffc0,%eax
8010219c: 3c 40 cmp $0x40,%al
8010219e: 75 f8 jne 80102198 <idestart+0x28>
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801021a0: ba f6 03 00 00 mov $0x3f6,%edx
801021a5: 31 c0 xor %eax,%eax
801021a7: ee out %al,(%dx)
801021a8: ba f2 01 00 00 mov $0x1f2,%edx
801021ad: b8 01 00 00 00 mov $0x1,%eax
801021b2: ee out %al,(%dx)
801021b3: ba f3 01 00 00 mov $0x1f3,%edx
801021b8: 89 d8 mov %ebx,%eax
801021ba: ee out %al,(%dx)
801021bb: 89 d8 mov %ebx,%eax
801021bd: ba f4 01 00 00 mov $0x1f4,%edx
801021c2: c1 f8 08 sar $0x8,%eax
801021c5: ee out %al,(%dx)
801021c6: 89 d8 mov %ebx,%eax
801021c8: ba f5 01 00 00 mov $0x1f5,%edx
801021cd: c1 f8 10 sar $0x10,%eax
801021d0: ee out %al,(%dx)
801021d1: 0f b6 41 04 movzbl 0x4(%ecx),%eax
801021d5: ba f6 01 00 00 mov $0x1f6,%edx
801021da: 83 e0 01 and $0x1,%eax
801021dd: c1 e0 04 shl $0x4,%eax
801021e0: 83 c8 e0 or $0xffffffe0,%eax
801021e3: ee out %al,(%dx)
outb(0x1f2, sector_per_block); // number of sectors
outb(0x1f3, sector & 0xff);
outb(0x1f4, (sector >> 8) & 0xff);
outb(0x1f5, (sector >> 16) & 0xff);
outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f));
if(b->flags & B_DIRTY){
801021e4: f6 01 04 testb $0x4,(%ecx)
801021e7: ba f7 01 00 00 mov $0x1f7,%edx
801021ec: 75 12 jne 80102200 <idestart+0x90>
801021ee: b8 20 00 00 00 mov $0x20,%eax
801021f3: ee out %al,(%dx)
outb(0x1f7, write_cmd);
outsl(0x1f0, b->data, BSIZE/4);
} else {
outb(0x1f7, read_cmd);
}
}
801021f4: 8d 65 f8 lea -0x8(%ebp),%esp
801021f7: 5b pop %ebx
801021f8: 5e pop %esi
801021f9: 5d pop %ebp
801021fa: c3 ret
801021fb: 90 nop
801021fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102200: b8 30 00 00 00 mov $0x30,%eax
80102205: ee out %al,(%dx)
}
static inline void
outsl(int port, const void *addr, int cnt)
{
asm volatile("cld; rep outsl" :
80102206: ba f0 01 00 00 mov $0x1f0,%edx
outb(0x1f4, (sector >> 8) & 0xff);
outb(0x1f5, (sector >> 16) & 0xff);
outb(0x1f6, 0xe0 | ((b->dev&1)<<4) | ((sector>>24)&0x0f));
if(b->flags & B_DIRTY){
outb(0x1f7, write_cmd);
outsl(0x1f0, b->data, BSIZE/4);
8010220b: 8d 71 5c lea 0x5c(%ecx),%esi
8010220e: b9 80 00 00 00 mov $0x80,%ecx
80102213: fc cld
80102214: f3 6f rep outsl %ds:(%esi),(%dx)
} else {
outb(0x1f7, read_cmd);
}
}
80102216: 8d 65 f8 lea -0x8(%ebp),%esp
80102219: 5b pop %ebx
8010221a: 5e pop %esi
8010221b: 5d pop %ebp
8010221c: c3 ret
idestart(struct buf *b)
{
if(b == 0)
panic("idestart");
if(b->blockno >= FSSIZE)
panic("incorrect blockno");
8010221d: 83 ec 0c sub $0xc,%esp
80102220: 68 d8 77 10 80 push $0x801077d8
80102225: e8 76 e2 ff ff call 801004a0 <panic>
// Start the request for b. Caller must hold idelock.
static void
idestart(struct buf *b)
{
if(b == 0)
panic("idestart");
8010222a: 83 ec 0c sub $0xc,%esp
8010222d: 68 cf 77 10 80 push $0x801077cf
80102232: e8 69 e2 ff ff call 801004a0 <panic>
80102237: 89 f6 mov %esi,%esi
80102239: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102240 <ideinit>:
return 0;
}
void
ideinit(void)
{
80102240: 55 push %ebp
80102241: 89 e5 mov %esp,%ebp
80102243: 83 ec 10 sub $0x10,%esp
int i;
initlock(&idelock, "ide");
80102246: 68 ea 77 10 80 push $0x801077ea
8010224b: 68 80 b5 10 80 push $0x8010b580
80102250: e8 ab 21 00 00 call 80104400 <initlock>
ioapicenable(IRQ_IDE, ncpu - 1);
80102255: 58 pop %eax
80102256: a1 00 3d 11 80 mov 0x80113d00,%eax
8010225b: 5a pop %edx
8010225c: 83 e8 01 sub $0x1,%eax
8010225f: 50 push %eax
80102260: 6a 0e push $0xe
80102262: e8 a9 02 00 00 call 80102510 <ioapicenable>
80102267: 83 c4 10 add $0x10,%esp
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
8010226a: ba f7 01 00 00 mov $0x1f7,%edx
8010226f: 90 nop
80102270: ec in (%dx),%al
static int
idewait(int checkerr)
{
int r;
while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY)
80102271: 83 e0 c0 and $0xffffffc0,%eax
80102274: 3c 40 cmp $0x40,%al
80102276: 75 f8 jne 80102270 <ideinit+0x30>
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102278: ba f6 01 00 00 mov $0x1f6,%edx
8010227d: b8 f0 ff ff ff mov $0xfffffff0,%eax
80102282: ee out %al,(%dx)
80102283: b9 e8 03 00 00 mov $0x3e8,%ecx
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102288: ba f7 01 00 00 mov $0x1f7,%edx
8010228d: eb 06 jmp 80102295 <ideinit+0x55>
8010228f: 90 nop
ioapicenable(IRQ_IDE, ncpu - 1);
idewait(0);
// Check if disk 1 is present
outb(0x1f6, 0xe0 | (1<<4));
for(i=0; i<1000; i++){
80102290: 83 e9 01 sub $0x1,%ecx
80102293: 74 0f je 801022a4 <ideinit+0x64>
80102295: ec in (%dx),%al
if(inb(0x1f7) != 0){
80102296: 84 c0 test %al,%al
80102298: 74 f6 je 80102290 <ideinit+0x50>
havedisk1 = 1;
8010229a: c7 05 60 b5 10 80 01 movl $0x1,0x8010b560
801022a1: 00 00 00
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801022a4: ba f6 01 00 00 mov $0x1f6,%edx
801022a9: b8 e0 ff ff ff mov $0xffffffe0,%eax
801022ae: ee out %al,(%dx)
}
}
// Switch back to disk 0.
outb(0x1f6, 0xe0 | (0<<4));
}
801022af: c9 leave
801022b0: c3 ret
801022b1: eb 0d jmp 801022c0 <ideintr>
801022b3: 90 nop
801022b4: 90 nop
801022b5: 90 nop
801022b6: 90 nop
801022b7: 90 nop
801022b8: 90 nop
801022b9: 90 nop
801022ba: 90 nop
801022bb: 90 nop
801022bc: 90 nop
801022bd: 90 nop
801022be: 90 nop
801022bf: 90 nop
801022c0 <ideintr>:
}
// Interrupt handler.
void
ideintr(void)
{
801022c0: 55 push %ebp
801022c1: 89 e5 mov %esp,%ebp
801022c3: 57 push %edi
801022c4: 56 push %esi
801022c5: 53 push %ebx
801022c6: 83 ec 18 sub $0x18,%esp
struct buf *b;
// First queued buffer is the active request.
acquire(&idelock);
801022c9: 68 80 b5 10 80 push $0x8010b580
801022ce: e8 2d 22 00 00 call 80104500 <acquire>
if((b = idequeue) == 0){
801022d3: 8b 1d 64 b5 10 80 mov 0x8010b564,%ebx
801022d9: 83 c4 10 add $0x10,%esp
801022dc: 85 db test %ebx,%ebx
801022de: 74 34 je 80102314 <ideintr+0x54>
release(&idelock);
return;
}
idequeue = b->qnext;
801022e0: 8b 43 58 mov 0x58(%ebx),%eax
801022e3: a3 64 b5 10 80 mov %eax,0x8010b564
// Read data if needed.
if(!(b->flags & B_DIRTY) && idewait(1) >= 0)
801022e8: 8b 33 mov (%ebx),%esi
801022ea: f7 c6 04 00 00 00 test $0x4,%esi
801022f0: 74 3e je 80102330 <ideintr+0x70>
insl(0x1f0, b->data, BSIZE/4);
// Wake process waiting for this buf.
b->flags |= B_VALID;
b->flags &= ~B_DIRTY;
801022f2: 83 e6 fb and $0xfffffffb,%esi
wakeup(b);
801022f5: 83 ec 0c sub $0xc,%esp
if(!(b->flags & B_DIRTY) && idewait(1) >= 0)
insl(0x1f0, b->data, BSIZE/4);
// Wake process waiting for this buf.
b->flags |= B_VALID;
b->flags &= ~B_DIRTY;
801022f8: 83 ce 02 or $0x2,%esi
801022fb: 89 33 mov %esi,(%ebx)
wakeup(b);
801022fd: 53 push %ebx
801022fe: e8 3d 1e 00 00 call 80104140 <wakeup>
// Start disk on next buf in queue.
if(idequeue != 0)
80102303: a1 64 b5 10 80 mov 0x8010b564,%eax
80102308: 83 c4 10 add $0x10,%esp
8010230b: 85 c0 test %eax,%eax
8010230d: 74 05 je 80102314 <ideintr+0x54>
idestart(idequeue);
8010230f: e8 5c fe ff ff call 80102170 <idestart>
// First queued buffer is the active request.
acquire(&idelock);
if((b = idequeue) == 0){
release(&idelock);
80102314: 83 ec 0c sub $0xc,%esp
80102317: 68 80 b5 10 80 push $0x8010b580
8010231c: e8 ff 22 00 00 call 80104620 <release>
// Start disk on next buf in queue.
if(idequeue != 0)
idestart(idequeue);
release(&idelock);
}
80102321: 8d 65 f4 lea -0xc(%ebp),%esp
80102324: 5b pop %ebx
80102325: 5e pop %esi
80102326: 5f pop %edi
80102327: 5d pop %ebp
80102328: c3 ret
80102329: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102330: ba f7 01 00 00 mov $0x1f7,%edx
80102335: 8d 76 00 lea 0x0(%esi),%esi
80102338: ec in (%dx),%al
static int
idewait(int checkerr)
{
int r;
while(((r = inb(0x1f7)) & (IDE_BSY|IDE_DRDY)) != IDE_DRDY)
80102339: 89 c1 mov %eax,%ecx
8010233b: 83 e1 c0 and $0xffffffc0,%ecx
8010233e: 80 f9 40 cmp $0x40,%cl
80102341: 75 f5 jne 80102338 <ideintr+0x78>
;
if(checkerr && (r & (IDE_DF|IDE_ERR)) != 0)
80102343: a8 21 test $0x21,%al
80102345: 75 ab jne 801022f2 <ideintr+0x32>
}
idequeue = b->qnext;
// Read data if needed.
if(!(b->flags & B_DIRTY) && idewait(1) >= 0)
insl(0x1f0, b->data, BSIZE/4);
80102347: 8d 7b 5c lea 0x5c(%ebx),%edi
}
static inline void
insl(int port, void *addr, int cnt)
{
asm volatile("cld; rep insl" :
8010234a: b9 80 00 00 00 mov $0x80,%ecx
8010234f: ba f0 01 00 00 mov $0x1f0,%edx
80102354: fc cld
80102355: f3 6d rep insl (%dx),%es:(%edi)
80102357: 8b 33 mov (%ebx),%esi
80102359: eb 97 jmp 801022f2 <ideintr+0x32>
8010235b: 90 nop
8010235c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102360 <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)
{
80102360: 55 push %ebp
80102361: 89 e5 mov %esp,%ebp
80102363: 53 push %ebx
80102364: 83 ec 10 sub $0x10,%esp
80102367: 8b 5d 08 mov 0x8(%ebp),%ebx
struct buf **pp;
if(!holdingsleep(&b->lock))
8010236a: 8d 43 0c lea 0xc(%ebx),%eax
8010236d: 50 push %eax
8010236e: e8 5d 20 00 00 call 801043d0 <holdingsleep>
80102373: 83 c4 10 add $0x10,%esp
80102376: 85 c0 test %eax,%eax
80102378: 0f 84 ad 00 00 00 je 8010242b <iderw+0xcb>
panic("iderw: buf not locked");
if((b->flags & (B_VALID|B_DIRTY)) == B_VALID)
8010237e: 8b 03 mov (%ebx),%eax
80102380: 83 e0 06 and $0x6,%eax
80102383: 83 f8 02 cmp $0x2,%eax
80102386: 0f 84 b9 00 00 00 je 80102445 <iderw+0xe5>
panic("iderw: nothing to do");
if(b->dev != 0 && !havedisk1)
8010238c: 8b 53 04 mov 0x4(%ebx),%edx
8010238f: 85 d2 test %edx,%edx
80102391: 74 0d je 801023a0 <iderw+0x40>
80102393: a1 60 b5 10 80 mov 0x8010b560,%eax
80102398: 85 c0 test %eax,%eax
8010239a: 0f 84 98 00 00 00 je 80102438 <iderw+0xd8>
panic("iderw: ide disk 1 not present");
acquire(&idelock); //DOC:acquire-lock
801023a0: 83 ec 0c sub $0xc,%esp
801023a3: 68 80 b5 10 80 push $0x8010b580
801023a8: e8 53 21 00 00 call 80104500 <acquire>
// Append b to idequeue.
b->qnext = 0;
for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue
801023ad: 8b 15 64 b5 10 80 mov 0x8010b564,%edx
801023b3: 83 c4 10 add $0x10,%esp
panic("iderw: ide disk 1 not present");
acquire(&idelock); //DOC:acquire-lock
// Append b to idequeue.
b->qnext = 0;
801023b6: c7 43 58 00 00 00 00 movl $0x0,0x58(%ebx)
for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue
801023bd: 85 d2 test %edx,%edx
801023bf: 75 09 jne 801023ca <iderw+0x6a>
801023c1: eb 58 jmp 8010241b <iderw+0xbb>
801023c3: 90 nop
801023c4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801023c8: 89 c2 mov %eax,%edx
801023ca: 8b 42 58 mov 0x58(%edx),%eax
801023cd: 85 c0 test %eax,%eax
801023cf: 75 f7 jne 801023c8 <iderw+0x68>
801023d1: 83 c2 58 add $0x58,%edx
;
*pp = b;
801023d4: 89 1a mov %ebx,(%edx)
// Start disk if necessary.
if(idequeue == b)
801023d6: 3b 1d 64 b5 10 80 cmp 0x8010b564,%ebx
801023dc: 74 44 je 80102422 <iderw+0xc2>
idestart(b);
// Wait for request to finish.
while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){
801023de: 8b 03 mov (%ebx),%eax
801023e0: 83 e0 06 and $0x6,%eax
801023e3: 83 f8 02 cmp $0x2,%eax
801023e6: 74 23 je 8010240b <iderw+0xab>
801023e8: 90 nop
801023e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
sleep(b, &idelock);
801023f0: 83 ec 08 sub $0x8,%esp
801023f3: 68 80 b5 10 80 push $0x8010b580
801023f8: 53 push %ebx
801023f9: e8 72 1b 00 00 call 80103f70 <sleep>
// Start disk if necessary.
if(idequeue == b)
idestart(b);
// Wait for request to finish.
while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){
801023fe: 8b 03 mov (%ebx),%eax
80102400: 83 c4 10 add $0x10,%esp
80102403: 83 e0 06 and $0x6,%eax
80102406: 83 f8 02 cmp $0x2,%eax
80102409: 75 e5 jne 801023f0 <iderw+0x90>
sleep(b, &idelock);
}
release(&idelock);
8010240b: c7 45 08 80 b5 10 80 movl $0x8010b580,0x8(%ebp)
}
80102412: 8b 5d fc mov -0x4(%ebp),%ebx
80102415: c9 leave
while((b->flags & (B_VALID|B_DIRTY)) != B_VALID){
sleep(b, &idelock);
}
release(&idelock);
80102416: e9 05 22 00 00 jmp 80104620 <release>
acquire(&idelock); //DOC:acquire-lock
// Append b to idequeue.
b->qnext = 0;
for(pp=&idequeue; *pp; pp=&(*pp)->qnext) //DOC:insert-queue
8010241b: ba 64 b5 10 80 mov $0x8010b564,%edx
80102420: eb b2 jmp 801023d4 <iderw+0x74>
;
*pp = b;
// Start disk if necessary.
if(idequeue == b)
idestart(b);
80102422: 89 d8 mov %ebx,%eax
80102424: e8 47 fd ff ff call 80102170 <idestart>
80102429: eb b3 jmp 801023de <iderw+0x7e>
iderw(struct buf *b)
{
struct buf **pp;
if(!holdingsleep(&b->lock))
panic("iderw: buf not locked");
8010242b: 83 ec 0c sub $0xc,%esp
8010242e: 68 ee 77 10 80 push $0x801077ee
80102433: e8 68 e0 ff ff call 801004a0 <panic>
if((b->flags & (B_VALID|B_DIRTY)) == B_VALID)
panic("iderw: nothing to do");
if(b->dev != 0 && !havedisk1)
panic("iderw: ide disk 1 not present");
80102438: 83 ec 0c sub $0xc,%esp
8010243b: 68 19 78 10 80 push $0x80107819
80102440: e8 5b e0 ff ff call 801004a0 <panic>
struct buf **pp;
if(!holdingsleep(&b->lock))
panic("iderw: buf not locked");
if((b->flags & (B_VALID|B_DIRTY)) == B_VALID)
panic("iderw: nothing to do");
80102445: 83 ec 0c sub $0xc,%esp
80102448: 68 04 78 10 80 push $0x80107804
8010244d: e8 4e e0 ff ff call 801004a0 <panic>
80102452: 66 90 xchg %ax,%ax
80102454: 66 90 xchg %ax,%ax
80102456: 66 90 xchg %ax,%ax
80102458: 66 90 xchg %ax,%ax
8010245a: 66 90 xchg %ax,%ax
8010245c: 66 90 xchg %ax,%ax
8010245e: 66 90 xchg %ax,%ax
80102460 <ioapicinit>:
ioapic->data = data;
}
void
ioapicinit(void)
{
80102460: 55 push %ebp
int i, id, maxintr;
ioapic = (volatile struct ioapic*)IOAPIC;
80102461: c7 05 34 36 11 80 00 movl $0xfec00000,0x80113634
80102468: 00 c0 fe
ioapic->data = data;
}
void
ioapicinit(void)
{
8010246b: 89 e5 mov %esp,%ebp
8010246d: 56 push %esi
8010246e: 53 push %ebx
};
static uint
ioapicread(int reg)
{
ioapic->reg = reg;
8010246f: c7 05 00 00 c0 fe 01 movl $0x1,0xfec00000
80102476: 00 00 00
return ioapic->data;
80102479: 8b 15 34 36 11 80 mov 0x80113634,%edx
8010247f: 8b 72 10 mov 0x10(%edx),%esi
};
static uint
ioapicread(int reg)
{
ioapic->reg = reg;
80102482: c7 02 00 00 00 00 movl $0x0,(%edx)
return ioapic->data;
80102488: 8b 0d 34 36 11 80 mov 0x80113634,%ecx
int i, id, maxintr;
ioapic = (volatile struct ioapic*)IOAPIC;
maxintr = (ioapicread(REG_VER) >> 16) & 0xFF;
id = ioapicread(REG_ID) >> 24;
if(id != ioapicid)
8010248e: 0f b6 15 60 37 11 80 movzbl 0x80113760,%edx
ioapicinit(void)
{
int i, id, maxintr;
ioapic = (volatile struct ioapic*)IOAPIC;
maxintr = (ioapicread(REG_VER) >> 16) & 0xFF;
80102495: 89 f0 mov %esi,%eax
80102497: c1 e8 10 shr $0x10,%eax
8010249a: 0f b6 f0 movzbl %al,%esi
static uint
ioapicread(int reg)
{
ioapic->reg = reg;
return ioapic->data;
8010249d: 8b 41 10 mov 0x10(%ecx),%eax
int i, id, maxintr;
ioapic = (volatile struct ioapic*)IOAPIC;
maxintr = (ioapicread(REG_VER) >> 16) & 0xFF;
id = ioapicread(REG_ID) >> 24;
if(id != ioapicid)
801024a0: c1 e8 18 shr $0x18,%eax
801024a3: 39 d0 cmp %edx,%eax
801024a5: 74 16 je 801024bd <ioapicinit+0x5d>
cprintf("ioapicinit: id isn't equal to ioapicid; not a MP\n");
801024a7: 83 ec 0c sub $0xc,%esp
801024aa: 68 38 78 10 80 push $0x80107838
801024af: e8 dc e2 ff ff call 80100790 <cprintf>
801024b4: 8b 0d 34 36 11 80 mov 0x80113634,%ecx
801024ba: 83 c4 10 add $0x10,%esp
801024bd: 83 c6 21 add $0x21,%esi
ioapic->data = data;
}
void
ioapicinit(void)
{
801024c0: ba 10 00 00 00 mov $0x10,%edx
801024c5: b8 20 00 00 00 mov $0x20,%eax
801024ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
}
static void
ioapicwrite(int reg, uint data)
{
ioapic->reg = reg;
801024d0: 89 11 mov %edx,(%ecx)
ioapic->data = data;
801024d2: 8b 0d 34 36 11 80 mov 0x80113634,%ecx
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++){
ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i));
801024d8: 89 c3 mov %eax,%ebx
801024da: 81 cb 00 00 01 00 or $0x10000,%ebx
801024e0: 83 c0 01 add $0x1,%eax
static void
ioapicwrite(int reg, uint data)
{
ioapic->reg = reg;
ioapic->data = data;
801024e3: 89 59 10 mov %ebx,0x10(%ecx)
801024e6: 8d 5a 01 lea 0x1(%edx),%ebx
801024e9: 83 c2 02 add $0x2,%edx
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++){
801024ec: 39 f0 cmp %esi,%eax
}
static void
ioapicwrite(int reg, uint data)
{
ioapic->reg = reg;
801024ee: 89 19 mov %ebx,(%ecx)
ioapic->data = data;
801024f0: 8b 0d 34 36 11 80 mov 0x80113634,%ecx
801024f6: c7 41 10 00 00 00 00 movl $0x0,0x10(%ecx)
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++){
801024fd: 75 d1 jne 801024d0 <ioapicinit+0x70>
ioapicwrite(REG_TABLE+2*i, INT_DISABLED | (T_IRQ0 + i));
ioapicwrite(REG_TABLE+2*i+1, 0);
}
}
801024ff: 8d 65 f8 lea -0x8(%ebp),%esp
80102502: 5b pop %ebx
80102503: 5e pop %esi
80102504: 5d pop %ebp
80102505: c3 ret
80102506: 8d 76 00 lea 0x0(%esi),%esi
80102509: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102510 <ioapicenable>:
void
ioapicenable(int irq, int cpunum)
{
80102510: 55 push %ebp
}
static void
ioapicwrite(int reg, uint data)
{
ioapic->reg = reg;
80102511: 8b 0d 34 36 11 80 mov 0x80113634,%ecx
}
}
void
ioapicenable(int irq, int cpunum)
{
80102517: 89 e5 mov %esp,%ebp
80102519: 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);
8010251c: 8d 50 20 lea 0x20(%eax),%edx
8010251f: 8d 44 00 10 lea 0x10(%eax,%eax,1),%eax
}
static void
ioapicwrite(int reg, uint data)
{
ioapic->reg = reg;
80102523: 89 01 mov %eax,(%ecx)
ioapic->data = data;
80102525: 8b 0d 34 36 11 80 mov 0x80113634,%ecx
}
static void
ioapicwrite(int reg, uint data)
{
ioapic->reg = reg;
8010252b: 83 c0 01 add $0x1,%eax
ioapic->data = data;
8010252e: 89 51 10 mov %edx,0x10(%ecx)
{
// 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);
80102531: 8b 55 0c mov 0xc(%ebp),%edx
}
static void
ioapicwrite(int reg, uint data)
{
ioapic->reg = reg;
80102534: 89 01 mov %eax,(%ecx)
ioapic->data = data;
80102536: a1 34 36 11 80 mov 0x80113634,%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);
ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24);
8010253b: c1 e2 18 shl $0x18,%edx
static void
ioapicwrite(int reg, uint data)
{
ioapic->reg = reg;
ioapic->data = data;
8010253e: 89 50 10 mov %edx,0x10(%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);
ioapicwrite(REG_TABLE+2*irq+1, cpunum << 24);
}
80102541: 5d pop %ebp
80102542: c3 ret
80102543: 66 90 xchg %ax,%ax
80102545: 66 90 xchg %ax,%ax
80102547: 66 90 xchg %ax,%ax
80102549: 66 90 xchg %ax,%ax
8010254b: 66 90 xchg %ax,%ax
8010254d: 66 90 xchg %ax,%ax
8010254f: 90 nop
80102550 <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)
{
80102550: 55 push %ebp
80102551: 89 e5 mov %esp,%ebp
80102553: 53 push %ebx
80102554: 83 ec 04 sub $0x4,%esp
80102557: 8b 5d 08 mov 0x8(%ebp),%ebx
struct run *r;
if((uint)v % PGSIZE || v < end || V2P(v) >= PHYSTOP)
8010255a: f7 c3 ff 0f 00 00 test $0xfff,%ebx
80102560: 75 70 jne 801025d2 <kfree+0x82>
80102562: 81 fb a8 64 11 80 cmp $0x801164a8,%ebx
80102568: 72 68 jb 801025d2 <kfree+0x82>
8010256a: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax
80102570: 3d ff ff 3f 00 cmp $0x3fffff,%eax
80102575: 77 5b ja 801025d2 <kfree+0x82>
panic("kfree");
// Fill with junk to catch dangling refs.
memset(v, 1, PGSIZE);
80102577: 83 ec 04 sub $0x4,%esp
8010257a: 68 00 10 00 00 push $0x1000
8010257f: 6a 01 push $0x1
80102581: 53 push %ebx
80102582: e8 e9 20 00 00 call 80104670 <memset>
if(kmem.use_lock)
80102587: 8b 15 74 36 11 80 mov 0x80113674,%edx
8010258d: 83 c4 10 add $0x10,%esp
80102590: 85 d2 test %edx,%edx
80102592: 75 2c jne 801025c0 <kfree+0x70>
acquire(&kmem.lock);
r = (struct run*)v;
r->next = kmem.freelist;
80102594: a1 78 36 11 80 mov 0x80113678,%eax
80102599: 89 03 mov %eax,(%ebx)
kmem.freelist = r;
if(kmem.use_lock)
8010259b: a1 74 36 11 80 mov 0x80113674,%eax
if(kmem.use_lock)
acquire(&kmem.lock);
r = (struct run*)v;
r->next = kmem.freelist;
kmem.freelist = r;
801025a0: 89 1d 78 36 11 80 mov %ebx,0x80113678
if(kmem.use_lock)
801025a6: 85 c0 test %eax,%eax
801025a8: 75 06 jne 801025b0 <kfree+0x60>
release(&kmem.lock);
}
801025aa: 8b 5d fc mov -0x4(%ebp),%ebx
801025ad: c9 leave
801025ae: c3 ret
801025af: 90 nop
acquire(&kmem.lock);
r = (struct run*)v;
r->next = kmem.freelist;
kmem.freelist = r;
if(kmem.use_lock)
release(&kmem.lock);
801025b0: c7 45 08 40 36 11 80 movl $0x80113640,0x8(%ebp)
}
801025b7: 8b 5d fc mov -0x4(%ebp),%ebx
801025ba: c9 leave
acquire(&kmem.lock);
r = (struct run*)v;
r->next = kmem.freelist;
kmem.freelist = r;
if(kmem.use_lock)
release(&kmem.lock);
801025bb: e9 60 20 00 00 jmp 80104620 <release>
// Fill with junk to catch dangling refs.
memset(v, 1, PGSIZE);
if(kmem.use_lock)
acquire(&kmem.lock);
801025c0: 83 ec 0c sub $0xc,%esp
801025c3: 68 40 36 11 80 push $0x80113640
801025c8: e8 33 1f 00 00 call 80104500 <acquire>
801025cd: 83 c4 10 add $0x10,%esp
801025d0: eb c2 jmp 80102594 <kfree+0x44>
kfree(char *v)
{
struct run *r;
if((uint)v % PGSIZE || v < end || V2P(v) >= PHYSTOP)
panic("kfree");
801025d2: 83 ec 0c sub $0xc,%esp
801025d5: 68 6a 78 10 80 push $0x8010786a
801025da: e8 c1 de ff ff call 801004a0 <panic>
801025df: 90 nop
801025e0 <freerange>:
kmem.use_lock = 1;
}
void
freerange(void *vstart, void *vend)
{
801025e0: 55 push %ebp
801025e1: 89 e5 mov %esp,%ebp
801025e3: 56 push %esi
801025e4: 53 push %ebx
char *p;
p = (char*)PGROUNDUP((uint)vstart);
801025e5: 8b 45 08 mov 0x8(%ebp),%eax
kmem.use_lock = 1;
}
void
freerange(void *vstart, void *vend)
{
801025e8: 8b 75 0c mov 0xc(%ebp),%esi
char *p;
p = (char*)PGROUNDUP((uint)vstart);
801025eb: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx
801025f1: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
801025f7: 81 c3 00 10 00 00 add $0x1000,%ebx
801025fd: 39 de cmp %ebx,%esi
801025ff: 72 23 jb 80102624 <freerange+0x44>
80102601: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
kfree(p);
80102608: 8d 83 00 f0 ff ff lea -0x1000(%ebx),%eax
8010260e: 83 ec 0c sub $0xc,%esp
void
freerange(void *vstart, void *vend)
{
char *p;
p = (char*)PGROUNDUP((uint)vstart);
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
80102611: 81 c3 00 10 00 00 add $0x1000,%ebx
kfree(p);
80102617: 50 push %eax
80102618: e8 33 ff ff ff call 80102550 <kfree>
void
freerange(void *vstart, void *vend)
{
char *p;
p = (char*)PGROUNDUP((uint)vstart);
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
8010261d: 83 c4 10 add $0x10,%esp
80102620: 39 f3 cmp %esi,%ebx
80102622: 76 e4 jbe 80102608 <freerange+0x28>
kfree(p);
}
80102624: 8d 65 f8 lea -0x8(%ebp),%esp
80102627: 5b pop %ebx
80102628: 5e pop %esi
80102629: 5d pop %ebp
8010262a: c3 ret
8010262b: 90 nop
8010262c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102630 <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)
{
80102630: 55 push %ebp
80102631: 89 e5 mov %esp,%ebp
80102633: 56 push %esi
80102634: 53 push %ebx
80102635: 8b 75 0c mov 0xc(%ebp),%esi
initlock(&kmem.lock, "kmem");
80102638: 83 ec 08 sub $0x8,%esp
8010263b: 68 70 78 10 80 push $0x80107870
80102640: 68 40 36 11 80 push $0x80113640
80102645: e8 b6 1d 00 00 call 80104400 <initlock>
void
freerange(void *vstart, void *vend)
{
char *p;
p = (char*)PGROUNDUP((uint)vstart);
8010264a: 8b 45 08 mov 0x8(%ebp),%eax
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
8010264d: 83 c4 10 add $0x10,%esp
// after installing a full page table that maps them on all cores.
void
kinit1(void *vstart, void *vend)
{
initlock(&kmem.lock, "kmem");
kmem.use_lock = 0;
80102650: c7 05 74 36 11 80 00 movl $0x0,0x80113674
80102657: 00 00 00
void
freerange(void *vstart, void *vend)
{
char *p;
p = (char*)PGROUNDUP((uint)vstart);
8010265a: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx
80102660: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
80102666: 81 c3 00 10 00 00 add $0x1000,%ebx
8010266c: 39 de cmp %ebx,%esi
8010266e: 72 1c jb 8010268c <kinit1+0x5c>
kfree(p);
80102670: 8d 83 00 f0 ff ff lea -0x1000(%ebx),%eax
80102676: 83 ec 0c sub $0xc,%esp
void
freerange(void *vstart, void *vend)
{
char *p;
p = (char*)PGROUNDUP((uint)vstart);
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
80102679: 81 c3 00 10 00 00 add $0x1000,%ebx
kfree(p);
8010267f: 50 push %eax
80102680: e8 cb fe ff ff call 80102550 <kfree>
void
freerange(void *vstart, void *vend)
{
char *p;
p = (char*)PGROUNDUP((uint)vstart);
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
80102685: 83 c4 10 add $0x10,%esp
80102688: 39 de cmp %ebx,%esi
8010268a: 73 e4 jae 80102670 <kinit1+0x40>
kinit1(void *vstart, void *vend)
{
initlock(&kmem.lock, "kmem");
kmem.use_lock = 0;
freerange(vstart, vend);
}
8010268c: 8d 65 f8 lea -0x8(%ebp),%esp
8010268f: 5b pop %ebx
80102690: 5e pop %esi
80102691: 5d pop %ebp
80102692: c3 ret
80102693: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80102699: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801026a0 <kinit2>:
void
kinit2(void *vstart, void *vend)
{
801026a0: 55 push %ebp
801026a1: 89 e5 mov %esp,%ebp
801026a3: 56 push %esi
801026a4: 53 push %ebx
void
freerange(void *vstart, void *vend)
{
char *p;
p = (char*)PGROUNDUP((uint)vstart);
801026a5: 8b 45 08 mov 0x8(%ebp),%eax
freerange(vstart, vend);
}
void
kinit2(void *vstart, void *vend)
{
801026a8: 8b 75 0c mov 0xc(%ebp),%esi
void
freerange(void *vstart, void *vend)
{
char *p;
p = (char*)PGROUNDUP((uint)vstart);
801026ab: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx
801026b1: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
801026b7: 81 c3 00 10 00 00 add $0x1000,%ebx
801026bd: 39 de cmp %ebx,%esi
801026bf: 72 23 jb 801026e4 <kinit2+0x44>
801026c1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
kfree(p);
801026c8: 8d 83 00 f0 ff ff lea -0x1000(%ebx),%eax
801026ce: 83 ec 0c sub $0xc,%esp
void
freerange(void *vstart, void *vend)
{
char *p;
p = (char*)PGROUNDUP((uint)vstart);
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
801026d1: 81 c3 00 10 00 00 add $0x1000,%ebx
kfree(p);
801026d7: 50 push %eax
801026d8: e8 73 fe ff ff call 80102550 <kfree>
void
freerange(void *vstart, void *vend)
{
char *p;
p = (char*)PGROUNDUP((uint)vstart);
for(; p + PGSIZE <= (char*)vend; p += PGSIZE)
801026dd: 83 c4 10 add $0x10,%esp
801026e0: 39 de cmp %ebx,%esi
801026e2: 73 e4 jae 801026c8 <kinit2+0x28>
void
kinit2(void *vstart, void *vend)
{
freerange(vstart, vend);
kmem.use_lock = 1;
801026e4: c7 05 74 36 11 80 01 movl $0x1,0x80113674
801026eb: 00 00 00
}
801026ee: 8d 65 f8 lea -0x8(%ebp),%esp
801026f1: 5b pop %ebx
801026f2: 5e pop %esi
801026f3: 5d pop %ebp
801026f4: c3 ret
801026f5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801026f9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102700 <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)
{
80102700: 55 push %ebp
80102701: 89 e5 mov %esp,%ebp
80102703: 53 push %ebx
80102704: 83 ec 04 sub $0x4,%esp
struct run *r;
if(kmem.use_lock)
80102707: a1 74 36 11 80 mov 0x80113674,%eax
8010270c: 85 c0 test %eax,%eax
8010270e: 75 30 jne 80102740 <kalloc+0x40>
acquire(&kmem.lock);
r = kmem.freelist;
80102710: 8b 1d 78 36 11 80 mov 0x80113678,%ebx
if(r)
80102716: 85 db test %ebx,%ebx
80102718: 74 1c je 80102736 <kalloc+0x36>
kmem.freelist = r->next;
8010271a: 8b 13 mov (%ebx),%edx
8010271c: 89 15 78 36 11 80 mov %edx,0x80113678
if(kmem.use_lock)
80102722: 85 c0 test %eax,%eax
80102724: 74 10 je 80102736 <kalloc+0x36>
release(&kmem.lock);
80102726: 83 ec 0c sub $0xc,%esp
80102729: 68 40 36 11 80 push $0x80113640
8010272e: e8 ed 1e 00 00 call 80104620 <release>
80102733: 83 c4 10 add $0x10,%esp
return (char*)r;
}
80102736: 89 d8 mov %ebx,%eax
80102738: 8b 5d fc mov -0x4(%ebp),%ebx
8010273b: c9 leave
8010273c: c3 ret
8010273d: 8d 76 00 lea 0x0(%esi),%esi
kalloc(void)
{
struct run *r;
if(kmem.use_lock)
acquire(&kmem.lock);
80102740: 83 ec 0c sub $0xc,%esp
80102743: 68 40 36 11 80 push $0x80113640
80102748: e8 b3 1d 00 00 call 80104500 <acquire>
r = kmem.freelist;
8010274d: 8b 1d 78 36 11 80 mov 0x80113678,%ebx
if(r)
80102753: 83 c4 10 add $0x10,%esp
80102756: a1 74 36 11 80 mov 0x80113674,%eax
8010275b: 85 db test %ebx,%ebx
8010275d: 75 bb jne 8010271a <kalloc+0x1a>
8010275f: eb c1 jmp 80102722 <kalloc+0x22>
80102761: 66 90 xchg %ax,%ax
80102763: 66 90 xchg %ax,%ax
80102765: 66 90 xchg %ax,%ax
80102767: 66 90 xchg %ax,%ax
80102769: 66 90 xchg %ax,%ax
8010276b: 66 90 xchg %ax,%ax
8010276d: 66 90 xchg %ax,%ax
8010276f: 90 nop
80102770 <kbdgetc>:
#include "defs.h"
#include "kbd.h"
int
kbdgetc(void)
{
80102770: 55 push %ebp
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102771: ba 64 00 00 00 mov $0x64,%edx
80102776: 89 e5 mov %esp,%ebp
80102778: ec in (%dx),%al
normalmap, shiftmap, ctlmap, ctlmap
};
uint st, data, c;
st = inb(KBSTATP);
if((st & KBS_DIB) == 0)
80102779: a8 01 test $0x1,%al
8010277b: 0f 84 af 00 00 00 je 80102830 <kbdgetc+0xc0>
80102781: ba 60 00 00 00 mov $0x60,%edx
80102786: ec in (%dx),%al
return -1;
data = inb(KBDATAP);
80102787: 0f b6 d0 movzbl %al,%edx
if(data == 0xE0){
8010278a: 81 fa e0 00 00 00 cmp $0xe0,%edx
80102790: 74 7e je 80102810 <kbdgetc+0xa0>
shift |= E0ESC;
return 0;
} else if(data & 0x80){
80102792: 84 c0 test %al,%al
// Key released
data = (shift & E0ESC ? data : data & 0x7F);
80102794: 8b 0d b4 b5 10 80 mov 0x8010b5b4,%ecx
data = inb(KBDATAP);
if(data == 0xE0){
shift |= E0ESC;
return 0;
} else if(data & 0x80){
8010279a: 79 24 jns 801027c0 <kbdgetc+0x50>
// Key released
data = (shift & E0ESC ? data : data & 0x7F);
8010279c: f6 c1 40 test $0x40,%cl
8010279f: 75 05 jne 801027a6 <kbdgetc+0x36>
801027a1: 89 c2 mov %eax,%edx
801027a3: 83 e2 7f and $0x7f,%edx
shift &= ~(shiftcode[data] | E0ESC);
801027a6: 0f b6 82 a0 79 10 80 movzbl -0x7fef8660(%edx),%eax
801027ad: 83 c8 40 or $0x40,%eax
801027b0: 0f b6 c0 movzbl %al,%eax
801027b3: f7 d0 not %eax
801027b5: 21 c8 and %ecx,%eax
801027b7: a3 b4 b5 10 80 mov %eax,0x8010b5b4
return 0;
801027bc: 31 c0 xor %eax,%eax
c += 'A' - 'a';
else if('A' <= c && c <= 'Z')
c += 'a' - 'A';
}
return c;
}
801027be: 5d pop %ebp
801027bf: c3 ret
} else if(data & 0x80){
// Key released
data = (shift & E0ESC ? data : data & 0x7F);
shift &= ~(shiftcode[data] | E0ESC);
return 0;
} else if(shift & E0ESC){
801027c0: f6 c1 40 test $0x40,%cl
801027c3: 74 09 je 801027ce <kbdgetc+0x5e>
// Last character was an E0 escape; or with 0x80
data |= 0x80;
801027c5: 83 c8 80 or $0xffffff80,%eax
shift &= ~E0ESC;
801027c8: 83 e1 bf and $0xffffffbf,%ecx
data = (shift & E0ESC ? data : data & 0x7F);
shift &= ~(shiftcode[data] | E0ESC);
return 0;
} else if(shift & E0ESC){
// Last character was an E0 escape; or with 0x80
data |= 0x80;
801027cb: 0f b6 d0 movzbl %al,%edx
shift &= ~E0ESC;
}
shift |= shiftcode[data];
shift ^= togglecode[data];
801027ce: 0f b6 82 a0 79 10 80 movzbl -0x7fef8660(%edx),%eax
801027d5: 09 c1 or %eax,%ecx
801027d7: 0f b6 82 a0 78 10 80 movzbl -0x7fef8760(%edx),%eax
801027de: 31 c1 xor %eax,%ecx
c = charcode[shift & (CTL | SHIFT)][data];
801027e0: 89 c8 mov %ecx,%eax
data |= 0x80;
shift &= ~E0ESC;
}
shift |= shiftcode[data];
shift ^= togglecode[data];
801027e2: 89 0d b4 b5 10 80 mov %ecx,0x8010b5b4
c = charcode[shift & (CTL | SHIFT)][data];
801027e8: 83 e0 03 and $0x3,%eax
if(shift & CAPSLOCK){
801027eb: 83 e1 08 and $0x8,%ecx
shift &= ~E0ESC;
}
shift |= shiftcode[data];
shift ^= togglecode[data];
c = charcode[shift & (CTL | SHIFT)][data];
801027ee: 8b 04 85 80 78 10 80 mov -0x7fef8780(,%eax,4),%eax
801027f5: 0f b6 04 10 movzbl (%eax,%edx,1),%eax
if(shift & CAPSLOCK){
801027f9: 74 c3 je 801027be <kbdgetc+0x4e>
if('a' <= c && c <= 'z')
801027fb: 8d 50 9f lea -0x61(%eax),%edx
801027fe: 83 fa 19 cmp $0x19,%edx
80102801: 77 1d ja 80102820 <kbdgetc+0xb0>
c += 'A' - 'a';
80102803: 83 e8 20 sub $0x20,%eax
else if('A' <= c && c <= 'Z')
c += 'a' - 'A';
}
return c;
}
80102806: 5d pop %ebp
80102807: c3 ret
80102808: 90 nop
80102809: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
data = inb(KBDATAP);
if(data == 0xE0){
shift |= E0ESC;
return 0;
80102810: 31 c0 xor %eax,%eax
if((st & KBS_DIB) == 0)
return -1;
data = inb(KBDATAP);
if(data == 0xE0){
shift |= E0ESC;
80102812: 83 0d b4 b5 10 80 40 orl $0x40,0x8010b5b4
c += 'A' - 'a';
else if('A' <= c && c <= 'Z')
c += 'a' - 'A';
}
return c;
}
80102819: 5d pop %ebp
8010281a: c3 ret
8010281b: 90 nop
8010281c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
shift ^= togglecode[data];
c = charcode[shift & (CTL | SHIFT)][data];
if(shift & CAPSLOCK){
if('a' <= c && c <= 'z')
c += 'A' - 'a';
else if('A' <= c && c <= 'Z')
80102820: 8d 48 bf lea -0x41(%eax),%ecx
c += 'a' - 'A';
80102823: 8d 50 20 lea 0x20(%eax),%edx
}
return c;
}
80102826: 5d pop %ebp
c = charcode[shift & (CTL | SHIFT)][data];
if(shift & CAPSLOCK){
if('a' <= c && c <= 'z')
c += 'A' - 'a';
else if('A' <= c && c <= 'Z')
c += 'a' - 'A';
80102827: 83 f9 19 cmp $0x19,%ecx
8010282a: 0f 46 c2 cmovbe %edx,%eax
}
return c;
}
8010282d: c3 ret
8010282e: 66 90 xchg %ax,%ax
};
uint st, data, c;
st = inb(KBSTATP);
if((st & KBS_DIB) == 0)
return -1;
80102830: b8 ff ff ff ff mov $0xffffffff,%eax
c += 'A' - 'a';
else if('A' <= c && c <= 'Z')
c += 'a' - 'A';
}
return c;
}
80102835: 5d pop %ebp
80102836: c3 ret
80102837: 89 f6 mov %esi,%esi
80102839: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102840 <kbdintr>:
void
kbdintr(void)
{
80102840: 55 push %ebp
80102841: 89 e5 mov %esp,%ebp
80102843: 83 ec 14 sub $0x14,%esp
consoleintr(kbdgetc);
80102846: 68 70 27 10 80 push $0x80102770
8010284b: e8 d0 e0 ff ff call 80100920 <consoleintr>
}
80102850: 83 c4 10 add $0x10,%esp
80102853: c9 leave
80102854: c3 ret
80102855: 66 90 xchg %ax,%ax
80102857: 66 90 xchg %ax,%ax
80102859: 66 90 xchg %ax,%ax
8010285b: 66 90 xchg %ax,%ax
8010285d: 66 90 xchg %ax,%ax
8010285f: 90 nop
80102860 <lapicinit>:
}
void
lapicinit(void)
{
if(!lapic)
80102860: a1 7c 36 11 80 mov 0x8011367c,%eax
lapic[ID]; // wait for write to finish, by reading
}
void
lapicinit(void)
{
80102865: 55 push %ebp
80102866: 89 e5 mov %esp,%ebp
if(!lapic)
80102868: 85 c0 test %eax,%eax
8010286a: 0f 84 c8 00 00 00 je 80102938 <lapicinit+0xd8>
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
80102870: c7 80 f0 00 00 00 3f movl $0x13f,0xf0(%eax)
80102877: 01 00 00
lapic[ID]; // wait for write to finish, by reading
8010287a: 8b 50 20 mov 0x20(%eax),%edx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
8010287d: c7 80 e0 03 00 00 0b movl $0xb,0x3e0(%eax)
80102884: 00 00 00
lapic[ID]; // wait for write to finish, by reading
80102887: 8b 50 20 mov 0x20(%eax),%edx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
8010288a: c7 80 20 03 00 00 20 movl $0x20020,0x320(%eax)
80102891: 00 02 00
lapic[ID]; // wait for write to finish, by reading
80102894: 8b 50 20 mov 0x20(%eax),%edx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
80102897: c7 80 80 03 00 00 80 movl $0x989680,0x380(%eax)
8010289e: 96 98 00
lapic[ID]; // wait for write to finish, by reading
801028a1: 8b 50 20 mov 0x20(%eax),%edx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
801028a4: c7 80 50 03 00 00 00 movl $0x10000,0x350(%eax)
801028ab: 00 01 00
lapic[ID]; // wait for write to finish, by reading
801028ae: 8b 50 20 mov 0x20(%eax),%edx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
801028b1: c7 80 60 03 00 00 00 movl $0x10000,0x360(%eax)
801028b8: 00 01 00
lapic[ID]; // wait for write to finish, by reading
801028bb: 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)
801028be: 8b 50 30 mov 0x30(%eax),%edx
801028c1: c1 ea 10 shr $0x10,%edx
801028c4: 80 fa 03 cmp $0x3,%dl
801028c7: 77 77 ja 80102940 <lapicinit+0xe0>
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
801028c9: c7 80 70 03 00 00 33 movl $0x33,0x370(%eax)
801028d0: 00 00 00
lapic[ID]; // wait for write to finish, by reading
801028d3: 8b 50 20 mov 0x20(%eax),%edx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
801028d6: c7 80 80 02 00 00 00 movl $0x0,0x280(%eax)
801028dd: 00 00 00
lapic[ID]; // wait for write to finish, by reading
801028e0: 8b 50 20 mov 0x20(%eax),%edx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
801028e3: c7 80 80 02 00 00 00 movl $0x0,0x280(%eax)
801028ea: 00 00 00
lapic[ID]; // wait for write to finish, by reading
801028ed: 8b 50 20 mov 0x20(%eax),%edx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
801028f0: c7 80 b0 00 00 00 00 movl $0x0,0xb0(%eax)
801028f7: 00 00 00
lapic[ID]; // wait for write to finish, by reading
801028fa: 8b 50 20 mov 0x20(%eax),%edx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
801028fd: c7 80 10 03 00 00 00 movl $0x0,0x310(%eax)
80102904: 00 00 00
lapic[ID]; // wait for write to finish, by reading
80102907: 8b 50 20 mov 0x20(%eax),%edx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
8010290a: c7 80 00 03 00 00 00 movl $0x88500,0x300(%eax)
80102911: 85 08 00
lapic[ID]; // wait for write to finish, by reading
80102914: 8b 50 20 mov 0x20(%eax),%edx
80102917: 89 f6 mov %esi,%esi
80102919: 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)
80102920: 8b 90 00 03 00 00 mov 0x300(%eax),%edx
80102926: 80 e6 10 and $0x10,%dh
80102929: 75 f5 jne 80102920 <lapicinit+0xc0>
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
8010292b: c7 80 80 00 00 00 00 movl $0x0,0x80(%eax)
80102932: 00 00 00
lapic[ID]; // wait for write to finish, by reading
80102935: 8b 40 20 mov 0x20(%eax),%eax
while(lapic[ICRLO] & DELIVS)
;
// Enable interrupts on the APIC (but not on the processor).
lapicw(TPR, 0);
}
80102938: 5d pop %ebp
80102939: c3 ret
8010293a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
80102940: c7 80 40 03 00 00 00 movl $0x10000,0x340(%eax)
80102947: 00 01 00
lapic[ID]; // wait for write to finish, by reading
8010294a: 8b 50 20 mov 0x20(%eax),%edx
8010294d: e9 77 ff ff ff jmp 801028c9 <lapicinit+0x69>
80102952: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80102959: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102960 <lapicid>:
}
int
lapicid(void)
{
if (!lapic)
80102960: a1 7c 36 11 80 mov 0x8011367c,%eax
lapicw(TPR, 0);
}
int
lapicid(void)
{
80102965: 55 push %ebp
80102966: 89 e5 mov %esp,%ebp
if (!lapic)
80102968: 85 c0 test %eax,%eax
8010296a: 74 0c je 80102978 <lapicid+0x18>
return 0;
return lapic[ID] >> 24;
8010296c: 8b 40 20 mov 0x20(%eax),%eax
}
8010296f: 5d pop %ebp
int
lapicid(void)
{
if (!lapic)
return 0;
return lapic[ID] >> 24;
80102970: c1 e8 18 shr $0x18,%eax
}
80102973: c3 ret
80102974: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
int
lapicid(void)
{
if (!lapic)
return 0;
80102978: 31 c0 xor %eax,%eax
return lapic[ID] >> 24;
}
8010297a: 5d pop %ebp
8010297b: c3 ret
8010297c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102980 <lapiceoi>:
// Acknowledge interrupt.
void
lapiceoi(void)
{
if(lapic)
80102980: a1 7c 36 11 80 mov 0x8011367c,%eax
}
// Acknowledge interrupt.
void
lapiceoi(void)
{
80102985: 55 push %ebp
80102986: 89 e5 mov %esp,%ebp
if(lapic)
80102988: 85 c0 test %eax,%eax
8010298a: 74 0d je 80102999 <lapiceoi+0x19>
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
8010298c: c7 80 b0 00 00 00 00 movl $0x0,0xb0(%eax)
80102993: 00 00 00
lapic[ID]; // wait for write to finish, by reading
80102996: 8b 40 20 mov 0x20(%eax),%eax
void
lapiceoi(void)
{
if(lapic)
lapicw(EOI, 0);
}
80102999: 5d pop %ebp
8010299a: c3 ret
8010299b: 90 nop
8010299c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801029a0 <microdelay>:
// Spin for a given number of microseconds.
// On real hardware would want to tune this dynamically.
void
microdelay(int us)
{
801029a0: 55 push %ebp
801029a1: 89 e5 mov %esp,%ebp
}
801029a3: 5d pop %ebp
801029a4: c3 ret
801029a5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801029a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801029b0 <lapicstartap>:
// Start additional processor running entry code at addr.
// See Appendix B of MultiProcessor Specification.
void
lapicstartap(uchar apicid, uint addr)
{
801029b0: 55 push %ebp
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801029b1: ba 70 00 00 00 mov $0x70,%edx
801029b6: b8 0f 00 00 00 mov $0xf,%eax
801029bb: 89 e5 mov %esp,%ebp
801029bd: 53 push %ebx
801029be: 8b 4d 0c mov 0xc(%ebp),%ecx
801029c1: 8b 5d 08 mov 0x8(%ebp),%ebx
801029c4: ee out %al,(%dx)
801029c5: ba 71 00 00 00 mov $0x71,%edx
801029ca: b8 0a 00 00 00 mov $0xa,%eax
801029cf: 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;
801029d0: 31 c0 xor %eax,%eax
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
801029d2: c1 e3 18 shl $0x18,%ebx
// 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;
801029d5: 66 a3 67 04 00 80 mov %ax,0x80000467
wrv[1] = addr >> 4;
801029db: 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));
801029dd: c1 e9 0c shr $0xc,%ecx
// 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;
wrv[1] = addr >> 4;
801029e0: c1 e8 04 shr $0x4,%eax
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
801029e3: 89 da mov %ebx,%edx
// 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));
801029e5: 80 cd 06 or $0x6,%ch
// 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;
wrv[1] = addr >> 4;
801029e8: 66 a3 69 04 00 80 mov %ax,0x80000469
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
801029ee: a1 7c 36 11 80 mov 0x8011367c,%eax
801029f3: 89 98 10 03 00 00 mov %ebx,0x310(%eax)
lapic[ID]; // wait for write to finish, by reading
801029f9: 8b 58 20 mov 0x20(%eax),%ebx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
801029fc: c7 80 00 03 00 00 00 movl $0xc500,0x300(%eax)
80102a03: c5 00 00
lapic[ID]; // wait for write to finish, by reading
80102a06: 8b 58 20 mov 0x20(%eax),%ebx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
80102a09: c7 80 00 03 00 00 00 movl $0x8500,0x300(%eax)
80102a10: 85 00 00
lapic[ID]; // wait for write to finish, by reading
80102a13: 8b 58 20 mov 0x20(%eax),%ebx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
80102a16: 89 90 10 03 00 00 mov %edx,0x310(%eax)
lapic[ID]; // wait for write to finish, by reading
80102a1c: 8b 58 20 mov 0x20(%eax),%ebx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
80102a1f: 89 88 00 03 00 00 mov %ecx,0x300(%eax)
lapic[ID]; // wait for write to finish, by reading
80102a25: 8b 58 20 mov 0x20(%eax),%ebx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
80102a28: 89 90 10 03 00 00 mov %edx,0x310(%eax)
lapic[ID]; // wait for write to finish, by reading
80102a2e: 8b 50 20 mov 0x20(%eax),%edx
//PAGEBREAK!
static void
lapicw(int index, int value)
{
lapic[index] = value;
80102a31: 89 88 00 03 00 00 mov %ecx,0x300(%eax)
lapic[ID]; // wait for write to finish, by reading
80102a37: 8b 40 20 mov 0x20(%eax),%eax
for(i = 0; i < 2; i++){
lapicw(ICRHI, apicid<<24);
lapicw(ICRLO, STARTUP | (addr>>12));
microdelay(200);
}
}
80102a3a: 5b pop %ebx
80102a3b: 5d pop %ebp
80102a3c: c3 ret
80102a3d: 8d 76 00 lea 0x0(%esi),%esi
80102a40 <cmostime>:
r->year = cmos_read(YEAR);
}
// qemu seems to use 24-hour GWT and the values are BCD encoded
void cmostime(struct rtcdate *r)
{
80102a40: 55 push %ebp
80102a41: ba 70 00 00 00 mov $0x70,%edx
80102a46: b8 0b 00 00 00 mov $0xb,%eax
80102a4b: 89 e5 mov %esp,%ebp
80102a4d: 57 push %edi
80102a4e: 56 push %esi
80102a4f: 53 push %ebx
80102a50: 83 ec 4c sub $0x4c,%esp
80102a53: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102a54: ba 71 00 00 00 mov $0x71,%edx
80102a59: ec in (%dx),%al
80102a5a: 83 e0 04 and $0x4,%eax
80102a5d: 8d 75 d0 lea -0x30(%ebp),%esi
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102a60: 31 db xor %ebx,%ebx
80102a62: 88 45 b7 mov %al,-0x49(%ebp)
80102a65: bf 70 00 00 00 mov $0x70,%edi
80102a6a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80102a70: 89 d8 mov %ebx,%eax
80102a72: 89 fa mov %edi,%edx
80102a74: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102a75: b9 71 00 00 00 mov $0x71,%ecx
80102a7a: 89 ca mov %ecx,%edx
80102a7c: ec in (%dx),%al
return inb(CMOS_RETURN);
}
static void fill_rtcdate(struct rtcdate *r)
{
r->second = cmos_read(SECS);
80102a7d: 0f b6 c0 movzbl %al,%eax
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102a80: 89 fa mov %edi,%edx
80102a82: 89 45 b8 mov %eax,-0x48(%ebp)
80102a85: b8 02 00 00 00 mov $0x2,%eax
80102a8a: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102a8b: 89 ca mov %ecx,%edx
80102a8d: ec in (%dx),%al
r->minute = cmos_read(MINS);
80102a8e: 0f b6 c0 movzbl %al,%eax
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102a91: 89 fa mov %edi,%edx
80102a93: 89 45 bc mov %eax,-0x44(%ebp)
80102a96: b8 04 00 00 00 mov $0x4,%eax
80102a9b: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102a9c: 89 ca mov %ecx,%edx
80102a9e: ec in (%dx),%al
r->hour = cmos_read(HOURS);
80102a9f: 0f b6 c0 movzbl %al,%eax
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102aa2: 89 fa mov %edi,%edx
80102aa4: 89 45 c0 mov %eax,-0x40(%ebp)
80102aa7: b8 07 00 00 00 mov $0x7,%eax
80102aac: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102aad: 89 ca mov %ecx,%edx
80102aaf: ec in (%dx),%al
r->day = cmos_read(DAY);
80102ab0: 0f b6 c0 movzbl %al,%eax
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102ab3: 89 fa mov %edi,%edx
80102ab5: 89 45 c4 mov %eax,-0x3c(%ebp)
80102ab8: b8 08 00 00 00 mov $0x8,%eax
80102abd: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102abe: 89 ca mov %ecx,%edx
80102ac0: ec in (%dx),%al
r->month = cmos_read(MONTH);
80102ac1: 0f b6 c0 movzbl %al,%eax
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102ac4: 89 fa mov %edi,%edx
80102ac6: 89 45 c8 mov %eax,-0x38(%ebp)
80102ac9: b8 09 00 00 00 mov $0x9,%eax
80102ace: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102acf: 89 ca mov %ecx,%edx
80102ad1: ec in (%dx),%al
r->year = cmos_read(YEAR);
80102ad2: 0f b6 c0 movzbl %al,%eax
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102ad5: 89 fa mov %edi,%edx
80102ad7: 89 45 cc mov %eax,-0x34(%ebp)
80102ada: b8 0a 00 00 00 mov $0xa,%eax
80102adf: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102ae0: 89 ca mov %ecx,%edx
80102ae2: 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)
80102ae3: 84 c0 test %al,%al
80102ae5: 78 89 js 80102a70 <cmostime+0x30>
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102ae7: 89 d8 mov %ebx,%eax
80102ae9: 89 fa mov %edi,%edx
80102aeb: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102aec: 89 ca mov %ecx,%edx
80102aee: ec in (%dx),%al
return inb(CMOS_RETURN);
}
static void fill_rtcdate(struct rtcdate *r)
{
r->second = cmos_read(SECS);
80102aef: 0f b6 c0 movzbl %al,%eax
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102af2: 89 fa mov %edi,%edx
80102af4: 89 45 d0 mov %eax,-0x30(%ebp)
80102af7: b8 02 00 00 00 mov $0x2,%eax
80102afc: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102afd: 89 ca mov %ecx,%edx
80102aff: ec in (%dx),%al
r->minute = cmos_read(MINS);
80102b00: 0f b6 c0 movzbl %al,%eax
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102b03: 89 fa mov %edi,%edx
80102b05: 89 45 d4 mov %eax,-0x2c(%ebp)
80102b08: b8 04 00 00 00 mov $0x4,%eax
80102b0d: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102b0e: 89 ca mov %ecx,%edx
80102b10: ec in (%dx),%al
r->hour = cmos_read(HOURS);
80102b11: 0f b6 c0 movzbl %al,%eax
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102b14: 89 fa mov %edi,%edx
80102b16: 89 45 d8 mov %eax,-0x28(%ebp)
80102b19: b8 07 00 00 00 mov $0x7,%eax
80102b1e: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102b1f: 89 ca mov %ecx,%edx
80102b21: ec in (%dx),%al
r->day = cmos_read(DAY);
80102b22: 0f b6 c0 movzbl %al,%eax
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102b25: 89 fa mov %edi,%edx
80102b27: 89 45 dc mov %eax,-0x24(%ebp)
80102b2a: b8 08 00 00 00 mov $0x8,%eax
80102b2f: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102b30: 89 ca mov %ecx,%edx
80102b32: ec in (%dx),%al
r->month = cmos_read(MONTH);
80102b33: 0f b6 c0 movzbl %al,%eax
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80102b36: 89 fa mov %edi,%edx
80102b38: 89 45 e0 mov %eax,-0x20(%ebp)
80102b3b: b8 09 00 00 00 mov $0x9,%eax
80102b40: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80102b41: 89 ca mov %ecx,%edx
80102b43: ec in (%dx),%al
r->year = cmos_read(YEAR);
80102b44: 0f b6 c0 movzbl %al,%eax
for(;;) {
fill_rtcdate(&t1);
if(cmos_read(CMOS_STATA) & CMOS_UIP)
continue;
fill_rtcdate(&t2);
if(memcmp(&t1, &t2, sizeof(t1)) == 0)
80102b47: 83 ec 04 sub $0x4,%esp
r->second = cmos_read(SECS);
r->minute = cmos_read(MINS);
r->hour = cmos_read(HOURS);
r->day = cmos_read(DAY);
r->month = cmos_read(MONTH);
r->year = cmos_read(YEAR);
80102b4a: 89 45 e4 mov %eax,-0x1c(%ebp)
for(;;) {
fill_rtcdate(&t1);
if(cmos_read(CMOS_STATA) & CMOS_UIP)
continue;
fill_rtcdate(&t2);
if(memcmp(&t1, &t2, sizeof(t1)) == 0)
80102b4d: 8d 45 b8 lea -0x48(%ebp),%eax
80102b50: 6a 18 push $0x18
80102b52: 56 push %esi
80102b53: 50 push %eax
80102b54: e8 67 1b 00 00 call 801046c0 <memcmp>
80102b59: 83 c4 10 add $0x10,%esp
80102b5c: 85 c0 test %eax,%eax
80102b5e: 0f 85 0c ff ff ff jne 80102a70 <cmostime+0x30>
break;
}
// convert
if(bcd) {
80102b64: 80 7d b7 00 cmpb $0x0,-0x49(%ebp)
80102b68: 75 78 jne 80102be2 <cmostime+0x1a2>
#define CONV(x) (t1.x = ((t1.x >> 4) * 10) + (t1.x & 0xf))
CONV(second);
80102b6a: 8b 45 b8 mov -0x48(%ebp),%eax
80102b6d: 89 c2 mov %eax,%edx
80102b6f: 83 e0 0f and $0xf,%eax
80102b72: c1 ea 04 shr $0x4,%edx
80102b75: 8d 14 92 lea (%edx,%edx,4),%edx
80102b78: 8d 04 50 lea (%eax,%edx,2),%eax
80102b7b: 89 45 b8 mov %eax,-0x48(%ebp)
CONV(minute);
80102b7e: 8b 45 bc mov -0x44(%ebp),%eax
80102b81: 89 c2 mov %eax,%edx
80102b83: 83 e0 0f and $0xf,%eax
80102b86: c1 ea 04 shr $0x4,%edx
80102b89: 8d 14 92 lea (%edx,%edx,4),%edx
80102b8c: 8d 04 50 lea (%eax,%edx,2),%eax
80102b8f: 89 45 bc mov %eax,-0x44(%ebp)
CONV(hour );
80102b92: 8b 45 c0 mov -0x40(%ebp),%eax
80102b95: 89 c2 mov %eax,%edx
80102b97: 83 e0 0f and $0xf,%eax
80102b9a: c1 ea 04 shr $0x4,%edx
80102b9d: 8d 14 92 lea (%edx,%edx,4),%edx
80102ba0: 8d 04 50 lea (%eax,%edx,2),%eax
80102ba3: 89 45 c0 mov %eax,-0x40(%ebp)
CONV(day );
80102ba6: 8b 45 c4 mov -0x3c(%ebp),%eax
80102ba9: 89 c2 mov %eax,%edx
80102bab: 83 e0 0f and $0xf,%eax
80102bae: c1 ea 04 shr $0x4,%edx
80102bb1: 8d 14 92 lea (%edx,%edx,4),%edx
80102bb4: 8d 04 50 lea (%eax,%edx,2),%eax
80102bb7: 89 45 c4 mov %eax,-0x3c(%ebp)
CONV(month );
80102bba: 8b 45 c8 mov -0x38(%ebp),%eax
80102bbd: 89 c2 mov %eax,%edx
80102bbf: 83 e0 0f and $0xf,%eax
80102bc2: c1 ea 04 shr $0x4,%edx
80102bc5: 8d 14 92 lea (%edx,%edx,4),%edx
80102bc8: 8d 04 50 lea (%eax,%edx,2),%eax
80102bcb: 89 45 c8 mov %eax,-0x38(%ebp)
CONV(year );
80102bce: 8b 45 cc mov -0x34(%ebp),%eax
80102bd1: 89 c2 mov %eax,%edx
80102bd3: 83 e0 0f and $0xf,%eax
80102bd6: c1 ea 04 shr $0x4,%edx
80102bd9: 8d 14 92 lea (%edx,%edx,4),%edx
80102bdc: 8d 04 50 lea (%eax,%edx,2),%eax
80102bdf: 89 45 cc mov %eax,-0x34(%ebp)
#undef CONV
}
*r = t1;
80102be2: 8b 75 08 mov 0x8(%ebp),%esi
80102be5: 8b 45 b8 mov -0x48(%ebp),%eax
80102be8: 89 06 mov %eax,(%esi)
80102bea: 8b 45 bc mov -0x44(%ebp),%eax
80102bed: 89 46 04 mov %eax,0x4(%esi)
80102bf0: 8b 45 c0 mov -0x40(%ebp),%eax
80102bf3: 89 46 08 mov %eax,0x8(%esi)
80102bf6: 8b 45 c4 mov -0x3c(%ebp),%eax
80102bf9: 89 46 0c mov %eax,0xc(%esi)
80102bfc: 8b 45 c8 mov -0x38(%ebp),%eax
80102bff: 89 46 10 mov %eax,0x10(%esi)
80102c02: 8b 45 cc mov -0x34(%ebp),%eax
80102c05: 89 46 14 mov %eax,0x14(%esi)
r->year += 2000;
80102c08: 81 46 14 d0 07 00 00 addl $0x7d0,0x14(%esi)
}
80102c0f: 8d 65 f4 lea -0xc(%ebp),%esp
80102c12: 5b pop %ebx
80102c13: 5e pop %esi
80102c14: 5f pop %edi
80102c15: 5d pop %ebp
80102c16: c3 ret
80102c17: 66 90 xchg %ax,%ax
80102c19: 66 90 xchg %ax,%ax
80102c1b: 66 90 xchg %ax,%ax
80102c1d: 66 90 xchg %ax,%ax
80102c1f: 90 nop
80102c20 <install_trans>:
static void
install_trans(void)
{
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
80102c20: 8b 0d c8 36 11 80 mov 0x801136c8,%ecx
80102c26: 85 c9 test %ecx,%ecx
80102c28: 0f 8e 85 00 00 00 jle 80102cb3 <install_trans+0x93>
}
// Copy committed blocks from log to their home location
static void
install_trans(void)
{
80102c2e: 55 push %ebp
80102c2f: 89 e5 mov %esp,%ebp
80102c31: 57 push %edi
80102c32: 56 push %esi
80102c33: 53 push %ebx
80102c34: 31 db xor %ebx,%ebx
80102c36: 83 ec 0c sub $0xc,%esp
80102c39: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block
80102c40: a1 b4 36 11 80 mov 0x801136b4,%eax
80102c45: 83 ec 08 sub $0x8,%esp
80102c48: 01 d8 add %ebx,%eax
80102c4a: 83 c0 01 add $0x1,%eax
80102c4d: 50 push %eax
80102c4e: ff 35 c4 36 11 80 pushl 0x801136c4
80102c54: e8 77 d4 ff ff call 801000d0 <bread>
80102c59: 89 c7 mov %eax,%edi
struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst
80102c5b: 58 pop %eax
80102c5c: 5a pop %edx
80102c5d: ff 34 9d cc 36 11 80 pushl -0x7feec934(,%ebx,4)
80102c64: ff 35 c4 36 11 80 pushl 0x801136c4
static void
install_trans(void)
{
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
80102c6a: 83 c3 01 add $0x1,%ebx
struct buf *lbuf = bread(log.dev, log.start+tail+1); // read log block
struct buf *dbuf = bread(log.dev, log.lh.block[tail]); // read dst
80102c6d: e8 5e d4 ff ff call 801000d0 <bread>
80102c72: 89 c6 mov %eax,%esi
memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst
80102c74: 8d 47 5c lea 0x5c(%edi),%eax
80102c77: 83 c4 0c add $0xc,%esp
80102c7a: 68 00 02 00 00 push $0x200
80102c7f: 50 push %eax
80102c80: 8d 46 5c lea 0x5c(%esi),%eax
80102c83: 50 push %eax
80102c84: e8 97 1a 00 00 call 80104720 <memmove>
bwrite(dbuf); // write dst to disk
80102c89: 89 34 24 mov %esi,(%esp)
80102c8c: e8 0f d5 ff ff call 801001a0 <bwrite>
brelse(lbuf);
80102c91: 89 3c 24 mov %edi,(%esp)
80102c94: e8 47 d5 ff ff call 801001e0 <brelse>
brelse(dbuf);
80102c99: 89 34 24 mov %esi,(%esp)
80102c9c: e8 3f d5 ff ff call 801001e0 <brelse>
static void
install_trans(void)
{
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
80102ca1: 83 c4 10 add $0x10,%esp
80102ca4: 39 1d c8 36 11 80 cmp %ebx,0x801136c8
80102caa: 7f 94 jg 80102c40 <install_trans+0x20>
memmove(dbuf->data, lbuf->data, BSIZE); // copy block to dst
bwrite(dbuf); // write dst to disk
brelse(lbuf);
brelse(dbuf);
}
}
80102cac: 8d 65 f4 lea -0xc(%ebp),%esp
80102caf: 5b pop %ebx
80102cb0: 5e pop %esi
80102cb1: 5f pop %edi
80102cb2: 5d pop %ebp
80102cb3: f3 c3 repz ret
80102cb5: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80102cb9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102cc0 <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)
{
80102cc0: 55 push %ebp
80102cc1: 89 e5 mov %esp,%ebp
80102cc3: 53 push %ebx
80102cc4: 83 ec 0c sub $0xc,%esp
struct buf *buf = bread(log.dev, log.start);
80102cc7: ff 35 b4 36 11 80 pushl 0x801136b4
80102ccd: ff 35 c4 36 11 80 pushl 0x801136c4
80102cd3: e8 f8 d3 ff ff call 801000d0 <bread>
struct logheader *hb = (struct logheader *) (buf->data);
int i;
hb->n = log.lh.n;
80102cd8: 8b 0d c8 36 11 80 mov 0x801136c8,%ecx
for (i = 0; i < log.lh.n; i++) {
80102cde: 83 c4 10 add $0x10,%esp
// This is the true point at which the
// current transaction commits.
static void
write_head(void)
{
struct buf *buf = bread(log.dev, log.start);
80102ce1: 89 c3 mov %eax,%ebx
struct logheader *hb = (struct logheader *) (buf->data);
int i;
hb->n = log.lh.n;
for (i = 0; i < log.lh.n; i++) {
80102ce3: 85 c9 test %ecx,%ecx
write_head(void)
{
struct buf *buf = bread(log.dev, log.start);
struct logheader *hb = (struct logheader *) (buf->data);
int i;
hb->n = log.lh.n;
80102ce5: 89 48 5c mov %ecx,0x5c(%eax)
for (i = 0; i < log.lh.n; i++) {
80102ce8: 7e 1f jle 80102d09 <write_head+0x49>
80102cea: 8d 04 8d 00 00 00 00 lea 0x0(,%ecx,4),%eax
80102cf1: 31 d2 xor %edx,%edx
80102cf3: 90 nop
80102cf4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
hb->block[i] = log.lh.block[i];
80102cf8: 8b 8a cc 36 11 80 mov -0x7feec934(%edx),%ecx
80102cfe: 89 4c 13 60 mov %ecx,0x60(%ebx,%edx,1)
80102d02: 83 c2 04 add $0x4,%edx
{
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++) {
80102d05: 39 c2 cmp %eax,%edx
80102d07: 75 ef jne 80102cf8 <write_head+0x38>
hb->block[i] = log.lh.block[i];
}
bwrite(buf);
80102d09: 83 ec 0c sub $0xc,%esp
80102d0c: 53 push %ebx
80102d0d: e8 8e d4 ff ff call 801001a0 <bwrite>
brelse(buf);
80102d12: 89 1c 24 mov %ebx,(%esp)
80102d15: e8 c6 d4 ff ff call 801001e0 <brelse>
}
80102d1a: 8b 5d fc mov -0x4(%ebp),%ebx
80102d1d: c9 leave
80102d1e: c3 ret
80102d1f: 90 nop
80102d20 <initlog>:
static void recover_from_log(void);
static void commit();
void
initlog(int dev)
{
80102d20: 55 push %ebp
80102d21: 89 e5 mov %esp,%ebp
80102d23: 53 push %ebx
80102d24: 83 ec 2c sub $0x2c,%esp
80102d27: 8b 5d 08 mov 0x8(%ebp),%ebx
if (sizeof(struct logheader) >= BSIZE)
panic("initlog: too big logheader");
struct superblock sb;
initlock(&log.lock, "log");
80102d2a: 68 a0 7a 10 80 push $0x80107aa0
80102d2f: 68 80 36 11 80 push $0x80113680
80102d34: e8 c7 16 00 00 call 80104400 <initlock>
readsb(dev, &sb);
80102d39: 58 pop %eax
80102d3a: 8d 45 dc lea -0x24(%ebp),%eax
80102d3d: 5a pop %edx
80102d3e: 50 push %eax
80102d3f: 53 push %ebx
80102d40: e8 8b e7 ff ff call 801014d0 <readsb>
log.start = sb.logstart;
log.size = sb.nlog;
80102d45: 8b 55 e8 mov -0x18(%ebp),%edx
panic("initlog: too big logheader");
struct superblock sb;
initlock(&log.lock, "log");
readsb(dev, &sb);
log.start = sb.logstart;
80102d48: 8b 45 ec mov -0x14(%ebp),%eax
// Read the log header from disk into the in-memory log header
static void
read_head(void)
{
struct buf *buf = bread(log.dev, log.start);
80102d4b: 59 pop %ecx
struct superblock sb;
initlock(&log.lock, "log");
readsb(dev, &sb);
log.start = sb.logstart;
log.size = sb.nlog;
log.dev = dev;
80102d4c: 89 1d c4 36 11 80 mov %ebx,0x801136c4
struct superblock sb;
initlock(&log.lock, "log");
readsb(dev, &sb);
log.start = sb.logstart;
log.size = sb.nlog;
80102d52: 89 15 b8 36 11 80 mov %edx,0x801136b8
panic("initlog: too big logheader");
struct superblock sb;
initlock(&log.lock, "log");
readsb(dev, &sb);
log.start = sb.logstart;
80102d58: a3 b4 36 11 80 mov %eax,0x801136b4
// Read the log header from disk into the in-memory log header
static void
read_head(void)
{
struct buf *buf = bread(log.dev, log.start);
80102d5d: 5a pop %edx
80102d5e: 50 push %eax
80102d5f: 53 push %ebx
80102d60: e8 6b d3 ff ff call 801000d0 <bread>
struct logheader *lh = (struct logheader *) (buf->data);
int i;
log.lh.n = lh->n;
80102d65: 8b 48 5c mov 0x5c(%eax),%ecx
for (i = 0; i < log.lh.n; i++) {
80102d68: 83 c4 10 add $0x10,%esp
80102d6b: 85 c9 test %ecx,%ecx
read_head(void)
{
struct buf *buf = bread(log.dev, log.start);
struct logheader *lh = (struct logheader *) (buf->data);
int i;
log.lh.n = lh->n;
80102d6d: 89 0d c8 36 11 80 mov %ecx,0x801136c8
for (i = 0; i < log.lh.n; i++) {
80102d73: 7e 1c jle 80102d91 <initlog+0x71>
80102d75: 8d 1c 8d 00 00 00 00 lea 0x0(,%ecx,4),%ebx
80102d7c: 31 d2 xor %edx,%edx
80102d7e: 66 90 xchg %ax,%ax
log.lh.block[i] = lh->block[i];
80102d80: 8b 4c 10 60 mov 0x60(%eax,%edx,1),%ecx
80102d84: 83 c2 04 add $0x4,%edx
80102d87: 89 8a c8 36 11 80 mov %ecx,-0x7feec938(%edx)
{
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++) {
80102d8d: 39 da cmp %ebx,%edx
80102d8f: 75 ef jne 80102d80 <initlog+0x60>
log.lh.block[i] = lh->block[i];
}
brelse(buf);
80102d91: 83 ec 0c sub $0xc,%esp
80102d94: 50 push %eax
80102d95: e8 46 d4 ff ff call 801001e0 <brelse>
static void
recover_from_log(void)
{
read_head();
install_trans(); // if committed, copy from log to disk
80102d9a: e8 81 fe ff ff call 80102c20 <install_trans>
log.lh.n = 0;
80102d9f: c7 05 c8 36 11 80 00 movl $0x0,0x801136c8
80102da6: 00 00 00
write_head(); // clear the log
80102da9: e8 12 ff ff ff call 80102cc0 <write_head>
readsb(dev, &sb);
log.start = sb.logstart;
log.size = sb.nlog;
log.dev = dev;
recover_from_log();
}
80102dae: 8b 5d fc mov -0x4(%ebp),%ebx
80102db1: c9 leave
80102db2: c3 ret
80102db3: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80102db9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102dc0 <begin_op>:
}
// called at the start of each FS system call.
void
begin_op(void)
{
80102dc0: 55 push %ebp
80102dc1: 89 e5 mov %esp,%ebp
80102dc3: 83 ec 14 sub $0x14,%esp
acquire(&log.lock);
80102dc6: 68 80 36 11 80 push $0x80113680
80102dcb: e8 30 17 00 00 call 80104500 <acquire>
80102dd0: 83 c4 10 add $0x10,%esp
80102dd3: eb 18 jmp 80102ded <begin_op+0x2d>
80102dd5: 8d 76 00 lea 0x0(%esi),%esi
while(1){
if(log.committing){
sleep(&log, &log.lock);
80102dd8: 83 ec 08 sub $0x8,%esp
80102ddb: 68 80 36 11 80 push $0x80113680
80102de0: 68 80 36 11 80 push $0x80113680
80102de5: e8 86 11 00 00 call 80103f70 <sleep>
80102dea: 83 c4 10 add $0x10,%esp
void
begin_op(void)
{
acquire(&log.lock);
while(1){
if(log.committing){
80102ded: a1 c0 36 11 80 mov 0x801136c0,%eax
80102df2: 85 c0 test %eax,%eax
80102df4: 75 e2 jne 80102dd8 <begin_op+0x18>
sleep(&log, &log.lock);
} else if(log.lh.n + (log.outstanding+1)*MAXOPBLOCKS > LOGSIZE){
80102df6: a1 bc 36 11 80 mov 0x801136bc,%eax
80102dfb: 8b 15 c8 36 11 80 mov 0x801136c8,%edx
80102e01: 83 c0 01 add $0x1,%eax
80102e04: 8d 0c 80 lea (%eax,%eax,4),%ecx
80102e07: 8d 14 4a lea (%edx,%ecx,2),%edx
80102e0a: 83 fa 1e cmp $0x1e,%edx
80102e0d: 7f c9 jg 80102dd8 <begin_op+0x18>
// this op might exhaust log space; wait for commit.
sleep(&log, &log.lock);
} else {
log.outstanding += 1;
release(&log.lock);
80102e0f: 83 ec 0c sub $0xc,%esp
sleep(&log, &log.lock);
} else if(log.lh.n + (log.outstanding+1)*MAXOPBLOCKS > LOGSIZE){
// this op might exhaust log space; wait for commit.
sleep(&log, &log.lock);
} else {
log.outstanding += 1;
80102e12: a3 bc 36 11 80 mov %eax,0x801136bc
release(&log.lock);
80102e17: 68 80 36 11 80 push $0x80113680
80102e1c: e8 ff 17 00 00 call 80104620 <release>
break;
}
}
}
80102e21: 83 c4 10 add $0x10,%esp
80102e24: c9 leave
80102e25: c3 ret
80102e26: 8d 76 00 lea 0x0(%esi),%esi
80102e29: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80102e30 <end_op>:
// called at the end of each FS system call.
// commits if this was the last outstanding operation.
void
end_op(void)
{
80102e30: 55 push %ebp
80102e31: 89 e5 mov %esp,%ebp
80102e33: 57 push %edi
80102e34: 56 push %esi
80102e35: 53 push %ebx
80102e36: 83 ec 18 sub $0x18,%esp
int do_commit = 0;
acquire(&log.lock);
80102e39: 68 80 36 11 80 push $0x80113680
80102e3e: e8 bd 16 00 00 call 80104500 <acquire>
log.outstanding -= 1;
80102e43: a1 bc 36 11 80 mov 0x801136bc,%eax
if(log.committing)
80102e48: 8b 1d c0 36 11 80 mov 0x801136c0,%ebx
80102e4e: 83 c4 10 add $0x10,%esp
end_op(void)
{
int do_commit = 0;
acquire(&log.lock);
log.outstanding -= 1;
80102e51: 83 e8 01 sub $0x1,%eax
if(log.committing)
80102e54: 85 db test %ebx,%ebx
end_op(void)
{
int do_commit = 0;
acquire(&log.lock);
log.outstanding -= 1;
80102e56: a3 bc 36 11 80 mov %eax,0x801136bc
if(log.committing)
80102e5b: 0f 85 23 01 00 00 jne 80102f84 <end_op+0x154>
panic("log.committing");
if(log.outstanding == 0){
80102e61: 85 c0 test %eax,%eax
80102e63: 0f 85 f7 00 00 00 jne 80102f60 <end_op+0x130>
// begin_op() may be waiting for log space,
// and decrementing log.outstanding has decreased
// the amount of reserved space.
wakeup(&log);
}
release(&log.lock);
80102e69: 83 ec 0c sub $0xc,%esp
log.outstanding -= 1;
if(log.committing)
panic("log.committing");
if(log.outstanding == 0){
do_commit = 1;
log.committing = 1;
80102e6c: c7 05 c0 36 11 80 01 movl $0x1,0x801136c0
80102e73: 00 00 00
}
static void
commit()
{
if (log.lh.n > 0) {
80102e76: 31 db xor %ebx,%ebx
// begin_op() may be waiting for log space,
// and decrementing log.outstanding has decreased
// the amount of reserved space.
wakeup(&log);
}
release(&log.lock);
80102e78: 68 80 36 11 80 push $0x80113680
80102e7d: e8 9e 17 00 00 call 80104620 <release>
}
static void
commit()
{
if (log.lh.n > 0) {
80102e82: 8b 0d c8 36 11 80 mov 0x801136c8,%ecx
80102e88: 83 c4 10 add $0x10,%esp
80102e8b: 85 c9 test %ecx,%ecx
80102e8d: 0f 8e 8a 00 00 00 jle 80102f1d <end_op+0xed>
80102e93: 90 nop
80102e94: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
write_log(void)
{
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
struct buf *to = bread(log.dev, log.start+tail+1); // log block
80102e98: a1 b4 36 11 80 mov 0x801136b4,%eax
80102e9d: 83 ec 08 sub $0x8,%esp
80102ea0: 01 d8 add %ebx,%eax
80102ea2: 83 c0 01 add $0x1,%eax
80102ea5: 50 push %eax
80102ea6: ff 35 c4 36 11 80 pushl 0x801136c4
80102eac: e8 1f d2 ff ff call 801000d0 <bread>
80102eb1: 89 c6 mov %eax,%esi
struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block
80102eb3: 58 pop %eax
80102eb4: 5a pop %edx
80102eb5: ff 34 9d cc 36 11 80 pushl -0x7feec934(,%ebx,4)
80102ebc: ff 35 c4 36 11 80 pushl 0x801136c4
static void
write_log(void)
{
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
80102ec2: 83 c3 01 add $0x1,%ebx
struct buf *to = bread(log.dev, log.start+tail+1); // log block
struct buf *from = bread(log.dev, log.lh.block[tail]); // cache block
80102ec5: e8 06 d2 ff ff call 801000d0 <bread>
80102eca: 89 c7 mov %eax,%edi
memmove(to->data, from->data, BSIZE);
80102ecc: 8d 40 5c lea 0x5c(%eax),%eax
80102ecf: 83 c4 0c add $0xc,%esp
80102ed2: 68 00 02 00 00 push $0x200
80102ed7: 50 push %eax
80102ed8: 8d 46 5c lea 0x5c(%esi),%eax
80102edb: 50 push %eax
80102edc: e8 3f 18 00 00 call 80104720 <memmove>
bwrite(to); // write the log
80102ee1: 89 34 24 mov %esi,(%esp)
80102ee4: e8 b7 d2 ff ff call 801001a0 <bwrite>
brelse(from);
80102ee9: 89 3c 24 mov %edi,(%esp)
80102eec: e8 ef d2 ff ff call 801001e0 <brelse>
brelse(to);
80102ef1: 89 34 24 mov %esi,(%esp)
80102ef4: e8 e7 d2 ff ff call 801001e0 <brelse>
static void
write_log(void)
{
int tail;
for (tail = 0; tail < log.lh.n; tail++) {
80102ef9: 83 c4 10 add $0x10,%esp
80102efc: 3b 1d c8 36 11 80 cmp 0x801136c8,%ebx
80102f02: 7c 94 jl 80102e98 <end_op+0x68>
static void
commit()
{
if (log.lh.n > 0) {
write_log(); // Write modified blocks from cache to log
write_head(); // Write header to disk -- the real commit
80102f04: e8 b7 fd ff ff call 80102cc0 <write_head>
install_trans(); // Now install writes to home locations
80102f09: e8 12 fd ff ff call 80102c20 <install_trans>
log.lh.n = 0;
80102f0e: c7 05 c8 36 11 80 00 movl $0x0,0x801136c8
80102f15: 00 00 00
write_head(); // Erase the transaction from the log
80102f18: e8 a3 fd ff ff call 80102cc0 <write_head>
if(do_commit){
// call commit w/o holding locks, since not allowed
// to sleep with locks.
commit();
acquire(&log.lock);
80102f1d: 83 ec 0c sub $0xc,%esp
80102f20: 68 80 36 11 80 push $0x80113680
80102f25: e8 d6 15 00 00 call 80104500 <acquire>
log.committing = 0;
wakeup(&log);
80102f2a: c7 04 24 80 36 11 80 movl $0x80113680,(%esp)
if(do_commit){
// call commit w/o holding locks, since not allowed
// to sleep with locks.
commit();
acquire(&log.lock);
log.committing = 0;
80102f31: c7 05 c0 36 11 80 00 movl $0x0,0x801136c0
80102f38: 00 00 00
wakeup(&log);
80102f3b: e8 00 12 00 00 call 80104140 <wakeup>
release(&log.lock);
80102f40: c7 04 24 80 36 11 80 movl $0x80113680,(%esp)
80102f47: e8 d4 16 00 00 call 80104620 <release>
80102f4c: 83 c4 10 add $0x10,%esp
}
}
80102f4f: 8d 65 f4 lea -0xc(%ebp),%esp
80102f52: 5b pop %ebx
80102f53: 5e pop %esi
80102f54: 5f pop %edi
80102f55: 5d pop %ebp
80102f56: c3 ret
80102f57: 89 f6 mov %esi,%esi
80102f59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
log.committing = 1;
} else {
// begin_op() may be waiting for log space,
// and decrementing log.outstanding has decreased
// the amount of reserved space.
wakeup(&log);
80102f60: 83 ec 0c sub $0xc,%esp
80102f63: 68 80 36 11 80 push $0x80113680
80102f68: e8 d3 11 00 00 call 80104140 <wakeup>
}
release(&log.lock);
80102f6d: c7 04 24 80 36 11 80 movl $0x80113680,(%esp)
80102f74: e8 a7 16 00 00 call 80104620 <release>
80102f79: 83 c4 10 add $0x10,%esp
acquire(&log.lock);
log.committing = 0;
wakeup(&log);
release(&log.lock);
}
}
80102f7c: 8d 65 f4 lea -0xc(%ebp),%esp
80102f7f: 5b pop %ebx
80102f80: 5e pop %esi
80102f81: 5f pop %edi
80102f82: 5d pop %ebp
80102f83: c3 ret
int do_commit = 0;
acquire(&log.lock);
log.outstanding -= 1;
if(log.committing)
panic("log.committing");
80102f84: 83 ec 0c sub $0xc,%esp
80102f87: 68 a4 7a 10 80 push $0x80107aa4
80102f8c: e8 0f d5 ff ff call 801004a0 <panic>
80102f91: eb 0d jmp 80102fa0 <log_write>
80102f93: 90 nop
80102f94: 90 nop
80102f95: 90 nop
80102f96: 90 nop
80102f97: 90 nop
80102f98: 90 nop
80102f99: 90 nop
80102f9a: 90 nop
80102f9b: 90 nop
80102f9c: 90 nop
80102f9d: 90 nop
80102f9e: 90 nop
80102f9f: 90 nop
80102fa0 <log_write>:
// modify bp->data[]
// log_write(bp)
// brelse(bp)
void
log_write(struct buf *b)
{
80102fa0: 55 push %ebp
80102fa1: 89 e5 mov %esp,%ebp
80102fa3: 53 push %ebx
80102fa4: 83 ec 04 sub $0x4,%esp
int i;
if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1)
80102fa7: 8b 15 c8 36 11 80 mov 0x801136c8,%edx
// modify bp->data[]
// log_write(bp)
// brelse(bp)
void
log_write(struct buf *b)
{
80102fad: 8b 5d 08 mov 0x8(%ebp),%ebx
int i;
if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1)
80102fb0: 83 fa 1d cmp $0x1d,%edx
80102fb3: 0f 8f 97 00 00 00 jg 80103050 <log_write+0xb0>
80102fb9: a1 b8 36 11 80 mov 0x801136b8,%eax
80102fbe: 83 e8 01 sub $0x1,%eax
80102fc1: 39 c2 cmp %eax,%edx
80102fc3: 0f 8d 87 00 00 00 jge 80103050 <log_write+0xb0>
panic("too big a transaction");
if (log.outstanding < 1)
80102fc9: a1 bc 36 11 80 mov 0x801136bc,%eax
80102fce: 85 c0 test %eax,%eax
80102fd0: 0f 8e 87 00 00 00 jle 8010305d <log_write+0xbd>
panic("log_write outside of trans");
acquire(&log.lock);
80102fd6: 83 ec 0c sub $0xc,%esp
80102fd9: 68 80 36 11 80 push $0x80113680
80102fde: e8 1d 15 00 00 call 80104500 <acquire>
for (i = 0; i < log.lh.n; i++) {
80102fe3: 8b 15 c8 36 11 80 mov 0x801136c8,%edx
80102fe9: 83 c4 10 add $0x10,%esp
80102fec: 83 fa 00 cmp $0x0,%edx
80102fef: 7e 50 jle 80103041 <log_write+0xa1>
if (log.lh.block[i] == b->blockno) // log absorbtion
80102ff1: 8b 4b 08 mov 0x8(%ebx),%ecx
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++) {
80102ff4: 31 c0 xor %eax,%eax
if (log.lh.block[i] == b->blockno) // log absorbtion
80102ff6: 3b 0d cc 36 11 80 cmp 0x801136cc,%ecx
80102ffc: 75 0b jne 80103009 <log_write+0x69>
80102ffe: eb 38 jmp 80103038 <log_write+0x98>
80103000: 39 0c 85 cc 36 11 80 cmp %ecx,-0x7feec934(,%eax,4)
80103007: 74 2f je 80103038 <log_write+0x98>
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++) {
80103009: 83 c0 01 add $0x1,%eax
8010300c: 39 d0 cmp %edx,%eax
8010300e: 75 f0 jne 80103000 <log_write+0x60>
if (log.lh.block[i] == b->blockno) // log absorbtion
break;
}
log.lh.block[i] = b->blockno;
80103010: 89 0c 95 cc 36 11 80 mov %ecx,-0x7feec934(,%edx,4)
if (i == log.lh.n)
log.lh.n++;
80103017: 83 c2 01 add $0x1,%edx
8010301a: 89 15 c8 36 11 80 mov %edx,0x801136c8
b->flags |= B_DIRTY; // prevent eviction
80103020: 83 0b 04 orl $0x4,(%ebx)
release(&log.lock);
80103023: c7 45 08 80 36 11 80 movl $0x80113680,0x8(%ebp)
}
8010302a: 8b 5d fc mov -0x4(%ebp),%ebx
8010302d: c9 leave
}
log.lh.block[i] = b->blockno;
if (i == log.lh.n)
log.lh.n++;
b->flags |= B_DIRTY; // prevent eviction
release(&log.lock);
8010302e: e9 ed 15 00 00 jmp 80104620 <release>
80103033: 90 nop
80103034: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
acquire(&log.lock);
for (i = 0; i < log.lh.n; i++) {
if (log.lh.block[i] == b->blockno) // log absorbtion
break;
}
log.lh.block[i] = b->blockno;
80103038: 89 0c 85 cc 36 11 80 mov %ecx,-0x7feec934(,%eax,4)
8010303f: eb df jmp 80103020 <log_write+0x80>
80103041: 8b 43 08 mov 0x8(%ebx),%eax
80103044: a3 cc 36 11 80 mov %eax,0x801136cc
if (i == log.lh.n)
80103049: 75 d5 jne 80103020 <log_write+0x80>
8010304b: eb ca jmp 80103017 <log_write+0x77>
8010304d: 8d 76 00 lea 0x0(%esi),%esi
log_write(struct buf *b)
{
int i;
if (log.lh.n >= LOGSIZE || log.lh.n >= log.size - 1)
panic("too big a transaction");
80103050: 83 ec 0c sub $0xc,%esp
80103053: 68 b3 7a 10 80 push $0x80107ab3
80103058: e8 43 d4 ff ff call 801004a0 <panic>
if (log.outstanding < 1)
panic("log_write outside of trans");
8010305d: 83 ec 0c sub $0xc,%esp
80103060: 68 c9 7a 10 80 push $0x80107ac9
80103065: e8 36 d4 ff ff call 801004a0 <panic>
8010306a: 66 90 xchg %ax,%ax
8010306c: 66 90 xchg %ax,%ax
8010306e: 66 90 xchg %ax,%ax
80103070 <mpmain>:
}
// Common CPU setup code.
static void
mpmain(void)
{
80103070: 55 push %ebp
80103071: 89 e5 mov %esp,%ebp
80103073: 53 push %ebx
80103074: 83 ec 04 sub $0x4,%esp
cprintf("cpu%d: starting %d\n", cpuid(), cpuid());
80103077: e8 54 09 00 00 call 801039d0 <cpuid>
8010307c: 89 c3 mov %eax,%ebx
8010307e: e8 4d 09 00 00 call 801039d0 <cpuid>
80103083: 83 ec 04 sub $0x4,%esp
80103086: 53 push %ebx
80103087: 50 push %eax
80103088: 68 e4 7a 10 80 push $0x80107ae4
8010308d: e8 fe d6 ff ff call 80100790 <cprintf>
idtinit(); // load idt register
80103092: e8 f9 28 00 00 call 80105990 <idtinit>
xchg(&(mycpu()->started), 1); // tell startothers() we're up
80103097: e8 b4 08 00 00 call 80103950 <mycpu>
8010309c: 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" :
8010309e: b8 01 00 00 00 mov $0x1,%eax
801030a3: f0 87 82 a0 00 00 00 lock xchg %eax,0xa0(%edx)
scheduler(); // start running processes
801030aa: e8 d1 0b 00 00 call 80103c80 <scheduler>
801030af: 90 nop
801030b0 <mpenter>:
}
// Other CPUs jump here from entryother.S.
static void
mpenter(void)
{
801030b0: 55 push %ebp
801030b1: 89 e5 mov %esp,%ebp
801030b3: 83 ec 08 sub $0x8,%esp
switchkvm();
801030b6: e8 d5 3c 00 00 call 80106d90 <switchkvm>
seginit();
801030bb: e8 d0 3b 00 00 call 80106c90 <seginit>
lapicinit();
801030c0: e8 9b f7 ff ff call 80102860 <lapicinit>
mpmain();
801030c5: e8 a6 ff ff ff call 80103070 <mpmain>
801030ca: 66 90 xchg %ax,%ax
801030cc: 66 90 xchg %ax,%ax
801030ce: 66 90 xchg %ax,%ax
801030d0 <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)
{
801030d0: 8d 4c 24 04 lea 0x4(%esp),%ecx
801030d4: 83 e4 f0 and $0xfffffff0,%esp
801030d7: ff 71 fc pushl -0x4(%ecx)
801030da: 55 push %ebp
801030db: 89 e5 mov %esp,%ebp
801030dd: 53 push %ebx
801030de: 51 push %ecx
// 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++){
801030df: bb 80 37 11 80 mov $0x80113780,%ebx
// Allocate a real stack and switch to it, first
// doing some setup required for memory allocator to work.
int
main(void)
{
kinit1(end, P2V(4*1024*1024)); // phys page allocator
801030e4: 83 ec 08 sub $0x8,%esp
801030e7: 68 00 00 40 80 push $0x80400000
801030ec: 68 a8 64 11 80 push $0x801164a8
801030f1: e8 3a f5 ff ff call 80102630 <kinit1>
kvmalloc(); // kernel page table
801030f6: e8 35 41 00 00 call 80107230 <kvmalloc>
mpinit(); // detect other processors
801030fb: e8 70 01 00 00 call 80103270 <mpinit>
lapicinit(); // interrupt controller
80103100: e8 5b f7 ff ff call 80102860 <lapicinit>
seginit(); // segment descriptors
80103105: e8 86 3b 00 00 call 80106c90 <seginit>
picinit(); // disable pic
8010310a: e8 31 03 00 00 call 80103440 <picinit>
ioapicinit(); // another interrupt controller
8010310f: e8 4c f3 ff ff call 80102460 <ioapicinit>
consoleinit(); // console hardware
80103114: e8 b7 d9 ff ff call 80100ad0 <consoleinit>
uartinit(); // serial port
80103119: e8 02 2e 00 00 call 80105f20 <uartinit>
pinit(); // process table
8010311e: e8 0d 08 00 00 call 80103930 <pinit>
tvinit(); // trap vectors
80103123: e8 c8 27 00 00 call 801058f0 <tvinit>
binit(); // buffer cache
80103128: e8 13 cf ff ff call 80100040 <binit>
fileinit(); // file table
8010312d: e8 4e dd ff ff call 80100e80 <fileinit>
ideinit(); // disk
80103132: e8 09 f1 ff ff call 80102240 <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);
80103137: 83 c4 0c add $0xc,%esp
8010313a: 68 8a 00 00 00 push $0x8a
8010313f: 68 8c b4 10 80 push $0x8010b48c
80103144: 68 00 70 00 80 push $0x80007000
80103149: e8 d2 15 00 00 call 80104720 <memmove>
for(c = cpus; c < cpus+ncpu; c++){
8010314e: 69 05 00 3d 11 80 b0 imul $0xb0,0x80113d00,%eax
80103155: 00 00 00
80103158: 83 c4 10 add $0x10,%esp
8010315b: 05 80 37 11 80 add $0x80113780,%eax
80103160: 39 d8 cmp %ebx,%eax
80103162: 76 6f jbe 801031d3 <main+0x103>
80103164: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(c == mycpu()) // We've started already.
80103168: e8 e3 07 00 00 call 80103950 <mycpu>
8010316d: 39 d8 cmp %ebx,%eax
8010316f: 74 49 je 801031ba <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();
80103171: e8 8a f5 ff ff call 80102700 <kalloc>
*(void**)(code-4) = stack + KSTACKSIZE;
80103176: 05 00 10 00 00 add $0x1000,%eax
*(void**)(code-8) = mpenter;
8010317b: c7 05 f8 6f 00 80 b0 movl $0x801030b0,0x80006ff8
80103182: 30 10 80
*(int**)(code-12) = (void *) V2P(entrypgdir);
80103185: c7 05 f4 6f 00 80 00 movl $0x10a000,0x80006ff4
8010318c: a0 10 00
// 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();
*(void**)(code-4) = stack + KSTACKSIZE;
8010318f: a3 fc 6f 00 80 mov %eax,0x80006ffc
*(void**)(code-8) = mpenter;
*(int**)(code-12) = (void *) V2P(entrypgdir);
lapicstartap(c->apicid, V2P(code));
80103194: 0f b6 03 movzbl (%ebx),%eax
80103197: 83 ec 08 sub $0x8,%esp
8010319a: 68 00 70 00 00 push $0x7000
8010319f: 50 push %eax
801031a0: e8 0b f8 ff ff call 801029b0 <lapicstartap>
801031a5: 83 c4 10 add $0x10,%esp
801031a8: 90 nop
801031a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
// wait for cpu to finish mpmain()
while(c->started == 0)
801031b0: 8b 83 a0 00 00 00 mov 0xa0(%ebx),%eax
801031b6: 85 c0 test %eax,%eax
801031b8: 74 f6 je 801031b0 <main+0xe0>
// 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++){
801031ba: 69 05 00 3d 11 80 b0 imul $0xb0,0x80113d00,%eax
801031c1: 00 00 00
801031c4: 81 c3 b0 00 00 00 add $0xb0,%ebx
801031ca: 05 80 37 11 80 add $0x80113780,%eax
801031cf: 39 c3 cmp %eax,%ebx
801031d1: 72 95 jb 80103168 <main+0x98>
tvinit(); // trap vectors
binit(); // buffer cache
fileinit(); // file table
ideinit(); // disk
startothers(); // start other processors
kinit2(P2V(4*1024*1024), P2V(PHYSTOP)); // must come after startothers()
801031d3: 83 ec 08 sub $0x8,%esp
801031d6: 68 00 00 40 80 push $0x80400000
801031db: 68 00 00 40 80 push $0x80400000
801031e0: e8 bb f4 ff ff call 801026a0 <kinit2>
userinit(); // first user process
801031e5: e8 36 08 00 00 call 80103a20 <userinit>
mpmain(); // finish this processor's setup
801031ea: e8 81 fe ff ff call 80103070 <mpmain>
801031ef: 90 nop
801031f0 <mpsearch1>:
}
// Look for an MP structure in the len bytes at addr.
static struct mp*
mpsearch1(uint a, int len)
{
801031f0: 55 push %ebp
801031f1: 89 e5 mov %esp,%ebp
801031f3: 57 push %edi
801031f4: 56 push %esi
uchar *e, *p, *addr;
addr = P2V(a);
801031f5: 8d b0 00 00 00 80 lea -0x80000000(%eax),%esi
}
// Look for an MP structure in the len bytes at addr.
static struct mp*
mpsearch1(uint a, int len)
{
801031fb: 53 push %ebx
uchar *e, *p, *addr;
addr = P2V(a);
e = addr+len;
801031fc: 8d 1c 16 lea (%esi,%edx,1),%ebx
}
// Look for an MP structure in the len bytes at addr.
static struct mp*
mpsearch1(uint a, int len)
{
801031ff: 83 ec 0c sub $0xc,%esp
uchar *e, *p, *addr;
addr = P2V(a);
e = addr+len;
for(p = addr; p < e; p += sizeof(struct mp))
80103202: 39 de cmp %ebx,%esi
80103204: 73 48 jae 8010324e <mpsearch1+0x5e>
80103206: 8d 76 00 lea 0x0(%esi),%esi
80103209: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0)
80103210: 83 ec 04 sub $0x4,%esp
80103213: 8d 7e 10 lea 0x10(%esi),%edi
80103216: 6a 04 push $0x4
80103218: 68 f8 7a 10 80 push $0x80107af8
8010321d: 56 push %esi
8010321e: e8 9d 14 00 00 call 801046c0 <memcmp>
80103223: 83 c4 10 add $0x10,%esp
80103226: 85 c0 test %eax,%eax
80103228: 75 1e jne 80103248 <mpsearch1+0x58>
8010322a: 8d 7e 10 lea 0x10(%esi),%edi
8010322d: 89 f2 mov %esi,%edx
8010322f: 31 c9 xor %ecx,%ecx
80103231: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
{
int i, sum;
sum = 0;
for(i=0; i<len; i++)
sum += addr[i];
80103238: 0f b6 02 movzbl (%edx),%eax
8010323b: 83 c2 01 add $0x1,%edx
8010323e: 01 c1 add %eax,%ecx
sum(uchar *addr, int len)
{
int i, sum;
sum = 0;
for(i=0; i<len; i++)
80103240: 39 fa cmp %edi,%edx
80103242: 75 f4 jne 80103238 <mpsearch1+0x48>
uchar *e, *p, *addr;
addr = P2V(a);
e = addr+len;
for(p = addr; p < e; p += sizeof(struct mp))
if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0)
80103244: 84 c9 test %cl,%cl
80103246: 74 10 je 80103258 <mpsearch1+0x68>
{
uchar *e, *p, *addr;
addr = P2V(a);
e = addr+len;
for(p = addr; p < e; p += sizeof(struct mp))
80103248: 39 fb cmp %edi,%ebx
8010324a: 89 fe mov %edi,%esi
8010324c: 77 c2 ja 80103210 <mpsearch1+0x20>
if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0)
return (struct mp*)p;
return 0;
}
8010324e: 8d 65 f4 lea -0xc(%ebp),%esp
addr = P2V(a);
e = addr+len;
for(p = addr; p < e; p += sizeof(struct mp))
if(memcmp(p, "_MP_", 4) == 0 && sum(p, sizeof(struct mp)) == 0)
return (struct mp*)p;
return 0;
80103251: 31 c0 xor %eax,%eax
}
80103253: 5b pop %ebx
80103254: 5e pop %esi
80103255: 5f pop %edi
80103256: 5d pop %ebp
80103257: c3 ret
80103258: 8d 65 f4 lea -0xc(%ebp),%esp
8010325b: 89 f0 mov %esi,%eax
8010325d: 5b pop %ebx
8010325e: 5e pop %esi
8010325f: 5f pop %edi
80103260: 5d pop %ebp
80103261: c3 ret
80103262: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80103269: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103270 <mpinit>:
return conf;
}
void
mpinit(void)
{
80103270: 55 push %ebp
80103271: 89 e5 mov %esp,%ebp
80103273: 57 push %edi
80103274: 56 push %esi
80103275: 53 push %ebx
80103276: 83 ec 1c sub $0x1c,%esp
uchar *bda;
uint p;
struct mp *mp;
bda = (uchar *) P2V(0x400);
if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4)){
80103279: 0f b6 05 0f 04 00 80 movzbl 0x8000040f,%eax
80103280: 0f b6 15 0e 04 00 80 movzbl 0x8000040e,%edx
80103287: c1 e0 08 shl $0x8,%eax
8010328a: 09 d0 or %edx,%eax
8010328c: c1 e0 04 shl $0x4,%eax
8010328f: 85 c0 test %eax,%eax
80103291: 75 1b jne 801032ae <mpinit+0x3e>
if((mp = mpsearch1(p, 1024)))
return mp;
} else {
p = ((bda[0x14]<<8)|bda[0x13])*1024;
if((mp = mpsearch1(p-1024, 1024)))
80103293: 0f b6 05 14 04 00 80 movzbl 0x80000414,%eax
8010329a: 0f b6 15 13 04 00 80 movzbl 0x80000413,%edx
801032a1: c1 e0 08 shl $0x8,%eax
801032a4: 09 d0 or %edx,%eax
801032a6: c1 e0 0a shl $0xa,%eax
801032a9: 2d 00 04 00 00 sub $0x400,%eax
uint p;
struct mp *mp;
bda = (uchar *) P2V(0x400);
if((p = ((bda[0x0F]<<8)| bda[0x0E]) << 4)){
if((mp = mpsearch1(p, 1024)))
801032ae: ba 00 04 00 00 mov $0x400,%edx
801032b3: e8 38 ff ff ff call 801031f0 <mpsearch1>
801032b8: 85 c0 test %eax,%eax
801032ba: 89 45 e4 mov %eax,-0x1c(%ebp)
801032bd: 0f 84 37 01 00 00 je 801033fa <mpinit+0x18a>
mpconfig(struct mp **pmp)
{
struct mpconf *conf;
struct mp *mp;
if((mp = mpsearch()) == 0 || mp->physaddr == 0)
801032c3: 8b 45 e4 mov -0x1c(%ebp),%eax
801032c6: 8b 58 04 mov 0x4(%eax),%ebx
801032c9: 85 db test %ebx,%ebx
801032cb: 0f 84 43 01 00 00 je 80103414 <mpinit+0x1a4>
return 0;
conf = (struct mpconf*) P2V((uint) mp->physaddr);
801032d1: 8d b3 00 00 00 80 lea -0x80000000(%ebx),%esi
if(memcmp(conf, "PCMP", 4) != 0)
801032d7: 83 ec 04 sub $0x4,%esp
801032da: 6a 04 push $0x4
801032dc: 68 fd 7a 10 80 push $0x80107afd
801032e1: 56 push %esi
801032e2: e8 d9 13 00 00 call 801046c0 <memcmp>
801032e7: 83 c4 10 add $0x10,%esp
801032ea: 85 c0 test %eax,%eax
801032ec: 0f 85 22 01 00 00 jne 80103414 <mpinit+0x1a4>
return 0;
if(conf->version != 1 && conf->version != 4)
801032f2: 0f b6 83 06 00 00 80 movzbl -0x7ffffffa(%ebx),%eax
801032f9: 3c 01 cmp $0x1,%al
801032fb: 74 08 je 80103305 <mpinit+0x95>
801032fd: 3c 04 cmp $0x4,%al
801032ff: 0f 85 0f 01 00 00 jne 80103414 <mpinit+0x1a4>
return 0;
if(sum((uchar*)conf, conf->length) != 0)
80103305: 0f b7 bb 04 00 00 80 movzwl -0x7ffffffc(%ebx),%edi
sum(uchar *addr, int len)
{
int i, sum;
sum = 0;
for(i=0; i<len; i++)
8010330c: 85 ff test %edi,%edi
8010330e: 74 21 je 80103331 <mpinit+0xc1>
80103310: 31 d2 xor %edx,%edx
80103312: 31 c0 xor %eax,%eax
80103314: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
sum += addr[i];
80103318: 0f b6 8c 03 00 00 00 movzbl -0x80000000(%ebx,%eax,1),%ecx
8010331f: 80
sum(uchar *addr, int len)
{
int i, sum;
sum = 0;
for(i=0; i<len; i++)
80103320: 83 c0 01 add $0x1,%eax
sum += addr[i];
80103323: 01 ca add %ecx,%edx
sum(uchar *addr, int len)
{
int i, sum;
sum = 0;
for(i=0; i<len; i++)
80103325: 39 c7 cmp %eax,%edi
80103327: 75 ef jne 80103318 <mpinit+0xa8>
conf = (struct mpconf*) P2V((uint) mp->physaddr);
if(memcmp(conf, "PCMP", 4) != 0)
return 0;
if(conf->version != 1 && conf->version != 4)
return 0;
if(sum((uchar*)conf, conf->length) != 0)
80103329: 84 d2 test %dl,%dl
8010332b: 0f 85 e3 00 00 00 jne 80103414 <mpinit+0x1a4>
struct mp *mp;
struct mpconf *conf;
struct mpproc *proc;
struct mpioapic *ioapic;
if((conf = mpconfig(&mp)) == 0)
80103331: 85 f6 test %esi,%esi
80103333: 0f 84 db 00 00 00 je 80103414 <mpinit+0x1a4>
panic("Expect to run on an SMP");
ismp = 1;
lapic = (uint*)conf->lapicaddr;
80103339: 8b 83 24 00 00 80 mov -0x7fffffdc(%ebx),%eax
8010333f: a3 7c 36 11 80 mov %eax,0x8011367c
for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){
80103344: 0f b7 93 04 00 00 80 movzwl -0x7ffffffc(%ebx),%edx
8010334b: 8d 83 2c 00 00 80 lea -0x7fffffd4(%ebx),%eax
struct mpproc *proc;
struct mpioapic *ioapic;
if((conf = mpconfig(&mp)) == 0)
panic("Expect to run on an SMP");
ismp = 1;
80103351: bb 01 00 00 00 mov $0x1,%ebx
lapic = (uint*)conf->lapicaddr;
for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){
80103356: 01 d6 add %edx,%esi
80103358: 90 nop
80103359: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80103360: 39 c6 cmp %eax,%esi
80103362: 76 23 jbe 80103387 <mpinit+0x117>
80103364: 0f b6 10 movzbl (%eax),%edx
switch(*p){
80103367: 80 fa 04 cmp $0x4,%dl
8010336a: 0f 87 c0 00 00 00 ja 80103430 <mpinit+0x1c0>
80103370: ff 24 95 3c 7b 10 80 jmp *-0x7fef84c4(,%edx,4)
80103377: 89 f6 mov %esi,%esi
80103379: 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;
80103380: 83 c0 08 add $0x8,%eax
if((conf = mpconfig(&mp)) == 0)
panic("Expect to run on an SMP");
ismp = 1;
lapic = (uint*)conf->lapicaddr;
for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){
80103383: 39 c6 cmp %eax,%esi
80103385: 77 dd ja 80103364 <mpinit+0xf4>
default:
ismp = 0;
break;
}
}
if(!ismp)
80103387: 85 db test %ebx,%ebx
80103389: 0f 84 92 00 00 00 je 80103421 <mpinit+0x1b1>
panic("Didn't find a suitable machine");
if(mp->imcrp){
8010338f: 8b 45 e4 mov -0x1c(%ebp),%eax
80103392: 80 78 0c 00 cmpb $0x0,0xc(%eax)
80103396: 74 15 je 801033ad <mpinit+0x13d>
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80103398: ba 22 00 00 00 mov $0x22,%edx
8010339d: b8 70 00 00 00 mov $0x70,%eax
801033a2: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
801033a3: ba 23 00 00 00 mov $0x23,%edx
801033a8: ec in (%dx),%al
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
801033a9: 83 c8 01 or $0x1,%eax
801033ac: ee out %al,(%dx)
// 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.
}
}
801033ad: 8d 65 f4 lea -0xc(%ebp),%esp
801033b0: 5b pop %ebx
801033b1: 5e pop %esi
801033b2: 5f pop %edi
801033b3: 5d pop %ebp
801033b4: c3 ret
801033b5: 8d 76 00 lea 0x0(%esi),%esi
lapic = (uint*)conf->lapicaddr;
for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){
switch(*p){
case MPPROC:
proc = (struct mpproc*)p;
if(ncpu < NCPU) {
801033b8: 8b 0d 00 3d 11 80 mov 0x80113d00,%ecx
801033be: 83 f9 07 cmp $0x7,%ecx
801033c1: 7f 19 jg 801033dc <mpinit+0x16c>
cpus[ncpu].apicid = proc->apicid; // apicid may differ from ncpu
801033c3: 0f b6 50 01 movzbl 0x1(%eax),%edx
801033c7: 69 f9 b0 00 00 00 imul $0xb0,%ecx,%edi
ncpu++;
801033cd: 83 c1 01 add $0x1,%ecx
801033d0: 89 0d 00 3d 11 80 mov %ecx,0x80113d00
for(p=(uchar*)(conf+1), e=(uchar*)conf+conf->length; p<e; ){
switch(*p){
case MPPROC:
proc = (struct mpproc*)p;
if(ncpu < NCPU) {
cpus[ncpu].apicid = proc->apicid; // apicid may differ from ncpu
801033d6: 88 97 80 37 11 80 mov %dl,-0x7feec880(%edi)
ncpu++;
}
p += sizeof(struct mpproc);
801033dc: 83 c0 14 add $0x14,%eax
continue;
801033df: e9 7c ff ff ff jmp 80103360 <mpinit+0xf0>
801033e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
case MPIOAPIC:
ioapic = (struct mpioapic*)p;
ioapicid = ioapic->apicno;
801033e8: 0f b6 50 01 movzbl 0x1(%eax),%edx
p += sizeof(struct mpioapic);
801033ec: 83 c0 08 add $0x8,%eax
}
p += sizeof(struct mpproc);
continue;
case MPIOAPIC:
ioapic = (struct mpioapic*)p;
ioapicid = ioapic->apicno;
801033ef: 88 15 60 37 11 80 mov %dl,0x80113760
p += sizeof(struct mpioapic);
continue;
801033f5: e9 66 ff ff ff jmp 80103360 <mpinit+0xf0>
} else {
p = ((bda[0x14]<<8)|bda[0x13])*1024;
if((mp = mpsearch1(p-1024, 1024)))
return mp;
}
return mpsearch1(0xF0000, 0x10000);
801033fa: ba 00 00 01 00 mov $0x10000,%edx
801033ff: b8 00 00 0f 00 mov $0xf0000,%eax
80103404: e8 e7 fd ff ff call 801031f0 <mpsearch1>
mpconfig(struct mp **pmp)
{
struct mpconf *conf;
struct mp *mp;
if((mp = mpsearch()) == 0 || mp->physaddr == 0)
80103409: 85 c0 test %eax,%eax
} else {
p = ((bda[0x14]<<8)|bda[0x13])*1024;
if((mp = mpsearch1(p-1024, 1024)))
return mp;
}
return mpsearch1(0xF0000, 0x10000);
8010340b: 89 45 e4 mov %eax,-0x1c(%ebp)
mpconfig(struct mp **pmp)
{
struct mpconf *conf;
struct mp *mp;
if((mp = mpsearch()) == 0 || mp->physaddr == 0)
8010340e: 0f 85 af fe ff ff jne 801032c3 <mpinit+0x53>
struct mpconf *conf;
struct mpproc *proc;
struct mpioapic *ioapic;
if((conf = mpconfig(&mp)) == 0)
panic("Expect to run on an SMP");
80103414: 83 ec 0c sub $0xc,%esp
80103417: 68 02 7b 10 80 push $0x80107b02
8010341c: e8 7f d0 ff ff call 801004a0 <panic>
ismp = 0;
break;
}
}
if(!ismp)
panic("Didn't find a suitable machine");
80103421: 83 ec 0c sub $0xc,%esp
80103424: 68 1c 7b 10 80 push $0x80107b1c
80103429: e8 72 d0 ff ff call 801004a0 <panic>
8010342e: 66 90 xchg %ax,%ax
case MPIOINTR:
case MPLINTR:
p += 8;
continue;
default:
ismp = 0;
80103430: 31 db xor %ebx,%ebx
80103432: e9 30 ff ff ff jmp 80103367 <mpinit+0xf7>
80103437: 66 90 xchg %ax,%ax
80103439: 66 90 xchg %ax,%ax
8010343b: 66 90 xchg %ax,%ax
8010343d: 66 90 xchg %ax,%ax
8010343f: 90 nop
80103440 <picinit>:
#define IO_PIC2 0xA0 // Slave (IRQs 8-15)
// Don't use the 8259A interrupt controllers. Xv6 assumes SMP hardware.
void
picinit(void)
{
80103440: 55 push %ebp
80103441: ba 21 00 00 00 mov $0x21,%edx
80103446: b8 ff ff ff ff mov $0xffffffff,%eax
8010344b: 89 e5 mov %esp,%ebp
8010344d: ee out %al,(%dx)
8010344e: ba a1 00 00 00 mov $0xa1,%edx
80103453: ee out %al,(%dx)
// mask all interrupts
outb(IO_PIC1+1, 0xFF);
outb(IO_PIC2+1, 0xFF);
}
80103454: 5d pop %ebp
80103455: c3 ret
80103456: 66 90 xchg %ax,%ax
80103458: 66 90 xchg %ax,%ax
8010345a: 66 90 xchg %ax,%ax
8010345c: 66 90 xchg %ax,%ax
8010345e: 66 90 xchg %ax,%ax
80103460 <pipealloc>:
int writeopen; // write fd is still open
};
int
pipealloc(struct file **f0, struct file **f1)
{
80103460: 55 push %ebp
80103461: 89 e5 mov %esp,%ebp
80103463: 57 push %edi
80103464: 56 push %esi
80103465: 53 push %ebx
80103466: 83 ec 0c sub $0xc,%esp
80103469: 8b 75 08 mov 0x8(%ebp),%esi
8010346c: 8b 5d 0c mov 0xc(%ebp),%ebx
struct pipe *p;
p = 0;
*f0 = *f1 = 0;
8010346f: c7 03 00 00 00 00 movl $0x0,(%ebx)
80103475: c7 06 00 00 00 00 movl $0x0,(%esi)
if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0)
8010347b: e8 20 da ff ff call 80100ea0 <filealloc>
80103480: 85 c0 test %eax,%eax
80103482: 89 06 mov %eax,(%esi)
80103484: 0f 84 a8 00 00 00 je 80103532 <pipealloc+0xd2>
8010348a: e8 11 da ff ff call 80100ea0 <filealloc>
8010348f: 85 c0 test %eax,%eax
80103491: 89 03 mov %eax,(%ebx)
80103493: 0f 84 87 00 00 00 je 80103520 <pipealloc+0xc0>
goto bad;
if((p = (struct pipe*)kalloc()) == 0)
80103499: e8 62 f2 ff ff call 80102700 <kalloc>
8010349e: 85 c0 test %eax,%eax
801034a0: 89 c7 mov %eax,%edi
801034a2: 0f 84 b0 00 00 00 je 80103558 <pipealloc+0xf8>
goto bad;
p->readopen = 1;
p->writeopen = 1;
p->nwrite = 0;
p->nread = 0;
initlock(&p->lock, "pipe");
801034a8: 83 ec 08 sub $0x8,%esp
*f0 = *f1 = 0;
if((*f0 = filealloc()) == 0 || (*f1 = filealloc()) == 0)
goto bad;
if((p = (struct pipe*)kalloc()) == 0)
goto bad;
p->readopen = 1;
801034ab: c7 80 3c 02 00 00 01 movl $0x1,0x23c(%eax)
801034b2: 00 00 00
p->writeopen = 1;
801034b5: c7 80 40 02 00 00 01 movl $0x1,0x240(%eax)
801034bc: 00 00 00
p->nwrite = 0;
801034bf: c7 80 38 02 00 00 00 movl $0x0,0x238(%eax)
801034c6: 00 00 00
p->nread = 0;
801034c9: c7 80 34 02 00 00 00 movl $0x0,0x234(%eax)
801034d0: 00 00 00
initlock(&p->lock, "pipe");
801034d3: 68 50 7b 10 80 push $0x80107b50
801034d8: 50 push %eax
801034d9: e8 22 0f 00 00 call 80104400 <initlock>
(*f0)->type = FD_PIPE;
801034de: 8b 06 mov (%esi),%eax
(*f0)->pipe = p;
(*f1)->type = FD_PIPE;
(*f1)->readable = 0;
(*f1)->writable = 1;
(*f1)->pipe = p;
return 0;
801034e0: 83 c4 10 add $0x10,%esp
p->readopen = 1;
p->writeopen = 1;
p->nwrite = 0;
p->nread = 0;
initlock(&p->lock, "pipe");
(*f0)->type = FD_PIPE;
801034e3: c7 00 01 00 00 00 movl $0x1,(%eax)
(*f0)->readable = 1;
801034e9: 8b 06 mov (%esi),%eax
801034eb: c6 40 08 01 movb $0x1,0x8(%eax)
(*f0)->writable = 0;
801034ef: 8b 06 mov (%esi),%eax
801034f1: c6 40 09 00 movb $0x0,0x9(%eax)
(*f0)->pipe = p;
801034f5: 8b 06 mov (%esi),%eax
801034f7: 89 78 0c mov %edi,0xc(%eax)
(*f1)->type = FD_PIPE;
801034fa: 8b 03 mov (%ebx),%eax
801034fc: c7 00 01 00 00 00 movl $0x1,(%eax)
(*f1)->readable = 0;
80103502: 8b 03 mov (%ebx),%eax
80103504: c6 40 08 00 movb $0x0,0x8(%eax)
(*f1)->writable = 1;
80103508: 8b 03 mov (%ebx),%eax
8010350a: c6 40 09 01 movb $0x1,0x9(%eax)
(*f1)->pipe = p;
8010350e: 8b 03 mov (%ebx),%eax
80103510: 89 78 0c mov %edi,0xc(%eax)
if(*f0)
fileclose(*f0);
if(*f1)
fileclose(*f1);
return -1;
}
80103513: 8d 65 f4 lea -0xc(%ebp),%esp
(*f0)->pipe = p;
(*f1)->type = FD_PIPE;
(*f1)->readable = 0;
(*f1)->writable = 1;
(*f1)->pipe = p;
return 0;
80103516: 31 c0 xor %eax,%eax
if(*f0)
fileclose(*f0);
if(*f1)
fileclose(*f1);
return -1;
}
80103518: 5b pop %ebx
80103519: 5e pop %esi
8010351a: 5f pop %edi
8010351b: 5d pop %ebp
8010351c: c3 ret
8010351d: 8d 76 00 lea 0x0(%esi),%esi
//PAGEBREAK: 20
bad:
if(p)
kfree((char*)p);
if(*f0)
80103520: 8b 06 mov (%esi),%eax
80103522: 85 c0 test %eax,%eax
80103524: 74 1e je 80103544 <pipealloc+0xe4>
fileclose(*f0);
80103526: 83 ec 0c sub $0xc,%esp
80103529: 50 push %eax
8010352a: e8 31 da ff ff call 80100f60 <fileclose>
8010352f: 83 c4 10 add $0x10,%esp
if(*f1)
80103532: 8b 03 mov (%ebx),%eax
80103534: 85 c0 test %eax,%eax
80103536: 74 0c je 80103544 <pipealloc+0xe4>
fileclose(*f1);
80103538: 83 ec 0c sub $0xc,%esp
8010353b: 50 push %eax
8010353c: e8 1f da ff ff call 80100f60 <fileclose>
80103541: 83 c4 10 add $0x10,%esp
return -1;
}
80103544: 8d 65 f4 lea -0xc(%ebp),%esp
kfree((char*)p);
if(*f0)
fileclose(*f0);
if(*f1)
fileclose(*f1);
return -1;
80103547: b8 ff ff ff ff mov $0xffffffff,%eax
}
8010354c: 5b pop %ebx
8010354d: 5e pop %esi
8010354e: 5f pop %edi
8010354f: 5d pop %ebp
80103550: c3 ret
80103551: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
//PAGEBREAK: 20
bad:
if(p)
kfree((char*)p);
if(*f0)
80103558: 8b 06 mov (%esi),%eax
8010355a: 85 c0 test %eax,%eax
8010355c: 75 c8 jne 80103526 <pipealloc+0xc6>
8010355e: eb d2 jmp 80103532 <pipealloc+0xd2>
80103560 <pipeclose>:
return -1;
}
void
pipeclose(struct pipe *p, int writable)
{
80103560: 55 push %ebp
80103561: 89 e5 mov %esp,%ebp
80103563: 56 push %esi
80103564: 53 push %ebx
80103565: 8b 5d 08 mov 0x8(%ebp),%ebx
80103568: 8b 75 0c mov 0xc(%ebp),%esi
acquire(&p->lock);
8010356b: 83 ec 0c sub $0xc,%esp
8010356e: 53 push %ebx
8010356f: e8 8c 0f 00 00 call 80104500 <acquire>
if(writable){
80103574: 83 c4 10 add $0x10,%esp
80103577: 85 f6 test %esi,%esi
80103579: 74 45 je 801035c0 <pipeclose+0x60>
p->writeopen = 0;
wakeup(&p->nread);
8010357b: 8d 83 34 02 00 00 lea 0x234(%ebx),%eax
80103581: 83 ec 0c sub $0xc,%esp
void
pipeclose(struct pipe *p, int writable)
{
acquire(&p->lock);
if(writable){
p->writeopen = 0;
80103584: c7 83 40 02 00 00 00 movl $0x0,0x240(%ebx)
8010358b: 00 00 00
wakeup(&p->nread);
8010358e: 50 push %eax
8010358f: e8 ac 0b 00 00 call 80104140 <wakeup>
80103594: 83 c4 10 add $0x10,%esp
} else {
p->readopen = 0;
wakeup(&p->nwrite);
}
if(p->readopen == 0 && p->writeopen == 0){
80103597: 8b 93 3c 02 00 00 mov 0x23c(%ebx),%edx
8010359d: 85 d2 test %edx,%edx
8010359f: 75 0a jne 801035ab <pipeclose+0x4b>
801035a1: 8b 83 40 02 00 00 mov 0x240(%ebx),%eax
801035a7: 85 c0 test %eax,%eax
801035a9: 74 35 je 801035e0 <pipeclose+0x80>
release(&p->lock);
kfree((char*)p);
} else
release(&p->lock);
801035ab: 89 5d 08 mov %ebx,0x8(%ebp)
}
801035ae: 8d 65 f8 lea -0x8(%ebp),%esp
801035b1: 5b pop %ebx
801035b2: 5e pop %esi
801035b3: 5d pop %ebp
}
if(p->readopen == 0 && p->writeopen == 0){
release(&p->lock);
kfree((char*)p);
} else
release(&p->lock);
801035b4: e9 67 10 00 00 jmp 80104620 <release>
801035b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if(writable){
p->writeopen = 0;
wakeup(&p->nread);
} else {
p->readopen = 0;
wakeup(&p->nwrite);
801035c0: 8d 83 38 02 00 00 lea 0x238(%ebx),%eax
801035c6: 83 ec 0c sub $0xc,%esp
acquire(&p->lock);
if(writable){
p->writeopen = 0;
wakeup(&p->nread);
} else {
p->readopen = 0;
801035c9: c7 83 3c 02 00 00 00 movl $0x0,0x23c(%ebx)
801035d0: 00 00 00
wakeup(&p->nwrite);
801035d3: 50 push %eax
801035d4: e8 67 0b 00 00 call 80104140 <wakeup>
801035d9: 83 c4 10 add $0x10,%esp
801035dc: eb b9 jmp 80103597 <pipeclose+0x37>
801035de: 66 90 xchg %ax,%ax
}
if(p->readopen == 0 && p->writeopen == 0){
release(&p->lock);
801035e0: 83 ec 0c sub $0xc,%esp
801035e3: 53 push %ebx
801035e4: e8 37 10 00 00 call 80104620 <release>
kfree((char*)p);
801035e9: 89 5d 08 mov %ebx,0x8(%ebp)
801035ec: 83 c4 10 add $0x10,%esp
} else
release(&p->lock);
}
801035ef: 8d 65 f8 lea -0x8(%ebp),%esp
801035f2: 5b pop %ebx
801035f3: 5e pop %esi
801035f4: 5d pop %ebp
p->readopen = 0;
wakeup(&p->nwrite);
}
if(p->readopen == 0 && p->writeopen == 0){
release(&p->lock);
kfree((char*)p);
801035f5: e9 56 ef ff ff jmp 80102550 <kfree>
801035fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80103600 <pipewrite>:
}
//PAGEBREAK: 40
int
pipewrite(struct pipe *p, char *addr, int n)
{
80103600: 55 push %ebp
80103601: 89 e5 mov %esp,%ebp
80103603: 57 push %edi
80103604: 56 push %esi
80103605: 53 push %ebx
80103606: 83 ec 28 sub $0x28,%esp
80103609: 8b 5d 08 mov 0x8(%ebp),%ebx
int i;
acquire(&p->lock);
8010360c: 53 push %ebx
8010360d: e8 ee 0e 00 00 call 80104500 <acquire>
for(i = 0; i < n; i++){
80103612: 8b 45 10 mov 0x10(%ebp),%eax
80103615: 83 c4 10 add $0x10,%esp
80103618: 85 c0 test %eax,%eax
8010361a: 0f 8e b9 00 00 00 jle 801036d9 <pipewrite+0xd9>
80103620: 8b 4d 0c mov 0xc(%ebp),%ecx
80103623: 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);
80103629: 8d bb 34 02 00 00 lea 0x234(%ebx),%edi
sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep
8010362f: 8d b3 38 02 00 00 lea 0x238(%ebx),%esi
80103635: 89 4d e4 mov %ecx,-0x1c(%ebp)
80103638: 03 4d 10 add 0x10(%ebp),%ecx
8010363b: 89 4d e0 mov %ecx,-0x20(%ebp)
{
int i;
acquire(&p->lock);
for(i = 0; i < n; i++){
while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full
8010363e: 8b 8b 34 02 00 00 mov 0x234(%ebx),%ecx
80103644: 8d 91 00 02 00 00 lea 0x200(%ecx),%edx
8010364a: 39 d0 cmp %edx,%eax
8010364c: 74 38 je 80103686 <pipewrite+0x86>
8010364e: eb 59 jmp 801036a9 <pipewrite+0xa9>
if(p->readopen == 0 || myproc()->killed){
80103650: e8 9b 03 00 00 call 801039f0 <myproc>
80103655: 8b 48 24 mov 0x24(%eax),%ecx
80103658: 85 c9 test %ecx,%ecx
8010365a: 75 34 jne 80103690 <pipewrite+0x90>
release(&p->lock);
return -1;
}
wakeup(&p->nread);
8010365c: 83 ec 0c sub $0xc,%esp
8010365f: 57 push %edi
80103660: e8 db 0a 00 00 call 80104140 <wakeup>
sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep
80103665: 58 pop %eax
80103666: 5a pop %edx
80103667: 53 push %ebx
80103668: 56 push %esi
80103669: e8 02 09 00 00 call 80103f70 <sleep>
{
int i;
acquire(&p->lock);
for(i = 0; i < n; i++){
while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full
8010366e: 8b 83 34 02 00 00 mov 0x234(%ebx),%eax
80103674: 8b 93 38 02 00 00 mov 0x238(%ebx),%edx
8010367a: 83 c4 10 add $0x10,%esp
8010367d: 05 00 02 00 00 add $0x200,%eax
80103682: 39 c2 cmp %eax,%edx
80103684: 75 2a jne 801036b0 <pipewrite+0xb0>
if(p->readopen == 0 || myproc()->killed){
80103686: 8b 83 3c 02 00 00 mov 0x23c(%ebx),%eax
8010368c: 85 c0 test %eax,%eax
8010368e: 75 c0 jne 80103650 <pipewrite+0x50>
release(&p->lock);
80103690: 83 ec 0c sub $0xc,%esp
80103693: 53 push %ebx
80103694: e8 87 0f 00 00 call 80104620 <release>
return -1;
80103699: 83 c4 10 add $0x10,%esp
8010369c: 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;
}
801036a1: 8d 65 f4 lea -0xc(%ebp),%esp
801036a4: 5b pop %ebx
801036a5: 5e pop %esi
801036a6: 5f pop %edi
801036a7: 5d pop %ebp
801036a8: c3 ret
{
int i;
acquire(&p->lock);
for(i = 0; i < n; i++){
while(p->nwrite == p->nread + PIPESIZE){ //DOC: pipewrite-full
801036a9: 89 c2 mov %eax,%edx
801036ab: 90 nop
801036ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
}
wakeup(&p->nread);
sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep
}
p->data[p->nwrite++ % PIPESIZE] = addr[i];
801036b0: 8b 4d e4 mov -0x1c(%ebp),%ecx
801036b3: 8d 42 01 lea 0x1(%edx),%eax
801036b6: 83 45 e4 01 addl $0x1,-0x1c(%ebp)
801036ba: 81 e2 ff 01 00 00 and $0x1ff,%edx
801036c0: 89 83 38 02 00 00 mov %eax,0x238(%ebx)
801036c6: 0f b6 09 movzbl (%ecx),%ecx
801036c9: 88 4c 13 34 mov %cl,0x34(%ebx,%edx,1)
801036cd: 8b 4d e4 mov -0x1c(%ebp),%ecx
pipewrite(struct pipe *p, char *addr, int n)
{
int i;
acquire(&p->lock);
for(i = 0; i < n; i++){
801036d0: 3b 4d e0 cmp -0x20(%ebp),%ecx
801036d3: 0f 85 65 ff ff ff jne 8010363e <pipewrite+0x3e>
wakeup(&p->nread);
sleep(&p->nwrite, &p->lock); //DOC: pipewrite-sleep
}
p->data[p->nwrite++ % PIPESIZE] = addr[i];
}
wakeup(&p->nread); //DOC: pipewrite-wakeup1
801036d9: 8d 83 34 02 00 00 lea 0x234(%ebx),%eax
801036df: 83 ec 0c sub $0xc,%esp
801036e2: 50 push %eax
801036e3: e8 58 0a 00 00 call 80104140 <wakeup>
release(&p->lock);
801036e8: 89 1c 24 mov %ebx,(%esp)
801036eb: e8 30 0f 00 00 call 80104620 <release>
return n;
801036f0: 83 c4 10 add $0x10,%esp
801036f3: 8b 45 10 mov 0x10(%ebp),%eax
801036f6: eb a9 jmp 801036a1 <pipewrite+0xa1>
801036f8: 90 nop
801036f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80103700 <piperead>:
}
int
piperead(struct pipe *p, char *addr, int n)
{
80103700: 55 push %ebp
80103701: 89 e5 mov %esp,%ebp
80103703: 57 push %edi
80103704: 56 push %esi
80103705: 53 push %ebx
80103706: 83 ec 18 sub $0x18,%esp
80103709: 8b 5d 08 mov 0x8(%ebp),%ebx
8010370c: 8b 7d 0c mov 0xc(%ebp),%edi
int i;
acquire(&p->lock);
8010370f: 53 push %ebx
80103710: e8 eb 0d 00 00 call 80104500 <acquire>
while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty
80103715: 83 c4 10 add $0x10,%esp
80103718: 8b 83 34 02 00 00 mov 0x234(%ebx),%eax
8010371e: 39 83 38 02 00 00 cmp %eax,0x238(%ebx)
80103724: 75 6a jne 80103790 <piperead+0x90>
80103726: 8b b3 40 02 00 00 mov 0x240(%ebx),%esi
8010372c: 85 f6 test %esi,%esi
8010372e: 0f 84 cc 00 00 00 je 80103800 <piperead+0x100>
if(myproc()->killed){
release(&p->lock);
return -1;
}
sleep(&p->nread, &p->lock); //DOC: piperead-sleep
80103734: 8d b3 34 02 00 00 lea 0x234(%ebx),%esi
8010373a: eb 2d jmp 80103769 <piperead+0x69>
8010373c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80103740: 83 ec 08 sub $0x8,%esp
80103743: 53 push %ebx
80103744: 56 push %esi
80103745: e8 26 08 00 00 call 80103f70 <sleep>
piperead(struct pipe *p, char *addr, int n)
{
int i;
acquire(&p->lock);
while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty
8010374a: 83 c4 10 add $0x10,%esp
8010374d: 8b 83 38 02 00 00 mov 0x238(%ebx),%eax
80103753: 39 83 34 02 00 00 cmp %eax,0x234(%ebx)
80103759: 75 35 jne 80103790 <piperead+0x90>
8010375b: 8b 93 40 02 00 00 mov 0x240(%ebx),%edx
80103761: 85 d2 test %edx,%edx
80103763: 0f 84 97 00 00 00 je 80103800 <piperead+0x100>
if(myproc()->killed){
80103769: e8 82 02 00 00 call 801039f0 <myproc>
8010376e: 8b 48 24 mov 0x24(%eax),%ecx
80103771: 85 c9 test %ecx,%ecx
80103773: 74 cb je 80103740 <piperead+0x40>
release(&p->lock);
80103775: 83 ec 0c sub $0xc,%esp
80103778: 53 push %ebx
80103779: e8 a2 0e 00 00 call 80104620 <release>
return -1;
8010377e: 83 c4 10 add $0x10,%esp
addr[i] = p->data[p->nread++ % PIPESIZE];
}
wakeup(&p->nwrite); //DOC: piperead-wakeup
release(&p->lock);
return i;
}
80103781: 8d 65 f4 lea -0xc(%ebp),%esp
acquire(&p->lock);
while(p->nread == p->nwrite && p->writeopen){ //DOC: pipe-empty
if(myproc()->killed){
release(&p->lock);
return -1;
80103784: b8 ff ff ff ff mov $0xffffffff,%eax
addr[i] = p->data[p->nread++ % PIPESIZE];
}
wakeup(&p->nwrite); //DOC: piperead-wakeup
release(&p->lock);
return i;
}
80103789: 5b pop %ebx
8010378a: 5e pop %esi
8010378b: 5f pop %edi
8010378c: 5d pop %ebp
8010378d: c3 ret
8010378e: 66 90 xchg %ax,%ax
release(&p->lock);
return -1;
}
sleep(&p->nread, &p->lock); //DOC: piperead-sleep
}
for(i = 0; i < n; i++){ //DOC: piperead-copy
80103790: 8b 45 10 mov 0x10(%ebp),%eax
80103793: 85 c0 test %eax,%eax
80103795: 7e 69 jle 80103800 <piperead+0x100>
if(p->nread == p->nwrite)
80103797: 8b 83 34 02 00 00 mov 0x234(%ebx),%eax
8010379d: 31 c9 xor %ecx,%ecx
8010379f: eb 15 jmp 801037b6 <piperead+0xb6>
801037a1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801037a8: 8b 83 34 02 00 00 mov 0x234(%ebx),%eax
801037ae: 3b 83 38 02 00 00 cmp 0x238(%ebx),%eax
801037b4: 74 5a je 80103810 <piperead+0x110>
break;
addr[i] = p->data[p->nread++ % PIPESIZE];
801037b6: 8d 70 01 lea 0x1(%eax),%esi
801037b9: 25 ff 01 00 00 and $0x1ff,%eax
801037be: 89 b3 34 02 00 00 mov %esi,0x234(%ebx)
801037c4: 0f b6 44 03 34 movzbl 0x34(%ebx,%eax,1),%eax
801037c9: 88 04 0f mov %al,(%edi,%ecx,1)
release(&p->lock);
return -1;
}
sleep(&p->nread, &p->lock); //DOC: piperead-sleep
}
for(i = 0; i < n; i++){ //DOC: piperead-copy
801037cc: 83 c1 01 add $0x1,%ecx
801037cf: 39 4d 10 cmp %ecx,0x10(%ebp)
801037d2: 75 d4 jne 801037a8 <piperead+0xa8>
if(p->nread == p->nwrite)
break;
addr[i] = p->data[p->nread++ % PIPESIZE];
}
wakeup(&p->nwrite); //DOC: piperead-wakeup
801037d4: 8d 83 38 02 00 00 lea 0x238(%ebx),%eax
801037da: 83 ec 0c sub $0xc,%esp
801037dd: 50 push %eax
801037de: e8 5d 09 00 00 call 80104140 <wakeup>
release(&p->lock);
801037e3: 89 1c 24 mov %ebx,(%esp)
801037e6: e8 35 0e 00 00 call 80104620 <release>
return i;
801037eb: 8b 45 10 mov 0x10(%ebp),%eax
801037ee: 83 c4 10 add $0x10,%esp
}
801037f1: 8d 65 f4 lea -0xc(%ebp),%esp
801037f4: 5b pop %ebx
801037f5: 5e pop %esi
801037f6: 5f pop %edi
801037f7: 5d pop %ebp
801037f8: c3 ret
801037f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
release(&p->lock);
return -1;
}
sleep(&p->nread, &p->lock); //DOC: piperead-sleep
}
for(i = 0; i < n; i++){ //DOC: piperead-copy
80103800: c7 45 10 00 00 00 00 movl $0x0,0x10(%ebp)
80103807: eb cb jmp 801037d4 <piperead+0xd4>
80103809: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80103810: 89 4d 10 mov %ecx,0x10(%ebp)
80103813: eb bf jmp 801037d4 <piperead+0xd4>
80103815: 66 90 xchg %ax,%ax
80103817: 66 90 xchg %ax,%ax
80103819: 66 90 xchg %ax,%ax
8010381b: 66 90 xchg %ax,%ax
8010381d: 66 90 xchg %ax,%ax
8010381f: 90 nop
80103820 <allocproc>:
// If found, change state to EMBRYO and initialize
// state required to run in the kernel.
// Otherwise return 0.
static struct proc*
allocproc(void)
{
80103820: 55 push %ebp
80103821: 89 e5 mov %esp,%ebp
80103823: 53 push %ebx
struct proc *p;
char *sp;
acquire(&ptable.lock);
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103824: bb 54 3d 11 80 mov $0x80113d54,%ebx
// If found, change state to EMBRYO and initialize
// state required to run in the kernel.
// Otherwise return 0.
static struct proc*
allocproc(void)
{
80103829: 83 ec 10 sub $0x10,%esp
struct proc *p;
char *sp;
acquire(&ptable.lock);
8010382c: 68 20 3d 11 80 push $0x80113d20
80103831: e8 ca 0c 00 00 call 80104500 <acquire>
80103836: 83 c4 10 add $0x10,%esp
80103839: eb 10 jmp 8010384b <allocproc+0x2b>
8010383b: 90 nop
8010383c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103840: 83 c3 7c add $0x7c,%ebx
80103843: 81 fb 54 5c 11 80 cmp $0x80115c54,%ebx
80103849: 74 75 je 801038c0 <allocproc+0xa0>
if(p->state == UNUSED)
8010384b: 8b 43 0c mov 0xc(%ebx),%eax
8010384e: 85 c0 test %eax,%eax
80103850: 75 ee jne 80103840 <allocproc+0x20>
release(&ptable.lock);
return 0;
found:
p->state = EMBRYO;
p->pid = nextpid++;
80103852: a1 04 b0 10 80 mov 0x8010b004,%eax
release(&ptable.lock);
80103857: 83 ec 0c sub $0xc,%esp
release(&ptable.lock);
return 0;
found:
p->state = EMBRYO;
8010385a: c7 43 0c 01 00 00 00 movl $0x1,0xc(%ebx)
p->pid = nextpid++;
release(&ptable.lock);
80103861: 68 20 3d 11 80 push $0x80113d20
release(&ptable.lock);
return 0;
found:
p->state = EMBRYO;
p->pid = nextpid++;
80103866: 8d 50 01 lea 0x1(%eax),%edx
80103869: 89 43 10 mov %eax,0x10(%ebx)
8010386c: 89 15 04 b0 10 80 mov %edx,0x8010b004
release(&ptable.lock);
80103872: e8 a9 0d 00 00 call 80104620 <release>
// Allocate kernel stack.
if((p->kstack = kalloc()) == 0){
80103877: e8 84 ee ff ff call 80102700 <kalloc>
8010387c: 83 c4 10 add $0x10,%esp
8010387f: 85 c0 test %eax,%eax
80103881: 89 43 08 mov %eax,0x8(%ebx)
80103884: 74 51 je 801038d7 <allocproc+0xb7>
return 0;
}
sp = p->kstack + KSTACKSIZE;
// Leave room for trap frame.
sp -= sizeof *p->tf;
80103886: 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);
8010388c: 83 ec 04 sub $0x4,%esp
// Set up new context to start executing at forkret,
// which returns to trapret.
sp -= 4;
*(uint*)sp = (uint)trapret;
sp -= sizeof *p->context;
8010388f: 05 9c 0f 00 00 add $0xf9c,%eax
return 0;
}
sp = p->kstack + KSTACKSIZE;
// Leave room for trap frame.
sp -= sizeof *p->tf;
80103894: 89 53 18 mov %edx,0x18(%ebx)
p->tf = (struct trapframe*)sp;
// Set up new context to start executing at forkret,
// which returns to trapret.
sp -= 4;
*(uint*)sp = (uint)trapret;
80103897: c7 40 14 e2 58 10 80 movl $0x801058e2,0x14(%eax)
sp -= sizeof *p->context;
p->context = (struct context*)sp;
memset(p->context, 0, sizeof *p->context);
8010389e: 6a 14 push $0x14
801038a0: 6a 00 push $0x0
801038a2: 50 push %eax
// which returns to trapret.
sp -= 4;
*(uint*)sp = (uint)trapret;
sp -= sizeof *p->context;
p->context = (struct context*)sp;
801038a3: 89 43 1c mov %eax,0x1c(%ebx)
memset(p->context, 0, sizeof *p->context);
801038a6: e8 c5 0d 00 00 call 80104670 <memset>
p->context->eip = (uint)forkret;
801038ab: 8b 43 1c mov 0x1c(%ebx),%eax
return p;
801038ae: 83 c4 10 add $0x10,%esp
*(uint*)sp = (uint)trapret;
sp -= sizeof *p->context;
p->context = (struct context*)sp;
memset(p->context, 0, sizeof *p->context);
p->context->eip = (uint)forkret;
801038b1: c7 40 10 e0 38 10 80 movl $0x801038e0,0x10(%eax)
return p;
801038b8: 89 d8 mov %ebx,%eax
}
801038ba: 8b 5d fc mov -0x4(%ebp),%ebx
801038bd: c9 leave
801038be: c3 ret
801038bf: 90 nop
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
if(p->state == UNUSED)
goto found;
release(&ptable.lock);
801038c0: 83 ec 0c sub $0xc,%esp
801038c3: 68 20 3d 11 80 push $0x80113d20
801038c8: e8 53 0d 00 00 call 80104620 <release>
return 0;
801038cd: 83 c4 10 add $0x10,%esp
801038d0: 31 c0 xor %eax,%eax
p->context = (struct context*)sp;
memset(p->context, 0, sizeof *p->context);
p->context->eip = (uint)forkret;
return p;
}
801038d2: 8b 5d fc mov -0x4(%ebp),%ebx
801038d5: c9 leave
801038d6: c3 ret
release(&ptable.lock);
// Allocate kernel stack.
if((p->kstack = kalloc()) == 0){
p->state = UNUSED;
801038d7: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
return 0;
801038de: eb da jmp 801038ba <allocproc+0x9a>
801038e0 <forkret>:
// A fork child's very first scheduling by scheduler()
// will swtch here. "Return" to user space.
void
forkret(void)
{
801038e0: 55 push %ebp
801038e1: 89 e5 mov %esp,%ebp
801038e3: 83 ec 14 sub $0x14,%esp
static int first = 1;
// Still holding ptable.lock from scheduler.
release(&ptable.lock);
801038e6: 68 20 3d 11 80 push $0x80113d20
801038eb: e8 30 0d 00 00 call 80104620 <release>
if (first) {
801038f0: a1 00 b0 10 80 mov 0x8010b000,%eax
801038f5: 83 c4 10 add $0x10,%esp
801038f8: 85 c0 test %eax,%eax
801038fa: 75 04 jne 80103900 <forkret+0x20>
iinit(ROOTDEV);
initlog(ROOTDEV);
}
// Return to "caller", actually trapret (see allocproc).
}
801038fc: c9 leave
801038fd: c3 ret
801038fe: 66 90 xchg %ax,%ax
if (first) {
// 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;
iinit(ROOTDEV);
80103900: 83 ec 0c sub $0xc,%esp
if (first) {
// 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;
80103903: c7 05 00 b0 10 80 00 movl $0x0,0x8010b000
8010390a: 00 00 00
iinit(ROOTDEV);
8010390d: 6a 01 push $0x1
8010390f: e8 cc dd ff ff call 801016e0 <iinit>
initlog(ROOTDEV);
80103914: c7 04 24 01 00 00 00 movl $0x1,(%esp)
8010391b: e8 00 f4 ff ff call 80102d20 <initlog>
80103920: 83 c4 10 add $0x10,%esp
}
// Return to "caller", actually trapret (see allocproc).
}
80103923: c9 leave
80103924: c3 ret
80103925: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80103929: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103930 <pinit>:
static void wakeup1(void *chan);
void
pinit(void)
{
80103930: 55 push %ebp
80103931: 89 e5 mov %esp,%ebp
80103933: 83 ec 10 sub $0x10,%esp
initlock(&ptable.lock, "ptable");
80103936: 68 55 7b 10 80 push $0x80107b55
8010393b: 68 20 3d 11 80 push $0x80113d20
80103940: e8 bb 0a 00 00 call 80104400 <initlock>
}
80103945: 83 c4 10 add $0x10,%esp
80103948: c9 leave
80103949: c3 ret
8010394a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80103950 <mycpu>:
// Must be called with interrupts disabled to avoid the caller being
// rescheduled between reading lapicid and running through the loop.
struct cpu*
mycpu(void)
{
80103950: 55 push %ebp
80103951: 89 e5 mov %esp,%ebp
80103953: 56 push %esi
80103954: 53 push %ebx
static inline uint
readeflags(void)
{
uint eflags;
asm volatile("pushfl; popl %0" : "=r" (eflags));
80103955: 9c pushf
80103956: 58 pop %eax
int apicid, i;
if(readeflags()&FL_IF)
80103957: f6 c4 02 test $0x2,%ah
8010395a: 75 5b jne 801039b7 <mycpu+0x67>
panic("mycpu called with interrupts enabled\n");
apicid = lapicid();
8010395c: e8 ff ef ff ff call 80102960 <lapicid>
// APIC IDs are not guaranteed to be contiguous. Maybe we should have
// a reverse map, or reserve a register to store &cpus[i].
for (i = 0; i < ncpu; ++i) {
80103961: 8b 35 00 3d 11 80 mov 0x80113d00,%esi
80103967: 85 f6 test %esi,%esi
80103969: 7e 3f jle 801039aa <mycpu+0x5a>
if (cpus[i].apicid == apicid)
8010396b: 0f b6 15 80 37 11 80 movzbl 0x80113780,%edx
80103972: 39 d0 cmp %edx,%eax
80103974: 74 30 je 801039a6 <mycpu+0x56>
80103976: b9 30 38 11 80 mov $0x80113830,%ecx
8010397b: 31 d2 xor %edx,%edx
8010397d: 8d 76 00 lea 0x0(%esi),%esi
panic("mycpu called with interrupts enabled\n");
apicid = lapicid();
// APIC IDs are not guaranteed to be contiguous. Maybe we should have
// a reverse map, or reserve a register to store &cpus[i].
for (i = 0; i < ncpu; ++i) {
80103980: 83 c2 01 add $0x1,%edx
80103983: 39 f2 cmp %esi,%edx
80103985: 74 23 je 801039aa <mycpu+0x5a>
if (cpus[i].apicid == apicid)
80103987: 0f b6 19 movzbl (%ecx),%ebx
8010398a: 81 c1 b0 00 00 00 add $0xb0,%ecx
80103990: 39 d8 cmp %ebx,%eax
80103992: 75 ec jne 80103980 <mycpu+0x30>
return &cpus[i];
80103994: 69 c2 b0 00 00 00 imul $0xb0,%edx,%eax
}
panic("unknown apicid\n");
}
8010399a: 8d 65 f8 lea -0x8(%ebp),%esp
8010399d: 5b pop %ebx
apicid = lapicid();
// APIC IDs are not guaranteed to be contiguous. Maybe we should have
// a reverse map, or reserve a register to store &cpus[i].
for (i = 0; i < ncpu; ++i) {
if (cpus[i].apicid == apicid)
return &cpus[i];
8010399e: 05 80 37 11 80 add $0x80113780,%eax
}
panic("unknown apicid\n");
}
801039a3: 5e pop %esi
801039a4: 5d pop %ebp
801039a5: c3 ret
panic("mycpu called with interrupts enabled\n");
apicid = lapicid();
// APIC IDs are not guaranteed to be contiguous. Maybe we should have
// a reverse map, or reserve a register to store &cpus[i].
for (i = 0; i < ncpu; ++i) {
801039a6: 31 d2 xor %edx,%edx
801039a8: eb ea jmp 80103994 <mycpu+0x44>
if (cpus[i].apicid == apicid)
return &cpus[i];
}
panic("unknown apicid\n");
801039aa: 83 ec 0c sub $0xc,%esp
801039ad: 68 5c 7b 10 80 push $0x80107b5c
801039b2: e8 e9 ca ff ff call 801004a0 <panic>
mycpu(void)
{
int apicid, i;
if(readeflags()&FL_IF)
panic("mycpu called with interrupts enabled\n");
801039b7: 83 ec 0c sub $0xc,%esp
801039ba: 68 38 7c 10 80 push $0x80107c38
801039bf: e8 dc ca ff ff call 801004a0 <panic>
801039c4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801039ca: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
801039d0 <cpuid>:
initlock(&ptable.lock, "ptable");
}
// Must be called with interrupts disabled
int
cpuid() {
801039d0: 55 push %ebp
801039d1: 89 e5 mov %esp,%ebp
801039d3: 83 ec 08 sub $0x8,%esp
return mycpu()-cpus;
801039d6: e8 75 ff ff ff call 80103950 <mycpu>
801039db: 2d 80 37 11 80 sub $0x80113780,%eax
}
801039e0: c9 leave
}
// Must be called with interrupts disabled
int
cpuid() {
return mycpu()-cpus;
801039e1: c1 f8 04 sar $0x4,%eax
801039e4: 69 c0 a3 8b 2e ba imul $0xba2e8ba3,%eax,%eax
}
801039ea: c3 ret
801039eb: 90 nop
801039ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801039f0 <myproc>:
}
// Disable interrupts so that we are not rescheduled
// while reading proc from the cpu structure
struct proc*
myproc(void) {
801039f0: 55 push %ebp
801039f1: 89 e5 mov %esp,%ebp
801039f3: 53 push %ebx
801039f4: 83 ec 04 sub $0x4,%esp
struct cpu *c;
struct proc *p;
pushcli();
801039f7: e8 c4 0a 00 00 call 801044c0 <pushcli>
c = mycpu();
801039fc: e8 4f ff ff ff call 80103950 <mycpu>
p = c->proc;
80103a01: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx
popcli();
80103a07: e8 a4 0b 00 00 call 801045b0 <popcli>
return p;
}
80103a0c: 83 c4 04 add $0x4,%esp
80103a0f: 89 d8 mov %ebx,%eax
80103a11: 5b pop %ebx
80103a12: 5d pop %ebp
80103a13: c3 ret
80103a14: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80103a1a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80103a20 <userinit>:
//PAGEBREAK: 32
// Set up first user process.
void
userinit(void)
{
80103a20: 55 push %ebp
80103a21: 89 e5 mov %esp,%ebp
80103a23: 53 push %ebx
80103a24: 83 ec 04 sub $0x4,%esp
struct proc *p;
extern char _binary_initcode_start[], _binary_initcode_size[];
p = allocproc();
80103a27: e8 f4 fd ff ff call 80103820 <allocproc>
80103a2c: 89 c3 mov %eax,%ebx
initproc = p;
80103a2e: a3 b8 b5 10 80 mov %eax,0x8010b5b8
if((p->pgdir = setupkvm()) == 0)
80103a33: e8 78 37 00 00 call 801071b0 <setupkvm>
80103a38: 85 c0 test %eax,%eax
80103a3a: 89 43 04 mov %eax,0x4(%ebx)
80103a3d: 0f 84 bd 00 00 00 je 80103b00 <userinit+0xe0>
panic("userinit: out of memory?");
inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size);
80103a43: 83 ec 04 sub $0x4,%esp
80103a46: 68 2c 00 00 00 push $0x2c
80103a4b: 68 60 b4 10 80 push $0x8010b460
80103a50: 50 push %eax
80103a51: e8 6a 34 00 00 call 80106ec0 <inituvm>
p->sz = PGSIZE;
memset(p->tf, 0, sizeof(*p->tf));
80103a56: 83 c4 0c add $0xc,%esp
initproc = p;
if((p->pgdir = setupkvm()) == 0)
panic("userinit: out of memory?");
inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size);
p->sz = PGSIZE;
80103a59: c7 03 00 10 00 00 movl $0x1000,(%ebx)
memset(p->tf, 0, sizeof(*p->tf));
80103a5f: 6a 4c push $0x4c
80103a61: 6a 00 push $0x0
80103a63: ff 73 18 pushl 0x18(%ebx)
80103a66: e8 05 0c 00 00 call 80104670 <memset>
p->tf->cs = (SEG_UCODE << 3) | DPL_USER;
80103a6b: 8b 43 18 mov 0x18(%ebx),%eax
80103a6e: ba 1b 00 00 00 mov $0x1b,%edx
p->tf->ds = (SEG_UDATA << 3) | DPL_USER;
80103a73: b9 23 00 00 00 mov $0x23,%ecx
p->tf->ss = p->tf->ds;
p->tf->eflags = FL_IF;
p->tf->esp = PGSIZE;
p->tf->eip = 0; // beginning of initcode.S
safestrcpy(p->name, "initcode", sizeof(p->name));
80103a78: 83 c4 0c add $0xc,%esp
if((p->pgdir = setupkvm()) == 0)
panic("userinit: out of memory?");
inituvm(p->pgdir, _binary_initcode_start, (int)_binary_initcode_size);
p->sz = PGSIZE;
memset(p->tf, 0, sizeof(*p->tf));
p->tf->cs = (SEG_UCODE << 3) | DPL_USER;
80103a7b: 66 89 50 3c mov %dx,0x3c(%eax)
p->tf->ds = (SEG_UDATA << 3) | DPL_USER;
80103a7f: 8b 43 18 mov 0x18(%ebx),%eax
80103a82: 66 89 48 2c mov %cx,0x2c(%eax)
p->tf->es = p->tf->ds;
80103a86: 8b 43 18 mov 0x18(%ebx),%eax
80103a89: 0f b7 50 2c movzwl 0x2c(%eax),%edx
80103a8d: 66 89 50 28 mov %dx,0x28(%eax)
p->tf->ss = p->tf->ds;
80103a91: 8b 43 18 mov 0x18(%ebx),%eax
80103a94: 0f b7 50 2c movzwl 0x2c(%eax),%edx
80103a98: 66 89 50 48 mov %dx,0x48(%eax)
p->tf->eflags = FL_IF;
80103a9c: 8b 43 18 mov 0x18(%ebx),%eax
80103a9f: c7 40 40 00 02 00 00 movl $0x200,0x40(%eax)
p->tf->esp = PGSIZE;
80103aa6: 8b 43 18 mov 0x18(%ebx),%eax
80103aa9: c7 40 44 00 10 00 00 movl $0x1000,0x44(%eax)
p->tf->eip = 0; // beginning of initcode.S
80103ab0: 8b 43 18 mov 0x18(%ebx),%eax
80103ab3: c7 40 38 00 00 00 00 movl $0x0,0x38(%eax)
safestrcpy(p->name, "initcode", sizeof(p->name));
80103aba: 8d 43 6c lea 0x6c(%ebx),%eax
80103abd: 6a 10 push $0x10
80103abf: 68 85 7b 10 80 push $0x80107b85
80103ac4: 50 push %eax
80103ac5: e8 a6 0d 00 00 call 80104870 <safestrcpy>
p->cwd = namei("/");
80103aca: c7 04 24 8e 7b 10 80 movl $0x80107b8e,(%esp)
80103ad1: e8 5a e6 ff ff call 80102130 <namei>
80103ad6: 89 43 68 mov %eax,0x68(%ebx)
// this assignment to p->state lets other cores
// run this process. the acquire forces the above
// writes to be visible, and the lock is also needed
// because the assignment might not be atomic.
acquire(&ptable.lock);
80103ad9: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp)
80103ae0: e8 1b 0a 00 00 call 80104500 <acquire>
p->state = RUNNABLE;
80103ae5: c7 43 0c 03 00 00 00 movl $0x3,0xc(%ebx)
release(&ptable.lock);
80103aec: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp)
80103af3: e8 28 0b 00 00 call 80104620 <release>
}
80103af8: 83 c4 10 add $0x10,%esp
80103afb: 8b 5d fc mov -0x4(%ebp),%ebx
80103afe: c9 leave
80103aff: c3 ret
p = allocproc();
initproc = p;
if((p->pgdir = setupkvm()) == 0)
panic("userinit: out of memory?");
80103b00: 83 ec 0c sub $0xc,%esp
80103b03: 68 6c 7b 10 80 push $0x80107b6c
80103b08: e8 93 c9 ff ff call 801004a0 <panic>
80103b0d: 8d 76 00 lea 0x0(%esi),%esi
80103b10 <growproc>:
// Grow current process's memory by n bytes.
// Return 0 on success, -1 on failure.
int
growproc(int n)
{
80103b10: 55 push %ebp
80103b11: 89 e5 mov %esp,%ebp
80103b13: 56 push %esi
80103b14: 53 push %ebx
80103b15: 8b 5d 08 mov 0x8(%ebp),%ebx
// while reading proc from the cpu structure
struct proc*
myproc(void) {
struct cpu *c;
struct proc *p;
pushcli();
80103b18: e8 a3 09 00 00 call 801044c0 <pushcli>
c = mycpu();
80103b1d: e8 2e fe ff ff call 80103950 <mycpu>
p = c->proc;
80103b22: 8b b0 ac 00 00 00 mov 0xac(%eax),%esi
popcli();
80103b28: e8 83 0a 00 00 call 801045b0 <popcli>
int
growproc(int n)
{
struct proc *curproc = myproc();
if (n < 0 || n > KERNBASE || curproc->sz + n > KERNBASE)
80103b2d: 89 d8 mov %ebx,%eax
80103b2f: c1 e8 1f shr $0x1f,%eax
80103b32: 84 c0 test %al,%al
80103b34: 75 1a jne 80103b50 <growproc+0x40>
80103b36: 81 fb 00 00 00 80 cmp $0x80000000,%ebx
80103b3c: 77 12 ja 80103b50 <growproc+0x40>
80103b3e: 03 1e add (%esi),%ebx
80103b40: 81 fb 00 00 00 80 cmp $0x80000000,%ebx
80103b46: 77 08 ja 80103b50 <growproc+0x40>
return -1;
curproc->sz += n;
80103b48: 89 1e mov %ebx,(%esi)
return 0;
80103b4a: 31 c0 xor %eax,%eax
}
80103b4c: 5b pop %ebx
80103b4d: 5e pop %esi
80103b4e: 5d pop %ebp
80103b4f: c3 ret
growproc(int n)
{
struct proc *curproc = myproc();
if (n < 0 || n > KERNBASE || curproc->sz + n > KERNBASE)
return -1;
80103b50: b8 ff ff ff ff mov $0xffffffff,%eax
80103b55: eb f5 jmp 80103b4c <growproc+0x3c>
80103b57: 89 f6 mov %esi,%esi
80103b59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103b60 <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)
{
80103b60: 55 push %ebp
80103b61: 89 e5 mov %esp,%ebp
80103b63: 57 push %edi
80103b64: 56 push %esi
80103b65: 53 push %ebx
80103b66: 83 ec 1c sub $0x1c,%esp
// while reading proc from the cpu structure
struct proc*
myproc(void) {
struct cpu *c;
struct proc *p;
pushcli();
80103b69: e8 52 09 00 00 call 801044c0 <pushcli>
c = mycpu();
80103b6e: e8 dd fd ff ff call 80103950 <mycpu>
p = c->proc;
80103b73: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx
popcli();
80103b79: e8 32 0a 00 00 call 801045b0 <popcli>
int i, pid;
struct proc *np;
struct proc *curproc = myproc();
// Allocate process.
if((np = allocproc()) == 0){
80103b7e: e8 9d fc ff ff call 80103820 <allocproc>
80103b83: 85 c0 test %eax,%eax
80103b85: 89 c7 mov %eax,%edi
80103b87: 89 45 e4 mov %eax,-0x1c(%ebp)
80103b8a: 0f 84 b5 00 00 00 je 80103c45 <fork+0xe5>
return -1;
}
// Copy process state from proc.
if((np->pgdir = copyuvm(curproc->pgdir, curproc->sz)) == 0){
80103b90: 83 ec 08 sub $0x8,%esp
80103b93: ff 33 pushl (%ebx)
80103b95: ff 73 04 pushl 0x4(%ebx)
80103b98: e8 e3 37 00 00 call 80107380 <copyuvm>
80103b9d: 83 c4 10 add $0x10,%esp
80103ba0: 85 c0 test %eax,%eax
80103ba2: 89 47 04 mov %eax,0x4(%edi)
80103ba5: 0f 84 a1 00 00 00 je 80103c4c <fork+0xec>
kfree(np->kstack);
np->kstack = 0;
np->state = UNUSED;
return -1;
}
np->sz = curproc->sz;
80103bab: 8b 03 mov (%ebx),%eax
80103bad: 8b 4d e4 mov -0x1c(%ebp),%ecx
80103bb0: 89 01 mov %eax,(%ecx)
np->parent = curproc;
80103bb2: 89 59 14 mov %ebx,0x14(%ecx)
*np->tf = *curproc->tf;
80103bb5: 89 c8 mov %ecx,%eax
80103bb7: 8b 79 18 mov 0x18(%ecx),%edi
80103bba: 8b 73 18 mov 0x18(%ebx),%esi
80103bbd: b9 13 00 00 00 mov $0x13,%ecx
80103bc2: f3 a5 rep movsl %ds:(%esi),%es:(%edi)
// Clear %eax so that fork returns 0 in the child.
np->tf->eax = 0;
for(i = 0; i < NOFILE; i++)
80103bc4: 31 f6 xor %esi,%esi
np->sz = curproc->sz;
np->parent = curproc;
*np->tf = *curproc->tf;
// Clear %eax so that fork returns 0 in the child.
np->tf->eax = 0;
80103bc6: 8b 40 18 mov 0x18(%eax),%eax
80103bc9: c7 40 1c 00 00 00 00 movl $0x0,0x1c(%eax)
for(i = 0; i < NOFILE; i++)
if(curproc->ofile[i])
80103bd0: 8b 44 b3 28 mov 0x28(%ebx,%esi,4),%eax
80103bd4: 85 c0 test %eax,%eax
80103bd6: 74 13 je 80103beb <fork+0x8b>
np->ofile[i] = filedup(curproc->ofile[i]);
80103bd8: 83 ec 0c sub $0xc,%esp
80103bdb: 50 push %eax
80103bdc: e8 2f d3 ff ff call 80100f10 <filedup>
80103be1: 8b 55 e4 mov -0x1c(%ebp),%edx
80103be4: 83 c4 10 add $0x10,%esp
80103be7: 89 44 b2 28 mov %eax,0x28(%edx,%esi,4)
*np->tf = *curproc->tf;
// Clear %eax so that fork returns 0 in the child.
np->tf->eax = 0;
for(i = 0; i < NOFILE; i++)
80103beb: 83 c6 01 add $0x1,%esi
80103bee: 83 fe 10 cmp $0x10,%esi
80103bf1: 75 dd jne 80103bd0 <fork+0x70>
if(curproc->ofile[i])
np->ofile[i] = filedup(curproc->ofile[i]);
np->cwd = idup(curproc->cwd);
80103bf3: 83 ec 0c sub $0xc,%esp
80103bf6: ff 73 68 pushl 0x68(%ebx)
safestrcpy(np->name, curproc->name, sizeof(curproc->name));
80103bf9: 83 c3 6c add $0x6c,%ebx
np->tf->eax = 0;
for(i = 0; i < NOFILE; i++)
if(curproc->ofile[i])
np->ofile[i] = filedup(curproc->ofile[i]);
np->cwd = idup(curproc->cwd);
80103bfc: e8 af dc ff ff call 801018b0 <idup>
80103c01: 8b 7d e4 mov -0x1c(%ebp),%edi
safestrcpy(np->name, curproc->name, sizeof(curproc->name));
80103c04: 83 c4 0c add $0xc,%esp
np->tf->eax = 0;
for(i = 0; i < NOFILE; i++)
if(curproc->ofile[i])
np->ofile[i] = filedup(curproc->ofile[i]);
np->cwd = idup(curproc->cwd);
80103c07: 89 47 68 mov %eax,0x68(%edi)
safestrcpy(np->name, curproc->name, sizeof(curproc->name));
80103c0a: 8d 47 6c lea 0x6c(%edi),%eax
80103c0d: 6a 10 push $0x10
80103c0f: 53 push %ebx
80103c10: 50 push %eax
80103c11: e8 5a 0c 00 00 call 80104870 <safestrcpy>
pid = np->pid;
80103c16: 8b 5f 10 mov 0x10(%edi),%ebx
acquire(&ptable.lock);
80103c19: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp)
80103c20: e8 db 08 00 00 call 80104500 <acquire>
np->state = RUNNABLE;
80103c25: c7 47 0c 03 00 00 00 movl $0x3,0xc(%edi)
release(&ptable.lock);
80103c2c: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp)
80103c33: e8 e8 09 00 00 call 80104620 <release>
return pid;
80103c38: 83 c4 10 add $0x10,%esp
80103c3b: 89 d8 mov %ebx,%eax
}
80103c3d: 8d 65 f4 lea -0xc(%ebp),%esp
80103c40: 5b pop %ebx
80103c41: 5e pop %esi
80103c42: 5f pop %edi
80103c43: 5d pop %ebp
80103c44: c3 ret
struct proc *np;
struct proc *curproc = myproc();
// Allocate process.
if((np = allocproc()) == 0){
return -1;
80103c45: b8 ff ff ff ff mov $0xffffffff,%eax
80103c4a: eb f1 jmp 80103c3d <fork+0xdd>
}
// Copy process state from proc.
if((np->pgdir = copyuvm(curproc->pgdir, curproc->sz)) == 0){
kfree(np->kstack);
80103c4c: 8b 7d e4 mov -0x1c(%ebp),%edi
80103c4f: 83 ec 0c sub $0xc,%esp
80103c52: ff 77 08 pushl 0x8(%edi)
80103c55: e8 f6 e8 ff ff call 80102550 <kfree>
np->kstack = 0;
80103c5a: c7 47 08 00 00 00 00 movl $0x0,0x8(%edi)
np->state = UNUSED;
80103c61: c7 47 0c 00 00 00 00 movl $0x0,0xc(%edi)
return -1;
80103c68: 83 c4 10 add $0x10,%esp
80103c6b: b8 ff ff ff ff mov $0xffffffff,%eax
80103c70: eb cb jmp 80103c3d <fork+0xdd>
80103c72: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80103c79: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103c80 <scheduler>:
// - swtch to start running that process
// - eventually that process transfers control
// via swtch back to the scheduler.
void
scheduler(void)
{
80103c80: 55 push %ebp
80103c81: 89 e5 mov %esp,%ebp
80103c83: 57 push %edi
80103c84: 56 push %esi
80103c85: 53 push %ebx
80103c86: 83 ec 0c sub $0xc,%esp
struct proc *p;
struct cpu *c = mycpu();
80103c89: e8 c2 fc ff ff call 80103950 <mycpu>
80103c8e: 8d 78 04 lea 0x4(%eax),%edi
80103c91: 89 c6 mov %eax,%esi
c->proc = 0;
80103c93: c7 80 ac 00 00 00 00 movl $0x0,0xac(%eax)
80103c9a: 00 00 00
80103c9d: 8d 76 00 lea 0x0(%esi),%esi
}
static inline void
sti(void)
{
asm volatile("sti");
80103ca0: fb sti
for(;;){
// Enable interrupts on this processor.
sti();
// Loop over process table looking for process to run.
acquire(&ptable.lock);
80103ca1: 83 ec 0c sub $0xc,%esp
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103ca4: bb 54 3d 11 80 mov $0x80113d54,%ebx
for(;;){
// Enable interrupts on this processor.
sti();
// Loop over process table looking for process to run.
acquire(&ptable.lock);
80103ca9: 68 20 3d 11 80 push $0x80113d20
80103cae: e8 4d 08 00 00 call 80104500 <acquire>
80103cb3: 83 c4 10 add $0x10,%esp
80103cb6: eb 13 jmp 80103ccb <scheduler+0x4b>
80103cb8: 90 nop
80103cb9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103cc0: 83 c3 7c add $0x7c,%ebx
80103cc3: 81 fb 54 5c 11 80 cmp $0x80115c54,%ebx
80103cc9: 74 45 je 80103d10 <scheduler+0x90>
if(p->state != RUNNABLE)
80103ccb: 83 7b 0c 03 cmpl $0x3,0xc(%ebx)
80103ccf: 75 ef jne 80103cc0 <scheduler+0x40>
// Switch to chosen process. It is the process's job
// to release ptable.lock and then reacquire it
// before jumping back to us.
c->proc = p;
switchuvm(p);
80103cd1: 83 ec 0c sub $0xc,%esp
continue;
// Switch to chosen process. It is the process's job
// to release ptable.lock and then reacquire it
// before jumping back to us.
c->proc = p;
80103cd4: 89 9e ac 00 00 00 mov %ebx,0xac(%esi)
switchuvm(p);
80103cda: 53 push %ebx
// Enable interrupts on this processor.
sti();
// Loop over process table looking for process to run.
acquire(&ptable.lock);
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103cdb: 83 c3 7c add $0x7c,%ebx
// Switch to chosen process. It is the process's job
// to release ptable.lock and then reacquire it
// before jumping back to us.
c->proc = p;
switchuvm(p);
80103cde: e8 cd 30 00 00 call 80106db0 <switchuvm>
p->state = RUNNING;
swtch(&(c->scheduler), p->context);
80103ce3: 58 pop %eax
80103ce4: 5a pop %edx
80103ce5: ff 73 a0 pushl -0x60(%ebx)
80103ce8: 57 push %edi
// Switch to chosen process. It is the process's job
// to release ptable.lock and then reacquire it
// before jumping back to us.
c->proc = p;
switchuvm(p);
p->state = RUNNING;
80103ce9: c7 43 90 04 00 00 00 movl $0x4,-0x70(%ebx)
swtch(&(c->scheduler), p->context);
80103cf0: e8 d6 0b 00 00 call 801048cb <swtch>
switchkvm();
80103cf5: e8 96 30 00 00 call 80106d90 <switchkvm>
// Process is done running for now.
// It should have changed its p->state before coming back.
c->proc = 0;
80103cfa: 83 c4 10 add $0x10,%esp
// Enable interrupts on this processor.
sti();
// Loop over process table looking for process to run.
acquire(&ptable.lock);
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103cfd: 81 fb 54 5c 11 80 cmp $0x80115c54,%ebx
swtch(&(c->scheduler), p->context);
switchkvm();
// Process is done running for now.
// It should have changed its p->state before coming back.
c->proc = 0;
80103d03: c7 86 ac 00 00 00 00 movl $0x0,0xac(%esi)
80103d0a: 00 00 00
// Enable interrupts on this processor.
sti();
// Loop over process table looking for process to run.
acquire(&ptable.lock);
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103d0d: 75 bc jne 80103ccb <scheduler+0x4b>
80103d0f: 90 nop
// Process is done running for now.
// It should have changed its p->state before coming back.
c->proc = 0;
}
release(&ptable.lock);
80103d10: 83 ec 0c sub $0xc,%esp
80103d13: 68 20 3d 11 80 push $0x80113d20
80103d18: e8 03 09 00 00 call 80104620 <release>
}
80103d1d: 83 c4 10 add $0x10,%esp
80103d20: e9 7b ff ff ff jmp 80103ca0 <scheduler+0x20>
80103d25: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80103d29: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103d30 <sched>:
// be proc->intena and proc->ncli, but that would
// break in the few places where a lock is held but
// there's no process.
void
sched(void)
{
80103d30: 55 push %ebp
80103d31: 89 e5 mov %esp,%ebp
80103d33: 56 push %esi
80103d34: 53 push %ebx
// while reading proc from the cpu structure
struct proc*
myproc(void) {
struct cpu *c;
struct proc *p;
pushcli();
80103d35: e8 86 07 00 00 call 801044c0 <pushcli>
c = mycpu();
80103d3a: e8 11 fc ff ff call 80103950 <mycpu>
p = c->proc;
80103d3f: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx
popcli();
80103d45: e8 66 08 00 00 call 801045b0 <popcli>
sched(void)
{
int intena;
struct proc *p = myproc();
if(!holding(&ptable.lock))
80103d4a: 83 ec 0c sub $0xc,%esp
80103d4d: 68 20 3d 11 80 push $0x80113d20
80103d52: e8 29 07 00 00 call 80104480 <holding>
80103d57: 83 c4 10 add $0x10,%esp
80103d5a: 85 c0 test %eax,%eax
80103d5c: 74 4f je 80103dad <sched+0x7d>
panic("sched ptable.lock");
if(mycpu()->ncli != 1)
80103d5e: e8 ed fb ff ff call 80103950 <mycpu>
80103d63: 83 b8 a4 00 00 00 01 cmpl $0x1,0xa4(%eax)
80103d6a: 75 68 jne 80103dd4 <sched+0xa4>
panic("sched locks");
if(p->state == RUNNING)
80103d6c: 83 7b 0c 04 cmpl $0x4,0xc(%ebx)
80103d70: 74 55 je 80103dc7 <sched+0x97>
static inline uint
readeflags(void)
{
uint eflags;
asm volatile("pushfl; popl %0" : "=r" (eflags));
80103d72: 9c pushf
80103d73: 58 pop %eax
panic("sched running");
if(readeflags()&FL_IF)
80103d74: f6 c4 02 test $0x2,%ah
80103d77: 75 41 jne 80103dba <sched+0x8a>
panic("sched interruptible");
intena = mycpu()->intena;
80103d79: e8 d2 fb ff ff call 80103950 <mycpu>
swtch(&p->context, mycpu()->scheduler);
80103d7e: 83 c3 1c add $0x1c,%ebx
panic("sched locks");
if(p->state == RUNNING)
panic("sched running");
if(readeflags()&FL_IF)
panic("sched interruptible");
intena = mycpu()->intena;
80103d81: 8b b0 a8 00 00 00 mov 0xa8(%eax),%esi
swtch(&p->context, mycpu()->scheduler);
80103d87: e8 c4 fb ff ff call 80103950 <mycpu>
80103d8c: 83 ec 08 sub $0x8,%esp
80103d8f: ff 70 04 pushl 0x4(%eax)
80103d92: 53 push %ebx
80103d93: e8 33 0b 00 00 call 801048cb <swtch>
mycpu()->intena = intena;
80103d98: e8 b3 fb ff ff call 80103950 <mycpu>
}
80103d9d: 83 c4 10 add $0x10,%esp
panic("sched running");
if(readeflags()&FL_IF)
panic("sched interruptible");
intena = mycpu()->intena;
swtch(&p->context, mycpu()->scheduler);
mycpu()->intena = intena;
80103da0: 89 b0 a8 00 00 00 mov %esi,0xa8(%eax)
}
80103da6: 8d 65 f8 lea -0x8(%ebp),%esp
80103da9: 5b pop %ebx
80103daa: 5e pop %esi
80103dab: 5d pop %ebp
80103dac: c3 ret
{
int intena;
struct proc *p = myproc();
if(!holding(&ptable.lock))
panic("sched ptable.lock");
80103dad: 83 ec 0c sub $0xc,%esp
80103db0: 68 90 7b 10 80 push $0x80107b90
80103db5: e8 e6 c6 ff ff call 801004a0 <panic>
if(mycpu()->ncli != 1)
panic("sched locks");
if(p->state == RUNNING)
panic("sched running");
if(readeflags()&FL_IF)
panic("sched interruptible");
80103dba: 83 ec 0c sub $0xc,%esp
80103dbd: 68 bc 7b 10 80 push $0x80107bbc
80103dc2: e8 d9 c6 ff ff call 801004a0 <panic>
if(!holding(&ptable.lock))
panic("sched ptable.lock");
if(mycpu()->ncli != 1)
panic("sched locks");
if(p->state == RUNNING)
panic("sched running");
80103dc7: 83 ec 0c sub $0xc,%esp
80103dca: 68 ae 7b 10 80 push $0x80107bae
80103dcf: e8 cc c6 ff ff call 801004a0 <panic>
struct proc *p = myproc();
if(!holding(&ptable.lock))
panic("sched ptable.lock");
if(mycpu()->ncli != 1)
panic("sched locks");
80103dd4: 83 ec 0c sub $0xc,%esp
80103dd7: 68 a2 7b 10 80 push $0x80107ba2
80103ddc: e8 bf c6 ff ff call 801004a0 <panic>
80103de1: eb 0d jmp 80103df0 <exit>
80103de3: 90 nop
80103de4: 90 nop
80103de5: 90 nop
80103de6: 90 nop
80103de7: 90 nop
80103de8: 90 nop
80103de9: 90 nop
80103dea: 90 nop
80103deb: 90 nop
80103dec: 90 nop
80103ded: 90 nop
80103dee: 90 nop
80103def: 90 nop
80103df0 <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)
{
80103df0: 55 push %ebp
80103df1: 89 e5 mov %esp,%ebp
80103df3: 57 push %edi
80103df4: 56 push %esi
80103df5: 53 push %ebx
80103df6: 83 ec 0c sub $0xc,%esp
// while reading proc from the cpu structure
struct proc*
myproc(void) {
struct cpu *c;
struct proc *p;
pushcli();
80103df9: e8 c2 06 00 00 call 801044c0 <pushcli>
c = mycpu();
80103dfe: e8 4d fb ff ff call 80103950 <mycpu>
p = c->proc;
80103e03: 8b b0 ac 00 00 00 mov 0xac(%eax),%esi
popcli();
80103e09: e8 a2 07 00 00 call 801045b0 <popcli>
{
struct proc *curproc = myproc();
struct proc *p;
int fd;
if(curproc == initproc)
80103e0e: 39 35 b8 b5 10 80 cmp %esi,0x8010b5b8
80103e14: 8d 5e 28 lea 0x28(%esi),%ebx
80103e17: 8d 7e 68 lea 0x68(%esi),%edi
80103e1a: 0f 84 e7 00 00 00 je 80103f07 <exit+0x117>
panic("init exiting");
// Close all open files.
for(fd = 0; fd < NOFILE; fd++){
if(curproc->ofile[fd]){
80103e20: 8b 03 mov (%ebx),%eax
80103e22: 85 c0 test %eax,%eax
80103e24: 74 12 je 80103e38 <exit+0x48>
fileclose(curproc->ofile[fd]);
80103e26: 83 ec 0c sub $0xc,%esp
80103e29: 50 push %eax
80103e2a: e8 31 d1 ff ff call 80100f60 <fileclose>
curproc->ofile[fd] = 0;
80103e2f: c7 03 00 00 00 00 movl $0x0,(%ebx)
80103e35: 83 c4 10 add $0x10,%esp
80103e38: 83 c3 04 add $0x4,%ebx
if(curproc == initproc)
panic("init exiting");
// Close all open files.
for(fd = 0; fd < NOFILE; fd++){
80103e3b: 39 df cmp %ebx,%edi
80103e3d: 75 e1 jne 80103e20 <exit+0x30>
fileclose(curproc->ofile[fd]);
curproc->ofile[fd] = 0;
}
}
begin_op();
80103e3f: e8 7c ef ff ff call 80102dc0 <begin_op>
iput(curproc->cwd);
80103e44: 83 ec 0c sub $0xc,%esp
80103e47: ff 76 68 pushl 0x68(%esi)
80103e4a: e8 c1 db ff ff call 80101a10 <iput>
end_op();
80103e4f: e8 dc ef ff ff call 80102e30 <end_op>
curproc->cwd = 0;
80103e54: c7 46 68 00 00 00 00 movl $0x0,0x68(%esi)
acquire(&ptable.lock);
80103e5b: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp)
80103e62: e8 99 06 00 00 call 80104500 <acquire>
// Parent might be sleeping in wait().
wakeup1(curproc->parent);
80103e67: 8b 56 14 mov 0x14(%esi),%edx
80103e6a: 83 c4 10 add $0x10,%esp
static void
wakeup1(void *chan)
{
struct proc *p;
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103e6d: b8 54 3d 11 80 mov $0x80113d54,%eax
80103e72: eb 0e jmp 80103e82 <exit+0x92>
80103e74: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80103e78: 83 c0 7c add $0x7c,%eax
80103e7b: 3d 54 5c 11 80 cmp $0x80115c54,%eax
80103e80: 74 1c je 80103e9e <exit+0xae>
if(p->state == SLEEPING && p->chan == chan)
80103e82: 83 78 0c 02 cmpl $0x2,0xc(%eax)
80103e86: 75 f0 jne 80103e78 <exit+0x88>
80103e88: 3b 50 20 cmp 0x20(%eax),%edx
80103e8b: 75 eb jne 80103e78 <exit+0x88>
p->state = RUNNABLE;
80103e8d: 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++)
80103e94: 83 c0 7c add $0x7c,%eax
80103e97: 3d 54 5c 11 80 cmp $0x80115c54,%eax
80103e9c: 75 e4 jne 80103e82 <exit+0x92>
wakeup1(curproc->parent);
// Pass abandoned children to init.
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
if(p->parent == curproc){
p->parent = initproc;
80103e9e: 8b 0d b8 b5 10 80 mov 0x8010b5b8,%ecx
80103ea4: ba 54 3d 11 80 mov $0x80113d54,%edx
80103ea9: eb 10 jmp 80103ebb <exit+0xcb>
80103eab: 90 nop
80103eac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
// Parent might be sleeping in wait().
wakeup1(curproc->parent);
// Pass abandoned children to init.
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80103eb0: 83 c2 7c add $0x7c,%edx
80103eb3: 81 fa 54 5c 11 80 cmp $0x80115c54,%edx
80103eb9: 74 33 je 80103eee <exit+0xfe>
if(p->parent == curproc){
80103ebb: 39 72 14 cmp %esi,0x14(%edx)
80103ebe: 75 f0 jne 80103eb0 <exit+0xc0>
p->parent = initproc;
if(p->state == ZOMBIE)
80103ec0: 83 7a 0c 05 cmpl $0x5,0xc(%edx)
wakeup1(curproc->parent);
// Pass abandoned children to init.
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
if(p->parent == curproc){
p->parent = initproc;
80103ec4: 89 4a 14 mov %ecx,0x14(%edx)
if(p->state == ZOMBIE)
80103ec7: 75 e7 jne 80103eb0 <exit+0xc0>
80103ec9: b8 54 3d 11 80 mov $0x80113d54,%eax
80103ece: eb 0a jmp 80103eda <exit+0xea>
static void
wakeup1(void *chan)
{
struct proc *p;
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80103ed0: 83 c0 7c add $0x7c,%eax
80103ed3: 3d 54 5c 11 80 cmp $0x80115c54,%eax
80103ed8: 74 d6 je 80103eb0 <exit+0xc0>
if(p->state == SLEEPING && p->chan == chan)
80103eda: 83 78 0c 02 cmpl $0x2,0xc(%eax)
80103ede: 75 f0 jne 80103ed0 <exit+0xe0>
80103ee0: 3b 48 20 cmp 0x20(%eax),%ecx
80103ee3: 75 eb jne 80103ed0 <exit+0xe0>
p->state = RUNNABLE;
80103ee5: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax)
80103eec: eb e2 jmp 80103ed0 <exit+0xe0>
wakeup1(initproc);
}
}
// Jump into the scheduler, never to return.
curproc->state = ZOMBIE;
80103eee: c7 46 0c 05 00 00 00 movl $0x5,0xc(%esi)
sched();
80103ef5: e8 36 fe ff ff call 80103d30 <sched>
panic("zombie exit");
80103efa: 83 ec 0c sub $0xc,%esp
80103efd: 68 dd 7b 10 80 push $0x80107bdd
80103f02: e8 99 c5 ff ff call 801004a0 <panic>
struct proc *curproc = myproc();
struct proc *p;
int fd;
if(curproc == initproc)
panic("init exiting");
80103f07: 83 ec 0c sub $0xc,%esp
80103f0a: 68 d0 7b 10 80 push $0x80107bd0
80103f0f: e8 8c c5 ff ff call 801004a0 <panic>
80103f14: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80103f1a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80103f20 <yield>:
}
// Give up the CPU for one scheduling round.
void
yield(void)
{
80103f20: 55 push %ebp
80103f21: 89 e5 mov %esp,%ebp
80103f23: 53 push %ebx
80103f24: 83 ec 10 sub $0x10,%esp
acquire(&ptable.lock); //DOC: yieldlock
80103f27: 68 20 3d 11 80 push $0x80113d20
80103f2c: e8 cf 05 00 00 call 80104500 <acquire>
// while reading proc from the cpu structure
struct proc*
myproc(void) {
struct cpu *c;
struct proc *p;
pushcli();
80103f31: e8 8a 05 00 00 call 801044c0 <pushcli>
c = mycpu();
80103f36: e8 15 fa ff ff call 80103950 <mycpu>
p = c->proc;
80103f3b: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx
popcli();
80103f41: e8 6a 06 00 00 call 801045b0 <popcli>
// Give up the CPU for one scheduling round.
void
yield(void)
{
acquire(&ptable.lock); //DOC: yieldlock
myproc()->state = RUNNABLE;
80103f46: c7 43 0c 03 00 00 00 movl $0x3,0xc(%ebx)
sched();
80103f4d: e8 de fd ff ff call 80103d30 <sched>
release(&ptable.lock);
80103f52: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp)
80103f59: e8 c2 06 00 00 call 80104620 <release>
}
80103f5e: 83 c4 10 add $0x10,%esp
80103f61: 8b 5d fc mov -0x4(%ebp),%ebx
80103f64: c9 leave
80103f65: c3 ret
80103f66: 8d 76 00 lea 0x0(%esi),%esi
80103f69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80103f70 <sleep>:
// Atomically release lock and sleep on chan.
// Reacquires lock when awakened.
void
sleep(void *chan, struct spinlock *lk)
{
80103f70: 55 push %ebp
80103f71: 89 e5 mov %esp,%ebp
80103f73: 57 push %edi
80103f74: 56 push %esi
80103f75: 53 push %ebx
80103f76: 83 ec 0c sub $0xc,%esp
80103f79: 8b 7d 08 mov 0x8(%ebp),%edi
80103f7c: 8b 75 0c mov 0xc(%ebp),%esi
// while reading proc from the cpu structure
struct proc*
myproc(void) {
struct cpu *c;
struct proc *p;
pushcli();
80103f7f: e8 3c 05 00 00 call 801044c0 <pushcli>
c = mycpu();
80103f84: e8 c7 f9 ff ff call 80103950 <mycpu>
p = c->proc;
80103f89: 8b 98 ac 00 00 00 mov 0xac(%eax),%ebx
popcli();
80103f8f: e8 1c 06 00 00 call 801045b0 <popcli>
void
sleep(void *chan, struct spinlock *lk)
{
struct proc *p = myproc();
if(p == 0)
80103f94: 85 db test %ebx,%ebx
80103f96: 0f 84 87 00 00 00 je 80104023 <sleep+0xb3>
panic("sleep");
if(lk == 0)
80103f9c: 85 f6 test %esi,%esi
80103f9e: 74 76 je 80104016 <sleep+0xa6>
// 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
80103fa0: 81 fe 20 3d 11 80 cmp $0x80113d20,%esi
80103fa6: 74 50 je 80103ff8 <sleep+0x88>
acquire(&ptable.lock); //DOC: sleeplock1
80103fa8: 83 ec 0c sub $0xc,%esp
80103fab: 68 20 3d 11 80 push $0x80113d20
80103fb0: e8 4b 05 00 00 call 80104500 <acquire>
release(lk);
80103fb5: 89 34 24 mov %esi,(%esp)
80103fb8: e8 63 06 00 00 call 80104620 <release>
}
// Go to sleep.
p->chan = chan;
80103fbd: 89 7b 20 mov %edi,0x20(%ebx)
p->state = SLEEPING;
80103fc0: c7 43 0c 02 00 00 00 movl $0x2,0xc(%ebx)
sched();
80103fc7: e8 64 fd ff ff call 80103d30 <sched>
// Tidy up.
p->chan = 0;
80103fcc: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx)
// Reacquire original lock.
if(lk != &ptable.lock){ //DOC: sleeplock2
release(&ptable.lock);
80103fd3: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp)
80103fda: e8 41 06 00 00 call 80104620 <release>
acquire(lk);
80103fdf: 89 75 08 mov %esi,0x8(%ebp)
80103fe2: 83 c4 10 add $0x10,%esp
}
}
80103fe5: 8d 65 f4 lea -0xc(%ebp),%esp
80103fe8: 5b pop %ebx
80103fe9: 5e pop %esi
80103fea: 5f pop %edi
80103feb: 5d pop %ebp
p->chan = 0;
// Reacquire original lock.
if(lk != &ptable.lock){ //DOC: sleeplock2
release(&ptable.lock);
acquire(lk);
80103fec: e9 0f 05 00 00 jmp 80104500 <acquire>
80103ff1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if(lk != &ptable.lock){ //DOC: sleeplock0
acquire(&ptable.lock); //DOC: sleeplock1
release(lk);
}
// Go to sleep.
p->chan = chan;
80103ff8: 89 7b 20 mov %edi,0x20(%ebx)
p->state = SLEEPING;
80103ffb: c7 43 0c 02 00 00 00 movl $0x2,0xc(%ebx)
sched();
80104002: e8 29 fd ff ff call 80103d30 <sched>
// Tidy up.
p->chan = 0;
80104007: c7 43 20 00 00 00 00 movl $0x0,0x20(%ebx)
// Reacquire original lock.
if(lk != &ptable.lock){ //DOC: sleeplock2
release(&ptable.lock);
acquire(lk);
}
}
8010400e: 8d 65 f4 lea -0xc(%ebp),%esp
80104011: 5b pop %ebx
80104012: 5e pop %esi
80104013: 5f pop %edi
80104014: 5d pop %ebp
80104015: c3 ret
if(p == 0)
panic("sleep");
if(lk == 0)
panic("sleep without lk");
80104016: 83 ec 0c sub $0xc,%esp
80104019: 68 ef 7b 10 80 push $0x80107bef
8010401e: e8 7d c4 ff ff call 801004a0 <panic>
sleep(void *chan, struct spinlock *lk)
{
struct proc *p = myproc();
if(p == 0)
panic("sleep");
80104023: 83 ec 0c sub $0xc,%esp
80104026: 68 e9 7b 10 80 push $0x80107be9
8010402b: e8 70 c4 ff ff call 801004a0 <panic>
80104030 <wait>:
// Wait for a child process to exit and return its pid.
// Return -1 if this process has no children.
int
wait(void)
{
80104030: 55 push %ebp
80104031: 89 e5 mov %esp,%ebp
80104033: 57 push %edi
80104034: 56 push %esi
80104035: 53 push %ebx
80104036: 83 ec 0c sub $0xc,%esp
// while reading proc from the cpu structure
struct proc*
myproc(void) {
struct cpu *c;
struct proc *p;
pushcli();
80104039: e8 82 04 00 00 call 801044c0 <pushcli>
c = mycpu();
8010403e: e8 0d f9 ff ff call 80103950 <mycpu>
p = c->proc;
80104043: 8b b0 ac 00 00 00 mov 0xac(%eax),%esi
popcli();
80104049: e8 62 05 00 00 call 801045b0 <popcli>
int havekids, pid;
struct proc *curproc = myproc();
pde_t *pgdir;
acquire(&ptable.lock);
8010404e: 83 ec 0c sub $0xc,%esp
80104051: 68 20 3d 11 80 push $0x80113d20
80104056: e8 a5 04 00 00 call 80104500 <acquire>
8010405b: 83 c4 10 add $0x10,%esp
for(;;){
// Scan through table looking for exited children.
havekids = 0;
8010405e: 31 c0 xor %eax,%eax
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104060: bb 54 3d 11 80 mov $0x80113d54,%ebx
80104065: eb 14 jmp 8010407b <wait+0x4b>
80104067: 89 f6 mov %esi,%esi
80104069: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104070: 83 c3 7c add $0x7c,%ebx
80104073: 81 fb 54 5c 11 80 cmp $0x80115c54,%ebx
80104079: 74 25 je 801040a0 <wait+0x70>
if(p->parent != curproc)
8010407b: 39 73 14 cmp %esi,0x14(%ebx)
8010407e: 75 f0 jne 80104070 <wait+0x40>
continue;
havekids = 1;
if(p->state == ZOMBIE){
80104080: 83 7b 0c 05 cmpl $0x5,0xc(%ebx)
80104084: 74 38 je 801040be <wait+0x8e>
acquire(&ptable.lock);
for(;;){
// Scan through table looking for exited children.
havekids = 0;
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
80104086: 83 c3 7c add $0x7c,%ebx
if(p->parent != curproc)
continue;
havekids = 1;
80104089: b8 01 00 00 00 mov $0x1,%eax
acquire(&ptable.lock);
for(;;){
// Scan through table looking for exited children.
havekids = 0;
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
8010408e: 81 fb 54 5c 11 80 cmp $0x80115c54,%ebx
80104094: 75 e5 jne 8010407b <wait+0x4b>
80104096: 8d 76 00 lea 0x0(%esi),%esi
80104099: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
return pid;
}
}
// No point waiting if we don't have any children.
if(!havekids || curproc->killed){
801040a0: 85 c0 test %eax,%eax
801040a2: 74 7a je 8010411e <wait+0xee>
801040a4: 8b 46 24 mov 0x24(%esi),%eax
801040a7: 85 c0 test %eax,%eax
801040a9: 75 73 jne 8010411e <wait+0xee>
release(&ptable.lock);
return -1;
}
// Wait for children to exit. (See wakeup1 call in proc_exit.)
sleep(curproc, &ptable.lock); //DOC: wait-sleep
801040ab: 83 ec 08 sub $0x8,%esp
801040ae: 68 20 3d 11 80 push $0x80113d20
801040b3: 56 push %esi
801040b4: e8 b7 fe ff ff call 80103f70 <sleep>
}
801040b9: 83 c4 10 add $0x10,%esp
801040bc: eb a0 jmp 8010405e <wait+0x2e>
continue;
havekids = 1;
if(p->state == ZOMBIE){
// Found one.
pid = p->pid;
kfree(p->kstack);
801040be: 83 ec 0c sub $0xc,%esp
801040c1: ff 73 08 pushl 0x8(%ebx)
if(p->parent != curproc)
continue;
havekids = 1;
if(p->state == ZOMBIE){
// Found one.
pid = p->pid;
801040c4: 8b 73 10 mov 0x10(%ebx),%esi
kfree(p->kstack);
801040c7: e8 84 e4 ff ff call 80102550 <kfree>
p->kstack = 0;
pgdir = p->pgdir;
801040cc: 8b 7b 04 mov 0x4(%ebx),%edi
p->pid = 0;
p->parent = 0;
p->name[0] = 0;
p->killed = 0;
p->state = UNUSED;
release(&ptable.lock);
801040cf: c7 04 24 20 3d 11 80 movl $0x80113d20,(%esp)
havekids = 1;
if(p->state == ZOMBIE){
// Found one.
pid = p->pid;
kfree(p->kstack);
p->kstack = 0;
801040d6: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
pgdir = p->pgdir;
p->pgdir = 0;
801040dd: c7 43 04 00 00 00 00 movl $0x0,0x4(%ebx)
p->pid = 0;
801040e4: c7 43 10 00 00 00 00 movl $0x0,0x10(%ebx)
p->parent = 0;
801040eb: c7 43 14 00 00 00 00 movl $0x0,0x14(%ebx)
p->name[0] = 0;
801040f2: c6 43 6c 00 movb $0x0,0x6c(%ebx)
p->killed = 0;
801040f6: c7 43 24 00 00 00 00 movl $0x0,0x24(%ebx)
p->state = UNUSED;
801040fd: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
release(&ptable.lock);
80104104: e8 17 05 00 00 call 80104620 <release>
freevm(pgdir);
80104109: 89 3c 24 mov %edi,(%esp)
8010410c: e8 1f 30 00 00 call 80107130 <freevm>
return pid;
80104111: 83 c4 10 add $0x10,%esp
}
// Wait for children to exit. (See wakeup1 call in proc_exit.)
sleep(curproc, &ptable.lock); //DOC: wait-sleep
}
}
80104114: 8d 65 f4 lea -0xc(%ebp),%esp
p->name[0] = 0;
p->killed = 0;
p->state = UNUSED;
release(&ptable.lock);
freevm(pgdir);
return pid;
80104117: 89 f0 mov %esi,%eax
}
// Wait for children to exit. (See wakeup1 call in proc_exit.)
sleep(curproc, &ptable.lock); //DOC: wait-sleep
}
}
80104119: 5b pop %ebx
8010411a: 5e pop %esi
8010411b: 5f pop %edi
8010411c: 5d pop %ebp
8010411d: c3 ret
}
}
// No point waiting if we don't have any children.
if(!havekids || curproc->killed){
release(&ptable.lock);
8010411e: 83 ec 0c sub $0xc,%esp
80104121: 68 20 3d 11 80 push $0x80113d20
80104126: e8 f5 04 00 00 call 80104620 <release>
return -1;
8010412b: 83 c4 10 add $0x10,%esp
}
// Wait for children to exit. (See wakeup1 call in proc_exit.)
sleep(curproc, &ptable.lock); //DOC: wait-sleep
}
}
8010412e: 8d 65 f4 lea -0xc(%ebp),%esp
}
// No point waiting if we don't have any children.
if(!havekids || curproc->killed){
release(&ptable.lock);
return -1;
80104131: b8 ff ff ff ff mov $0xffffffff,%eax
}
// Wait for children to exit. (See wakeup1 call in proc_exit.)
sleep(curproc, &ptable.lock); //DOC: wait-sleep
}
}
80104136: 5b pop %ebx
80104137: 5e pop %esi
80104138: 5f pop %edi
80104139: 5d pop %ebp
8010413a: c3 ret
8010413b: 90 nop
8010413c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104140 <wakeup>:
}
// Wake up all processes sleeping on chan.
void
wakeup(void *chan)
{
80104140: 55 push %ebp
80104141: 89 e5 mov %esp,%ebp
80104143: 53 push %ebx
80104144: 83 ec 10 sub $0x10,%esp
80104147: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&ptable.lock);
8010414a: 68 20 3d 11 80 push $0x80113d20
8010414f: e8 ac 03 00 00 call 80104500 <acquire>
80104154: 83 c4 10 add $0x10,%esp
static void
wakeup1(void *chan)
{
struct proc *p;
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++)
80104157: b8 54 3d 11 80 mov $0x80113d54,%eax
8010415c: eb 0c jmp 8010416a <wakeup+0x2a>
8010415e: 66 90 xchg %ax,%ax
80104160: 83 c0 7c add $0x7c,%eax
80104163: 3d 54 5c 11 80 cmp $0x80115c54,%eax
80104168: 74 1c je 80104186 <wakeup+0x46>
if(p->state == SLEEPING && p->chan == chan)
8010416a: 83 78 0c 02 cmpl $0x2,0xc(%eax)
8010416e: 75 f0 jne 80104160 <wakeup+0x20>
80104170: 3b 58 20 cmp 0x20(%eax),%ebx
80104173: 75 eb jne 80104160 <wakeup+0x20>
p->state = RUNNABLE;
80104175: 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++)
8010417c: 83 c0 7c add $0x7c,%eax
8010417f: 3d 54 5c 11 80 cmp $0x80115c54,%eax
80104184: 75 e4 jne 8010416a <wakeup+0x2a>
void
wakeup(void *chan)
{
acquire(&ptable.lock);
wakeup1(chan);
release(&ptable.lock);
80104186: c7 45 08 20 3d 11 80 movl $0x80113d20,0x8(%ebp)
}
8010418d: 8b 5d fc mov -0x4(%ebp),%ebx
80104190: c9 leave
void
wakeup(void *chan)
{
acquire(&ptable.lock);
wakeup1(chan);
release(&ptable.lock);
80104191: e9 8a 04 00 00 jmp 80104620 <release>
80104196: 8d 76 00 lea 0x0(%esi),%esi
80104199: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801041a0 <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)
{
801041a0: 55 push %ebp
801041a1: 89 e5 mov %esp,%ebp
801041a3: 53 push %ebx
801041a4: 83 ec 10 sub $0x10,%esp
801041a7: 8b 5d 08 mov 0x8(%ebp),%ebx
struct proc *p;
acquire(&ptable.lock);
801041aa: 68 20 3d 11 80 push $0x80113d20
801041af: e8 4c 03 00 00 call 80104500 <acquire>
801041b4: 83 c4 10 add $0x10,%esp
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
801041b7: b8 54 3d 11 80 mov $0x80113d54,%eax
801041bc: eb 0c jmp 801041ca <kill+0x2a>
801041be: 66 90 xchg %ax,%ax
801041c0: 83 c0 7c add $0x7c,%eax
801041c3: 3d 54 5c 11 80 cmp $0x80115c54,%eax
801041c8: 74 3e je 80104208 <kill+0x68>
if(p->pid == pid){
801041ca: 39 58 10 cmp %ebx,0x10(%eax)
801041cd: 75 f1 jne 801041c0 <kill+0x20>
p->killed = 1;
// Wake process from sleep if necessary.
if(p->state == SLEEPING)
801041cf: 83 78 0c 02 cmpl $0x2,0xc(%eax)
struct proc *p;
acquire(&ptable.lock);
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
if(p->pid == pid){
p->killed = 1;
801041d3: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax)
// Wake process from sleep if necessary.
if(p->state == SLEEPING)
801041da: 74 1c je 801041f8 <kill+0x58>
p->state = RUNNABLE;
release(&ptable.lock);
801041dc: 83 ec 0c sub $0xc,%esp
801041df: 68 20 3d 11 80 push $0x80113d20
801041e4: e8 37 04 00 00 call 80104620 <release>
return 0;
801041e9: 83 c4 10 add $0x10,%esp
801041ec: 31 c0 xor %eax,%eax
}
}
release(&ptable.lock);
return -1;
}
801041ee: 8b 5d fc mov -0x4(%ebp),%ebx
801041f1: c9 leave
801041f2: c3 ret
801041f3: 90 nop
801041f4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
if(p->pid == pid){
p->killed = 1;
// Wake process from sleep if necessary.
if(p->state == SLEEPING)
p->state = RUNNABLE;
801041f8: c7 40 0c 03 00 00 00 movl $0x3,0xc(%eax)
801041ff: eb db jmp 801041dc <kill+0x3c>
80104201: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
release(&ptable.lock);
return 0;
}
}
release(&ptable.lock);
80104208: 83 ec 0c sub $0xc,%esp
8010420b: 68 20 3d 11 80 push $0x80113d20
80104210: e8 0b 04 00 00 call 80104620 <release>
return -1;
80104215: 83 c4 10 add $0x10,%esp
80104218: b8 ff ff ff ff mov $0xffffffff,%eax
}
8010421d: 8b 5d fc mov -0x4(%ebp),%ebx
80104220: c9 leave
80104221: c3 ret
80104222: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104229: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104230 <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)
{
80104230: 55 push %ebp
80104231: 89 e5 mov %esp,%ebp
80104233: 57 push %edi
80104234: 56 push %esi
80104235: 53 push %ebx
80104236: 8d 75 e8 lea -0x18(%ebp),%esi
80104239: bb c0 3d 11 80 mov $0x80113dc0,%ebx
8010423e: 83 ec 3c sub $0x3c,%esp
80104241: eb 24 jmp 80104267 <procdump+0x37>
80104243: 90 nop
80104244: 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");
80104248: 83 ec 0c sub $0xc,%esp
8010424b: 68 f3 76 10 80 push $0x801076f3
80104250: e8 3b c5 ff ff call 80100790 <cprintf>
80104255: 83 c4 10 add $0x10,%esp
80104258: 83 c3 7c add $0x7c,%ebx
int i;
struct proc *p;
char *state;
uint pc[10];
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
8010425b: 81 fb c0 5c 11 80 cmp $0x80115cc0,%ebx
80104261: 0f 84 81 00 00 00 je 801042e8 <procdump+0xb8>
if(p->state == UNUSED)
80104267: 8b 43 a0 mov -0x60(%ebx),%eax
8010426a: 85 c0 test %eax,%eax
8010426c: 74 ea je 80104258 <procdump+0x28>
continue;
if(p->state >= 0 && p->state < NELEM(states) && states[p->state])
8010426e: 83 f8 05 cmp $0x5,%eax
state = states[p->state];
else
state = "???";
80104271: ba 00 7c 10 80 mov $0x80107c00,%edx
uint pc[10];
for(p = ptable.proc; p < &ptable.proc[NPROC]; p++){
if(p->state == UNUSED)
continue;
if(p->state >= 0 && p->state < NELEM(states) && states[p->state])
80104276: 77 11 ja 80104289 <procdump+0x59>
80104278: 8b 14 85 60 7c 10 80 mov -0x7fef83a0(,%eax,4),%edx
state = states[p->state];
else
state = "???";
8010427f: b8 00 7c 10 80 mov $0x80107c00,%eax
80104284: 85 d2 test %edx,%edx
80104286: 0f 44 d0 cmove %eax,%edx
cprintf("%d %s %s", p->pid, state, p->name);
80104289: 53 push %ebx
8010428a: 52 push %edx
8010428b: ff 73 a4 pushl -0x5c(%ebx)
8010428e: 68 04 7c 10 80 push $0x80107c04
80104293: e8 f8 c4 ff ff call 80100790 <cprintf>
if(p->state == SLEEPING){
80104298: 83 c4 10 add $0x10,%esp
8010429b: 83 7b a0 02 cmpl $0x2,-0x60(%ebx)
8010429f: 75 a7 jne 80104248 <procdump+0x18>
getcallerpcs((uint*)p->context->ebp+2, pc);
801042a1: 8d 45 c0 lea -0x40(%ebp),%eax
801042a4: 83 ec 08 sub $0x8,%esp
801042a7: 8d 7d c0 lea -0x40(%ebp),%edi
801042aa: 50 push %eax
801042ab: 8b 43 b0 mov -0x50(%ebx),%eax
801042ae: 8b 40 0c mov 0xc(%eax),%eax
801042b1: 83 c0 08 add $0x8,%eax
801042b4: 50 push %eax
801042b5: e8 66 01 00 00 call 80104420 <getcallerpcs>
801042ba: 83 c4 10 add $0x10,%esp
801042bd: 8d 76 00 lea 0x0(%esi),%esi
for(i=0; i<10 && pc[i] != 0; i++)
801042c0: 8b 17 mov (%edi),%edx
801042c2: 85 d2 test %edx,%edx
801042c4: 74 82 je 80104248 <procdump+0x18>
cprintf(" %p", pc[i]);
801042c6: 83 ec 08 sub $0x8,%esp
801042c9: 83 c7 04 add $0x4,%edi
801042cc: 52 push %edx
801042cd: 68 fc 75 10 80 push $0x801075fc
801042d2: e8 b9 c4 ff ff call 80100790 <cprintf>
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++)
801042d7: 83 c4 10 add $0x10,%esp
801042da: 39 f7 cmp %esi,%edi
801042dc: 75 e2 jne 801042c0 <procdump+0x90>
801042de: e9 65 ff ff ff jmp 80104248 <procdump+0x18>
801042e3: 90 nop
801042e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
cprintf(" %p", pc[i]);
}
cprintf("\n");
}
}
801042e8: 8d 65 f4 lea -0xc(%ebp),%esp
801042eb: 5b pop %ebx
801042ec: 5e pop %esi
801042ed: 5f pop %edi
801042ee: 5d pop %ebp
801042ef: c3 ret
801042f0 <initsleeplock>:
#include "spinlock.h"
#include "sleeplock.h"
void
initsleeplock(struct sleeplock *lk, char *name)
{
801042f0: 55 push %ebp
801042f1: 89 e5 mov %esp,%ebp
801042f3: 53 push %ebx
801042f4: 83 ec 0c sub $0xc,%esp
801042f7: 8b 5d 08 mov 0x8(%ebp),%ebx
initlock(&lk->lk, "sleep lock");
801042fa: 68 78 7c 10 80 push $0x80107c78
801042ff: 8d 43 04 lea 0x4(%ebx),%eax
80104302: 50 push %eax
80104303: e8 f8 00 00 00 call 80104400 <initlock>
lk->name = name;
80104308: 8b 45 0c mov 0xc(%ebp),%eax
lk->locked = 0;
8010430b: c7 03 00 00 00 00 movl $0x0,(%ebx)
lk->pid = 0;
}
80104311: 83 c4 10 add $0x10,%esp
initsleeplock(struct sleeplock *lk, char *name)
{
initlock(&lk->lk, "sleep lock");
lk->name = name;
lk->locked = 0;
lk->pid = 0;
80104314: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx)
void
initsleeplock(struct sleeplock *lk, char *name)
{
initlock(&lk->lk, "sleep lock");
lk->name = name;
8010431b: 89 43 38 mov %eax,0x38(%ebx)
lk->locked = 0;
lk->pid = 0;
}
8010431e: 8b 5d fc mov -0x4(%ebp),%ebx
80104321: c9 leave
80104322: c3 ret
80104323: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80104329: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104330 <acquiresleep>:
void
acquiresleep(struct sleeplock *lk)
{
80104330: 55 push %ebp
80104331: 89 e5 mov %esp,%ebp
80104333: 56 push %esi
80104334: 53 push %ebx
80104335: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&lk->lk);
80104338: 83 ec 0c sub $0xc,%esp
8010433b: 8d 73 04 lea 0x4(%ebx),%esi
8010433e: 56 push %esi
8010433f: e8 bc 01 00 00 call 80104500 <acquire>
while (lk->locked) {
80104344: 8b 13 mov (%ebx),%edx
80104346: 83 c4 10 add $0x10,%esp
80104349: 85 d2 test %edx,%edx
8010434b: 74 16 je 80104363 <acquiresleep+0x33>
8010434d: 8d 76 00 lea 0x0(%esi),%esi
sleep(lk, &lk->lk);
80104350: 83 ec 08 sub $0x8,%esp
80104353: 56 push %esi
80104354: 53 push %ebx
80104355: e8 16 fc ff ff call 80103f70 <sleep>
void
acquiresleep(struct sleeplock *lk)
{
acquire(&lk->lk);
while (lk->locked) {
8010435a: 8b 03 mov (%ebx),%eax
8010435c: 83 c4 10 add $0x10,%esp
8010435f: 85 c0 test %eax,%eax
80104361: 75 ed jne 80104350 <acquiresleep+0x20>
sleep(lk, &lk->lk);
}
lk->locked = 1;
80104363: c7 03 01 00 00 00 movl $0x1,(%ebx)
lk->pid = myproc()->pid;
80104369: e8 82 f6 ff ff call 801039f0 <myproc>
8010436e: 8b 40 10 mov 0x10(%eax),%eax
80104371: 89 43 3c mov %eax,0x3c(%ebx)
release(&lk->lk);
80104374: 89 75 08 mov %esi,0x8(%ebp)
}
80104377: 8d 65 f8 lea -0x8(%ebp),%esp
8010437a: 5b pop %ebx
8010437b: 5e pop %esi
8010437c: 5d pop %ebp
while (lk->locked) {
sleep(lk, &lk->lk);
}
lk->locked = 1;
lk->pid = myproc()->pid;
release(&lk->lk);
8010437d: e9 9e 02 00 00 jmp 80104620 <release>
80104382: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104389: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104390 <releasesleep>:
}
void
releasesleep(struct sleeplock *lk)
{
80104390: 55 push %ebp
80104391: 89 e5 mov %esp,%ebp
80104393: 56 push %esi
80104394: 53 push %ebx
80104395: 8b 5d 08 mov 0x8(%ebp),%ebx
acquire(&lk->lk);
80104398: 83 ec 0c sub $0xc,%esp
8010439b: 8d 73 04 lea 0x4(%ebx),%esi
8010439e: 56 push %esi
8010439f: e8 5c 01 00 00 call 80104500 <acquire>
lk->locked = 0;
801043a4: c7 03 00 00 00 00 movl $0x0,(%ebx)
lk->pid = 0;
801043aa: c7 43 3c 00 00 00 00 movl $0x0,0x3c(%ebx)
wakeup(lk);
801043b1: 89 1c 24 mov %ebx,(%esp)
801043b4: e8 87 fd ff ff call 80104140 <wakeup>
release(&lk->lk);
801043b9: 89 75 08 mov %esi,0x8(%ebp)
801043bc: 83 c4 10 add $0x10,%esp
}
801043bf: 8d 65 f8 lea -0x8(%ebp),%esp
801043c2: 5b pop %ebx
801043c3: 5e pop %esi
801043c4: 5d pop %ebp
{
acquire(&lk->lk);
lk->locked = 0;
lk->pid = 0;
wakeup(lk);
release(&lk->lk);
801043c5: e9 56 02 00 00 jmp 80104620 <release>
801043ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801043d0 <holdingsleep>:
}
int
holdingsleep(struct sleeplock *lk)
{
801043d0: 55 push %ebp
801043d1: 89 e5 mov %esp,%ebp
801043d3: 56 push %esi
801043d4: 53 push %ebx
801043d5: 8b 75 08 mov 0x8(%ebp),%esi
int r;
acquire(&lk->lk);
801043d8: 83 ec 0c sub $0xc,%esp
801043db: 8d 5e 04 lea 0x4(%esi),%ebx
801043de: 53 push %ebx
801043df: e8 1c 01 00 00 call 80104500 <acquire>
r = lk->locked;
801043e4: 8b 36 mov (%esi),%esi
release(&lk->lk);
801043e6: 89 1c 24 mov %ebx,(%esp)
801043e9: e8 32 02 00 00 call 80104620 <release>
return r;
}
801043ee: 8d 65 f8 lea -0x8(%ebp),%esp
801043f1: 89 f0 mov %esi,%eax
801043f3: 5b pop %ebx
801043f4: 5e pop %esi
801043f5: 5d pop %ebp
801043f6: c3 ret
801043f7: 66 90 xchg %ax,%ax
801043f9: 66 90 xchg %ax,%ax
801043fb: 66 90 xchg %ax,%ax
801043fd: 66 90 xchg %ax,%ax
801043ff: 90 nop
80104400 <initlock>:
#include "proc.h"
#include "spinlock.h"
void
initlock(struct spinlock *lk, char *name)
{
80104400: 55 push %ebp
80104401: 89 e5 mov %esp,%ebp
80104403: 8b 45 08 mov 0x8(%ebp),%eax
lk->name = name;
80104406: 8b 55 0c mov 0xc(%ebp),%edx
lk->locked = 0;
80104409: c7 00 00 00 00 00 movl $0x0,(%eax)
#include "spinlock.h"
void
initlock(struct spinlock *lk, char *name)
{
lk->name = name;
8010440f: 89 50 04 mov %edx,0x4(%eax)
lk->locked = 0;
lk->cpu = 0;
80104412: c7 40 08 00 00 00 00 movl $0x0,0x8(%eax)
}
80104419: 5d pop %ebp
8010441a: c3 ret
8010441b: 90 nop
8010441c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104420 <getcallerpcs>:
}
// Record the current call stack in pcs[] by following the %ebp chain.
void
getcallerpcs(void *v, uint pcs[])
{
80104420: 55 push %ebp
80104421: 89 e5 mov %esp,%ebp
80104423: 53 push %ebx
uint *ebp;
int i;
ebp = (uint*)v - 2;
80104424: 8b 45 08 mov 0x8(%ebp),%eax
}
// Record the current call stack in pcs[] by following the %ebp chain.
void
getcallerpcs(void *v, uint pcs[])
{
80104427: 8b 4d 0c mov 0xc(%ebp),%ecx
uint *ebp;
int i;
ebp = (uint*)v - 2;
8010442a: 8d 50 f8 lea -0x8(%eax),%edx
for(i = 0; i < 10; i++){
8010442d: 31 c0 xor %eax,%eax
8010442f: 90 nop
if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff)
80104430: 8d 9a 00 00 00 80 lea -0x80000000(%edx),%ebx
80104436: 81 fb fe ff ff 7f cmp $0x7ffffffe,%ebx
8010443c: 77 1a ja 80104458 <getcallerpcs+0x38>
break;
pcs[i] = ebp[1]; // saved %eip
8010443e: 8b 5a 04 mov 0x4(%edx),%ebx
80104441: 89 1c 81 mov %ebx,(%ecx,%eax,4)
{
uint *ebp;
int i;
ebp = (uint*)v - 2;
for(i = 0; i < 10; i++){
80104444: 83 c0 01 add $0x1,%eax
if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff)
break;
pcs[i] = ebp[1]; // saved %eip
ebp = (uint*)ebp[0]; // saved %ebp
80104447: 8b 12 mov (%edx),%edx
{
uint *ebp;
int i;
ebp = (uint*)v - 2;
for(i = 0; i < 10; i++){
80104449: 83 f8 0a cmp $0xa,%eax
8010444c: 75 e2 jne 80104430 <getcallerpcs+0x10>
pcs[i] = ebp[1]; // saved %eip
ebp = (uint*)ebp[0]; // saved %ebp
}
for(; i < 10; i++)
pcs[i] = 0;
}
8010444e: 5b pop %ebx
8010444f: 5d pop %ebp
80104450: c3 ret
80104451: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
break;
pcs[i] = ebp[1]; // saved %eip
ebp = (uint*)ebp[0]; // saved %ebp
}
for(; i < 10; i++)
pcs[i] = 0;
80104458: c7 04 81 00 00 00 00 movl $0x0,(%ecx,%eax,4)
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++)
8010445f: 83 c0 01 add $0x1,%eax
80104462: 83 f8 0a cmp $0xa,%eax
80104465: 74 e7 je 8010444e <getcallerpcs+0x2e>
pcs[i] = 0;
80104467: c7 04 81 00 00 00 00 movl $0x0,(%ecx,%eax,4)
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++)
8010446e: 83 c0 01 add $0x1,%eax
80104471: 83 f8 0a cmp $0xa,%eax
80104474: 75 e2 jne 80104458 <getcallerpcs+0x38>
80104476: eb d6 jmp 8010444e <getcallerpcs+0x2e>
80104478: 90 nop
80104479: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104480 <holding>:
}
// Check whether this cpu is holding the lock.
int
holding(struct spinlock *lock)
{
80104480: 55 push %ebp
80104481: 89 e5 mov %esp,%ebp
80104483: 53 push %ebx
80104484: 83 ec 04 sub $0x4,%esp
80104487: 8b 55 08 mov 0x8(%ebp),%edx
return lock->locked && lock->cpu == mycpu();
8010448a: 8b 02 mov (%edx),%eax
8010448c: 85 c0 test %eax,%eax
8010448e: 75 10 jne 801044a0 <holding+0x20>
}
80104490: 83 c4 04 add $0x4,%esp
80104493: 31 c0 xor %eax,%eax
80104495: 5b pop %ebx
80104496: 5d pop %ebp
80104497: c3 ret
80104498: 90 nop
80104499: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
// Check whether this cpu is holding the lock.
int
holding(struct spinlock *lock)
{
return lock->locked && lock->cpu == mycpu();
801044a0: 8b 5a 08 mov 0x8(%edx),%ebx
801044a3: e8 a8 f4 ff ff call 80103950 <mycpu>
801044a8: 39 c3 cmp %eax,%ebx
801044aa: 0f 94 c0 sete %al
}
801044ad: 83 c4 04 add $0x4,%esp
// Check whether this cpu is holding the lock.
int
holding(struct spinlock *lock)
{
return lock->locked && lock->cpu == mycpu();
801044b0: 0f b6 c0 movzbl %al,%eax
}
801044b3: 5b pop %ebx
801044b4: 5d pop %ebp
801044b5: c3 ret
801044b6: 8d 76 00 lea 0x0(%esi),%esi
801044b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801044c0 <pushcli>:
// it takes two popcli to undo two pushcli. Also, if interrupts
// are off, then pushcli, popcli leaves them off.
void
pushcli(void)
{
801044c0: 55 push %ebp
801044c1: 89 e5 mov %esp,%ebp
801044c3: 53 push %ebx
801044c4: 83 ec 04 sub $0x4,%esp
801044c7: 9c pushf
801044c8: 5b pop %ebx
}
static inline void
cli(void)
{
asm volatile("cli");
801044c9: fa cli
int eflags;
eflags = readeflags();
cli();
if(mycpu()->ncli == 0)
801044ca: e8 81 f4 ff ff call 80103950 <mycpu>
801044cf: 8b 80 a4 00 00 00 mov 0xa4(%eax),%eax
801044d5: 85 c0 test %eax,%eax
801044d7: 75 11 jne 801044ea <pushcli+0x2a>
mycpu()->intena = eflags & FL_IF;
801044d9: 81 e3 00 02 00 00 and $0x200,%ebx
801044df: e8 6c f4 ff ff call 80103950 <mycpu>
801044e4: 89 98 a8 00 00 00 mov %ebx,0xa8(%eax)
mycpu()->ncli += 1;
801044ea: e8 61 f4 ff ff call 80103950 <mycpu>
801044ef: 83 80 a4 00 00 00 01 addl $0x1,0xa4(%eax)
}
801044f6: 83 c4 04 add $0x4,%esp
801044f9: 5b pop %ebx
801044fa: 5d pop %ebp
801044fb: c3 ret
801044fc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104500 <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)
{
80104500: 55 push %ebp
80104501: 89 e5 mov %esp,%ebp
80104503: 56 push %esi
80104504: 53 push %ebx
pushcli(); // disable interrupts to avoid deadlock.
80104505: e8 b6 ff ff ff call 801044c0 <pushcli>
if(holding(lk))
8010450a: 8b 5d 08 mov 0x8(%ebp),%ebx
// Check whether this cpu is holding the lock.
int
holding(struct spinlock *lock)
{
return lock->locked && lock->cpu == mycpu();
8010450d: 8b 03 mov (%ebx),%eax
8010450f: 85 c0 test %eax,%eax
80104511: 75 7d jne 80104590 <acquire+0x90>
xchg(volatile uint *addr, uint newval)
{
uint result;
// The + in "+m" denotes a read-modify-write operand.
asm volatile("lock; xchgl %0, %1" :
80104513: ba 01 00 00 00 mov $0x1,%edx
80104518: eb 09 jmp 80104523 <acquire+0x23>
8010451a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80104520: 8b 5d 08 mov 0x8(%ebp),%ebx
80104523: 89 d0 mov %edx,%eax
80104525: f0 87 03 lock xchg %eax,(%ebx)
pushcli(); // disable interrupts to avoid deadlock.
if(holding(lk))
panic("acquire");
// The xchg is atomic.
while(xchg(&lk->locked, 1) != 0)
80104528: 85 c0 test %eax,%eax
8010452a: 75 f4 jne 80104520 <acquire+0x20>
;
// Tell the C compiler and the processor to not move loads or stores
// past this point, to ensure that the critical section's memory
// references happen after the lock is acquired.
__sync_synchronize();
8010452c: f0 83 0c 24 00 lock orl $0x0,(%esp)
// Record info about lock acquisition for debugging.
lk->cpu = mycpu();
80104531: 8b 5d 08 mov 0x8(%ebp),%ebx
80104534: e8 17 f4 ff ff call 80103950 <mycpu>
getcallerpcs(void *v, uint pcs[])
{
uint *ebp;
int i;
ebp = (uint*)v - 2;
80104539: 89 ea mov %ebp,%edx
// references happen after the lock is acquired.
__sync_synchronize();
// Record info about lock acquisition for debugging.
lk->cpu = mycpu();
getcallerpcs(&lk, lk->pcs);
8010453b: 8d 4b 0c lea 0xc(%ebx),%ecx
// past this point, to ensure that the critical section's memory
// references happen after the lock is acquired.
__sync_synchronize();
// Record info about lock acquisition for debugging.
lk->cpu = mycpu();
8010453e: 89 43 08 mov %eax,0x8(%ebx)
{
uint *ebp;
int i;
ebp = (uint*)v - 2;
for(i = 0; i < 10; i++){
80104541: 31 c0 xor %eax,%eax
80104543: 90 nop
80104544: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff)
80104548: 8d 9a 00 00 00 80 lea -0x80000000(%edx),%ebx
8010454e: 81 fb fe ff ff 7f cmp $0x7ffffffe,%ebx
80104554: 77 1a ja 80104570 <acquire+0x70>
break;
pcs[i] = ebp[1]; // saved %eip
80104556: 8b 5a 04 mov 0x4(%edx),%ebx
80104559: 89 1c 81 mov %ebx,(%ecx,%eax,4)
{
uint *ebp;
int i;
ebp = (uint*)v - 2;
for(i = 0; i < 10; i++){
8010455c: 83 c0 01 add $0x1,%eax
if(ebp == 0 || ebp < (uint*)KERNBASE || ebp == (uint*)0xffffffff)
break;
pcs[i] = ebp[1]; // saved %eip
ebp = (uint*)ebp[0]; // saved %ebp
8010455f: 8b 12 mov (%edx),%edx
{
uint *ebp;
int i;
ebp = (uint*)v - 2;
for(i = 0; i < 10; i++){
80104561: 83 f8 0a cmp $0xa,%eax
80104564: 75 e2 jne 80104548 <acquire+0x48>
__sync_synchronize();
// Record info about lock acquisition for debugging.
lk->cpu = mycpu();
getcallerpcs(&lk, lk->pcs);
}
80104566: 8d 65 f8 lea -0x8(%ebp),%esp
80104569: 5b pop %ebx
8010456a: 5e pop %esi
8010456b: 5d pop %ebp
8010456c: c3 ret
8010456d: 8d 76 00 lea 0x0(%esi),%esi
break;
pcs[i] = ebp[1]; // saved %eip
ebp = (uint*)ebp[0]; // saved %ebp
}
for(; i < 10; i++)
pcs[i] = 0;
80104570: c7 04 81 00 00 00 00 movl $0x0,(%ecx,%eax,4)
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++)
80104577: 83 c0 01 add $0x1,%eax
8010457a: 83 f8 0a cmp $0xa,%eax
8010457d: 74 e7 je 80104566 <acquire+0x66>
pcs[i] = 0;
8010457f: c7 04 81 00 00 00 00 movl $0x0,(%ecx,%eax,4)
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++)
80104586: 83 c0 01 add $0x1,%eax
80104589: 83 f8 0a cmp $0xa,%eax
8010458c: 75 e2 jne 80104570 <acquire+0x70>
8010458e: eb d6 jmp 80104566 <acquire+0x66>
// Check whether this cpu is holding the lock.
int
holding(struct spinlock *lock)
{
return lock->locked && lock->cpu == mycpu();
80104590: 8b 73 08 mov 0x8(%ebx),%esi
80104593: e8 b8 f3 ff ff call 80103950 <mycpu>
80104598: 39 c6 cmp %eax,%esi
8010459a: 0f 85 73 ff ff ff jne 80104513 <acquire+0x13>
void
acquire(struct spinlock *lk)
{
pushcli(); // disable interrupts to avoid deadlock.
if(holding(lk))
panic("acquire");
801045a0: 83 ec 0c sub $0xc,%esp
801045a3: 68 83 7c 10 80 push $0x80107c83
801045a8: e8 f3 be ff ff call 801004a0 <panic>
801045ad: 8d 76 00 lea 0x0(%esi),%esi
801045b0 <popcli>:
mycpu()->ncli += 1;
}
void
popcli(void)
{
801045b0: 55 push %ebp
801045b1: 89 e5 mov %esp,%ebp
801045b3: 83 ec 08 sub $0x8,%esp
static inline uint
readeflags(void)
{
uint eflags;
asm volatile("pushfl; popl %0" : "=r" (eflags));
801045b6: 9c pushf
801045b7: 58 pop %eax
if(readeflags()&FL_IF)
801045b8: f6 c4 02 test $0x2,%ah
801045bb: 75 52 jne 8010460f <popcli+0x5f>
panic("popcli - interruptible");
if(--mycpu()->ncli < 0)
801045bd: e8 8e f3 ff ff call 80103950 <mycpu>
801045c2: 8b 88 a4 00 00 00 mov 0xa4(%eax),%ecx
801045c8: 8d 51 ff lea -0x1(%ecx),%edx
801045cb: 85 d2 test %edx,%edx
801045cd: 89 90 a4 00 00 00 mov %edx,0xa4(%eax)
801045d3: 78 2d js 80104602 <popcli+0x52>
panic("popcli");
if(mycpu()->ncli == 0 && mycpu()->intena)
801045d5: e8 76 f3 ff ff call 80103950 <mycpu>
801045da: 8b 90 a4 00 00 00 mov 0xa4(%eax),%edx
801045e0: 85 d2 test %edx,%edx
801045e2: 74 0c je 801045f0 <popcli+0x40>
sti();
}
801045e4: c9 leave
801045e5: c3 ret
801045e6: 8d 76 00 lea 0x0(%esi),%esi
801045e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
{
if(readeflags()&FL_IF)
panic("popcli - interruptible");
if(--mycpu()->ncli < 0)
panic("popcli");
if(mycpu()->ncli == 0 && mycpu()->intena)
801045f0: e8 5b f3 ff ff call 80103950 <mycpu>
801045f5: 8b 80 a8 00 00 00 mov 0xa8(%eax),%eax
801045fb: 85 c0 test %eax,%eax
801045fd: 74 e5 je 801045e4 <popcli+0x34>
}
static inline void
sti(void)
{
asm volatile("sti");
801045ff: fb sti
sti();
}
80104600: c9 leave
80104601: c3 ret
popcli(void)
{
if(readeflags()&FL_IF)
panic("popcli - interruptible");
if(--mycpu()->ncli < 0)
panic("popcli");
80104602: 83 ec 0c sub $0xc,%esp
80104605: 68 a2 7c 10 80 push $0x80107ca2
8010460a: e8 91 be ff ff call 801004a0 <panic>
void
popcli(void)
{
if(readeflags()&FL_IF)
panic("popcli - interruptible");
8010460f: 83 ec 0c sub $0xc,%esp
80104612: 68 8b 7c 10 80 push $0x80107c8b
80104617: e8 84 be ff ff call 801004a0 <panic>
8010461c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104620 <release>:
}
// Release the lock.
void
release(struct spinlock *lk)
{
80104620: 55 push %ebp
80104621: 89 e5 mov %esp,%ebp
80104623: 56 push %esi
80104624: 53 push %ebx
80104625: 8b 5d 08 mov 0x8(%ebp),%ebx
// Check whether this cpu is holding the lock.
int
holding(struct spinlock *lock)
{
return lock->locked && lock->cpu == mycpu();
80104628: 8b 03 mov (%ebx),%eax
8010462a: 85 c0 test %eax,%eax
8010462c: 75 12 jne 80104640 <release+0x20>
// Release the lock.
void
release(struct spinlock *lk)
{
if(!holding(lk))
panic("release");
8010462e: 83 ec 0c sub $0xc,%esp
80104631: 68 a9 7c 10 80 push $0x80107ca9
80104636: e8 65 be ff ff call 801004a0 <panic>
8010463b: 90 nop
8010463c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
// Check whether this cpu is holding the lock.
int
holding(struct spinlock *lock)
{
return lock->locked && lock->cpu == mycpu();
80104640: 8b 73 08 mov 0x8(%ebx),%esi
80104643: e8 08 f3 ff ff call 80103950 <mycpu>
80104648: 39 c6 cmp %eax,%esi
8010464a: 75 e2 jne 8010462e <release+0xe>
release(struct spinlock *lk)
{
if(!holding(lk))
panic("release");
lk->pcs[0] = 0;
8010464c: c7 43 0c 00 00 00 00 movl $0x0,0xc(%ebx)
lk->cpu = 0;
80104653: c7 43 08 00 00 00 00 movl $0x0,0x8(%ebx)
// Tell the C compiler and the processor to not move loads or stores
// past this point, to ensure that all the stores in the critical
// section are visible to other cores before the lock is released.
// Both the C compiler and the hardware may re-order loads and
// stores; __sync_synchronize() tells them both not to.
__sync_synchronize();
8010465a: f0 83 0c 24 00 lock orl $0x0,(%esp)
// Release the lock, equivalent to lk->locked = 0.
// This code can't use a C assignment, since it might
// not be atomic. A real OS would use C atomics here.
asm volatile("movl $0, %0" : "+m" (lk->locked) : );
8010465f: c7 03 00 00 00 00 movl $0x0,(%ebx)
popcli();
}
80104665: 8d 65 f8 lea -0x8(%ebp),%esp
80104668: 5b pop %ebx
80104669: 5e pop %esi
8010466a: 5d pop %ebp
// Release the lock, equivalent to lk->locked = 0.
// This code can't use a C assignment, since it might
// not be atomic. A real OS would use C atomics here.
asm volatile("movl $0, %0" : "+m" (lk->locked) : );
popcli();
8010466b: e9 40 ff ff ff jmp 801045b0 <popcli>
80104670 <memset>:
#include "types.h"
#include "x86.h"
void*
memset(void *dst, int c, uint n)
{
80104670: 55 push %ebp
80104671: 89 e5 mov %esp,%ebp
80104673: 57 push %edi
80104674: 53 push %ebx
80104675: 8b 55 08 mov 0x8(%ebp),%edx
80104678: 8b 4d 10 mov 0x10(%ebp),%ecx
if ((int)dst%4 == 0 && n%4 == 0){
8010467b: f6 c2 03 test $0x3,%dl
8010467e: 75 05 jne 80104685 <memset+0x15>
80104680: f6 c1 03 test $0x3,%cl
80104683: 74 13 je 80104698 <memset+0x28>
}
static inline void
stosb(void *addr, int data, int cnt)
{
asm volatile("cld; rep stosb" :
80104685: 89 d7 mov %edx,%edi
80104687: 8b 45 0c mov 0xc(%ebp),%eax
8010468a: fc cld
8010468b: 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;
}
8010468d: 5b pop %ebx
8010468e: 89 d0 mov %edx,%eax
80104690: 5f pop %edi
80104691: 5d pop %ebp
80104692: c3 ret
80104693: 90 nop
80104694: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
void*
memset(void *dst, int c, uint n)
{
if ((int)dst%4 == 0 && n%4 == 0){
c &= 0xFF;
80104698: 0f b6 7d 0c movzbl 0xc(%ebp),%edi
}
static inline void
stosl(void *addr, int data, int cnt)
{
asm volatile("cld; rep stosl" :
8010469c: c1 e9 02 shr $0x2,%ecx
8010469f: 89 fb mov %edi,%ebx
801046a1: 89 f8 mov %edi,%eax
801046a3: c1 e3 18 shl $0x18,%ebx
801046a6: c1 e0 10 shl $0x10,%eax
801046a9: 09 d8 or %ebx,%eax
801046ab: 09 f8 or %edi,%eax
801046ad: c1 e7 08 shl $0x8,%edi
801046b0: 09 f8 or %edi,%eax
801046b2: 89 d7 mov %edx,%edi
801046b4: fc cld
801046b5: f3 ab rep stos %eax,%es:(%edi)
stosl(dst, (c<<24)|(c<<16)|(c<<8)|c, n/4);
} else
stosb(dst, c, n);
return dst;
}
801046b7: 5b pop %ebx
801046b8: 89 d0 mov %edx,%eax
801046ba: 5f pop %edi
801046bb: 5d pop %ebp
801046bc: c3 ret
801046bd: 8d 76 00 lea 0x0(%esi),%esi
801046c0 <memcmp>:
int
memcmp(const void *v1, const void *v2, uint n)
{
801046c0: 55 push %ebp
801046c1: 89 e5 mov %esp,%ebp
801046c3: 57 push %edi
801046c4: 56 push %esi
801046c5: 8b 45 10 mov 0x10(%ebp),%eax
801046c8: 53 push %ebx
801046c9: 8b 75 0c mov 0xc(%ebp),%esi
801046cc: 8b 5d 08 mov 0x8(%ebp),%ebx
const uchar *s1, *s2;
s1 = v1;
s2 = v2;
while(n-- > 0){
801046cf: 85 c0 test %eax,%eax
801046d1: 74 29 je 801046fc <memcmp+0x3c>
if(*s1 != *s2)
801046d3: 0f b6 13 movzbl (%ebx),%edx
801046d6: 0f b6 0e movzbl (%esi),%ecx
801046d9: 38 d1 cmp %dl,%cl
801046db: 75 2b jne 80104708 <memcmp+0x48>
801046dd: 8d 78 ff lea -0x1(%eax),%edi
801046e0: 31 c0 xor %eax,%eax
801046e2: eb 14 jmp 801046f8 <memcmp+0x38>
801046e4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801046e8: 0f b6 54 03 01 movzbl 0x1(%ebx,%eax,1),%edx
801046ed: 83 c0 01 add $0x1,%eax
801046f0: 0f b6 0c 06 movzbl (%esi,%eax,1),%ecx
801046f4: 38 ca cmp %cl,%dl
801046f6: 75 10 jne 80104708 <memcmp+0x48>
{
const uchar *s1, *s2;
s1 = v1;
s2 = v2;
while(n-- > 0){
801046f8: 39 f8 cmp %edi,%eax
801046fa: 75 ec jne 801046e8 <memcmp+0x28>
return *s1 - *s2;
s1++, s2++;
}
return 0;
}
801046fc: 5b pop %ebx
if(*s1 != *s2)
return *s1 - *s2;
s1++, s2++;
}
return 0;
801046fd: 31 c0 xor %eax,%eax
}
801046ff: 5e pop %esi
80104700: 5f pop %edi
80104701: 5d pop %ebp
80104702: c3 ret
80104703: 90 nop
80104704: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
s1 = v1;
s2 = v2;
while(n-- > 0){
if(*s1 != *s2)
return *s1 - *s2;
80104708: 0f b6 c2 movzbl %dl,%eax
s1++, s2++;
}
return 0;
}
8010470b: 5b pop %ebx
s1 = v1;
s2 = v2;
while(n-- > 0){
if(*s1 != *s2)
return *s1 - *s2;
8010470c: 29 c8 sub %ecx,%eax
s1++, s2++;
}
return 0;
}
8010470e: 5e pop %esi
8010470f: 5f pop %edi
80104710: 5d pop %ebp
80104711: c3 ret
80104712: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104719: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104720 <memmove>:
void*
memmove(void *dst, const void *src, uint n)
{
80104720: 55 push %ebp
80104721: 89 e5 mov %esp,%ebp
80104723: 56 push %esi
80104724: 53 push %ebx
80104725: 8b 45 08 mov 0x8(%ebp),%eax
80104728: 8b 75 0c mov 0xc(%ebp),%esi
8010472b: 8b 5d 10 mov 0x10(%ebp),%ebx
const char *s;
char *d;
s = src;
d = dst;
if(s < d && s + n > d){
8010472e: 39 c6 cmp %eax,%esi
80104730: 73 2e jae 80104760 <memmove+0x40>
80104732: 8d 0c 1e lea (%esi,%ebx,1),%ecx
80104735: 39 c8 cmp %ecx,%eax
80104737: 73 27 jae 80104760 <memmove+0x40>
s += n;
d += n;
while(n-- > 0)
80104739: 85 db test %ebx,%ebx
8010473b: 8d 53 ff lea -0x1(%ebx),%edx
8010473e: 74 17 je 80104757 <memmove+0x37>
*--d = *--s;
80104740: 29 d9 sub %ebx,%ecx
80104742: 89 cb mov %ecx,%ebx
80104744: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104748: 0f b6 0c 13 movzbl (%ebx,%edx,1),%ecx
8010474c: 88 0c 10 mov %cl,(%eax,%edx,1)
s = src;
d = dst;
if(s < d && s + n > d){
s += n;
d += n;
while(n-- > 0)
8010474f: 83 ea 01 sub $0x1,%edx
80104752: 83 fa ff cmp $0xffffffff,%edx
80104755: 75 f1 jne 80104748 <memmove+0x28>
} else
while(n-- > 0)
*d++ = *s++;
return dst;
}
80104757: 5b pop %ebx
80104758: 5e pop %esi
80104759: 5d pop %ebp
8010475a: c3 ret
8010475b: 90 nop
8010475c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
s += n;
d += n;
while(n-- > 0)
*--d = *--s;
} else
while(n-- > 0)
80104760: 31 d2 xor %edx,%edx
80104762: 85 db test %ebx,%ebx
80104764: 74 f1 je 80104757 <memmove+0x37>
80104766: 8d 76 00 lea 0x0(%esi),%esi
80104769: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
*d++ = *s++;
80104770: 0f b6 0c 16 movzbl (%esi,%edx,1),%ecx
80104774: 88 0c 10 mov %cl,(%eax,%edx,1)
80104777: 83 c2 01 add $0x1,%edx
s += n;
d += n;
while(n-- > 0)
*--d = *--s;
} else
while(n-- > 0)
8010477a: 39 d3 cmp %edx,%ebx
8010477c: 75 f2 jne 80104770 <memmove+0x50>
*d++ = *s++;
return dst;
}
8010477e: 5b pop %ebx
8010477f: 5e pop %esi
80104780: 5d pop %ebp
80104781: c3 ret
80104782: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104789: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104790 <memcpy>:
// memcpy exists to placate GCC. Use memmove.
void*
memcpy(void *dst, const void *src, uint n)
{
80104790: 55 push %ebp
80104791: 89 e5 mov %esp,%ebp
return memmove(dst, src, n);
}
80104793: 5d pop %ebp
// memcpy exists to placate GCC. Use memmove.
void*
memcpy(void *dst, const void *src, uint n)
{
return memmove(dst, src, n);
80104794: eb 8a jmp 80104720 <memmove>
80104796: 8d 76 00 lea 0x0(%esi),%esi
80104799: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801047a0 <strncmp>:
}
int
strncmp(const char *p, const char *q, uint n)
{
801047a0: 55 push %ebp
801047a1: 89 e5 mov %esp,%ebp
801047a3: 57 push %edi
801047a4: 56 push %esi
801047a5: 8b 4d 10 mov 0x10(%ebp),%ecx
801047a8: 53 push %ebx
801047a9: 8b 7d 08 mov 0x8(%ebp),%edi
801047ac: 8b 75 0c mov 0xc(%ebp),%esi
while(n > 0 && *p && *p == *q)
801047af: 85 c9 test %ecx,%ecx
801047b1: 74 37 je 801047ea <strncmp+0x4a>
801047b3: 0f b6 17 movzbl (%edi),%edx
801047b6: 0f b6 1e movzbl (%esi),%ebx
801047b9: 84 d2 test %dl,%dl
801047bb: 74 3f je 801047fc <strncmp+0x5c>
801047bd: 38 d3 cmp %dl,%bl
801047bf: 75 3b jne 801047fc <strncmp+0x5c>
801047c1: 8d 47 01 lea 0x1(%edi),%eax
801047c4: 01 cf add %ecx,%edi
801047c6: eb 1b jmp 801047e3 <strncmp+0x43>
801047c8: 90 nop
801047c9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801047d0: 0f b6 10 movzbl (%eax),%edx
801047d3: 84 d2 test %dl,%dl
801047d5: 74 21 je 801047f8 <strncmp+0x58>
801047d7: 0f b6 19 movzbl (%ecx),%ebx
801047da: 83 c0 01 add $0x1,%eax
801047dd: 89 ce mov %ecx,%esi
801047df: 38 da cmp %bl,%dl
801047e1: 75 19 jne 801047fc <strncmp+0x5c>
801047e3: 39 c7 cmp %eax,%edi
n--, p++, q++;
801047e5: 8d 4e 01 lea 0x1(%esi),%ecx
}
int
strncmp(const char *p, const char *q, uint n)
{
while(n > 0 && *p && *p == *q)
801047e8: 75 e6 jne 801047d0 <strncmp+0x30>
n--, p++, q++;
if(n == 0)
return 0;
return (uchar)*p - (uchar)*q;
}
801047ea: 5b pop %ebx
strncmp(const char *p, const char *q, uint n)
{
while(n > 0 && *p && *p == *q)
n--, p++, q++;
if(n == 0)
return 0;
801047eb: 31 c0 xor %eax,%eax
return (uchar)*p - (uchar)*q;
}
801047ed: 5e pop %esi
801047ee: 5f pop %edi
801047ef: 5d pop %ebp
801047f0: c3 ret
801047f1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801047f8: 0f b6 5e 01 movzbl 0x1(%esi),%ebx
{
while(n > 0 && *p && *p == *q)
n--, p++, q++;
if(n == 0)
return 0;
return (uchar)*p - (uchar)*q;
801047fc: 0f b6 c2 movzbl %dl,%eax
801047ff: 29 d8 sub %ebx,%eax
}
80104801: 5b pop %ebx
80104802: 5e pop %esi
80104803: 5f pop %edi
80104804: 5d pop %ebp
80104805: c3 ret
80104806: 8d 76 00 lea 0x0(%esi),%esi
80104809: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104810 <strncpy>:
char*
strncpy(char *s, const char *t, int n)
{
80104810: 55 push %ebp
80104811: 89 e5 mov %esp,%ebp
80104813: 56 push %esi
80104814: 53 push %ebx
80104815: 8b 45 08 mov 0x8(%ebp),%eax
80104818: 8b 5d 0c mov 0xc(%ebp),%ebx
8010481b: 8b 4d 10 mov 0x10(%ebp),%ecx
char *os;
os = s;
while(n-- > 0 && (*s++ = *t++) != 0)
8010481e: 89 c2 mov %eax,%edx
80104820: eb 19 jmp 8010483b <strncpy+0x2b>
80104822: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80104828: 83 c3 01 add $0x1,%ebx
8010482b: 0f b6 4b ff movzbl -0x1(%ebx),%ecx
8010482f: 83 c2 01 add $0x1,%edx
80104832: 84 c9 test %cl,%cl
80104834: 88 4a ff mov %cl,-0x1(%edx)
80104837: 74 09 je 80104842 <strncpy+0x32>
80104839: 89 f1 mov %esi,%ecx
8010483b: 85 c9 test %ecx,%ecx
8010483d: 8d 71 ff lea -0x1(%ecx),%esi
80104840: 7f e6 jg 80104828 <strncpy+0x18>
;
while(n-- > 0)
80104842: 31 c9 xor %ecx,%ecx
80104844: 85 f6 test %esi,%esi
80104846: 7e 17 jle 8010485f <strncpy+0x4f>
80104848: 90 nop
80104849: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
*s++ = 0;
80104850: c6 04 0a 00 movb $0x0,(%edx,%ecx,1)
80104854: 89 f3 mov %esi,%ebx
80104856: 83 c1 01 add $0x1,%ecx
80104859: 29 cb sub %ecx,%ebx
char *os;
os = s;
while(n-- > 0 && (*s++ = *t++) != 0)
;
while(n-- > 0)
8010485b: 85 db test %ebx,%ebx
8010485d: 7f f1 jg 80104850 <strncpy+0x40>
*s++ = 0;
return os;
}
8010485f: 5b pop %ebx
80104860: 5e pop %esi
80104861: 5d pop %ebp
80104862: c3 ret
80104863: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80104869: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104870 <safestrcpy>:
// Like strncpy but guaranteed to NUL-terminate.
char*
safestrcpy(char *s, const char *t, int n)
{
80104870: 55 push %ebp
80104871: 89 e5 mov %esp,%ebp
80104873: 56 push %esi
80104874: 53 push %ebx
80104875: 8b 4d 10 mov 0x10(%ebp),%ecx
80104878: 8b 45 08 mov 0x8(%ebp),%eax
8010487b: 8b 55 0c mov 0xc(%ebp),%edx
char *os;
os = s;
if(n <= 0)
8010487e: 85 c9 test %ecx,%ecx
80104880: 7e 26 jle 801048a8 <safestrcpy+0x38>
80104882: 8d 74 0a ff lea -0x1(%edx,%ecx,1),%esi
80104886: 89 c1 mov %eax,%ecx
80104888: eb 17 jmp 801048a1 <safestrcpy+0x31>
8010488a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
return os;
while(--n > 0 && (*s++ = *t++) != 0)
80104890: 83 c2 01 add $0x1,%edx
80104893: 0f b6 5a ff movzbl -0x1(%edx),%ebx
80104897: 83 c1 01 add $0x1,%ecx
8010489a: 84 db test %bl,%bl
8010489c: 88 59 ff mov %bl,-0x1(%ecx)
8010489f: 74 04 je 801048a5 <safestrcpy+0x35>
801048a1: 39 f2 cmp %esi,%edx
801048a3: 75 eb jne 80104890 <safestrcpy+0x20>
;
*s = 0;
801048a5: c6 01 00 movb $0x0,(%ecx)
return os;
}
801048a8: 5b pop %ebx
801048a9: 5e pop %esi
801048aa: 5d pop %ebp
801048ab: c3 ret
801048ac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801048b0 <strlen>:
int
strlen(const char *s)
{
801048b0: 55 push %ebp
int n;
for(n = 0; s[n]; n++)
801048b1: 31 c0 xor %eax,%eax
return os;
}
int
strlen(const char *s)
{
801048b3: 89 e5 mov %esp,%ebp
801048b5: 8b 55 08 mov 0x8(%ebp),%edx
int n;
for(n = 0; s[n]; n++)
801048b8: 80 3a 00 cmpb $0x0,(%edx)
801048bb: 74 0c je 801048c9 <strlen+0x19>
801048bd: 8d 76 00 lea 0x0(%esi),%esi
801048c0: 83 c0 01 add $0x1,%eax
801048c3: 80 3c 02 00 cmpb $0x0,(%edx,%eax,1)
801048c7: 75 f7 jne 801048c0 <strlen+0x10>
;
return n;
}
801048c9: 5d pop %ebp
801048ca: c3 ret
801048cb <swtch>:
# a struct context, and save its address in *old.
# Switch stacks to new and pop previously-saved registers.
.globl swtch
swtch:
movl 4(%esp), %eax
801048cb: 8b 44 24 04 mov 0x4(%esp),%eax
movl 8(%esp), %edx
801048cf: 8b 54 24 08 mov 0x8(%esp),%edx
# Save old callee-save registers
pushl %ebp
801048d3: 55 push %ebp
pushl %ebx
801048d4: 53 push %ebx
pushl %esi
801048d5: 56 push %esi
pushl %edi
801048d6: 57 push %edi
# Switch stacks
movl %esp, (%eax)
801048d7: 89 20 mov %esp,(%eax)
movl %edx, %esp
801048d9: 89 d4 mov %edx,%esp
# Load new callee-save registers
popl %edi
801048db: 5f pop %edi
popl %esi
801048dc: 5e pop %esi
popl %ebx
801048dd: 5b pop %ebx
popl %ebp
801048de: 5d pop %ebp
ret
801048df: c3 ret
801048e0 <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)
{
801048e0: 55 push %ebp
801048e1: 89 e5 mov %esp,%ebp
801048e3: 53 push %ebx
801048e4: 83 ec 04 sub $0x4,%esp
801048e7: 8b 5d 08 mov 0x8(%ebp),%ebx
struct proc *curproc = myproc();
801048ea: e8 01 f1 ff ff call 801039f0 <myproc>
if(addr >= curproc->sz || addr+4 > curproc->sz)
801048ef: 8b 00 mov (%eax),%eax
801048f1: 39 d8 cmp %ebx,%eax
801048f3: 76 1b jbe 80104910 <fetchint+0x30>
801048f5: 8d 53 04 lea 0x4(%ebx),%edx
801048f8: 39 d0 cmp %edx,%eax
801048fa: 72 14 jb 80104910 <fetchint+0x30>
return -1;
*ip = *(int*)(addr);
801048fc: 8b 45 0c mov 0xc(%ebp),%eax
801048ff: 8b 13 mov (%ebx),%edx
80104901: 89 10 mov %edx,(%eax)
return 0;
80104903: 31 c0 xor %eax,%eax
}
80104905: 83 c4 04 add $0x4,%esp
80104908: 5b pop %ebx
80104909: 5d pop %ebp
8010490a: c3 ret
8010490b: 90 nop
8010490c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
fetchint(uint addr, int *ip)
{
struct proc *curproc = myproc();
if(addr >= curproc->sz || addr+4 > curproc->sz)
return -1;
80104910: b8 ff ff ff ff mov $0xffffffff,%eax
80104915: eb ee jmp 80104905 <fetchint+0x25>
80104917: 89 f6 mov %esi,%esi
80104919: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104920 <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)
{
80104920: 55 push %ebp
80104921: 89 e5 mov %esp,%ebp
80104923: 53 push %ebx
80104924: 83 ec 04 sub $0x4,%esp
80104927: 8b 5d 08 mov 0x8(%ebp),%ebx
char *s, *ep;
struct proc *curproc = myproc();
8010492a: e8 c1 f0 ff ff call 801039f0 <myproc>
if(addr >= curproc->sz)
8010492f: 39 18 cmp %ebx,(%eax)
80104931: 76 29 jbe 8010495c <fetchstr+0x3c>
return -1;
*pp = (char*)addr;
80104933: 8b 4d 0c mov 0xc(%ebp),%ecx
80104936: 89 da mov %ebx,%edx
80104938: 89 19 mov %ebx,(%ecx)
ep = (char*)curproc->sz;
8010493a: 8b 00 mov (%eax),%eax
for(s = *pp; s < ep; s++){
8010493c: 39 c3 cmp %eax,%ebx
8010493e: 73 1c jae 8010495c <fetchstr+0x3c>
if(*s == 0)
80104940: 80 3b 00 cmpb $0x0,(%ebx)
80104943: 75 10 jne 80104955 <fetchstr+0x35>
80104945: eb 29 jmp 80104970 <fetchstr+0x50>
80104947: 89 f6 mov %esi,%esi
80104949: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104950: 80 3a 00 cmpb $0x0,(%edx)
80104953: 74 1b je 80104970 <fetchstr+0x50>
if(addr >= curproc->sz)
return -1;
*pp = (char*)addr;
ep = (char*)curproc->sz;
for(s = *pp; s < ep; s++){
80104955: 83 c2 01 add $0x1,%edx
80104958: 39 d0 cmp %edx,%eax
8010495a: 77 f4 ja 80104950 <fetchstr+0x30>
if(*s == 0)
return s - *pp;
}
return -1;
}
8010495c: 83 c4 04 add $0x4,%esp
{
char *s, *ep;
struct proc *curproc = myproc();
if(addr >= curproc->sz)
return -1;
8010495f: b8 ff ff ff ff mov $0xffffffff,%eax
for(s = *pp; s < ep; s++){
if(*s == 0)
return s - *pp;
}
return -1;
}
80104964: 5b pop %ebx
80104965: 5d pop %ebp
80104966: c3 ret
80104967: 89 f6 mov %esi,%esi
80104969: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104970: 83 c4 04 add $0x4,%esp
return -1;
*pp = (char*)addr;
ep = (char*)curproc->sz;
for(s = *pp; s < ep; s++){
if(*s == 0)
return s - *pp;
80104973: 89 d0 mov %edx,%eax
80104975: 29 d8 sub %ebx,%eax
}
return -1;
}
80104977: 5b pop %ebx
80104978: 5d pop %ebp
80104979: c3 ret
8010497a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80104980 <argint>:
// Fetch the nth 32-bit system call argument.
int
argint(int n, int *ip)
{
80104980: 55 push %ebp
80104981: 89 e5 mov %esp,%ebp
80104983: 56 push %esi
80104984: 53 push %ebx
return fetchint((myproc()->tf->esp) + 4 + 4*n, ip);
80104985: e8 66 f0 ff ff call 801039f0 <myproc>
8010498a: 8b 40 18 mov 0x18(%eax),%eax
8010498d: 8b 55 08 mov 0x8(%ebp),%edx
80104990: 8b 40 44 mov 0x44(%eax),%eax
80104993: 8d 1c 90 lea (%eax,%edx,4),%ebx
// Fetch the int at addr from the current process.
int
fetchint(uint addr, int *ip)
{
struct proc *curproc = myproc();
80104996: e8 55 f0 ff ff call 801039f0 <myproc>
if(addr >= curproc->sz || addr+4 > curproc->sz)
8010499b: 8b 00 mov (%eax),%eax
// Fetch the nth 32-bit system call argument.
int
argint(int n, int *ip)
{
return fetchint((myproc()->tf->esp) + 4 + 4*n, ip);
8010499d: 8d 73 04 lea 0x4(%ebx),%esi
int
fetchint(uint addr, int *ip)
{
struct proc *curproc = myproc();
if(addr >= curproc->sz || addr+4 > curproc->sz)
801049a0: 39 c6 cmp %eax,%esi
801049a2: 73 1c jae 801049c0 <argint+0x40>
801049a4: 8d 53 08 lea 0x8(%ebx),%edx
801049a7: 39 d0 cmp %edx,%eax
801049a9: 72 15 jb 801049c0 <argint+0x40>
return -1;
*ip = *(int*)(addr);
801049ab: 8b 45 0c mov 0xc(%ebp),%eax
801049ae: 8b 53 04 mov 0x4(%ebx),%edx
801049b1: 89 10 mov %edx,(%eax)
return 0;
801049b3: 31 c0 xor %eax,%eax
// Fetch the nth 32-bit system call argument.
int
argint(int n, int *ip)
{
return fetchint((myproc()->tf->esp) + 4 + 4*n, ip);
}
801049b5: 5b pop %ebx
801049b6: 5e pop %esi
801049b7: 5d pop %ebp
801049b8: c3 ret
801049b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
fetchint(uint addr, int *ip)
{
struct proc *curproc = myproc();
if(addr >= curproc->sz || addr+4 > curproc->sz)
return -1;
801049c0: b8 ff ff ff ff mov $0xffffffff,%eax
801049c5: eb ee jmp 801049b5 <argint+0x35>
801049c7: 89 f6 mov %esi,%esi
801049c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801049d0 <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)
{
801049d0: 55 push %ebp
801049d1: 89 e5 mov %esp,%ebp
801049d3: 56 push %esi
801049d4: 53 push %ebx
801049d5: 83 ec 10 sub $0x10,%esp
801049d8: 8b 5d 10 mov 0x10(%ebp),%ebx
int i;
struct proc *curproc = myproc();
801049db: e8 10 f0 ff ff call 801039f0 <myproc>
801049e0: 89 c6 mov %eax,%esi
if(argint(n, &i) < 0)
801049e2: 8d 45 f4 lea -0xc(%ebp),%eax
801049e5: 83 ec 08 sub $0x8,%esp
801049e8: 50 push %eax
801049e9: ff 75 08 pushl 0x8(%ebp)
801049ec: e8 8f ff ff ff call 80104980 <argint>
return -1;
if(size < 0 || (uint)i >= curproc->sz || (uint)i+size > curproc->sz)
801049f1: c1 e8 1f shr $0x1f,%eax
801049f4: 83 c4 10 add $0x10,%esp
801049f7: 84 c0 test %al,%al
801049f9: 75 2d jne 80104a28 <argptr+0x58>
801049fb: 89 d8 mov %ebx,%eax
801049fd: c1 e8 1f shr $0x1f,%eax
80104a00: 84 c0 test %al,%al
80104a02: 75 24 jne 80104a28 <argptr+0x58>
80104a04: 8b 16 mov (%esi),%edx
80104a06: 8b 45 f4 mov -0xc(%ebp),%eax
80104a09: 39 c2 cmp %eax,%edx
80104a0b: 76 1b jbe 80104a28 <argptr+0x58>
80104a0d: 01 c3 add %eax,%ebx
80104a0f: 39 da cmp %ebx,%edx
80104a11: 72 15 jb 80104a28 <argptr+0x58>
return -1;
*pp = (char*)i;
80104a13: 8b 55 0c mov 0xc(%ebp),%edx
80104a16: 89 02 mov %eax,(%edx)
return 0;
80104a18: 31 c0 xor %eax,%eax
}
80104a1a: 8d 65 f8 lea -0x8(%ebp),%esp
80104a1d: 5b pop %ebx
80104a1e: 5e pop %esi
80104a1f: 5d pop %ebp
80104a20: c3 ret
80104a21: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
struct proc *curproc = myproc();
if(argint(n, &i) < 0)
return -1;
if(size < 0 || (uint)i >= curproc->sz || (uint)i+size > curproc->sz)
return -1;
80104a28: b8 ff ff ff ff mov $0xffffffff,%eax
80104a2d: eb eb jmp 80104a1a <argptr+0x4a>
80104a2f: 90 nop
80104a30 <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)
{
80104a30: 55 push %ebp
80104a31: 89 e5 mov %esp,%ebp
80104a33: 83 ec 20 sub $0x20,%esp
int addr;
if(argint(n, &addr) < 0)
80104a36: 8d 45 f4 lea -0xc(%ebp),%eax
80104a39: 50 push %eax
80104a3a: ff 75 08 pushl 0x8(%ebp)
80104a3d: e8 3e ff ff ff call 80104980 <argint>
80104a42: 83 c4 10 add $0x10,%esp
80104a45: 85 c0 test %eax,%eax
80104a47: 78 17 js 80104a60 <argstr+0x30>
return -1;
return fetchstr(addr, pp);
80104a49: 83 ec 08 sub $0x8,%esp
80104a4c: ff 75 0c pushl 0xc(%ebp)
80104a4f: ff 75 f4 pushl -0xc(%ebp)
80104a52: e8 c9 fe ff ff call 80104920 <fetchstr>
80104a57: 83 c4 10 add $0x10,%esp
}
80104a5a: c9 leave
80104a5b: c3 ret
80104a5c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
int
argstr(int n, char **pp)
{
int addr;
if(argint(n, &addr) < 0)
return -1;
80104a60: b8 ff ff ff ff mov $0xffffffff,%eax
return fetchstr(addr, pp);
}
80104a65: c9 leave
80104a66: c3 ret
80104a67: 89 f6 mov %esi,%esi
80104a69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104a70 <syscall>:
[SYS_swap] sys_swap,
};
void
syscall(void)
{
80104a70: 55 push %ebp
80104a71: 89 e5 mov %esp,%ebp
80104a73: 56 push %esi
80104a74: 53 push %ebx
int num;
struct proc *curproc = myproc();
80104a75: e8 76 ef ff ff call 801039f0 <myproc>
num = curproc->tf->eax;
80104a7a: 8b 70 18 mov 0x18(%eax),%esi
void
syscall(void)
{
int num;
struct proc *curproc = myproc();
80104a7d: 89 c3 mov %eax,%ebx
num = curproc->tf->eax;
80104a7f: 8b 46 1c mov 0x1c(%esi),%eax
if(num > 0 && num < NELEM(syscalls) && syscalls[num]) {
80104a82: 8d 50 ff lea -0x1(%eax),%edx
80104a85: 83 fa 16 cmp $0x16,%edx
80104a88: 77 1e ja 80104aa8 <syscall+0x38>
80104a8a: 8b 14 85 e0 7c 10 80 mov -0x7fef8320(,%eax,4),%edx
80104a91: 85 d2 test %edx,%edx
80104a93: 74 13 je 80104aa8 <syscall+0x38>
curproc->tf->eax = syscalls[num]();
80104a95: ff d2 call *%edx
80104a97: 89 46 1c mov %eax,0x1c(%esi)
} else {
cprintf("%d %s: unknown sys call %d\n",
curproc->pid, curproc->name, num);
curproc->tf->eax = -1;
}
}
80104a9a: 8d 65 f8 lea -0x8(%ebp),%esp
80104a9d: 5b pop %ebx
80104a9e: 5e pop %esi
80104a9f: 5d pop %ebp
80104aa0: c3 ret
80104aa1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
num = curproc->tf->eax;
if(num > 0 && num < NELEM(syscalls) && syscalls[num]) {
curproc->tf->eax = syscalls[num]();
} else {
cprintf("%d %s: unknown sys call %d\n",
80104aa8: 50 push %eax
curproc->pid, curproc->name, num);
80104aa9: 8d 43 6c lea 0x6c(%ebx),%eax
num = curproc->tf->eax;
if(num > 0 && num < NELEM(syscalls) && syscalls[num]) {
curproc->tf->eax = syscalls[num]();
} else {
cprintf("%d %s: unknown sys call %d\n",
80104aac: 50 push %eax
80104aad: ff 73 10 pushl 0x10(%ebx)
80104ab0: 68 b1 7c 10 80 push $0x80107cb1
80104ab5: e8 d6 bc ff ff call 80100790 <cprintf>
curproc->pid, curproc->name, num);
curproc->tf->eax = -1;
80104aba: 8b 43 18 mov 0x18(%ebx),%eax
80104abd: 83 c4 10 add $0x10,%esp
80104ac0: c7 40 1c ff ff ff ff movl $0xffffffff,0x1c(%eax)
}
}
80104ac7: 8d 65 f8 lea -0x8(%ebp),%esp
80104aca: 5b pop %ebx
80104acb: 5e pop %esi
80104acc: 5d pop %ebp
80104acd: c3 ret
80104ace: 66 90 xchg %ax,%ax
80104ad0 <create>:
return -1;
}
static struct inode*
create(char *path, short type, short major, short minor)
{
80104ad0: 55 push %ebp
80104ad1: 89 e5 mov %esp,%ebp
80104ad3: 57 push %edi
80104ad4: 56 push %esi
80104ad5: 53 push %ebx
uint off;
struct inode *ip, *dp;
char name[DIRSIZ];
if((dp = nameiparent(path, name)) == 0)
80104ad6: 8d 75 da lea -0x26(%ebp),%esi
return -1;
}
static struct inode*
create(char *path, short type, short major, short minor)
{
80104ad9: 83 ec 44 sub $0x44,%esp
80104adc: 89 4d c0 mov %ecx,-0x40(%ebp)
80104adf: 8b 4d 08 mov 0x8(%ebp),%ecx
uint off;
struct inode *ip, *dp;
char name[DIRSIZ];
if((dp = nameiparent(path, name)) == 0)
80104ae2: 56 push %esi
80104ae3: 50 push %eax
return -1;
}
static struct inode*
create(char *path, short type, short major, short minor)
{
80104ae4: 89 55 c4 mov %edx,-0x3c(%ebp)
80104ae7: 89 4d bc mov %ecx,-0x44(%ebp)
uint off;
struct inode *ip, *dp;
char name[DIRSIZ];
if((dp = nameiparent(path, name)) == 0)
80104aea: e8 61 d6 ff ff call 80102150 <nameiparent>
80104aef: 83 c4 10 add $0x10,%esp
80104af2: 85 c0 test %eax,%eax
80104af4: 0f 84 f6 00 00 00 je 80104bf0 <create+0x120>
return 0;
ilock(dp);
80104afa: 83 ec 0c sub $0xc,%esp
80104afd: 89 c7 mov %eax,%edi
80104aff: 50 push %eax
80104b00: e8 db cd ff ff call 801018e0 <ilock>
if((ip = dirlookup(dp, name, &off)) != 0){
80104b05: 8d 45 d4 lea -0x2c(%ebp),%eax
80104b08: 83 c4 0c add $0xc,%esp
80104b0b: 50 push %eax
80104b0c: 56 push %esi
80104b0d: 57 push %edi
80104b0e: e8 fd d2 ff ff call 80101e10 <dirlookup>
80104b13: 83 c4 10 add $0x10,%esp
80104b16: 85 c0 test %eax,%eax
80104b18: 89 c3 mov %eax,%ebx
80104b1a: 74 54 je 80104b70 <create+0xa0>
iunlockput(dp);
80104b1c: 83 ec 0c sub $0xc,%esp
80104b1f: 57 push %edi
80104b20: e8 4b d0 ff ff call 80101b70 <iunlockput>
ilock(ip);
80104b25: 89 1c 24 mov %ebx,(%esp)
80104b28: e8 b3 cd ff ff call 801018e0 <ilock>
if(type == T_FILE && ip->type == T_FILE)
80104b2d: 83 c4 10 add $0x10,%esp
80104b30: 66 83 7d c4 02 cmpw $0x2,-0x3c(%ebp)
80104b35: 75 19 jne 80104b50 <create+0x80>
80104b37: 66 83 7b 50 02 cmpw $0x2,0x50(%ebx)
80104b3c: 89 d8 mov %ebx,%eax
80104b3e: 75 10 jne 80104b50 <create+0x80>
panic("create: dirlink");
iunlockput(dp);
return ip;
}
80104b40: 8d 65 f4 lea -0xc(%ebp),%esp
80104b43: 5b pop %ebx
80104b44: 5e pop %esi
80104b45: 5f pop %edi
80104b46: 5d pop %ebp
80104b47: c3 ret
80104b48: 90 nop
80104b49: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if((ip = dirlookup(dp, name, &off)) != 0){
iunlockput(dp);
ilock(ip);
if(type == T_FILE && ip->type == T_FILE)
return ip;
iunlockput(ip);
80104b50: 83 ec 0c sub $0xc,%esp
80104b53: 53 push %ebx
80104b54: e8 17 d0 ff ff call 80101b70 <iunlockput>
return 0;
80104b59: 83 c4 10 add $0x10,%esp
panic("create: dirlink");
iunlockput(dp);
return ip;
}
80104b5c: 8d 65 f4 lea -0xc(%ebp),%esp
iunlockput(dp);
ilock(ip);
if(type == T_FILE && ip->type == T_FILE)
return ip;
iunlockput(ip);
return 0;
80104b5f: 31 c0 xor %eax,%eax
panic("create: dirlink");
iunlockput(dp);
return ip;
}
80104b61: 5b pop %ebx
80104b62: 5e pop %esi
80104b63: 5f pop %edi
80104b64: 5d pop %ebp
80104b65: c3 ret
80104b66: 8d 76 00 lea 0x0(%esi),%esi
80104b69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
return ip;
iunlockput(ip);
return 0;
}
if((ip = ialloc(dp->dev, type)) == 0)
80104b70: 0f bf 45 c4 movswl -0x3c(%ebp),%eax
80104b74: 83 ec 08 sub $0x8,%esp
80104b77: 50 push %eax
80104b78: ff 37 pushl (%edi)
80104b7a: e8 f1 cb ff ff call 80101770 <ialloc>
80104b7f: 83 c4 10 add $0x10,%esp
80104b82: 85 c0 test %eax,%eax
80104b84: 89 c3 mov %eax,%ebx
80104b86: 0f 84 cc 00 00 00 je 80104c58 <create+0x188>
panic("create: ialloc");
ilock(ip);
80104b8c: 83 ec 0c sub $0xc,%esp
80104b8f: 50 push %eax
80104b90: e8 4b cd ff ff call 801018e0 <ilock>
ip->major = major;
80104b95: 0f b7 45 c0 movzwl -0x40(%ebp),%eax
80104b99: 66 89 43 52 mov %ax,0x52(%ebx)
ip->minor = minor;
80104b9d: 0f b7 45 bc movzwl -0x44(%ebp),%eax
80104ba1: 66 89 43 54 mov %ax,0x54(%ebx)
ip->nlink = 1;
80104ba5: b8 01 00 00 00 mov $0x1,%eax
80104baa: 66 89 43 56 mov %ax,0x56(%ebx)
iupdate(ip);
80104bae: 89 1c 24 mov %ebx,(%esp)
80104bb1: e8 7a cc ff ff call 80101830 <iupdate>
if(type == T_DIR){ // Create . and .. entries.
80104bb6: 83 c4 10 add $0x10,%esp
80104bb9: 66 83 7d c4 01 cmpw $0x1,-0x3c(%ebp)
80104bbe: 74 40 je 80104c00 <create+0x130>
// No ip->nlink++ for ".": avoid cyclic ref count.
if(dirlink(ip, ".", ip->inum) < 0 || dirlink(ip, "..", dp->inum) < 0)
panic("create dots");
}
if(dirlink(dp, name, ip->inum) < 0)
80104bc0: 83 ec 04 sub $0x4,%esp
80104bc3: ff 73 04 pushl 0x4(%ebx)
80104bc6: 56 push %esi
80104bc7: 57 push %edi
80104bc8: e8 a3 d4 ff ff call 80102070 <dirlink>
80104bcd: 83 c4 10 add $0x10,%esp
80104bd0: 85 c0 test %eax,%eax
80104bd2: 78 77 js 80104c4b <create+0x17b>
panic("create: dirlink");
iunlockput(dp);
80104bd4: 83 ec 0c sub $0xc,%esp
80104bd7: 57 push %edi
80104bd8: e8 93 cf ff ff call 80101b70 <iunlockput>
return ip;
80104bdd: 83 c4 10 add $0x10,%esp
}
80104be0: 8d 65 f4 lea -0xc(%ebp),%esp
if(dirlink(dp, name, ip->inum) < 0)
panic("create: dirlink");
iunlockput(dp);
return ip;
80104be3: 89 d8 mov %ebx,%eax
}
80104be5: 5b pop %ebx
80104be6: 5e pop %esi
80104be7: 5f pop %edi
80104be8: 5d pop %ebp
80104be9: c3 ret
80104bea: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
uint off;
struct inode *ip, *dp;
char name[DIRSIZ];
if((dp = nameiparent(path, name)) == 0)
return 0;
80104bf0: 31 c0 xor %eax,%eax
80104bf2: e9 49 ff ff ff jmp 80104b40 <create+0x70>
80104bf7: 89 f6 mov %esi,%esi
80104bf9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
ip->minor = minor;
ip->nlink = 1;
iupdate(ip);
if(type == T_DIR){ // Create . and .. entries.
dp->nlink++; // for ".."
80104c00: 66 83 47 56 01 addw $0x1,0x56(%edi)
iupdate(dp);
80104c05: 83 ec 0c sub $0xc,%esp
80104c08: 57 push %edi
80104c09: e8 22 cc ff ff call 80101830 <iupdate>
// No ip->nlink++ for ".": avoid cyclic ref count.
if(dirlink(ip, ".", ip->inum) < 0 || dirlink(ip, "..", dp->inum) < 0)
80104c0e: 83 c4 0c add $0xc,%esp
80104c11: ff 73 04 pushl 0x4(%ebx)
80104c14: 68 5c 7d 10 80 push $0x80107d5c
80104c19: 53 push %ebx
80104c1a: e8 51 d4 ff ff call 80102070 <dirlink>
80104c1f: 83 c4 10 add $0x10,%esp
80104c22: 85 c0 test %eax,%eax
80104c24: 78 18 js 80104c3e <create+0x16e>
80104c26: 83 ec 04 sub $0x4,%esp
80104c29: ff 77 04 pushl 0x4(%edi)
80104c2c: 68 5b 7d 10 80 push $0x80107d5b
80104c31: 53 push %ebx
80104c32: e8 39 d4 ff ff call 80102070 <dirlink>
80104c37: 83 c4 10 add $0x10,%esp
80104c3a: 85 c0 test %eax,%eax
80104c3c: 79 82 jns 80104bc0 <create+0xf0>
panic("create dots");
80104c3e: 83 ec 0c sub $0xc,%esp
80104c41: 68 4f 7d 10 80 push $0x80107d4f
80104c46: e8 55 b8 ff ff call 801004a0 <panic>
}
if(dirlink(dp, name, ip->inum) < 0)
panic("create: dirlink");
80104c4b: 83 ec 0c sub $0xc,%esp
80104c4e: 68 5e 7d 10 80 push $0x80107d5e
80104c53: e8 48 b8 ff ff call 801004a0 <panic>
iunlockput(ip);
return 0;
}
if((ip = ialloc(dp->dev, type)) == 0)
panic("create: ialloc");
80104c58: 83 ec 0c sub $0xc,%esp
80104c5b: 68 40 7d 10 80 push $0x80107d40
80104c60: e8 3b b8 ff ff call 801004a0 <panic>
80104c65: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104c69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104c70 <argfd.constprop.0>:
extern int numallocblocks;
// 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)
80104c70: 55 push %ebp
80104c71: 89 e5 mov %esp,%ebp
80104c73: 56 push %esi
80104c74: 53 push %ebx
80104c75: 89 c6 mov %eax,%esi
{
int fd;
struct file *f;
if(argint(n, &fd) < 0)
80104c77: 8d 45 f4 lea -0xc(%ebp),%eax
extern int numallocblocks;
// 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)
80104c7a: 89 d3 mov %edx,%ebx
80104c7c: 83 ec 18 sub $0x18,%esp
{
int fd;
struct file *f;
if(argint(n, &fd) < 0)
80104c7f: 50 push %eax
80104c80: 6a 00 push $0x0
80104c82: e8 f9 fc ff ff call 80104980 <argint>
80104c87: 83 c4 10 add $0x10,%esp
80104c8a: 85 c0 test %eax,%eax
80104c8c: 78 32 js 80104cc0 <argfd.constprop.0+0x50>
return -1;
if(fd < 0 || fd >= NOFILE || (f=myproc()->ofile[fd]) == 0)
80104c8e: 83 7d f4 0f cmpl $0xf,-0xc(%ebp)
80104c92: 77 2c ja 80104cc0 <argfd.constprop.0+0x50>
80104c94: e8 57 ed ff ff call 801039f0 <myproc>
80104c99: 8b 55 f4 mov -0xc(%ebp),%edx
80104c9c: 8b 44 90 28 mov 0x28(%eax,%edx,4),%eax
80104ca0: 85 c0 test %eax,%eax
80104ca2: 74 1c je 80104cc0 <argfd.constprop.0+0x50>
return -1;
if(pfd)
80104ca4: 85 f6 test %esi,%esi
80104ca6: 74 02 je 80104caa <argfd.constprop.0+0x3a>
*pfd = fd;
80104ca8: 89 16 mov %edx,(%esi)
if(pf)
80104caa: 85 db test %ebx,%ebx
80104cac: 74 22 je 80104cd0 <argfd.constprop.0+0x60>
*pf = f;
80104cae: 89 03 mov %eax,(%ebx)
return 0;
80104cb0: 31 c0 xor %eax,%eax
}
80104cb2: 8d 65 f8 lea -0x8(%ebp),%esp
80104cb5: 5b pop %ebx
80104cb6: 5e pop %esi
80104cb7: 5d pop %ebp
80104cb8: c3 ret
80104cb9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80104cc0: 8d 65 f8 lea -0x8(%ebp),%esp
{
int fd;
struct file *f;
if(argint(n, &fd) < 0)
return -1;
80104cc3: b8 ff ff ff ff mov $0xffffffff,%eax
if(pfd)
*pfd = fd;
if(pf)
*pf = f;
return 0;
}
80104cc8: 5b pop %ebx
80104cc9: 5e pop %esi
80104cca: 5d pop %ebp
80104ccb: c3 ret
80104ccc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
return -1;
if(pfd)
*pfd = fd;
if(pf)
*pf = f;
return 0;
80104cd0: 31 c0 xor %eax,%eax
80104cd2: eb de jmp 80104cb2 <argfd.constprop.0+0x42>
80104cd4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80104cda: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80104ce0 <sys_dup>:
return -1;
}
int
sys_dup(void)
{
80104ce0: 55 push %ebp
struct file *f;
int fd;
if(argfd(0, 0, &f) < 0)
80104ce1: 31 c0 xor %eax,%eax
return -1;
}
int
sys_dup(void)
{
80104ce3: 89 e5 mov %esp,%ebp
80104ce5: 56 push %esi
80104ce6: 53 push %ebx
struct file *f;
int fd;
if(argfd(0, 0, &f) < 0)
80104ce7: 8d 55 f4 lea -0xc(%ebp),%edx
return -1;
}
int
sys_dup(void)
{
80104cea: 83 ec 10 sub $0x10,%esp
struct file *f;
int fd;
if(argfd(0, 0, &f) < 0)
80104ced: e8 7e ff ff ff call 80104c70 <argfd.constprop.0>
80104cf2: 85 c0 test %eax,%eax
80104cf4: 78 1a js 80104d10 <sys_dup+0x30>
fdalloc(struct file *f)
{
int fd;
struct proc *curproc = myproc();
for(fd = 0; fd < NOFILE; fd++){
80104cf6: 31 db xor %ebx,%ebx
struct file *f;
int fd;
if(argfd(0, 0, &f) < 0)
return -1;
if((fd=fdalloc(f)) < 0)
80104cf8: 8b 75 f4 mov -0xc(%ebp),%esi
// Takes over file reference from caller on success.
static int
fdalloc(struct file *f)
{
int fd;
struct proc *curproc = myproc();
80104cfb: e8 f0 ec ff ff call 801039f0 <myproc>
for(fd = 0; fd < NOFILE; fd++){
if(curproc->ofile[fd] == 0){
80104d00: 8b 54 98 28 mov 0x28(%eax,%ebx,4),%edx
80104d04: 85 d2 test %edx,%edx
80104d06: 74 18 je 80104d20 <sys_dup+0x40>
fdalloc(struct file *f)
{
int fd;
struct proc *curproc = myproc();
for(fd = 0; fd < NOFILE; fd++){
80104d08: 83 c3 01 add $0x1,%ebx
80104d0b: 83 fb 10 cmp $0x10,%ebx
80104d0e: 75 f0 jne 80104d00 <sys_dup+0x20>
return -1;
if((fd=fdalloc(f)) < 0)
return -1;
filedup(f);
return fd;
}
80104d10: 8d 65 f8 lea -0x8(%ebp),%esp
{
struct file *f;
int fd;
if(argfd(0, 0, &f) < 0)
return -1;
80104d13: b8 ff ff ff ff mov $0xffffffff,%eax
if((fd=fdalloc(f)) < 0)
return -1;
filedup(f);
return fd;
}
80104d18: 5b pop %ebx
80104d19: 5e pop %esi
80104d1a: 5d pop %ebp
80104d1b: c3 ret
80104d1c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
int fd;
struct proc *curproc = myproc();
for(fd = 0; fd < NOFILE; fd++){
if(curproc->ofile[fd] == 0){
curproc->ofile[fd] = f;
80104d20: 89 74 98 28 mov %esi,0x28(%eax,%ebx,4)
if(argfd(0, 0, &f) < 0)
return -1;
if((fd=fdalloc(f)) < 0)
return -1;
filedup(f);
80104d24: 83 ec 0c sub $0xc,%esp
80104d27: ff 75 f4 pushl -0xc(%ebp)
80104d2a: e8 e1 c1 ff ff call 80100f10 <filedup>
return fd;
80104d2f: 83 c4 10 add $0x10,%esp
}
80104d32: 8d 65 f8 lea -0x8(%ebp),%esp
if(argfd(0, 0, &f) < 0)
return -1;
if((fd=fdalloc(f)) < 0)
return -1;
filedup(f);
return fd;
80104d35: 89 d8 mov %ebx,%eax
}
80104d37: 5b pop %ebx
80104d38: 5e pop %esi
80104d39: 5d pop %ebp
80104d3a: c3 ret
80104d3b: 90 nop
80104d3c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80104d40 <sys_read>:
int
sys_read(void)
{
80104d40: 55 push %ebp
struct file *f;
int n;
char *p;
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
80104d41: 31 c0 xor %eax,%eax
return fd;
}
int
sys_read(void)
{
80104d43: 89 e5 mov %esp,%ebp
80104d45: 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)
80104d48: 8d 55 ec lea -0x14(%ebp),%edx
80104d4b: e8 20 ff ff ff call 80104c70 <argfd.constprop.0>
80104d50: 85 c0 test %eax,%eax
80104d52: 78 4c js 80104da0 <sys_read+0x60>
80104d54: 8d 45 f0 lea -0x10(%ebp),%eax
80104d57: 83 ec 08 sub $0x8,%esp
80104d5a: 50 push %eax
80104d5b: 6a 02 push $0x2
80104d5d: e8 1e fc ff ff call 80104980 <argint>
80104d62: 83 c4 10 add $0x10,%esp
80104d65: 85 c0 test %eax,%eax
80104d67: 78 37 js 80104da0 <sys_read+0x60>
80104d69: 8d 45 f4 lea -0xc(%ebp),%eax
80104d6c: 83 ec 04 sub $0x4,%esp
80104d6f: ff 75 f0 pushl -0x10(%ebp)
80104d72: 50 push %eax
80104d73: 6a 01 push $0x1
80104d75: e8 56 fc ff ff call 801049d0 <argptr>
80104d7a: 83 c4 10 add $0x10,%esp
80104d7d: 85 c0 test %eax,%eax
80104d7f: 78 1f js 80104da0 <sys_read+0x60>
return -1;
return fileread(f, p, n);
80104d81: 83 ec 04 sub $0x4,%esp
80104d84: ff 75 f0 pushl -0x10(%ebp)
80104d87: ff 75 f4 pushl -0xc(%ebp)
80104d8a: ff 75 ec pushl -0x14(%ebp)
80104d8d: e8 ee c2 ff ff call 80101080 <fileread>
80104d92: 83 c4 10 add $0x10,%esp
}
80104d95: c9 leave
80104d96: c3 ret
80104d97: 89 f6 mov %esi,%esi
80104d99: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
struct file *f;
int n;
char *p;
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
return -1;
80104da0: b8 ff ff ff ff mov $0xffffffff,%eax
return fileread(f, p, n);
}
80104da5: c9 leave
80104da6: c3 ret
80104da7: 89 f6 mov %esi,%esi
80104da9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104db0 <sys_write>:
int
sys_write(void)
{
80104db0: 55 push %ebp
struct file *f;
int n;
char *p;
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
80104db1: 31 c0 xor %eax,%eax
return fileread(f, p, n);
}
int
sys_write(void)
{
80104db3: 89 e5 mov %esp,%ebp
80104db5: 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)
80104db8: 8d 55 ec lea -0x14(%ebp),%edx
80104dbb: e8 b0 fe ff ff call 80104c70 <argfd.constprop.0>
80104dc0: 85 c0 test %eax,%eax
80104dc2: 78 4c js 80104e10 <sys_write+0x60>
80104dc4: 8d 45 f0 lea -0x10(%ebp),%eax
80104dc7: 83 ec 08 sub $0x8,%esp
80104dca: 50 push %eax
80104dcb: 6a 02 push $0x2
80104dcd: e8 ae fb ff ff call 80104980 <argint>
80104dd2: 83 c4 10 add $0x10,%esp
80104dd5: 85 c0 test %eax,%eax
80104dd7: 78 37 js 80104e10 <sys_write+0x60>
80104dd9: 8d 45 f4 lea -0xc(%ebp),%eax
80104ddc: 83 ec 04 sub $0x4,%esp
80104ddf: ff 75 f0 pushl -0x10(%ebp)
80104de2: 50 push %eax
80104de3: 6a 01 push $0x1
80104de5: e8 e6 fb ff ff call 801049d0 <argptr>
80104dea: 83 c4 10 add $0x10,%esp
80104ded: 85 c0 test %eax,%eax
80104def: 78 1f js 80104e10 <sys_write+0x60>
return -1;
return filewrite(f, p, n);
80104df1: 83 ec 04 sub $0x4,%esp
80104df4: ff 75 f0 pushl -0x10(%ebp)
80104df7: ff 75 f4 pushl -0xc(%ebp)
80104dfa: ff 75 ec pushl -0x14(%ebp)
80104dfd: e8 0e c3 ff ff call 80101110 <filewrite>
80104e02: 83 c4 10 add $0x10,%esp
}
80104e05: c9 leave
80104e06: c3 ret
80104e07: 89 f6 mov %esi,%esi
80104e09: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
struct file *f;
int n;
char *p;
if(argfd(0, 0, &f) < 0 || argint(2, &n) < 0 || argptr(1, &p, n) < 0)
return -1;
80104e10: b8 ff ff ff ff mov $0xffffffff,%eax
return filewrite(f, p, n);
}
80104e15: c9 leave
80104e16: c3 ret
80104e17: 89 f6 mov %esi,%esi
80104e19: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104e20 <sys_close>:
int
sys_close(void)
{
80104e20: 55 push %ebp
80104e21: 89 e5 mov %esp,%ebp
80104e23: 83 ec 18 sub $0x18,%esp
int fd;
struct file *f;
if(argfd(0, &fd, &f) < 0)
80104e26: 8d 55 f4 lea -0xc(%ebp),%edx
80104e29: 8d 45 f0 lea -0x10(%ebp),%eax
80104e2c: e8 3f fe ff ff call 80104c70 <argfd.constprop.0>
80104e31: 85 c0 test %eax,%eax
80104e33: 78 2b js 80104e60 <sys_close+0x40>
return -1;
myproc()->ofile[fd] = 0;
80104e35: e8 b6 eb ff ff call 801039f0 <myproc>
80104e3a: 8b 55 f0 mov -0x10(%ebp),%edx
fileclose(f);
80104e3d: 83 ec 0c sub $0xc,%esp
int fd;
struct file *f;
if(argfd(0, &fd, &f) < 0)
return -1;
myproc()->ofile[fd] = 0;
80104e40: c7 44 90 28 00 00 00 movl $0x0,0x28(%eax,%edx,4)
80104e47: 00
fileclose(f);
80104e48: ff 75 f4 pushl -0xc(%ebp)
80104e4b: e8 10 c1 ff ff call 80100f60 <fileclose>
return 0;
80104e50: 83 c4 10 add $0x10,%esp
80104e53: 31 c0 xor %eax,%eax
}
80104e55: c9 leave
80104e56: c3 ret
80104e57: 89 f6 mov %esi,%esi
80104e59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
{
int fd;
struct file *f;
if(argfd(0, &fd, &f) < 0)
return -1;
80104e60: b8 ff ff ff ff mov $0xffffffff,%eax
myproc()->ofile[fd] = 0;
fileclose(f);
return 0;
}
80104e65: c9 leave
80104e66: c3 ret
80104e67: 89 f6 mov %esi,%esi
80104e69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104e70 <sys_fstat>:
int
sys_fstat(void)
{
80104e70: 55 push %ebp
struct file *f;
struct stat *st;
if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0)
80104e71: 31 c0 xor %eax,%eax
return 0;
}
int
sys_fstat(void)
{
80104e73: 89 e5 mov %esp,%ebp
80104e75: 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)
80104e78: 8d 55 f0 lea -0x10(%ebp),%edx
80104e7b: e8 f0 fd ff ff call 80104c70 <argfd.constprop.0>
80104e80: 85 c0 test %eax,%eax
80104e82: 78 2c js 80104eb0 <sys_fstat+0x40>
80104e84: 8d 45 f4 lea -0xc(%ebp),%eax
80104e87: 83 ec 04 sub $0x4,%esp
80104e8a: 6a 14 push $0x14
80104e8c: 50 push %eax
80104e8d: 6a 01 push $0x1
80104e8f: e8 3c fb ff ff call 801049d0 <argptr>
80104e94: 83 c4 10 add $0x10,%esp
80104e97: 85 c0 test %eax,%eax
80104e99: 78 15 js 80104eb0 <sys_fstat+0x40>
return -1;
return filestat(f, st);
80104e9b: 83 ec 08 sub $0x8,%esp
80104e9e: ff 75 f4 pushl -0xc(%ebp)
80104ea1: ff 75 f0 pushl -0x10(%ebp)
80104ea4: e8 87 c1 ff ff call 80101030 <filestat>
80104ea9: 83 c4 10 add $0x10,%esp
}
80104eac: c9 leave
80104ead: c3 ret
80104eae: 66 90 xchg %ax,%ax
{
struct file *f;
struct stat *st;
if(argfd(0, 0, &f) < 0 || argptr(1, (void*)&st, sizeof(*st)) < 0)
return -1;
80104eb0: b8 ff ff ff ff mov $0xffffffff,%eax
return filestat(f, st);
}
80104eb5: c9 leave
80104eb6: c3 ret
80104eb7: 89 f6 mov %esi,%esi
80104eb9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80104ec0 <sys_link>:
// Create the path new as a link to the same inode as old.
int
sys_link(void)
{
80104ec0: 55 push %ebp
80104ec1: 89 e5 mov %esp,%ebp
80104ec3: 57 push %edi
80104ec4: 56 push %esi
80104ec5: 53 push %ebx
char name[DIRSIZ], *new, *old;
struct inode *dp, *ip;
if(argstr(0, &old) < 0 || argstr(1, &new) < 0)
80104ec6: 8d 45 d4 lea -0x2c(%ebp),%eax
}
// Create the path new as a link to the same inode as old.
int
sys_link(void)
{
80104ec9: 83 ec 34 sub $0x34,%esp
char name[DIRSIZ], *new, *old;
struct inode *dp, *ip;
if(argstr(0, &old) < 0 || argstr(1, &new) < 0)
80104ecc: 50 push %eax
80104ecd: 6a 00 push $0x0
80104ecf: e8 5c fb ff ff call 80104a30 <argstr>
80104ed4: 83 c4 10 add $0x10,%esp
80104ed7: 85 c0 test %eax,%eax
80104ed9: 0f 88 fb 00 00 00 js 80104fda <sys_link+0x11a>
80104edf: 8d 45 d0 lea -0x30(%ebp),%eax
80104ee2: 83 ec 08 sub $0x8,%esp
80104ee5: 50 push %eax
80104ee6: 6a 01 push $0x1
80104ee8: e8 43 fb ff ff call 80104a30 <argstr>
80104eed: 83 c4 10 add $0x10,%esp
80104ef0: 85 c0 test %eax,%eax
80104ef2: 0f 88 e2 00 00 00 js 80104fda <sys_link+0x11a>
return -1;
begin_op();
80104ef8: e8 c3 de ff ff call 80102dc0 <begin_op>
if((ip = namei(old)) == 0){
80104efd: 83 ec 0c sub $0xc,%esp
80104f00: ff 75 d4 pushl -0x2c(%ebp)
80104f03: e8 28 d2 ff ff call 80102130 <namei>
80104f08: 83 c4 10 add $0x10,%esp
80104f0b: 85 c0 test %eax,%eax
80104f0d: 89 c3 mov %eax,%ebx
80104f0f: 0f 84 f3 00 00 00 je 80105008 <sys_link+0x148>
end_op();
return -1;
}
ilock(ip);
80104f15: 83 ec 0c sub $0xc,%esp
80104f18: 50 push %eax
80104f19: e8 c2 c9 ff ff call 801018e0 <ilock>
if(ip->type == T_DIR){
80104f1e: 83 c4 10 add $0x10,%esp
80104f21: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx)
80104f26: 0f 84 c4 00 00 00 je 80104ff0 <sys_link+0x130>
iunlockput(ip);
end_op();
return -1;
}
ip->nlink++;
80104f2c: 66 83 43 56 01 addw $0x1,0x56(%ebx)
iupdate(ip);
80104f31: 83 ec 0c sub $0xc,%esp
iunlock(ip);
if((dp = nameiparent(new, name)) == 0)
80104f34: 8d 7d da lea -0x26(%ebp),%edi
end_op();
return -1;
}
ip->nlink++;
iupdate(ip);
80104f37: 53 push %ebx
80104f38: e8 f3 c8 ff ff call 80101830 <iupdate>
iunlock(ip);
80104f3d: 89 1c 24 mov %ebx,(%esp)
80104f40: e8 7b ca ff ff call 801019c0 <iunlock>
if((dp = nameiparent(new, name)) == 0)
80104f45: 58 pop %eax
80104f46: 5a pop %edx
80104f47: 57 push %edi
80104f48: ff 75 d0 pushl -0x30(%ebp)
80104f4b: e8 00 d2 ff ff call 80102150 <nameiparent>
80104f50: 83 c4 10 add $0x10,%esp
80104f53: 85 c0 test %eax,%eax
80104f55: 89 c6 mov %eax,%esi
80104f57: 74 5b je 80104fb4 <sys_link+0xf4>
goto bad;
ilock(dp);
80104f59: 83 ec 0c sub $0xc,%esp
80104f5c: 50 push %eax
80104f5d: e8 7e c9 ff ff call 801018e0 <ilock>
if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){
80104f62: 83 c4 10 add $0x10,%esp
80104f65: 8b 03 mov (%ebx),%eax
80104f67: 39 06 cmp %eax,(%esi)
80104f69: 75 3d jne 80104fa8 <sys_link+0xe8>
80104f6b: 83 ec 04 sub $0x4,%esp
80104f6e: ff 73 04 pushl 0x4(%ebx)
80104f71: 57 push %edi
80104f72: 56 push %esi
80104f73: e8 f8 d0 ff ff call 80102070 <dirlink>
80104f78: 83 c4 10 add $0x10,%esp
80104f7b: 85 c0 test %eax,%eax
80104f7d: 78 29 js 80104fa8 <sys_link+0xe8>
iunlockput(dp);
goto bad;
}
iunlockput(dp);
80104f7f: 83 ec 0c sub $0xc,%esp
80104f82: 56 push %esi
80104f83: e8 e8 cb ff ff call 80101b70 <iunlockput>
iput(ip);
80104f88: 89 1c 24 mov %ebx,(%esp)
80104f8b: e8 80 ca ff ff call 80101a10 <iput>
end_op();
80104f90: e8 9b de ff ff call 80102e30 <end_op>
return 0;
80104f95: 83 c4 10 add $0x10,%esp
80104f98: 31 c0 xor %eax,%eax
ip->nlink--;
iupdate(ip);
iunlockput(ip);
end_op();
return -1;
}
80104f9a: 8d 65 f4 lea -0xc(%ebp),%esp
80104f9d: 5b pop %ebx
80104f9e: 5e pop %esi
80104f9f: 5f pop %edi
80104fa0: 5d pop %ebp
80104fa1: c3 ret
80104fa2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
if((dp = nameiparent(new, name)) == 0)
goto bad;
ilock(dp);
if(dp->dev != ip->dev || dirlink(dp, name, ip->inum) < 0){
iunlockput(dp);
80104fa8: 83 ec 0c sub $0xc,%esp
80104fab: 56 push %esi
80104fac: e8 bf cb ff ff call 80101b70 <iunlockput>
goto bad;
80104fb1: 83 c4 10 add $0x10,%esp
end_op();
return 0;
bad:
ilock(ip);
80104fb4: 83 ec 0c sub $0xc,%esp
80104fb7: 53 push %ebx
80104fb8: e8 23 c9 ff ff call 801018e0 <ilock>
ip->nlink--;
80104fbd: 66 83 6b 56 01 subw $0x1,0x56(%ebx)
iupdate(ip);
80104fc2: 89 1c 24 mov %ebx,(%esp)
80104fc5: e8 66 c8 ff ff call 80101830 <iupdate>
iunlockput(ip);
80104fca: 89 1c 24 mov %ebx,(%esp)
80104fcd: e8 9e cb ff ff call 80101b70 <iunlockput>
end_op();
80104fd2: e8 59 de ff ff call 80102e30 <end_op>
return -1;
80104fd7: 83 c4 10 add $0x10,%esp
}
80104fda: 8d 65 f4 lea -0xc(%ebp),%esp
ilock(ip);
ip->nlink--;
iupdate(ip);
iunlockput(ip);
end_op();
return -1;
80104fdd: b8 ff ff ff ff mov $0xffffffff,%eax
}
80104fe2: 5b pop %ebx
80104fe3: 5e pop %esi
80104fe4: 5f pop %edi
80104fe5: 5d pop %ebp
80104fe6: c3 ret
80104fe7: 89 f6 mov %esi,%esi
80104fe9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
return -1;
}
ilock(ip);
if(ip->type == T_DIR){
iunlockput(ip);
80104ff0: 83 ec 0c sub $0xc,%esp
80104ff3: 53 push %ebx
80104ff4: e8 77 cb ff ff call 80101b70 <iunlockput>
end_op();
80104ff9: e8 32 de ff ff call 80102e30 <end_op>
return -1;
80104ffe: 83 c4 10 add $0x10,%esp
80105001: b8 ff ff ff ff mov $0xffffffff,%eax
80105006: eb 92 jmp 80104f9a <sys_link+0xda>
if(argstr(0, &old) < 0 || argstr(1, &new) < 0)
return -1;
begin_op();
if((ip = namei(old)) == 0){
end_op();
80105008: e8 23 de ff ff call 80102e30 <end_op>
return -1;
8010500d: b8 ff ff ff ff mov $0xffffffff,%eax
80105012: eb 86 jmp 80104f9a <sys_link+0xda>
80105014: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
8010501a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80105020 <sys_unlink>:
}
//PAGEBREAK!
int
sys_unlink(void)
{
80105020: 55 push %ebp
80105021: 89 e5 mov %esp,%ebp
80105023: 57 push %edi
80105024: 56 push %esi
80105025: 53 push %ebx
struct inode *ip, *dp;
struct dirent de;
char name[DIRSIZ], *path;
uint off;
if(argstr(0, &path) < 0)
80105026: 8d 45 c0 lea -0x40(%ebp),%eax
}
//PAGEBREAK!
int
sys_unlink(void)
{
80105029: 83 ec 54 sub $0x54,%esp
struct inode *ip, *dp;
struct dirent de;
char name[DIRSIZ], *path;
uint off;
if(argstr(0, &path) < 0)
8010502c: 50 push %eax
8010502d: 6a 00 push $0x0
8010502f: e8 fc f9 ff ff call 80104a30 <argstr>
80105034: 83 c4 10 add $0x10,%esp
80105037: 85 c0 test %eax,%eax
80105039: 0f 88 82 01 00 00 js 801051c1 <sys_unlink+0x1a1>
return -1;
begin_op();
if((dp = nameiparent(path, name)) == 0){
8010503f: 8d 5d ca lea -0x36(%ebp),%ebx
uint off;
if(argstr(0, &path) < 0)
return -1;
begin_op();
80105042: e8 79 dd ff ff call 80102dc0 <begin_op>
if((dp = nameiparent(path, name)) == 0){
80105047: 83 ec 08 sub $0x8,%esp
8010504a: 53 push %ebx
8010504b: ff 75 c0 pushl -0x40(%ebp)
8010504e: e8 fd d0 ff ff call 80102150 <nameiparent>
80105053: 83 c4 10 add $0x10,%esp
80105056: 85 c0 test %eax,%eax
80105058: 89 45 b4 mov %eax,-0x4c(%ebp)
8010505b: 0f 84 6a 01 00 00 je 801051cb <sys_unlink+0x1ab>
end_op();
return -1;
}
ilock(dp);
80105061: 8b 75 b4 mov -0x4c(%ebp),%esi
80105064: 83 ec 0c sub $0xc,%esp
80105067: 56 push %esi
80105068: e8 73 c8 ff ff call 801018e0 <ilock>
// Cannot unlink "." or "..".
if(namecmp(name, ".") == 0 || namecmp(name, "..") == 0)
8010506d: 58 pop %eax
8010506e: 5a pop %edx
8010506f: 68 5c 7d 10 80 push $0x80107d5c
80105074: 53 push %ebx
80105075: e8 76 cd ff ff call 80101df0 <namecmp>
8010507a: 83 c4 10 add $0x10,%esp
8010507d: 85 c0 test %eax,%eax
8010507f: 0f 84 fc 00 00 00 je 80105181 <sys_unlink+0x161>
80105085: 83 ec 08 sub $0x8,%esp
80105088: 68 5b 7d 10 80 push $0x80107d5b
8010508d: 53 push %ebx
8010508e: e8 5d cd ff ff call 80101df0 <namecmp>
80105093: 83 c4 10 add $0x10,%esp
80105096: 85 c0 test %eax,%eax
80105098: 0f 84 e3 00 00 00 je 80105181 <sys_unlink+0x161>
goto bad;
if((ip = dirlookup(dp, name, &off)) == 0)
8010509e: 8d 45 c4 lea -0x3c(%ebp),%eax
801050a1: 83 ec 04 sub $0x4,%esp
801050a4: 50 push %eax
801050a5: 53 push %ebx
801050a6: 56 push %esi
801050a7: e8 64 cd ff ff call 80101e10 <dirlookup>
801050ac: 83 c4 10 add $0x10,%esp
801050af: 85 c0 test %eax,%eax
801050b1: 89 c3 mov %eax,%ebx
801050b3: 0f 84 c8 00 00 00 je 80105181 <sys_unlink+0x161>
goto bad;
ilock(ip);
801050b9: 83 ec 0c sub $0xc,%esp
801050bc: 50 push %eax
801050bd: e8 1e c8 ff ff call 801018e0 <ilock>
if(ip->nlink < 1)
801050c2: 83 c4 10 add $0x10,%esp
801050c5: 66 83 7b 56 00 cmpw $0x0,0x56(%ebx)
801050ca: 0f 8e 24 01 00 00 jle 801051f4 <sys_unlink+0x1d4>
panic("unlink: nlink < 1");
if(ip->type == T_DIR && !isdirempty(ip)){
801050d0: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx)
801050d5: 8d 75 d8 lea -0x28(%ebp),%esi
801050d8: 74 66 je 80105140 <sys_unlink+0x120>
iunlockput(ip);
goto bad;
}
memset(&de, 0, sizeof(de));
801050da: 83 ec 04 sub $0x4,%esp
801050dd: 6a 10 push $0x10
801050df: 6a 00 push $0x0
801050e1: 56 push %esi
801050e2: e8 89 f5 ff ff call 80104670 <memset>
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
801050e7: 6a 10 push $0x10
801050e9: ff 75 c4 pushl -0x3c(%ebp)
801050ec: 56 push %esi
801050ed: ff 75 b4 pushl -0x4c(%ebp)
801050f0: e8 cb cb ff ff call 80101cc0 <writei>
801050f5: 83 c4 20 add $0x20,%esp
801050f8: 83 f8 10 cmp $0x10,%eax
801050fb: 0f 85 e6 00 00 00 jne 801051e7 <sys_unlink+0x1c7>
panic("unlink: writei");
if(ip->type == T_DIR){
80105101: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx)
80105106: 0f 84 9c 00 00 00 je 801051a8 <sys_unlink+0x188>
dp->nlink--;
iupdate(dp);
}
iunlockput(dp);
8010510c: 83 ec 0c sub $0xc,%esp
8010510f: ff 75 b4 pushl -0x4c(%ebp)
80105112: e8 59 ca ff ff call 80101b70 <iunlockput>
ip->nlink--;
80105117: 66 83 6b 56 01 subw $0x1,0x56(%ebx)
iupdate(ip);
8010511c: 89 1c 24 mov %ebx,(%esp)
8010511f: e8 0c c7 ff ff call 80101830 <iupdate>
iunlockput(ip);
80105124: 89 1c 24 mov %ebx,(%esp)
80105127: e8 44 ca ff ff call 80101b70 <iunlockput>
end_op();
8010512c: e8 ff dc ff ff call 80102e30 <end_op>
return 0;
80105131: 83 c4 10 add $0x10,%esp
80105134: 31 c0 xor %eax,%eax
bad:
iunlockput(dp);
end_op();
return -1;
}
80105136: 8d 65 f4 lea -0xc(%ebp),%esp
80105139: 5b pop %ebx
8010513a: 5e pop %esi
8010513b: 5f pop %edi
8010513c: 5d pop %ebp
8010513d: c3 ret
8010513e: 66 90 xchg %ax,%ax
isdirempty(struct inode *dp)
{
int off;
struct dirent de;
for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){
80105140: 83 7b 58 20 cmpl $0x20,0x58(%ebx)
80105144: 76 94 jbe 801050da <sys_unlink+0xba>
80105146: bf 20 00 00 00 mov $0x20,%edi
8010514b: eb 0f jmp 8010515c <sys_unlink+0x13c>
8010514d: 8d 76 00 lea 0x0(%esi),%esi
80105150: 83 c7 10 add $0x10,%edi
80105153: 3b 7b 58 cmp 0x58(%ebx),%edi
80105156: 0f 83 7e ff ff ff jae 801050da <sys_unlink+0xba>
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
8010515c: 6a 10 push $0x10
8010515e: 57 push %edi
8010515f: 56 push %esi
80105160: 53 push %ebx
80105161: e8 5a ca ff ff call 80101bc0 <readi>
80105166: 83 c4 10 add $0x10,%esp
80105169: 83 f8 10 cmp $0x10,%eax
8010516c: 75 6c jne 801051da <sys_unlink+0x1ba>
panic("isdirempty: readi");
if(de.inum != 0)
8010516e: 66 83 7d d8 00 cmpw $0x0,-0x28(%ebp)
80105173: 74 db je 80105150 <sys_unlink+0x130>
ilock(ip);
if(ip->nlink < 1)
panic("unlink: nlink < 1");
if(ip->type == T_DIR && !isdirempty(ip)){
iunlockput(ip);
80105175: 83 ec 0c sub $0xc,%esp
80105178: 53 push %ebx
80105179: e8 f2 c9 ff ff call 80101b70 <iunlockput>
goto bad;
8010517e: 83 c4 10 add $0x10,%esp
end_op();
return 0;
bad:
iunlockput(dp);
80105181: 83 ec 0c sub $0xc,%esp
80105184: ff 75 b4 pushl -0x4c(%ebp)
80105187: e8 e4 c9 ff ff call 80101b70 <iunlockput>
end_op();
8010518c: e8 9f dc ff ff call 80102e30 <end_op>
return -1;
80105191: 83 c4 10 add $0x10,%esp
}
80105194: 8d 65 f4 lea -0xc(%ebp),%esp
return 0;
bad:
iunlockput(dp);
end_op();
return -1;
80105197: b8 ff ff ff ff mov $0xffffffff,%eax
}
8010519c: 5b pop %ebx
8010519d: 5e pop %esi
8010519e: 5f pop %edi
8010519f: 5d pop %ebp
801051a0: c3 ret
801051a1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
memset(&de, 0, sizeof(de));
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
panic("unlink: writei");
if(ip->type == T_DIR){
dp->nlink--;
801051a8: 8b 45 b4 mov -0x4c(%ebp),%eax
iupdate(dp);
801051ab: 83 ec 0c sub $0xc,%esp
memset(&de, 0, sizeof(de));
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
panic("unlink: writei");
if(ip->type == T_DIR){
dp->nlink--;
801051ae: 66 83 68 56 01 subw $0x1,0x56(%eax)
iupdate(dp);
801051b3: 50 push %eax
801051b4: e8 77 c6 ff ff call 80101830 <iupdate>
801051b9: 83 c4 10 add $0x10,%esp
801051bc: e9 4b ff ff ff jmp 8010510c <sys_unlink+0xec>
struct dirent de;
char name[DIRSIZ], *path;
uint off;
if(argstr(0, &path) < 0)
return -1;
801051c1: b8 ff ff ff ff mov $0xffffffff,%eax
801051c6: e9 6b ff ff ff jmp 80105136 <sys_unlink+0x116>
begin_op();
if((dp = nameiparent(path, name)) == 0){
end_op();
801051cb: e8 60 dc ff ff call 80102e30 <end_op>
return -1;
801051d0: b8 ff ff ff ff mov $0xffffffff,%eax
801051d5: e9 5c ff ff ff jmp 80105136 <sys_unlink+0x116>
int off;
struct dirent de;
for(off=2*sizeof(de); off<dp->size; off+=sizeof(de)){
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
panic("isdirempty: readi");
801051da: 83 ec 0c sub $0xc,%esp
801051dd: 68 80 7d 10 80 push $0x80107d80
801051e2: e8 b9 b2 ff ff call 801004a0 <panic>
goto bad;
}
memset(&de, 0, sizeof(de));
if(writei(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
panic("unlink: writei");
801051e7: 83 ec 0c sub $0xc,%esp
801051ea: 68 92 7d 10 80 push $0x80107d92
801051ef: e8 ac b2 ff ff call 801004a0 <panic>
if((ip = dirlookup(dp, name, &off)) == 0)
goto bad;
ilock(ip);
if(ip->nlink < 1)
panic("unlink: nlink < 1");
801051f4: 83 ec 0c sub $0xc,%esp
801051f7: 68 6e 7d 10 80 push $0x80107d6e
801051fc: e8 9f b2 ff ff call 801004a0 <panic>
80105201: eb 0d jmp 80105210 <sys_open>
80105203: 90 nop
80105204: 90 nop
80105205: 90 nop
80105206: 90 nop
80105207: 90 nop
80105208: 90 nop
80105209: 90 nop
8010520a: 90 nop
8010520b: 90 nop
8010520c: 90 nop
8010520d: 90 nop
8010520e: 90 nop
8010520f: 90 nop
80105210 <sys_open>:
return ip;
}
int
sys_open(void)
{
80105210: 55 push %ebp
80105211: 89 e5 mov %esp,%ebp
80105213: 57 push %edi
80105214: 56 push %esi
80105215: 53 push %ebx
char *path;
int fd, omode;
struct file *f;
struct inode *ip;
if(argstr(0, &path) < 0 || argint(1, &omode) < 0)
80105216: 8d 45 e0 lea -0x20(%ebp),%eax
return ip;
}
int
sys_open(void)
{
80105219: 83 ec 24 sub $0x24,%esp
char *path;
int fd, omode;
struct file *f;
struct inode *ip;
if(argstr(0, &path) < 0 || argint(1, &omode) < 0)
8010521c: 50 push %eax
8010521d: 6a 00 push $0x0
8010521f: e8 0c f8 ff ff call 80104a30 <argstr>
80105224: 83 c4 10 add $0x10,%esp
80105227: 85 c0 test %eax,%eax
80105229: 0f 88 9e 00 00 00 js 801052cd <sys_open+0xbd>
8010522f: 8d 45 e4 lea -0x1c(%ebp),%eax
80105232: 83 ec 08 sub $0x8,%esp
80105235: 50 push %eax
80105236: 6a 01 push $0x1
80105238: e8 43 f7 ff ff call 80104980 <argint>
8010523d: 83 c4 10 add $0x10,%esp
80105240: 85 c0 test %eax,%eax
80105242: 0f 88 85 00 00 00 js 801052cd <sys_open+0xbd>
return -1;
begin_op();
80105248: e8 73 db ff ff call 80102dc0 <begin_op>
if(omode & O_CREATE){
8010524d: f6 45 e5 02 testb $0x2,-0x1b(%ebp)
80105251: 0f 85 89 00 00 00 jne 801052e0 <sys_open+0xd0>
if(ip == 0){
end_op();
return -1;
}
} else {
if((ip = namei(path)) == 0){
80105257: 83 ec 0c sub $0xc,%esp
8010525a: ff 75 e0 pushl -0x20(%ebp)
8010525d: e8 ce ce ff ff call 80102130 <namei>
80105262: 83 c4 10 add $0x10,%esp
80105265: 85 c0 test %eax,%eax
80105267: 89 c6 mov %eax,%esi
80105269: 0f 84 8e 00 00 00 je 801052fd <sys_open+0xed>
end_op();
return -1;
}
ilock(ip);
8010526f: 83 ec 0c sub $0xc,%esp
80105272: 50 push %eax
80105273: e8 68 c6 ff ff call 801018e0 <ilock>
if(ip->type == T_DIR && omode != O_RDONLY){
80105278: 83 c4 10 add $0x10,%esp
8010527b: 66 83 7e 50 01 cmpw $0x1,0x50(%esi)
80105280: 0f 84 d2 00 00 00 je 80105358 <sys_open+0x148>
end_op();
return -1;
}
}
if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){
80105286: e8 15 bc ff ff call 80100ea0 <filealloc>
8010528b: 85 c0 test %eax,%eax
8010528d: 89 c7 mov %eax,%edi
8010528f: 74 2b je 801052bc <sys_open+0xac>
fdalloc(struct file *f)
{
int fd;
struct proc *curproc = myproc();
for(fd = 0; fd < NOFILE; fd++){
80105291: 31 db xor %ebx,%ebx
// Takes over file reference from caller on success.
static int
fdalloc(struct file *f)
{
int fd;
struct proc *curproc = myproc();
80105293: e8 58 e7 ff ff call 801039f0 <myproc>
80105298: 90 nop
80105299: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
for(fd = 0; fd < NOFILE; fd++){
if(curproc->ofile[fd] == 0){
801052a0: 8b 54 98 28 mov 0x28(%eax,%ebx,4),%edx
801052a4: 85 d2 test %edx,%edx
801052a6: 74 68 je 80105310 <sys_open+0x100>
fdalloc(struct file *f)
{
int fd;
struct proc *curproc = myproc();
for(fd = 0; fd < NOFILE; fd++){
801052a8: 83 c3 01 add $0x1,%ebx
801052ab: 83 fb 10 cmp $0x10,%ebx
801052ae: 75 f0 jne 801052a0 <sys_open+0x90>
}
}
if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){
if(f)
fileclose(f);
801052b0: 83 ec 0c sub $0xc,%esp
801052b3: 57 push %edi
801052b4: e8 a7 bc ff ff call 80100f60 <fileclose>
801052b9: 83 c4 10 add $0x10,%esp
iunlockput(ip);
801052bc: 83 ec 0c sub $0xc,%esp
801052bf: 56 push %esi
801052c0: e8 ab c8 ff ff call 80101b70 <iunlockput>
end_op();
801052c5: e8 66 db ff ff call 80102e30 <end_op>
return -1;
801052ca: 83 c4 10 add $0x10,%esp
f->ip = ip;
f->off = 0;
f->readable = !(omode & O_WRONLY);
f->writable = (omode & O_WRONLY) || (omode & O_RDWR);
return fd;
}
801052cd: 8d 65 f4 lea -0xc(%ebp),%esp
if((f = filealloc()) == 0 || (fd = fdalloc(f)) < 0){
if(f)
fileclose(f);
iunlockput(ip);
end_op();
return -1;
801052d0: b8 ff ff ff ff mov $0xffffffff,%eax
f->ip = ip;
f->off = 0;
f->readable = !(omode & O_WRONLY);
f->writable = (omode & O_WRONLY) || (omode & O_RDWR);
return fd;
}
801052d5: 5b pop %ebx
801052d6: 5e pop %esi
801052d7: 5f pop %edi
801052d8: 5d pop %ebp
801052d9: c3 ret
801052da: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
return -1;
begin_op();
if(omode & O_CREATE){
ip = create(path, T_FILE, 0, 0);
801052e0: 83 ec 0c sub $0xc,%esp
801052e3: 8b 45 e0 mov -0x20(%ebp),%eax
801052e6: 31 c9 xor %ecx,%ecx
801052e8: 6a 00 push $0x0
801052ea: ba 02 00 00 00 mov $0x2,%edx
801052ef: e8 dc f7 ff ff call 80104ad0 <create>
if(ip == 0){
801052f4: 83 c4 10 add $0x10,%esp
801052f7: 85 c0 test %eax,%eax
return -1;
begin_op();
if(omode & O_CREATE){
ip = create(path, T_FILE, 0, 0);
801052f9: 89 c6 mov %eax,%esi
if(ip == 0){
801052fb: 75 89 jne 80105286 <sys_open+0x76>
end_op();
801052fd: e8 2e db ff ff call 80102e30 <end_op>
return -1;
80105302: b8 ff ff ff ff mov $0xffffffff,%eax
80105307: eb 43 jmp 8010534c <sys_open+0x13c>
80105309: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
fileclose(f);
iunlockput(ip);
end_op();
return -1;
}
iunlock(ip);
80105310: 83 ec 0c sub $0xc,%esp
int fd;
struct proc *curproc = myproc();
for(fd = 0; fd < NOFILE; fd++){
if(curproc->ofile[fd] == 0){
curproc->ofile[fd] = f;
80105313: 89 7c 98 28 mov %edi,0x28(%eax,%ebx,4)
fileclose(f);
iunlockput(ip);
end_op();
return -1;
}
iunlock(ip);
80105317: 56 push %esi
80105318: e8 a3 c6 ff ff call 801019c0 <iunlock>
end_op();
8010531d: e8 0e db ff ff call 80102e30 <end_op>
f->type = FD_INODE;
80105322: c7 07 02 00 00 00 movl $0x2,(%edi)
f->ip = ip;
f->off = 0;
f->readable = !(omode & O_WRONLY);
80105328: 8b 55 e4 mov -0x1c(%ebp),%edx
f->writable = (omode & O_WRONLY) || (omode & O_RDWR);
8010532b: 83 c4 10 add $0x10,%esp
}
iunlock(ip);
end_op();
f->type = FD_INODE;
f->ip = ip;
8010532e: 89 77 10 mov %esi,0x10(%edi)
f->off = 0;
80105331: c7 47 14 00 00 00 00 movl $0x0,0x14(%edi)
f->readable = !(omode & O_WRONLY);
80105338: 89 d0 mov %edx,%eax
8010533a: 83 e0 01 and $0x1,%eax
8010533d: 83 f0 01 xor $0x1,%eax
f->writable = (omode & O_WRONLY) || (omode & O_RDWR);
80105340: 83 e2 03 and $0x3,%edx
end_op();
f->type = FD_INODE;
f->ip = ip;
f->off = 0;
f->readable = !(omode & O_WRONLY);
80105343: 88 47 08 mov %al,0x8(%edi)
f->writable = (omode & O_WRONLY) || (omode & O_RDWR);
80105346: 0f 95 47 09 setne 0x9(%edi)
return fd;
8010534a: 89 d8 mov %ebx,%eax
}
8010534c: 8d 65 f4 lea -0xc(%ebp),%esp
8010534f: 5b pop %ebx
80105350: 5e pop %esi
80105351: 5f pop %edi
80105352: 5d pop %ebp
80105353: c3 ret
80105354: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if((ip = namei(path)) == 0){
end_op();
return -1;
}
ilock(ip);
if(ip->type == T_DIR && omode != O_RDONLY){
80105358: 8b 4d e4 mov -0x1c(%ebp),%ecx
8010535b: 85 c9 test %ecx,%ecx
8010535d: 0f 84 23 ff ff ff je 80105286 <sys_open+0x76>
80105363: e9 54 ff ff ff jmp 801052bc <sys_open+0xac>
80105368: 90 nop
80105369: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80105370 <sys_mkdir>:
return fd;
}
int
sys_mkdir(void)
{
80105370: 55 push %ebp
80105371: 89 e5 mov %esp,%ebp
80105373: 83 ec 18 sub $0x18,%esp
char *path;
struct inode *ip;
begin_op();
80105376: e8 45 da ff ff call 80102dc0 <begin_op>
if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){
8010537b: 8d 45 f4 lea -0xc(%ebp),%eax
8010537e: 83 ec 08 sub $0x8,%esp
80105381: 50 push %eax
80105382: 6a 00 push $0x0
80105384: e8 a7 f6 ff ff call 80104a30 <argstr>
80105389: 83 c4 10 add $0x10,%esp
8010538c: 85 c0 test %eax,%eax
8010538e: 78 30 js 801053c0 <sys_mkdir+0x50>
80105390: 83 ec 0c sub $0xc,%esp
80105393: 8b 45 f4 mov -0xc(%ebp),%eax
80105396: 31 c9 xor %ecx,%ecx
80105398: 6a 00 push $0x0
8010539a: ba 01 00 00 00 mov $0x1,%edx
8010539f: e8 2c f7 ff ff call 80104ad0 <create>
801053a4: 83 c4 10 add $0x10,%esp
801053a7: 85 c0 test %eax,%eax
801053a9: 74 15 je 801053c0 <sys_mkdir+0x50>
end_op();
return -1;
}
iunlockput(ip);
801053ab: 83 ec 0c sub $0xc,%esp
801053ae: 50 push %eax
801053af: e8 bc c7 ff ff call 80101b70 <iunlockput>
end_op();
801053b4: e8 77 da ff ff call 80102e30 <end_op>
return 0;
801053b9: 83 c4 10 add $0x10,%esp
801053bc: 31 c0 xor %eax,%eax
}
801053be: c9 leave
801053bf: c3 ret
char *path;
struct inode *ip;
begin_op();
if(argstr(0, &path) < 0 || (ip = create(path, T_DIR, 0, 0)) == 0){
end_op();
801053c0: e8 6b da ff ff call 80102e30 <end_op>
return -1;
801053c5: b8 ff ff ff ff mov $0xffffffff,%eax
}
iunlockput(ip);
end_op();
return 0;
}
801053ca: c9 leave
801053cb: c3 ret
801053cc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801053d0 <sys_mknod>:
int
sys_mknod(void)
{
801053d0: 55 push %ebp
801053d1: 89 e5 mov %esp,%ebp
801053d3: 83 ec 18 sub $0x18,%esp
struct inode *ip;
char *path;
int major, minor;
begin_op();
801053d6: e8 e5 d9 ff ff call 80102dc0 <begin_op>
if((argstr(0, &path)) < 0 ||
801053db: 8d 45 ec lea -0x14(%ebp),%eax
801053de: 83 ec 08 sub $0x8,%esp
801053e1: 50 push %eax
801053e2: 6a 00 push $0x0
801053e4: e8 47 f6 ff ff call 80104a30 <argstr>
801053e9: 83 c4 10 add $0x10,%esp
801053ec: 85 c0 test %eax,%eax
801053ee: 78 60 js 80105450 <sys_mknod+0x80>
argint(1, &major) < 0 ||
801053f0: 8d 45 f0 lea -0x10(%ebp),%eax
801053f3: 83 ec 08 sub $0x8,%esp
801053f6: 50 push %eax
801053f7: 6a 01 push $0x1
801053f9: e8 82 f5 ff ff call 80104980 <argint>
struct inode *ip;
char *path;
int major, minor;
begin_op();
if((argstr(0, &path)) < 0 ||
801053fe: 83 c4 10 add $0x10,%esp
80105401: 85 c0 test %eax,%eax
80105403: 78 4b js 80105450 <sys_mknod+0x80>
argint(1, &major) < 0 ||
argint(2, &minor) < 0 ||
80105405: 8d 45 f4 lea -0xc(%ebp),%eax
80105408: 83 ec 08 sub $0x8,%esp
8010540b: 50 push %eax
8010540c: 6a 02 push $0x2
8010540e: e8 6d f5 ff ff call 80104980 <argint>
char *path;
int major, minor;
begin_op();
if((argstr(0, &path)) < 0 ||
argint(1, &major) < 0 ||
80105413: 83 c4 10 add $0x10,%esp
80105416: 85 c0 test %eax,%eax
80105418: 78 36 js 80105450 <sys_mknod+0x80>
argint(2, &minor) < 0 ||
8010541a: 0f bf 45 f4 movswl -0xc(%ebp),%eax
8010541e: 83 ec 0c sub $0xc,%esp
80105421: 0f bf 4d f0 movswl -0x10(%ebp),%ecx
80105425: ba 03 00 00 00 mov $0x3,%edx
8010542a: 50 push %eax
8010542b: 8b 45 ec mov -0x14(%ebp),%eax
8010542e: e8 9d f6 ff ff call 80104ad0 <create>
80105433: 83 c4 10 add $0x10,%esp
80105436: 85 c0 test %eax,%eax
80105438: 74 16 je 80105450 <sys_mknod+0x80>
(ip = create(path, T_DEV, major, minor)) == 0){
end_op();
return -1;
}
iunlockput(ip);
8010543a: 83 ec 0c sub $0xc,%esp
8010543d: 50 push %eax
8010543e: e8 2d c7 ff ff call 80101b70 <iunlockput>
end_op();
80105443: e8 e8 d9 ff ff call 80102e30 <end_op>
return 0;
80105448: 83 c4 10 add $0x10,%esp
8010544b: 31 c0 xor %eax,%eax
}
8010544d: c9 leave
8010544e: c3 ret
8010544f: 90 nop
begin_op();
if((argstr(0, &path)) < 0 ||
argint(1, &major) < 0 ||
argint(2, &minor) < 0 ||
(ip = create(path, T_DEV, major, minor)) == 0){
end_op();
80105450: e8 db d9 ff ff call 80102e30 <end_op>
return -1;
80105455: b8 ff ff ff ff mov $0xffffffff,%eax
}
iunlockput(ip);
end_op();
return 0;
}
8010545a: c9 leave
8010545b: c3 ret
8010545c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80105460 <sys_chdir>:
int
sys_chdir(void)
{
80105460: 55 push %ebp
80105461: 89 e5 mov %esp,%ebp
80105463: 56 push %esi
80105464: 53 push %ebx
80105465: 83 ec 10 sub $0x10,%esp
char *path;
struct inode *ip;
struct proc *curproc = myproc();
80105468: e8 83 e5 ff ff call 801039f0 <myproc>
8010546d: 89 c6 mov %eax,%esi
begin_op();
8010546f: e8 4c d9 ff ff call 80102dc0 <begin_op>
if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){
80105474: 8d 45 f4 lea -0xc(%ebp),%eax
80105477: 83 ec 08 sub $0x8,%esp
8010547a: 50 push %eax
8010547b: 6a 00 push $0x0
8010547d: e8 ae f5 ff ff call 80104a30 <argstr>
80105482: 83 c4 10 add $0x10,%esp
80105485: 85 c0 test %eax,%eax
80105487: 78 77 js 80105500 <sys_chdir+0xa0>
80105489: 83 ec 0c sub $0xc,%esp
8010548c: ff 75 f4 pushl -0xc(%ebp)
8010548f: e8 9c cc ff ff call 80102130 <namei>
80105494: 83 c4 10 add $0x10,%esp
80105497: 85 c0 test %eax,%eax
80105499: 89 c3 mov %eax,%ebx
8010549b: 74 63 je 80105500 <sys_chdir+0xa0>
end_op();
return -1;
}
ilock(ip);
8010549d: 83 ec 0c sub $0xc,%esp
801054a0: 50 push %eax
801054a1: e8 3a c4 ff ff call 801018e0 <ilock>
if(ip->type != T_DIR){
801054a6: 83 c4 10 add $0x10,%esp
801054a9: 66 83 7b 50 01 cmpw $0x1,0x50(%ebx)
801054ae: 75 30 jne 801054e0 <sys_chdir+0x80>
iunlockput(ip);
end_op();
return -1;
}
iunlock(ip);
801054b0: 83 ec 0c sub $0xc,%esp
801054b3: 53 push %ebx
801054b4: e8 07 c5 ff ff call 801019c0 <iunlock>
iput(curproc->cwd);
801054b9: 58 pop %eax
801054ba: ff 76 68 pushl 0x68(%esi)
801054bd: e8 4e c5 ff ff call 80101a10 <iput>
end_op();
801054c2: e8 69 d9 ff ff call 80102e30 <end_op>
curproc->cwd = ip;
801054c7: 89 5e 68 mov %ebx,0x68(%esi)
return 0;
801054ca: 83 c4 10 add $0x10,%esp
801054cd: 31 c0 xor %eax,%eax
}
801054cf: 8d 65 f8 lea -0x8(%ebp),%esp
801054d2: 5b pop %ebx
801054d3: 5e pop %esi
801054d4: 5d pop %ebp
801054d5: c3 ret
801054d6: 8d 76 00 lea 0x0(%esi),%esi
801054d9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
end_op();
return -1;
}
ilock(ip);
if(ip->type != T_DIR){
iunlockput(ip);
801054e0: 83 ec 0c sub $0xc,%esp
801054e3: 53 push %ebx
801054e4: e8 87 c6 ff ff call 80101b70 <iunlockput>
end_op();
801054e9: e8 42 d9 ff ff call 80102e30 <end_op>
return -1;
801054ee: 83 c4 10 add $0x10,%esp
801054f1: b8 ff ff ff ff mov $0xffffffff,%eax
801054f6: eb d7 jmp 801054cf <sys_chdir+0x6f>
801054f8: 90 nop
801054f9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
struct inode *ip;
struct proc *curproc = myproc();
begin_op();
if(argstr(0, &path) < 0 || (ip = namei(path)) == 0){
end_op();
80105500: e8 2b d9 ff ff call 80102e30 <end_op>
return -1;
80105505: b8 ff ff ff ff mov $0xffffffff,%eax
8010550a: eb c3 jmp 801054cf <sys_chdir+0x6f>
8010550c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80105510 <sys_exec>:
return 0;
}
int
sys_exec(void)
{
80105510: 55 push %ebp
80105511: 89 e5 mov %esp,%ebp
80105513: 57 push %edi
80105514: 56 push %esi
80105515: 53 push %ebx
char *path, *argv[MAXARG];
int i;
uint uargv, uarg;
if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){
80105516: 8d 85 5c ff ff ff lea -0xa4(%ebp),%eax
return 0;
}
int
sys_exec(void)
{
8010551c: 81 ec a4 00 00 00 sub $0xa4,%esp
char *path, *argv[MAXARG];
int i;
uint uargv, uarg;
if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){
80105522: 50 push %eax
80105523: 6a 00 push $0x0
80105525: e8 06 f5 ff ff call 80104a30 <argstr>
8010552a: 83 c4 10 add $0x10,%esp
8010552d: 85 c0 test %eax,%eax
8010552f: 78 7f js 801055b0 <sys_exec+0xa0>
80105531: 8d 85 60 ff ff ff lea -0xa0(%ebp),%eax
80105537: 83 ec 08 sub $0x8,%esp
8010553a: 50 push %eax
8010553b: 6a 01 push $0x1
8010553d: e8 3e f4 ff ff call 80104980 <argint>
80105542: 83 c4 10 add $0x10,%esp
80105545: 85 c0 test %eax,%eax
80105547: 78 67 js 801055b0 <sys_exec+0xa0>
return -1;
}
memset(argv, 0, sizeof(argv));
80105549: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax
8010554f: 83 ec 04 sub $0x4,%esp
80105552: 8d b5 68 ff ff ff lea -0x98(%ebp),%esi
80105558: 68 80 00 00 00 push $0x80
8010555d: 6a 00 push $0x0
8010555f: 8d bd 64 ff ff ff lea -0x9c(%ebp),%edi
80105565: 50 push %eax
80105566: 31 db xor %ebx,%ebx
80105568: e8 03 f1 ff ff call 80104670 <memset>
8010556d: 83 c4 10 add $0x10,%esp
for(i=0;; i++){
if(i >= NELEM(argv))
return -1;
if(fetchint(uargv+4*i, (int*)&uarg) < 0)
80105570: 8b 85 60 ff ff ff mov -0xa0(%ebp),%eax
80105576: 83 ec 08 sub $0x8,%esp
80105579: 57 push %edi
8010557a: 8d 04 98 lea (%eax,%ebx,4),%eax
8010557d: 50 push %eax
8010557e: e8 5d f3 ff ff call 801048e0 <fetchint>
80105583: 83 c4 10 add $0x10,%esp
80105586: 85 c0 test %eax,%eax
80105588: 78 26 js 801055b0 <sys_exec+0xa0>
return -1;
if(uarg == 0){
8010558a: 8b 85 64 ff ff ff mov -0x9c(%ebp),%eax
80105590: 85 c0 test %eax,%eax
80105592: 74 2c je 801055c0 <sys_exec+0xb0>
argv[i] = 0;
break;
}
if(fetchstr(uarg, &argv[i]) < 0)
80105594: 83 ec 08 sub $0x8,%esp
80105597: 56 push %esi
80105598: 50 push %eax
80105599: e8 82 f3 ff ff call 80104920 <fetchstr>
8010559e: 83 c4 10 add $0x10,%esp
801055a1: 85 c0 test %eax,%eax
801055a3: 78 0b js 801055b0 <sys_exec+0xa0>
if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){
return -1;
}
memset(argv, 0, sizeof(argv));
for(i=0;; i++){
801055a5: 83 c3 01 add $0x1,%ebx
801055a8: 83 c6 04 add $0x4,%esi
if(i >= NELEM(argv))
801055ab: 83 fb 20 cmp $0x20,%ebx
801055ae: 75 c0 jne 80105570 <sys_exec+0x60>
}
if(fetchstr(uarg, &argv[i]) < 0)
return -1;
}
return exec(path, argv);
}
801055b0: 8d 65 f4 lea -0xc(%ebp),%esp
char *path, *argv[MAXARG];
int i;
uint uargv, uarg;
if(argstr(0, &path) < 0 || argint(1, (int*)&uargv) < 0){
return -1;
801055b3: b8 ff ff ff ff mov $0xffffffff,%eax
}
if(fetchstr(uarg, &argv[i]) < 0)
return -1;
}
return exec(path, argv);
}
801055b8: 5b pop %ebx
801055b9: 5e pop %esi
801055ba: 5f pop %edi
801055bb: 5d pop %ebp
801055bc: c3 ret
801055bd: 8d 76 00 lea 0x0(%esi),%esi
break;
}
if(fetchstr(uarg, &argv[i]) < 0)
return -1;
}
return exec(path, argv);
801055c0: 8d 85 68 ff ff ff lea -0x98(%ebp),%eax
801055c6: 83 ec 08 sub $0x8,%esp
if(i >= NELEM(argv))
return -1;
if(fetchint(uargv+4*i, (int*)&uarg) < 0)
return -1;
if(uarg == 0){
argv[i] = 0;
801055c9: c7 84 9d 68 ff ff ff movl $0x0,-0x98(%ebp,%ebx,4)
801055d0: 00 00 00 00
break;
}
if(fetchstr(uarg, &argv[i]) < 0)
return -1;
}
return exec(path, argv);
801055d4: 50 push %eax
801055d5: ff b5 5c ff ff ff pushl -0xa4(%ebp)
801055db: e8 40 b5 ff ff call 80100b20 <exec>
801055e0: 83 c4 10 add $0x10,%esp
}
801055e3: 8d 65 f4 lea -0xc(%ebp),%esp
801055e6: 5b pop %ebx
801055e7: 5e pop %esi
801055e8: 5f pop %edi
801055e9: 5d pop %ebp
801055ea: c3 ret
801055eb: 90 nop
801055ec: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801055f0 <sys_pipe>:
int
sys_pipe(void)
{
801055f0: 55 push %ebp
801055f1: 89 e5 mov %esp,%ebp
801055f3: 57 push %edi
801055f4: 56 push %esi
801055f5: 53 push %ebx
int *fd;
struct file *rf, *wf;
int fd0, fd1;
if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0)
801055f6: 8d 45 dc lea -0x24(%ebp),%eax
return exec(path, argv);
}
int
sys_pipe(void)
{
801055f9: 83 ec 20 sub $0x20,%esp
int *fd;
struct file *rf, *wf;
int fd0, fd1;
if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0)
801055fc: 6a 08 push $0x8
801055fe: 50 push %eax
801055ff: 6a 00 push $0x0
80105601: e8 ca f3 ff ff call 801049d0 <argptr>
80105606: 83 c4 10 add $0x10,%esp
80105609: 85 c0 test %eax,%eax
8010560b: 78 4a js 80105657 <sys_pipe+0x67>
return -1;
if(pipealloc(&rf, &wf) < 0)
8010560d: 8d 45 e4 lea -0x1c(%ebp),%eax
80105610: 83 ec 08 sub $0x8,%esp
80105613: 50 push %eax
80105614: 8d 45 e0 lea -0x20(%ebp),%eax
80105617: 50 push %eax
80105618: e8 43 de ff ff call 80103460 <pipealloc>
8010561d: 83 c4 10 add $0x10,%esp
80105620: 85 c0 test %eax,%eax
80105622: 78 33 js 80105657 <sys_pipe+0x67>
fdalloc(struct file *f)
{
int fd;
struct proc *curproc = myproc();
for(fd = 0; fd < NOFILE; fd++){
80105624: 31 db xor %ebx,%ebx
if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0)
return -1;
if(pipealloc(&rf, &wf) < 0)
return -1;
fd0 = -1;
if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){
80105626: 8b 7d e0 mov -0x20(%ebp),%edi
// Takes over file reference from caller on success.
static int
fdalloc(struct file *f)
{
int fd;
struct proc *curproc = myproc();
80105629: e8 c2 e3 ff ff call 801039f0 <myproc>
8010562e: 66 90 xchg %ax,%ax
for(fd = 0; fd < NOFILE; fd++){
if(curproc->ofile[fd] == 0){
80105630: 8b 74 98 28 mov 0x28(%eax,%ebx,4),%esi
80105634: 85 f6 test %esi,%esi
80105636: 74 30 je 80105668 <sys_pipe+0x78>
fdalloc(struct file *f)
{
int fd;
struct proc *curproc = myproc();
for(fd = 0; fd < NOFILE; fd++){
80105638: 83 c3 01 add $0x1,%ebx
8010563b: 83 fb 10 cmp $0x10,%ebx
8010563e: 75 f0 jne 80105630 <sys_pipe+0x40>
return -1;
fd0 = -1;
if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){
if(fd0 >= 0)
myproc()->ofile[fd0] = 0;
fileclose(rf);
80105640: 83 ec 0c sub $0xc,%esp
80105643: ff 75 e0 pushl -0x20(%ebp)
80105646: e8 15 b9 ff ff call 80100f60 <fileclose>
fileclose(wf);
8010564b: 58 pop %eax
8010564c: ff 75 e4 pushl -0x1c(%ebp)
8010564f: e8 0c b9 ff ff call 80100f60 <fileclose>
return -1;
80105654: 83 c4 10 add $0x10,%esp
}
fd[0] = fd0;
fd[1] = fd1;
return 0;
}
80105657: 8d 65 f4 lea -0xc(%ebp),%esp
if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){
if(fd0 >= 0)
myproc()->ofile[fd0] = 0;
fileclose(rf);
fileclose(wf);
return -1;
8010565a: b8 ff ff ff ff mov $0xffffffff,%eax
}
fd[0] = fd0;
fd[1] = fd1;
return 0;
}
8010565f: 5b pop %ebx
80105660: 5e pop %esi
80105661: 5f pop %edi
80105662: 5d pop %ebp
80105663: c3 ret
80105664: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
int fd;
struct proc *curproc = myproc();
for(fd = 0; fd < NOFILE; fd++){
if(curproc->ofile[fd] == 0){
curproc->ofile[fd] = f;
80105668: 8d 73 08 lea 0x8(%ebx),%esi
8010566b: 89 7c b0 08 mov %edi,0x8(%eax,%esi,4)
if(argptr(0, (void*)&fd, 2*sizeof(fd[0])) < 0)
return -1;
if(pipealloc(&rf, &wf) < 0)
return -1;
fd0 = -1;
if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){
8010566f: 8b 7d e4 mov -0x1c(%ebp),%edi
// Takes over file reference from caller on success.
static int
fdalloc(struct file *f)
{
int fd;
struct proc *curproc = myproc();
80105672: e8 79 e3 ff ff call 801039f0 <myproc>
for(fd = 0; fd < NOFILE; fd++){
80105677: 31 d2 xor %edx,%edx
80105679: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
if(curproc->ofile[fd] == 0){
80105680: 8b 4c 90 28 mov 0x28(%eax,%edx,4),%ecx
80105684: 85 c9 test %ecx,%ecx
80105686: 74 18 je 801056a0 <sys_pipe+0xb0>
fdalloc(struct file *f)
{
int fd;
struct proc *curproc = myproc();
for(fd = 0; fd < NOFILE; fd++){
80105688: 83 c2 01 add $0x1,%edx
8010568b: 83 fa 10 cmp $0x10,%edx
8010568e: 75 f0 jne 80105680 <sys_pipe+0x90>
if(pipealloc(&rf, &wf) < 0)
return -1;
fd0 = -1;
if((fd0 = fdalloc(rf)) < 0 || (fd1 = fdalloc(wf)) < 0){
if(fd0 >= 0)
myproc()->ofile[fd0] = 0;
80105690: e8 5b e3 ff ff call 801039f0 <myproc>
80105695: c7 44 b0 08 00 00 00 movl $0x0,0x8(%eax,%esi,4)
8010569c: 00
8010569d: eb a1 jmp 80105640 <sys_pipe+0x50>
8010569f: 90 nop
int fd;
struct proc *curproc = myproc();
for(fd = 0; fd < NOFILE; fd++){
if(curproc->ofile[fd] == 0){
curproc->ofile[fd] = f;
801056a0: 89 7c 90 28 mov %edi,0x28(%eax,%edx,4)
myproc()->ofile[fd0] = 0;
fileclose(rf);
fileclose(wf);
return -1;
}
fd[0] = fd0;
801056a4: 8b 45 dc mov -0x24(%ebp),%eax
801056a7: 89 18 mov %ebx,(%eax)
fd[1] = fd1;
801056a9: 8b 45 dc mov -0x24(%ebp),%eax
801056ac: 89 50 04 mov %edx,0x4(%eax)
return 0;
}
801056af: 8d 65 f4 lea -0xc(%ebp),%esp
fileclose(wf);
return -1;
}
fd[0] = fd0;
fd[1] = fd1;
return 0;
801056b2: 31 c0 xor %eax,%eax
}
801056b4: 5b pop %ebx
801056b5: 5e pop %esi
801056b6: 5f pop %edi
801056b7: 5d pop %ebp
801056b8: c3 ret
801056b9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801056c0 <sys_bstat>:
/* returns the number of swapped pages
*/
int
sys_bstat(void)
{
801056c0: 55 push %ebp
return numallocblocks;
}
801056c1: a1 5c b5 10 80 mov 0x8010b55c,%eax
/* returns the number of swapped pages
*/
int
sys_bstat(void)
{
801056c6: 89 e5 mov %esp,%ebp
return numallocblocks;
}
801056c8: 5d pop %ebp
801056c9: c3 ret
801056ca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801056d0 <sys_swap>:
/* swap system call handler.
*/
int
sys_swap(void)
{
801056d0: 55 push %ebp
801056d1: 89 e5 mov %esp,%ebp
801056d3: 83 ec 20 sub $0x20,%esp
uint addr;
if(argint(0, (int*)&addr) < 0)
801056d6: 8d 45 f4 lea -0xc(%ebp),%eax
801056d9: 50 push %eax
801056da: 6a 00 push $0x0
801056dc: e8 9f f2 ff ff call 80104980 <argint>
801056e1: 83 c4 10 add $0x10,%esp
801056e4: 85 c0 test %eax,%eax
801056e6: 78 20 js 80105708 <sys_swap+0x38>
return -1;
struct proc *curproc = myproc();
801056e8: e8 03 e3 ff ff call 801039f0 <myproc>
int b = swap_page(curproc->pgdir);
801056ed: 83 ec 0c sub $0xc,%esp
801056f0: ff 70 04 pushl 0x4(%eax)
801056f3: e8 b8 05 00 00 call 80105cb0 <swap_page>
if(b!=1)
801056f8: 83 c4 10 add $0x10,%esp
801056fb: 83 f8 01 cmp $0x1,%eax
801056fe: 75 0f jne 8010570f <sys_swap+0x3f>
panic("panic");
return 0;
80105700: 31 c0 xor %eax,%eax
}
80105702: c9 leave
80105703: c3 ret
80105704: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
int
sys_swap(void)
{
uint addr;
if(argint(0, (int*)&addr) < 0)
return -1;
80105708: b8 ff ff ff ff mov $0xffffffff,%eax
int b = swap_page(curproc->pgdir);
if(b!=1)
panic("panic");
return 0;
}
8010570d: c9 leave
8010570e: c3 ret
if(argint(0, (int*)&addr) < 0)
return -1;
struct proc *curproc = myproc();
int b = swap_page(curproc->pgdir);
if(b!=1)
panic("panic");
8010570f: 83 ec 0c sub $0xc,%esp
80105712: 68 a1 7d 10 80 push $0x80107da1
80105717: e8 84 ad ff ff call 801004a0 <panic>
8010571c: 66 90 xchg %ax,%ax
8010571e: 66 90 xchg %ax,%ax
80105720 <sys_fork>:
#include "mmu.h"
#include "proc.h"
int
sys_fork(void)
{
80105720: 55 push %ebp
80105721: 89 e5 mov %esp,%ebp
return fork();
}
80105723: 5d pop %ebp
#include "proc.h"
int
sys_fork(void)
{
return fork();
80105724: e9 37 e4 ff ff jmp 80103b60 <fork>
80105729: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80105730 <sys_exit>:
}
int
sys_exit(void)
{
80105730: 55 push %ebp
80105731: 89 e5 mov %esp,%ebp
80105733: 83 ec 08 sub $0x8,%esp
exit();
80105736: e8 b5 e6 ff ff call 80103df0 <exit>
return 0; // not reached
}
8010573b: 31 c0 xor %eax,%eax
8010573d: c9 leave
8010573e: c3 ret
8010573f: 90 nop
80105740 <sys_wait>:
int
sys_wait(void)
{
80105740: 55 push %ebp
80105741: 89 e5 mov %esp,%ebp
return wait();
}
80105743: 5d pop %ebp
}
int
sys_wait(void)
{
return wait();
80105744: e9 e7 e8 ff ff jmp 80104030 <wait>
80105749: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80105750 <sys_kill>:
}
int
sys_kill(void)
{
80105750: 55 push %ebp
80105751: 89 e5 mov %esp,%ebp
80105753: 83 ec 20 sub $0x20,%esp
int pid;
if(argint(0, &pid) < 0)
80105756: 8d 45 f4 lea -0xc(%ebp),%eax
80105759: 50 push %eax
8010575a: 6a 00 push $0x0
8010575c: e8 1f f2 ff ff call 80104980 <argint>
80105761: 83 c4 10 add $0x10,%esp
80105764: 85 c0 test %eax,%eax
80105766: 78 18 js 80105780 <sys_kill+0x30>
return -1;
return kill(pid);
80105768: 83 ec 0c sub $0xc,%esp
8010576b: ff 75 f4 pushl -0xc(%ebp)
8010576e: e8 2d ea ff ff call 801041a0 <kill>
80105773: 83 c4 10 add $0x10,%esp
}
80105776: c9 leave
80105777: c3 ret
80105778: 90 nop
80105779: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
sys_kill(void)
{
int pid;
if(argint(0, &pid) < 0)
return -1;
80105780: b8 ff ff ff ff mov $0xffffffff,%eax
return kill(pid);
}
80105785: c9 leave
80105786: c3 ret
80105787: 89 f6 mov %esi,%esi
80105789: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80105790 <sys_getpid>:
int
sys_getpid(void)
{
80105790: 55 push %ebp
80105791: 89 e5 mov %esp,%ebp
80105793: 83 ec 08 sub $0x8,%esp
return myproc()->pid;
80105796: e8 55 e2 ff ff call 801039f0 <myproc>
8010579b: 8b 40 10 mov 0x10(%eax),%eax
}
8010579e: c9 leave
8010579f: c3 ret
801057a0 <sys_sbrk>:
int
sys_sbrk(void)
{
801057a0: 55 push %ebp
801057a1: 89 e5 mov %esp,%ebp
801057a3: 53 push %ebx
int addr;
int n;
if(argint(0, &n) < 0)
801057a4: 8d 45 f4 lea -0xc(%ebp),%eax
return myproc()->pid;
}
int
sys_sbrk(void)
{
801057a7: 83 ec 1c sub $0x1c,%esp
int addr;
int n;
if(argint(0, &n) < 0)
801057aa: 50 push %eax
801057ab: 6a 00 push $0x0
801057ad: e8 ce f1 ff ff call 80104980 <argint>
801057b2: 83 c4 10 add $0x10,%esp
801057b5: 85 c0 test %eax,%eax
801057b7: 78 27 js 801057e0 <sys_sbrk+0x40>
return -1;
addr = myproc()->sz;
801057b9: e8 32 e2 ff ff call 801039f0 <myproc>
if(growproc(n) < 0)
801057be: 83 ec 0c sub $0xc,%esp
int addr;
int n;
if(argint(0, &n) < 0)
return -1;
addr = myproc()->sz;
801057c1: 8b 18 mov (%eax),%ebx
if(growproc(n) < 0)
801057c3: ff 75 f4 pushl -0xc(%ebp)
801057c6: e8 45 e3 ff ff call 80103b10 <growproc>
801057cb: 83 c4 10 add $0x10,%esp
801057ce: 85 c0 test %eax,%eax
801057d0: 78 0e js 801057e0 <sys_sbrk+0x40>
return -1;
return addr;
801057d2: 89 d8 mov %ebx,%eax
}
801057d4: 8b 5d fc mov -0x4(%ebp),%ebx
801057d7: c9 leave
801057d8: c3 ret
801057d9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
{
int addr;
int n;
if(argint(0, &n) < 0)
return -1;
801057e0: b8 ff ff ff ff mov $0xffffffff,%eax
801057e5: eb ed jmp 801057d4 <sys_sbrk+0x34>
801057e7: 89 f6 mov %esi,%esi
801057e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801057f0 <sys_sleep>:
return addr;
}
int
sys_sleep(void)
{
801057f0: 55 push %ebp
801057f1: 89 e5 mov %esp,%ebp
801057f3: 53 push %ebx
int n;
uint ticks0;
if(argint(0, &n) < 0)
801057f4: 8d 45 f4 lea -0xc(%ebp),%eax
return addr;
}
int
sys_sleep(void)
{
801057f7: 83 ec 1c sub $0x1c,%esp
int n;
uint ticks0;
if(argint(0, &n) < 0)
801057fa: 50 push %eax
801057fb: 6a 00 push $0x0
801057fd: e8 7e f1 ff ff call 80104980 <argint>
80105802: 83 c4 10 add $0x10,%esp
80105805: 85 c0 test %eax,%eax
80105807: 0f 88 8a 00 00 00 js 80105897 <sys_sleep+0xa7>
return -1;
acquire(&tickslock);
8010580d: 83 ec 0c sub $0xc,%esp
80105810: 68 60 5c 11 80 push $0x80115c60
80105815: e8 e6 ec ff ff call 80104500 <acquire>
ticks0 = ticks;
while(ticks - ticks0 < n){
8010581a: 8b 55 f4 mov -0xc(%ebp),%edx
8010581d: 83 c4 10 add $0x10,%esp
uint ticks0;
if(argint(0, &n) < 0)
return -1;
acquire(&tickslock);
ticks0 = ticks;
80105820: 8b 1d a0 64 11 80 mov 0x801164a0,%ebx
while(ticks - ticks0 < n){
80105826: 85 d2 test %edx,%edx
80105828: 75 27 jne 80105851 <sys_sleep+0x61>
8010582a: eb 54 jmp 80105880 <sys_sleep+0x90>
8010582c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
if(myproc()->killed){
release(&tickslock);
return -1;
}
sleep(&ticks, &tickslock);
80105830: 83 ec 08 sub $0x8,%esp
80105833: 68 60 5c 11 80 push $0x80115c60
80105838: 68 a0 64 11 80 push $0x801164a0
8010583d: e8 2e e7 ff ff call 80103f70 <sleep>
if(argint(0, &n) < 0)
return -1;
acquire(&tickslock);
ticks0 = ticks;
while(ticks - ticks0 < n){
80105842: a1 a0 64 11 80 mov 0x801164a0,%eax
80105847: 83 c4 10 add $0x10,%esp
8010584a: 29 d8 sub %ebx,%eax
8010584c: 3b 45 f4 cmp -0xc(%ebp),%eax
8010584f: 73 2f jae 80105880 <sys_sleep+0x90>
if(myproc()->killed){
80105851: e8 9a e1 ff ff call 801039f0 <myproc>
80105856: 8b 40 24 mov 0x24(%eax),%eax
80105859: 85 c0 test %eax,%eax
8010585b: 74 d3 je 80105830 <sys_sleep+0x40>
release(&tickslock);
8010585d: 83 ec 0c sub $0xc,%esp
80105860: 68 60 5c 11 80 push $0x80115c60
80105865: e8 b6 ed ff ff call 80104620 <release>
return -1;
8010586a: 83 c4 10 add $0x10,%esp
8010586d: b8 ff ff ff ff mov $0xffffffff,%eax
}
sleep(&ticks, &tickslock);
}
release(&tickslock);
return 0;
}
80105872: 8b 5d fc mov -0x4(%ebp),%ebx
80105875: c9 leave
80105876: c3 ret
80105877: 89 f6 mov %esi,%esi
80105879: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
release(&tickslock);
return -1;
}
sleep(&ticks, &tickslock);
}
release(&tickslock);
80105880: 83 ec 0c sub $0xc,%esp
80105883: 68 60 5c 11 80 push $0x80115c60
80105888: e8 93 ed ff ff call 80104620 <release>
return 0;
8010588d: 83 c4 10 add $0x10,%esp
80105890: 31 c0 xor %eax,%eax
}
80105892: 8b 5d fc mov -0x4(%ebp),%ebx
80105895: c9 leave
80105896: c3 ret
{
int n;
uint ticks0;
if(argint(0, &n) < 0)
return -1;
80105897: b8 ff ff ff ff mov $0xffffffff,%eax
8010589c: eb d4 jmp 80105872 <sys_sleep+0x82>
8010589e: 66 90 xchg %ax,%ax
801058a0 <sys_uptime>:
// return how many clock tick interrupts have occurred
// since start.
int
sys_uptime(void)
{
801058a0: 55 push %ebp
801058a1: 89 e5 mov %esp,%ebp
801058a3: 53 push %ebx
801058a4: 83 ec 10 sub $0x10,%esp
uint xticks;
acquire(&tickslock);
801058a7: 68 60 5c 11 80 push $0x80115c60
801058ac: e8 4f ec ff ff call 80104500 <acquire>
xticks = ticks;
801058b1: 8b 1d a0 64 11 80 mov 0x801164a0,%ebx
release(&tickslock);
801058b7: c7 04 24 60 5c 11 80 movl $0x80115c60,(%esp)
801058be: e8 5d ed ff ff call 80104620 <release>
return xticks;
}
801058c3: 89 d8 mov %ebx,%eax
801058c5: 8b 5d fc mov -0x4(%ebp),%ebx
801058c8: c9 leave
801058c9: c3 ret
801058ca <alltraps>:
# vectors.S sends all traps here.
.globl alltraps
alltraps:
# Build trap frame.
pushl %ds
801058ca: 1e push %ds
pushl %es
801058cb: 06 push %es
pushl %fs
801058cc: 0f a0 push %fs
pushl %gs
801058ce: 0f a8 push %gs
pushal
801058d0: 60 pusha
# Set up data segments.
movw $(SEG_KDATA<<3), %ax
801058d1: 66 b8 10 00 mov $0x10,%ax
movw %ax, %ds
801058d5: 8e d8 mov %eax,%ds
movw %ax, %es
801058d7: 8e c0 mov %eax,%es
# Call trap(tf), where tf=%esp
pushl %esp
801058d9: 54 push %esp
call trap
801058da: e8 e1 00 00 00 call 801059c0 <trap>
addl $4, %esp
801058df: 83 c4 04 add $0x4,%esp
801058e2 <trapret>:
# Return falls through to trapret...
.globl trapret
trapret:
popal
801058e2: 61 popa
popl %gs
801058e3: 0f a9 pop %gs
popl %fs
801058e5: 0f a1 pop %fs
popl %es
801058e7: 07 pop %es
popl %ds
801058e8: 1f pop %ds
addl $0x8, %esp # trapno and errcode
801058e9: 83 c4 08 add $0x8,%esp
iret
801058ec: cf iret
801058ed: 66 90 xchg %ax,%ax
801058ef: 90 nop
801058f0 <tvinit>:
void
tvinit(void)
{
int i;
for(i = 0; i < 256; i++)
801058f0: 31 c0 xor %eax,%eax
801058f2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0);
801058f8: 8b 14 85 08 b0 10 80 mov -0x7fef4ff8(,%eax,4),%edx
801058ff: b9 08 00 00 00 mov $0x8,%ecx
80105904: c6 04 c5 a4 5c 11 80 movb $0x0,-0x7feea35c(,%eax,8)
8010590b: 00
8010590c: 66 89 0c c5 a2 5c 11 mov %cx,-0x7feea35e(,%eax,8)
80105913: 80
80105914: c6 04 c5 a5 5c 11 80 movb $0x8e,-0x7feea35b(,%eax,8)
8010591b: 8e
8010591c: 66 89 14 c5 a0 5c 11 mov %dx,-0x7feea360(,%eax,8)
80105923: 80
80105924: c1 ea 10 shr $0x10,%edx
80105927: 66 89 14 c5 a6 5c 11 mov %dx,-0x7feea35a(,%eax,8)
8010592e: 80
void
tvinit(void)
{
int i;
for(i = 0; i < 256; i++)
8010592f: 83 c0 01 add $0x1,%eax
80105932: 3d 00 01 00 00 cmp $0x100,%eax
80105937: 75 bf jne 801058f8 <tvinit+0x8>
struct spinlock tickslock;
uint ticks;
void
tvinit(void)
{
80105939: 55 push %ebp
int i;
for(i = 0; i < 256; i++)
SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0);
SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER);
8010593a: ba 08 00 00 00 mov $0x8,%edx
struct spinlock tickslock;
uint ticks;
void
tvinit(void)
{
8010593f: 89 e5 mov %esp,%ebp
80105941: 83 ec 10 sub $0x10,%esp
int i;
for(i = 0; i < 256; i++)
SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0);
SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER);
80105944: a1 08 b1 10 80 mov 0x8010b108,%eax
initlock(&tickslock, "time");
80105949: 68 a7 7d 10 80 push $0x80107da7
8010594e: 68 60 5c 11 80 push $0x80115c60
{
int i;
for(i = 0; i < 256; i++)
SETGATE(idt[i], 0, SEG_KCODE<<3, vectors[i], 0);
SETGATE(idt[T_SYSCALL], 1, SEG_KCODE<<3, vectors[T_SYSCALL], DPL_USER);
80105953: 66 89 15 a2 5e 11 80 mov %dx,0x80115ea2
8010595a: c6 05 a4 5e 11 80 00 movb $0x0,0x80115ea4
80105961: 66 a3 a0 5e 11 80 mov %ax,0x80115ea0
80105967: c1 e8 10 shr $0x10,%eax
8010596a: c6 05 a5 5e 11 80 ef movb $0xef,0x80115ea5
80105971: 66 a3 a6 5e 11 80 mov %ax,0x80115ea6
initlock(&tickslock, "time");
80105977: e8 84 ea ff ff call 80104400 <initlock>
}
8010597c: 83 c4 10 add $0x10,%esp
8010597f: c9 leave
80105980: c3 ret
80105981: eb 0d jmp 80105990 <idtinit>
80105983: 90 nop
80105984: 90 nop
80105985: 90 nop
80105986: 90 nop
80105987: 90 nop
80105988: 90 nop
80105989: 90 nop
8010598a: 90 nop
8010598b: 90 nop
8010598c: 90 nop
8010598d: 90 nop
8010598e: 90 nop
8010598f: 90 nop
80105990 <idtinit>:
void
idtinit(void)
{
80105990: 55 push %ebp
static inline void
lidt(struct gatedesc *p, int size)
{
volatile ushort pd[3];
pd[0] = size-1;
80105991: b8 ff 07 00 00 mov $0x7ff,%eax
80105996: 89 e5 mov %esp,%ebp
80105998: 83 ec 10 sub $0x10,%esp
8010599b: 66 89 45 fa mov %ax,-0x6(%ebp)
pd[1] = (uint)p;
8010599f: b8 a0 5c 11 80 mov $0x80115ca0,%eax
801059a4: 66 89 45 fc mov %ax,-0x4(%ebp)
pd[2] = (uint)p >> 16;
801059a8: c1 e8 10 shr $0x10,%eax
801059ab: 66 89 45 fe mov %ax,-0x2(%ebp)
asm volatile("lidt (%0)" : : "r" (pd));
801059af: 8d 45 fa lea -0x6(%ebp),%eax
801059b2: 0f 01 18 lidtl (%eax)
lidt(idt, sizeof(idt));
}
801059b5: c9 leave
801059b6: c3 ret
801059b7: 89 f6 mov %esi,%esi
801059b9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801059c0 <trap>:
//PAGEBREAK: 41
void
trap(struct trapframe *tf)
{
801059c0: 55 push %ebp
801059c1: 89 e5 mov %esp,%ebp
801059c3: 57 push %edi
801059c4: 56 push %esi
801059c5: 53 push %ebx
801059c6: 83 ec 1c sub $0x1c,%esp
801059c9: 8b 7d 08 mov 0x8(%ebp),%edi
if(tf->trapno == T_SYSCALL){
801059cc: 8b 47 30 mov 0x30(%edi),%eax
801059cf: 83 f8 40 cmp $0x40,%eax
801059d2: 0f 84 98 01 00 00 je 80105b70 <trap+0x1b0>
if(myproc()->killed)
exit();
return;
}
switch(tf->trapno){
801059d8: 83 e8 0e sub $0xe,%eax
801059db: 83 f8 31 cmp $0x31,%eax
801059de: 77 10 ja 801059f0 <trap+0x30>
801059e0: ff 24 85 50 7e 10 80 jmp *-0x7fef81b0(,%eax,4)
801059e7: 89 f6 mov %esi,%esi
801059e9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
lapiceoi();
break;
//PAGEBREAK: 13
default:
if(myproc() == 0 || (tf->cs&3) == 0){
801059f0: e8 fb df ff ff call 801039f0 <myproc>
801059f5: 85 c0 test %eax,%eax
801059f7: 0f 84 e7 01 00 00 je 80105be4 <trap+0x224>
801059fd: f6 47 3c 03 testb $0x3,0x3c(%edi)
80105a01: 0f 84 dd 01 00 00 je 80105be4 <trap+0x224>
static inline uint
rcr2(void)
{
uint val;
asm volatile("movl %%cr2,%0" : "=r" (val));
80105a07: 0f 20 d1 mov %cr2,%ecx
cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n",
tf->trapno, cpuid(), tf->eip, rcr2());
panic("trap");
}
// In user space, assume process misbehaved.
cprintf("pid %d %s: trap %d err %d on cpu %d "
80105a0a: 8b 57 38 mov 0x38(%edi),%edx
80105a0d: 89 4d d8 mov %ecx,-0x28(%ebp)
80105a10: 89 55 dc mov %edx,-0x24(%ebp)
80105a13: e8 b8 df ff ff call 801039d0 <cpuid>
80105a18: 8b 77 34 mov 0x34(%edi),%esi
80105a1b: 8b 5f 30 mov 0x30(%edi),%ebx
80105a1e: 89 45 e4 mov %eax,-0x1c(%ebp)
"eip 0x%x addr 0x%x--kill proc\n",
myproc()->pid, myproc()->name, tf->trapno,
80105a21: e8 ca df ff ff call 801039f0 <myproc>
80105a26: 89 45 e0 mov %eax,-0x20(%ebp)
80105a29: e8 c2 df ff ff call 801039f0 <myproc>
cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n",
tf->trapno, cpuid(), tf->eip, rcr2());
panic("trap");
}
// In user space, assume process misbehaved.
cprintf("pid %d %s: trap %d err %d on cpu %d "
80105a2e: 8b 4d d8 mov -0x28(%ebp),%ecx
80105a31: 8b 55 dc mov -0x24(%ebp),%edx
80105a34: 51 push %ecx
80105a35: 52 push %edx
"eip 0x%x addr 0x%x--kill proc\n",
myproc()->pid, myproc()->name, tf->trapno,
80105a36: 8b 55 e0 mov -0x20(%ebp),%edx
cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n",
tf->trapno, cpuid(), tf->eip, rcr2());
panic("trap");
}
// In user space, assume process misbehaved.
cprintf("pid %d %s: trap %d err %d on cpu %d "
80105a39: ff 75 e4 pushl -0x1c(%ebp)
80105a3c: 56 push %esi
80105a3d: 53 push %ebx
"eip 0x%x addr 0x%x--kill proc\n",
myproc()->pid, myproc()->name, tf->trapno,
80105a3e: 83 c2 6c add $0x6c,%edx
cprintf("unexpected trap %d from cpu %d eip %x (cr2=0x%x)\n",
tf->trapno, cpuid(), tf->eip, rcr2());
panic("trap");
}
// In user space, assume process misbehaved.
cprintf("pid %d %s: trap %d err %d on cpu %d "
80105a41: 52 push %edx
80105a42: ff 70 10 pushl 0x10(%eax)
80105a45: 68 0c 7e 10 80 push $0x80107e0c
80105a4a: e8 41 ad ff ff call 80100790 <cprintf>
"eip 0x%x addr 0x%x--kill proc\n",
myproc()->pid, myproc()->name, tf->trapno,
tf->err, cpuid(), tf->eip, rcr2());
myproc()->killed = 1;
80105a4f: 83 c4 20 add $0x20,%esp
80105a52: e8 99 df ff ff call 801039f0 <myproc>
80105a57: c7 40 24 01 00 00 00 movl $0x1,0x24(%eax)
80105a5e: 66 90 xchg %ax,%ax
}
// 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(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER)
80105a60: e8 8b df ff ff call 801039f0 <myproc>
80105a65: 85 c0 test %eax,%eax
80105a67: 74 0c je 80105a75 <trap+0xb5>
80105a69: e8 82 df ff ff call 801039f0 <myproc>
80105a6e: 8b 50 24 mov 0x24(%eax),%edx
80105a71: 85 d2 test %edx,%edx
80105a73: 75 4b jne 80105ac0 <trap+0x100>
exit();
// Force process to give up CPU on clock tick.
// If interrupts were on while locks held, would need to check nlock.
if(myproc() && myproc()->state == RUNNING &&
80105a75: e8 76 df ff ff call 801039f0 <myproc>
80105a7a: 85 c0 test %eax,%eax
80105a7c: 74 0b je 80105a89 <trap+0xc9>
80105a7e: e8 6d df ff ff call 801039f0 <myproc>
80105a83: 83 78 0c 04 cmpl $0x4,0xc(%eax)
80105a87: 74 4f je 80105ad8 <trap+0x118>
tf->trapno == T_IRQ0+IRQ_TIMER)
yield();
// Check if the process has been killed since we yielded
if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER)
80105a89: e8 62 df ff ff call 801039f0 <myproc>
80105a8e: 85 c0 test %eax,%eax
80105a90: 74 1d je 80105aaf <trap+0xef>
80105a92: e8 59 df ff ff call 801039f0 <myproc>
80105a97: 8b 40 24 mov 0x24(%eax),%eax
80105a9a: 85 c0 test %eax,%eax
80105a9c: 74 11 je 80105aaf <trap+0xef>
80105a9e: 0f b7 47 3c movzwl 0x3c(%edi),%eax
80105aa2: 83 e0 03 and $0x3,%eax
80105aa5: 66 83 f8 03 cmp $0x3,%ax
80105aa9: 0f 84 ea 00 00 00 je 80105b99 <trap+0x1d9>
exit();
}
80105aaf: 8d 65 f4 lea -0xc(%ebp),%esp
80105ab2: 5b pop %ebx
80105ab3: 5e pop %esi
80105ab4: 5f pop %edi
80105ab5: 5d pop %ebp
80105ab6: c3 ret
80105ab7: 89 f6 mov %esi,%esi
80105ab9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
}
// 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(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER)
80105ac0: 0f b7 47 3c movzwl 0x3c(%edi),%eax
80105ac4: 83 e0 03 and $0x3,%eax
80105ac7: 66 83 f8 03 cmp $0x3,%ax
80105acb: 75 a8 jne 80105a75 <trap+0xb5>
exit();
80105acd: e8 1e e3 ff ff call 80103df0 <exit>
80105ad2: eb a1 jmp 80105a75 <trap+0xb5>
80105ad4: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
// Force process to give up CPU on clock tick.
// If interrupts were on while locks held, would need to check nlock.
if(myproc() && myproc()->state == RUNNING &&
80105ad8: 83 7f 30 20 cmpl $0x20,0x30(%edi)
80105adc: 75 ab jne 80105a89 <trap+0xc9>
tf->trapno == T_IRQ0+IRQ_TIMER)
yield();
80105ade: e8 3d e4 ff ff call 80103f20 <yield>
80105ae3: eb a4 jmp 80105a89 <trap+0xc9>
80105ae5: 8d 76 00 lea 0x0(%esi),%esi
return;
}
switch(tf->trapno){
case T_PGFLT:
handle_pgfault();
80105ae8: e8 83 03 00 00 call 80105e70 <handle_pgfault>
break;
80105aed: e9 6e ff ff ff jmp 80105a60 <trap+0xa0>
80105af2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
case T_IRQ0 + IRQ_TIMER:
if(cpuid() == 0){
80105af8: e8 d3 de ff ff call 801039d0 <cpuid>
80105afd: 85 c0 test %eax,%eax
80105aff: 0f 84 ab 00 00 00 je 80105bb0 <trap+0x1f0>
}
lapiceoi();
break;
case T_IRQ0 + IRQ_IDE:
ideintr();
lapiceoi();
80105b05: e8 76 ce ff ff call 80102980 <lapiceoi>
break;
80105b0a: e9 51 ff ff ff jmp 80105a60 <trap+0xa0>
80105b0f: 90 nop
case T_IRQ0 + IRQ_IDE+1:
// Bochs generates spurious IDE1 interrupts.
break;
case T_IRQ0 + IRQ_KBD:
kbdintr();
80105b10: e8 2b cd ff ff call 80102840 <kbdintr>
lapiceoi();
80105b15: e8 66 ce ff ff call 80102980 <lapiceoi>
break;
80105b1a: e9 41 ff ff ff jmp 80105a60 <trap+0xa0>
80105b1f: 90 nop
case T_IRQ0 + IRQ_COM1:
uartintr();
80105b20: e8 eb 04 00 00 call 80106010 <uartintr>
lapiceoi();
80105b25: e8 56 ce ff ff call 80102980 <lapiceoi>
break;
80105b2a: e9 31 ff ff ff jmp 80105a60 <trap+0xa0>
80105b2f: 90 nop
case T_IRQ0 + 7:
case T_IRQ0 + IRQ_SPURIOUS:
cprintf("cpu%d: spurious interrupt at %x:%x\n",
80105b30: 0f b7 5f 3c movzwl 0x3c(%edi),%ebx
80105b34: 8b 77 38 mov 0x38(%edi),%esi
80105b37: e8 94 de ff ff call 801039d0 <cpuid>
80105b3c: 56 push %esi
80105b3d: 53 push %ebx
80105b3e: 50 push %eax
80105b3f: 68 b4 7d 10 80 push $0x80107db4
80105b44: e8 47 ac ff ff call 80100790 <cprintf>
cpuid(), tf->cs, tf->eip);
lapiceoi();
80105b49: e8 32 ce ff ff call 80102980 <lapiceoi>
break;
80105b4e: 83 c4 10 add $0x10,%esp
80105b51: e9 0a ff ff ff jmp 80105a60 <trap+0xa0>
80105b56: 8d 76 00 lea 0x0(%esi),%esi
80105b59: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
release(&tickslock);
}
lapiceoi();
break;
case T_IRQ0 + IRQ_IDE:
ideintr();
80105b60: e8 5b c7 ff ff call 801022c0 <ideintr>
80105b65: eb 9e jmp 80105b05 <trap+0x145>
80105b67: 89 f6 mov %esi,%esi
80105b69: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
//PAGEBREAK: 41
void
trap(struct trapframe *tf)
{
if(tf->trapno == T_SYSCALL){
if(myproc()->killed)
80105b70: e8 7b de ff ff call 801039f0 <myproc>
80105b75: 8b 58 24 mov 0x24(%eax),%ebx
80105b78: 85 db test %ebx,%ebx
80105b7a: 75 2c jne 80105ba8 <trap+0x1e8>
exit();
myproc()->tf = tf;
80105b7c: e8 6f de ff ff call 801039f0 <myproc>
80105b81: 89 78 18 mov %edi,0x18(%eax)
syscall();
80105b84: e8 e7 ee ff ff call 80104a70 <syscall>
if(myproc()->killed)
80105b89: e8 62 de ff ff call 801039f0 <myproc>
80105b8e: 8b 48 24 mov 0x24(%eax),%ecx
80105b91: 85 c9 test %ecx,%ecx
80105b93: 0f 84 16 ff ff ff je 80105aaf <trap+0xef>
yield();
// Check if the process has been killed since we yielded
if(myproc() && myproc()->killed && (tf->cs&3) == DPL_USER)
exit();
}
80105b99: 8d 65 f4 lea -0xc(%ebp),%esp
80105b9c: 5b pop %ebx
80105b9d: 5e pop %esi
80105b9e: 5f pop %edi
80105b9f: 5d pop %ebp
if(myproc()->killed)
exit();
myproc()->tf = tf;
syscall();
if(myproc()->killed)
exit();
80105ba0: e9 4b e2 ff ff jmp 80103df0 <exit>
80105ba5: 8d 76 00 lea 0x0(%esi),%esi
void
trap(struct trapframe *tf)
{
if(tf->trapno == T_SYSCALL){
if(myproc()->killed)
exit();
80105ba8: e8 43 e2 ff ff call 80103df0 <exit>
80105bad: eb cd jmp 80105b7c <trap+0x1bc>
80105baf: 90 nop
case T_PGFLT:
handle_pgfault();
break;
case T_IRQ0 + IRQ_TIMER:
if(cpuid() == 0){
acquire(&tickslock);
80105bb0: 83 ec 0c sub $0xc,%esp
80105bb3: 68 60 5c 11 80 push $0x80115c60
80105bb8: e8 43 e9 ff ff call 80104500 <acquire>
ticks++;
wakeup(&ticks);
80105bbd: c7 04 24 a0 64 11 80 movl $0x801164a0,(%esp)
handle_pgfault();
break;
case T_IRQ0 + IRQ_TIMER:
if(cpuid() == 0){
acquire(&tickslock);
ticks++;
80105bc4: 83 05 a0 64 11 80 01 addl $0x1,0x801164a0
wakeup(&ticks);
80105bcb: e8 70 e5 ff ff call 80104140 <wakeup>
release(&tickslock);
80105bd0: c7 04 24 60 5c 11 80 movl $0x80115c60,(%esp)
80105bd7: e8 44 ea ff ff call 80104620 <release>
80105bdc: 83 c4 10 add $0x10,%esp
80105bdf: e9 21 ff ff ff jmp 80105b05 <trap+0x145>
80105be4: 0f 20 d6 mov %cr2,%esi
//PAGEBREAK: 13
default:
if(myproc() == 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",
80105be7: 8b 5f 38 mov 0x38(%edi),%ebx
80105bea: e8 e1 dd ff ff call 801039d0 <cpuid>
80105bef: 83 ec 0c sub $0xc,%esp
80105bf2: 56 push %esi
80105bf3: 53 push %ebx
80105bf4: 50 push %eax
80105bf5: ff 77 30 pushl 0x30(%edi)
80105bf8: 68 d8 7d 10 80 push $0x80107dd8
80105bfd: e8 8e ab ff ff call 80100790 <cprintf>
tf->trapno, cpuid(), tf->eip, rcr2());
panic("trap");
80105c02: 83 c4 14 add $0x14,%esp
80105c05: 68 ac 7d 10 80 push $0x80107dac
80105c0a: e8 91 a8 ff ff call 801004a0 <panic>
80105c0f: 90 nop
80105c10 <swap_page_from_pte>:
*/
void
swap_page_from_pte(pte_t *pte)
{
80105c10: 55 push %ebp
80105c11: 89 e5 mov %esp,%ebp
80105c13: 57 push %edi
80105c14: 56 push %esi
80105c15: 53 push %ebx
//cprintf("Value of pte %d\n",*pte);
uint mem=balloc_page(ROOTDEV);
//cprintf("Value of mem before shifting%d\n",mem);
char memo[PGSIZE]= "";
80105c16: 8d bd ec ef ff ff lea -0x1014(%ebp),%edi
*/
void
swap_page_from_pte(pte_t *pte)
{
80105c1c: 81 ec 28 10 00 00 sub $0x1028,%esp
80105c22: 8b 75 08 mov 0x8(%ebp),%esi
//cprintf("Value of pte %d\n",*pte);
uint mem=balloc_page(ROOTDEV);
80105c25: 6a 01 push $0x1
80105c27: e8 64 b9 ff ff call 80101590 <balloc_page>
//cprintf("Value of mem before shifting%d\n",mem);
char memo[PGSIZE]= "";
80105c2c: b9 ff 03 00 00 mov $0x3ff,%ecx
void
swap_page_from_pte(pte_t *pte)
{
//cprintf("Value of pte %d\n",*pte);
uint mem=balloc_page(ROOTDEV);
80105c31: 89 c3 mov %eax,%ebx
//cprintf("Value of mem before shifting%d\n",mem);
char memo[PGSIZE]= "";
80105c33: 31 c0 xor %eax,%eax
80105c35: f3 ab rep stos %eax,%es:(%edi)
uint pa = PTE_ADDR(*pte);
80105c37: 8b 3e mov (%esi),%edi
memmove(memo, (char*)pa, PGSIZE);
80105c39: 8d 95 e8 ef ff ff lea -0x1018(%ebp),%edx
80105c3f: 83 c4 0c add $0xc,%esp
80105c42: 68 00 10 00 00 push $0x1000
swap_page_from_pte(pte_t *pte)
{
//cprintf("Value of pte %d\n",*pte);
uint mem=balloc_page(ROOTDEV);
//cprintf("Value of mem before shifting%d\n",mem);
char memo[PGSIZE]= "";
80105c47: c7 85 e8 ef ff ff 00 movl $0x0,-0x1018(%ebp)
80105c4e: 00 00 00
uint pa = PTE_ADDR(*pte);
memmove(memo, (char*)pa, PGSIZE);
80105c51: 89 95 e4 ef ff ff mov %edx,-0x101c(%ebp)
{
//cprintf("Value of pte %d\n",*pte);
uint mem=balloc_page(ROOTDEV);
//cprintf("Value of mem before shifting%d\n",mem);
char memo[PGSIZE]= "";
uint pa = PTE_ADDR(*pte);
80105c57: 81 e7 00 f0 ff ff and $0xfffff000,%edi
memmove(memo, (char*)pa, PGSIZE);
80105c5d: 57 push %edi
80105c5e: 52 push %edx
80105c5f: e8 bc ea ff ff call 80104720 <memmove>
write_page_to_disk(ROOTDEV, memo,mem);
80105c64: 8b 95 e4 ef ff ff mov -0x101c(%ebp),%edx
80105c6a: 83 c4 0c add $0xc,%esp
80105c6d: 53 push %ebx
mem=mem<<12;
//cprintf("Value of mem after shifting %d\n",mem);
*pte = mem| PTE_PS ;
80105c6e: c1 e3 0c shl $0xc,%ebx
80105c71: 80 cb 80 or $0x80,%bl
uint mem=balloc_page(ROOTDEV);
//cprintf("Value of mem before shifting%d\n",mem);
char memo[PGSIZE]= "";
uint pa = PTE_ADDR(*pte);
memmove(memo, (char*)pa, PGSIZE);
write_page_to_disk(ROOTDEV, memo,mem);
80105c74: 52 push %edx
80105c75: 6a 01 push $0x1
80105c77: e8 f4 a5 ff ff call 80100270 <write_page_to_disk>
mem=mem<<12;
//cprintf("Value of mem after shifting %d\n",mem);
*pte = mem| PTE_PS ;
80105c7c: 89 1e mov %ebx,(%esi)
asm volatile ( "invlpg (%0)" : : "b"((unsigned long)(P2V(pa))) : "memory" );
80105c7e: 8d 9f 00 00 00 80 lea -0x80000000(%edi),%ebx
80105c84: 0f 01 3b invlpg (%ebx)
kfree((P2V(pa)));
80105c87: 89 1c 24 mov %ebx,(%esp)
80105c8a: e8 c1 c8 ff ff call 80102550 <kfree>
//cprintf("Value of pte afterswap %d\n",*pte);
if(*pte & PTE_P)
80105c8f: 83 c4 10 add $0x10,%esp
80105c92: f6 06 01 testb $0x1,(%esi)
80105c95: 75 08 jne 80105c9f <swap_page_from_pte+0x8f>
panic("Swap not done");
}
80105c97: 8d 65 f4 lea -0xc(%ebp),%esp
80105c9a: 5b pop %ebx
80105c9b: 5e pop %esi
80105c9c: 5f pop %edi
80105c9d: 5d pop %ebp
80105c9e: c3 ret
*pte = mem| PTE_PS ;
asm volatile ( "invlpg (%0)" : : "b"((unsigned long)(P2V(pa))) : "memory" );
kfree((P2V(pa)));
//cprintf("Value of pte afterswap %d\n",*pte);
if(*pte & PTE_P)
panic("Swap not done");
80105c9f: 83 ec 0c sub $0xc,%esp
80105ca2: 68 18 7f 10 80 push $0x80107f18
80105ca7: e8 f4 a7 ff ff call 801004a0 <panic>
80105cac: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80105cb0 <swap_page>:
/* Select a victim and swap the contents to the disk.
*/
int
swap_page(pde_t *pgdir)
{
80105cb0: 55 push %ebp
80105cb1: 89 e5 mov %esp,%ebp
80105cb3: 56 push %esi
80105cb4: 53 push %ebx
80105cb5: 8b 75 08 mov 0x8(%ebp),%esi
cprintf("inside swap_page\n");
80105cb8: 83 ec 0c sub $0xc,%esp
80105cbb: 68 26 7f 10 80 push $0x80107f26
80105cc0: e8 cb aa ff ff call 80100790 <cprintf>
pte_t *pte = select_a_victim(pgdir);
80105cc5: 89 34 24 mov %esi,(%esp)
80105cc8: e8 83 15 00 00 call 80107250 <select_a_victim>
//pte = select_a_victim(pgdir);
cprintf("Value of pte after selecting victim%d\n",*pte);
80105ccd: 59 pop %ecx
80105cce: 5a pop %edx
80105ccf: ff 30 pushl (%eax)
80105cd1: 68 c4 7f 10 80 push $0x80107fc4
*/
int
swap_page(pde_t *pgdir)
{
cprintf("inside swap_page\n");
pte_t *pte = select_a_victim(pgdir);
80105cd6: 89 c3 mov %eax,%ebx
//pte = select_a_victim(pgdir);
cprintf("Value of pte after selecting victim%d\n",*pte);
80105cd8: e8 b3 aa ff ff call 80100790 <cprintf>
if(*pte==0)
80105cdd: 8b 03 mov (%ebx),%eax
80105cdf: 83 c4 10 add $0x10,%esp
80105ce2: 85 c0 test %eax,%eax
80105ce4: 75 18 jne 80105cfe <swap_page+0x4e>
{
clearaccessbit(pgdir);
80105ce6: 83 ec 0c sub $0xc,%esp
80105ce9: 56 push %esi
80105cea: e8 b1 15 00 00 call 801072a0 <clearaccessbit>
pte = select_a_victim(pgdir);
80105cef: 89 34 24 mov %esi,(%esp)
80105cf2: e8 59 15 00 00 call 80107250 <select_a_victim>
80105cf7: 89 c3 mov %eax,%ebx
80105cf9: 8b 00 mov (%eax),%eax
80105cfb: 83 c4 10 add $0x10,%esp
}
cprintf("Selecting a victim again %d\n",*pte);
80105cfe: 83 ec 08 sub $0x8,%esp
80105d01: 50 push %eax
80105d02: 68 38 7f 10 80 push $0x80107f38
80105d07: e8 84 aa ff ff call 80100790 <cprintf>
swap_page_from_pte(pte);
80105d0c: 89 1c 24 mov %ebx,(%esp)
80105d0f: e8 fc fe ff ff call 80105c10 <swap_page_from_pte>
cprintf("Verfying value %d\n",*pte);
80105d14: 58 pop %eax
80105d15: 5a pop %edx
80105d16: ff 33 pushl (%ebx)
80105d18: 68 55 7f 10 80 push $0x80107f55
80105d1d: e8 6e aa ff ff call 80100790 <cprintf>
return 1;
}
80105d22: 8d 65 f8 lea -0x8(%ebp),%esp
80105d25: b8 01 00 00 00 mov $0x1,%eax
80105d2a: 5b pop %ebx
80105d2b: 5e pop %esi
80105d2c: 5d pop %ebp
80105d2d: c3 ret
80105d2e: 66 90 xchg %ax,%ax
80105d30 <map_address>:
* restore the content of the page from the swapped
* block and free the swapped block.
*/
void
map_address(pde_t *pgdir, uint addr)
{
80105d30: 55 push %ebp
80105d31: 89 e5 mov %esp,%ebp
80105d33: 57 push %edi
80105d34: 56 push %esi
80105d35: 53 push %ebx
80105d36: 83 ec 14 sub $0x14,%esp
80105d39: 8b 5d 0c mov 0xc(%ebp),%ebx
80105d3c: 8b 75 08 mov 0x8(%ebp),%esi
cprintf("\nVA %d\n",addr);
80105d3f: 53 push %ebx
80105d40: 68 69 7f 10 80 push $0x80107f69
80105d45: e8 46 aa ff ff call 80100790 <cprintf>
walkpgdir(pde_t *pgdir, const void *va, int alloc)
{
pde_t *pde;
pte_t *pgtab;
pde = &pgdir[PDX(va)];
80105d4a: 89 d8 mov %ebx,%eax
if(*pde & PTE_P){
80105d4c: 83 c4 10 add $0x10,%esp
walkpgdir(pde_t *pgdir, const void *va, int alloc)
{
pde_t *pde;
pte_t *pgtab;
pde = &pgdir[PDX(va)];
80105d4f: c1 e8 16 shr $0x16,%eax
80105d52: 8d 3c 86 lea (%esi,%eax,4),%edi
if(*pde & PTE_P){
80105d55: f6 07 01 testb $0x1,(%edi)
80105d58: 75 0e jne 80105d68 <map_address+0x38>
map_address(pde_t *pgdir, uint addr)
{
cprintf("\nVA %d\n",addr);
pte_t *pte;
pte = walkpgdir(pgdir, (char*)addr, 0);
cprintf("pte value%d\n",*pte);
80105d5a: a1 00 00 00 00 mov 0x0,%eax
80105d5f: 0f 0b ud2
80105d61: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
pde_t *pde;
pte_t *pgtab;
pde = &pgdir[PDX(va)];
if(*pde & PTE_P){
cprintf("inside walkpgdir\n");
80105d68: 83 ec 0c sub $0xc,%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;
}
return &pgtab[PTX(va)];
80105d6b: c1 eb 0a shr $0xa,%ebx
pde_t *pde;
pte_t *pgtab;
pde = &pgdir[PDX(va)];
if(*pde & PTE_P){
cprintf("inside walkpgdir\n");
80105d6e: 68 71 7f 10 80 push $0x80107f71
// 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;
}
return &pgtab[PTX(va)];
80105d73: 81 e3 fc 0f 00 00 and $0xffc,%ebx
pde_t *pde;
pte_t *pgtab;
pde = &pgdir[PDX(va)];
if(*pde & PTE_P){
cprintf("inside walkpgdir\n");
80105d79: e8 12 aa ff ff call 80100790 <cprintf>
// 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;
}
return &pgtab[PTX(va)];
80105d7e: 8b 07 mov (%edi),%eax
map_address(pde_t *pgdir, uint addr)
{
cprintf("\nVA %d\n",addr);
pte_t *pte;
pte = walkpgdir(pgdir, (char*)addr, 0);
cprintf("pte value%d\n",*pte);
80105d80: 59 pop %ecx
// 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;
}
return &pgtab[PTX(va)];
80105d81: 25 00 f0 ff ff and $0xfffff000,%eax
80105d86: 8d bc 18 00 00 00 80 lea -0x80000000(%eax,%ebx,1),%edi
map_address(pde_t *pgdir, uint addr)
{
cprintf("\nVA %d\n",addr);
pte_t *pte;
pte = walkpgdir(pgdir, (char*)addr, 0);
cprintf("pte value%d\n",*pte);
80105d8d: 5b pop %ebx
80105d8e: ff 37 pushl (%edi)
80105d90: 68 83 7f 10 80 push $0x80107f83
80105d95: e8 f6 a9 ff ff call 80100790 <cprintf>
if(*pte & PTE_PS)
80105d9a: 83 c4 10 add $0x10,%esp
80105d9d: f6 07 80 testb $0x80,(%edi)
80105da0: 0f 85 9c 00 00 00 jne 80105e42 <map_address+0x112>
}
}
else
{
char *kva;
kva = kalloc();
80105da6: e8 55 c9 ff ff call 80102700 <kalloc>
if(kva==0)
80105dab: 85 c0 test %eax,%eax
}
}
else
{
char *kva;
kva = kalloc();
80105dad: 89 c3 mov %eax,%ebx
if(kva==0)
80105daf: 74 37 je 80105de8 <map_address+0xb8>
cprintf("pte value%d\n",*pte);
cprintf("New entry set\n");
}
else
{
memset(kva,0,PGSIZE);
80105db1: 83 ec 04 sub $0x4,%esp
*pte = V2P(kva) | PTE_P | PTE_W | PTE_U ;
80105db4: 81 c3 00 00 00 80 add $0x80000000,%ebx
cprintf("pte value%d\n",*pte);
cprintf("New entry set\n");
}
else
{
memset(kva,0,PGSIZE);
80105dba: 68 00 10 00 00 push $0x1000
80105dbf: 6a 00 push $0x0
*pte = V2P(kva) | PTE_P | PTE_W | PTE_U ;
80105dc1: 83 cb 07 or $0x7,%ebx
cprintf("pte value%d\n",*pte);
cprintf("New entry set\n");
}
else
{
memset(kva,0,PGSIZE);
80105dc4: 50 push %eax
80105dc5: e8 a6 e8 ff ff call 80104670 <memset>
*pte = V2P(kva) | PTE_P | PTE_W | PTE_U ;
80105dca: 89 1f mov %ebx,(%edi)
cprintf("pte value%d\n",*pte);
80105dcc: 83 c4 10 add $0x10,%esp
80105dcf: 89 5d 0c mov %ebx,0xc(%ebp)
80105dd2: c7 45 08 83 7f 10 80 movl $0x80107f83,0x8(%ebp)
}
}
}
80105dd9: 8d 65 f4 lea -0xc(%ebp),%esp
80105ddc: 5b pop %ebx
80105ddd: 5e pop %esi
80105dde: 5f pop %edi
80105ddf: 5d pop %ebp
}
else
{
memset(kva,0,PGSIZE);
*pte = V2P(kva) | PTE_P | PTE_W | PTE_U ;
cprintf("pte value%d\n",*pte);
80105de0: e9 ab a9 ff ff jmp 80100790 <cprintf>
80105de5: 8d 76 00 lea 0x0(%esi),%esi
{
char *kva;
kva = kalloc();
if(kva==0)
{
int b = swap_page(pgdir);
80105de8: 83 ec 0c sub $0xc,%esp
80105deb: 56 push %esi
80105dec: e8 bf fe ff ff call 80105cb0 <swap_page>
if(b!=1)
80105df1: 83 c4 10 add $0x10,%esp
80105df4: 83 f8 01 cmp $0x1,%eax
80105df7: 75 63 jne 80105e5c <map_address+0x12c>
panic("Sys_swap me gadbad");
kva = kalloc();
80105df9: e8 02 c9 ff ff call 80102700 <kalloc>
if(kva == 0)
80105dfe: 85 c0 test %eax,%eax
if(kva==0)
{
int b = swap_page(pgdir);
if(b!=1)
panic("Sys_swap me gadbad");
kva = kalloc();
80105e00: 89 c3 mov %eax,%ebx
if(kva == 0)
80105e02: 74 4b je 80105e4f <map_address+0x11f>
panic("PROBLEM");
memset(kva,0,PGSIZE);
80105e04: 83 ec 04 sub $0x4,%esp
*pte = V2P(kva) | PTE_P | PTE_W | PTE_U ;
80105e07: 81 c3 00 00 00 80 add $0x80000000,%ebx
if(b!=1)
panic("Sys_swap me gadbad");
kva = kalloc();
if(kva == 0)
panic("PROBLEM");
memset(kva,0,PGSIZE);
80105e0d: 68 00 10 00 00 push $0x1000
80105e12: 6a 00 push $0x0
*pte = V2P(kva) | PTE_P | PTE_W | PTE_U ;
80105e14: 83 cb 07 or $0x7,%ebx
if(b!=1)
panic("Sys_swap me gadbad");
kva = kalloc();
if(kva == 0)
panic("PROBLEM");
memset(kva,0,PGSIZE);
80105e17: 50 push %eax
80105e18: e8 53 e8 ff ff call 80104670 <memset>
*pte = V2P(kva) | PTE_P | PTE_W | PTE_U ;
80105e1d: 89 1f mov %ebx,(%edi)
cprintf("pte value%d\n",*pte);
80105e1f: 58 pop %eax
80105e20: 5a pop %edx
80105e21: 53 push %ebx
80105e22: 68 83 7f 10 80 push $0x80107f83
80105e27: e8 64 a9 ff ff call 80100790 <cprintf>
cprintf("New entry set\n");
80105e2c: c7 45 08 b4 7f 10 80 movl $0x80107fb4,0x8(%ebp)
80105e33: 83 c4 10 add $0x10,%esp
*pte = V2P(kva) | PTE_P | PTE_W | PTE_U ;
cprintf("pte value%d\n",*pte);
}
}
}
80105e36: 8d 65 f4 lea -0xc(%ebp),%esp
80105e39: 5b pop %ebx
80105e3a: 5e pop %esi
80105e3b: 5f pop %edi
80105e3c: 5d pop %ebp
if(kva == 0)
panic("PROBLEM");
memset(kva,0,PGSIZE);
*pte = V2P(kva) | PTE_P | PTE_W | PTE_U ;
cprintf("pte value%d\n",*pte);
cprintf("New entry set\n");
80105e3d: e9 4e a9 ff ff jmp 80100790 <cprintf>
pte_t *pte;
pte = walkpgdir(pgdir, (char*)addr, 0);
cprintf("pte value%d\n",*pte);
if(*pte & PTE_PS)
{
panic("pte is 1");
80105e42: 83 ec 0c sub $0xc,%esp
80105e45: 68 90 7f 10 80 push $0x80107f90
80105e4a: e8 51 a6 ff ff call 801004a0 <panic>
int b = swap_page(pgdir);
if(b!=1)
panic("Sys_swap me gadbad");
kva = kalloc();
if(kva == 0)
panic("PROBLEM");
80105e4f: 83 ec 0c sub $0xc,%esp
80105e52: 68 ac 7f 10 80 push $0x80107fac
80105e57: e8 44 a6 ff ff call 801004a0 <panic>
kva = kalloc();
if(kva==0)
{
int b = swap_page(pgdir);
if(b!=1)
panic("Sys_swap me gadbad");
80105e5c: 83 ec 0c sub $0xc,%esp
80105e5f: 68 99 7f 10 80 push $0x80107f99
80105e64: e8 37 a6 ff ff call 801004a0 <panic>
80105e69: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80105e70 <handle_pgfault>:
}
/* page fault handler */
void
handle_pgfault()
{
80105e70: 55 push %ebp
80105e71: 89 e5 mov %esp,%ebp
80105e73: 83 ec 08 sub $0x8,%esp
unsigned addr;
struct proc *curproc = myproc();
80105e76: e8 75 db ff ff call 801039f0 <myproc>
asm volatile ("movl %%cr2, %0 \n\t" : "=r" (addr));
80105e7b: 0f 20 d2 mov %cr2,%edx
addr &= ~0xfff;
map_address(curproc->pgdir, addr);
80105e7e: 83 ec 08 sub $0x8,%esp
80105e81: 81 e2 00 f0 ff ff and $0xfffff000,%edx
80105e87: 52 push %edx
80105e88: ff 70 04 pushl 0x4(%eax)
80105e8b: e8 a0 fe ff ff call 80105d30 <map_address>
}
80105e90: 83 c4 10 add $0x10,%esp
80105e93: c9 leave
80105e94: c3 ret
80105e95: 66 90 xchg %ax,%ax
80105e97: 66 90 xchg %ax,%ax
80105e99: 66 90 xchg %ax,%ax
80105e9b: 66 90 xchg %ax,%ax
80105e9d: 66 90 xchg %ax,%ax
80105e9f: 90 nop
80105ea0 <uartgetc>:
}
static int
uartgetc(void)
{
if(!uart)
80105ea0: a1 bc b5 10 80 mov 0x8010b5bc,%eax
outb(COM1+0, c);
}
static int
uartgetc(void)
{
80105ea5: 55 push %ebp
80105ea6: 89 e5 mov %esp,%ebp
if(!uart)
80105ea8: 85 c0 test %eax,%eax
80105eaa: 74 1c je 80105ec8 <uartgetc+0x28>
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80105eac: ba fd 03 00 00 mov $0x3fd,%edx
80105eb1: ec in (%dx),%al
return -1;
if(!(inb(COM1+5) & 0x01))
80105eb2: a8 01 test $0x1,%al
80105eb4: 74 12 je 80105ec8 <uartgetc+0x28>
80105eb6: ba f8 03 00 00 mov $0x3f8,%edx
80105ebb: ec in (%dx),%al
return -1;
return inb(COM1+0);
80105ebc: 0f b6 c0 movzbl %al,%eax
}
80105ebf: 5d pop %ebp
80105ec0: c3 ret
80105ec1: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
static int
uartgetc(void)
{
if(!uart)
return -1;
80105ec8: b8 ff ff ff ff mov $0xffffffff,%eax
if(!(inb(COM1+5) & 0x01))
return -1;
return inb(COM1+0);
}
80105ecd: 5d pop %ebp
80105ece: c3 ret
80105ecf: 90 nop
80105ed0 <uartputc.part.0>:
for(p="xv6...\n"; *p; p++)
uartputc(*p);
}
void
uartputc(int c)
80105ed0: 55 push %ebp
80105ed1: 89 e5 mov %esp,%ebp
80105ed3: 57 push %edi
80105ed4: 56 push %esi
80105ed5: 53 push %ebx
80105ed6: 89 c7 mov %eax,%edi
80105ed8: bb 80 00 00 00 mov $0x80,%ebx
80105edd: be fd 03 00 00 mov $0x3fd,%esi
80105ee2: 83 ec 0c sub $0xc,%esp
80105ee5: eb 1b jmp 80105f02 <uartputc.part.0+0x32>
80105ee7: 89 f6 mov %esi,%esi
80105ee9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
int i;
if(!uart)
return;
for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++)
microdelay(10);
80105ef0: 83 ec 0c sub $0xc,%esp
80105ef3: 6a 0a push $0xa
80105ef5: e8 a6 ca ff ff call 801029a0 <microdelay>
{
int i;
if(!uart)
return;
for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++)
80105efa: 83 c4 10 add $0x10,%esp
80105efd: 83 eb 01 sub $0x1,%ebx
80105f00: 74 07 je 80105f09 <uartputc.part.0+0x39>
80105f02: 89 f2 mov %esi,%edx
80105f04: ec in (%dx),%al
80105f05: a8 20 test $0x20,%al
80105f07: 74 e7 je 80105ef0 <uartputc.part.0+0x20>
}
static inline void
outb(ushort port, uchar data)
{
asm volatile("out %0,%1" : : "a" (data), "d" (port));
80105f09: ba f8 03 00 00 mov $0x3f8,%edx
80105f0e: 89 f8 mov %edi,%eax
80105f10: ee out %al,(%dx)
microdelay(10);
outb(COM1+0, c);
}
80105f11: 8d 65 f4 lea -0xc(%ebp),%esp
80105f14: 5b pop %ebx
80105f15: 5e pop %esi
80105f16: 5f pop %edi
80105f17: 5d pop %ebp
80105f18: c3 ret
80105f19: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80105f20 <uartinit>:
static int uart; // is there a uart?
void
uartinit(void)
{
80105f20: 55 push %ebp
80105f21: 31 c9 xor %ecx,%ecx
80105f23: 89 c8 mov %ecx,%eax
80105f25: 89 e5 mov %esp,%ebp
80105f27: 57 push %edi
80105f28: 56 push %esi
80105f29: 53 push %ebx
80105f2a: bb fa 03 00 00 mov $0x3fa,%ebx
80105f2f: 89 da mov %ebx,%edx
80105f31: 83 ec 0c sub $0xc,%esp
80105f34: ee out %al,(%dx)
80105f35: bf fb 03 00 00 mov $0x3fb,%edi
80105f3a: b8 80 ff ff ff mov $0xffffff80,%eax
80105f3f: 89 fa mov %edi,%edx
80105f41: ee out %al,(%dx)
80105f42: b8 0c 00 00 00 mov $0xc,%eax
80105f47: ba f8 03 00 00 mov $0x3f8,%edx
80105f4c: ee out %al,(%dx)
80105f4d: be f9 03 00 00 mov $0x3f9,%esi
80105f52: 89 c8 mov %ecx,%eax
80105f54: 89 f2 mov %esi,%edx
80105f56: ee out %al,(%dx)
80105f57: b8 03 00 00 00 mov $0x3,%eax
80105f5c: 89 fa mov %edi,%edx
80105f5e: ee out %al,(%dx)
80105f5f: ba fc 03 00 00 mov $0x3fc,%edx
80105f64: 89 c8 mov %ecx,%eax
80105f66: ee out %al,(%dx)
80105f67: b8 01 00 00 00 mov $0x1,%eax
80105f6c: 89 f2 mov %esi,%edx
80105f6e: ee out %al,(%dx)
static inline uchar
inb(ushort port)
{
uchar data;
asm volatile("in %1,%0" : "=a" (data) : "d" (port));
80105f6f: ba fd 03 00 00 mov $0x3fd,%edx
80105f74: ec in (%dx),%al
outb(COM1+3, 0x03); // Lock divisor, 8 data bits.
outb(COM1+4, 0);
outb(COM1+1, 0x01); // Enable receive interrupts.
// If status is 0xFF, no serial port.
if(inb(COM1+5) == 0xFF)
80105f75: 3c ff cmp $0xff,%al
80105f77: 74 5a je 80105fd3 <uartinit+0xb3>
return;
uart = 1;
80105f79: c7 05 bc b5 10 80 01 movl $0x1,0x8010b5bc
80105f80: 00 00 00
80105f83: 89 da mov %ebx,%edx
80105f85: ec in (%dx),%al
80105f86: ba f8 03 00 00 mov $0x3f8,%edx
80105f8b: ec in (%dx),%al
// Acknowledge pre-existing interrupt conditions;
// enable interrupts.
inb(COM1+2);
inb(COM1+0);
ioapicenable(IRQ_COM1, 0);
80105f8c: 83 ec 08 sub $0x8,%esp
80105f8f: bb eb 7f 10 80 mov $0x80107feb,%ebx
80105f94: 6a 00 push $0x0
80105f96: 6a 04 push $0x4
80105f98: e8 73 c5 ff ff call 80102510 <ioapicenable>
80105f9d: 83 c4 10 add $0x10,%esp
80105fa0: b8 78 00 00 00 mov $0x78,%eax
80105fa5: eb 13 jmp 80105fba <uartinit+0x9a>
80105fa7: 89 f6 mov %esi,%esi
80105fa9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
// Announce that we're here.
for(p="xv6...\n"; *p; p++)
80105fb0: 83 c3 01 add $0x1,%ebx
80105fb3: 0f be 03 movsbl (%ebx),%eax
80105fb6: 84 c0 test %al,%al
80105fb8: 74 19 je 80105fd3 <uartinit+0xb3>
void
uartputc(int c)
{
int i;
if(!uart)
80105fba: 8b 15 bc b5 10 80 mov 0x8010b5bc,%edx
80105fc0: 85 d2 test %edx,%edx
80105fc2: 74 ec je 80105fb0 <uartinit+0x90>
inb(COM1+2);
inb(COM1+0);
ioapicenable(IRQ_COM1, 0);
// Announce that we're here.
for(p="xv6...\n"; *p; p++)
80105fc4: 83 c3 01 add $0x1,%ebx
80105fc7: e8 04 ff ff ff call 80105ed0 <uartputc.part.0>
80105fcc: 0f be 03 movsbl (%ebx),%eax
80105fcf: 84 c0 test %al,%al
80105fd1: 75 e7 jne 80105fba <uartinit+0x9a>
uartputc(*p);
}
80105fd3: 8d 65 f4 lea -0xc(%ebp),%esp
80105fd6: 5b pop %ebx
80105fd7: 5e pop %esi
80105fd8: 5f pop %edi
80105fd9: 5d pop %ebp
80105fda: c3 ret
80105fdb: 90 nop
80105fdc: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80105fe0 <uartputc>:
void
uartputc(int c)
{
int i;
if(!uart)
80105fe0: 8b 15 bc b5 10 80 mov 0x8010b5bc,%edx
uartputc(*p);
}
void
uartputc(int c)
{
80105fe6: 55 push %ebp
80105fe7: 89 e5 mov %esp,%ebp
int i;
if(!uart)
80105fe9: 85 d2 test %edx,%edx
uartputc(*p);
}
void
uartputc(int c)
{
80105feb: 8b 45 08 mov 0x8(%ebp),%eax
int i;
if(!uart)
80105fee: 74 10 je 80106000 <uartputc+0x20>
return;
for(i = 0; i < 128 && !(inb(COM1+5) & 0x20); i++)
microdelay(10);
outb(COM1+0, c);
}
80105ff0: 5d pop %ebp
80105ff1: e9 da fe ff ff jmp 80105ed0 <uartputc.part.0>
80105ff6: 8d 76 00 lea 0x0(%esi),%esi
80105ff9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106000: 5d pop %ebp
80106001: c3 ret
80106002: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106009: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106010 <uartintr>:
return inb(COM1+0);
}
void
uartintr(void)
{
80106010: 55 push %ebp
80106011: 89 e5 mov %esp,%ebp
80106013: 83 ec 14 sub $0x14,%esp
consoleintr(uartgetc);
80106016: 68 a0 5e 10 80 push $0x80105ea0
8010601b: e8 00 a9 ff ff call 80100920 <consoleintr>
}
80106020: 83 c4 10 add $0x10,%esp
80106023: c9 leave
80106024: c3 ret
80106025 <vector0>:
# generated by vectors.pl - do not edit
# handlers
.globl alltraps
.globl vector0
vector0:
pushl $0
80106025: 6a 00 push $0x0
pushl $0
80106027: 6a 00 push $0x0
jmp alltraps
80106029: e9 9c f8 ff ff jmp 801058ca <alltraps>
8010602e <vector1>:
.globl vector1
vector1:
pushl $0
8010602e: 6a 00 push $0x0
pushl $1
80106030: 6a 01 push $0x1
jmp alltraps
80106032: e9 93 f8 ff ff jmp 801058ca <alltraps>
80106037 <vector2>:
.globl vector2
vector2:
pushl $0
80106037: 6a 00 push $0x0
pushl $2
80106039: 6a 02 push $0x2
jmp alltraps
8010603b: e9 8a f8 ff ff jmp 801058ca <alltraps>
80106040 <vector3>:
.globl vector3
vector3:
pushl $0
80106040: 6a 00 push $0x0
pushl $3
80106042: 6a 03 push $0x3
jmp alltraps
80106044: e9 81 f8 ff ff jmp 801058ca <alltraps>
80106049 <vector4>:
.globl vector4
vector4:
pushl $0
80106049: 6a 00 push $0x0
pushl $4
8010604b: 6a 04 push $0x4
jmp alltraps
8010604d: e9 78 f8 ff ff jmp 801058ca <alltraps>
80106052 <vector5>:
.globl vector5
vector5:
pushl $0
80106052: 6a 00 push $0x0
pushl $5
80106054: 6a 05 push $0x5
jmp alltraps
80106056: e9 6f f8 ff ff jmp 801058ca <alltraps>
8010605b <vector6>:
.globl vector6
vector6:
pushl $0
8010605b: 6a 00 push $0x0
pushl $6
8010605d: 6a 06 push $0x6
jmp alltraps
8010605f: e9 66 f8 ff ff jmp 801058ca <alltraps>
80106064 <vector7>:
.globl vector7
vector7:
pushl $0
80106064: 6a 00 push $0x0
pushl $7
80106066: 6a 07 push $0x7
jmp alltraps
80106068: e9 5d f8 ff ff jmp 801058ca <alltraps>
8010606d <vector8>:
.globl vector8
vector8:
pushl $8
8010606d: 6a 08 push $0x8
jmp alltraps
8010606f: e9 56 f8 ff ff jmp 801058ca <alltraps>
80106074 <vector9>:
.globl vector9
vector9:
pushl $0
80106074: 6a 00 push $0x0
pushl $9
80106076: 6a 09 push $0x9
jmp alltraps
80106078: e9 4d f8 ff ff jmp 801058ca <alltraps>
8010607d <vector10>:
.globl vector10
vector10:
pushl $10
8010607d: 6a 0a push $0xa
jmp alltraps
8010607f: e9 46 f8 ff ff jmp 801058ca <alltraps>
80106084 <vector11>:
.globl vector11
vector11:
pushl $11
80106084: 6a 0b push $0xb
jmp alltraps
80106086: e9 3f f8 ff ff jmp 801058ca <alltraps>
8010608b <vector12>:
.globl vector12
vector12:
pushl $12
8010608b: 6a 0c push $0xc
jmp alltraps
8010608d: e9 38 f8 ff ff jmp 801058ca <alltraps>
80106092 <vector13>:
.globl vector13
vector13:
pushl $13
80106092: 6a 0d push $0xd
jmp alltraps
80106094: e9 31 f8 ff ff jmp 801058ca <alltraps>
80106099 <vector14>:
.globl vector14
vector14:
pushl $14
80106099: 6a 0e push $0xe
jmp alltraps
8010609b: e9 2a f8 ff ff jmp 801058ca <alltraps>
801060a0 <vector15>:
.globl vector15
vector15:
pushl $0
801060a0: 6a 00 push $0x0
pushl $15
801060a2: 6a 0f push $0xf
jmp alltraps
801060a4: e9 21 f8 ff ff jmp 801058ca <alltraps>
801060a9 <vector16>:
.globl vector16
vector16:
pushl $0
801060a9: 6a 00 push $0x0
pushl $16
801060ab: 6a 10 push $0x10
jmp alltraps
801060ad: e9 18 f8 ff ff jmp 801058ca <alltraps>
801060b2 <vector17>:
.globl vector17
vector17:
pushl $17
801060b2: 6a 11 push $0x11
jmp alltraps
801060b4: e9 11 f8 ff ff jmp 801058ca <alltraps>
801060b9 <vector18>:
.globl vector18
vector18:
pushl $0
801060b9: 6a 00 push $0x0
pushl $18
801060bb: 6a 12 push $0x12
jmp alltraps
801060bd: e9 08 f8 ff ff jmp 801058ca <alltraps>
801060c2 <vector19>:
.globl vector19
vector19:
pushl $0
801060c2: 6a 00 push $0x0
pushl $19
801060c4: 6a 13 push $0x13
jmp alltraps
801060c6: e9 ff f7 ff ff jmp 801058ca <alltraps>
801060cb <vector20>:
.globl vector20
vector20:
pushl $0
801060cb: 6a 00 push $0x0
pushl $20
801060cd: 6a 14 push $0x14
jmp alltraps
801060cf: e9 f6 f7 ff ff jmp 801058ca <alltraps>
801060d4 <vector21>:
.globl vector21
vector21:
pushl $0
801060d4: 6a 00 push $0x0
pushl $21
801060d6: 6a 15 push $0x15
jmp alltraps
801060d8: e9 ed f7 ff ff jmp 801058ca <alltraps>
801060dd <vector22>:
.globl vector22
vector22:
pushl $0
801060dd: 6a 00 push $0x0
pushl $22
801060df: 6a 16 push $0x16
jmp alltraps
801060e1: e9 e4 f7 ff ff jmp 801058ca <alltraps>
801060e6 <vector23>:
.globl vector23
vector23:
pushl $0
801060e6: 6a 00 push $0x0
pushl $23
801060e8: 6a 17 push $0x17
jmp alltraps
801060ea: e9 db f7 ff ff jmp 801058ca <alltraps>
801060ef <vector24>:
.globl vector24
vector24:
pushl $0
801060ef: 6a 00 push $0x0
pushl $24
801060f1: 6a 18 push $0x18
jmp alltraps
801060f3: e9 d2 f7 ff ff jmp 801058ca <alltraps>
801060f8 <vector25>:
.globl vector25
vector25:
pushl $0
801060f8: 6a 00 push $0x0
pushl $25
801060fa: 6a 19 push $0x19
jmp alltraps
801060fc: e9 c9 f7 ff ff jmp 801058ca <alltraps>
80106101 <vector26>:
.globl vector26
vector26:
pushl $0
80106101: 6a 00 push $0x0
pushl $26
80106103: 6a 1a push $0x1a
jmp alltraps
80106105: e9 c0 f7 ff ff jmp 801058ca <alltraps>
8010610a <vector27>:
.globl vector27
vector27:
pushl $0
8010610a: 6a 00 push $0x0
pushl $27
8010610c: 6a 1b push $0x1b
jmp alltraps
8010610e: e9 b7 f7 ff ff jmp 801058ca <alltraps>
80106113 <vector28>:
.globl vector28
vector28:
pushl $0
80106113: 6a 00 push $0x0
pushl $28
80106115: 6a 1c push $0x1c
jmp alltraps
80106117: e9 ae f7 ff ff jmp 801058ca <alltraps>
8010611c <vector29>:
.globl vector29
vector29:
pushl $0
8010611c: 6a 00 push $0x0
pushl $29
8010611e: 6a 1d push $0x1d
jmp alltraps
80106120: e9 a5 f7 ff ff jmp 801058ca <alltraps>
80106125 <vector30>:
.globl vector30
vector30:
pushl $0
80106125: 6a 00 push $0x0
pushl $30
80106127: 6a 1e push $0x1e
jmp alltraps
80106129: e9 9c f7 ff ff jmp 801058ca <alltraps>
8010612e <vector31>:
.globl vector31
vector31:
pushl $0
8010612e: 6a 00 push $0x0
pushl $31
80106130: 6a 1f push $0x1f
jmp alltraps
80106132: e9 93 f7 ff ff jmp 801058ca <alltraps>
80106137 <vector32>:
.globl vector32
vector32:
pushl $0
80106137: 6a 00 push $0x0
pushl $32
80106139: 6a 20 push $0x20
jmp alltraps
8010613b: e9 8a f7 ff ff jmp 801058ca <alltraps>
80106140 <vector33>:
.globl vector33
vector33:
pushl $0
80106140: 6a 00 push $0x0
pushl $33
80106142: 6a 21 push $0x21
jmp alltraps
80106144: e9 81 f7 ff ff jmp 801058ca <alltraps>
80106149 <vector34>:
.globl vector34
vector34:
pushl $0
80106149: 6a 00 push $0x0
pushl $34
8010614b: 6a 22 push $0x22
jmp alltraps
8010614d: e9 78 f7 ff ff jmp 801058ca <alltraps>
80106152 <vector35>:
.globl vector35
vector35:
pushl $0
80106152: 6a 00 push $0x0
pushl $35
80106154: 6a 23 push $0x23
jmp alltraps
80106156: e9 6f f7 ff ff jmp 801058ca <alltraps>
8010615b <vector36>:
.globl vector36
vector36:
pushl $0
8010615b: 6a 00 push $0x0
pushl $36
8010615d: 6a 24 push $0x24
jmp alltraps
8010615f: e9 66 f7 ff ff jmp 801058ca <alltraps>
80106164 <vector37>:
.globl vector37
vector37:
pushl $0
80106164: 6a 00 push $0x0
pushl $37
80106166: 6a 25 push $0x25
jmp alltraps
80106168: e9 5d f7 ff ff jmp 801058ca <alltraps>
8010616d <vector38>:
.globl vector38
vector38:
pushl $0
8010616d: 6a 00 push $0x0
pushl $38
8010616f: 6a 26 push $0x26
jmp alltraps
80106171: e9 54 f7 ff ff jmp 801058ca <alltraps>
80106176 <vector39>:
.globl vector39
vector39:
pushl $0
80106176: 6a 00 push $0x0
pushl $39
80106178: 6a 27 push $0x27
jmp alltraps
8010617a: e9 4b f7 ff ff jmp 801058ca <alltraps>
8010617f <vector40>:
.globl vector40
vector40:
pushl $0
8010617f: 6a 00 push $0x0
pushl $40
80106181: 6a 28 push $0x28
jmp alltraps
80106183: e9 42 f7 ff ff jmp 801058ca <alltraps>
80106188 <vector41>:
.globl vector41
vector41:
pushl $0
80106188: 6a 00 push $0x0
pushl $41
8010618a: 6a 29 push $0x29
jmp alltraps
8010618c: e9 39 f7 ff ff jmp 801058ca <alltraps>
80106191 <vector42>:
.globl vector42
vector42:
pushl $0
80106191: 6a 00 push $0x0
pushl $42
80106193: 6a 2a push $0x2a
jmp alltraps
80106195: e9 30 f7 ff ff jmp 801058ca <alltraps>
8010619a <vector43>:
.globl vector43
vector43:
pushl $0
8010619a: 6a 00 push $0x0
pushl $43
8010619c: 6a 2b push $0x2b
jmp alltraps
8010619e: e9 27 f7 ff ff jmp 801058ca <alltraps>
801061a3 <vector44>:
.globl vector44
vector44:
pushl $0
801061a3: 6a 00 push $0x0
pushl $44
801061a5: 6a 2c push $0x2c
jmp alltraps
801061a7: e9 1e f7 ff ff jmp 801058ca <alltraps>
801061ac <vector45>:
.globl vector45
vector45:
pushl $0
801061ac: 6a 00 push $0x0
pushl $45
801061ae: 6a 2d push $0x2d
jmp alltraps
801061b0: e9 15 f7 ff ff jmp 801058ca <alltraps>
801061b5 <vector46>:
.globl vector46
vector46:
pushl $0
801061b5: 6a 00 push $0x0
pushl $46
801061b7: 6a 2e push $0x2e
jmp alltraps
801061b9: e9 0c f7 ff ff jmp 801058ca <alltraps>
801061be <vector47>:
.globl vector47
vector47:
pushl $0
801061be: 6a 00 push $0x0
pushl $47
801061c0: 6a 2f push $0x2f
jmp alltraps
801061c2: e9 03 f7 ff ff jmp 801058ca <alltraps>
801061c7 <vector48>:
.globl vector48
vector48:
pushl $0
801061c7: 6a 00 push $0x0
pushl $48
801061c9: 6a 30 push $0x30
jmp alltraps
801061cb: e9 fa f6 ff ff jmp 801058ca <alltraps>
801061d0 <vector49>:
.globl vector49
vector49:
pushl $0
801061d0: 6a 00 push $0x0
pushl $49
801061d2: 6a 31 push $0x31
jmp alltraps
801061d4: e9 f1 f6 ff ff jmp 801058ca <alltraps>
801061d9 <vector50>:
.globl vector50
vector50:
pushl $0
801061d9: 6a 00 push $0x0
pushl $50
801061db: 6a 32 push $0x32
jmp alltraps
801061dd: e9 e8 f6 ff ff jmp 801058ca <alltraps>
801061e2 <vector51>:
.globl vector51
vector51:
pushl $0
801061e2: 6a 00 push $0x0
pushl $51
801061e4: 6a 33 push $0x33
jmp alltraps
801061e6: e9 df f6 ff ff jmp 801058ca <alltraps>
801061eb <vector52>:
.globl vector52
vector52:
pushl $0
801061eb: 6a 00 push $0x0
pushl $52
801061ed: 6a 34 push $0x34
jmp alltraps
801061ef: e9 d6 f6 ff ff jmp 801058ca <alltraps>
801061f4 <vector53>:
.globl vector53
vector53:
pushl $0
801061f4: 6a 00 push $0x0
pushl $53
801061f6: 6a 35 push $0x35
jmp alltraps
801061f8: e9 cd f6 ff ff jmp 801058ca <alltraps>
801061fd <vector54>:
.globl vector54
vector54:
pushl $0
801061fd: 6a 00 push $0x0
pushl $54
801061ff: 6a 36 push $0x36
jmp alltraps
80106201: e9 c4 f6 ff ff jmp 801058ca <alltraps>
80106206 <vector55>:
.globl vector55
vector55:
pushl $0
80106206: 6a 00 push $0x0
pushl $55
80106208: 6a 37 push $0x37
jmp alltraps
8010620a: e9 bb f6 ff ff jmp 801058ca <alltraps>
8010620f <vector56>:
.globl vector56
vector56:
pushl $0
8010620f: 6a 00 push $0x0
pushl $56
80106211: 6a 38 push $0x38
jmp alltraps
80106213: e9 b2 f6 ff ff jmp 801058ca <alltraps>
80106218 <vector57>:
.globl vector57
vector57:
pushl $0
80106218: 6a 00 push $0x0
pushl $57
8010621a: 6a 39 push $0x39
jmp alltraps
8010621c: e9 a9 f6 ff ff jmp 801058ca <alltraps>
80106221 <vector58>:
.globl vector58
vector58:
pushl $0
80106221: 6a 00 push $0x0
pushl $58
80106223: 6a 3a push $0x3a
jmp alltraps
80106225: e9 a0 f6 ff ff jmp 801058ca <alltraps>
8010622a <vector59>:
.globl vector59
vector59:
pushl $0
8010622a: 6a 00 push $0x0
pushl $59
8010622c: 6a 3b push $0x3b
jmp alltraps
8010622e: e9 97 f6 ff ff jmp 801058ca <alltraps>
80106233 <vector60>:
.globl vector60
vector60:
pushl $0
80106233: 6a 00 push $0x0
pushl $60
80106235: 6a 3c push $0x3c
jmp alltraps
80106237: e9 8e f6 ff ff jmp 801058ca <alltraps>
8010623c <vector61>:
.globl vector61
vector61:
pushl $0
8010623c: 6a 00 push $0x0
pushl $61
8010623e: 6a 3d push $0x3d
jmp alltraps
80106240: e9 85 f6 ff ff jmp 801058ca <alltraps>
80106245 <vector62>:
.globl vector62
vector62:
pushl $0
80106245: 6a 00 push $0x0
pushl $62
80106247: 6a 3e push $0x3e
jmp alltraps
80106249: e9 7c f6 ff ff jmp 801058ca <alltraps>
8010624e <vector63>:
.globl vector63
vector63:
pushl $0
8010624e: 6a 00 push $0x0
pushl $63
80106250: 6a 3f push $0x3f
jmp alltraps
80106252: e9 73 f6 ff ff jmp 801058ca <alltraps>
80106257 <vector64>:
.globl vector64
vector64:
pushl $0
80106257: 6a 00 push $0x0
pushl $64
80106259: 6a 40 push $0x40
jmp alltraps
8010625b: e9 6a f6 ff ff jmp 801058ca <alltraps>
80106260 <vector65>:
.globl vector65
vector65:
pushl $0
80106260: 6a 00 push $0x0
pushl $65
80106262: 6a 41 push $0x41
jmp alltraps
80106264: e9 61 f6 ff ff jmp 801058ca <alltraps>
80106269 <vector66>:
.globl vector66
vector66:
pushl $0
80106269: 6a 00 push $0x0
pushl $66
8010626b: 6a 42 push $0x42
jmp alltraps
8010626d: e9 58 f6 ff ff jmp 801058ca <alltraps>
80106272 <vector67>:
.globl vector67
vector67:
pushl $0
80106272: 6a 00 push $0x0
pushl $67
80106274: 6a 43 push $0x43
jmp alltraps
80106276: e9 4f f6 ff ff jmp 801058ca <alltraps>
8010627b <vector68>:
.globl vector68
vector68:
pushl $0
8010627b: 6a 00 push $0x0
pushl $68
8010627d: 6a 44 push $0x44
jmp alltraps
8010627f: e9 46 f6 ff ff jmp 801058ca <alltraps>
80106284 <vector69>:
.globl vector69
vector69:
pushl $0
80106284: 6a 00 push $0x0
pushl $69
80106286: 6a 45 push $0x45
jmp alltraps
80106288: e9 3d f6 ff ff jmp 801058ca <alltraps>
8010628d <vector70>:
.globl vector70
vector70:
pushl $0
8010628d: 6a 00 push $0x0
pushl $70
8010628f: 6a 46 push $0x46
jmp alltraps
80106291: e9 34 f6 ff ff jmp 801058ca <alltraps>
80106296 <vector71>:
.globl vector71
vector71:
pushl $0
80106296: 6a 00 push $0x0
pushl $71
80106298: 6a 47 push $0x47
jmp alltraps
8010629a: e9 2b f6 ff ff jmp 801058ca <alltraps>
8010629f <vector72>:
.globl vector72
vector72:
pushl $0
8010629f: 6a 00 push $0x0
pushl $72
801062a1: 6a 48 push $0x48
jmp alltraps
801062a3: e9 22 f6 ff ff jmp 801058ca <alltraps>
801062a8 <vector73>:
.globl vector73
vector73:
pushl $0
801062a8: 6a 00 push $0x0
pushl $73
801062aa: 6a 49 push $0x49
jmp alltraps
801062ac: e9 19 f6 ff ff jmp 801058ca <alltraps>
801062b1 <vector74>:
.globl vector74
vector74:
pushl $0
801062b1: 6a 00 push $0x0
pushl $74
801062b3: 6a 4a push $0x4a
jmp alltraps
801062b5: e9 10 f6 ff ff jmp 801058ca <alltraps>
801062ba <vector75>:
.globl vector75
vector75:
pushl $0
801062ba: 6a 00 push $0x0
pushl $75
801062bc: 6a 4b push $0x4b
jmp alltraps
801062be: e9 07 f6 ff ff jmp 801058ca <alltraps>
801062c3 <vector76>:
.globl vector76
vector76:
pushl $0
801062c3: 6a 00 push $0x0
pushl $76
801062c5: 6a 4c push $0x4c
jmp alltraps
801062c7: e9 fe f5 ff ff jmp 801058ca <alltraps>
801062cc <vector77>:
.globl vector77
vector77:
pushl $0
801062cc: 6a 00 push $0x0
pushl $77
801062ce: 6a 4d push $0x4d
jmp alltraps
801062d0: e9 f5 f5 ff ff jmp 801058ca <alltraps>
801062d5 <vector78>:
.globl vector78
vector78:
pushl $0
801062d5: 6a 00 push $0x0
pushl $78
801062d7: 6a 4e push $0x4e
jmp alltraps
801062d9: e9 ec f5 ff ff jmp 801058ca <alltraps>
801062de <vector79>:
.globl vector79
vector79:
pushl $0
801062de: 6a 00 push $0x0
pushl $79
801062e0: 6a 4f push $0x4f
jmp alltraps
801062e2: e9 e3 f5 ff ff jmp 801058ca <alltraps>
801062e7 <vector80>:
.globl vector80
vector80:
pushl $0
801062e7: 6a 00 push $0x0
pushl $80
801062e9: 6a 50 push $0x50
jmp alltraps
801062eb: e9 da f5 ff ff jmp 801058ca <alltraps>
801062f0 <vector81>:
.globl vector81
vector81:
pushl $0
801062f0: 6a 00 push $0x0
pushl $81
801062f2: 6a 51 push $0x51
jmp alltraps
801062f4: e9 d1 f5 ff ff jmp 801058ca <alltraps>
801062f9 <vector82>:
.globl vector82
vector82:
pushl $0
801062f9: 6a 00 push $0x0
pushl $82
801062fb: 6a 52 push $0x52
jmp alltraps
801062fd: e9 c8 f5 ff ff jmp 801058ca <alltraps>
80106302 <vector83>:
.globl vector83
vector83:
pushl $0
80106302: 6a 00 push $0x0
pushl $83
80106304: 6a 53 push $0x53
jmp alltraps
80106306: e9 bf f5 ff ff jmp 801058ca <alltraps>
8010630b <vector84>:
.globl vector84
vector84:
pushl $0
8010630b: 6a 00 push $0x0
pushl $84
8010630d: 6a 54 push $0x54
jmp alltraps
8010630f: e9 b6 f5 ff ff jmp 801058ca <alltraps>
80106314 <vector85>:
.globl vector85
vector85:
pushl $0
80106314: 6a 00 push $0x0
pushl $85
80106316: 6a 55 push $0x55
jmp alltraps
80106318: e9 ad f5 ff ff jmp 801058ca <alltraps>
8010631d <vector86>:
.globl vector86
vector86:
pushl $0
8010631d: 6a 00 push $0x0
pushl $86
8010631f: 6a 56 push $0x56
jmp alltraps
80106321: e9 a4 f5 ff ff jmp 801058ca <alltraps>
80106326 <vector87>:
.globl vector87
vector87:
pushl $0
80106326: 6a 00 push $0x0
pushl $87
80106328: 6a 57 push $0x57
jmp alltraps
8010632a: e9 9b f5 ff ff jmp 801058ca <alltraps>
8010632f <vector88>:
.globl vector88
vector88:
pushl $0
8010632f: 6a 00 push $0x0
pushl $88
80106331: 6a 58 push $0x58
jmp alltraps
80106333: e9 92 f5 ff ff jmp 801058ca <alltraps>
80106338 <vector89>:
.globl vector89
vector89:
pushl $0
80106338: 6a 00 push $0x0
pushl $89
8010633a: 6a 59 push $0x59
jmp alltraps
8010633c: e9 89 f5 ff ff jmp 801058ca <alltraps>
80106341 <vector90>:
.globl vector90
vector90:
pushl $0
80106341: 6a 00 push $0x0
pushl $90
80106343: 6a 5a push $0x5a
jmp alltraps
80106345: e9 80 f5 ff ff jmp 801058ca <alltraps>
8010634a <vector91>:
.globl vector91
vector91:
pushl $0
8010634a: 6a 00 push $0x0
pushl $91
8010634c: 6a 5b push $0x5b
jmp alltraps
8010634e: e9 77 f5 ff ff jmp 801058ca <alltraps>
80106353 <vector92>:
.globl vector92
vector92:
pushl $0
80106353: 6a 00 push $0x0
pushl $92
80106355: 6a 5c push $0x5c
jmp alltraps
80106357: e9 6e f5 ff ff jmp 801058ca <alltraps>
8010635c <vector93>:
.globl vector93
vector93:
pushl $0
8010635c: 6a 00 push $0x0
pushl $93
8010635e: 6a 5d push $0x5d
jmp alltraps
80106360: e9 65 f5 ff ff jmp 801058ca <alltraps>
80106365 <vector94>:
.globl vector94
vector94:
pushl $0
80106365: 6a 00 push $0x0
pushl $94
80106367: 6a 5e push $0x5e
jmp alltraps
80106369: e9 5c f5 ff ff jmp 801058ca <alltraps>
8010636e <vector95>:
.globl vector95
vector95:
pushl $0
8010636e: 6a 00 push $0x0
pushl $95
80106370: 6a 5f push $0x5f
jmp alltraps
80106372: e9 53 f5 ff ff jmp 801058ca <alltraps>
80106377 <vector96>:
.globl vector96
vector96:
pushl $0
80106377: 6a 00 push $0x0
pushl $96
80106379: 6a 60 push $0x60
jmp alltraps
8010637b: e9 4a f5 ff ff jmp 801058ca <alltraps>
80106380 <vector97>:
.globl vector97
vector97:
pushl $0
80106380: 6a 00 push $0x0
pushl $97
80106382: 6a 61 push $0x61
jmp alltraps
80106384: e9 41 f5 ff ff jmp 801058ca <alltraps>
80106389 <vector98>:
.globl vector98
vector98:
pushl $0
80106389: 6a 00 push $0x0
pushl $98
8010638b: 6a 62 push $0x62
jmp alltraps
8010638d: e9 38 f5 ff ff jmp 801058ca <alltraps>
80106392 <vector99>:
.globl vector99
vector99:
pushl $0
80106392: 6a 00 push $0x0
pushl $99
80106394: 6a 63 push $0x63
jmp alltraps
80106396: e9 2f f5 ff ff jmp 801058ca <alltraps>
8010639b <vector100>:
.globl vector100
vector100:
pushl $0
8010639b: 6a 00 push $0x0
pushl $100
8010639d: 6a 64 push $0x64
jmp alltraps
8010639f: e9 26 f5 ff ff jmp 801058ca <alltraps>
801063a4 <vector101>:
.globl vector101
vector101:
pushl $0
801063a4: 6a 00 push $0x0
pushl $101
801063a6: 6a 65 push $0x65
jmp alltraps
801063a8: e9 1d f5 ff ff jmp 801058ca <alltraps>
801063ad <vector102>:
.globl vector102
vector102:
pushl $0
801063ad: 6a 00 push $0x0
pushl $102
801063af: 6a 66 push $0x66
jmp alltraps
801063b1: e9 14 f5 ff ff jmp 801058ca <alltraps>
801063b6 <vector103>:
.globl vector103
vector103:
pushl $0
801063b6: 6a 00 push $0x0
pushl $103
801063b8: 6a 67 push $0x67
jmp alltraps
801063ba: e9 0b f5 ff ff jmp 801058ca <alltraps>
801063bf <vector104>:
.globl vector104
vector104:
pushl $0
801063bf: 6a 00 push $0x0
pushl $104
801063c1: 6a 68 push $0x68
jmp alltraps
801063c3: e9 02 f5 ff ff jmp 801058ca <alltraps>
801063c8 <vector105>:
.globl vector105
vector105:
pushl $0
801063c8: 6a 00 push $0x0
pushl $105
801063ca: 6a 69 push $0x69
jmp alltraps
801063cc: e9 f9 f4 ff ff jmp 801058ca <alltraps>
801063d1 <vector106>:
.globl vector106
vector106:
pushl $0
801063d1: 6a 00 push $0x0
pushl $106
801063d3: 6a 6a push $0x6a
jmp alltraps
801063d5: e9 f0 f4 ff ff jmp 801058ca <alltraps>
801063da <vector107>:
.globl vector107
vector107:
pushl $0
801063da: 6a 00 push $0x0
pushl $107
801063dc: 6a 6b push $0x6b
jmp alltraps
801063de: e9 e7 f4 ff ff jmp 801058ca <alltraps>
801063e3 <vector108>:
.globl vector108
vector108:
pushl $0
801063e3: 6a 00 push $0x0
pushl $108
801063e5: 6a 6c push $0x6c
jmp alltraps
801063e7: e9 de f4 ff ff jmp 801058ca <alltraps>
801063ec <vector109>:
.globl vector109
vector109:
pushl $0
801063ec: 6a 00 push $0x0
pushl $109
801063ee: 6a 6d push $0x6d
jmp alltraps
801063f0: e9 d5 f4 ff ff jmp 801058ca <alltraps>
801063f5 <vector110>:
.globl vector110
vector110:
pushl $0
801063f5: 6a 00 push $0x0
pushl $110
801063f7: 6a 6e push $0x6e
jmp alltraps
801063f9: e9 cc f4 ff ff jmp 801058ca <alltraps>
801063fe <vector111>:
.globl vector111
vector111:
pushl $0
801063fe: 6a 00 push $0x0
pushl $111
80106400: 6a 6f push $0x6f
jmp alltraps
80106402: e9 c3 f4 ff ff jmp 801058ca <alltraps>
80106407 <vector112>:
.globl vector112
vector112:
pushl $0
80106407: 6a 00 push $0x0
pushl $112
80106409: 6a 70 push $0x70
jmp alltraps
8010640b: e9 ba f4 ff ff jmp 801058ca <alltraps>
80106410 <vector113>:
.globl vector113
vector113:
pushl $0
80106410: 6a 00 push $0x0
pushl $113
80106412: 6a 71 push $0x71
jmp alltraps
80106414: e9 b1 f4 ff ff jmp 801058ca <alltraps>
80106419 <vector114>:
.globl vector114
vector114:
pushl $0
80106419: 6a 00 push $0x0
pushl $114
8010641b: 6a 72 push $0x72
jmp alltraps
8010641d: e9 a8 f4 ff ff jmp 801058ca <alltraps>
80106422 <vector115>:
.globl vector115
vector115:
pushl $0
80106422: 6a 00 push $0x0
pushl $115
80106424: 6a 73 push $0x73
jmp alltraps
80106426: e9 9f f4 ff ff jmp 801058ca <alltraps>
8010642b <vector116>:
.globl vector116
vector116:
pushl $0
8010642b: 6a 00 push $0x0
pushl $116
8010642d: 6a 74 push $0x74
jmp alltraps
8010642f: e9 96 f4 ff ff jmp 801058ca <alltraps>
80106434 <vector117>:
.globl vector117
vector117:
pushl $0
80106434: 6a 00 push $0x0
pushl $117
80106436: 6a 75 push $0x75
jmp alltraps
80106438: e9 8d f4 ff ff jmp 801058ca <alltraps>
8010643d <vector118>:
.globl vector118
vector118:
pushl $0
8010643d: 6a 00 push $0x0
pushl $118
8010643f: 6a 76 push $0x76
jmp alltraps
80106441: e9 84 f4 ff ff jmp 801058ca <alltraps>
80106446 <vector119>:
.globl vector119
vector119:
pushl $0
80106446: 6a 00 push $0x0
pushl $119
80106448: 6a 77 push $0x77
jmp alltraps
8010644a: e9 7b f4 ff ff jmp 801058ca <alltraps>
8010644f <vector120>:
.globl vector120
vector120:
pushl $0
8010644f: 6a 00 push $0x0
pushl $120
80106451: 6a 78 push $0x78
jmp alltraps
80106453: e9 72 f4 ff ff jmp 801058ca <alltraps>
80106458 <vector121>:
.globl vector121
vector121:
pushl $0
80106458: 6a 00 push $0x0
pushl $121
8010645a: 6a 79 push $0x79
jmp alltraps
8010645c: e9 69 f4 ff ff jmp 801058ca <alltraps>
80106461 <vector122>:
.globl vector122
vector122:
pushl $0
80106461: 6a 00 push $0x0
pushl $122
80106463: 6a 7a push $0x7a
jmp alltraps
80106465: e9 60 f4 ff ff jmp 801058ca <alltraps>
8010646a <vector123>:
.globl vector123
vector123:
pushl $0
8010646a: 6a 00 push $0x0
pushl $123
8010646c: 6a 7b push $0x7b
jmp alltraps
8010646e: e9 57 f4 ff ff jmp 801058ca <alltraps>
80106473 <vector124>:
.globl vector124
vector124:
pushl $0
80106473: 6a 00 push $0x0
pushl $124
80106475: 6a 7c push $0x7c
jmp alltraps
80106477: e9 4e f4 ff ff jmp 801058ca <alltraps>
8010647c <vector125>:
.globl vector125
vector125:
pushl $0
8010647c: 6a 00 push $0x0
pushl $125
8010647e: 6a 7d push $0x7d
jmp alltraps
80106480: e9 45 f4 ff ff jmp 801058ca <alltraps>
80106485 <vector126>:
.globl vector126
vector126:
pushl $0
80106485: 6a 00 push $0x0
pushl $126
80106487: 6a 7e push $0x7e
jmp alltraps
80106489: e9 3c f4 ff ff jmp 801058ca <alltraps>
8010648e <vector127>:
.globl vector127
vector127:
pushl $0
8010648e: 6a 00 push $0x0
pushl $127
80106490: 6a 7f push $0x7f
jmp alltraps
80106492: e9 33 f4 ff ff jmp 801058ca <alltraps>
80106497 <vector128>:
.globl vector128
vector128:
pushl $0
80106497: 6a 00 push $0x0
pushl $128
80106499: 68 80 00 00 00 push $0x80
jmp alltraps
8010649e: e9 27 f4 ff ff jmp 801058ca <alltraps>
801064a3 <vector129>:
.globl vector129
vector129:
pushl $0
801064a3: 6a 00 push $0x0
pushl $129
801064a5: 68 81 00 00 00 push $0x81
jmp alltraps
801064aa: e9 1b f4 ff ff jmp 801058ca <alltraps>
801064af <vector130>:
.globl vector130
vector130:
pushl $0
801064af: 6a 00 push $0x0
pushl $130
801064b1: 68 82 00 00 00 push $0x82
jmp alltraps
801064b6: e9 0f f4 ff ff jmp 801058ca <alltraps>
801064bb <vector131>:
.globl vector131
vector131:
pushl $0
801064bb: 6a 00 push $0x0
pushl $131
801064bd: 68 83 00 00 00 push $0x83
jmp alltraps
801064c2: e9 03 f4 ff ff jmp 801058ca <alltraps>
801064c7 <vector132>:
.globl vector132
vector132:
pushl $0
801064c7: 6a 00 push $0x0
pushl $132
801064c9: 68 84 00 00 00 push $0x84
jmp alltraps
801064ce: e9 f7 f3 ff ff jmp 801058ca <alltraps>
801064d3 <vector133>:
.globl vector133
vector133:
pushl $0
801064d3: 6a 00 push $0x0
pushl $133
801064d5: 68 85 00 00 00 push $0x85
jmp alltraps
801064da: e9 eb f3 ff ff jmp 801058ca <alltraps>
801064df <vector134>:
.globl vector134
vector134:
pushl $0
801064df: 6a 00 push $0x0
pushl $134
801064e1: 68 86 00 00 00 push $0x86
jmp alltraps
801064e6: e9 df f3 ff ff jmp 801058ca <alltraps>
801064eb <vector135>:
.globl vector135
vector135:
pushl $0
801064eb: 6a 00 push $0x0
pushl $135
801064ed: 68 87 00 00 00 push $0x87
jmp alltraps
801064f2: e9 d3 f3 ff ff jmp 801058ca <alltraps>
801064f7 <vector136>:
.globl vector136
vector136:
pushl $0
801064f7: 6a 00 push $0x0
pushl $136
801064f9: 68 88 00 00 00 push $0x88
jmp alltraps
801064fe: e9 c7 f3 ff ff jmp 801058ca <alltraps>
80106503 <vector137>:
.globl vector137
vector137:
pushl $0
80106503: 6a 00 push $0x0
pushl $137
80106505: 68 89 00 00 00 push $0x89
jmp alltraps
8010650a: e9 bb f3 ff ff jmp 801058ca <alltraps>
8010650f <vector138>:
.globl vector138
vector138:
pushl $0
8010650f: 6a 00 push $0x0
pushl $138
80106511: 68 8a 00 00 00 push $0x8a
jmp alltraps
80106516: e9 af f3 ff ff jmp 801058ca <alltraps>
8010651b <vector139>:
.globl vector139
vector139:
pushl $0
8010651b: 6a 00 push $0x0
pushl $139
8010651d: 68 8b 00 00 00 push $0x8b
jmp alltraps
80106522: e9 a3 f3 ff ff jmp 801058ca <alltraps>
80106527 <vector140>:
.globl vector140
vector140:
pushl $0
80106527: 6a 00 push $0x0
pushl $140
80106529: 68 8c 00 00 00 push $0x8c
jmp alltraps
8010652e: e9 97 f3 ff ff jmp 801058ca <alltraps>
80106533 <vector141>:
.globl vector141
vector141:
pushl $0
80106533: 6a 00 push $0x0
pushl $141
80106535: 68 8d 00 00 00 push $0x8d
jmp alltraps
8010653a: e9 8b f3 ff ff jmp 801058ca <alltraps>
8010653f <vector142>:
.globl vector142
vector142:
pushl $0
8010653f: 6a 00 push $0x0
pushl $142
80106541: 68 8e 00 00 00 push $0x8e
jmp alltraps
80106546: e9 7f f3 ff ff jmp 801058ca <alltraps>
8010654b <vector143>:
.globl vector143
vector143:
pushl $0
8010654b: 6a 00 push $0x0
pushl $143
8010654d: 68 8f 00 00 00 push $0x8f
jmp alltraps
80106552: e9 73 f3 ff ff jmp 801058ca <alltraps>
80106557 <vector144>:
.globl vector144
vector144:
pushl $0
80106557: 6a 00 push $0x0
pushl $144
80106559: 68 90 00 00 00 push $0x90
jmp alltraps
8010655e: e9 67 f3 ff ff jmp 801058ca <alltraps>
80106563 <vector145>:
.globl vector145
vector145:
pushl $0
80106563: 6a 00 push $0x0
pushl $145
80106565: 68 91 00 00 00 push $0x91
jmp alltraps
8010656a: e9 5b f3 ff ff jmp 801058ca <alltraps>
8010656f <vector146>:
.globl vector146
vector146:
pushl $0
8010656f: 6a 00 push $0x0
pushl $146
80106571: 68 92 00 00 00 push $0x92
jmp alltraps
80106576: e9 4f f3 ff ff jmp 801058ca <alltraps>
8010657b <vector147>:
.globl vector147
vector147:
pushl $0
8010657b: 6a 00 push $0x0
pushl $147
8010657d: 68 93 00 00 00 push $0x93
jmp alltraps
80106582: e9 43 f3 ff ff jmp 801058ca <alltraps>
80106587 <vector148>:
.globl vector148
vector148:
pushl $0
80106587: 6a 00 push $0x0
pushl $148
80106589: 68 94 00 00 00 push $0x94
jmp alltraps
8010658e: e9 37 f3 ff ff jmp 801058ca <alltraps>
80106593 <vector149>:
.globl vector149
vector149:
pushl $0
80106593: 6a 00 push $0x0
pushl $149
80106595: 68 95 00 00 00 push $0x95
jmp alltraps
8010659a: e9 2b f3 ff ff jmp 801058ca <alltraps>
8010659f <vector150>:
.globl vector150
vector150:
pushl $0
8010659f: 6a 00 push $0x0
pushl $150
801065a1: 68 96 00 00 00 push $0x96
jmp alltraps
801065a6: e9 1f f3 ff ff jmp 801058ca <alltraps>
801065ab <vector151>:
.globl vector151
vector151:
pushl $0
801065ab: 6a 00 push $0x0
pushl $151
801065ad: 68 97 00 00 00 push $0x97
jmp alltraps
801065b2: e9 13 f3 ff ff jmp 801058ca <alltraps>
801065b7 <vector152>:
.globl vector152
vector152:
pushl $0
801065b7: 6a 00 push $0x0
pushl $152
801065b9: 68 98 00 00 00 push $0x98
jmp alltraps
801065be: e9 07 f3 ff ff jmp 801058ca <alltraps>
801065c3 <vector153>:
.globl vector153
vector153:
pushl $0
801065c3: 6a 00 push $0x0
pushl $153
801065c5: 68 99 00 00 00 push $0x99
jmp alltraps
801065ca: e9 fb f2 ff ff jmp 801058ca <alltraps>
801065cf <vector154>:
.globl vector154
vector154:
pushl $0
801065cf: 6a 00 push $0x0
pushl $154
801065d1: 68 9a 00 00 00 push $0x9a
jmp alltraps
801065d6: e9 ef f2 ff ff jmp 801058ca <alltraps>
801065db <vector155>:
.globl vector155
vector155:
pushl $0
801065db: 6a 00 push $0x0
pushl $155
801065dd: 68 9b 00 00 00 push $0x9b
jmp alltraps
801065e2: e9 e3 f2 ff ff jmp 801058ca <alltraps>
801065e7 <vector156>:
.globl vector156
vector156:
pushl $0
801065e7: 6a 00 push $0x0
pushl $156
801065e9: 68 9c 00 00 00 push $0x9c
jmp alltraps
801065ee: e9 d7 f2 ff ff jmp 801058ca <alltraps>
801065f3 <vector157>:
.globl vector157
vector157:
pushl $0
801065f3: 6a 00 push $0x0
pushl $157
801065f5: 68 9d 00 00 00 push $0x9d
jmp alltraps
801065fa: e9 cb f2 ff ff jmp 801058ca <alltraps>
801065ff <vector158>:
.globl vector158
vector158:
pushl $0
801065ff: 6a 00 push $0x0
pushl $158
80106601: 68 9e 00 00 00 push $0x9e
jmp alltraps
80106606: e9 bf f2 ff ff jmp 801058ca <alltraps>
8010660b <vector159>:
.globl vector159
vector159:
pushl $0
8010660b: 6a 00 push $0x0
pushl $159
8010660d: 68 9f 00 00 00 push $0x9f
jmp alltraps
80106612: e9 b3 f2 ff ff jmp 801058ca <alltraps>
80106617 <vector160>:
.globl vector160
vector160:
pushl $0
80106617: 6a 00 push $0x0
pushl $160
80106619: 68 a0 00 00 00 push $0xa0
jmp alltraps
8010661e: e9 a7 f2 ff ff jmp 801058ca <alltraps>
80106623 <vector161>:
.globl vector161
vector161:
pushl $0
80106623: 6a 00 push $0x0
pushl $161
80106625: 68 a1 00 00 00 push $0xa1
jmp alltraps
8010662a: e9 9b f2 ff ff jmp 801058ca <alltraps>
8010662f <vector162>:
.globl vector162
vector162:
pushl $0
8010662f: 6a 00 push $0x0
pushl $162
80106631: 68 a2 00 00 00 push $0xa2
jmp alltraps
80106636: e9 8f f2 ff ff jmp 801058ca <alltraps>
8010663b <vector163>:
.globl vector163
vector163:
pushl $0
8010663b: 6a 00 push $0x0
pushl $163
8010663d: 68 a3 00 00 00 push $0xa3
jmp alltraps
80106642: e9 83 f2 ff ff jmp 801058ca <alltraps>
80106647 <vector164>:
.globl vector164
vector164:
pushl $0
80106647: 6a 00 push $0x0
pushl $164
80106649: 68 a4 00 00 00 push $0xa4
jmp alltraps
8010664e: e9 77 f2 ff ff jmp 801058ca <alltraps>
80106653 <vector165>:
.globl vector165
vector165:
pushl $0
80106653: 6a 00 push $0x0
pushl $165
80106655: 68 a5 00 00 00 push $0xa5
jmp alltraps
8010665a: e9 6b f2 ff ff jmp 801058ca <alltraps>
8010665f <vector166>:
.globl vector166
vector166:
pushl $0
8010665f: 6a 00 push $0x0
pushl $166
80106661: 68 a6 00 00 00 push $0xa6
jmp alltraps
80106666: e9 5f f2 ff ff jmp 801058ca <alltraps>
8010666b <vector167>:
.globl vector167
vector167:
pushl $0
8010666b: 6a 00 push $0x0
pushl $167
8010666d: 68 a7 00 00 00 push $0xa7
jmp alltraps
80106672: e9 53 f2 ff ff jmp 801058ca <alltraps>
80106677 <vector168>:
.globl vector168
vector168:
pushl $0
80106677: 6a 00 push $0x0
pushl $168
80106679: 68 a8 00 00 00 push $0xa8
jmp alltraps
8010667e: e9 47 f2 ff ff jmp 801058ca <alltraps>
80106683 <vector169>:
.globl vector169
vector169:
pushl $0
80106683: 6a 00 push $0x0
pushl $169
80106685: 68 a9 00 00 00 push $0xa9
jmp alltraps
8010668a: e9 3b f2 ff ff jmp 801058ca <alltraps>
8010668f <vector170>:
.globl vector170
vector170:
pushl $0
8010668f: 6a 00 push $0x0
pushl $170
80106691: 68 aa 00 00 00 push $0xaa
jmp alltraps
80106696: e9 2f f2 ff ff jmp 801058ca <alltraps>
8010669b <vector171>:
.globl vector171
vector171:
pushl $0
8010669b: 6a 00 push $0x0
pushl $171
8010669d: 68 ab 00 00 00 push $0xab
jmp alltraps
801066a2: e9 23 f2 ff ff jmp 801058ca <alltraps>
801066a7 <vector172>:
.globl vector172
vector172:
pushl $0
801066a7: 6a 00 push $0x0
pushl $172
801066a9: 68 ac 00 00 00 push $0xac
jmp alltraps
801066ae: e9 17 f2 ff ff jmp 801058ca <alltraps>
801066b3 <vector173>:
.globl vector173
vector173:
pushl $0
801066b3: 6a 00 push $0x0
pushl $173
801066b5: 68 ad 00 00 00 push $0xad
jmp alltraps
801066ba: e9 0b f2 ff ff jmp 801058ca <alltraps>
801066bf <vector174>:
.globl vector174
vector174:
pushl $0
801066bf: 6a 00 push $0x0
pushl $174
801066c1: 68 ae 00 00 00 push $0xae
jmp alltraps
801066c6: e9 ff f1 ff ff jmp 801058ca <alltraps>
801066cb <vector175>:
.globl vector175
vector175:
pushl $0
801066cb: 6a 00 push $0x0
pushl $175
801066cd: 68 af 00 00 00 push $0xaf
jmp alltraps
801066d2: e9 f3 f1 ff ff jmp 801058ca <alltraps>
801066d7 <vector176>:
.globl vector176
vector176:
pushl $0
801066d7: 6a 00 push $0x0
pushl $176
801066d9: 68 b0 00 00 00 push $0xb0
jmp alltraps
801066de: e9 e7 f1 ff ff jmp 801058ca <alltraps>
801066e3 <vector177>:
.globl vector177
vector177:
pushl $0
801066e3: 6a 00 push $0x0
pushl $177
801066e5: 68 b1 00 00 00 push $0xb1
jmp alltraps
801066ea: e9 db f1 ff ff jmp 801058ca <alltraps>
801066ef <vector178>:
.globl vector178
vector178:
pushl $0
801066ef: 6a 00 push $0x0
pushl $178
801066f1: 68 b2 00 00 00 push $0xb2
jmp alltraps
801066f6: e9 cf f1 ff ff jmp 801058ca <alltraps>
801066fb <vector179>:
.globl vector179
vector179:
pushl $0
801066fb: 6a 00 push $0x0
pushl $179
801066fd: 68 b3 00 00 00 push $0xb3
jmp alltraps
80106702: e9 c3 f1 ff ff jmp 801058ca <alltraps>
80106707 <vector180>:
.globl vector180
vector180:
pushl $0
80106707: 6a 00 push $0x0
pushl $180
80106709: 68 b4 00 00 00 push $0xb4
jmp alltraps
8010670e: e9 b7 f1 ff ff jmp 801058ca <alltraps>
80106713 <vector181>:
.globl vector181
vector181:
pushl $0
80106713: 6a 00 push $0x0
pushl $181
80106715: 68 b5 00 00 00 push $0xb5
jmp alltraps
8010671a: e9 ab f1 ff ff jmp 801058ca <alltraps>
8010671f <vector182>:
.globl vector182
vector182:
pushl $0
8010671f: 6a 00 push $0x0
pushl $182
80106721: 68 b6 00 00 00 push $0xb6
jmp alltraps
80106726: e9 9f f1 ff ff jmp 801058ca <alltraps>
8010672b <vector183>:
.globl vector183
vector183:
pushl $0
8010672b: 6a 00 push $0x0
pushl $183
8010672d: 68 b7 00 00 00 push $0xb7
jmp alltraps
80106732: e9 93 f1 ff ff jmp 801058ca <alltraps>
80106737 <vector184>:
.globl vector184
vector184:
pushl $0
80106737: 6a 00 push $0x0
pushl $184
80106739: 68 b8 00 00 00 push $0xb8
jmp alltraps
8010673e: e9 87 f1 ff ff jmp 801058ca <alltraps>
80106743 <vector185>:
.globl vector185
vector185:
pushl $0
80106743: 6a 00 push $0x0
pushl $185
80106745: 68 b9 00 00 00 push $0xb9
jmp alltraps
8010674a: e9 7b f1 ff ff jmp 801058ca <alltraps>
8010674f <vector186>:
.globl vector186
vector186:
pushl $0
8010674f: 6a 00 push $0x0
pushl $186
80106751: 68 ba 00 00 00 push $0xba
jmp alltraps
80106756: e9 6f f1 ff ff jmp 801058ca <alltraps>
8010675b <vector187>:
.globl vector187
vector187:
pushl $0
8010675b: 6a 00 push $0x0
pushl $187
8010675d: 68 bb 00 00 00 push $0xbb
jmp alltraps
80106762: e9 63 f1 ff ff jmp 801058ca <alltraps>
80106767 <vector188>:
.globl vector188
vector188:
pushl $0
80106767: 6a 00 push $0x0
pushl $188
80106769: 68 bc 00 00 00 push $0xbc
jmp alltraps
8010676e: e9 57 f1 ff ff jmp 801058ca <alltraps>
80106773 <vector189>:
.globl vector189
vector189:
pushl $0
80106773: 6a 00 push $0x0
pushl $189
80106775: 68 bd 00 00 00 push $0xbd
jmp alltraps
8010677a: e9 4b f1 ff ff jmp 801058ca <alltraps>
8010677f <vector190>:
.globl vector190
vector190:
pushl $0
8010677f: 6a 00 push $0x0
pushl $190
80106781: 68 be 00 00 00 push $0xbe
jmp alltraps
80106786: e9 3f f1 ff ff jmp 801058ca <alltraps>
8010678b <vector191>:
.globl vector191
vector191:
pushl $0
8010678b: 6a 00 push $0x0
pushl $191
8010678d: 68 bf 00 00 00 push $0xbf
jmp alltraps
80106792: e9 33 f1 ff ff jmp 801058ca <alltraps>
80106797 <vector192>:
.globl vector192
vector192:
pushl $0
80106797: 6a 00 push $0x0
pushl $192
80106799: 68 c0 00 00 00 push $0xc0
jmp alltraps
8010679e: e9 27 f1 ff ff jmp 801058ca <alltraps>
801067a3 <vector193>:
.globl vector193
vector193:
pushl $0
801067a3: 6a 00 push $0x0
pushl $193
801067a5: 68 c1 00 00 00 push $0xc1
jmp alltraps
801067aa: e9 1b f1 ff ff jmp 801058ca <alltraps>
801067af <vector194>:
.globl vector194
vector194:
pushl $0
801067af: 6a 00 push $0x0
pushl $194
801067b1: 68 c2 00 00 00 push $0xc2
jmp alltraps
801067b6: e9 0f f1 ff ff jmp 801058ca <alltraps>
801067bb <vector195>:
.globl vector195
vector195:
pushl $0
801067bb: 6a 00 push $0x0
pushl $195
801067bd: 68 c3 00 00 00 push $0xc3
jmp alltraps
801067c2: e9 03 f1 ff ff jmp 801058ca <alltraps>
801067c7 <vector196>:
.globl vector196
vector196:
pushl $0
801067c7: 6a 00 push $0x0
pushl $196
801067c9: 68 c4 00 00 00 push $0xc4
jmp alltraps
801067ce: e9 f7 f0 ff ff jmp 801058ca <alltraps>
801067d3 <vector197>:
.globl vector197
vector197:
pushl $0
801067d3: 6a 00 push $0x0
pushl $197
801067d5: 68 c5 00 00 00 push $0xc5
jmp alltraps
801067da: e9 eb f0 ff ff jmp 801058ca <alltraps>
801067df <vector198>:
.globl vector198
vector198:
pushl $0
801067df: 6a 00 push $0x0
pushl $198
801067e1: 68 c6 00 00 00 push $0xc6
jmp alltraps
801067e6: e9 df f0 ff ff jmp 801058ca <alltraps>
801067eb <vector199>:
.globl vector199
vector199:
pushl $0
801067eb: 6a 00 push $0x0
pushl $199
801067ed: 68 c7 00 00 00 push $0xc7
jmp alltraps
801067f2: e9 d3 f0 ff ff jmp 801058ca <alltraps>
801067f7 <vector200>:
.globl vector200
vector200:
pushl $0
801067f7: 6a 00 push $0x0
pushl $200
801067f9: 68 c8 00 00 00 push $0xc8
jmp alltraps
801067fe: e9 c7 f0 ff ff jmp 801058ca <alltraps>
80106803 <vector201>:
.globl vector201
vector201:
pushl $0
80106803: 6a 00 push $0x0
pushl $201
80106805: 68 c9 00 00 00 push $0xc9
jmp alltraps
8010680a: e9 bb f0 ff ff jmp 801058ca <alltraps>
8010680f <vector202>:
.globl vector202
vector202:
pushl $0
8010680f: 6a 00 push $0x0
pushl $202
80106811: 68 ca 00 00 00 push $0xca
jmp alltraps
80106816: e9 af f0 ff ff jmp 801058ca <alltraps>
8010681b <vector203>:
.globl vector203
vector203:
pushl $0
8010681b: 6a 00 push $0x0
pushl $203
8010681d: 68 cb 00 00 00 push $0xcb
jmp alltraps
80106822: e9 a3 f0 ff ff jmp 801058ca <alltraps>
80106827 <vector204>:
.globl vector204
vector204:
pushl $0
80106827: 6a 00 push $0x0
pushl $204
80106829: 68 cc 00 00 00 push $0xcc
jmp alltraps
8010682e: e9 97 f0 ff ff jmp 801058ca <alltraps>
80106833 <vector205>:
.globl vector205
vector205:
pushl $0
80106833: 6a 00 push $0x0
pushl $205
80106835: 68 cd 00 00 00 push $0xcd
jmp alltraps
8010683a: e9 8b f0 ff ff jmp 801058ca <alltraps>
8010683f <vector206>:
.globl vector206
vector206:
pushl $0
8010683f: 6a 00 push $0x0
pushl $206
80106841: 68 ce 00 00 00 push $0xce
jmp alltraps
80106846: e9 7f f0 ff ff jmp 801058ca <alltraps>
8010684b <vector207>:
.globl vector207
vector207:
pushl $0
8010684b: 6a 00 push $0x0
pushl $207
8010684d: 68 cf 00 00 00 push $0xcf
jmp alltraps
80106852: e9 73 f0 ff ff jmp 801058ca <alltraps>
80106857 <vector208>:
.globl vector208
vector208:
pushl $0
80106857: 6a 00 push $0x0
pushl $208
80106859: 68 d0 00 00 00 push $0xd0
jmp alltraps
8010685e: e9 67 f0 ff ff jmp 801058ca <alltraps>
80106863 <vector209>:
.globl vector209
vector209:
pushl $0
80106863: 6a 00 push $0x0
pushl $209
80106865: 68 d1 00 00 00 push $0xd1
jmp alltraps
8010686a: e9 5b f0 ff ff jmp 801058ca <alltraps>
8010686f <vector210>:
.globl vector210
vector210:
pushl $0
8010686f: 6a 00 push $0x0
pushl $210
80106871: 68 d2 00 00 00 push $0xd2
jmp alltraps
80106876: e9 4f f0 ff ff jmp 801058ca <alltraps>
8010687b <vector211>:
.globl vector211
vector211:
pushl $0
8010687b: 6a 00 push $0x0
pushl $211
8010687d: 68 d3 00 00 00 push $0xd3
jmp alltraps
80106882: e9 43 f0 ff ff jmp 801058ca <alltraps>
80106887 <vector212>:
.globl vector212
vector212:
pushl $0
80106887: 6a 00 push $0x0
pushl $212
80106889: 68 d4 00 00 00 push $0xd4
jmp alltraps
8010688e: e9 37 f0 ff ff jmp 801058ca <alltraps>
80106893 <vector213>:
.globl vector213
vector213:
pushl $0
80106893: 6a 00 push $0x0
pushl $213
80106895: 68 d5 00 00 00 push $0xd5
jmp alltraps
8010689a: e9 2b f0 ff ff jmp 801058ca <alltraps>
8010689f <vector214>:
.globl vector214
vector214:
pushl $0
8010689f: 6a 00 push $0x0
pushl $214
801068a1: 68 d6 00 00 00 push $0xd6
jmp alltraps
801068a6: e9 1f f0 ff ff jmp 801058ca <alltraps>
801068ab <vector215>:
.globl vector215
vector215:
pushl $0
801068ab: 6a 00 push $0x0
pushl $215
801068ad: 68 d7 00 00 00 push $0xd7
jmp alltraps
801068b2: e9 13 f0 ff ff jmp 801058ca <alltraps>
801068b7 <vector216>:
.globl vector216
vector216:
pushl $0
801068b7: 6a 00 push $0x0
pushl $216
801068b9: 68 d8 00 00 00 push $0xd8
jmp alltraps
801068be: e9 07 f0 ff ff jmp 801058ca <alltraps>
801068c3 <vector217>:
.globl vector217
vector217:
pushl $0
801068c3: 6a 00 push $0x0
pushl $217
801068c5: 68 d9 00 00 00 push $0xd9
jmp alltraps
801068ca: e9 fb ef ff ff jmp 801058ca <alltraps>
801068cf <vector218>:
.globl vector218
vector218:
pushl $0
801068cf: 6a 00 push $0x0
pushl $218
801068d1: 68 da 00 00 00 push $0xda
jmp alltraps
801068d6: e9 ef ef ff ff jmp 801058ca <alltraps>
801068db <vector219>:
.globl vector219
vector219:
pushl $0
801068db: 6a 00 push $0x0
pushl $219
801068dd: 68 db 00 00 00 push $0xdb
jmp alltraps
801068e2: e9 e3 ef ff ff jmp 801058ca <alltraps>
801068e7 <vector220>:
.globl vector220
vector220:
pushl $0
801068e7: 6a 00 push $0x0
pushl $220
801068e9: 68 dc 00 00 00 push $0xdc
jmp alltraps
801068ee: e9 d7 ef ff ff jmp 801058ca <alltraps>
801068f3 <vector221>:
.globl vector221
vector221:
pushl $0
801068f3: 6a 00 push $0x0
pushl $221
801068f5: 68 dd 00 00 00 push $0xdd
jmp alltraps
801068fa: e9 cb ef ff ff jmp 801058ca <alltraps>
801068ff <vector222>:
.globl vector222
vector222:
pushl $0
801068ff: 6a 00 push $0x0
pushl $222
80106901: 68 de 00 00 00 push $0xde
jmp alltraps
80106906: e9 bf ef ff ff jmp 801058ca <alltraps>
8010690b <vector223>:
.globl vector223
vector223:
pushl $0
8010690b: 6a 00 push $0x0
pushl $223
8010690d: 68 df 00 00 00 push $0xdf
jmp alltraps
80106912: e9 b3 ef ff ff jmp 801058ca <alltraps>
80106917 <vector224>:
.globl vector224
vector224:
pushl $0
80106917: 6a 00 push $0x0
pushl $224
80106919: 68 e0 00 00 00 push $0xe0
jmp alltraps
8010691e: e9 a7 ef ff ff jmp 801058ca <alltraps>
80106923 <vector225>:
.globl vector225
vector225:
pushl $0
80106923: 6a 00 push $0x0
pushl $225
80106925: 68 e1 00 00 00 push $0xe1
jmp alltraps
8010692a: e9 9b ef ff ff jmp 801058ca <alltraps>
8010692f <vector226>:
.globl vector226
vector226:
pushl $0
8010692f: 6a 00 push $0x0
pushl $226
80106931: 68 e2 00 00 00 push $0xe2
jmp alltraps
80106936: e9 8f ef ff ff jmp 801058ca <alltraps>
8010693b <vector227>:
.globl vector227
vector227:
pushl $0
8010693b: 6a 00 push $0x0
pushl $227
8010693d: 68 e3 00 00 00 push $0xe3
jmp alltraps
80106942: e9 83 ef ff ff jmp 801058ca <alltraps>
80106947 <vector228>:
.globl vector228
vector228:
pushl $0
80106947: 6a 00 push $0x0
pushl $228
80106949: 68 e4 00 00 00 push $0xe4
jmp alltraps
8010694e: e9 77 ef ff ff jmp 801058ca <alltraps>
80106953 <vector229>:
.globl vector229
vector229:
pushl $0
80106953: 6a 00 push $0x0
pushl $229
80106955: 68 e5 00 00 00 push $0xe5
jmp alltraps
8010695a: e9 6b ef ff ff jmp 801058ca <alltraps>
8010695f <vector230>:
.globl vector230
vector230:
pushl $0
8010695f: 6a 00 push $0x0
pushl $230
80106961: 68 e6 00 00 00 push $0xe6
jmp alltraps
80106966: e9 5f ef ff ff jmp 801058ca <alltraps>
8010696b <vector231>:
.globl vector231
vector231:
pushl $0
8010696b: 6a 00 push $0x0
pushl $231
8010696d: 68 e7 00 00 00 push $0xe7
jmp alltraps
80106972: e9 53 ef ff ff jmp 801058ca <alltraps>
80106977 <vector232>:
.globl vector232
vector232:
pushl $0
80106977: 6a 00 push $0x0
pushl $232
80106979: 68 e8 00 00 00 push $0xe8
jmp alltraps
8010697e: e9 47 ef ff ff jmp 801058ca <alltraps>
80106983 <vector233>:
.globl vector233
vector233:
pushl $0
80106983: 6a 00 push $0x0
pushl $233
80106985: 68 e9 00 00 00 push $0xe9
jmp alltraps
8010698a: e9 3b ef ff ff jmp 801058ca <alltraps>
8010698f <vector234>:
.globl vector234
vector234:
pushl $0
8010698f: 6a 00 push $0x0
pushl $234
80106991: 68 ea 00 00 00 push $0xea
jmp alltraps
80106996: e9 2f ef ff ff jmp 801058ca <alltraps>
8010699b <vector235>:
.globl vector235
vector235:
pushl $0
8010699b: 6a 00 push $0x0
pushl $235
8010699d: 68 eb 00 00 00 push $0xeb
jmp alltraps
801069a2: e9 23 ef ff ff jmp 801058ca <alltraps>
801069a7 <vector236>:
.globl vector236
vector236:
pushl $0
801069a7: 6a 00 push $0x0
pushl $236
801069a9: 68 ec 00 00 00 push $0xec
jmp alltraps
801069ae: e9 17 ef ff ff jmp 801058ca <alltraps>
801069b3 <vector237>:
.globl vector237
vector237:
pushl $0
801069b3: 6a 00 push $0x0
pushl $237
801069b5: 68 ed 00 00 00 push $0xed
jmp alltraps
801069ba: e9 0b ef ff ff jmp 801058ca <alltraps>
801069bf <vector238>:
.globl vector238
vector238:
pushl $0
801069bf: 6a 00 push $0x0
pushl $238
801069c1: 68 ee 00 00 00 push $0xee
jmp alltraps
801069c6: e9 ff ee ff ff jmp 801058ca <alltraps>
801069cb <vector239>:
.globl vector239
vector239:
pushl $0
801069cb: 6a 00 push $0x0
pushl $239
801069cd: 68 ef 00 00 00 push $0xef
jmp alltraps
801069d2: e9 f3 ee ff ff jmp 801058ca <alltraps>
801069d7 <vector240>:
.globl vector240
vector240:
pushl $0
801069d7: 6a 00 push $0x0
pushl $240
801069d9: 68 f0 00 00 00 push $0xf0
jmp alltraps
801069de: e9 e7 ee ff ff jmp 801058ca <alltraps>
801069e3 <vector241>:
.globl vector241
vector241:
pushl $0
801069e3: 6a 00 push $0x0
pushl $241
801069e5: 68 f1 00 00 00 push $0xf1
jmp alltraps
801069ea: e9 db ee ff ff jmp 801058ca <alltraps>
801069ef <vector242>:
.globl vector242
vector242:
pushl $0
801069ef: 6a 00 push $0x0
pushl $242
801069f1: 68 f2 00 00 00 push $0xf2
jmp alltraps
801069f6: e9 cf ee ff ff jmp 801058ca <alltraps>
801069fb <vector243>:
.globl vector243
vector243:
pushl $0
801069fb: 6a 00 push $0x0
pushl $243
801069fd: 68 f3 00 00 00 push $0xf3
jmp alltraps
80106a02: e9 c3 ee ff ff jmp 801058ca <alltraps>
80106a07 <vector244>:
.globl vector244
vector244:
pushl $0
80106a07: 6a 00 push $0x0
pushl $244
80106a09: 68 f4 00 00 00 push $0xf4
jmp alltraps
80106a0e: e9 b7 ee ff ff jmp 801058ca <alltraps>
80106a13 <vector245>:
.globl vector245
vector245:
pushl $0
80106a13: 6a 00 push $0x0
pushl $245
80106a15: 68 f5 00 00 00 push $0xf5
jmp alltraps
80106a1a: e9 ab ee ff ff jmp 801058ca <alltraps>
80106a1f <vector246>:
.globl vector246
vector246:
pushl $0
80106a1f: 6a 00 push $0x0
pushl $246
80106a21: 68 f6 00 00 00 push $0xf6
jmp alltraps
80106a26: e9 9f ee ff ff jmp 801058ca <alltraps>
80106a2b <vector247>:
.globl vector247
vector247:
pushl $0
80106a2b: 6a 00 push $0x0
pushl $247
80106a2d: 68 f7 00 00 00 push $0xf7
jmp alltraps
80106a32: e9 93 ee ff ff jmp 801058ca <alltraps>
80106a37 <vector248>:
.globl vector248
vector248:
pushl $0
80106a37: 6a 00 push $0x0
pushl $248
80106a39: 68 f8 00 00 00 push $0xf8
jmp alltraps
80106a3e: e9 87 ee ff ff jmp 801058ca <alltraps>
80106a43 <vector249>:
.globl vector249
vector249:
pushl $0
80106a43: 6a 00 push $0x0
pushl $249
80106a45: 68 f9 00 00 00 push $0xf9
jmp alltraps
80106a4a: e9 7b ee ff ff jmp 801058ca <alltraps>
80106a4f <vector250>:
.globl vector250
vector250:
pushl $0
80106a4f: 6a 00 push $0x0
pushl $250
80106a51: 68 fa 00 00 00 push $0xfa
jmp alltraps
80106a56: e9 6f ee ff ff jmp 801058ca <alltraps>
80106a5b <vector251>:
.globl vector251
vector251:
pushl $0
80106a5b: 6a 00 push $0x0
pushl $251
80106a5d: 68 fb 00 00 00 push $0xfb
jmp alltraps
80106a62: e9 63 ee ff ff jmp 801058ca <alltraps>
80106a67 <vector252>:
.globl vector252
vector252:
pushl $0
80106a67: 6a 00 push $0x0
pushl $252
80106a69: 68 fc 00 00 00 push $0xfc
jmp alltraps
80106a6e: e9 57 ee ff ff jmp 801058ca <alltraps>
80106a73 <vector253>:
.globl vector253
vector253:
pushl $0
80106a73: 6a 00 push $0x0
pushl $253
80106a75: 68 fd 00 00 00 push $0xfd
jmp alltraps
80106a7a: e9 4b ee ff ff jmp 801058ca <alltraps>
80106a7f <vector254>:
.globl vector254
vector254:
pushl $0
80106a7f: 6a 00 push $0x0
pushl $254
80106a81: 68 fe 00 00 00 push $0xfe
jmp alltraps
80106a86: e9 3f ee ff ff jmp 801058ca <alltraps>
80106a8b <vector255>:
.globl vector255
vector255:
pushl $0
80106a8b: 6a 00 push $0x0
pushl $255
80106a8d: 68 ff 00 00 00 push $0xff
jmp alltraps
80106a92: e9 33 ee ff ff jmp 801058ca <alltraps>
80106a97: 66 90 xchg %ax,%ax
80106a99: 66 90 xchg %ax,%ax
80106a9b: 66 90 xchg %ax,%ax
80106a9d: 66 90 xchg %ax,%ax
80106a9f: 90 nop
80106aa0 <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)
{
80106aa0: 55 push %ebp
80106aa1: 89 e5 mov %esp,%ebp
80106aa3: 57 push %edi
80106aa4: 56 push %esi
80106aa5: 53 push %ebx
80106aa6: 89 d3 mov %edx,%ebx
pde_t *pde;
pte_t *pgtab;
pde = &pgdir[PDX(va)];
80106aa8: c1 ea 16 shr $0x16,%edx
80106aab: 8d 3c 90 lea (%eax,%edx,4),%edi
// 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)
{
80106aae: 83 ec 0c sub $0xc,%esp
pde_t *pde;
pte_t *pgtab;
pde = &pgdir[PDX(va)];
if(*pde & PTE_P){
80106ab1: 8b 07 mov (%edi),%eax
80106ab3: a8 01 test $0x1,%al
80106ab5: 74 29 je 80106ae0 <walkpgdir+0x40>
pgtab = (pte_t*)P2V(PTE_ADDR(*pde));
80106ab7: 25 00 f0 ff ff and $0xfffff000,%eax
80106abc: 8d b0 00 00 00 80 lea -0x80000000(%eax),%esi
// be further restricted by the permissions in the page table
// entries, if necessary.
*pde = V2P(pgtab) | PTE_P | PTE_W | PTE_U;
}
return &pgtab[PTX(va)];
}
80106ac2: 8d 65 f4 lea -0xc(%ebp),%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;
}
return &pgtab[PTX(va)];
80106ac5: c1 eb 0a shr $0xa,%ebx
80106ac8: 81 e3 fc 0f 00 00 and $0xffc,%ebx
80106ace: 8d 04 1e lea (%esi,%ebx,1),%eax
}
80106ad1: 5b pop %ebx
80106ad2: 5e pop %esi
80106ad3: 5f pop %edi
80106ad4: 5d pop %ebp
80106ad5: c3 ret
80106ad6: 8d 76 00 lea 0x0(%esi),%esi
80106ad9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
pde = &pgdir[PDX(va)];
if(*pde & PTE_P){
pgtab = (pte_t*)P2V(PTE_ADDR(*pde));
} else {
if(!alloc || (pgtab = (pte_t*)kalloc()) == 0)
80106ae0: 85 c9 test %ecx,%ecx
80106ae2: 74 2c je 80106b10 <walkpgdir+0x70>
80106ae4: e8 17 bc ff ff call 80102700 <kalloc>
80106ae9: 85 c0 test %eax,%eax
80106aeb: 89 c6 mov %eax,%esi
80106aed: 74 21 je 80106b10 <walkpgdir+0x70>
{
//cprintf("inside walkpgdir\n");
return 0;
}
// Make sure all those PTE_P bits are zero.
memset(pgtab, 0, PGSIZE);
80106aef: 83 ec 04 sub $0x4,%esp
80106af2: 68 00 10 00 00 push $0x1000
80106af7: 6a 00 push $0x0
80106af9: 50 push %eax
80106afa: e8 71 db ff ff call 80104670 <memset>
// 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;
80106aff: 8d 86 00 00 00 80 lea -0x80000000(%esi),%eax
80106b05: 83 c4 10 add $0x10,%esp
80106b08: 83 c8 07 or $0x7,%eax
80106b0b: 89 07 mov %eax,(%edi)
80106b0d: eb b3 jmp 80106ac2 <walkpgdir+0x22>
80106b0f: 90 nop
}
return &pgtab[PTX(va)];
}
80106b10: 8d 65 f4 lea -0xc(%ebp),%esp
pgtab = (pte_t*)P2V(PTE_ADDR(*pde));
} else {
if(!alloc || (pgtab = (pte_t*)kalloc()) == 0)
{
//cprintf("inside walkpgdir\n");
return 0;
80106b13: 31 c0 xor %eax,%eax
// be further restricted by the permissions in the page table
// entries, if necessary.
*pde = V2P(pgtab) | PTE_P | PTE_W | PTE_U;
}
return &pgtab[PTX(va)];
}
80106b15: 5b pop %ebx
80106b16: 5e pop %esi
80106b17: 5f pop %edi
80106b18: 5d pop %ebp
80106b19: c3 ret
80106b1a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80106b20 <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)
{
80106b20: 55 push %ebp
80106b21: 89 e5 mov %esp,%ebp
80106b23: 57 push %edi
80106b24: 56 push %esi
80106b25: 53 push %ebx
char *a, *last;
pte_t *pte;
a = (char*)PGROUNDDOWN((uint)va);
80106b26: 89 d3 mov %edx,%ebx
80106b28: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
// 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)
{
80106b2e: 83 ec 1c sub $0x1c,%esp
80106b31: 89 45 e4 mov %eax,-0x1c(%ebp)
char *a, *last;
pte_t *pte;
a = (char*)PGROUNDDOWN((uint)va);
last = (char*)PGROUNDDOWN(((uint)va) + size - 1);
80106b34: 8d 44 0a ff lea -0x1(%edx,%ecx,1),%eax
80106b38: 8b 7d 08 mov 0x8(%ebp),%edi
80106b3b: 25 00 f0 ff ff and $0xfffff000,%eax
80106b40: 89 45 e0 mov %eax,-0x20(%ebp)
cprintf("walkpgdir gadbad kar raha hai\n");
return -1;
}
if(*pte & PTE_P)
panic("remap");
*pte = pa | perm | PTE_P;
80106b43: 8b 45 0c mov 0xc(%ebp),%eax
80106b46: 29 df sub %ebx,%edi
80106b48: 83 c8 01 or $0x1,%eax
80106b4b: 89 45 dc mov %eax,-0x24(%ebp)
80106b4e: eb 15 jmp 80106b65 <mappages+0x45>
{
// cprintf((char *)pte);
cprintf("walkpgdir gadbad kar raha hai\n");
return -1;
}
if(*pte & PTE_P)
80106b50: f6 00 01 testb $0x1,(%eax)
80106b53: 75 55 jne 80106baa <mappages+0x8a>
panic("remap");
*pte = pa | perm | PTE_P;
80106b55: 0b 75 dc or -0x24(%ebp),%esi
if(a == last)
80106b58: 3b 5d e0 cmp -0x20(%ebp),%ebx
cprintf("walkpgdir gadbad kar raha hai\n");
return -1;
}
if(*pte & PTE_P)
panic("remap");
*pte = pa | perm | PTE_P;
80106b5b: 89 30 mov %esi,(%eax)
if(a == last)
80106b5d: 74 41 je 80106ba0 <mappages+0x80>
break;
a += PGSIZE;
80106b5f: 81 c3 00 10 00 00 add $0x1000,%ebx
pte_t *pte;
a = (char*)PGROUNDDOWN((uint)va);
last = (char*)PGROUNDDOWN(((uint)va) + size - 1);
for(;;){
if((pte = walkpgdir(pgdir, a, 1)) == 0)
80106b65: 8b 45 e4 mov -0x1c(%ebp),%eax
80106b68: b9 01 00 00 00 mov $0x1,%ecx
80106b6d: 89 da mov %ebx,%edx
80106b6f: 8d 34 3b lea (%ebx,%edi,1),%esi
80106b72: e8 29 ff ff ff call 80106aa0 <walkpgdir>
80106b77: 85 c0 test %eax,%eax
80106b79: 75 d5 jne 80106b50 <mappages+0x30>
{
// cprintf((char *)pte);
cprintf("walkpgdir gadbad kar raha hai\n");
80106b7b: 83 ec 0c sub $0xc,%esp
80106b7e: 68 f4 7f 10 80 push $0x80107ff4
80106b83: e8 08 9c ff ff call 80100790 <cprintf>
return -1;
80106b88: 83 c4 10 add $0x10,%esp
break;
a += PGSIZE;
pa += PGSIZE;
}
return 0;
}
80106b8b: 8d 65 f4 lea -0xc(%ebp),%esp
for(;;){
if((pte = walkpgdir(pgdir, a, 1)) == 0)
{
// cprintf((char *)pte);
cprintf("walkpgdir gadbad kar raha hai\n");
return -1;
80106b8e: b8 ff ff ff ff mov $0xffffffff,%eax
break;
a += PGSIZE;
pa += PGSIZE;
}
return 0;
}
80106b93: 5b pop %ebx
80106b94: 5e pop %esi
80106b95: 5f pop %edi
80106b96: 5d pop %ebp
80106b97: c3 ret
80106b98: 90 nop
80106b99: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106ba0: 8d 65 f4 lea -0xc(%ebp),%esp
if(a == last)
break;
a += PGSIZE;
pa += PGSIZE;
}
return 0;
80106ba3: 31 c0 xor %eax,%eax
}
80106ba5: 5b pop %ebx
80106ba6: 5e pop %esi
80106ba7: 5f pop %edi
80106ba8: 5d pop %ebp
80106ba9: c3 ret
// cprintf((char *)pte);
cprintf("walkpgdir gadbad kar raha hai\n");
return -1;
}
if(*pte & PTE_P)
panic("remap");
80106baa: 83 ec 0c sub $0xc,%esp
80106bad: 68 38 80 10 80 push $0x80108038
80106bb2: e8 e9 98 ff ff call 801004a0 <panic>
80106bb7: 89 f6 mov %esi,%esi
80106bb9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106bc0 <deallocuvm.part.0>:
// 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.
// If the page was swapped free the corresponding disk block.
int
deallocuvm(pde_t *pgdir, uint oldsz, uint newsz)
80106bc0: 55 push %ebp
80106bc1: 89 e5 mov %esp,%ebp
80106bc3: 57 push %edi
80106bc4: 56 push %esi
80106bc5: 53 push %ebx
uint a, pa;
if(newsz >= oldsz)
return oldsz;
a = PGROUNDUP(newsz);
80106bc6: 8d 99 ff 0f 00 00 lea 0xfff(%ecx),%ebx
// 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.
// If the page was swapped free the corresponding disk block.
int
deallocuvm(pde_t *pgdir, uint oldsz, uint newsz)
80106bcc: 89 c7 mov %eax,%edi
uint a, pa;
if(newsz >= oldsz)
return oldsz;
a = PGROUNDUP(newsz);
80106bce: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
// 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.
// If the page was swapped free the corresponding disk block.
int
deallocuvm(pde_t *pgdir, uint oldsz, uint newsz)
80106bd4: 83 ec 1c sub $0x1c,%esp
80106bd7: 89 4d dc mov %ecx,-0x24(%ebp)
if(newsz >= oldsz)
return oldsz;
a = PGROUNDUP(newsz);
for(; a < oldsz; a += PGSIZE)
80106bda: 39 d3 cmp %edx,%ebx
80106bdc: 73 71 jae 80106c4f <deallocuvm.part.0+0x8f>
80106bde: 89 d6 mov %edx,%esi
80106be0: eb 48 jmp 80106c2a <deallocuvm.part.0+0x6a>
80106be2: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
{
pte = walkpgdir(pgdir, (char*)a, 0);
if(!pte)
a = PGADDR(PDX(a) + 1, 0, 0) - PGSIZE;
else if((*pte & PTE_P) != 0)
80106be8: 8b 10 mov (%eax),%edx
80106bea: f6 c2 01 test $0x1,%dl
80106bed: 74 31 je 80106c20 <deallocuvm.part.0+0x60>
{
pa = PTE_ADDR(*pte);
if(pa == 0)
80106bef: 89 d1 mov %edx,%ecx
80106bf1: 81 e1 00 f0 ff ff and $0xfffff000,%ecx
80106bf7: 0f 84 82 00 00 00 je 80106c7f <deallocuvm.part.0+0xbf>
panic("kfree");
//freeing swapped disk blocks
if(*pte & PTE_PS)
80106bfd: f6 c2 80 test $0x80,%dl
80106c00: 75 5e jne 80106c60 <deallocuvm.part.0+0xa0>
{
uint blk = (*pte)>>12;
bfree_page(ROOTDEV, blk);
}
char *v = P2V(pa);
kfree(v);
80106c02: 83 ec 0c sub $0xc,%esp
80106c05: 81 c1 00 00 00 80 add $0x80000000,%ecx
80106c0b: 89 45 e4 mov %eax,-0x1c(%ebp)
80106c0e: 51 push %ecx
80106c0f: e8 3c b9 ff ff call 80102550 <kfree>
*pte = 0;
80106c14: 8b 45 e4 mov -0x1c(%ebp),%eax
80106c17: 83 c4 10 add $0x10,%esp
80106c1a: c7 00 00 00 00 00 movl $0x0,(%eax)
if(newsz >= oldsz)
return oldsz;
a = PGROUNDUP(newsz);
for(; a < oldsz; a += PGSIZE)
80106c20: 81 c3 00 10 00 00 add $0x1000,%ebx
80106c26: 39 f3 cmp %esi,%ebx
80106c28: 73 25 jae 80106c4f <deallocuvm.part.0+0x8f>
{
pte = walkpgdir(pgdir, (char*)a, 0);
80106c2a: 31 c9 xor %ecx,%ecx
80106c2c: 89 da mov %ebx,%edx
80106c2e: 89 f8 mov %edi,%eax
80106c30: e8 6b fe ff ff call 80106aa0 <walkpgdir>
if(!pte)
80106c35: 85 c0 test %eax,%eax
80106c37: 75 af jne 80106be8 <deallocuvm.part.0+0x28>
a = PGADDR(PDX(a) + 1, 0, 0) - PGSIZE;
80106c39: 81 e3 00 00 c0 ff and $0xffc00000,%ebx
80106c3f: 81 c3 00 f0 3f 00 add $0x3ff000,%ebx
if(newsz >= oldsz)
return oldsz;
a = PGROUNDUP(newsz);
for(; a < oldsz; a += PGSIZE)
80106c45: 81 c3 00 10 00 00 add $0x1000,%ebx
80106c4b: 39 f3 cmp %esi,%ebx
80106c4d: 72 db jb 80106c2a <deallocuvm.part.0+0x6a>
kfree(v);
*pte = 0;
}
}
return newsz;
}
80106c4f: 8b 45 dc mov -0x24(%ebp),%eax
80106c52: 8d 65 f4 lea -0xc(%ebp),%esp
80106c55: 5b pop %ebx
80106c56: 5e pop %esi
80106c57: 5f pop %edi
80106c58: 5d pop %ebp
80106c59: c3 ret
80106c5a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
panic("kfree");
//freeing swapped disk blocks
if(*pte & PTE_PS)
{
uint blk = (*pte)>>12;
bfree_page(ROOTDEV, blk);
80106c60: 83 ec 08 sub $0x8,%esp
80106c63: c1 ea 0c shr $0xc,%edx
80106c66: 89 4d e0 mov %ecx,-0x20(%ebp)
80106c69: 52 push %edx
80106c6a: 6a 01 push $0x1
80106c6c: 89 45 e4 mov %eax,-0x1c(%ebp)
80106c6f: e8 2c aa ff ff call 801016a0 <bfree_page>
80106c74: 83 c4 10 add $0x10,%esp
80106c77: 8b 4d e0 mov -0x20(%ebp),%ecx
80106c7a: 8b 45 e4 mov -0x1c(%ebp),%eax
80106c7d: eb 83 jmp 80106c02 <deallocuvm.part.0+0x42>
a = PGADDR(PDX(a) + 1, 0, 0) - PGSIZE;
else if((*pte & PTE_P) != 0)
{
pa = PTE_ADDR(*pte);
if(pa == 0)
panic("kfree");
80106c7f: 83 ec 0c sub $0xc,%esp
80106c82: 68 6a 78 10 80 push $0x8010786a
80106c87: e8 14 98 ff ff call 801004a0 <panic>
80106c8c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80106c90 <seginit>:
// Set up CPU's kernel segment descriptors.
// Run once on entry on each CPU.
void
seginit(void)
{
80106c90: 55 push %ebp
80106c91: 89 e5 mov %esp,%ebp
80106c93: 83 ec 18 sub $0x18,%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[cpuid()];
80106c96: e8 35 cd ff ff call 801039d0 <cpuid>
c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0);
80106c9b: 69 c0 b0 00 00 00 imul $0xb0,%eax,%eax
80106ca1: 31 c9 xor %ecx,%ecx
80106ca3: ba ff ff ff ff mov $0xffffffff,%edx
80106ca8: 66 89 90 f8 37 11 80 mov %dx,-0x7feec808(%eax)
80106caf: 66 89 88 fa 37 11 80 mov %cx,-0x7feec806(%eax)
c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0);
80106cb6: ba ff ff ff ff mov $0xffffffff,%edx
80106cbb: 31 c9 xor %ecx,%ecx
80106cbd: 66 89 90 00 38 11 80 mov %dx,-0x7feec800(%eax)
c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER);
80106cc4: ba ff ff ff ff mov $0xffffffff,%edx
// 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[cpuid()];
c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0);
c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0);
80106cc9: 66 89 88 02 38 11 80 mov %cx,-0x7feec7fe(%eax)
c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER);
80106cd0: 31 c9 xor %ecx,%ecx
80106cd2: 66 89 90 08 38 11 80 mov %dx,-0x7feec7f8(%eax)
80106cd9: 66 89 88 0a 38 11 80 mov %cx,-0x7feec7f6(%eax)
c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER);
80106ce0: ba ff ff ff ff mov $0xffffffff,%edx
80106ce5: 31 c9 xor %ecx,%ecx
80106ce7: 66 89 90 10 38 11 80 mov %dx,-0x7feec7f0(%eax)
// 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[cpuid()];
c->gdt[SEG_KCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, 0);
80106cee: c6 80 fc 37 11 80 00 movb $0x0,-0x7feec804(%eax)
static inline void
lgdt(struct segdesc *p, int size)
{
volatile ushort pd[3];
pd[0] = size-1;
80106cf5: ba 2f 00 00 00 mov $0x2f,%edx
80106cfa: c6 80 fd 37 11 80 9a movb $0x9a,-0x7feec803(%eax)
80106d01: c6 80 fe 37 11 80 cf movb $0xcf,-0x7feec802(%eax)
80106d08: c6 80 ff 37 11 80 00 movb $0x0,-0x7feec801(%eax)
c->gdt[SEG_KDATA] = SEG(STA_W, 0, 0xffffffff, 0);
80106d0f: c6 80 04 38 11 80 00 movb $0x0,-0x7feec7fc(%eax)
80106d16: c6 80 05 38 11 80 92 movb $0x92,-0x7feec7fb(%eax)
80106d1d: c6 80 06 38 11 80 cf movb $0xcf,-0x7feec7fa(%eax)
80106d24: c6 80 07 38 11 80 00 movb $0x0,-0x7feec7f9(%eax)
c->gdt[SEG_UCODE] = SEG(STA_X|STA_R, 0, 0xffffffff, DPL_USER);
80106d2b: c6 80 0c 38 11 80 00 movb $0x0,-0x7feec7f4(%eax)
80106d32: c6 80 0d 38 11 80 fa movb $0xfa,-0x7feec7f3(%eax)
80106d39: c6 80 0e 38 11 80 cf movb $0xcf,-0x7feec7f2(%eax)
80106d40: c6 80 0f 38 11 80 00 movb $0x0,-0x7feec7f1(%eax)
c->gdt[SEG_UDATA] = SEG(STA_W, 0, 0xffffffff, DPL_USER);
80106d47: 66 89 88 12 38 11 80 mov %cx,-0x7feec7ee(%eax)
80106d4e: c6 80 14 38 11 80 00 movb $0x0,-0x7feec7ec(%eax)
80106d55: c6 80 15 38 11 80 f2 movb $0xf2,-0x7feec7eb(%eax)
80106d5c: c6 80 16 38 11 80 cf movb $0xcf,-0x7feec7ea(%eax)
80106d63: c6 80 17 38 11 80 00 movb $0x0,-0x7feec7e9(%eax)
lgdt(c->gdt, sizeof(c->gdt));
80106d6a: 05 f0 37 11 80 add $0x801137f0,%eax
80106d6f: 66 89 55 f2 mov %dx,-0xe(%ebp)
pd[1] = (uint)p;
80106d73: 66 89 45 f4 mov %ax,-0xc(%ebp)
pd[2] = (uint)p >> 16;
80106d77: c1 e8 10 shr $0x10,%eax
80106d7a: 66 89 45 f6 mov %ax,-0xa(%ebp)
asm volatile("lgdt (%0)" : : "r" (pd));
80106d7e: 8d 45 f2 lea -0xe(%ebp),%eax
80106d81: 0f 01 10 lgdtl (%eax)
}
80106d84: c9 leave
80106d85: c3 ret
80106d86: 8d 76 00 lea 0x0(%esi),%esi
80106d89: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106d90 <switchkvm>:
}
static inline void
lcr3(uint val)
{
asm volatile("movl %0,%%cr3" : : "r" (val));
80106d90: a1 a4 64 11 80 mov 0x801164a4,%eax
// Switch h/w page table register to the kernel-only page table,
// for when no process is running.
void
switchkvm(void)
{
80106d95: 55 push %ebp
80106d96: 89 e5 mov %esp,%ebp
80106d98: 05 00 00 00 80 add $0x80000000,%eax
80106d9d: 0f 22 d8 mov %eax,%cr3
lcr3(V2P(kpgdir)); // switch to the kernel page table
}
80106da0: 5d pop %ebp
80106da1: c3 ret
80106da2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106da9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106db0 <switchuvm>:
// Switch TSS and h/w page table to correspond to process p.
void
switchuvm(struct proc *p)
{
80106db0: 55 push %ebp
80106db1: 89 e5 mov %esp,%ebp
80106db3: 57 push %edi
80106db4: 56 push %esi
80106db5: 53 push %ebx
80106db6: 83 ec 1c sub $0x1c,%esp
80106db9: 8b 75 08 mov 0x8(%ebp),%esi
if(p == 0)
80106dbc: 85 f6 test %esi,%esi
80106dbe: 0f 84 cd 00 00 00 je 80106e91 <switchuvm+0xe1>
panic("switchuvm: no process");
if(p->kstack == 0)
80106dc4: 8b 46 08 mov 0x8(%esi),%eax
80106dc7: 85 c0 test %eax,%eax
80106dc9: 0f 84 dc 00 00 00 je 80106eab <switchuvm+0xfb>
panic("switchuvm: no kstack");
if(p->pgdir == 0)
80106dcf: 8b 7e 04 mov 0x4(%esi),%edi
80106dd2: 85 ff test %edi,%edi
80106dd4: 0f 84 c4 00 00 00 je 80106e9e <switchuvm+0xee>
panic("switchuvm: no pgdir");
pushcli();
80106dda: e8 e1 d6 ff ff call 801044c0 <pushcli>
mycpu()->gdt[SEG_TSS] = SEG16(STS_T32A, &mycpu()->ts,
80106ddf: e8 6c cb ff ff call 80103950 <mycpu>
80106de4: 89 c3 mov %eax,%ebx
80106de6: e8 65 cb ff ff call 80103950 <mycpu>
80106deb: 89 c7 mov %eax,%edi
80106ded: e8 5e cb ff ff call 80103950 <mycpu>
80106df2: 89 45 e4 mov %eax,-0x1c(%ebp)
80106df5: 83 c7 08 add $0x8,%edi
80106df8: e8 53 cb ff ff call 80103950 <mycpu>
80106dfd: 8b 4d e4 mov -0x1c(%ebp),%ecx
80106e00: 83 c0 08 add $0x8,%eax
80106e03: ba 67 00 00 00 mov $0x67,%edx
80106e08: c1 e8 18 shr $0x18,%eax
80106e0b: 66 89 93 98 00 00 00 mov %dx,0x98(%ebx)
80106e12: 66 89 bb 9a 00 00 00 mov %di,0x9a(%ebx)
80106e19: c6 83 9d 00 00 00 99 movb $0x99,0x9d(%ebx)
80106e20: c6 83 9e 00 00 00 40 movb $0x40,0x9e(%ebx)
80106e27: 83 c1 08 add $0x8,%ecx
80106e2a: 88 83 9f 00 00 00 mov %al,0x9f(%ebx)
80106e30: c1 e9 10 shr $0x10,%ecx
80106e33: 88 8b 9c 00 00 00 mov %cl,0x9c(%ebx)
mycpu()->gdt[SEG_TSS].s = 0;
mycpu()->ts.ss0 = SEG_KDATA << 3;
mycpu()->ts.esp0 = (uint)p->kstack + KSTACKSIZE;
// setting IOPL=0 in eflags *and* iomb beyond the tss segment limit
// forbids I/O instructions (e.g., inb and outb) from user space
mycpu()->ts.iomb = (ushort) 0xFFFF;
80106e39: bb ff ff ff ff mov $0xffffffff,%ebx
panic("switchuvm: no pgdir");
pushcli();
mycpu()->gdt[SEG_TSS] = SEG16(STS_T32A, &mycpu()->ts,
sizeof(mycpu()->ts)-1, 0);
mycpu()->gdt[SEG_TSS].s = 0;
80106e3e: e8 0d cb ff ff call 80103950 <mycpu>
80106e43: 80 a0 9d 00 00 00 ef andb $0xef,0x9d(%eax)
mycpu()->ts.ss0 = SEG_KDATA << 3;
80106e4a: e8 01 cb ff ff call 80103950 <mycpu>
80106e4f: b9 10 00 00 00 mov $0x10,%ecx
80106e54: 66 89 48 10 mov %cx,0x10(%eax)
mycpu()->ts.esp0 = (uint)p->kstack + KSTACKSIZE;
80106e58: e8 f3 ca ff ff call 80103950 <mycpu>
80106e5d: 8b 56 08 mov 0x8(%esi),%edx
80106e60: 8d 8a 00 10 00 00 lea 0x1000(%edx),%ecx
80106e66: 89 48 0c mov %ecx,0xc(%eax)
// setting IOPL=0 in eflags *and* iomb beyond the tss segment limit
// forbids I/O instructions (e.g., inb and outb) from user space
mycpu()->ts.iomb = (ushort) 0xFFFF;
80106e69: e8 e2 ca ff ff call 80103950 <mycpu>
80106e6e: 66 89 58 6e mov %bx,0x6e(%eax)
}
static inline void
ltr(ushort sel)
{
asm volatile("ltr %0" : : "r" (sel));
80106e72: b8 28 00 00 00 mov $0x28,%eax
80106e77: 0f 00 d8 ltr %ax
}
static inline void
lcr3(uint val)
{
asm volatile("movl %0,%%cr3" : : "r" (val));
80106e7a: 8b 46 04 mov 0x4(%esi),%eax
80106e7d: 05 00 00 00 80 add $0x80000000,%eax
80106e82: 0f 22 d8 mov %eax,%cr3
ltr(SEG_TSS << 3);
lcr3(V2P(p->pgdir)); // switch to process's address space
popcli();
}
80106e85: 8d 65 f4 lea -0xc(%ebp),%esp
80106e88: 5b pop %ebx
80106e89: 5e pop %esi
80106e8a: 5f pop %edi
80106e8b: 5d pop %ebp
// setting IOPL=0 in eflags *and* iomb beyond the tss segment limit
// forbids I/O instructions (e.g., inb and outb) from user space
mycpu()->ts.iomb = (ushort) 0xFFFF;
ltr(SEG_TSS << 3);
lcr3(V2P(p->pgdir)); // switch to process's address space
popcli();
80106e8c: e9 1f d7 ff ff jmp 801045b0 <popcli>
// Switch TSS and h/w page table to correspond to process p.
void
switchuvm(struct proc *p)
{
if(p == 0)
panic("switchuvm: no process");
80106e91: 83 ec 0c sub $0xc,%esp
80106e94: 68 3e 80 10 80 push $0x8010803e
80106e99: e8 02 96 ff ff call 801004a0 <panic>
if(p->kstack == 0)
panic("switchuvm: no kstack");
if(p->pgdir == 0)
panic("switchuvm: no pgdir");
80106e9e: 83 ec 0c sub $0xc,%esp
80106ea1: 68 69 80 10 80 push $0x80108069
80106ea6: e8 f5 95 ff ff call 801004a0 <panic>
switchuvm(struct proc *p)
{
if(p == 0)
panic("switchuvm: no process");
if(p->kstack == 0)
panic("switchuvm: no kstack");
80106eab: 83 ec 0c sub $0xc,%esp
80106eae: 68 54 80 10 80 push $0x80108054
80106eb3: e8 e8 95 ff ff call 801004a0 <panic>
80106eb8: 90 nop
80106eb9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106ec0 <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)
{
80106ec0: 55 push %ebp
80106ec1: 89 e5 mov %esp,%ebp
80106ec3: 57 push %edi
80106ec4: 56 push %esi
80106ec5: 53 push %ebx
80106ec6: 83 ec 1c sub $0x1c,%esp
80106ec9: 8b 75 10 mov 0x10(%ebp),%esi
80106ecc: 8b 45 08 mov 0x8(%ebp),%eax
80106ecf: 8b 7d 0c mov 0xc(%ebp),%edi
char *mem;
if(sz >= PGSIZE)
80106ed2: 81 fe ff 0f 00 00 cmp $0xfff,%esi
// Load the initcode into address 0 of pgdir.
// sz must be less than a page.
void
inituvm(pde_t *pgdir, char *init, uint sz)
{
80106ed8: 89 45 e4 mov %eax,-0x1c(%ebp)
char *mem;
if(sz >= PGSIZE)
80106edb: 77 49 ja 80106f26 <inituvm+0x66>
panic("inituvm: more than a page");
mem = kalloc();
80106edd: e8 1e b8 ff ff call 80102700 <kalloc>
memset(mem, 0, PGSIZE);
80106ee2: 83 ec 04 sub $0x4,%esp
{
char *mem;
if(sz >= PGSIZE)
panic("inituvm: more than a page");
mem = kalloc();
80106ee5: 89 c3 mov %eax,%ebx
memset(mem, 0, PGSIZE);
80106ee7: 68 00 10 00 00 push $0x1000
80106eec: 6a 00 push $0x0
80106eee: 50 push %eax
80106eef: e8 7c d7 ff ff call 80104670 <memset>
mappages(pgdir, 0, PGSIZE, V2P(mem), PTE_W|PTE_U);
80106ef4: 58 pop %eax
80106ef5: 8d 83 00 00 00 80 lea -0x80000000(%ebx),%eax
80106efb: b9 00 10 00 00 mov $0x1000,%ecx
80106f00: 5a pop %edx
80106f01: 6a 06 push $0x6
80106f03: 50 push %eax
80106f04: 31 d2 xor %edx,%edx
80106f06: 8b 45 e4 mov -0x1c(%ebp),%eax
80106f09: e8 12 fc ff ff call 80106b20 <mappages>
memmove(mem, init, sz);
80106f0e: 89 75 10 mov %esi,0x10(%ebp)
80106f11: 89 7d 0c mov %edi,0xc(%ebp)
80106f14: 83 c4 10 add $0x10,%esp
80106f17: 89 5d 08 mov %ebx,0x8(%ebp)
}
80106f1a: 8d 65 f4 lea -0xc(%ebp),%esp
80106f1d: 5b pop %ebx
80106f1e: 5e pop %esi
80106f1f: 5f pop %edi
80106f20: 5d pop %ebp
if(sz >= PGSIZE)
panic("inituvm: more than a page");
mem = kalloc();
memset(mem, 0, PGSIZE);
mappages(pgdir, 0, PGSIZE, V2P(mem), PTE_W|PTE_U);
memmove(mem, init, sz);
80106f21: e9 fa d7 ff ff jmp 80104720 <memmove>
inituvm(pde_t *pgdir, char *init, uint sz)
{
char *mem;
if(sz >= PGSIZE)
panic("inituvm: more than a page");
80106f26: 83 ec 0c sub $0xc,%esp
80106f29: 68 7d 80 10 80 push $0x8010807d
80106f2e: e8 6d 95 ff ff call 801004a0 <panic>
80106f33: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80106f39: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80106f40 <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)
{
80106f40: 55 push %ebp
80106f41: 89 e5 mov %esp,%ebp
80106f43: 57 push %edi
80106f44: 56 push %esi
80106f45: 53 push %ebx
80106f46: 83 ec 0c sub $0xc,%esp
uint i, pa, n;
pte_t *pte;
if((uint) addr % PGSIZE != 0)
80106f49: f7 45 0c ff 0f 00 00 testl $0xfff,0xc(%ebp)
80106f50: 0f 85 91 00 00 00 jne 80106fe7 <loaduvm+0xa7>
panic("loaduvm: addr must be page aligned");
for(i = 0; i < sz; i += PGSIZE){
80106f56: 8b 75 18 mov 0x18(%ebp),%esi
80106f59: 31 db xor %ebx,%ebx
80106f5b: 85 f6 test %esi,%esi
80106f5d: 75 1a jne 80106f79 <loaduvm+0x39>
80106f5f: eb 6f jmp 80106fd0 <loaduvm+0x90>
80106f61: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80106f68: 81 c3 00 10 00 00 add $0x1000,%ebx
80106f6e: 81 ee 00 10 00 00 sub $0x1000,%esi
80106f74: 39 5d 18 cmp %ebx,0x18(%ebp)
80106f77: 76 57 jbe 80106fd0 <loaduvm+0x90>
if((pte = walkpgdir(pgdir, addr+i, 0)) == 0)
80106f79: 8b 55 0c mov 0xc(%ebp),%edx
80106f7c: 8b 45 08 mov 0x8(%ebp),%eax
80106f7f: 31 c9 xor %ecx,%ecx
80106f81: 01 da add %ebx,%edx
80106f83: e8 18 fb ff ff call 80106aa0 <walkpgdir>
80106f88: 85 c0 test %eax,%eax
80106f8a: 74 4e je 80106fda <loaduvm+0x9a>
panic("loaduvm: address should exist");
pa = PTE_ADDR(*pte);
80106f8c: 8b 00 mov (%eax),%eax
if(sz - i < PGSIZE)
n = sz - i;
else
n = PGSIZE;
if(readi(ip, P2V(pa), offset+i, n) != n)
80106f8e: 8b 4d 14 mov 0x14(%ebp),%ecx
panic("loaduvm: addr must be page aligned");
for(i = 0; i < sz; i += PGSIZE){
if((pte = walkpgdir(pgdir, addr+i, 0)) == 0)
panic("loaduvm: address should exist");
pa = PTE_ADDR(*pte);
if(sz - i < PGSIZE)
80106f91: bf 00 10 00 00 mov $0x1000,%edi
if((uint) addr % PGSIZE != 0)
panic("loaduvm: addr must be page aligned");
for(i = 0; i < sz; i += PGSIZE){
if((pte = walkpgdir(pgdir, addr+i, 0)) == 0)
panic("loaduvm: address should exist");
pa = PTE_ADDR(*pte);
80106f96: 25 00 f0 ff ff and $0xfffff000,%eax
if(sz - i < PGSIZE)
80106f9b: 81 fe ff 0f 00 00 cmp $0xfff,%esi
80106fa1: 0f 46 fe cmovbe %esi,%edi
n = sz - i;
else
n = PGSIZE;
if(readi(ip, P2V(pa), offset+i, n) != n)
80106fa4: 01 d9 add %ebx,%ecx
80106fa6: 05 00 00 00 80 add $0x80000000,%eax
80106fab: 57 push %edi
80106fac: 51 push %ecx
80106fad: 50 push %eax
80106fae: ff 75 10 pushl 0x10(%ebp)
80106fb1: e8 0a ac ff ff call 80101bc0 <readi>
80106fb6: 83 c4 10 add $0x10,%esp
80106fb9: 39 c7 cmp %eax,%edi
80106fbb: 74 ab je 80106f68 <loaduvm+0x28>
return -1;
}
return 0;
}
80106fbd: 8d 65 f4 lea -0xc(%ebp),%esp
if(sz - i < PGSIZE)
n = sz - i;
else
n = PGSIZE;
if(readi(ip, P2V(pa), offset+i, n) != n)
return -1;
80106fc0: b8 ff ff ff ff mov $0xffffffff,%eax
}
return 0;
}
80106fc5: 5b pop %ebx
80106fc6: 5e pop %esi
80106fc7: 5f pop %edi
80106fc8: 5d pop %ebp
80106fc9: c3 ret
80106fca: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80106fd0: 8d 65 f4 lea -0xc(%ebp),%esp
else
n = PGSIZE;
if(readi(ip, P2V(pa), offset+i, n) != n)
return -1;
}
return 0;
80106fd3: 31 c0 xor %eax,%eax
}
80106fd5: 5b pop %ebx
80106fd6: 5e pop %esi
80106fd7: 5f pop %edi
80106fd8: 5d pop %ebp
80106fd9: c3 ret
if((uint) addr % PGSIZE != 0)
panic("loaduvm: addr must be page aligned");
for(i = 0; i < sz; i += PGSIZE){
if((pte = walkpgdir(pgdir, addr+i, 0)) == 0)
panic("loaduvm: address should exist");
80106fda: 83 ec 0c sub $0xc,%esp
80106fdd: 68 97 80 10 80 push $0x80108097
80106fe2: e8 b9 94 ff ff call 801004a0 <panic>
{
uint i, pa, n;
pte_t *pte;
if((uint) addr % PGSIZE != 0)
panic("loaduvm: addr must be page aligned");
80106fe7: 83 ec 0c sub $0xc,%esp
80106fea: 68 14 80 10 80 push $0x80108014
80106fef: e8 ac 94 ff ff call 801004a0 <panic>
80106ff4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80106ffa: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80107000 <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)
{
80107000: 55 push %ebp
80107001: 89 e5 mov %esp,%ebp
80107003: 57 push %edi
80107004: 56 push %esi
80107005: 53 push %ebx
80107006: 83 ec 0c sub $0xc,%esp
80107009: 8b 7d 10 mov 0x10(%ebp),%edi
char *mem;
uint a;
if(newsz >= KERNBASE)
8010700c: 85 ff test %edi,%edi
8010700e: 0f 88 ca 00 00 00 js 801070de <allocuvm+0xde>
return 0;
if(newsz < oldsz)
80107014: 3b 7d 0c cmp 0xc(%ebp),%edi
return oldsz;
80107017: 8b 45 0c mov 0xc(%ebp),%eax
char *mem;
uint a;
if(newsz >= KERNBASE)
return 0;
if(newsz < oldsz)
8010701a: 0f 82 82 00 00 00 jb 801070a2 <allocuvm+0xa2>
return oldsz;
a = PGROUNDUP(oldsz);
80107020: 8d 98 ff 0f 00 00 lea 0xfff(%eax),%ebx
80107026: 81 e3 00 f0 ff ff and $0xfffff000,%ebx
for(; a < newsz; a += PGSIZE){
8010702c: 39 df cmp %ebx,%edi
8010702e: 77 43 ja 80107073 <allocuvm+0x73>
80107030: e9 bb 00 00 00 jmp 801070f0 <allocuvm+0xf0>
80107035: 8d 76 00 lea 0x0(%esi),%esi
if(mem == 0){
cprintf("allocuvm out of memory\n");
deallocuvm(pgdir, newsz, oldsz);
return 0;
}
memset(mem, 0, PGSIZE);
80107038: 83 ec 04 sub $0x4,%esp
8010703b: 68 00 10 00 00 push $0x1000
80107040: 6a 00 push $0x0
80107042: 50 push %eax
80107043: e8 28 d6 ff ff call 80104670 <memset>
if(mappages(pgdir, (char*)a, PGSIZE, V2P(mem), PTE_W|PTE_U) < 0){
80107048: 58 pop %eax
80107049: 8d 86 00 00 00 80 lea -0x80000000(%esi),%eax
8010704f: b9 00 10 00 00 mov $0x1000,%ecx
80107054: 5a pop %edx
80107055: 6a 06 push $0x6
80107057: 50 push %eax
80107058: 89 da mov %ebx,%edx
8010705a: 8b 45 08 mov 0x8(%ebp),%eax
8010705d: e8 be fa ff ff call 80106b20 <mappages>
80107062: 83 c4 10 add $0x10,%esp
80107065: 85 c0 test %eax,%eax
80107067: 78 47 js 801070b0 <allocuvm+0xb0>
if(newsz < oldsz)
return oldsz;
a = PGROUNDUP(oldsz);
for(; a < newsz; a += PGSIZE){
80107069: 81 c3 00 10 00 00 add $0x1000,%ebx
8010706f: 39 df cmp %ebx,%edi
80107071: 76 7d jbe 801070f0 <allocuvm+0xf0>
mem = kalloc();
80107073: e8 88 b6 ff ff call 80102700 <kalloc>
if(mem == 0){
80107078: 85 c0 test %eax,%eax
return oldsz;
a = PGROUNDUP(oldsz);
for(; a < newsz; a += PGSIZE){
mem = kalloc();
8010707a: 89 c6 mov %eax,%esi
if(mem == 0){
8010707c: 75 ba jne 80107038 <allocuvm+0x38>
cprintf("allocuvm out of memory\n");
8010707e: 83 ec 0c sub $0xc,%esp
80107081: 68 b5 80 10 80 push $0x801080b5
80107086: e8 05 97 ff ff call 80100790 <cprintf>
deallocuvm(pde_t *pgdir, uint oldsz, uint newsz)
{
pte_t *pte;
uint a, pa;
if(newsz >= oldsz)
8010708b: 83 c4 10 add $0x10,%esp
8010708e: 3b 7d 0c cmp 0xc(%ebp),%edi
80107091: 76 4b jbe 801070de <allocuvm+0xde>
80107093: 8b 4d 0c mov 0xc(%ebp),%ecx
80107096: 8b 45 08 mov 0x8(%ebp),%eax
80107099: 89 fa mov %edi,%edx
8010709b: e8 20 fb ff ff call 80106bc0 <deallocuvm.part.0>
for(; a < newsz; a += PGSIZE){
mem = kalloc();
if(mem == 0){
cprintf("allocuvm out of memory\n");
deallocuvm(pgdir, newsz, oldsz);
return 0;
801070a0: 31 c0 xor %eax,%eax
kfree(mem);
return 0;
}
}
return newsz;
}
801070a2: 8d 65 f4 lea -0xc(%ebp),%esp
801070a5: 5b pop %ebx
801070a6: 5e pop %esi
801070a7: 5f pop %edi
801070a8: 5d pop %ebp
801070a9: c3 ret
801070aa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
deallocuvm(pgdir, newsz, oldsz);
return 0;
}
memset(mem, 0, PGSIZE);
if(mappages(pgdir, (char*)a, PGSIZE, V2P(mem), PTE_W|PTE_U) < 0){
cprintf("allocuvm out of memory (2)\n");
801070b0: 83 ec 0c sub $0xc,%esp
801070b3: 68 cd 80 10 80 push $0x801080cd
801070b8: e8 d3 96 ff ff call 80100790 <cprintf>
deallocuvm(pde_t *pgdir, uint oldsz, uint newsz)
{
pte_t *pte;
uint a, pa;
if(newsz >= oldsz)
801070bd: 83 c4 10 add $0x10,%esp
801070c0: 3b 7d 0c cmp 0xc(%ebp),%edi
801070c3: 76 0d jbe 801070d2 <allocuvm+0xd2>
801070c5: 8b 4d 0c mov 0xc(%ebp),%ecx
801070c8: 8b 45 08 mov 0x8(%ebp),%eax
801070cb: 89 fa mov %edi,%edx
801070cd: e8 ee fa ff ff call 80106bc0 <deallocuvm.part.0>
}
memset(mem, 0, PGSIZE);
if(mappages(pgdir, (char*)a, PGSIZE, V2P(mem), PTE_W|PTE_U) < 0){
cprintf("allocuvm out of memory (2)\n");
deallocuvm(pgdir, newsz, oldsz);
kfree(mem);
801070d2: 83 ec 0c sub $0xc,%esp
801070d5: 56 push %esi
801070d6: e8 75 b4 ff ff call 80102550 <kfree>
return 0;
801070db: 83 c4 10 add $0x10,%esp
}
}
return newsz;
}
801070de: 8d 65 f4 lea -0xc(%ebp),%esp
memset(mem, 0, PGSIZE);
if(mappages(pgdir, (char*)a, PGSIZE, V2P(mem), PTE_W|PTE_U) < 0){
cprintf("allocuvm out of memory (2)\n");
deallocuvm(pgdir, newsz, oldsz);
kfree(mem);
return 0;
801070e1: 31 c0 xor %eax,%eax
}
}
return newsz;
}
801070e3: 5b pop %ebx
801070e4: 5e pop %esi
801070e5: 5f pop %edi
801070e6: 5d pop %ebp
801070e7: c3 ret
801070e8: 90 nop
801070e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
801070f0: 8d 65 f4 lea -0xc(%ebp),%esp
if(newsz < oldsz)
return oldsz;
a = PGROUNDUP(oldsz);
for(; a < newsz; a += PGSIZE){
801070f3: 89 f8 mov %edi,%eax
kfree(mem);
return 0;
}
}
return newsz;
}
801070f5: 5b pop %ebx
801070f6: 5e pop %esi
801070f7: 5f pop %edi
801070f8: 5d pop %ebp
801070f9: c3 ret
801070fa: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80107100 <deallocuvm>:
// need to be less than oldsz. oldsz can be larger than the actual
// process size. Returns the new process size.
// If the page was swapped free the corresponding disk block.
int
deallocuvm(pde_t *pgdir, uint oldsz, uint newsz)
{
80107100: 55 push %ebp
80107101: 89 e5 mov %esp,%ebp
80107103: 8b 55 0c mov 0xc(%ebp),%edx
80107106: 8b 4d 10 mov 0x10(%ebp),%ecx
80107109: 8b 45 08 mov 0x8(%ebp),%eax
pte_t *pte;
uint a, pa;
if(newsz >= oldsz)
8010710c: 39 d1 cmp %edx,%ecx
8010710e: 73 10 jae 80107120 <deallocuvm+0x20>
kfree(v);
*pte = 0;
}
}
return newsz;
}
80107110: 5d pop %ebp
80107111: e9 aa fa ff ff jmp 80106bc0 <deallocuvm.part.0>
80107116: 8d 76 00 lea 0x0(%esi),%esi
80107119: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
80107120: 89 d0 mov %edx,%eax
80107122: 5d pop %ebp
80107123: c3 ret
80107124: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
8010712a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
80107130 <freevm>:
// Free a page table and all the physical memory pages
// in the user part.
void
freevm(pde_t *pgdir)
{
80107130: 55 push %ebp
80107131: 89 e5 mov %esp,%ebp
80107133: 57 push %edi
80107134: 56 push %esi
80107135: 53 push %ebx
80107136: 83 ec 0c sub $0xc,%esp
80107139: 8b 75 08 mov 0x8(%ebp),%esi
uint i;
if(pgdir == 0)
8010713c: 85 f6 test %esi,%esi
8010713e: 74 59 je 80107199 <freevm+0x69>
80107140: 31 c9 xor %ecx,%ecx
80107142: ba 00 00 00 80 mov $0x80000000,%edx
80107147: 89 f0 mov %esi,%eax
80107149: e8 72 fa ff ff call 80106bc0 <deallocuvm.part.0>
8010714e: 89 f3 mov %esi,%ebx
80107150: 8d be 00 10 00 00 lea 0x1000(%esi),%edi
80107156: eb 0f jmp 80107167 <freevm+0x37>
80107158: 90 nop
80107159: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80107160: 83 c3 04 add $0x4,%ebx
panic("freevm: no pgdir");
deallocuvm(pgdir, KERNBASE, 0);
for(i = 0; i < NPDENTRIES; i++){
80107163: 39 fb cmp %edi,%ebx
80107165: 74 23 je 8010718a <freevm+0x5a>
if(pgdir[i] & PTE_P){
80107167: 8b 03 mov (%ebx),%eax
80107169: a8 01 test $0x1,%al
8010716b: 74 f3 je 80107160 <freevm+0x30>
char * v = P2V(PTE_ADDR(pgdir[i]));
kfree(v);
8010716d: 25 00 f0 ff ff and $0xfffff000,%eax
80107172: 83 ec 0c sub $0xc,%esp
80107175: 83 c3 04 add $0x4,%ebx
80107178: 05 00 00 00 80 add $0x80000000,%eax
8010717d: 50 push %eax
8010717e: e8 cd b3 ff ff call 80102550 <kfree>
80107183: 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++){
80107186: 39 fb cmp %edi,%ebx
80107188: 75 dd jne 80107167 <freevm+0x37>
if(pgdir[i] & PTE_P){
char * v = P2V(PTE_ADDR(pgdir[i]));
kfree(v);
}
}
kfree((char*)pgdir);
8010718a: 89 75 08 mov %esi,0x8(%ebp)
}
8010718d: 8d 65 f4 lea -0xc(%ebp),%esp
80107190: 5b pop %ebx
80107191: 5e pop %esi
80107192: 5f pop %edi
80107193: 5d pop %ebp
if(pgdir[i] & PTE_P){
char * v = P2V(PTE_ADDR(pgdir[i]));
kfree(v);
}
}
kfree((char*)pgdir);
80107194: e9 b7 b3 ff ff jmp 80102550 <kfree>
freevm(pde_t *pgdir)
{
uint i;
if(pgdir == 0)
panic("freevm: no pgdir");
80107199: 83 ec 0c sub $0xc,%esp
8010719c: 68 e9 80 10 80 push $0x801080e9
801071a1: e8 fa 92 ff ff call 801004a0 <panic>
801071a6: 8d 76 00 lea 0x0(%esi),%esi
801071a9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
801071b0 <setupkvm>:
};
// Set up kernel part of a page table.
pde_t*
setupkvm(void)
{
801071b0: 55 push %ebp
801071b1: 89 e5 mov %esp,%ebp
801071b3: 56 push %esi
801071b4: 53 push %ebx
pde_t *pgdir;
struct kmap *k;
if((pgdir = (pde_t*)kalloc()) == 0)
801071b5: e8 46 b5 ff ff call 80102700 <kalloc>
801071ba: 85 c0 test %eax,%eax
801071bc: 74 6a je 80107228 <setupkvm+0x78>
return 0;
memset(pgdir, 0, PGSIZE);
801071be: 83 ec 04 sub $0x4,%esp
801071c1: 89 c6 mov %eax,%esi
if (P2V(PHYSTOP) > (void*)DEVSPACE)
panic("PHYSTOP too high");
for(k = kmap; k < &kmap[NELEM(kmap)]; k++)
801071c3: bb 20 b4 10 80 mov $0x8010b420,%ebx
pde_t *pgdir;
struct kmap *k;
if((pgdir = (pde_t*)kalloc()) == 0)
return 0;
memset(pgdir, 0, PGSIZE);
801071c8: 68 00 10 00 00 push $0x1000
801071cd: 6a 00 push $0x0
801071cf: 50 push %eax
801071d0: e8 9b d4 ff ff call 80104670 <memset>
801071d5: 83 c4 10 add $0x10,%esp
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,
801071d8: 8b 43 04 mov 0x4(%ebx),%eax
801071db: 8b 4b 08 mov 0x8(%ebx),%ecx
801071de: 83 ec 08 sub $0x8,%esp
801071e1: 8b 13 mov (%ebx),%edx
801071e3: ff 73 0c pushl 0xc(%ebx)
801071e6: 50 push %eax
801071e7: 29 c1 sub %eax,%ecx
801071e9: 89 f0 mov %esi,%eax
801071eb: e8 30 f9 ff ff call 80106b20 <mappages>
801071f0: 83 c4 10 add $0x10,%esp
801071f3: 85 c0 test %eax,%eax
801071f5: 78 19 js 80107210 <setupkvm+0x60>
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++)
801071f7: 83 c3 10 add $0x10,%ebx
801071fa: 81 fb 60 b4 10 80 cmp $0x8010b460,%ebx
80107200: 75 d6 jne 801071d8 <setupkvm+0x28>
80107202: 89 f0 mov %esi,%eax
(uint)k->phys_start, k->perm) < 0) {
freevm(pgdir);
return 0;
}
return pgdir;
}
80107204: 8d 65 f8 lea -0x8(%ebp),%esp
80107207: 5b pop %ebx
80107208: 5e pop %esi
80107209: 5d pop %ebp
8010720a: c3 ret
8010720b: 90 nop
8010720c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
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,
(uint)k->phys_start, k->perm) < 0) {
freevm(pgdir);
80107210: 83 ec 0c sub $0xc,%esp
80107213: 56 push %esi
80107214: e8 17 ff ff ff call 80107130 <freevm>
return 0;
80107219: 83 c4 10 add $0x10,%esp
}
return pgdir;
}
8010721c: 8d 65 f8 lea -0x8(%ebp),%esp
panic("PHYSTOP too high");
for(k = kmap; k < &kmap[NELEM(kmap)]; k++)
if(mappages(pgdir, k->virt, k->phys_end - k->phys_start,
(uint)k->phys_start, k->perm) < 0) {
freevm(pgdir);
return 0;
8010721f: 31 c0 xor %eax,%eax
}
return pgdir;
}
80107221: 5b pop %ebx
80107222: 5e pop %esi
80107223: 5d pop %ebp
80107224: c3 ret
80107225: 8d 76 00 lea 0x0(%esi),%esi
{
pde_t *pgdir;
struct kmap *k;
if((pgdir = (pde_t*)kalloc()) == 0)
return 0;
80107228: 31 c0 xor %eax,%eax
8010722a: eb d8 jmp 80107204 <setupkvm+0x54>
8010722c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80107230 <kvmalloc>:
// Allocate one page table for the machine for the kernel address
// space for scheduler processes.
void
kvmalloc(void)
{
80107230: 55 push %ebp
80107231: 89 e5 mov %esp,%ebp
80107233: 83 ec 08 sub $0x8,%esp
kpgdir = setupkvm();
80107236: e8 75 ff ff ff call 801071b0 <setupkvm>
8010723b: a3 a4 64 11 80 mov %eax,0x801164a4
80107240: 05 00 00 00 80 add $0x80000000,%eax
80107245: 0f 22 d8 mov %eax,%cr3
switchkvm();
}
80107248: c9 leave
80107249: c3 ret
8010724a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
80107250 <select_a_victim>:
// Select a page-table entry which is mapped
// but not accessed. Notice that the user memory
// is mapped between 0...KERNBASE.
pte_t*
select_a_victim(pde_t *pgdir)
{
80107250: 55 push %ebp
80107251: 89 e5 mov %esp,%ebp
80107253: 56 push %esi
80107254: 53 push %ebx
80107255: 8b 75 08 mov 0x8(%ebp),%esi
cprintf("selecting victim\n");
int i=0;
pte_t *pte;
for(i = 0; i <= KERNBASE; i += PGSIZE)
80107258: 31 db xor %ebx,%ebx
// but not accessed. Notice that the user memory
// is mapped between 0...KERNBASE.
pte_t*
select_a_victim(pde_t *pgdir)
{
cprintf("selecting victim\n");
8010725a: 83 ec 0c sub $0xc,%esp
8010725d: 68 fa 80 10 80 push $0x801080fa
80107262: e8 29 95 ff ff call 80100790 <cprintf>
int i=0;
pte_t *pte;
for(i = 0; i <= KERNBASE; i += PGSIZE)
80107267: 83 c4 10 add $0x10,%esp
8010726a: eb 14 jmp 80107280 <select_a_victim+0x30>
8010726c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
{
if((pte = walkpgdir(pgdir, (char*)i, 0)) != 0)
{
if(*pte==0)
return (pte_t*)(pte);
if(*pte & PTE_P)
80107270: f6 c2 01 test $0x1,%dl
80107273: 74 05 je 8010727a <select_a_victim+0x2a>
if(!(*pte & PTE_A))
80107275: 83 e2 20 and $0x20,%edx
80107278: 74 1b je 80107295 <select_a_victim+0x45>
select_a_victim(pde_t *pgdir)
{
cprintf("selecting victim\n");
int i=0;
pte_t *pte;
for(i = 0; i <= KERNBASE; i += PGSIZE)
8010727a: 81 c3 00 10 00 00 add $0x1000,%ebx
{
if((pte = walkpgdir(pgdir, (char*)i, 0)) != 0)
80107280: 31 c9 xor %ecx,%ecx
80107282: 89 da mov %ebx,%edx
80107284: 89 f0 mov %esi,%eax
80107286: e8 15 f8 ff ff call 80106aa0 <walkpgdir>
8010728b: 85 c0 test %eax,%eax
8010728d: 74 eb je 8010727a <select_a_victim+0x2a>
{
if(*pte==0)
8010728f: 8b 10 mov (%eax),%edx
80107291: 85 d2 test %edx,%edx
80107293: 75 db jne 80107270 <select_a_victim+0x20>
return (pte_t*)(pte);
}
}
cprintf("bad victim\n");
return 0;
}
80107295: 8d 65 f8 lea -0x8(%ebp),%esp
80107298: 5b pop %ebx
80107299: 5e pop %esi
8010729a: 5d pop %ebp
8010729b: c3 ret
8010729c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
801072a0 <clearaccessbit>:
// Clear access bit of a random pte.
void
clearaccessbit(pde_t *pgdir)
{
801072a0: 55 push %ebp
801072a1: 89 e5 mov %esp,%ebp
801072a3: 57 push %edi
801072a4: 56 push %esi
801072a5: 53 push %ebx
cprintf("clearing access bit\n");
801072a6: 31 ff xor %edi,%edi
801072a8: 31 db xor %ebx,%ebx
}
// Clear access bit of a random pte.
void
clearaccessbit(pde_t *pgdir)
{
801072aa: 83 ec 18 sub $0x18,%esp
801072ad: 8b 75 08 mov 0x8(%ebp),%esi
cprintf("clearing access bit\n");
801072b0: 68 0c 81 10 80 push $0x8010810c
801072b5: e8 d6 94 ff ff call 80100790 <cprintf>
801072ba: 83 c4 10 add $0x10,%esp
801072bd: eb 07 jmp 801072c6 <clearaccessbit+0x26>
801072bf: 90 nop
int i=0;
pte_t *pte;
int count = 0;
for(i = 0; i <= KERNBASE; i += PGSIZE)
801072c0: 81 c3 00 10 00 00 add $0x1000,%ebx
{
i =(i+25765)%KERNBASE;
801072c6: 81 c3 a5 64 00 00 add $0x64a5,%ebx
if((pte = walkpgdir(pgdir, (char*)i, 0)) != 0)
801072cc: 31 c9 xor %ecx,%ecx
801072ce: 89 f0 mov %esi,%eax
int i=0;
pte_t *pte;
int count = 0;
for(i = 0; i <= KERNBASE; i += PGSIZE)
{
i =(i+25765)%KERNBASE;
801072d0: 81 e3 ff ff ff 7f and $0x7fffffff,%ebx
if((pte = walkpgdir(pgdir, (char*)i, 0)) != 0)
801072d6: 89 da mov %ebx,%edx
801072d8: e8 c3 f7 ff ff call 80106aa0 <walkpgdir>
801072dd: 85 c0 test %eax,%eax
801072df: 74 df je 801072c0 <clearaccessbit+0x20>
{
if(*pte & PTE_P)
801072e1: 8b 10 mov (%eax),%edx
801072e3: f6 c2 01 test $0x1,%dl
801072e6: 74 d8 je 801072c0 <clearaccessbit+0x20>
{
//cprintf("Value of pte before clearing access bit %d\n",*pte);
*pte &= ~PTE_A;
//cprintf("Value of pte after clearing access bit %d\n",*pte);
cprintf("Found a victim\n");
801072e8: 83 ec 0c sub $0xc,%esp
if((pte = walkpgdir(pgdir, (char*)i, 0)) != 0)
{
if(*pte & PTE_P)
{
//cprintf("Value of pte before clearing access bit %d\n",*pte);
*pte &= ~PTE_A;
801072eb: 83 e2 df and $0xffffffdf,%edx
//cprintf("Value of pte after clearing access bit %d\n",*pte);
cprintf("Found a victim\n");
count +=1;
801072ee: 83 c7 01 add $0x1,%edi
if((pte = walkpgdir(pgdir, (char*)i, 0)) != 0)
{
if(*pte & PTE_P)
{
//cprintf("Value of pte before clearing access bit %d\n",*pte);
*pte &= ~PTE_A;
801072f1: 89 10 mov %edx,(%eax)
//cprintf("Value of pte after clearing access bit %d\n",*pte);
cprintf("Found a victim\n");
801072f3: 68 21 81 10 80 push $0x80108121
801072f8: e8 93 94 ff ff call 80100790 <cprintf>
count +=1;
if(count>102)
801072fd: 83 c4 10 add $0x10,%esp
80107300: 83 ff 66 cmp $0x66,%edi
80107303: 7e bb jle 801072c0 <clearaccessbit+0x20>
}
}
}
return;
}
80107305: 8d 65 f4 lea -0xc(%ebp),%esp
80107308: 5b pop %ebx
80107309: 5e pop %esi
8010730a: 5f pop %edi
8010730b: 5d pop %ebp
8010730c: c3 ret
8010730d: 8d 76 00 lea 0x0(%esi),%esi
80107310 <getswappedblk>:
// return the disk block-id, if the virtual address
// was swapped, -1 otherwise.
int
getswappedblk(pde_t *pgdir, uint va)
{
80107310: 55 push %ebp
pte_t *pte;
pte = walkpgdir(pgdir, (char*)va, 0);
80107311: 31 c9 xor %ecx,%ecx
// return the disk block-id, if the virtual address
// was swapped, -1 otherwise.
int
getswappedblk(pde_t *pgdir, uint va)
{
80107313: 89 e5 mov %esp,%ebp
80107315: 83 ec 08 sub $0x8,%esp
pte_t *pte;
pte = walkpgdir(pgdir, (char*)va, 0);
80107318: 8b 55 0c mov 0xc(%ebp),%edx
8010731b: 8b 45 08 mov 0x8(%ebp),%eax
8010731e: e8 7d f7 ff ff call 80106aa0 <walkpgdir>
if(pte==0)
80107323: 85 c0 test %eax,%eax
80107325: 74 17 je 8010733e <getswappedblk+0x2e>
panic("clearpteu");
if(*pte & PTE_PS)
80107327: 8b 10 mov (%eax),%edx
return (*pte)>>12;
else
return -1;
}
80107329: c9 leave
pte_t *pte;
pte = walkpgdir(pgdir, (char*)va, 0);
if(pte==0)
panic("clearpteu");
if(*pte & PTE_PS)
return (*pte)>>12;
8010732a: 89 d0 mov %edx,%eax
8010732c: c1 e8 0c shr $0xc,%eax
8010732f: 81 e2 80 00 00 00 and $0x80,%edx
80107335: ba ff ff ff ff mov $0xffffffff,%edx
8010733a: 0f 44 c2 cmove %edx,%eax
else
return -1;
}
8010733d: c3 ret
getswappedblk(pde_t *pgdir, uint va)
{
pte_t *pte;
pte = walkpgdir(pgdir, (char*)va, 0);
if(pte==0)
panic("clearpteu");
8010733e: 83 ec 0c sub $0xc,%esp
80107341: 68 31 81 10 80 push $0x80108131
80107346: e8 55 91 ff ff call 801004a0 <panic>
8010734b: 90 nop
8010734c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
80107350 <clearpteu>:
// Clear PTE_U on a page. Used to create an inaccessible
// page beneath the user stack.
void
clearpteu(pde_t *pgdir, char *uva)
{
80107350: 55 push %ebp
pte_t *pte;
pte = walkpgdir(pgdir, uva, 0);
80107351: 31 c9 xor %ecx,%ecx
// Clear PTE_U on a page. Used to create an inaccessible
// page beneath the user stack.
void
clearpteu(pde_t *pgdir, char *uva)
{
80107353: 89 e5 mov %esp,%ebp
80107355: 83 ec 08 sub $0x8,%esp
pte_t *pte;
pte = walkpgdir(pgdir, uva, 0);
80107358: 8b 55 0c mov 0xc(%ebp),%edx
8010735b: 8b 45 08 mov 0x8(%ebp),%eax
8010735e: e8 3d f7 ff ff call 80106aa0 <walkpgdir>
if(pte == 0)
80107363: 85 c0 test %eax,%eax
80107365: 74 05 je 8010736c <clearpteu+0x1c>
panic("clearpteu");
*pte &= ~PTE_U;
80107367: 83 20 fb andl $0xfffffffb,(%eax)
}
8010736a: c9 leave
8010736b: c3 ret
clearpteu(pde_t *pgdir, char *uva)
{
pte_t *pte;
pte = walkpgdir(pgdir, uva, 0);
if(pte == 0)
panic("clearpteu");
8010736c: 83 ec 0c sub $0xc,%esp
8010736f: 68 31 81 10 80 push $0x80108131
80107374: e8 27 91 ff ff call 801004a0 <panic>
80107379: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80107380 <copyuvm>:
// Given a parent process's page table, create a copy
// of it for a child.
pde_t*
copyuvm(pde_t *pgdir, uint sz)
{
80107380: 55 push %ebp
80107381: 89 e5 mov %esp,%ebp
80107383: 57 push %edi
80107384: 56 push %esi
80107385: 53 push %ebx
80107386: 83 ec 1c sub $0x1c,%esp
pde_t *d;
pte_t *pte;
uint pa, i, flags;
char *mem;
if((d = setupkvm()) == 0)
80107389: e8 22 fe ff ff call 801071b0 <setupkvm>
8010738e: 85 c0 test %eax,%eax
80107390: 89 45 e0 mov %eax,-0x20(%ebp)
80107393: 0f 84 b2 00 00 00 je 8010744b <copyuvm+0xcb>
return 0;
for(i = 0; i < sz; i += PGSIZE)
80107399: 8b 4d 0c mov 0xc(%ebp),%ecx
8010739c: 85 c9 test %ecx,%ecx
8010739e: 0f 84 9c 00 00 00 je 80107440 <copyuvm+0xc0>
801073a4: 31 f6 xor %esi,%esi
801073a6: eb 4a jmp 801073f2 <copyuvm+0x72>
801073a8: 90 nop
801073a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
mem = kalloc();
if(mem==0)*/
goto bad;
}
memmove(mem, (char*)P2V(pa), PGSIZE);
801073b0: 83 ec 04 sub $0x4,%esp
801073b3: 81 c7 00 00 00 80 add $0x80000000,%edi
801073b9: 68 00 10 00 00 push $0x1000
801073be: 57 push %edi
801073bf: 50 push %eax
801073c0: e8 5b d3 ff ff call 80104720 <memmove>
if(mappages(d, (void*)i, PGSIZE, V2P(mem), flags) < 0)
801073c5: 58 pop %eax
801073c6: 5a pop %edx
801073c7: 8d 93 00 00 00 80 lea -0x80000000(%ebx),%edx
801073cd: 8b 45 e0 mov -0x20(%ebp),%eax
801073d0: ff 75 e4 pushl -0x1c(%ebp)
801073d3: b9 00 10 00 00 mov $0x1000,%ecx
801073d8: 52 push %edx
801073d9: 89 f2 mov %esi,%edx
801073db: e8 40 f7 ff ff call 80106b20 <mappages>
801073e0: 83 c4 10 add $0x10,%esp
801073e3: 85 c0 test %eax,%eax
801073e5: 78 3e js 80107425 <copyuvm+0xa5>
char *mem;
if((d = setupkvm()) == 0)
return 0;
for(i = 0; i < sz; i += PGSIZE)
801073e7: 81 c6 00 10 00 00 add $0x1000,%esi
801073ed: 39 75 0c cmp %esi,0xc(%ebp)
801073f0: 76 4e jbe 80107440 <copyuvm+0xc0>
{
if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0)
801073f2: 8b 45 08 mov 0x8(%ebp),%eax
801073f5: 31 c9 xor %ecx,%ecx
801073f7: 89 f2 mov %esi,%edx
801073f9: e8 a2 f6 ff ff call 80106aa0 <walkpgdir>
801073fe: 85 c0 test %eax,%eax
80107400: 74 5a je 8010745c <copyuvm+0xdc>
panic("copyuvm: pte should exist");
if(!(*pte & PTE_P))
80107402: 8b 18 mov (%eax),%ebx
80107404: f6 c3 01 test $0x1,%bl
80107407: 74 46 je 8010744f <copyuvm+0xcf>
panic("copyuvm: page not present");
pa = PTE_ADDR(*pte);
80107409: 89 df mov %ebx,%edi
flags = PTE_FLAGS(*pte);
8010740b: 81 e3 ff 0f 00 00 and $0xfff,%ebx
80107411: 89 5d e4 mov %ebx,-0x1c(%ebp)
{
if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0)
panic("copyuvm: pte should exist");
if(!(*pte & PTE_P))
panic("copyuvm: page not present");
pa = PTE_ADDR(*pte);
80107414: 81 e7 00 f0 ff ff and $0xfffff000,%edi
flags = PTE_FLAGS(*pte);
if((mem = kalloc()) == 0)
8010741a: e8 e1 b2 ff ff call 80102700 <kalloc>
8010741f: 85 c0 test %eax,%eax
80107421: 89 c3 mov %eax,%ebx
80107423: 75 8b jne 801073b0 <copyuvm+0x30>
goto bad;
}
return d;
bad:
freevm(d);
80107425: 83 ec 0c sub $0xc,%esp
80107428: ff 75 e0 pushl -0x20(%ebp)
8010742b: e8 00 fd ff ff call 80107130 <freevm>
return 0;
80107430: 83 c4 10 add $0x10,%esp
80107433: 31 c0 xor %eax,%eax
}
80107435: 8d 65 f4 lea -0xc(%ebp),%esp
80107438: 5b pop %ebx
80107439: 5e pop %esi
8010743a: 5f pop %edi
8010743b: 5d pop %ebp
8010743c: c3 ret
8010743d: 8d 76 00 lea 0x0(%esi),%esi
char *mem;
if((d = setupkvm()) == 0)
return 0;
for(i = 0; i < sz; i += PGSIZE)
80107440: 8b 45 e0 mov -0x20(%ebp),%eax
return d;
bad:
freevm(d);
return 0;
}
80107443: 8d 65 f4 lea -0xc(%ebp),%esp
80107446: 5b pop %ebx
80107447: 5e pop %esi
80107448: 5f pop %edi
80107449: 5d pop %ebp
8010744a: c3 ret
pte_t *pte;
uint pa, i, flags;
char *mem;
if((d = setupkvm()) == 0)
return 0;
8010744b: 31 c0 xor %eax,%eax
8010744d: eb e6 jmp 80107435 <copyuvm+0xb5>
for(i = 0; i < sz; i += PGSIZE)
{
if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0)
panic("copyuvm: pte should exist");
if(!(*pte & PTE_P))
panic("copyuvm: page not present");
8010744f: 83 ec 0c sub $0xc,%esp
80107452: 68 55 81 10 80 push $0x80108155
80107457: e8 44 90 ff ff call 801004a0 <panic>
return 0;
for(i = 0; i < sz; i += PGSIZE)
{
if((pte = walkpgdir(pgdir, (void *) i, 0)) == 0)
panic("copyuvm: pte should exist");
8010745c: 83 ec 0c sub $0xc,%esp
8010745f: 68 3b 81 10 80 push $0x8010813b
80107464: e8 37 90 ff ff call 801004a0 <panic>
80107469: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80107470 <uva2ka>:
//PAGEBREAK!
// Map user virtual address to kernel address.
char*
uva2ka(pde_t *pgdir, char *uva)
{
80107470: 55 push %ebp
pte_t *pte;
pte = walkpgdir(pgdir, uva, 0);
80107471: 31 c9 xor %ecx,%ecx
//PAGEBREAK!
// Map user virtual address to kernel address.
char*
uva2ka(pde_t *pgdir, char *uva)
{
80107473: 89 e5 mov %esp,%ebp
80107475: 83 ec 08 sub $0x8,%esp
pte_t *pte;
pte = walkpgdir(pgdir, uva, 0);
80107478: 8b 55 0c mov 0xc(%ebp),%edx
8010747b: 8b 45 08 mov 0x8(%ebp),%eax
8010747e: e8 1d f6 ff ff call 80106aa0 <walkpgdir>
if((*pte & PTE_P) == 0)
80107483: 8b 00 mov (%eax),%eax
return 0;
if((*pte & PTE_U) == 0)
80107485: 89 c2 mov %eax,%edx
80107487: 83 e2 05 and $0x5,%edx
8010748a: 83 fa 05 cmp $0x5,%edx
8010748d: 75 11 jne 801074a0 <uva2ka+0x30>
return 0;
return (char*)P2V(PTE_ADDR(*pte));
8010748f: 25 00 f0 ff ff and $0xfffff000,%eax
}
80107494: c9 leave
pte = walkpgdir(pgdir, uva, 0);
if((*pte & PTE_P) == 0)
return 0;
if((*pte & PTE_U) == 0)
return 0;
return (char*)P2V(PTE_ADDR(*pte));
80107495: 05 00 00 00 80 add $0x80000000,%eax
}
8010749a: c3 ret
8010749b: 90 nop
8010749c: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
pte = walkpgdir(pgdir, uva, 0);
if((*pte & PTE_P) == 0)
return 0;
if((*pte & PTE_U) == 0)
return 0;
801074a0: 31 c0 xor %eax,%eax
return (char*)P2V(PTE_ADDR(*pte));
}
801074a2: c9 leave
801074a3: c3 ret
801074a4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
801074aa: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
801074b0 <uva2pte>:
// returns the page table entry corresponding
// to a virtual address.
pte_t*
uva2pte(pde_t *pgdir, uint uva)
{
801074b0: 55 push %ebp
return walkpgdir(pgdir, (void*)uva, 0);
801074b1: 31 c9 xor %ecx,%ecx
// returns the page table entry corresponding
// to a virtual address.
pte_t*
uva2pte(pde_t *pgdir, uint uva)
{
801074b3: 89 e5 mov %esp,%ebp
return walkpgdir(pgdir, (void*)uva, 0);
801074b5: 8b 55 0c mov 0xc(%ebp),%edx
801074b8: 8b 45 08 mov 0x8(%ebp),%eax
}
801074bb: 5d pop %ebp
// returns the page table entry corresponding
// to a virtual address.
pte_t*
uva2pte(pde_t *pgdir, uint uva)
{
return walkpgdir(pgdir, (void*)uva, 0);
801074bc: e9 df f5 ff ff jmp 80106aa0 <walkpgdir>
801074c1: eb 0d jmp 801074d0 <copyout>
801074c3: 90 nop
801074c4: 90 nop
801074c5: 90 nop
801074c6: 90 nop
801074c7: 90 nop
801074c8: 90 nop
801074c9: 90 nop
801074ca: 90 nop
801074cb: 90 nop
801074cc: 90 nop
801074cd: 90 nop
801074ce: 90 nop
801074cf: 90 nop
801074d0 <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)
{
801074d0: 55 push %ebp
801074d1: 89 e5 mov %esp,%ebp
801074d3: 57 push %edi
801074d4: 56 push %esi
801074d5: 53 push %ebx
801074d6: 83 ec 1c sub $0x1c,%esp
801074d9: 8b 5d 14 mov 0x14(%ebp),%ebx
801074dc: 8b 55 0c mov 0xc(%ebp),%edx
801074df: 8b 7d 10 mov 0x10(%ebp),%edi
char *buf, *pa0;
uint n, va0;
buf = (char*)p;
while(len > 0){
801074e2: 85 db test %ebx,%ebx
801074e4: 75 40 jne 80107526 <copyout+0x56>
801074e6: eb 70 jmp 80107558 <copyout+0x88>
801074e8: 90 nop
801074e9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
va0 = (uint)PGROUNDDOWN(va);
pa0 = uva2ka(pgdir, (char*)va0);
if(pa0 == 0)
return -1;
n = PGSIZE - (va - va0);
801074f0: 8b 55 e4 mov -0x1c(%ebp),%edx
801074f3: 89 f1 mov %esi,%ecx
801074f5: 29 d1 sub %edx,%ecx
801074f7: 81 c1 00 10 00 00 add $0x1000,%ecx
801074fd: 39 d9 cmp %ebx,%ecx
801074ff: 0f 47 cb cmova %ebx,%ecx
if(n > len)
n = len;
memmove(pa0 + (va - va0), buf, n);
80107502: 29 f2 sub %esi,%edx
80107504: 83 ec 04 sub $0x4,%esp
80107507: 01 d0 add %edx,%eax
80107509: 51 push %ecx
8010750a: 57 push %edi
8010750b: 50 push %eax
8010750c: 89 4d e4 mov %ecx,-0x1c(%ebp)
8010750f: e8 0c d2 ff ff call 80104720 <memmove>
len -= n;
buf += n;
80107514: 8b 4d e4 mov -0x1c(%ebp),%ecx
{
char *buf, *pa0;
uint n, va0;
buf = (char*)p;
while(len > 0){
80107517: 83 c4 10 add $0x10,%esp
if(n > len)
n = len;
memmove(pa0 + (va - va0), buf, n);
len -= n;
buf += n;
va = va0 + PGSIZE;
8010751a: 8d 96 00 10 00 00 lea 0x1000(%esi),%edx
n = PGSIZE - (va - va0);
if(n > len)
n = len;
memmove(pa0 + (va - va0), buf, n);
len -= n;
buf += n;
80107520: 01 cf add %ecx,%edi
{
char *buf, *pa0;
uint n, va0;
buf = (char*)p;
while(len > 0){
80107522: 29 cb sub %ecx,%ebx
80107524: 74 32 je 80107558 <copyout+0x88>
va0 = (uint)PGROUNDDOWN(va);
80107526: 89 d6 mov %edx,%esi
pa0 = uva2ka(pgdir, (char*)va0);
80107528: 83 ec 08 sub $0x8,%esp
char *buf, *pa0;
uint n, va0;
buf = (char*)p;
while(len > 0){
va0 = (uint)PGROUNDDOWN(va);
8010752b: 89 55 e4 mov %edx,-0x1c(%ebp)
8010752e: 81 e6 00 f0 ff ff and $0xfffff000,%esi
pa0 = uva2ka(pgdir, (char*)va0);
80107534: 56 push %esi
80107535: ff 75 08 pushl 0x8(%ebp)
80107538: e8 33 ff ff ff call 80107470 <uva2ka>
if(pa0 == 0)
8010753d: 83 c4 10 add $0x10,%esp
80107540: 85 c0 test %eax,%eax
80107542: 75 ac jne 801074f0 <copyout+0x20>
len -= n;
buf += n;
va = va0 + PGSIZE;
}
return 0;
}
80107544: 8d 65 f4 lea -0xc(%ebp),%esp
buf = (char*)p;
while(len > 0){
va0 = (uint)PGROUNDDOWN(va);
pa0 = uva2ka(pgdir, (char*)va0);
if(pa0 == 0)
return -1;
80107547: b8 ff ff ff ff mov $0xffffffff,%eax
len -= n;
buf += n;
va = va0 + PGSIZE;
}
return 0;
}
8010754c: 5b pop %ebx
8010754d: 5e pop %esi
8010754e: 5f pop %edi
8010754f: 5d pop %ebp
80107550: c3 ret
80107551: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
80107558: 8d 65 f4 lea -0xc(%ebp),%esp
memmove(pa0 + (va - va0), buf, n);
len -= n;
buf += n;
va = va0 + PGSIZE;
}
return 0;
8010755b: 31 c0 xor %eax,%eax
}
8010755d: 5b pop %ebx
8010755e: 5e pop %esi
8010755f: 5f pop %edi
80107560: 5d pop %ebp
80107561: c3 ret
|
programs/oeis/013/A013824.asm | neoneye/loda | 22 | 98873 | <reponame>neoneye/loda
; A013824: a(n) = 2^(5*n + 3).
; 8,256,8192,262144,8388608,268435456,8589934592,274877906944,8796093022208,281474976710656,9007199254740992,288230376151711744,9223372036854775808,295147905179352825856,9444732965739290427392,302231454903657293676544,9671406556917033397649408,309485009821345068724781056,9903520314283042199192993792,316912650057057350374175801344,10141204801825835211973625643008,324518553658426726783156020576256,10384593717069655257060992658440192,332306998946228968225951765070086144
mov $1,32
pow $1,$0
mul $1,8
mov $0,$1
|
Library/Kernel/Initfile/initfileC.asm | steakknife/pcgeos | 504 | 87837 | <reponame>steakknife/pcgeos<filename>Library/Kernel/Initfile/initfileC.asm
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Kernel/Initfile
FILE: initfileC.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
DESCRIPTION:
This file contains C interface routines for the geode routines
$Id: initfileC.asm,v 1.1 97/04/05 01:18:07 newdeal Exp $
------------------------------------------------------------------------------@
SetGeosConvention
C_System segment resource
if FULL_EXECUTE_IN_PLACE
C_System ends
GeosCStubXIP segment resource
endif
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileWriteData
C DECLARATION: extern void
_far _pascal InitFileWriteData(const char _far *category,
const char _far *key,
const void _far *buffer,
word bufSize);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEWRITEDATA proc far category:fptr.char, key:fptr.char,
buffer:fptr, bufSize:word
uses si, di, ds, es
.enter
lds si, category
les di, buffer
mov cx, key.segment
mov dx, key.offset
push bp
mov bp, bufSize
call InitFileWriteData
pop bp
.leave
ret
INITFILEWRITEDATA endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileWriteString
C DECLARATION: extern void
_far _pascal InitFileWriteString(const char _far *category,
const char _far *key,
const char _far *pstr);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEWRITESTRING proc far category:fptr.char, key:fptr.char,
pstr:fptr.char
uses si, di, ds, es
.enter
lds si, category
les di, pstr
mov cx, key.segment
mov dx, key.offset
call InitFileWriteString
.leave
ret
INITFILEWRITESTRING endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileWriteInteger
C DECLARATION: extern void
_far _pascal InitFileWriteInteger(const char _far *category,
const char _far *key,
word value);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEWRITEINTEGER proc far category:fptr.char, key:fptr.char,
value:word
uses si, ds
.enter
lds si, category
mov cx, key.segment
mov dx, key.offset
push bp
mov bp, value
call InitFileWriteInteger
pop bp
.leave
ret
INITFILEWRITEINTEGER endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileWriteBoolean
C DECLARATION: extern void
_far _pascal InitFileWriteBoolean(const char _far *category,
const char _far *key,
Boolean bool);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEWRITEBOOLEAN proc far category:fptr.char, key:fptr.char,
bool:word
uses si, ds
.enter
lds si, category
mov cx, key.segment
mov dx, key.offset
mov ax, bool
call InitFileWriteBoolean
.leave
ret
INITFILEWRITEBOOLEAN endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileWriteStringSection
C DECLARATION: extern void
_far _pascal InitFileWriteStringSection(
const char _far *category,
const char _far *key,
const char _far *string);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 1/91 Initial version
------------------------------------------------------------------------------@
INITFILEWRITESTRINGSECTION proc far category:fptr.char,
key:fptr.char, string:fptr.char
uses di, si, ds, es
.enter
lds si, category
les di, string
mov cx, key.segment
mov dx, key.offset
call InitFileWriteStringSection
.leave
ret
INITFILEWRITESTRINGSECTION endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InitFileBlockCommon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Common code to read/write a block of stuff
CALLED BY: INTERNAL
PASS: cs:ax = callback routine
RETURN:
DESTROYED:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 7/12/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InitFileBlockCommon proc near category:fptr.char, key:fptr.char,
block:fptr.hptr, flags:word,
dataSize:fptr.word,
:fptr ; caller's return
; address
uses ds, si
.enter
;
; Load up the registers.
;
lds si, category
mov cx, key.segment
mov dx, key.offset
push bp
mov ax, ss:[bp+2] ; ax <- our return address
mov bp, flags
EC < test bp, mask IFRF_SIZE >
EC < ERROR_NZ INIT_FILE_BLOCK_ROUTINES_SHOULD_NOT_HAVE_A_SIZE_PASSED_IN_FLAGS_WORD >
;
; Call back to our caller
;
call ax
pop bp
;
; Store the handle in the buffer provided
;
lds si, block
mov ds:[si], bx
;
; Store the entry size in the buffer provided
;
lds si, dataSize
mov ds:[si], cx
;
; Return non-zero if carry came back set.
;
mov ax, 0
jnc done
dec ax
done:
.leave
inc sp ; discard our return address
inc sp
;
; Return to our caller's caller
;
retf @ArgSize-4 ; don't include caller's retaddr
InitFileBlockCommon endp
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
InitFileBufferCommon
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
SYNOPSIS: Common code to read/write a buffer of stuff
CALLED BY: INTERNAL
PASS:
RETURN:
DESTROYED:
PSEUDO CODE/STRATEGY:
KNOWN BUGS/SIDE EFFECTS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
ardeb 7/12/92 Initial version
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%@
InitFileBufferCommon proc near category:fptr.char, key:fptr.char,
buffer:fptr, flagsAndBufSize:word,
dataSize:fptr.word,
:fptr ; caller's return
; address segment
uses ds, si, es, di
.enter
;
; Load up the registers.
;
lds si, category
les di, ss:[buffer]
mov cx, key.segment
mov dx, key.offset
push bp
mov ax, ss:[bp+2] ; ax <- our return address
mov bp, flagsAndBufSize
;
; Call back to our caller
;
call ax
pop bp
;
; Store the entry size in the buffer provided
;
lds si, dataSize
mov ds:[si], cx
;
; Return non-zero if carry came back set.
;
mov ax, 0
jnc done
dec ax
done:
.leave
inc sp ; discard our return address
inc sp
;
; Return to our caller's caller
;
retf @ArgSize-4 ; don't include caller's retaddr...
InitFileBufferCommon endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileReadDataBuffer
C DECLARATION: extern Boolean /* true if error */
_far _pascal InitFileReadDataBuffer(
const char _far *category,
const char _far *key,
void _far *buffer, word bufSize,
word _far *dataSize);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEREADDATABUFFER proc far
call InitFileBufferCommon
call InitFileReadData
retn ; return to InitFileBufferCommon
INITFILEREADDATABUFFER endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileReadDataBlock
C DECLARATION: extern Boolean /* true if error */
_far _pascal InitFileReadDataBlock(
const char _far *category,
const char _far *key,
MemHandle _far *block,
word _far *dataSize);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
zero word 0
INITFILEREADDATABLOCK proc far
;
; One too few arguments passed -- there's neither buffer size nor need
; to pass conversion flags in this case, so we need to insert a fake
; flags word between "block" and "dataSize" to be able to use the common
; code...
;
pop ax, dx, bx, cx ; ax:dx <- dataSize
; bx:cx <- return address
push cs:[zero], ax, dx, bx, cx; push flags to indicate allocation
; required, dataSize, return address
call InitFileBlockCommon
call InitFileReadData
retn ; return to InitFileBlockCommon
INITFILEREADDATABLOCK endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileReadStringBuffer
C DECLARATION: extern Boolean /* true if error */
_far _pascal InitFileReadStringBuffer(
const char _far *category,
const char _far *key,
char _far *pstr, word flagsAndBufSize,
word _far *dataSize);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEREADSTRINGBUFFER proc far
call InitFileBufferCommon
call InitFileReadString
retn ; return to InitFileBufferCommon
INITFILEREADSTRINGBUFFER endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileReadStringBlock
C DECLARATION: extern Boolean /* true if error */
_far _pascal InitFileReadStringBlock(
const char _far *category,
const char _far *key,
MemHandle _far *block,
word flags, word _far *dataSize);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEREADSTRINGBLOCK proc far
call InitFileBlockCommon
call InitFileReadString
retn ; return to InitFileBlockCommon
INITFILEREADSTRINGBLOCK endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileReadStringSectionBuffer
C DECLARATION: extern Boolean /* true if error */
_far _pascal InitFileReadStringSectionBuffer(
const char _far *category,
const char _far *key,
word section,
char _far *pstr, word flagsAndBufSize,
word _far *dataSize);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEREADSTRINGSECTIONBUFFER proc far category:fptr.char,
key:fptr.char, section:word,
pstr:fptr.char,
flagsAndBufSize:word,
dataSize:fptr.word
on_stack retf
clc ; XXX: WE HAVE NO LOCAL VARIABLES, SO PROLOGUE
; WILL NOT DO ANYTHING TO THE CARRY
uses si, di, ds, es
stringSectionCommon label near
.enter
on_stack ds es di si bp retf
; carry is set if it's a block operation
lds si, category
les di, pstr
mov cx, key.segment
mov dx, key.offset
mov ax, section
push bp
on_stack bp ds es di si bp retf
mov bp, flagsAndBufSize
jc isBlock
call InitFileReadStringSection
pop bp
on_stack ds es di si bp retf
stringSectionDone:
lds si, dataSize
mov ds:[si], cx
mov ax, 0
jnc done
dec ax
done:
.leave
on_stack retf
ret
isBlock:
;
; Reading into a block, so ensure the size is 0 (to force allocation)
;
on_stack bp ds es di si bp retf
andnf bp, not mask IFRF_SIZE
call InitFileReadStringSection
pop bp
on_stack ds es di si bp retf
;
; Now store the returned handle in the buffer provided.
;
mov es:[di], bx
jmp stringSectionDone
INITFILEREADSTRINGSECTIONBUFFER endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileReadStringSectionBlock
C DECLARATION: extern Boolean /* true if error */
_far _pascal InitFileReadStringSectionBlock(
const char _far *category,
const char _far *key,
word section,
MemHandle _far *block,
word flags, word _far *dataSize);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEREADSTRINGSECTIONBLOCK proc
stc
jmp stringSectionCommon
INITFILEREADSTRINGSECTIONBLOCK endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileEnumStringSection
C DECLARATION: extern Boolean /* true if error */
_far _pascal InitFileEnumStringSection(
const char _far *category,
const char _far *key,
word flags,
Boolean (*callback) (const char *stringSection,
word sectionNumber,
void *enumData)
void _far *enumData);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 1/92 Initial version
------------------------------------------------------------------------------@
INITFILEENUMSTRINGSECTION proc far category:fptr.char,
key:fptr.char,
flags:word,
callback:fptr.far,
enumData:fptr
uses di, si, ds, es
ForceRef callback
ForceRef enumData
.enter
; Set everything up for the enumeration
;
segmov es, ds ; keep DS to pass to callback
mov bx, bp ; stack frame => SS:BX
lds si, category
movdw cxdx, key
mov bp, flags
mov di, cs ; callback => DI:AX
mov ax, offset _INITFILEENUMSTRINGSECTION_callback
call InitFileEnumStringSection
; NOTE: THE TRASHING OF BP WORKS BECAUSE WE HAVE NO LOCAL VARIABLES.
; Esp OPTIMIZES THIS CASE SO THE .leave DOESN'T REQUIRE BP
; Set up the return values
;
mov ax, 0 ; assume no error (FALSE => AX)
jnc done ; jump if correct assumption
dec ax ; else TRUE => AX
done:
.leave
ret
INITFILEENUMSTRINGSECTION endp
COMMENT @----------------------------------------------------------------------
FUNCTION: _INITFILEENUMSTRINGSECTION_callback
DESCRIPTION: Callback routine for InitFileEnumStringSection
CALLED BY: InitFileEnumStringSection (via INITFILEENUMSTRINGSECTION)
PASS: DS:SI = String section
DX = String section number
ES = DS passed to INITFILEENUMSTRINGSECTION
SS:BX = Stack frame
RETURN: Carry = Set to end enumeration
DESTROYED: AX, CX, DX, DI, SI, BP, DS
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 1/92 Initial version
------------------------------------------------------------------------------@
_INITFILEENUMSTRINGSECTION_callback proc far
uses bx
.enter inherit INITFILEENUMSTRINGSECTION
mov bp, bx ; stack frame => SS:BP
; Push arguments to the real callback
;
push ds, si ; string section
push dx ; string section number
pushdw enumData ; passed data
; Now perform the callback
;
segmov ds, es ; restore DS to original
movdw bxax, callback
call ProcCallFixedOrMovable
; Now return the carry correctly
;
tst ax ; clears carry (assume continue)
jz done ; jump if assumption OK
stc ; else stop enumeration
done:
.leave
ret
_INITFILEENUMSTRINGSECTION_callback endp
if DBCS_PCGEOS
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileReadAllInteger
C DECLARATION: extern Boolean /* true if error */
_far _pascal InitFileReadAllInteger(
const char _far *category,
const char _far *key,
Boolean (*callback) (word integerValue,
void *enumData)
void _far *enumData);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 1/19/94 Initial version
------------------------------------------------------------------------------@
INITFILEREADALLINTEGER proc far category:fptr.char,
key:fptr.char,
callback:fptr.far,
enumData:fptr
uses di, si, ds, es
ForceRef callback
ForceRef enumData
.enter
; Set everything up for the enumeration
;
segmov es, ds ; keep DS to pass to callback
mov bx, bp ; stack frame => SS:BX
lds si, category
movdw cxdx, key
mov di, cs ; callback => DI:AX
mov ax, offset _INITFILEREALALLINTEGER_callback
call InitFileReadAllInteger
; Set up the return values
;
mov ax, 0 ; assume no error (FALSE => AX)
jnc done ; jump if correct assumption
dec ax ; else TRUE => AX
done:
.leave
ret
INITFILEREADALLINTEGER endp
COMMENT @----------------------------------------------------------------------
FUNCTION: _INITFILEREALALLINTEGER_callback
DESCRIPTION: Callback routine for InitFileReadAllInteger
CALLED BY: InitFileReadAllInteger (via INITFILEREADALLINTEGER)
PASS: AX = integer
ES = DS passed to INITFILEREADALLINTEGER
SS:BX = Stack frame
RETURN: Carry = Set to end enumeration
DESTROYED: AX, CX, DX, DI, SI, BP, DS
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
brianc 1/19/94 Initial version
------------------------------------------------------------------------------@
_INITFILEREALALLINTEGER_callback proc far
uses bx
.enter inherit INITFILEREADALLINTEGER
mov bp, bx ; stack frame => SS:BP
; Push arguments to the real callback
;
push ax ; integer
pushdw enumData ; passed data
; Now perform the callback
;
segmov ds, es ; restore DS to original
movdw bxax, callback
call ProcCallFixedOrMovable
; Now return the carry correctly
;
tst ax ; clears carry (assume continue)
jz done ; jump if assumption OK
stc ; else stop enumeration
done:
.leave
ret
_INITFILEREALALLINTEGER_callback endp
endif
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileReadInteger
C DECLARATION: extern Boolean /* true if error */
_far _pascal InitFileReadInteger(const char _far *category,
const char _far *key, word _far *i);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEREADINTEGER proc far category:fptr.char, key:fptr.char,
i:fptr.word
uses si, ds
clc
CInitFileGetCommon label far
.enter
lds si, i
mov ax, ds:[si] ; ax <- original value of i/bool
lds si, category
mov cx, key.segment
mov dx, key.offset
jc boolean
call InitFileReadInteger
jmp common
boolean:
call InitFileReadBoolean
common:
lds si, i
mov ds:[si], ax
mov ax, 0
jnc done
dec ax
done:
.leave
ret
INITFILEREADINTEGER endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileReadBoolean
C DECLARATION: extern Boolean /* true if error */
_far _pascal InitFileReadBoolean(const char _far *category,
const char _far *key, Boolean _far *bool);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEREADBOOLEAN proc far
stc
jmp CInitFileGetCommon
INITFILEREADBOOLEAN endp
if FULL_EXECUTE_IN_PLACE
GeosCStubXIP ends
C_System segment resource
endif
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileGetTimeLastModified
C DECLARATION: extern dword
_far _pascal InitFileGetTimeLastModified();
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEGETTIMELASTMODIFIED proc far
call InitFileGetTimeLastModified
mov_trash ax, dx
mov dx, cx
ret
INITFILEGETTIMELASTMODIFIED endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileSave
C DECLARATION: extern Boolean
_far _pascal InitFileSave();
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILESAVE proc far
call InitFileSave
FALL_THRU CIFReturnError
INITFILESAVE endp
CIFReturnError proc far
mov ax, 0
jnc done
dec ax
done:
ret
CIFReturnError endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileRevert
C DECLARATION: extern Boolean
_far _pascal InitFileRevert();
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEREVERT proc far
call InitFileRevert
GOTO CIFReturnError
INITFILEREVERT endp
if FULL_EXECUTE_IN_PLACE
C_System ends
GeosCStubXIP segment resource
endif
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileDeleteStringSection
C DECLARATION: extern void
_far _pascal InitFileDeleteStringSection(
const char _far *category,
const char _far *key,
word stringNum);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Don 1/91 Initial version
------------------------------------------------------------------------------@
INITFILEDELETESTRINGSECTION proc far category:fptr.char,
key:fptr.char, stringNum:word
uses si, ds
.enter
lds si, category
mov cx, key.segment
mov dx, key.offset
mov ax, stringNum
call InitFileDeleteStringSection
.leave
ret
INITFILEDELETESTRINGSECTION endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileDeleteEntry
C DECLARATION: extern void
_far _pascal InitFileDeleteEntry(const char _far *category,
const char _far *key);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEDELETEENTRY proc far category:fptr.far, key:fptr.far
uses si, ds
.enter
lds si, category
mov cx, key.segment
mov dx, key.offset
call InitFileDeleteEntry
.leave
ret
INITFILEDELETEENTRY endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileDeleteCategory
C DECLARATION: extern void
_far _pascal InitFileDeleteCategory(const char _far
*category);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEDELETECATEGORY proc far
C_GetOneDWordArg bx, ax, cx,dx ;bx = seg, ax = offset
push si, ds
mov ds, bx
mov_trash si, ax
call InitFileDeleteCategory
pop si, ds
ret
INITFILEDELETECATEGORY endp
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileMakeCanonicKeyCategory
C DECLARATION: extern void
_far _pascal InitFileMakeCanonicKeyCategory(char *keyCat,
const TCHAR *src);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/91 Initial version
------------------------------------------------------------------------------@
INITFILEMAKECANONICKEYCATEGORY proc far keyCat:fptr.char,
src:fptr.TCHAR
uses si, di, ds
.enter
lds si, keyCat
les di, src
call InitFileMakeCanonicKeyCategory
.leave
ret
INITFILEMAKECANONICKEYCATEGORY endp
if FULL_EXECUTE_IN_PLACE
GeosCStubXIP ends
C_System segment resource
endif
COMMENT @----------------------------------------------------------------------
C FUNCTION: InitFileGrab
C DECLARATION: extern word
_far _pascal InitFileGrab(MemHandle mem,
FileHandle fh,
word bufSize);
KNOWN BUGS/SIDE EFFECTS/CAVEATS/IDEAS:
REVISION HISTORY:
Name Date Description
---- ---- -----------
chrisb 10/93 Initial version
------------------------------------------------------------------------------@
INITFILEGRAB proc far mem:hptr, fh:hptr, bufSize:word
.enter
mov ax, ss:[mem]
mov bx, ss:[fh]
mov cx, ss:[bufSize]
call InitFileGrab
mov ax, 0
jnc done
dec ax
done:
.leave
ret
INITFILEGRAB endp
C_System ends
SetDefaultConvention
|
src/Sessions/Semantics/Process.agda | laMudri/linear.agda | 34 | 8438 | module Sessions.Semantics.Process where
open import Level
open import Size
open import Data.Nat
open import Data.Sum
open import Data.Product
open import Data.Unit
open import Data.Bool
open import Debug.Trace
open import Function
open import Relation.Unary hiding (Empty)
open import Relation.Unary.PredicateTransformer using (PT)
open import Relation.Binary.PropositionalEquality hiding ([_])
open import Sessions.Syntax.Types
open import Sessions.Syntax.Values
open import Sessions.Syntax.Expr
open import Sessions.Semantics.Commands
open import Relation.Ternary.Separation
open import Relation.Ternary.Separation.Allstar
open import Relation.Ternary.Separation.Construct.Market
open import Relation.Ternary.Separation.Construct.Product
open import Relation.Ternary.Separation.Morphisms
open import Relation.Ternary.Separation.Monad
open import Relation.Ternary.Separation.Bigstar
open import Relation.Ternary.Separation.Monad.Free Cmd δ as Free hiding (step)
open import Relation.Ternary.Separation.Monad.State
open import Relation.Ternary.Separation.Monad.Error
open Monads using (Monad; str; typed-str)
open Monad {{...}}
data Exc : Set where
outOfFuel : Exc
delay : Exc
open import Sessions.Semantics.Runtime delay
open import Sessions.Semantics.Communication delay
data Thread : Pred RCtx 0ℓ where
forked : ∀[ Comp unit ⇒ Thread ]
main : ∀ {a} → ∀[ Comp a ⇒ Thread ]
Pool : Pred RCtx 0ℓ
Pool = Bigstar Thread
St = Π₂ Pool ✴ Channels
open ExceptMonad {A = RCtx} Exc
open StateWithErr {C = RCtx} Exc
onPool : ∀ {P} → ∀[ (Pool ─✴ Except Exc (P ✴ Pool)) ⇒ State? St P ]
app (onPool f) (lift (snd pool ×⟨ σ , σ₁ ⟩ chs) k) (offerᵣ σ₂) with resplit σ₂ σ₁ k
... | _ , _ , τ₁ , τ₂ , τ₃ =
case app f pool τ₁ of λ where
(error e) → partial (inj₁ e)
(✓ (p ×⟨ σ₃ ⟩ p')) →
let _ , _ , τ₄ , τ₅ , τ₆ = resplit σ₃ τ₂ τ₃
in return (inj p ×⟨ offerᵣ τ₄ ⟩ lift (snd p' ×⟨ σ , τ₅ ⟩ chs) τ₆)
onChannels : ∀ {P} → ∀[ State? Channels P ⇒ State? St P ]
app (onChannels f) μ (offerᵣ σ₃) with ○≺●ᵣ μ
... | inj pool ×⟨ offerᵣ σ₄ ⟩ chs with ⊎-assoc σ₃ (⊎-comm σ₄)
... | _ , τ₁ , τ₂ = do
px ×⟨ σ₄ ⟩ ●chs ×⟨ σ₅ ⟩ inj pool ←
mapM (app f chs (offerᵣ τ₁) &⟨ J Pool ∥ offerₗ τ₂ ⟩ inj pool) ✴-assocᵣ
return (px ×⟨ σ₄ ⟩ app (○≺●ₗ pool) ●chs (⊎-comm σ₅))
enqueue : ∀[ Thread ⇒ State? St Emp ]
enqueue thr =
onPool (wand λ pool σ → return (empty ×⟨ ⊎-idˡ ⟩ (app (append thr) pool σ)))
-- Smart reschedule of a thread:
-- Escalates out-of-fuel erros in threads, and discards terminated workers.
reschedule : ∀[ Thread ⇒ State? St Emp ]
reschedule (forked (partial (pure (inj₁ _)))) = raise outOfFuel
reschedule (forked (partial (pure (inj₂ tt)))) = return empty
reschedule thr@(forked (partial (impure _))) = enqueue thr
reschedule (main (partial (pure (inj₁ _)))) = raise outOfFuel
reschedule thr@(main (partial (pure (inj₂ _)))) = enqueue thr
reschedule thr@(main (partial (impure _))) = enqueue thr
{- Select the next thread that is not done -}
dequeue : ε[ State? St (Emp ∪ Thread) ]
dequeue =
onPool (wandit (λ pool →
case (find isImpure pool) of λ where
(error e) → return (inj₁ empty ×⟨ ⊎-idˡ ⟩ pool)
(✓ (thr ×⟨ σ ⟩ pool')) → return (inj₂ thr ×⟨ σ ⟩ pool')))
where
isImpure : ∀ {Φ} → Thread Φ → Bool
isImpure (main (partial (pure _))) = false
isImpure (main (partial (impure _))) = true
isImpure (forked (partial (pure _))) = false
isImpure (forked (partial (impure _))) = true
module _ where
handle : ∀ {Φ} → (c : Cmd Φ) → State? St (δ c) Φ
handle (fork thr) = trace "handle:fork" $ enqueue (forked thr)
handle (mkchan α) = trace "handle:mkchan" $ onChannels newChan
handle (send (ch ×⟨ σ ⟩ v)) = trace "handle:send" $ onChannels (app (send! ch) v σ)
handle (receive ch) = trace "handle:recv" $ onChannels (receive? ch)
handle (close ch) = trace "handle:close" $ onChannels (closeChan ch)
step : ∀[ Thread ⇒ State? St Thread ]
step thr@(main (partial c)) = do
c' ← Free.step handle c
return (main (partial c'))
step (forked (partial c)) = do
c' ← Free.step handle c
return (forked (partial c'))
-- try the first computation; if it fails with a 'delay' exception,
-- then queue t
_orDelay_ : ∀[ State? St Emp ⇒ Thread ⇒ State? St Emp ]
c orDelay t = do
c orElse λ where
delay → enqueue t
outOfFuel → raise outOfFuel
-- Run a pool of threads in round-robing fashion
-- until all have terminated, or fuel runs out
run : ℕ → ε[ State? St Emp ]
run zero = raise outOfFuel
run (suc n) = do
inj₂ thr ← dequeue
-- if we cannot dequeue a thunked thread, we're done
where (inj₁ e) → return e
-- otherwise we take a step
empty ← trace "run:step" (do thr' ← step thr; enqueue thr') orDelay thr
-- rinse and repeat
run n
start : ℕ → Thread ε → ∃ λ Φ → Except Exc (● St) Φ
start n thr = -, do
let μ = lift (snd [ thr ] ×⟨ ⊎-idʳ ⟩ nil) ⊎-idʳ
inj empty ×⟨ σ ⟩ μ ← app (run n) μ (offerᵣ ⊎-idˡ)
case ⊎-id⁻ˡ σ of λ where
refl → return μ
where open ExceptMonad {A = Market RCtx} Exc
|
src/Eth/Prelude.agda | fredefox/ethambda-agda | 0 | 15960 | <filename>src/Eth/Prelude.agda
{-| A custom prelude -}
module Eth.Prelude where
import Prelude
import Prelude.Bool -- using (bool)
import Prelude.List -- using (intercalate)
import Prelude.Monad -- using ((>=>))
import Control.Monad.Identity -- using
import Control.Monad.Writer -- using
-- (MonadWriter, WriterT, Writer, execWriterT, execWriter, tell)
import Control.Monad.Reader -- using
-- (MonadReader, ReaderT, Reader, runReaderT, runReader, ask, local)
infixl 6 <>
export
isNullStr : String -> Bool
isNullStr = (== neutral)
-- export
-- (<>) : Monoid m => m -> m -> m
-- (<>) = (<+>)
export
bool : a -> a -> Bool -> a
bool x y b = case b of
True => x
False => y
export
execWriterT : Functor m => WriterT w m a -> m w
execWriterT = map snd . runWriterT
-- works : WriterT w (ReaderT r Identity) _ -> ReaderT r Identity w
-- works = execWriterT @{ }
-- doesnt : WriterT w (Reader r) _ -> Reader r w
-- doesnt = execWriterT @{ FunctorReaderT }
-- using ReaderTFunctor
export
execWriter : Writer w a -> w
execWriter = runIdentity . execWriterT
export
runReader : Reader r a -> r -> a
runReader m = runIdentity . runReaderT m
-- M : Type -> Type -> Type -> Type
-- M w r a = WriterT w (Reader r) a
-- unM : M w r a -> w -> r -> a
-- unM = ?foo
|
programs/oeis/129/A129371.asm | neoneye/loda | 22 | 241487 | ; A129371: a(n)=sum{k=0..floor(n/2), (n-k)^2}.
; 0,1,5,13,29,50,86,126,190,255,355,451,595,728,924,1100,1356,1581,1905,2185,2585,2926,3410,3818,4394,4875,5551,6111,6895,7540,8440,9176,10200,11033,12189,13125,14421,15466,16910,18070
lpb $0
mov $2,$0
sub $0,1
seq $2,129370 ; a(n)=n^2-(n-1)^2*(1-(-1)^n)/8.
add $1,$2
lpe
mov $0,$1
|
oeis/345/A345500.asm | neoneye/loda-programs | 11 | 161055 | <reponame>neoneye/loda-programs
; A345500: Numbers that are the sum of nine squares in three or more ways.
; Submitted by <NAME>
; 33,36,39,41,42,44,45,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139
sub $1,$0
add $0,12
mov $2,$1
lpb $0
sub $2,5
add $2,$1
sub $0,$2
div $0,2
mov $2,$1
mul $2,2
lpe
add $0,28
|
tests/syntax/bad/testfile-end-2.adb | xuedong/mini-ada | 0 | 598 | with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
procedure P is begin x := 0; end Q;
begin P(0); end;
|
Transynther/x86/_processed/NONE/_xt_sm_/i3-7100_9_0xca_notsx.log_21829_539.asm | ljhsiun2/medusa | 9 | 23673 | .global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r12
push %r14
push %r15
push %r9
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_WC_ht+0x1dd88, %r15
nop
nop
nop
nop
nop
dec %r9
mov $0x6162636465666768, %rdx
movq %rdx, %xmm7
and $0xffffffffffffffc0, %r15
vmovaps %ymm7, (%r15)
nop
nop
nop
nop
and %r12, %r12
lea addresses_D_ht+0xf8f8, %r11
nop
add $37145, %rsi
movb (%r11), %r14b
nop
nop
nop
nop
nop
and %rsi, %rsi
lea addresses_normal_ht+0x5c21, %r14
clflush (%r14)
dec %r12
and $0xffffffffffffffc0, %r14
vmovntdqa (%r14), %ymm2
vextracti128 $0, %ymm2, %xmm2
vpextrq $0, %xmm2, %rdx
nop
sub %r9, %r9
lea addresses_D_ht+0x1e88, %rsi
nop
nop
nop
nop
nop
add %r9, %r9
movups (%rsi), %xmm2
vpextrq $0, %xmm2, %rdx
nop
nop
nop
nop
nop
xor %r14, %r14
lea addresses_normal_ht+0x1c908, %r14
sub %r9, %r9
mov $0x6162636465666768, %rsi
movq %rsi, %xmm0
movups %xmm0, (%r14)
dec %r14
lea addresses_UC_ht+0x18d08, %rdx
and $21810, %r15
movb (%rdx), %r11b
nop
nop
nop
nop
nop
add %r14, %r14
lea addresses_WT_ht+0x7430, %rsi
lea addresses_WT_ht+0x1532, %rdi
nop
nop
nop
nop
cmp $62032, %r15
mov $19, %rcx
rep movsq
nop
nop
xor %rsi, %rsi
lea addresses_A_ht+0x1dd38, %rsi
lea addresses_WC_ht+0x10d88, %rdi
nop
nop
dec %r11
mov $48, %rcx
rep movsq
nop
nop
nop
nop
inc %rsi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %r9
pop %r15
pop %r14
pop %r12
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r8
push %rax
push %rcx
push %rdi
push %rdx
// Store
lea addresses_WC+0x5e88, %rdx
nop
nop
nop
inc %r11
mov $0x5152535455565758, %rax
movq %rax, (%rdx)
nop
nop
add %rdi, %rdi
// Faulty Load
lea addresses_WC+0x5e88, %r8
nop
nop
xor $7720, %rcx
movb (%r8), %dl
lea oracles, %r8
and $0xff, %rdx
shlq $12, %rdx
mov (%r8,%rdx,1), %rdx
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r8
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'same': False, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 2, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 8, 'AVXalign': False}}
[Faulty Load]
{'src': {'same': True, 'congruent': 0, 'NT': False, 'type': 'addresses_WC', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 8, 'NT': True, 'type': 'addresses_WC_ht', 'size': 32, 'AVXalign': True}}
{'src': {'same': False, 'congruent': 4, 'NT': False, 'type': 'addresses_D_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 0, 'NT': True, 'type': 'addresses_normal_ht', 'size': 32, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'same': False, 'congruent': 10, 'NT': False, 'type': 'addresses_D_ht', 'size': 16, 'AVXalign': False}, 'OP': 'LOAD'}
{'OP': 'STOR', 'dst': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_normal_ht', 'size': 16, 'AVXalign': False}}
{'src': {'same': False, 'congruent': 7, 'NT': False, 'type': 'addresses_UC_ht', 'size': 1, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT_ht', 'congruent': 3, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WT_ht', 'congruent': 1, 'same': False}}
{'src': {'type': 'addresses_A_ht', 'congruent': 4, 'same': False}, 'OP': 'REPM', 'dst': {'type': 'addresses_WC_ht', 'congruent': 8, 'same': 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
*/
|
oeis/032/A032822.asm | neoneye/loda-programs | 11 | 245118 | <reponame>neoneye/loda-programs
; A032822: Numbers whose set of base-10 digits is {1,4}.
; Submitted by <NAME>
; 1,4,11,14,41,44,111,114,141,144,411,414,441,444,1111,1114,1141,1144,1411,1414,1441,1444,4111,4114,4141,4144,4411,4414,4441,4444,11111,11114,11141,11144,11411,11414,11441,11444,14111,14114,14141,14144,14411,14414,14441,14444,41111,41114,41141,41144,41411,41414,41441,41444,44111,44114,44141,44144,44411,44414,44441,44444,111111,111114,111141,111144,111411,111414,111441,111444,114111,114114,114141,114144,114411,114414,114441,114444,141111,141114,141141,141144,141411,141414,141441,141444,144111
seq $0,32818 ; Numbers whose set of base-6 digits is {1,4}.
seq $0,7092 ; Numbers in base 6.
|
src/hello/hello.asm | devcfei/bootstrap-x86 | 0 | 15450 | <gh_stars>0
%define org_start 7c00h
boot:
org org_start
mov ax, cs
mov ds, ax
mov es, ax
call screenClean
call stringPrint
jmp $
screenClean:
push bp
mov bp, sp
pusha
mov ah, 07h ; tells BIOS to scroll down window
mov al, 00h ; clear entire window
mov bh, 07h ; white on black
mov cx, 00h ; specifies top left of screen as (0,0)
mov dh, 18h ; 18h = 24 rows of chars
mov dl, 4fh ; 4fh = 79 cols of chars
int 10h ; calls video interrupt
popa
mov sp, bp
pop bp
ret
stringPrint:
mov bp, helloString
mov cx, [helloStringSize]
mov ax, 01301h
mov bx, 000ch
mov dx, 0000h
int 10h;
ret
helloString:
db "Hello, world!"
helloStringSize:
db $-helloString
fill:
times 510-($-$$) db 0;
dw 0xaa55 ; MBR signature |
ada-unchecked_deallocation.ads | mgrojo/adalib | 15 | 18751 | <gh_stars>10-100
-- Standard Ada library specification
-- Copyright (c) 2003-2018 <NAME> <<EMAIL>>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
-- SPDX-License-Identifier: BSD-3-Clause and LicenseRef-AdaReferenceManual
---------------------------------------------------------------------------
generic
type Object (<>) is limited private;
type Name is access Object;
procedure Ada.Unchecked_Deallocation (X : in out Name);
pragma Convention (Intrinsic, Ada.Unchecked_Deallocation);
pragma Preelaborate (Ada.Unchecked_Deallocation);
|
oeis/085/A085614.asm | neoneye/loda-programs | 11 | 2790 | <gh_stars>10-100
; A085614: Number of elementary arches of size n.
; Submitted by <NAME>
; 1,3,16,105,768,6006,49152,415701,3604480,31870410,286261248,2604681690,23957864448,222399744300,2080911654912,19604537460045,185813170126848,1770558814528770,16951376923852800,162984598242674670,1573087778533539840,15235884911048990580,148031912376784650240,1442440843209094651650,14092638058269898702848,138021616437281309160036,1354820451960853167603712,13326753853777495295563476,131344169924086651913502720,1296831012943451438761383768,12825970038522422989437272064
mov $1,1
mov $3,$0
mul $0,2
mov $4,2
lpb $3
add $0,4
mul $1,$3
mul $1,$0
add $2,$4
div $1,$2
sub $3,1
add $4,2
lpe
mov $0,$1
|
game/data/menu_online_mode/anims.asm | sgadrat/super-tilt-bro | 91 | 95340 | <gh_stars>10-100
menu_online_mode_anim_cursor:
; Frame 1
ANIM_FRAME_BEGIN(8)
ANIM_SPRITE($fe, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $01, $fd)
ANIM_SPRITE($fe, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $41, $02)
ANIM_SPRITE($01, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $81, $fd)
ANIM_SPRITE($01, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $c1, $02)
ANIM_SPRITE($f9, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $01, $00)
ANIM_SPRITE($06, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $81, $00)
ANIM_FRAME_END
; Frame 2
ANIM_FRAME_BEGIN(8)
ANIM_SPRITE($fd, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $01, $fc)
ANIM_SPRITE($fd, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $41, $03)
ANIM_SPRITE($02, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $81, $fc)
ANIM_SPRITE($02, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $c1, $03)
ANIM_SPRITE($f8, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $01, $00)
ANIM_SPRITE($07, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $81, $00)
ANIM_FRAME_END
; Frame 3
ANIM_FRAME_BEGIN(8)
ANIM_SPRITE($fe, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $01, $fd)
ANIM_SPRITE($fe, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $41, $02)
ANIM_SPRITE($01, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $81, $fd)
ANIM_SPRITE($01, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $c1, $02)
ANIM_SPRITE($f9, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $01, $00)
ANIM_SPRITE($06, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $81, $00)
ANIM_FRAME_END
; Frame 4
ANIM_FRAME_BEGIN(8)
ANIM_SPRITE($fd, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $01, $fc)
ANIM_SPRITE($fd, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $41, $03)
ANIM_SPRITE($02, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $81, $fc)
ANIM_SPRITE($02, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $c1, $03)
ANIM_SPRITE($fa, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $01, $00)
ANIM_SPRITE($05, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $81, $00)
ANIM_FRAME_END
; End of animation
ANIM_ANIMATION_END
menu_online_mode_anim_line_cursor:
; Frame 1
ANIM_FRAME_BEGIN(8)
ANIM_SPRITE($fe, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $01, $fd)
ANIM_SPRITE($fe, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $41, $7a)
ANIM_SPRITE($01, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $81, $fd)
ANIM_SPRITE($01, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $c1, $7a)
ANIM_SPRITE($f9, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $01, $3c)
ANIM_SPRITE($06, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $81, $3c)
ANIM_FRAME_END
; Frame 2
ANIM_FRAME_BEGIN(8)
ANIM_SPRITE($fd, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $01, $fc)
ANIM_SPRITE($fd, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $41, $7b)
ANIM_SPRITE($02, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $81, $fc)
ANIM_SPRITE($02, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $c1, $7b)
ANIM_SPRITE($f8, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $01, $3c)
ANIM_SPRITE($07, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $81, $3c)
ANIM_FRAME_END
; Frame 3
ANIM_FRAME_BEGIN(8)
ANIM_SPRITE($fe, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $01, $fd)
ANIM_SPRITE($fe, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $41, $7a)
ANIM_SPRITE($01, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $81, $fd)
ANIM_SPRITE($01, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $c1, $7a)
ANIM_SPRITE($f9, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $01, $3c)
ANIM_SPRITE($06, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $81, $3c)
ANIM_FRAME_END
; Frame 4
ANIM_FRAME_BEGIN(8)
ANIM_SPRITE($fd, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $01, $fc)
ANIM_SPRITE($fd, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $41, $7b)
ANIM_SPRITE($02, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $81, $fc)
ANIM_SPRITE($02, TILE_MENU_ONLINE_MODE_SPRITES_CORNER, $c1, $7b)
ANIM_SPRITE($fa, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $01, $3c)
ANIM_SPRITE($05, TILE_MENU_ONLINE_MODE_SPRITES_ARROW_VERTICAL, $81, $3c)
ANIM_FRAME_END
; End of animation
ANIM_ANIMATION_END
menu_online_mode_anim_ship:
; Frame 1
ANIM_FRAME_BEGIN(8)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SHIP1, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(8)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SHIP2, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(8)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SHIP3, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(8)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SHIP4, $01, $00)
ANIM_FRAME_END
; End of animation
ANIM_ANIMATION_END
menu_online_mode_anim_monster:
; Frame 1
ANIM_FRAME_BEGIN(16)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_MONSTER_TAIL1, $01, $f8)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_MONSTER_HEAD1, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(16)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_MONSTER_TAIL2, $01, $f8)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_MONSTER_HEAD2, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(16)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_MONSTER_TAIL3, $01, $f8)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_MONSTER_HEAD3, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(16)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_MONSTER_TAIL4, $01, $f8)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_MONSTER_HEAD4, $01, $00)
ANIM_FRAME_END
; End of animation
ANIM_ANIMATION_END
menu_online_mode_anim_satellite:
.(
DOT = 8
ANIM_FRAME_BEGIN(50)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SATELLITE1, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(3*DOT)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SATELLITE2, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(1*DOT)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SATELLITE1, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(1*DOT)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SATELLITE2, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(3*DOT)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SATELLITE1, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(1*DOT)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SATELLITE2, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(3*DOT)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SATELLITE1, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(1*DOT)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SATELLITE2, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(1*DOT)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SATELLITE1, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(1*DOT)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SATELLITE2, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(1*DOT)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SATELLITE1, $01, $00)
ANIM_FRAME_END
ANIM_FRAME_BEGIN(1*DOT)
ANIM_SPRITE($00, TILE_MENU_ONLINE_MODE_SPRITES_SATELLITE2, $01, $00)
ANIM_FRAME_END
; End of animation
ANIM_ANIMATION_END
.)
|
L1/TPs/0204-ASM/tp3/binaire2.asm | Tehcam/Studies | 0 | 170901 | ; Initialisation
In ; (0)
Store Mem[1] ; x (1)
Load 128 ; (2)
Store Mem[0] ; i (3)
; Si i=0 ?
; dans ts les cas, i est déjà dans l'Acc
CMP 0 ; (4)
JZ 23 ; alors le traitement est fini (5)
; sinon continuer
; Si x<i ?
CMP Mem[1] ; (6)
JC 17 ; alors afficher 0 (7)
Load 1 ; (8)
Out ; sinon afficher 1 (9)
Load Mem[1] ; (10)
Sub Mem[0] ; (11)
Store Mem[1] ; (12)
Load Mem[0] ; (13)
Div 2 ; (14)
Store Mem[0] ; (15)
JMP 4 ; (16)
; Alors
Load 0 ; (17)
Out ; (18)
Load Mem[0] ; (19)
Div 2 ; (20)
Store Mem[0] ; (21)
JMP 4 ; (22)
; Après
End ; (23) |
out/plus_petit.adb | FardaleM/metalang | 22 | 6357 | <reponame>FardaleM/metalang
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure plus_petit is
type stringptr is access all char_array;
procedure PInt(i : in Integer) is
begin
String'Write (Text_Streams.Stream (Current_Output), Trim(Integer'Image(i), Left));
end;
procedure SkipSpaces is
C : Character;
Eol : Boolean;
begin
loop
Look_Ahead(C, Eol);
exit when Eol or C /= ' ';
Get(C);
end loop;
end;
type c is Array (Integer range <>) of Integer;
type c_PTR is access c;
function go0(tab : in c_PTR; a : in Integer; b : in Integer) return Integer is
m : Integer;
j : Integer;
i : Integer;
e : Integer;
begin
m := (a + b) / 2;
if a = m
then
if tab(a) = m
then
return b;
else
return a;
end if;
end if;
i := a;
j := b;
while i < j loop
e := tab(i);
if e < m
then
i := i + 1;
else
j := j - 1;
tab(i) := tab(j);
tab(j) := e;
end if;
end loop;
if i < m
then
return go0(tab, a, m);
else
return go0(tab, m, b);
end if;
end;
function plus_petit0(tab : in c_PTR; len : in Integer) return Integer is
begin
return go0(tab, 0, len);
end;
tmp : Integer;
tab : c_PTR;
len : Integer;
begin
len := 0;
Get(len);
SkipSpaces;
tab := new c (0..len - 1);
for i in integer range 0..len - 1 loop
tmp := 0;
Get(tmp);
SkipSpaces;
tab(i) := tmp;
end loop;
PInt(plus_petit0(tab, len));
end;
|
oeis/214/A214954.asm | neoneye/loda-programs | 11 | 82666 | ; A214954: a(n) = 3*a(n-1) + 6*a(n-2) + a(n-3), with a(0) = 0, a(1) = 2, and a(2) = 7.
; Submitted by <NAME>(s4)
; 0,2,7,33,143,634,2793,12326,54370,239859,1058123,4667893,20592276,90842309,400748476,1767891558,7799007839,34405121341,151777302615,669561643730,2953753868221,13030408769658,57483311162030,253586139972259,1118688695658615
lpb $0
sub $0,1
add $1,$3
add $4,$2
add $2,2
add $2,$1
add $2,$3
mov $3,$4
mov $4,$2
add $2,2
add $2,$1
mov $1,0
add $3,$4
lpe
mov $0,$2
div $0,2
|
libsrc/_DEVELOPMENT/math/float/math16/c/sccz80/cm16_sccz80_asin.asm | ahjelm/z88dk | 640 | 179128 |
SECTION code_fp_math16
PUBLIC cm16_sccz80_asin
EXTERN cm16_sccz80_read1, asinf16
cm16_sccz80_asin:
call cm16_sccz80_read1
jp asinf16
|
projects/batfish/src/main/antlr4/org/batfish/grammar/cumulus_frr/CumulusFrr_routemap.g4 | nickgian/batfish | 0 | 1308 | parser grammar CumulusFrr_routemap;
import CumulusFrr_common;
options {
tokenVocab = CumulusFrrLexer;
}
s_routemap
:
ROUTE_MAP name = word action = line_action sequence =
route_map_sequence NEWLINE
(
rm_description
| rm_match
| rm_set
)*
;
rm_description
:
DESCRIPTION text = route_map_description NEWLINE
;
route_map_description
:
// 1-90 characters
REMARK_TEXT
;
rm_match
:
MATCH
(
rmm_community
| rmm_interface
| rmm_ip
)
;
route_map_sequence
:
// 0-65535
uint32
;
rmm_community
:
COMMUNITY names += ip_community_list_name+ NEWLINE
;
rm_set
:
SET
(
rms_metric
| rms_community
| rms_ip
)
;
rms_metric
:
METRIC metric = uint32 NEWLINE
;
rmm_ip
:
IP rmmip_address
;
rmmip_address
:
ADDRESS rmmipa_prefix_list
;
rmmipa_prefix_list
:
PREFIX_LIST name = ip_prefix_list_name NEWLINE
;
rmm_interface
:
INTERFACE name = WORD NEWLINE
;
rms_ip
:
IP rmsip_next_hop
;
rmsip_next_hop
:
NEXT_HOP
(
rmsipnh_literal
)
;
rmsipnh_literal
:
next_hop = ip_address NEWLINE
;
rms_community
:
COMMUNITY communities += literal_standard_community+ NEWLINE
;
|
Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_703.asm | ljhsiun2/medusa | 9 | 96348 | <filename>Transynther/x86/_processed/NONE/_xt_/i9-9900K_12_0xca.log_21829_703.asm
.global s_prepare_buffers
s_prepare_buffers:
push %r13
push %r15
push %r9
push %rax
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0x143c0, %rsi
lea addresses_A_ht+0x63c0, %rdi
nop
nop
nop
nop
sub %r13, %r13
mov $32, %rcx
rep movsq
nop
nop
nop
xor %rax, %rax
lea addresses_UC_ht+0x187c0, %rsi
lea addresses_WC_ht+0x123c0, %rdi
nop
dec %r9
mov $86, %rcx
rep movsq
nop
nop
nop
nop
inc %r13
lea addresses_D_ht+0xf1c0, %rsi
lea addresses_WT_ht+0x2bc0, %rdi
clflush (%rsi)
nop
nop
nop
add %r15, %r15
mov $112, %rcx
rep movsl
nop
xor $29531, %rdi
lea addresses_D_ht+0x18d68, %rax
clflush (%rax)
nop
nop
nop
nop
dec %r9
movw $0x6162, (%rax)
nop
nop
nop
xor %rdi, %rdi
lea addresses_normal_ht+0x7840, %rdi
clflush (%rdi)
nop
xor %r15, %r15
mov $0x6162636465666768, %rsi
movq %rsi, (%rdi)
and $55026, %rsi
lea addresses_A_ht+0x1d132, %rsi
lea addresses_D_ht+0xe3c0, %rdi
clflush (%rsi)
clflush (%rdi)
nop
nop
nop
nop
xor $64073, %rdx
mov $98, %rcx
rep movsl
nop
cmp %r13, %r13
lea addresses_A_ht+0x12840, %rsi
lea addresses_WT_ht+0x8780, %rdi
clflush (%rdi)
sub $64716, %r13
mov $97, %rcx
rep movsq
nop
nop
nop
nop
nop
xor $23071, %rax
lea addresses_A_ht+0x1576c, %rdx
nop
nop
nop
nop
and %r9, %r9
mov $0x6162636465666768, %rcx
movq %rcx, (%rdx)
nop
nop
nop
dec %r13
lea addresses_UC_ht+0x1c2c0, %r9
nop
nop
nop
nop
xor %r15, %r15
movb (%r9), %cl
sub $21360, %rsi
lea addresses_UC_ht+0x5c48, %rax
nop
nop
nop
add %r15, %r15
mov $0x6162636465666768, %rdx
movq %rdx, %xmm3
and $0xffffffffffffffc0, %rax
movntdq %xmm3, (%rax)
nop
nop
sub %rdx, %rdx
lea addresses_WC_ht+0x18dc0, %rsi
lea addresses_normal_ht+0x1fc0, %rdi
nop
sub %r13, %r13
mov $62, %rcx
rep movsw
and $35457, %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rax
pop %r9
pop %r15
pop %r13
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r13
push %r8
push %r9
push %rax
push %rbp
push %rdx
// Store
lea addresses_A+0xd400, %rax
nop
nop
nop
nop
add %rbp, %rbp
mov $0x5152535455565758, %r9
movq %r9, (%rax)
nop
nop
nop
nop
nop
cmp $37227, %r13
// Store
mov $0x69833a00000005c0, %rax
nop
nop
nop
nop
and $27999, %r10
mov $0x5152535455565758, %rbp
movq %rbp, (%rax)
nop
nop
nop
cmp $59879, %r10
// Store
mov $0x320, %r10
and $10482, %r8
mov $0x5152535455565758, %rdx
movq %rdx, %xmm1
vmovups %ymm1, (%r10)
sub %rbp, %rbp
// Faulty Load
lea addresses_PSE+0x73c0, %r9
nop
nop
nop
nop
nop
add $58412, %r13
mov (%r9), %r10
lea oracles, %rax
and $0xff, %r10
shlq $12, %r10
mov (%rax,%r10,1), %r10
pop %rdx
pop %rbp
pop %rax
pop %r9
pop %r8
pop %r13
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': True, 'type': 'addresses_PSE', 'same': False, 'AVXalign': True, 'congruent': 0}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_A', 'same': False, 'AVXalign': False, 'congruent': 6}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_NC', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'size': 32, 'NT': False, 'type': 'addresses_P', 'same': False, 'AVXalign': False, 'congruent': 5}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'size': 8, 'NT': False, 'type': 'addresses_PSE', 'same': True, 'AVXalign': False, 'congruent': 0}}
<gen_prepare_buffer>
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 9}, 'dst': {'same': False, 'type': 'addresses_A_ht', 'congruent': 10}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_UC_ht', 'congruent': 10}, 'dst': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': True, 'type': 'addresses_D_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_WT_ht', 'congruent': 10}}
{'OP': 'STOR', 'dst': {'size': 2, 'NT': False, 'type': 'addresses_D_ht', 'same': True, 'AVXalign': True, 'congruent': 1}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_normal_ht', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 0}, 'dst': {'same': False, 'type': 'addresses_D_ht', 'congruent': 11}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_A_ht', 'congruent': 7}, 'dst': {'same': True, 'type': 'addresses_WT_ht', 'congruent': 6}}
{'OP': 'STOR', 'dst': {'size': 8, 'NT': False, 'type': 'addresses_A_ht', 'same': False, 'AVXalign': False, 'congruent': 2}}
{'OP': 'LOAD', 'src': {'size': 1, 'NT': False, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 7}}
{'OP': 'STOR', 'dst': {'size': 16, 'NT': True, 'type': 'addresses_UC_ht', 'same': False, 'AVXalign': False, 'congruent': 3}}
{'OP': 'REPM', 'src': {'same': False, 'type': 'addresses_WC_ht', 'congruent': 7}, 'dst': {'same': False, 'type': 'addresses_normal_ht', 'congruent': 6}}
{'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
*/
|
Transynther/x86/_processed/NONE/_st_/i7-7700_9_0x48_notsx.log_21829_417.asm | ljhsiun2/medusa | 9 | 6210 | .global s_prepare_buffers
s_prepare_buffers:
ret
.global s_faulty_load
s_faulty_load:
push %r10
push %r14
push %r15
push %rbp
push %rcx
push %rdi
push %rdx
push %rsi
// Store
lea addresses_WC+0x133c8, %r14
nop
nop
and %r15, %r15
mov $0x5152535455565758, %r10
movq %r10, (%r14)
sub %r10, %r10
// REPMOV
lea addresses_UC+0x4e28, %rsi
lea addresses_WC+0x88c8, %rdi
nop
and %rdx, %rdx
mov $112, %rcx
rep movsb
nop
nop
nop
and $31175, %rdi
// Faulty Load
lea addresses_WC+0x88c8, %rsi
nop
add %rdx, %rdx
vmovups (%rsi), %ymm6
vextracti128 $0, %ymm6, %xmm6
vpextrq $0, %xmm6, %rdi
lea oracles, %rbp
and $0xff, %rdi
shlq $12, %rdi
mov (%rbp,%rdi,1), %rdi
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbp
pop %r15
pop %r14
pop %r10
ret
/*
<gen_faulty_load>
[REF]
{'OP': 'LOAD', 'src': {'same': False, 'NT': False, 'AVXalign': False, 'size': 16, 'type': 'addresses_WC', 'congruent': 0}}
{'dst': {'same': False, 'NT': False, 'AVXalign': False, 'size': 8, 'type': 'addresses_WC', 'congruent': 6}, 'OP': 'STOR'}
{'dst': {'same': True, 'congruent': 0, 'type': 'addresses_WC'}, 'OP': 'REPM', 'src': {'same': False, 'congruent': 5, 'type': 'addresses_UC'}}
[Faulty Load]
{'OP': 'LOAD', 'src': {'same': True, 'NT': False, 'AVXalign': False, 'size': 32, 'type': 'addresses_WC', 'congruent': 0}}
<gen_prepare_buffer>
{'37': 21829}
37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37
*/
|
experiments/test-suite/mutation-based/10/10/addr.als | kaiyuanw/AlloyFLCore | 1 | 3525 | <filename>experiments/test-suite/mutation-based/10/10/addr.als
pred test3 {
some disj Address0, Address1: Address {some disj Name0: Name {some disj Name0, Address0, Address1: Listing {some disj Book0: Book {
Address = Address0 + Address1
Name = Name0
Listing = Name0 + Address0 + Address1
Book = Book0
entry = Book0->Name0
listed = Book0->Name0->Address0 + Book0->Name0->Address1
}}}}
}
run test3 for 3 expect 1
pred test4 {
some disj Name0: Name {some disj Name0: Listing {some disj Book0: Book {
no Address
Name = Name0
Listing = Name0
Book = Book0
no entry
no listed
}}}
}
run test4 for 3 expect 1
pred test11 {
some disj Address0: Address {some disj Name0, Name1: Name {some disj Name0, Name1, Address0: Listing {some disj Book0, Book1, Book2: Book {
Address = Address0
Name = Name0 + Name1
Listing = Name0 + Name1 + Address0
Book = Book0 + Book1 + Book2
entry = Book2->Name0 + Book2->Name1
listed = Book2->Name0->Address0 + Book2->Name1->Name0
}}}}
}
run test11 for 3 expect 1
|
other.7z/NEWS.7z/NEWS/テープリストア/NEWS_05/NEWS_05.tar/home/kimura/kart/risc.lzh/risc/join/Scene-j.asm | prismotizm/gigaleak | 0 | 104049 | Name: Scene-j.asm
Type: file
Size: 54978
Last-Modified: '1992-07-27T00:08:59Z'
SHA-1: 03DA739A95FDB82ED6A41E84B001DA294AD28A36
Description: null
|
oeis/015/A015217.asm | neoneye/loda-programs | 11 | 85449 | <reponame>neoneye/loda-programs<gh_stars>10-100
; A015217: Sum of Gaussian binomial coefficients for q=24.
; Submitted by <NAME>
; 1,2,27,1204,375629,400208358,2991792531583,76486991418728216,13721923923633091909041,8419357054564884621321079882,36250698926534384563556930107015907,533815775315492783921121148190498865117564,55162006050836467847120054675143457061417580883989,19495137691693721711511628449054708047502929862095091951278,48348855068903945644630224238054160952711406878789211878571720498503,410094260341801743784176335128352788205708577589957267708044052314823807423456
mov $1,$0
mov $0,0
add $1,1
mov $2,1
lpb $1
sub $1,1
mov $4,$2
mul $2,24
mul $4,$3
add $0,$4
sub $3,$4
add $3,$0
add $3,$2
lpe
mov $0,$3
div $0,576
add $0,1
|
P5/P5_TestCode/P5_L1_testcase30/P5_L1_testcase30/mips30.asm | alxzzhou/BUAA_CO_2020 | 1 | 21220 | ori $t1,$t1,4
ori $t2,$t2,8
sw $t2,0($t1)
lw $t2,0($t1)
addu $t1,$t1,$t2
lw $t2,0($t1)
addu $t1,$t3,$t2
addu $t3,$t4,$t5
sw $t3,0($t1)
ori $t3,$t3,12
sw $t3,0($t2)
lw $t4,0($t2)
subu $1,$1,$1
ori $12,$12,5
ori $1,$1,16
addu $16,$12,$1
addu $18,$16,$1
sw $18,16($1) |
src/audio-wavefiles-read.adb | Ada-Audio/wavefiles | 10 | 14383 | ------------------------------------------------------------------------------
-- --
-- WAVEFILES --
-- --
-- Wavefile reading routines --
-- --
-- The MIT License (MIT) --
-- --
-- Copyright (c) 2015 -- 2021 <NAME> --
-- --
-- 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. --
------------------------------------------------------------------------------
with Ada.Text_IO; use Ada.Text_IO;
with Interfaces;
with Audio.RIFF; use Audio.RIFF;
with Audio.Wavefiles.Internals; use Audio.Wavefiles.Internals;
with Audio.Wavefiles.Report;
package body Audio.Wavefiles.Read is
procedure Parse_Fmt_Chunk
(WF : in out Wavefile);
procedure Parse_Data_Chunk
(WF : in out Wavefile);
---------------------
-- Parse_Fmt_Chunk --
---------------------
procedure Parse_Fmt_Chunk
(WF : in out Wavefile)
is
Verbose : constant Boolean := False;
use type Ada.Streams.Stream_IO.Count;
Found : Wav_Chunk_Element_Found;
begin
Find_First_Chunk (Chunks => WF.RIFF_Info.Chunks,
Chunk_Tag => Wav_Chunk_Fmt,
Found => Found);
if not Found.Success then
WF.Set_Error (Wavefile_Error_Format_Chuck_Not_Found);
return;
else
Set_File_Index_To_Chunk_Data_Start (WF.File,
Found.Chunk_Element.Start_Index);
case Found.Chunk_Element.Size is
when Wave_Format_Chunk_Size'Enum_Rep (Wave_Format_16_Size) =>
Wave_Format_16'Read (WF.File_Access,
Wave_Format_16 (WF.Wave_Format));
Reset_For_Wave_Format_16 (WF.Wave_Format);
when Wave_Format_Chunk_Size'Enum_Rep (Wave_Format_18_Size) =>
Wave_Format_18'Read (WF.File_Access,
Wave_Format_18 (WF.Wave_Format));
Reset_For_Wave_Format_18 (WF.Wave_Format);
if Verbose then
Put_Line ("Size of waveformat record "
& Integer'Image (
Wave_Format_18'Value_Size / 8));
Put_Line ("BitsPerSample: "
& Positive'Image
(To_Positive (WF.Wave_Format.Bits_Per_Sample)));
Put_Line ("Size: " & Interfaces.Unsigned_16'Image
(WF.Wave_Format.Size));
end if;
when Wave_Format_Chunk_Size'Enum_Rep
(Wave_Format_Extensible_Size) =>
Wave_Format_Extensible'Read (WF.File_Access,
WF.Wave_Format);
if Verbose then
Put_Line ("Size of waveformat record "
& Integer'Image
(Wave_Format_Extensible'Value_Size / 8));
Put_Line ("File index: " & Integer'Image (
Integer (Ada.Streams.Stream_IO.Index (WF.File))));
Put_Line ("BitsPerSample: "
& Positive'Image
(To_Positive (WF.Wave_Format.Bits_Per_Sample)));
Put_Line ("Size: " & Interfaces.Unsigned_16'Image
(WF.Wave_Format.Size));
end if;
when others =>
WF.Set_Error (Wavefile_Error_Unsupported_Format_Size);
return;
end case;
if Verbose then
Wavefiles.Report.Display_Info (WF);
Put_Line ("fmt chunk size: " & Long_Integer'Image
(Found.Chunk_Element.Size));
end if;
end if;
end Parse_Fmt_Chunk;
----------------------
-- Parse_Data_Chunk --
----------------------
procedure Parse_Data_Chunk
(WF : in out Wavefile)
is
Verbose : constant Boolean := False;
Found : Wav_Chunk_Element_Found;
begin
Find_First_Chunk (Chunks => WF.RIFF_Info.Chunks,
Chunk_Tag => Wav_Chunk_Data,
Found => Found);
if not Found.Success then
WF.Set_Error (Wavefile_Error_Data_Chuck_Not_Found);
return;
else
Set_File_Index_To_Chunk_Data_Start (WF.File,
Found.Chunk_Element.Start_Index);
if Verbose then
Put_Line ("RIFF Tag: " & Found.Chunk_Element.ID);
end if;
WF.Sample_Pos :=
(Current => First_Sample_Count,
Total =>
Number_Of_Samples
(Chunk_Size => Found.Chunk_Element.Size,
Channels_In_Total => WF.Wave_Format.Channels,
Bits_Per_Sample => WF.Wave_Format.Bits_Per_Sample));
if Verbose then
Put_Line ("Data chunk size: "
& Long_Integer'Image (Found.Chunk_Element.Size));
Put_Line ("Num samples: "
& Sample_Count'Image (WF.Sample_Pos.Total));
end if;
end if;
end Parse_Data_Chunk;
---------------------------
-- Read_Until_Data_Start --
---------------------------
procedure Read_Until_Data_Start
(WF : in out Wavefile)
is
Verbose : constant Boolean := False;
begin
if WF.RIFF_Info.Chunks.Is_Empty then
Audio.Wavefiles.Read.Parse_Wav_Chunks (WF);
end if;
if Verbose then
Audio.Wavefiles.Report.Display_Info (WF.RIFF_Info);
end if;
Parse_Fmt_Chunk (WF);
Parse_Data_Chunk (WF);
end Read_Until_Data_Start;
----------------------
-- Parse_Wav_Chunks --
----------------------
procedure Parse_Wav_Chunks
(WF : in out Wavefile)
is
use Ada.Streams;
Prev_File_Index : constant Ada.Streams.Stream_IO.Positive_Count :=
Stream_IO.Index (WF.File);
Curr_File_Index : Ada.Streams.Stream_IO.Positive_Count;
Chunk_Header : RIFF_Chunk_Header;
Info : RIFF_Information renames WF.RIFF_Info;
begin
-- Set index to initial RIFF chunk
Ada.Streams.Stream_IO.Set_Index (WF.File, 1);
Info.Chunks.Clear;
Parse_RIFF_Header : declare
FOURCC : FOURCC_String;
begin
RIFF_Chunk_Header'Read (WF.File_Access, Chunk_Header);
FOURCC_String'Read (WF.File_Access, FOURCC);
Info.Id := To_RIFF_Identifier (Chunk_Header.ID);
Info.Format := To_RIFF_Format (FOURCC);
end Parse_RIFF_Header;
if Info.Id /= RIFF_Identifier_Unknown and then
Info.Format /= RIFF_Format_Unknown
then
loop
Curr_File_Index := Ada.Streams.Stream_IO.Index (WF.File);
RIFF_Chunk_Header'Read (WF.File_Access, Chunk_Header);
declare
Chunk_Element : constant Wav_Chunk_Element
:= (Chunk_Tag => To_Wav_Chunk_Tag (Chunk_Header.ID),
ID => Chunk_Header.ID,
Size => Long_Integer (Chunk_Header.Size),
Start_Index => Curr_File_Index,
Consolidated => True);
begin
Info.Chunks.Append (Chunk_Element);
end;
-- This is most probably an error in the wavefile:
exit when Natural (Chunk_Header.Size) = 0;
Skip_Bytes (WF.File, Chunk_Header.Size);
exit when Ada.Streams.Stream_IO.End_Of_File (WF.File);
end loop;
end if;
-- Setting file index back to previous location
Ada.Streams.Stream_IO.Set_Index (WF.File, Prev_File_Index);
end Parse_Wav_Chunks;
------------------------
-- Set_Current_Sample --
------------------------
procedure Set_Current_Sample
(WF : in out Wavefile;
Position : Sample_Count)
is
Found : Wav_Chunk_Element_Found;
begin
Find_First_Chunk (Chunks => WF.RIFF_Info.Chunks,
Chunk_Tag => Wav_Chunk_Data,
Found => Found);
if not Found.Success then
WF.Set_Error (Wavefile_Error_Data_Chuck_Not_Found);
return;
else
Set_File_Index_To_Chunk_Data_Start
(File => WF.File,
Chunk_Start_Index => Found.Chunk_Element.Start_Index,
Position_In_Chunk => Number_Of_Bytes
(Position => Position - WF.First_Sample,
Channels_In_Total => WF.Wave_Format.Channels,
Bits_Per_Sample => WF.Wave_Format.Bits_Per_Sample));
WF.Sample_Pos.Current := Position;
end if;
end Set_Current_Sample;
end Audio.Wavefiles.Read;
|
TankZone/libTest.asm | dplassgit/games | 0 | 27278 | <reponame>dplassgit/games
incasm "libTrig.asm"
TEST_RADIUS=10 ; this is actually the diameter, shrug.
; For the center of the screen, start at 32768+12*40+19 = 33267, in hex 81f3
; For the lower left, start at 32768+20*40+5=33573, in hex 0x8325
POLAR_CENTER=$8325 ; 32768+19*40+7 ; $8325
testangle byte 0
;; Draw a circle of dots at POLAR_CENTER
;; Inputs: none
;; Outputs: None
;; Side effects: destroys a, x, y
polar_test lda #BG_LENGTH
sta testangle
polar_loop ldx testangle
dex
ldy #TEST_RADIUS
; theta in x, radius in y
jsr polar_to_screen
; add to the "center"
clc
lda #<POLAR_CENTER
adc polar_result
sta polar_result
lda #>POLAR_CENTER
adc polar_result+1
sta polar_result+1
; plot a dot. heh
ldy #0
lda #"."
sta (polar_result),y
dec testangle
bne polar_loop
lda #"*"
sta POLAR_CENTER
rts
;; Draws a single point centered at POLAR_CENTER, at the angle at angle=1
;; with radius #TEST_RADIUS
;; Inputs: angle (effectively)
;; Outputs: none
;; Side effects: destroys a, x, y
polar_one ldy #TEST_RADIUS
lda angle+1
clc
adc #$10
tax
jsr polar_to_screen
clc
lda #<POLAR_CENTER
adc polar_result
sta polar_result
lda #>POLAR_CENTER
adc polar_result+1
sta polar_result+1
ldy #0
lda angle+1
sta (polar_result),y
rts
|
Transynther/x86/_processed/NONE/_xt_/i3-7100_9_0x84_notsx.log_21829_2083.asm | ljhsiun2/medusa | 9 | 17052 | <gh_stars>1-10
.global s_prepare_buffers
s_prepare_buffers:
push %r11
push %r13
push %r14
push %r15
push %r8
push %r9
push %rcx
push %rdi
push %rsi
lea addresses_normal_ht+0x19648, %rsi
nop
nop
sub $1166, %r13
movb $0x61, (%rsi)
cmp %r9, %r9
lea addresses_normal_ht+0x30dc, %r8
nop
nop
nop
and $14689, %r11
mov (%r8), %r15w
nop
nop
nop
cmp $34605, %r8
lea addresses_UC_ht+0x28dc, %rsi
lea addresses_UC_ht+0x143f0, %rdi
nop
nop
nop
nop
nop
add $39061, %r11
mov $9, %rcx
rep movsw
xor %r11, %r11
lea addresses_A_ht+0xeafc, %rsi
lea addresses_normal_ht+0x108dc, %rdi
xor $40300, %r13
mov $77, %rcx
rep movsb
cmp %rcx, %rcx
lea addresses_WT_ht+0x36dc, %r8
clflush (%r8)
nop
nop
nop
and %r9, %r9
movw $0x6162, (%r8)
nop
xor $59774, %rdi
lea addresses_D_ht+0x1e4e4, %r14
dec %rcx
mov $0x6162636465666768, %r13
movq %r13, %xmm0
vmovups %ymm0, (%r14)
nop
nop
nop
cmp %r14, %r14
pop %rsi
pop %rdi
pop %rcx
pop %r9
pop %r8
pop %r15
pop %r14
pop %r13
pop %r11
ret
.global s_faulty_load
s_faulty_load:
push %r11
push %r12
push %r15
push %r8
push %r9
push %rax
push %rcx
// Load
lea addresses_WT+0x583c, %r11
nop
nop
nop
and %r15, %r15
mov (%r11), %rcx
nop
add $41635, %r15
// Store
lea addresses_UC+0x53dc, %r12
clflush (%r12)
cmp $5482, %r8
movl $0x51525354, (%r12)
nop
nop
nop
nop
nop
dec %r15
// Load
lea addresses_WT+0x14cdc, %rax
nop
nop
nop
nop
add %rcx, %rcx
mov (%rax), %r11
nop
nop
nop
nop
and %r15, %r15
// Faulty Load
lea addresses_PSE+0x100dc, %r9
nop
nop
nop
inc %r11
movb (%r9), %cl
lea oracles, %r15
and $0xff, %rcx
shlq $12, %rcx
mov (%r15,%rcx,1), %rcx
pop %rcx
pop %rax
pop %r9
pop %r8
pop %r15
pop %r12
pop %r11
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_PSE', 'same': False, 'size': 4, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_WT', 'same': False, 'size': 8, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_UC', 'same': False, 'size': 4, 'congruent': 4, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WT', 'same': False, 'size': 8, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
[Faulty Load]
{'src': {'type': 'addresses_PSE', 'same': True, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 1, 'congruent': 1, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_normal_ht', 'same': False, 'size': 2, 'congruent': 9, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'src': {'type': 'addresses_UC_ht', 'congruent': 10, 'same': False}, 'dst': {'type': 'addresses_UC_ht', 'congruent': 1, 'same': False}, 'OP': 'REPM'}
{'src': {'type': 'addresses_A_ht', 'congruent': 5, 'same': False}, 'dst': {'type': 'addresses_normal_ht', 'congruent': 11, 'same': False}, 'OP': 'REPM'}
{'dst': {'type': 'addresses_WT_ht', 'same': False, 'size': 2, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_D_ht', 'same': False, 'size': 32, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'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
*/
|
libsrc/graphics/ticalc/swapgfxbk.asm | andydansby/z88dk-mk2 | 1 | 243238 | <reponame>andydansby/z88dk-mk2
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
; Page the graphics bank in/out - used by all gfx functions
; Simply does a swap...
;
; TI calcs: Copy GRAPH MEM to LCD when finished.
; By <NAME> - Dec. 2000
;
;
; $Id: swapgfxbk.asm,v 1.7 2002/04/17 21:30:25 dom Exp $
;
XLIB swapgfxbk
XDEF swapgfxbk1
XREF cpygraph
.swapgfxbk
ret
.swapgfxbk1
push hl
push de
push bc
call cpygraph ; Copy GRAPH_MEM to LCD, then return
pop bc
pop de
pop hl
ret
|
programs/oeis/055/A055679.asm | neoneye/loda | 22 | 2584 | ; A055679: Number of distinct prime factors of phi(n!).
; 0,0,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,6,6,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,9,9,9,9,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,13,13,13,13,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15
mov $2,$0
mov $4,$0
lpb $2
mov $0,$4
sub $2,1
sub $0,$2
mov $3,$0
div $0,2
seq $0,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
add $3,1
mul $3,$0
div $3,2
mod $3,2
add $1,$3
lpe
mov $0,$1
|
Agda/univalent-hott/1-type-theory.agda | hemangandhi/HoTT-Intro | 0 | 9967 | <filename>Agda/univalent-hott/1-type-theory.agda
{-# OPTIONS --without-K --exact-split #-}
module 1-type-theory where
import 00-preamble
open 00-preamble public
-- Exercise 1.1 (From ../02-pi.agda)
_∘-1-1_ :
{i j k : Level} {A : UU i} {B : UU j} {C : UU k} →
(B → C) → ((A → B) → (A → C))
(g ∘-1-1 f) a = g (f a)
import 04-inductive-types
open 04-inductive-types public
-- Exercise 1.2
recursorOfProjections :
{i j k : Level} {A : UU i} {B : UU j} {C : UU k} →
(A → B → C) → (prod A B) → C
recursorOfProjections f p = f (pr1 p) (pr2 p)
-- Exercise 1.11 is neg-triple-neg
exercise-1-12-i : {i j : Level} {A : UU i} {B : UU j} → A → B → A
exercise-1-12-i x y = x
exercise-1-12-ii : {i : Level} {A : UU i} → A → ¬ (¬ A)
exercise-1-12-ii a = (\ f → f a)
exercise-1-12-iii :
{i j : Level} {A : UU i} {B : UU j} →
(coprod (¬ A) (¬ B)) → (¬ (prod A B))
exercise-1-12-iii (inl fa) = (\ p → fa (pr1 p))
exercise-1-12-iii (inr fb) = (\ p → fb (pr2 p))
kian-ex-1-13 :
{i : Level} {A : UU i}
→ ¬ (¬ (coprod A (¬ A)))
kian-ex-1-13 = (\ f → (\ g → f (inr g)) (\ a → f (inl a)))
import 05-identity-types
open 05-identity-types public
exercise-1-15 :
{i j : Level} {A : UU i} (C : A → UU j) (x : A) (y : A) → (Id x y) → (C x) → (C y)
exercise-1-15 C x y eq = ind-Id x (\ y' eq' → (C(x) → C(y'))) (\ x → x) y eq
|
asm/lfsr.asm | rodrigofegui/JVM | 1 | 103478 | ;-------------------------------------------------------------------------------
; Finalidade: Geração de números pseudo-aleatórios com o algoritmo
; LSFR de 24-bits
;-------------------------------------------------------------------------------
%include "asm_io.inc"
;-------------------------------------------------------------------------------
; Variáveis definidas
;-------------------------------------------------------------------------------
segment .data
;-------------------------------------------------------------------------------
; Variáveis reservadas
;-------------------------------------------------------------------------------
segment .bss
;-------------------------------------------------------------------------------
; Programa
;-------------------------------------------------------------------------------
global calc_lfsr_asm
segment .text
calc_lfsr_asm:
mov EAX, [ESP + 4] ; A semente
mov EDX, EAX
shr EDX, 0
mov ECX, EDX ; ECX = EDX >> 0 (lfsr = seed >> 0)
mov EDX, EAX
shr EDX, 16
xor ECX, EDX ; ECX ^= EDX >> 16 (lfsr ^= seed >> 16)
mov EDX, EAX
shr EDX, 21
xor ECX, EDX ; ECX ^= EDX >> 21 (lfsr ^= seed >> 21)
mov EDX, EAX
shr EDX, 22
xor ECX, EDX ; ECX ^= EDX >> 22 (lfsr ^= seed >> 22)
mov EDX, EAX
shr EDX, 23
xor ECX, EDX ; ECX ^= EDX >> 23 (lfsr ^= seed >> 23)
and ECX, 0x1 ; ECX &= 0x1 (lfsr &= 0x1)
shr EAX, 1 ; EAX >> 1 (seed >> 1)
shl ECX, 23 ; ECX << 23 (lfsr << 23)
or EAX, ECX ; EAX |= ECX (lsfr | seed)
ret
; 32 28 24 20 16 12 8 4
; 0000 0000 1110 0001 0000 0000 0000 0001
; 0 0 E 1 0 0 0 1
|
data/jpred4/jp_batch_1613899824__KEwomat/jp_batch_1613899824__KEwomat.als | jonriege/predict-protein-structure | 0 | 3103 | SILENT_MODE
BLOCK_FILE jp_batch_1613899824__KEwomat.concise.blc
MAX_NSEQ 50
MAX_INPUT_LEN 50
OUTPUT_FILE jp_batch_1613899824__KEwomat.concise.ps
PORTRAIT
POINTSIZE 8
IDENT_WIDTH 12
X_OFFSET 2
Y_OFFSET 2
DEFINE_FONT 0 Helvetica DEFAULT
DEFINE_FONT 1 Helvetica REL 0.75
DEFINE_FONT 7 Helvetica REL 0.6
DEFINE_FONT 3 Helvetica-Bold DEFAULT
DEFINE_FONT 4 Times-Bold DEFAULT
DEFINE_FONT 5 Helvetica-BoldOblique DEFAULT
#
DEFINE_COLOUR 3 1 0.62 0.67 # Turquiose
DEFINE_COLOUR 4 1 1 0 # Yellow
DEFINE_COLOUR 5 1 0 0 # Red
DEFINE_COLOUR 7 1 0 1 # Purple
DEFINE_COLOUR 8 0 0 1 # Blue
DEFINE_COLOUR 9 0 1 0 # Green
DEFINE_COLOUR 10 0.41 0.64 1.00 # Pale blue
DEFINE_COLOUR 11 0.41 0.82 0.67 # Pale green
DEFINE_COLOUR 50 0.69 0.18 0.37 # Pink (helix)
DEFINE_COLOUR 51 1.00 0.89 0.00 # Gold (strand)
NUMBER_INT 10
SETUP
#
# Highlight specific residues.
# Avoid highlighting Lupas 'C' predictions by
# limiting the highlighting to the alignments
Scol_CHARS C 1 1 21 12 4
Ccol_CHARS H ALL 5
Ccol_CHARS P ALL 8
SURROUND_CHARS LIV ALL
#
# Replace known structure types with whitespace
SUB_CHARS 1 13 21 22 H SPACE
SUB_CHARS 1 13 21 22 E SPACE
SUB_CHARS 1 13 21 22 - SPACE
HELIX 3 16 17
COLOUR_TEXT_REGION 3 16 17 16 50
HELIX 3 21 7
COLOUR_TEXT_REGION 3 21 7 21 50
HELIX 10 21 18
COLOUR_TEXT_REGION 10 21 18 21 50
HELIX 4 22 15
COLOUR_TEXT_REGION 4 22 15 22 50
|
programs/oeis/102/A102770.asm | neoneye/loda | 22 | 244282 | <filename>programs/oeis/102/A102770.asm<gh_stars>10-100
; A102770: (p*q - 1)/2 where p and q are consecutive odd primes.
; 7,17,38,71,110,161,218,333,449,573,758,881,1010,1245,1563,1799,2043,2378,2591,2883,3278,3693,4316,4898,5201,5510,5831,6158,7175,8318,8973,9521,10355,11249,11853,12795,13610,14445,15483,16199,17285,18431,19010,19601,20994,23526,25310,25991,26678,27843,28799,30245,32253,33795,35373,36449,37533,38918,39761,41459,44975,47738,48671,49610,52463,55773,58469,60551,61598,63363,65876,68445,70683,72578,74493,77216,79598,82004,85685,88199,90725,93311,95043,97238,99453,102596,105338,106721,108110,111846,116636,119558,122504,125498,128013,132594,136241,141471,147963,152339
add $0,1
seq $0,6094 ; Products of 2 successive primes.
sub $0,15
div $0,2
add $0,7
|
agda/Data/List/Sugar.agda | oisdk/combinatorics-paper | 4 | 5212 | <reponame>oisdk/combinatorics-paper
{-# OPTIONS --cubical --safe #-}
module Data.List.Sugar where
open import Data.List.Base
open import Prelude
[_] : A → List A
[ x ] = x ∷ []
pure : A → List A
pure = [_]
_>>=_ : List A → (A → List B) → List B
_>>=_ = flip concatMap
_>>_ : List A → List B → List B
xs >> ys = xs >>= const ys
_<*>_ : List (A → B) → List A → List B
fs <*> xs = do
f ← fs
x ← xs
[ f x ]
guard : Bool → List ⊤
guard false = []
guard true = [ tt ]
|
agda-stdlib/src/Relation/Binary/Properties/Poset.agda | DreamLinuxer/popl21-artifact | 5 | 13306 | ------------------------------------------------------------------------
-- The Agda standard library
--
-- Properties satisfied by posets
------------------------------------------------------------------------
{-# OPTIONS --without-K --safe #-}
open import Relation.Binary
module Relation.Binary.Properties.Poset
{p₁ p₂ p₃} (P : Poset p₁ p₂ p₃) where
open Poset P renaming (Carrier to A)
open import Function using (flip)
import Relation.Binary.Construct.NonStrictToStrict _≈_ _≤_ as ToStrict
import Relation.Binary.Properties.Preorder preorder as PreorderProperties
open import Relation.Nullary using (¬_)
private
_≉_ : Rel A p₂
x ≉ y = ¬ (x ≈ y)
------------------------------------------------------------------------
-- The _≥_ relation is also a poset.
infix 4 _≥_
_≥_ : Rel A p₃
x ≥ y = y ≤ x
open PreorderProperties public
using ()
renaming
( invIsPreorder to ≥-isPreorder
; invPreorder to ≥-preorder
)
≥-isPartialOrder : IsPartialOrder _≈_ _≥_
≥-isPartialOrder = record
{ isPreorder = PreorderProperties.invIsPreorder
; antisym = flip antisym
}
≥-poset : Poset p₁ p₂ p₃
≥-poset = record
{ isPartialOrder = ≥-isPartialOrder
}
open Poset ≥-poset public
using ()
renaming
( refl to ≥-refl
; reflexive to ≥-reflexive
; trans to ≥-trans
; antisym to ≥-antisym
)
------------------------------------------------------------------------
-- Partial orders can be turned into strict partial orders
infix 4 _<_
_<_ : Rel A _
_<_ = ToStrict._<_
<-isStrictPartialOrder : IsStrictPartialOrder _≈_ _<_
<-isStrictPartialOrder = ToStrict.<-isStrictPartialOrder isPartialOrder
<-strictPartialOrder : StrictPartialOrder _ _ _
<-strictPartialOrder = record
{ isStrictPartialOrder = <-isStrictPartialOrder
}
open StrictPartialOrder <-strictPartialOrder public
using ( <-resp-≈; <-respʳ-≈; <-respˡ-≈)
renaming
( irrefl to <-irrefl
; asym to <-asym
; trans to <-trans
)
<⇒≉ : ∀ {x y} → x < y → x ≉ y
<⇒≉ = ToStrict.<⇒≉
≤∧≉⇒< : ∀ {x y} → x ≤ y → x ≉ y → x < y
≤∧≉⇒< = ToStrict.≤∧≉⇒<
<⇒≱ : ∀ {x y} → x < y → ¬ (y ≤ x)
<⇒≱ = ToStrict.<⇒≱ antisym
≤⇒≯ : ∀ {x y} → x ≤ y → ¬ (y < x)
≤⇒≯ = ToStrict.≤⇒≯ antisym
------------------------------------------------------------------------
-- DEPRECATED NAMES
------------------------------------------------------------------------
-- Please use the new names as continuing support for the old names is
-- not guaranteed.
-- Version 1.2
invIsPartialOrder = ≥-isPartialOrder
{-# WARNING_ON_USAGE invIsPartialOrder
"Warning: invIsPartialOrder was deprecated in v1.2.
Please use ≥-isPartialOrder instead."
#-}
invPoset = ≥-poset
{-# WARNING_ON_USAGE invPoset
"Warning: invPoset was deprecated in v1.2.
Please use ≥-poset instead."
#-}
strictPartialOrder = <-strictPartialOrder
{-# WARNING_ON_USAGE strictPartialOrder
"Warning: strictPartialOrder was deprecated in v1.2.
Please use <-strictPartialOrder instead."
#-}
|
LabTask19Feb/task3.asm | forkkr/Assembly-Lab | 0 | 85302 | segment .data
ffmt: dq "First odd number: %lld",10,0
prr: dq "",10,0
sfmt: dq "Last odd number: %lld",10,0
ssfmt: dq "%lld",0
segment .bss
a: resq 255
b: resq 1
c: resq 1
d: resq 1
cnt: resq 2
now: resq 2
fst: resq 1
snd: resq 1
segment .text
global main
extern printf
extern scanf
main:
push RBP
xor r8 , r8
xor rcx, rcx
mov [c] , rcx
ll:
mov rbx , rcx
mov [b], rcx
xor rax, rax
mov rdi , ssfmt
mov rsi, d
call scanf
mov rax , [d]
mov qword[a+rbx*8],rax
mov rcx , [b]
INC rcx
cmp rcx , 10
jne ll
; input taken
xor rcx, rcx
mov [cnt] , rcx
sll:
mov [b] , rcx
xor rdx , rdx
mov rax , qword[a+rcx*8]
and rax , 1
cmp rax , 0
je _ex
mov rax , [cnt]
add rax , 1
mov [cnt] , rax
_ex:
mov rcx, [b]
INC rcx
cmp rcx , 10
jne sll
; count done
xor rcx , rcx
mov [now] , rcx
thll:
mov [b] , rcx
mov rax , [a+rcx*8]
and rax , 1
cmp rax , 0
je lpcon
mov rax , [now]
add rax , 1
mov [now] , rax
cmp rax , 1
je _en1
mov rbx ,[cnt]
cmp rax , rbx
je _en2
lpcon:
mov rcx, [b]
INC rcx
cmp rcx , 10
je _exit
jmp thll
_en1:
mov rcx , [b]
mov rax , [a+rcx*8]
mov [fst] , rax
mov [snd] , rax
jmp lpcon
_en2:
mov rcx , [b]
mov rax , [a+rcx*8]
mov [snd] , rax
jmp lpcon
_exit:
mov rdi , ffmt
mov rsi, [fst]
call printf
xor rax , rax
mov rdi , prr
call printf
xor rax , rax
mov rdi , sfmt
mov rsi , [snd]
call printf
pop RBP
ret
|
libsrc/_DEVELOPMENT/target/sms/driver/terminal/sms_01_output_terminal/sms_01_output_terminal_oterm_msg_cls.asm | jpoikela/z88dk | 640 | 93343 | <filename>libsrc/_DEVELOPMENT/target/sms/driver/terminal/sms_01_output_terminal/sms_01_output_terminal_oterm_msg_cls.asm<gh_stars>100-1000
SECTION code_driver
SECTION code_driver_terminal_output
PUBLIC sms_01_output_terminal_oterm_msg_cls
EXTERN l_offset_ix_de, asm_sms_cls_wc
sms_01_output_terminal_oterm_msg_cls:
; clear the window
;
; can use : af, bc, de, hl
ld hl,16
call l_offset_ix_de ; hl = window.rect *
push hl
ld l,(ix+26)
ld h,(ix+27) ; hl = background colour
ex (sp),ix ; ix = window.rect *
call asm_sms_cls_wc
pop ix
ret
|
test/agda/FRP/JS/Test/Bool.agda | agda/agda-frp-js | 63 | 11089 | <gh_stars>10-100
open import FRP.JS.String using ( _≟_ )
open import FRP.JS.Bool using ( Bool ; true ; false ; if_then_else_ ; _∧_ ; _∨_ ; not ; _xor_ )
open import FRP.JS.QUnit using ( TestSuite ; ok ; test ; _,_ )
module FRP.JS.Test.Bool where
tests : TestSuite
tests =
( test "true"
( ok "true" true )
, test "false"
( ok "false" (not false) )
, test "if"
( ok "if true" (if true then "a" else "b" ≟ "a")
, ok "if false" (if false then "a" else "b" ≟ "b") )
, test "∧"
( ok "true ∧ true" (true ∧ true)
, ok "true ∧ false" (not (true ∧ false))
, ok "false ∧ true" (not (false ∧ true))
, ok "false ∧ false" (not (false ∧ false)) )
, test "∨"
( ok "true ∨ true" (true ∨ true)
, ok "true ∨ false" (true ∨ false)
, ok "false ∨ true" (false ∨ true)
, ok "false ∨ false" (not (false ∨ false)) )
, test "xor"
( ok "true xor true" (not (true xor true))
, ok "true xor false" (true xor false)
, ok "false xor true" (false xor true)
, ok "false xor false" (not (false xor false)) )
) |
engine/playfieldRenderer/main.asm | laoo/TimePilot | 24 | 18494 |
prScreenWidth = 160
prScreenHeight = 96
prScreenWidthFonts = prScreenWidth/4
prScreenHeightFonts = prScreenHeight/8
;virtual screen coordinates
prScreenXMin = 128-(prScreenWidth/2)
prScreenXMax = 128+(prScreenWidth/2)
prScreenYMin = 128-(prScreenHeight/2)
prScreenYMax = 128+(prScreenHeight/2)
; object box size for fadeOut
fadeOutWidth equ 16 ; after this amount of pixels object will start to fade out off screen
fadeOutHeight equ 16 ; after this amount of pixels object will start to fade out off screen
rliTemp equ zeroPageLocal
rliMask equ rliTemp+0
bufRLIDsL equ rliTemp+2 ;render list destination low
bufRLIDsH equ rliTemp+3 ;render list destination high
bufRLISrL equ rliTemp+4 ;render list source low
bufRLISrH equ rliTemp+5 ;render list source high
bufRLIDof equ rliTemp+6 ;render list destination offset
bufRLILen equ rliTemp+7 ;render list length (same as offset)
bufRLIMsk equ rliTemp+8 ;render list mask offset from dest
bufRLIVal equ rliTemp+9 ;render list destination value
prTemp equ zeroPageLocal+7 ;this is madness!
;graphics objects ids | max 64 objects (0-63)
.enum prGfxObj
enemy = 0 ;16 entries
explosion = 16 ;4 entries
parachute = 20 ;5 entries
boss = 25 ;2 entries
cloud1 = 27 ;1 entry
cloud2 = 28 ;1 entry
cloud3 = 29 ;1 entry
bomb = 30 ;2 entries
rocket = 32 ;16 entries
.ende
fontsReservedForPlayerLocation equ 256-8
icl 'preinit.asm'
icl 'preparePhase.asm'
icl 'draw.asm'
icl 'render.asm'
|
4-high/gel/source/gel-camera.adb | charlie5/lace-alire | 1 | 21603 | <reponame>charlie5/lace-alire
with
gel.Sprite,
openGL.Visual,
ada.unchecked_Deallocation;
package body gel.Camera
is
--------
-- Forge
--
procedure free (Self : in out View)
is
procedure deallocate is new ada.unchecked_Deallocation (Item'Class, View);
begin
Self.destroy;
deallocate (Self);
end free;
--------------
-- Operations
--
procedure render (Self : in out Item; the_World : in gel.World.view;
To : in openGL.Surface.view)
is
all_Sprites : gel.World.sprite_transform_Pairs renames the_World.sprite_Transforms;
the_Visuals : openGL.Visual.views (1 .. all_Sprites'Length);
Count : Natural := 0;
the_Sprite : gel.Sprite.view;
begin
for i in all_Sprites'Range
loop
the_Sprite := all_Sprites (i).Sprite;
if not the_Sprite.is_Destroyed
and then the_Sprite.is_Visible
then
Count := Count + 1;
the_Visuals (Count) := the_Sprite.Visual;
the_Visuals (Count).Transform_is (all_Sprites (i).Transform);
the_Visuals (Count).Scale_is ((1.0, 1.0, 1.0));
the_Visuals (Count).program_Parameters_are (the_Sprite.program_Parameters);
end if;
end loop;
Self.render (the_Visuals (1 .. Count));
end render;
end gel.Camera;
|
programs/oeis/164/A164494.asm | neoneye/loda | 22 | 104885 | <filename>programs/oeis/164/A164494.asm<gh_stars>10-100
; A164494: Number of binary strings of length n with no substrings equal to 0010 0101 or 1010
; 13,23,40,70,123,216,379,665,1167,2048,3594,6307,11068,19423,34085,59815,104968,184206,323259,567280,995507,1746993,3065759,5380032,9441298,16568323,29075380,51023735,89540413,157132471,275748264,483904470,849193147,1490230088,2615171499,4589306057,8053670703,14133206848,24802049050,43524561955,76380281708,134038050511,235220381269,412782993735,724383656712,1271204700958,2230808738939,3914796433632,6869988829283,12055989963873,21156787532095,37127573929600,65154350290978,114337914184451,200649052007524,352114540121575,617917942420077,1084370396726103,1902937391153704,3339422328001382,5860277661575163,10284070386302648,18047285439031515,31670778153335545,55578341253942223,97533189793580416,171158816486554154,300362784433470115,527099942173966492,924995916401017023,1623254675061537669,2848613375896024807,4998967993131528968,8772577285428570798,15394799953621637435,27015990614946233040,47409758561699399443,83198326462074203281,146002884977395240159,256217202054415676480,449629845593510316082,789045374110000195843,1384678104680905752084,2429940680845321624407,4264248631119737692573,7483234686075059512823,13132161421875702957480,23045336788796084094710,40441746841791524744763,70970318316662668352296,124544226580329896054539,218559881685788648501545,383545855107910069300847,673076055110361386154688,1181166136798601351510074,2072802073594751386166307,3637514065501262806977228,6383392194206375579298223,11202072396506239737785525,19658266664307366703250055
add $0,4
seq $0,137495 ; A098601(2n)+A098601(2n+1)
|
test/interaction/Issue2590.agda | alhassy/agda | 1 | 9259 | <gh_stars>1-10
-- Andreas, 2017-05-24, issue #2590
-- Making variables visible by case splitting in with-clauses
-- {-# OPTIONS -v interaction.case:20 #-}
-- {-# OPTIONS -v reify:100 #-}
-- {-# OPTIONS -v tc.display:100 #-}
open import Agda.Builtin.Nat
test1 : {x : Nat} → Nat
test1 with Set
... | q = {!.x!} -- C-c C-c
-- Expected result:
-- test1 {x} | q = ?
data Any (x : Nat) : Set where
any : Any x
postulate
zonk : ∀{x} → Any x → Nat
test2 : {x y : Nat} → Any y → Nat
test2 p with zonk p
... | q = {!.y!} -- C-c C-c
-- Expected result:
-- test2 {y = y} p | q = ?
|
src/main/resources/project-templates/simple_ada_project/src/@[email protected] | WinterAlexander/Ada-IntelliJ | 17 | 6522 | procedure @_Main_Name_@ is
begin
-- Insert code here.
null;
end @_Main_Name_@;
|
programs/oeis/084/A084084.asm | karttu/loda | 0 | 245577 | ; A084084: Length of lists created by n substitutions k -> Range[0,1+Mod[k+1,3]] starting with {0}.
; 1,3,9,28,86,265,816,2513,7739,23833,73396,226030,696081,2143648,6601569,20330163,62608681,192809420,593775046,1828587033,5631308624,17342153393,53406819691,164471408185,506505428836,1559831901918
mul $0,2
add $0,1
mov $2,1
mov $3,2
lpb $0,1
sub $0,1
add $1,$3
sub $1,$2
add $3,$2
add $2,$1
lpe
|
programs/oeis/132/A132141.asm | neoneye/loda | 22 | 177435 | <filename>programs/oeis/132/A132141.asm<gh_stars>10-100
; A132141: Numbers whose ternary representation begins with 1.
; 1,3,4,5,9,10,11,12,13,14,15,16,17,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,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140
seq $0,297251 ; Numbers whose base-3 digits have greater up-variation than down-variation; see Comments.
sub $0,5
div $0,3
add $0,1
|
docs/bugBounty2020/apps/proto-ota/signfile/ada/verifyfile.adb | mikkowus/BESSPIN-Tool-Suite | 0 | 9659 | <reponame>mikkowus/BESSPIN-Tool-Suite<gh_stars>0
with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Sign; use SPARKNaCl.Sign;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Streams; use Ada.Streams;
with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Unchecked_Conversion;
with GNAT.Traceback;
with GNAT.Traceback.Symbolic;
with Interfaces; use Interfaces;
with GNAT.IO_Aux;
procedure VerifyFile
is
-- Generated from the secret pass-phrase
Raw_PK : constant Bytes_32 :=
(16#BA#, 16#FB#, 16#D4#, 16#BB#, 16#9F#, 16#8E#, 16#CE#, 16#C1#,
16#EC#, 16#E7#, 16#42#, 16#D7#, 16#EA#, 16#3B#, 16#2E#, 16#E2#,
16#E0#, 16#16#, 16#E3#, 16#0F#, 16#27#, 16#0B#, 16#AE#, 16#74#,
16#B3#, 16#0B#, 16#ED#, 16#AC#, 16#33#, 16#47#, 16#01#, 16#FA#);
PK : Signing_PK;
begin
PK_From_Bytes (Raw_PK, PK);
if Argument_Count = 1 then
declare
FN : constant String := Argument (1);
FH : Ada.Streams.Stream_IO.File_Type;
FC : Ada.Streams.Stream_IO.Count;
begin
if GNAT.IO_Aux.File_Exists (FN) then
Open (FH, In_File, FN);
Put_Line ("Opened file OK");
FC := Size (FH);
Put_Line ("File size is" & FC'Img & " bytes");
if FC < 65 then
Put_Line ("File must be at least 65 bytes long.");
Close (FH);
return;
end if;
declare
subtype SM_Index is Stream_Element_Offset
range 1 .. Stream_Element_Offset (FC);
subtype SM_Buffer is Stream_Element_Array (SM_Index);
SM : SM_Buffer;
subtype SMB_Index is N32 range 0 .. N32 (FC) - 1;
subtype SMB_Buffer is SPARKNaCl.Byte_Seq (SMB_Index);
function SMC is new Ada.Unchecked_Conversion
(SM_Buffer, SMB_Buffer);
-- subtype MB_Index is N32
-- range 0 .. N32 (FC) - 1;
-- subtype MB_Buffer is Byte_Seq (MB_Index);
M : SMB_Buffer;
FL : Stream_Element_Offset;
OK : Boolean;
MLen : I32;
begin
M := (others => 0);
SM := (others => 0);
Read (FH, SM, FL);
Put_Line ("Read" & FL'Img & " bytes OK");
Close (FH);
-- Verify the signature using PK
SPARKNaCl.Sign.Open (M, OK, MLen, SMC (SM), PK);
if OK then
Put_Line ("Signature OK");
Put_Line ("MLen is " & MLen'Img);
DH ("M is ", M (0 .. (MLen - 1)));
else
Put_Line ("Signature does not verify.");
return;
end if;
end;
else
Put_Line ("File doesn not exist or not readable.");
end if;
end;
else
Put_Line ("Usage: verifyfile signed_filename");
end if;
exception
when E : others =>
Put_Line (Exception_Information (E));
Put_Line (GNAT.Traceback.Symbolic.Symbolic_Traceback (E));
end VerifyFile;
|
src/sinks.ads | dshadrin/AProxy | 1 | 28632 | ----------------------------------------
-- Copyright (C) 2019 <NAME> --
-- All rights reserved. --
----------------------------------------
with Pal;
with Logging_Message;
with ConfigTree;
with Ada.Strings.Unbounded;
with Ada.Containers.Vectors;
package Sinks is
use all type Logging_Message.LogMessage;
package LogsVector is new Ada.Containers.Vectors (Pal.uint32_t, Logging_Message.LogMessage);
type LVectorPtr is access all LogsVector.Vector;
package LogsSP is new Pal.Smart_Ptr (TypeName => LogsVector.Vector, SharedObject => LVectorPtr);
subtype LogMessages is LogsSP.Shared_Ptr;
type ESinkType is ( CONSOLE_SINK, FILE_SINK );
for ESinkType'Size use Pal.uint8_t'Size;
type Sink is limited private;
function Channel (self : access Sink) return Logging_Message.LogChannel
with inline, pre => self /= null;
procedure WriteLogs (self : access Sink; logs : in LogMessages)
with pre => self /= null;
procedure Close (self : access Sink)
with pre => self /= null;
procedure MakeSink (self : out Sink; name : in String; cfg : in ConfigTree.NodePtr)
with pre => not ConfigTree.IsNull (cfg) and then cfg.GetName = "sink";
activeSinksCounter : aliased Pal.uint32_t := 0;
-----------------------------------------------------------------------------
task type SinkOutputer is
entry Write (logs : in LogMessages;
file : Ada.Strings.Unbounded.Unbounded_String := Ada.Strings.Unbounded.Null_Unbounded_String);
entry Start (tag : ESinkType;
sev : Logging_Message.ESeverity;
ch : Logging_Message.LogChannel);
entry Stop;
end SinkOutputer;
type SinkOutputerPtr is access SinkOutputer;
private
type Sink is limited
record
SinkType : ESinkType;
severity : Logging_Message.ESeverity;
channel : Logging_Message.LogChannel;
template : Ada.Strings.Unbounded.Unbounded_String;
prefix : Ada.Strings.Unbounded.Unbounded_String;
suffix : Ada.Strings.Unbounded.Unbounded_String;
filename : Ada.Strings.Unbounded.Unbounded_String;
open_by_demand : Pal.bool;
handler : SinkOutputerPtr;
end record;
function MakeFilename (self : in out Sink) return Ada.Strings.Unbounded.Unbounded_String;
end Sinks;
|
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64104l.ada | best08618/asylo | 7 | 10191 | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64104l.ada<gh_stars>1-10
-- C64104L.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- CHECK THAT CONSTRAINT_ERROR IS RAISED UNDER THE APPROPRIATE
-- CIRCUMSTANCES FOR ACCESS PARAMETERS, NAMELY WHEN THE
-- ACTUAL INDEX BOUNDS OR DISCRIMINANTS ARE NOT EQUAL
-- TO THE FORMAL CONSTRAINTS BEFORE THE CALL (FOR IN AND IN OUT
-- MODES), AND WHEN THE FORMAL CONSTRAINTS ARE NOT EQUAL TO THE
-- ACTUAL CONSTRAINTS UPON RETURN (FOR IN OUT AND OUT MODES).
-- (I) AFTER RETURN, OUT MODE, CONSTRAINED FORMAL, STATIC
-- PRIVATE DISCRIMINANTS.
-- JRK 3/18/81
-- NL 10/13/81
-- SPS 10/26/82
WITH REPORT;
PROCEDURE C64104L IS
USE REPORT;
BEGIN
TEST ("C64104L", "CHECK THAT CONSTRAINT_ERROR IS RAISED " &
"APPROPRIATELY FOR ACCESS PARAMETERS");
--------------------------------------------------
DECLARE
PACKAGE PKG IS
TYPE E IS (E1, E2, E3);
TYPE T (D : E := E1; B : BOOLEAN := FALSE) IS
PRIVATE;
PRIVATE
TYPE ARR IS ARRAY (E RANGE <>) OF INTEGER;
TYPE T (D : E := E1; B : BOOLEAN := FALSE) IS
RECORD
I : INTEGER;
CASE B IS
WHEN FALSE =>
J : INTEGER;
WHEN TRUE =>
A : ARR (E1 .. D);
END CASE;
END RECORD;
END PKG;
USE PKG;
TYPE A IS ACCESS T;
SUBTYPE SA IS A(E2, TRUE);
V : A (E2, FALSE) := NEW T (E2, FALSE);
ENTERED : BOOLEAN := FALSE;
PROCEDURE P (X : OUT SA ) IS
BEGIN
ENTERED := TRUE;
X := NEW T (E2, TRUE);
EXCEPTION
WHEN OTHERS =>
FAILED ("EXCEPTION RAISED IN PROCEDURE");
END P;
BEGIN
P (V);
FAILED ("EXCEPTION NOT RAISED AFTER RETURN");
EXCEPTION
WHEN CONSTRAINT_ERROR =>
IF NOT ENTERED THEN
FAILED ("CONSTRAINT_ERROR RAISED BEFORE " &
"CALL");
END IF;
WHEN OTHERS =>
IF NOT ENTERED THEN
FAILED ("OTHER EXCEPTION RAISED BEFORE CALL");
ELSE FAILED ("WRONG EXCEPTION RAISED AFTER " &
"RETURN");
END IF;
END;
------------------------------------------------
RESULT;
END C64104L;
|
sources/ippcp/asm_intel64/pcpsm3u8as.asm | ntyukaev/ipp-crypto | 30 | 179286 | <reponame>ntyukaev/ipp-crypto
;===============================================================================
; Copyright 2015-2020 Intel Corporation
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;===============================================================================
;
;
; Purpose: Cryptography Primitive.
; Message block processing according to SM3
;
; Content:
; UpdateSM3
;
%include "asmdefs.inc"
%include "ia_32e.inc"
%include "pcpvariant.inc"
%if (_ENABLE_ALG_SM3_)
%if ((_IPP32E >= _IPP32E_U8 ) && (_IPP32E < _IPP32E_E9 )) || (_IPP32E == _IPP32E_N8 )
%xdefine a r8d
%xdefine b r9d
%xdefine c r10d
%xdefine d r11d
%xdefine e r12d
%xdefine f r13d
%xdefine g r14d
%xdefine h r15d
%xdefine hPtr rdi
%xdefine mPtr rsi
%xdefine kPtr rcx
%xdefine t0 eax
%xdefine t1 ebx
%xdefine t2 ebp
%xdefine t3 edx
%xdefine ctr hPtr
%if (_IPP32E >= _IPP32E_U8 )
%macro ROTL 2.nolist
%xdefine %%x %1
%xdefine %%n %2
shld %%x,%%x, %%n
%endmacro
%else
%macro ROTL 2.nolist
%xdefine %%x %1
%xdefine %%n %2
rol %%x, %%n
%endmacro
%endif
%macro ROUND_00_15 9.nolist
%xdefine %%a %1
%xdefine %%b %2
%xdefine %%c %3
%xdefine %%d %4
%xdefine %%e %5
%xdefine %%f %6
%xdefine %%g %7
%xdefine %%h %8
%xdefine %%i %9
mov t0, %%a
mov t1, [kPtr+ctr*sizeof(dword)+%%i*sizeof(dword)]
ROTL t0, 12 ; t0 = t
add t1, t0
add t1, %%e
ROTL t1, 7 ; t1 = SS1
xor t0, t1 ; t0 = SS2
mov t2, %%b
mov t3, %%f
xor t2, %%c
xor t3, %%g
xor t2, %%a ; t2 = FF
xor t3, %%e ; t3 = GG
add t0, t2 ; t0 = SS2 + FF
add t1, t3 ; t1 = SS1 + GG
add t0, %%d ; t0 = SS2 + FF + d
add t1, %%h ; t1 = SS1 + GG + h
mov t2, [rsp+ctr*sizeof(dword)+%%i*sizeof(dword)] ; t2 = w[i]
add t1, t2 ; t1 = TT2
xor t2, [rsp+ctr*sizeof(dword)+(%%i+4)*sizeof(dword)] ; t2 = w[i] ^ w[i+4]
add t0, t2 ; t0 = TT1
ROTL %%b, 9
ROTL %%f, 19
mov %%h, t0
mov %%d, t1
ROTL %%d, 8
xor %%d, t1
ROTL %%d, 9
xor %%d, t1
%endmacro
%macro ROUND_16_63 9.nolist
%xdefine %%a %1
%xdefine %%b %2
%xdefine %%c %3
%xdefine %%d %4
%xdefine %%e %5
%xdefine %%f %6
%xdefine %%g %7
%xdefine %%h %8
%xdefine %%i %9
mov t0, %%a
mov t1, [kPtr+ctr*sizeof(dword)+%%i*sizeof(dword)]
ROTL t0, 12
add t1, t0
add t1, %%e
ROTL t1, 7 ;; t1 = SS1
xor t0, t1 ;; t0 = SS2
mov t3, %%b
mov t2, %%b
and t3, %%c
xor t2, %%c
and t2, %%a
add t2, t3
mov t3, %%f
xor t3, %%g
and t3, %%e
xor t3, %%g
add t0, t2 ;; t0 = SS2 + FF
add t1, t3 ;; t1 = SS1 + GG
add t0, %%d ;; t0 = SS2 + FF + d
add t1, %%h ;; t1 = SS1 + GG + h
mov t2, [rsp+ctr*sizeof(dword)+%%i*sizeof(dword)] ;; t2 = w[i]
add t1, t2 ;; t1 = TT2
xor t2, [rsp+ctr*sizeof(dword)+(%%i+4)*sizeof(dword)] ;; t2 = w[i] ^ w[i+4]
add t0, t2 ;; t0 = TT1
ROTL %%b, 9
ROTL %%f, 19
mov %%h, t0
mov %%d, t1
ROTL %%d, 8
xor %%d, t1
ROTL %%d, 9
xor %%d, t1
%endmacro
%macro SCHED_16_67 1.nolist
%xdefine %%i %1
mov t2, [rsp+ctr*sizeof(dword)+(%%i-3)*sizeof(dword)] ;; t2 = w[i-3]
ROTL t2, 15 ;; t2 = rol(t2,15)
xor t2, [rsp+ctr*sizeof(dword)+(%%i-9)*sizeof(dword)] ;; t2 ^= w[i-9]
xor t2, [rsp+ctr*sizeof(dword)+(%%i-16)*sizeof(dword)] ;; t2 ^= w[i-16]
mov t3, t2
ROTL t3, 8
xor t3, t2
ROTL t3, 15
xor t3, t2 ;; t3 = P1
mov t2, [rsp+ctr*sizeof(dword)+(%%i-13)*sizeof(dword)]
xor t3, [rsp+ctr*sizeof(dword)+(%%i-6)*sizeof(dword)]
ROTL t2, 7
xor t3, t2
mov [rsp+ctr*sizeof(dword)+%%i*sizeof(dword)], t3
%endmacro
segment .text align=IPP_ALIGN_FACTOR
align IPP_ALIGN_FACTOR
bswap128 DB 3,2,1,0,7,6,5,4,11,10,9,8,15,14,13,12
;********************************************************************
;* void UpdateSM3(uint32_t hash[8],
; const uint32_t msg[16], int msgLen,
; const uint32_t* K_SM3)
;********************************************************************
align IPP_ALIGN_FACTOR
IPPASM UpdateSM3,PUBLIC
%assign LOCAL_FRAME 68*sizeof(dword)+3*sizeof(qword)
USES_GPR rbp,rbx,rsi,rdi,r12,r13,r14,r15
USES_XMM
COMP_ABI 4
;; rdi = hash
;; rsi = data buffer
;; rdx = data buffer length (bytes)
;; rcx = address of SM3 constants
;; stack structure:
%assign _w 0 ; msg extension W0, ..., W67
%assign _hash _w+68*sizeof(dword) ; hash
%assign _msg _hash+sizeof(qword) ; msg pointer
%assign _len _msg+sizeof(qword) ; msg length
%xdefine MBS_SM3 (64)
movsxd rdx, edx
mov qword [rsp+_hash], hPtr ; save hash pointer
mov qword [rsp+_len], rdx ; save msg length
mov a, [hPtr+0*sizeof(dword)] ; input hash value
mov b, [hPtr+1*sizeof(dword)]
mov c, [hPtr+2*sizeof(dword)]
mov d, [hPtr+3*sizeof(dword)]
mov e, [hPtr+4*sizeof(dword)]
mov f, [hPtr+5*sizeof(dword)]
mov g, [hPtr+6*sizeof(dword)]
mov h, [hPtr+7*sizeof(dword)]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; process data block
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
align IPP_ALIGN_FACTOR
.main_loop:
xor ctr, ctr ; round
movdqu xmm0, oword [mPtr+0*sizeof(oword)]
movdqu xmm1, oword [mPtr+1*sizeof(oword)]
movdqu xmm2, oword [mPtr+2*sizeof(oword)]
movdqu xmm3, oword [mPtr+3*sizeof(oword)]
add mPtr, MBS_SM3
mov qword [rsp+_msg], mPtr ; save msg pointer
pshufb xmm0, [rel bswap128]
pshufb xmm1, [rel bswap128]
pshufb xmm2, [rel bswap128]
pshufb xmm3, [rel bswap128]
movdqu oword [rsp+0*sizeof(oword)], xmm0
movdqu oword [rsp+1*sizeof(oword)], xmm1
movdqu oword [rsp+2*sizeof(oword)], xmm2
movdqu oword [rsp+3*sizeof(oword)], xmm3
align IPP_ALIGN_FACTOR
.rounds_00_15:
SCHED_16_67 16
ROUND_00_15 a,b,c,d,e,f,g,h,0
SCHED_16_67 17
ROUND_00_15 h,a,b,c,d,e,f,g,1
SCHED_16_67 18
ROUND_00_15 g,h,a,b,c,d,e,f,2
SCHED_16_67 19
ROUND_00_15 f,g,h,a,b,c,d,e,3
SCHED_16_67 20
ROUND_00_15 e,f,g,h,a,b,c,d,4
SCHED_16_67 21
ROUND_00_15 d,e,f,g,h,a,b,c,5
SCHED_16_67 22
ROUND_00_15 c,d,e,f,g,h,a,b,6
SCHED_16_67 23
ROUND_00_15 b,c,d,e,f,g,h,a,7
add ctr, 8
cmp ctr, 16
jne .rounds_00_15
align IPP_ALIGN_FACTOR
.rounds_16_47:
SCHED_16_67 16
ROUND_16_63 a,b,c,d,e,f,g,h,0
SCHED_16_67 17
ROUND_16_63 h,a,b,c,d,e,f,g,1
SCHED_16_67 18
ROUND_16_63 g,h,a,b,c,d,e,f,2
SCHED_16_67 19
ROUND_16_63 f,g,h,a,b,c,d,e,3
SCHED_16_67 20
ROUND_16_63 e,f,g,h,a,b,c,d,4
SCHED_16_67 21
ROUND_16_63 d,e,f,g,h,a,b,c,5
SCHED_16_67 22
ROUND_16_63 c,d,e,f,g,h,a,b,6
SCHED_16_67 23
ROUND_16_63 b,c,d,e,f,g,h,a,7
add ctr, 8
cmp ctr, 48
jne .rounds_16_47
SCHED_16_67 16
SCHED_16_67 17
SCHED_16_67 18
SCHED_16_67 19
align IPP_ALIGN_FACTOR
.rounds_48_63:
ROUND_16_63 a,b,c,d,e,f,g,h,0
ROUND_16_63 h,a,b,c,d,e,f,g,1
ROUND_16_63 g,h,a,b,c,d,e,f,2
ROUND_16_63 f,g,h,a,b,c,d,e,3
ROUND_16_63 e,f,g,h,a,b,c,d,4
ROUND_16_63 d,e,f,g,h,a,b,c,5
ROUND_16_63 c,d,e,f,g,h,a,b,6
ROUND_16_63 b,c,d,e,f,g,h,a,7
add ctr, 8
cmp ctr, 64
jne .rounds_48_63
mov hPtr, [rsp+_hash]
mov mPtr, [rsp+_msg]
xor a, [hPtr+0*sizeof(dword)]
xor b, [hPtr+1*sizeof(dword)]
xor c, [hPtr+2*sizeof(dword)]
xor d, [hPtr+3*sizeof(dword)]
xor e, [hPtr+4*sizeof(dword)]
xor f, [hPtr+5*sizeof(dword)]
xor g, [hPtr+6*sizeof(dword)]
xor h, [hPtr+7*sizeof(dword)]
mov [hPtr+0*sizeof(dword)], a
mov [hPtr+1*sizeof(dword)], b
mov [hPtr+2*sizeof(dword)], c
mov [hPtr+3*sizeof(dword)], d
mov [hPtr+4*sizeof(dword)], e
mov [hPtr+5*sizeof(dword)], f
mov [hPtr+6*sizeof(dword)], g
mov [hPtr+7*sizeof(dword)], h
sub qword [rsp+_len], MBS_SM3
jne .main_loop
REST_XMM
REST_GPR
ret
ENDFUNC UpdateSM3
%endif ;; ((_IPP32E >= _IPP32E_U8 ) AND (_IPP32E < _IPP32E_E9 )) OR (_IPP32E == _IPP32E_N8 )
%endif ;; _ENABLE_ALG_SM3_
|
src/flashbake/plugins/current_track.scpt | jpenney/flashbake | 1 | 2343 | <gh_stars>1-10
if checkProcess("iTunes") then
tell application "iTunes"
if player state is playing then
set trck to current track
set title_text to (get name of trck)
set artist_text to (get artist of trck)
set album_text to (get album of trck)
set playpos to (get player position)
set displayTime to (my calc_total_time(playpos))
set title_time to (get time of trck)
set rate to (get rating of trck) / 20
set rate_text to ""
repeat rate times
set rate_text to rate_text & " * "
end repeat
set body_text to title_text & "
" & artist_text & " - " & album_text & "
" & displayTime & "/" & title_time & " - " & rate_text
else
set body_text to "Nothing playing in iTunes"
end if
end tell
else
set body_text to "iTunes is not open"
end if
----------------------------------------------------------------
to calc_total_time(totalSeconds)
set theHour to totalSeconds div 3600
if theHour is not 0 then
copy (theHour as string) & ":" to theHour
else
set theHour to ""
end if
set theMinutes to (totalSeconds mod 3600) div 60
if theMinutes is not 0 then
--if theMinutes is less than 10 then set theMinutes to "0" & (theMinutes as string)
copy (theMinutes as string) & ":" to theMinutes
else
set theMinutes to "0:"
end if
set theSeconds to totalSeconds mod 60
if theSeconds is less than 10 then set theSeconds to "0" & (theSeconds as string)
return theHour & theMinutes & theSeconds as string
end calc_total_time
----------------------------------------------------------------
on checkProcess(processName)
tell application "System Events"
set isRunning to ((application processes whose (name is equal to processName)) count)
end tell
if isRunning is greater than 0 then
return true
else
return false
end if
end checkProcess |
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_riff_riff_ids_h.ads | persan/A-gst | 1 | 5128 | <gh_stars>1-10
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h;
with glib;
with glib.Values;
with System;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_riff_riff_ids_h is
-- unsupported macro: GST_RIFF_RIFF_WAVE GST_MAKE_FOURCC ('W','A','V','E')
-- unsupported macro: GST_RIFF_RIFF_AVI GST_MAKE_FOURCC ('A','V','I',' ')
-- unsupported macro: GST_RIFF_RIFF_CDXA GST_MAKE_FOURCC ('C','D','X','A')
-- unsupported macro: GST_RIFF_TAG_RIFF GST_MAKE_FOURCC ('R','I','F','F')
-- unsupported macro: GST_RIFF_TAG_AVF0 GST_MAKE_FOURCC ('A','V','F','0')
-- unsupported macro: GST_RIFF_TAG_RIFX GST_MAKE_FOURCC ('R','I','F','X')
-- unsupported macro: GST_RIFF_TAG_LIST GST_MAKE_FOURCC ('L','I','S','T')
-- unsupported macro: GST_RIFF_TAG_avih GST_MAKE_FOURCC ('a','v','i','h')
-- unsupported macro: GST_RIFF_TAG_strd GST_MAKE_FOURCC ('s','t','r','d')
-- unsupported macro: GST_RIFF_TAG_strn GST_MAKE_FOURCC ('s','t','r','n')
-- unsupported macro: GST_RIFF_TAG_strh GST_MAKE_FOURCC ('s','t','r','h')
-- unsupported macro: GST_RIFF_TAG_strf GST_MAKE_FOURCC ('s','t','r','f')
-- unsupported macro: GST_RIFF_TAG_vedt GST_MAKE_FOURCC ('v','e','d','t')
-- unsupported macro: GST_RIFF_TAG_JUNK GST_MAKE_FOURCC ('J','U','N','K')
-- unsupported macro: GST_RIFF_TAG_JUNQ GST_MAKE_FOURCC ('J','U','N','Q')
-- unsupported macro: GST_RIFF_TAG_idx1 GST_MAKE_FOURCC ('i','d','x','1')
-- unsupported macro: GST_RIFF_TAG_dmlh GST_MAKE_FOURCC ('d','m','l','h')
-- unsupported macro: GST_RIFF_TAG_ID32 GST_MAKE_FOURCC ('I','D','3','2')
-- unsupported macro: GST_RIFF_TAG_IDVX GST_MAKE_FOURCC ('I','D','V','X')
-- unsupported macro: GST_RIFF_TAG_fmt GST_MAKE_FOURCC ('f','m','t',' ')
-- unsupported macro: GST_RIFF_TAG_data GST_MAKE_FOURCC ('d','a','t','a')
-- unsupported macro: GST_RIFF_TAG_plst GST_MAKE_FOURCC ('p','l','s','t')
-- unsupported macro: GST_RIFF_TAG_cue GST_MAKE_FOURCC ('c','u','e',' ')
-- unsupported macro: GST_RIFF_TAG_bext GST_MAKE_FOURCC ('b','e','x','t')
-- unsupported macro: GST_RIFF_TAG_BEXT GST_MAKE_FOURCC ('B','E','X','T')
-- unsupported macro: GST_RIFF_TAG_fact GST_MAKE_FOURCC ('f','a','c','t')
-- unsupported macro: GST_RIFF_TAG_acid GST_MAKE_FOURCC ('a','c','i','d')
-- unsupported macro: GST_RIFF_LIST_movi GST_MAKE_FOURCC ('m','o','v','i')
-- unsupported macro: GST_RIFF_LIST_hdrl GST_MAKE_FOURCC ('h','d','r','l')
-- unsupported macro: GST_RIFF_LIST_odml GST_MAKE_FOURCC ('o','d','m','l')
-- unsupported macro: GST_RIFF_LIST_strl GST_MAKE_FOURCC ('s','t','r','l')
-- unsupported macro: GST_RIFF_LIST_INFO GST_MAKE_FOURCC ('I','N','F','O')
-- unsupported macro: GST_RIFF_LIST_AVIX GST_MAKE_FOURCC ('A','V','I','X')
-- unsupported macro: GST_RIFF_LIST_adtl GST_MAKE_FOURCC ('a','d','t','l')
-- unsupported macro: GST_RIFF_FCC_vids GST_MAKE_FOURCC ('v','i','d','s')
-- unsupported macro: GST_RIFF_FCC_auds GST_MAKE_FOURCC ('a','u','d','s')
-- unsupported macro: GST_RIFF_FCC_pads GST_MAKE_FOURCC ('p','a','d','s')
-- unsupported macro: GST_RIFF_FCC_txts GST_MAKE_FOURCC ('t','x','t','s')
-- unsupported macro: GST_RIFF_FCC_vidc GST_MAKE_FOURCC ('v','i','d','c')
-- unsupported macro: GST_RIFF_FCC_iavs GST_MAKE_FOURCC ('i','a','v','s')
-- unsupported macro: GST_RIFF_FCCH_RLE GST_MAKE_FOURCC ('R','L','E',' ')
-- unsupported macro: GST_RIFF_FCCH_msvc GST_MAKE_FOURCC ('m','s','v','c')
-- unsupported macro: GST_RIFF_FCCH_MSVC GST_MAKE_FOURCC ('M','S','V','C')
-- unsupported macro: GST_RIFF_INFO_IARL GST_MAKE_FOURCC ('I','A','R','L')
-- unsupported macro: GST_RIFF_INFO_IART GST_MAKE_FOURCC ('I','A','R','T')
-- unsupported macro: GST_RIFF_INFO_ICMS GST_MAKE_FOURCC ('I','C','M','S')
-- unsupported macro: GST_RIFF_INFO_ICMT GST_MAKE_FOURCC ('I','C','M','T')
-- unsupported macro: GST_RIFF_INFO_ICOP GST_MAKE_FOURCC ('I','C','O','P')
-- unsupported macro: GST_RIFF_INFO_ICRD GST_MAKE_FOURCC ('I','C','R','D')
-- unsupported macro: GST_RIFF_INFO_ICRP GST_MAKE_FOURCC ('I','C','R','P')
-- unsupported macro: GST_RIFF_INFO_IDIM GST_MAKE_FOURCC ('I','D','I','M')
-- unsupported macro: GST_RIFF_INFO_IDPI GST_MAKE_FOURCC ('I','D','P','I')
-- unsupported macro: GST_RIFF_INFO_IENG GST_MAKE_FOURCC ('I','E','N','G')
-- unsupported macro: GST_RIFF_INFO_IGNR GST_MAKE_FOURCC ('I','G','N','R')
-- unsupported macro: GST_RIFF_INFO_IKEY GST_MAKE_FOURCC ('I','K','E','Y')
-- unsupported macro: GST_RIFF_INFO_ILGT GST_MAKE_FOURCC ('I','L','G','T')
-- unsupported macro: GST_RIFF_INFO_IMED GST_MAKE_FOURCC ('I','M','E','D')
-- unsupported macro: GST_RIFF_INFO_INAM GST_MAKE_FOURCC ('I','N','A','M')
-- unsupported macro: GST_RIFF_INFO_IPLT GST_MAKE_FOURCC ('I','P','L','T')
-- unsupported macro: GST_RIFF_INFO_IPRD GST_MAKE_FOURCC ('I','P','R','D')
-- unsupported macro: GST_RIFF_INFO_ISBJ GST_MAKE_FOURCC ('I','S','B','J')
-- unsupported macro: GST_RIFF_INFO_ISFT GST_MAKE_FOURCC ('I','S','F','T')
-- unsupported macro: GST_RIFF_INFO_ISHP GST_MAKE_FOURCC ('I','S','H','P')
-- unsupported macro: GST_RIFF_INFO_ISRC GST_MAKE_FOURCC ('I','S','R','C')
-- unsupported macro: GST_RIFF_INFO_ISRF GST_MAKE_FOURCC ('I','S','R','F')
-- unsupported macro: GST_RIFF_INFO_ITCH GST_MAKE_FOURCC ('I','T','C','H')
-- unsupported macro: GST_RIFF_FF00 GST_MAKE_FOURCC (0xFF,0xFF,0x00,0x00)
-- unsupported macro: GST_RIFF_00 GST_MAKE_FOURCC ('0', '0',0x00,0x00)
-- unsupported macro: GST_RIFF_01 GST_MAKE_FOURCC ('0', '1',0x00,0x00)
-- unsupported macro: GST_RIFF_02 GST_MAKE_FOURCC ('0', '2',0x00,0x00)
-- unsupported macro: GST_RIFF_03 GST_MAKE_FOURCC ('0', '3',0x00,0x00)
-- unsupported macro: GST_RIFF_04 GST_MAKE_FOURCC ('0', '4',0x00,0x00)
-- unsupported macro: GST_RIFF_05 GST_MAKE_FOURCC ('0', '5',0x00,0x00)
-- unsupported macro: GST_RIFF_06 GST_MAKE_FOURCC ('0', '6',0x00,0x00)
-- unsupported macro: GST_RIFF_07 GST_MAKE_FOURCC ('0', '7',0x00,0x00)
-- unsupported macro: GST_RIFF_00pc GST_MAKE_FOURCC ('0', '0', 'p', 'c')
-- unsupported macro: GST_RIFF_01pc GST_MAKE_FOURCC ('0', '1', 'p', 'c')
-- unsupported macro: GST_RIFF_00dc GST_MAKE_FOURCC ('0', '0', 'd', 'c')
-- unsupported macro: GST_RIFF_00dx GST_MAKE_FOURCC ('0', '0', 'd', 'x')
-- unsupported macro: GST_RIFF_00db GST_MAKE_FOURCC ('0', '0', 'd', 'b')
-- unsupported macro: GST_RIFF_00xx GST_MAKE_FOURCC ('0', '0', 'x', 'x')
-- unsupported macro: GST_RIFF_00id GST_MAKE_FOURCC ('0', '0', 'i', 'd')
-- unsupported macro: GST_RIFF_00rt GST_MAKE_FOURCC ('0', '0', 'r', 't')
-- unsupported macro: GST_RIFF_0021 GST_MAKE_FOURCC ('0', '0', '2', '1')
-- unsupported macro: GST_RIFF_00iv GST_MAKE_FOURCC ('0', '0', 'i', 'v')
-- unsupported macro: GST_RIFF_0031 GST_MAKE_FOURCC ('0', '0', '3', '1')
-- unsupported macro: GST_RIFF_0032 GST_MAKE_FOURCC ('0', '0', '3', '2')
-- unsupported macro: GST_RIFF_00vc GST_MAKE_FOURCC ('0', '0', 'v', 'c')
-- unsupported macro: GST_RIFF_00xm GST_MAKE_FOURCC ('0', '0', 'x', 'm')
-- unsupported macro: GST_RIFF_01wb GST_MAKE_FOURCC ('0', '1', 'w', 'b')
-- unsupported macro: GST_RIFF_01dc GST_MAKE_FOURCC ('0', '1', 'd', 'c')
-- unsupported macro: GST_RIFF_00__ GST_MAKE_FOURCC ('0', '0', '_', '_')
-- unsupported macro: GST_RIFF_cram GST_MAKE_FOURCC ('c', 'r', 'a', 'm')
-- unsupported macro: GST_RIFF_CRAM GST_MAKE_FOURCC ('C', 'R', 'A', 'M')
-- unsupported macro: GST_RIFF_wham GST_MAKE_FOURCC ('w', 'h', 'a', 'm')
-- unsupported macro: GST_RIFF_WHAM GST_MAKE_FOURCC ('W', 'H', 'A', 'M')
-- unsupported macro: GST_RIFF_rgb GST_MAKE_FOURCC (0x00,0x00,0x00,0x00)
-- unsupported macro: GST_RIFF_RGB GST_MAKE_FOURCC ('R', 'G', 'B', ' ')
-- unsupported macro: GST_RIFF_RAW GST_MAKE_FOURCC ('R', 'A', 'W', ' ')
-- unsupported macro: GST_RIFF_DIB GST_MAKE_FOURCC ('D', 'I', 'B', ' ')
-- unsupported macro: GST_RIFF_rle8 GST_MAKE_FOURCC (0x01,0x00,0x00,0x00)
-- unsupported macro: GST_RIFF_RLE8 GST_MAKE_FOURCC ('R', 'L', 'E', '8')
-- unsupported macro: GST_RIFF_rle4 GST_MAKE_FOURCC (0x02,0x00,0x00,0x00)
-- unsupported macro: GST_RIFF_RLE4 GST_MAKE_FOURCC ('R', 'L', 'E', '4')
-- unsupported macro: GST_RIFF_none GST_MAKE_FOURCC (0x00,0x00,0xFF,0xFF)
-- unsupported macro: GST_RIFF_NONE GST_MAKE_FOURCC ('N', 'O', 'N', 'E')
-- unsupported macro: GST_RIFF_pack GST_MAKE_FOURCC (0x01,0x00,0xFF,0xFF)
-- unsupported macro: GST_RIFF_PACK GST_MAKE_FOURCC ('P', 'A', 'C', 'K')
-- unsupported macro: GST_RIFF_tran GST_MAKE_FOURCC (0x02,0x00,0xFF,0xFF)
-- unsupported macro: GST_RIFF_TRAN GST_MAKE_FOURCC ('T', 'R', 'A', 'N')
-- unsupported macro: GST_RIFF_ccc GST_MAKE_FOURCC (0x03,0x00,0xFF,0xFF)
-- unsupported macro: GST_RIFF_CCC GST_MAKE_FOURCC ('C', 'C', 'C', ' ')
-- unsupported macro: GST_RIFF_cyuv GST_MAKE_FOURCC ('c', 'y', 'u', 'v')
-- unsupported macro: GST_RIFF_CYUV GST_MAKE_FOURCC ('C', 'Y', 'U', 'V')
-- unsupported macro: GST_RIFF_jpeg GST_MAKE_FOURCC (0x04,0x00,0xFF,0xFF)
-- unsupported macro: GST_RIFF_JPEG GST_MAKE_FOURCC ('J', 'P', 'E', 'G')
-- unsupported macro: GST_RIFF_MJPG GST_MAKE_FOURCC ('M', 'J', 'P', 'G')
-- unsupported macro: GST_RIFF_mJPG GST_MAKE_FOURCC ('m', 'J', 'P', 'G')
-- unsupported macro: GST_RIFF_IJPG GST_MAKE_FOURCC ('I', 'J', 'P', 'G')
-- unsupported macro: GST_RIFF_rt21 GST_MAKE_FOURCC ('r', 't', '2', '1')
-- unsupported macro: GST_RIFF_RT21 GST_MAKE_FOURCC ('R', 'T', '2', '1')
-- unsupported macro: GST_RIFF_iv31 GST_MAKE_FOURCC ('i', 'v', '3', '1')
-- unsupported macro: GST_RIFF_IV31 GST_MAKE_FOURCC ('I', 'V', '3', '1')
-- unsupported macro: GST_RIFF_iv32 GST_MAKE_FOURCC ('i', 'v', '3', '2')
-- unsupported macro: GST_RIFF_IV32 GST_MAKE_FOURCC ('I', 'V', '3', '2')
-- unsupported macro: GST_RIFF_iv41 GST_MAKE_FOURCC ('i', 'v', '4', '1')
-- unsupported macro: GST_RIFF_IV41 GST_MAKE_FOURCC ('I', 'V', '4', '1')
-- unsupported macro: GST_RIFF_iv50 GST_MAKE_FOURCC ('i', 'v', '5', '0')
-- unsupported macro: GST_RIFF_IV50 GST_MAKE_FOURCC ('I', 'V', '5', '0')
-- unsupported macro: GST_RIFF_cvid GST_MAKE_FOURCC ('c', 'v', 'i', 'd')
-- unsupported macro: GST_RIFF_CVID GST_MAKE_FOURCC ('C', 'V', 'I', 'D')
-- unsupported macro: GST_RIFF_ULTI GST_MAKE_FOURCC ('U', 'L', 'T', 'I')
-- unsupported macro: GST_RIFF_ulti GST_MAKE_FOURCC ('u', 'l', 't', 'i')
-- unsupported macro: GST_RIFF_YUV9 GST_MAKE_FOURCC ('Y', 'V', 'U', '9')
-- unsupported macro: GST_RIFF_YVU9 GST_MAKE_FOURCC ('Y', 'U', 'V', '9')
-- unsupported macro: GST_RIFF_XMPG GST_MAKE_FOURCC ('X', 'M', 'P', 'G')
-- unsupported macro: GST_RIFF_xmpg GST_MAKE_FOURCC ('x', 'm', 'p', 'g')
-- unsupported macro: GST_RIFF_VDOW GST_MAKE_FOURCC ('V', 'D', 'O', 'W')
-- unsupported macro: GST_RIFF_MVI1 GST_MAKE_FOURCC ('M', 'V', 'I', '1')
-- unsupported macro: GST_RIFF_v422 GST_MAKE_FOURCC ('v', '4', '2', '2')
-- unsupported macro: GST_RIFF_V422 GST_MAKE_FOURCC ('V', '4', '2', '2')
-- unsupported macro: GST_RIFF_mvi1 GST_MAKE_FOURCC ('m', 'v', 'i', '1')
-- unsupported macro: GST_RIFF_MPIX GST_MAKE_FOURCC (0x04,0x00, 'i', '1')
-- unsupported macro: GST_RIFF_AURA GST_MAKE_FOURCC ('A', 'U', 'R', 'A')
-- unsupported macro: GST_RIFF_DMB1 GST_MAKE_FOURCC ('D', 'M', 'B', '1')
-- unsupported macro: GST_RIFF_dmb1 GST_MAKE_FOURCC ('d', 'm', 'b', '1')
-- unsupported macro: GST_RIFF_BW10 GST_MAKE_FOURCC ('B', 'W', '1', '0')
-- unsupported macro: GST_RIFF_bw10 GST_MAKE_FOURCC ('b', 'w', '1', '0')
-- unsupported macro: GST_RIFF_yuy2 GST_MAKE_FOURCC ('y', 'u', 'y', '2')
-- unsupported macro: GST_RIFF_YUY2 GST_MAKE_FOURCC ('Y', 'U', 'Y', '2')
-- unsupported macro: GST_RIFF_YUV8 GST_MAKE_FOURCC ('Y', 'U', 'V', '8')
-- unsupported macro: GST_RIFF_WINX GST_MAKE_FOURCC ('W', 'I', 'N', 'X')
-- unsupported macro: GST_RIFF_WPY2 GST_MAKE_FOURCC ('W', 'P', 'Y', '2')
-- unsupported macro: GST_RIFF_m263 GST_MAKE_FOURCC ('m', '2', '6', '3')
-- unsupported macro: GST_RIFF_M263 GST_MAKE_FOURCC ('M', '2', '6', '3')
-- unsupported macro: GST_RIFF_H263 GST_MAKE_FOURCC ('H', '2', '6', '3')
-- unsupported macro: GST_RIFF_h263 GST_MAKE_FOURCC ('h', '2', '6', '3')
-- unsupported macro: GST_RIFF_i263 GST_MAKE_FOURCC ('i', '2', '6', '3')
-- unsupported macro: GST_RIFF_L263 GST_MAKE_FOURCC ('L', '2', '6', '3')
-- unsupported macro: GST_RIFF_x263 GST_MAKE_FOURCC ('x', '2', '6', '3')
-- unsupported macro: GST_RIFF_VSSH GST_MAKE_FOURCC ( 'V', 'S', 'S', 'H')
-- unsupported macro: GST_RIFF_Q1_0 GST_MAKE_FOURCC ('Q', '1',0x2e, '0')
-- unsupported macro: GST_RIFF_SFMC GST_MAKE_FOURCC ('S', 'F', 'M', 'C')
-- unsupported macro: GST_RIFF_y41p GST_MAKE_FOURCC ('y', '4', '1', 'p')
-- unsupported macro: GST_RIFF_Y41P GST_MAKE_FOURCC ('Y', '4', '1', 'P')
-- unsupported macro: GST_RIFF_yv12 GST_MAKE_FOURCC ('y', 'v', '1', '2')
-- unsupported macro: GST_RIFF_YV12 GST_MAKE_FOURCC ('Y', 'V', '1', '2')
-- unsupported macro: GST_RIFF_vixl GST_MAKE_FOURCC ('v', 'i', 'x', 'l')
-- unsupported macro: GST_RIFF_VIXL GST_MAKE_FOURCC ('V', 'I', 'X', 'L')
-- unsupported macro: GST_RIFF_iyuv GST_MAKE_FOURCC ('i', 'y', 'u', 'v')
-- unsupported macro: GST_RIFF_IYUV GST_MAKE_FOURCC ('I', 'Y', 'U', 'V')
-- unsupported macro: GST_RIFF_i420 GST_MAKE_FOURCC ('i', '4', '2', '0')
-- unsupported macro: GST_RIFF_I420 GST_MAKE_FOURCC ('I', '4', '2', '0')
-- unsupported macro: GST_RIFF_vyuy GST_MAKE_FOURCC ('v', 'y', 'u', 'y')
-- unsupported macro: GST_RIFF_VYUY GST_MAKE_FOURCC ('V', 'Y', 'U', 'Y')
-- unsupported macro: GST_RIFF_DIV3 GST_MAKE_FOURCC ('D', 'I', 'V', '3')
-- unsupported macro: GST_RIFF_rpza GST_MAKE_FOURCC ('r', 'p', 'z', 'a')
-- unsupported macro: GST_RIFF_azpr GST_MAKE_FOURCC ('a', 'z', 'p', 'r')
-- unsupported macro: GST_RIFF_ISFT GST_MAKE_FOURCC ('I', 'S', 'F', 'T')
-- unsupported macro: GST_RIFF_IDIT GST_MAKE_FOURCC ('I', 'D', 'I', 'T')
-- unsupported macro: GST_RIFF_00AM GST_MAKE_FOURCC ('0', '0', 'A', 'M')
-- unsupported macro: GST_RIFF_DISP GST_MAKE_FOURCC ('D', 'I', 'S', 'P')
-- unsupported macro: GST_RIFF_ISBJ GST_MAKE_FOURCC ('I', 'S', 'B', 'J')
-- unsupported macro: GST_RIFF_rec GST_MAKE_FOURCC ('r', 'e', 'c', ' ')
GST_RIFF_STRH_DISABLED : constant := 16#000000001#; -- gst/riff/riff-ids.h:246
GST_RIFF_STRH_VIDEOPALCHANGES : constant := 16#000010000#; -- gst/riff/riff-ids.h:247
GST_RIFF_WAVE_FORMAT_UNKNOWN : constant := (16#0000#); -- gst/riff/riff-ids.h:284
GST_RIFF_WAVE_FORMAT_PCM : constant := (16#0001#); -- gst/riff/riff-ids.h:285
GST_RIFF_WAVE_FORMAT_ADPCM : constant := (16#0002#); -- gst/riff/riff-ids.h:286
GST_RIFF_WAVE_FORMAT_IEEE_FLOAT : constant := (16#0003#); -- gst/riff/riff-ids.h:287
GST_RIFF_WAVE_FORMAT_VSELP : constant := (16#0004#); -- gst/riff/riff-ids.h:288
GST_RIFF_WAVE_FORMAT_IBM_CVSD : constant := (16#0005#); -- gst/riff/riff-ids.h:289
GST_RIFF_WAVE_FORMAT_ALAW : constant := (16#0006#); -- gst/riff/riff-ids.h:290
GST_RIFF_WAVE_FORMAT_MULAW : constant := (16#0007#); -- gst/riff/riff-ids.h:291
GST_RIFF_WAVE_FORMAT_WMS : constant := (16#000a#); -- gst/riff/riff-ids.h:292
GST_RIFF_WAVE_FORMAT_OKI_ADPCM : constant := (16#0010#); -- gst/riff/riff-ids.h:293
GST_RIFF_WAVE_FORMAT_DVI_ADPCM : constant := (16#0011#); -- gst/riff/riff-ids.h:294
GST_RIFF_WAVE_FORMAT_MEDIASPACE_ADPCM : constant := (16#0012#); -- gst/riff/riff-ids.h:295
GST_RIFF_WAVE_FORMAT_SIERRA_ADPCM : constant := (16#0013#); -- gst/riff/riff-ids.h:296
GST_RIFF_WAVE_FORMAT_G723_ADPCM : constant := (16#0014#); -- gst/riff/riff-ids.h:297
GST_RIFF_WAVE_FORMAT_DIGISTD : constant := (16#0015#); -- gst/riff/riff-ids.h:298
GST_RIFF_WAVE_FORMAT_DIGIFIX : constant := (16#0016#); -- gst/riff/riff-ids.h:299
GST_RIFF_WAVE_FORMAT_DIALOGIC_OKI_ADPCM : constant := (16#0017#); -- gst/riff/riff-ids.h:300
GST_RIFF_WAVE_FORMAT_MEDIAVISION_ADPCM : constant := (16#0018#); -- gst/riff/riff-ids.h:301
GST_RIFF_WAVE_FORMAT_CU_CODEC : constant := (16#0019#); -- gst/riff/riff-ids.h:302
GST_RIFF_WAVE_FORMAT_YAMAHA_ADPCM : constant := (16#0020#); -- gst/riff/riff-ids.h:303
GST_RIFF_WAVE_FORMAT_SONARC : constant := (16#0021#); -- gst/riff/riff-ids.h:304
GST_RIFF_WAVE_FORMAT_DSP_TRUESPEECH : constant := (16#0022#); -- gst/riff/riff-ids.h:305
GST_RIFF_WAVE_FORMAT_ECHOSC1 : constant := (16#0023#); -- gst/riff/riff-ids.h:306
GST_RIFF_WAVE_FORMAT_AUDIOFILE_AF36 : constant := (16#0024#); -- gst/riff/riff-ids.h:307
GST_RIFF_WAVE_FORMAT_APTX : constant := (16#0025#); -- gst/riff/riff-ids.h:308
GST_RIFF_WAVE_FORMAT_AUDIOFILE_AF10 : constant := (16#0026#); -- gst/riff/riff-ids.h:309
GST_RIFF_WAVE_FORMAT_PROSODY_1612 : constant := (16#0027#); -- gst/riff/riff-ids.h:310
GST_RIFF_WAVE_FORMAT_LRC : constant := (16#0028#); -- gst/riff/riff-ids.h:311
GST_RIFF_WAVE_FORMAT_DOLBY_AC2 : constant := (16#0030#); -- gst/riff/riff-ids.h:312
GST_RIFF_WAVE_FORMAT_GSM610 : constant := (16#0031#); -- gst/riff/riff-ids.h:313
GST_RIFF_WAVE_FORMAT_MSN : constant := (16#0032#); -- gst/riff/riff-ids.h:314
GST_RIFF_WAVE_FORMAT_ANTEX_ADPCME : constant := (16#0033#); -- gst/riff/riff-ids.h:315
GST_RIFF_WAVE_FORMAT_CONTROL_RES_VQLPC : constant := (16#0034#); -- gst/riff/riff-ids.h:316
GST_RIFF_WAVE_FORMAT_DIGIREAL : constant := (16#0035#); -- gst/riff/riff-ids.h:317
GST_RIFF_WAVE_FORMAT_DIGIADPCM : constant := (16#0036#); -- gst/riff/riff-ids.h:318
GST_RIFF_WAVE_FORMAT_CONTROL_RES_CR10 : constant := (16#0037#); -- gst/riff/riff-ids.h:319
GST_RIFF_WAVE_FORMAT_NMS_VBXADPCM : constant := (16#0038#); -- gst/riff/riff-ids.h:320
GST_RIFF_WAVE_FORMAT_CS_IMAADPCM : constant := (16#0039#); -- gst/riff/riff-ids.h:321
GST_RIFF_WAVE_FORMAT_ECHOSC3 : constant := (16#003A#); -- gst/riff/riff-ids.h:322
GST_RIFF_WAVE_FORMAT_ROCKWELL_ADPCM : constant := (16#003B#); -- gst/riff/riff-ids.h:323
GST_RIFF_WAVE_FORMAT_ROCKWELL_DIGITALK : constant := (16#003C#); -- gst/riff/riff-ids.h:324
GST_RIFF_WAVE_FORMAT_XEBEC : constant := (16#003D#); -- gst/riff/riff-ids.h:325
GST_RIFF_WAVE_FORMAT_ITU_G721_ADPCM : constant := (16#0040#); -- gst/riff/riff-ids.h:326
GST_RIFF_WAVE_FORMAT_G728_CELP : constant := (16#0041#); -- gst/riff/riff-ids.h:327
GST_RIFF_WAVE_FORMAT_MSG723 : constant := (16#0042#); -- gst/riff/riff-ids.h:328
GST_RIFF_WAVE_FORMAT_MPEGL12 : constant := (16#0050#); -- gst/riff/riff-ids.h:329
GST_RIFF_WAVE_FORMAT_RT24 : constant := (16#0052#); -- gst/riff/riff-ids.h:330
GST_RIFF_WAVE_FORMAT_PAC : constant := (16#0053#); -- gst/riff/riff-ids.h:331
GST_RIFF_WAVE_FORMAT_MPEGL3 : constant := (16#0055#); -- gst/riff/riff-ids.h:332
GST_RIFF_WAVE_FORMAT_AMR_NB : constant := (16#0057#); -- gst/riff/riff-ids.h:333
GST_RIFF_WAVE_FORMAT_AMR_WB : constant := (16#0058#); -- gst/riff/riff-ids.h:334
GST_RIFF_WAVE_FORMAT_LUCENT_G723 : constant := (16#0059#); -- gst/riff/riff-ids.h:335
GST_RIFF_WAVE_FORMAT_CIRRUS : constant := (16#0060#); -- gst/riff/riff-ids.h:336
GST_RIFF_WAVE_FORMAT_ADPCM_IMA_DK4 : constant := (16#0061#); -- gst/riff/riff-ids.h:337
GST_RIFF_WAVE_FORMAT_ADPCM_IMA_DK3 : constant := (16#0062#); -- gst/riff/riff-ids.h:338
GST_RIFF_WAVE_FORMAT_CANOPUS_ATRAC : constant := (16#0063#); -- gst/riff/riff-ids.h:344
GST_RIFF_WAVE_FORMAT_G726_ADPCM : constant := (16#0064#); -- gst/riff/riff-ids.h:345
GST_RIFF_WAVE_FORMAT_G722_ADPCM : constant := (16#0065#); -- gst/riff/riff-ids.h:346
GST_RIFF_WAVE_FORMAT_DSAT_DISPLAY : constant := (16#0067#); -- gst/riff/riff-ids.h:347
GST_RIFF_WAVE_FORMAT_ADPCM_IMA_WAV : constant := (16#0069#); -- gst/riff/riff-ids.h:348
GST_RIFF_WAVE_FORMAT_VOXWARE_AC8 : constant := (16#0070#); -- gst/riff/riff-ids.h:353
GST_RIFF_WAVE_FORMAT_VOXWARE_AC10 : constant := (16#0071#); -- gst/riff/riff-ids.h:354
GST_RIFF_WAVE_FORMAT_VOXWARE_AC16 : constant := (16#0072#); -- gst/riff/riff-ids.h:355
GST_RIFF_WAVE_FORMAT_VOXWARE_AC20 : constant := (16#0073#); -- gst/riff/riff-ids.h:356
GST_RIFF_WAVE_FORMAT_VOXWARE_METAVOICE : constant := (16#0074#); -- gst/riff/riff-ids.h:357
GST_RIFF_WAVE_FORMAT_VOXWARE_METASOUND : constant := (16#0075#); -- gst/riff/riff-ids.h:358
GST_RIFF_WAVE_FORMAT_VOXWARE_RT29HW : constant := (16#0076#); -- gst/riff/riff-ids.h:359
GST_RIFF_WAVE_FORMAT_VOXWARE_VR12 : constant := (16#0077#); -- gst/riff/riff-ids.h:360
GST_RIFF_WAVE_FORMAT_VOXWARE_VR18 : constant := (16#0078#); -- gst/riff/riff-ids.h:361
GST_RIFF_WAVE_FORMAT_VOXWARE_TQ40 : constant := (16#0079#); -- gst/riff/riff-ids.h:362
GST_RIFF_WAVE_FORMAT_SOFTSOUND : constant := (16#0080#); -- gst/riff/riff-ids.h:363
GST_RIFF_WAVE_FORMAT_VOXWARE_TQ60 : constant := (16#0081#); -- gst/riff/riff-ids.h:364
GST_RIFF_WAVE_FORMAT_MSRT24 : constant := (16#0082#); -- gst/riff/riff-ids.h:365
GST_RIFF_WAVE_FORMAT_G729A : constant := (16#0083#); -- gst/riff/riff-ids.h:366
GST_RIFF_WAVE_FORMAT_MVI_MVI2 : constant := (16#0084#); -- gst/riff/riff-ids.h:367
GST_RIFF_WAVE_FORMAT_DF_G726 : constant := (16#0085#); -- gst/riff/riff-ids.h:368
GST_RIFF_WAVE_FORMAT_DF_GSM610 : constant := (16#0086#); -- gst/riff/riff-ids.h:369
GST_RIFF_WAVE_FORMAT_ISIAUDIO : constant := (16#0088#); -- gst/riff/riff-ids.h:370
GST_RIFF_WAVE_FORMAT_ONLIVE : constant := (16#0089#); -- gst/riff/riff-ids.h:371
GST_RIFF_WAVE_FORMAT_SBC24 : constant := (16#0091#); -- gst/riff/riff-ids.h:372
GST_RIFF_WAVE_FORMAT_DOLBY_AC3_SPDIF : constant := (16#0092#); -- gst/riff/riff-ids.h:373
GST_RIFF_WAVE_FORMAT_MEDIASONIC_G723 : constant := (16#0093#); -- gst/riff/riff-ids.h:374
GST_RIFF_WAVE_FORMAT_PROSODY_8KBPS : constant := (16#0094#); -- gst/riff/riff-ids.h:375
GST_RIFF_WAVE_FORMAT_ZYXEL_ADPCM : constant := (16#0097#); -- gst/riff/riff-ids.h:376
GST_RIFF_WAVE_FORMAT_PHILIPS_LPCBB : constant := (16#0098#); -- gst/riff/riff-ids.h:377
GST_RIFF_WAVE_FORMAT_PACKED : constant := (16#0099#); -- gst/riff/riff-ids.h:378
GST_RIFF_WAVE_FORMAT_MALDEN_PHONYTALK : constant := (16#00A0#); -- gst/riff/riff-ids.h:379
GST_RIFF_WAVE_FORMAT_AAC : constant := (16#00ff#); -- gst/riff/riff-ids.h:380
GST_RIFF_WAVE_FORMAT_RHETOREX_ADPCM : constant := (16#0100#); -- gst/riff/riff-ids.h:381
GST_RIFF_IBM_FORMAT_MULAW : constant := (16#0101#); -- gst/riff/riff-ids.h:382
GST_RIFF_IBM_FORMAT_ALAW : constant := (16#0102#); -- gst/riff/riff-ids.h:383
GST_RIFF_IBM_FORMAT_ADPCM : constant := (16#0103#); -- gst/riff/riff-ids.h:384
GST_RIFF_WAVE_FORMAT_VIVO_G723 : constant := (16#0111#); -- gst/riff/riff-ids.h:385
GST_RIFF_WAVE_FORMAT_VIVO_SIREN : constant := (16#0112#); -- gst/riff/riff-ids.h:386
GST_RIFF_WAVE_FORMAT_DIGITAL_G723 : constant := (16#0123#); -- gst/riff/riff-ids.h:387
GST_RIFF_WAVE_FORMAT_SANYO_LD_ADPCM : constant := (16#0125#); -- gst/riff/riff-ids.h:388
GST_RIFF_WAVE_FORMAT_SIPROLAB_ACEPLNET : constant := (16#0130#); -- gst/riff/riff-ids.h:389
GST_RIFF_WAVE_FORMAT_SIPROLAB_ACELP4800 : constant := (16#0131#); -- gst/riff/riff-ids.h:390
GST_RIFF_WAVE_FORMAT_SIPROLAB_ACELP8V3 : constant := (16#0132#); -- gst/riff/riff-ids.h:391
GST_RIFF_WAVE_FORMAT_SIPROLAB_G729 : constant := (16#0133#); -- gst/riff/riff-ids.h:392
GST_RIFF_WAVE_FORMAT_SIPROLAB_G729A : constant := (16#0134#); -- gst/riff/riff-ids.h:393
GST_RIFF_WAVE_FORMAT_SIPROLAB_KELVIN : constant := (16#0135#); -- gst/riff/riff-ids.h:394
GST_RIFF_WAVE_FORMAT_G726ADPCM : constant := (16#0140#); -- gst/riff/riff-ids.h:395
GST_RIFF_WAVE_FORMAT_QUALCOMM_PUREVOICE : constant := (16#0150#); -- gst/riff/riff-ids.h:396
GST_RIFF_WAVE_FORMAT_QUALCOMM_HALFRATE : constant := (16#0151#); -- gst/riff/riff-ids.h:397
GST_RIFF_WAVE_FORMAT_TUBGSM : constant := (16#0155#); -- gst/riff/riff-ids.h:398
GST_RIFF_WAVE_FORMAT_WMAV1 : constant := (16#0160#); -- gst/riff/riff-ids.h:399
GST_RIFF_WAVE_FORMAT_WMAV2 : constant := (16#0161#); -- gst/riff/riff-ids.h:400
GST_RIFF_WAVE_FORMAT_WMAV3 : constant := (16#0162#); -- gst/riff/riff-ids.h:401
GST_RIFF_WAVE_FORMAT_WMAV3_L : constant := (16#0163#); -- gst/riff/riff-ids.h:402
GST_RIFF_WAVE_FORMAT_CREATIVE_ADPCM : constant := (16#0200#); -- gst/riff/riff-ids.h:403
GST_RIFF_WAVE_FORMAT_CREATIVE_FASTSPEECH8 : constant := (16#0202#); -- gst/riff/riff-ids.h:404
GST_RIFF_WAVE_FORMAT_CREATIVE_FASTSPEECH10 : constant := (16#0203#); -- gst/riff/riff-ids.h:405
GST_RIFF_WAVE_FORMAT_UHER_ADPCM : constant := (16#0210#); -- gst/riff/riff-ids.h:406
GST_RIFF_WAVE_FORMAT_QUARTERDECK : constant := (16#0220#); -- gst/riff/riff-ids.h:407
GST_RIFF_WAVE_FORMAT_ILINK_VC : constant := (16#0230#); -- gst/riff/riff-ids.h:408
GST_RIFF_WAVE_FORMAT_RAW_SPORT : constant := (16#0240#); -- gst/riff/riff-ids.h:409
GST_RIFF_WAVE_FORMAT_IPI_HSX : constant := (16#0250#); -- gst/riff/riff-ids.h:410
GST_RIFF_WAVE_FORMAT_IPI_RPELP : constant := (16#0251#); -- gst/riff/riff-ids.h:411
GST_RIFF_WAVE_FORMAT_CS2 : constant := (16#0260#); -- gst/riff/riff-ids.h:412
GST_RIFF_WAVE_FORMAT_SONY_ATRAC3 : constant := (16#0270#); -- gst/riff/riff-ids.h:413
GST_RIFF_WAVE_FORMAT_SIREN : constant := (16#028E#); -- gst/riff/riff-ids.h:414
GST_RIFF_WAVE_FORMAT_FM_TOWNS_SND : constant := (16#0300#); -- gst/riff/riff-ids.h:415
GST_RIFF_WAVE_FORMAT_BTV_DIGITAL : constant := (16#0400#); -- gst/riff/riff-ids.h:416
GST_RIFF_WAVE_FORMAT_IMC : constant := (16#0401#); -- gst/riff/riff-ids.h:417
GST_RIFF_WAVE_FORMAT_QDESIGN_MUSIC : constant := (16#0450#); -- gst/riff/riff-ids.h:418
GST_RIFF_WAVE_FORMAT_VME_VMPCM : constant := (16#0680#); -- gst/riff/riff-ids.h:419
GST_RIFF_WAVE_FORMAT_TPC : constant := (16#0681#); -- gst/riff/riff-ids.h:420
GST_RIFF_WAVE_FORMAT_OLIGSM : constant := (16#1000#); -- gst/riff/riff-ids.h:421
GST_RIFF_WAVE_FORMAT_OLIADPCM : constant := (16#1001#); -- gst/riff/riff-ids.h:422
GST_RIFF_WAVE_FORMAT_OLICELP : constant := (16#1002#); -- gst/riff/riff-ids.h:423
GST_RIFF_WAVE_FORMAT_OLISBC : constant := (16#1003#); -- gst/riff/riff-ids.h:424
GST_RIFF_WAVE_FORMAT_OLIOPR : constant := (16#1004#); -- gst/riff/riff-ids.h:425
GST_RIFF_WAVE_FORMAT_LH_CODEC : constant := (16#1100#); -- gst/riff/riff-ids.h:426
GST_RIFF_WAVE_FORMAT_NORRIS : constant := (16#1400#); -- gst/riff/riff-ids.h:427
GST_RIFF_WAVE_FORMAT_SOUNDSPACE_MUSICOMPRESS : constant := (16#1500#); -- gst/riff/riff-ids.h:428
GST_RIFF_WAVE_FORMAT_A52 : constant := (16#2000#); -- gst/riff/riff-ids.h:429
GST_RIFF_WAVE_FORMAT_DTS : constant := (16#2001#); -- gst/riff/riff-ids.h:430
GST_RIFF_WAVE_FORMAT_SONIC : constant := (16#2048#); -- gst/riff/riff-ids.h:431
GST_RIFF_WAVE_FORMAT_SONIC_LS : constant := (16#2048#); -- gst/riff/riff-ids.h:432
GST_RIFF_WAVE_FORMAT_AAC_AC : constant := (16#4143#); -- gst/riff/riff-ids.h:433
GST_RIFF_WAVE_FORMAT_VORBIS1 : constant := (16#674f#); -- gst/riff/riff-ids.h:434
GST_RIFF_WAVE_FORMAT_VORBIS2 : constant := (16#6750#); -- gst/riff/riff-ids.h:435
GST_RIFF_WAVE_FORMAT_VORBIS3 : constant := (16#6751#); -- gst/riff/riff-ids.h:436
GST_RIFF_WAVE_FORMAT_VORBIS1PLUS : constant := (16#676f#); -- gst/riff/riff-ids.h:437
GST_RIFF_WAVE_FORMAT_VORBIS2PLUS : constant := (16#6770#); -- gst/riff/riff-ids.h:438
GST_RIFF_WAVE_FORMAT_VORBIS3PLUS : constant := (16#6771#); -- gst/riff/riff-ids.h:439
GST_RIFF_WAVE_FORMAT_AAC_pm : constant := (16#706d#); -- gst/riff/riff-ids.h:440
GST_RIFF_WAVE_FORMAT_GSM_AMR_CBR : constant := (16#7A21#); -- gst/riff/riff-ids.h:441
GST_RIFF_WAVE_FORMAT_GSM_AMR_VBR : constant := (16#7A22#); -- gst/riff/riff-ids.h:442
GST_RIFF_WAVE_FORMAT_FLAC : constant := (16#F1AC#); -- gst/riff/riff-ids.h:443
GST_RIFF_WAVE_FORMAT_EXTENSIBLE : constant := (16#FFFE#); -- gst/riff/riff-ids.h:444
GST_RIFF_IF_LIST : constant := (16#00000001#); -- gst/riff/riff-ids.h:470
GST_RIFF_IF_KEYFRAME : constant := (16#00000010#); -- gst/riff/riff-ids.h:471
GST_RIFF_IF_NO_TIME : constant := (16#00000100#); -- gst/riff/riff-ids.h:472
GST_RIFF_IF_COMPUSE : constant := (16#0FFF0000#); -- gst/riff/riff-ids.h:473
-- GStreamer RIFF I/O
-- * Copyright (C) 2003 <NAME> <<EMAIL>>
-- *
-- * riff-ids.h: RIFF IDs and structs
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-- * Boston, MA 02111-1307, USA.
--
-- RIFF types
-- tags
-- WAV stuff
-- LIST types
-- fcc types
-- fcc handlers
-- INFO types - see http://www.saettler.com/RIFFMCI/riffmci.html
--********Chunk Names**************
--********VIDEO CODECS*************
-- And this here's the mistakes that need to be supported
--********** FND in MJPG *********
-- common data structures
-- stream type
type gst_riff_strh is record
c_type : aliased GLIB.guint32; -- gst/riff/riff-ids.h:242
fcc_handler : aliased GLIB.guint32; -- gst/riff/riff-ids.h:243
flags : aliased GLIB.guint32; -- gst/riff/riff-ids.h:244
priority : aliased GLIB.guint32; -- gst/riff/riff-ids.h:248
init_frames : aliased GLIB.guint32; -- gst/riff/riff-ids.h:249
scale : aliased GLIB.guint32; -- gst/riff/riff-ids.h:250
rate : aliased GLIB.guint32; -- gst/riff/riff-ids.h:251
start : aliased GLIB.guint32; -- gst/riff/riff-ids.h:252
length : aliased GLIB.guint32; -- gst/riff/riff-ids.h:253
bufsize : aliased GLIB.guint32; -- gst/riff/riff-ids.h:254
quality : aliased GLIB.guint32; -- gst/riff/riff-ids.h:255
samplesize : aliased GLIB.guint32; -- gst/riff/riff-ids.h:256
end record;
pragma Convention (C_Pass_By_Copy, gst_riff_strh); -- gst/riff/riff-ids.h:241
-- fcc_handler
-- flags values
-- initial frames (???)
-- suggested buffer size
-- rcFrame, RECT structure(struct of 4 shorts)
-- gint32 left;
-- gint32 top;
-- gint32 right;
-- gint32 bottom;
--
--subtype gst_riff_strh is u_gst_riff_strh; -- gst/riff/riff-ids.h:263
-- == BitMapInfoHeader
type gst_riff_strf_vids is record
size : aliased GLIB.guint32; -- gst/riff/riff-ids.h:266
width : aliased GLIB.guint32; -- gst/riff/riff-ids.h:267
height : aliased GLIB.guint32; -- gst/riff/riff-ids.h:268
planes : aliased GLIB.guint16; -- gst/riff/riff-ids.h:269
bit_cnt : aliased GLIB.guint16; -- gst/riff/riff-ids.h:270
compression : aliased GLIB.guint32; -- gst/riff/riff-ids.h:271
image_size : aliased GLIB.guint32; -- gst/riff/riff-ids.h:272
xpels_meter : aliased GLIB.guint32; -- gst/riff/riff-ids.h:273
ypels_meter : aliased GLIB.guint32; -- gst/riff/riff-ids.h:274
num_colors : aliased GLIB.guint32; -- gst/riff/riff-ids.h:275
imp_colors : aliased GLIB.guint32; -- gst/riff/riff-ids.h:276
end record;
pragma Convention (C_Pass_By_Copy, gst_riff_strf_vids); -- gst/riff/riff-ids.h:265
-- used colors
-- important colors
-- may be more for some codecs
--subtype gst_riff_strf_vids is u_gst_riff_strf_vids; -- gst/riff/riff-ids.h:278
-- == WaveHeader (?)
type gst_riff_strf_auds is record
format : aliased GLIB.guint16; -- gst/riff/riff-ids.h:282
channels : aliased GLIB.guint16; -- gst/riff/riff-ids.h:445
rate : aliased GLIB.guint32; -- gst/riff/riff-ids.h:446
av_bps : aliased GLIB.guint32; -- gst/riff/riff-ids.h:447
blockalign : aliased GLIB.guint16; -- gst/riff/riff-ids.h:448
size : aliased GLIB.guint16; -- gst/riff/riff-ids.h:453
end record;
pragma Convention (C_Pass_By_Copy, gst_riff_strf_auds); -- gst/riff/riff-ids.h:281
--*** from public Microsoft RIFF docs *****
-- FIXME: where are these from? are they used at all?
-- FIXME: where are these from? are they used at all?
-- missing field:
--subtype gst_riff_strf_auds is u_gst_riff_strf_auds; -- gst/riff/riff-ids.h:454
type gst_riff_strf_iavs is record
DVAAuxSrc : aliased GLIB.guint32; -- gst/riff/riff-ids.h:457
DVAAuxCtl : aliased GLIB.guint32; -- gst/riff/riff-ids.h:458
DVAAuxSrc1 : aliased GLIB.guint32; -- gst/riff/riff-ids.h:459
DVAAuxCtl1 : aliased GLIB.guint32; -- gst/riff/riff-ids.h:460
DVVAuxSrc : aliased GLIB.guint32; -- gst/riff/riff-ids.h:461
DVVAuxCtl : aliased GLIB.guint32; -- gst/riff/riff-ids.h:462
DVReserved1 : aliased GLIB.guint32; -- gst/riff/riff-ids.h:463
DVReserved2 : aliased GLIB.guint32; -- gst/riff/riff-ids.h:464
end record;
pragma Convention (C_Pass_By_Copy, gst_riff_strf_iavs); -- gst/riff/riff-ids.h:456
--subtype gst_riff_strf_iavs is u_gst_riff_strf_iavs; -- gst/riff/riff-ids.h:465
type gst_riff_index_entry is record
id : aliased GLIB.guint32; -- gst/riff/riff-ids.h:468
flags : aliased GLIB.guint32; -- gst/riff/riff-ids.h:469
offset : aliased GLIB.guint32; -- gst/riff/riff-ids.h:474
size : aliased GLIB.guint32; -- gst/riff/riff-ids.h:475
end record;
pragma Convention (C_Pass_By_Copy, gst_riff_index_entry); -- gst/riff/riff-ids.h:467
--subtype gst_riff_index_entry is u_gst_riff_index_entry; -- gst/riff/riff-ids.h:476
type gst_riff_dmlh is record
totalframes : aliased GLIB.guint32; -- gst/riff/riff-ids.h:479
end record;
pragma Convention (C_Pass_By_Copy, gst_riff_dmlh); -- gst/riff/riff-ids.h:478
--subtype gst_riff_dmlh is u_gst_riff_dmlh; -- gst/riff/riff-ids.h:480
-- taken from libsndfile/wav.c (LGPL)
-- 4 bytes (int) type of file:
-- * this appears to be a bit mask,however some combinations
-- * are probably impossible and/or qualified as "errors"
-- *
-- * 0x01 On: One Shot Off: Loop
-- * 0x02 On: Root note is Set Off: No root
-- * 0x04 On: Stretch is On, Off: Strech is OFF
-- * 0x08 On: Disk Based Off: Ram based
-- * 0x10 On: ?????????? Off: ????????? (Acidizer puts that ON)
--
type gst_riff_acid is record
loop_type : aliased GLIB.guint32; -- gst/riff/riff-ids.h:494
root_note : aliased GLIB.guint16; -- gst/riff/riff-ids.h:500
unknown1 : aliased GLIB.guint16; -- gst/riff/riff-ids.h:504
unknown2 : aliased GLIB.gfloat; -- gst/riff/riff-ids.h:505
number_of_beats : aliased GLIB.guint32; -- gst/riff/riff-ids.h:512
meter_d : aliased GLIB.guint16; -- gst/riff/riff-ids.h:513
meter_n : aliased GLIB.guint16; -- gst/riff/riff-ids.h:513
tempo : aliased GLIB.gfloat; -- gst/riff/riff-ids.h:514
end record;
pragma Convention (C_Pass_By_Copy, gst_riff_acid); -- gst/riff/riff-ids.h:483
-- 2 bytes (short) root note
-- * if type 0x10 is OFF : [C,C#,(...),B] -> [0x30 to 0x3B]
-- * if type 0x10 is ON : [C,C#,(...),B] -> [0x3C to 0x47]
-- * (both types fit on same MIDI pitch albeit different octaves, so who cares)
--
-- 2 bytes (short) ??? always set to 0x8000
-- * 4 bytes (float) ??? seems to be always 0
--
-- GStreamer RIFF I/O
-- * Copyright (C) 2003 <NAME> <<EMAIL>>
-- *
-- * riff-ids.h: RIFF IDs and structs
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-- * Boston, MA 02111-1307, USA.
--
-- GStreamer RIFF I/O
-- * Copyright (C) 2003 R<NAME> <<EMAIL>>
-- *
-- * riff-ids.h: RIFF IDs and structs
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-- * Boston, MA 02111-1307, USA.
--
-- RIFF types
-- 4 bytes (int) number of beats
-- * 2 bytes (short) meter denominator //always 4 in SF/ACID
-- * 2 bytes (short) meter numerator //always 4 in SF/ACID
-- * //are we sure about the order?? usually its num/denom
-- * 4 bytes (float) tempo
--
--subtype gst_riff_acid is u_gst_riff_acid; -- gst/riff/riff-ids.h:515
end GStreamer.GST_Low_Level.gstreamer_0_10_gst_riff_riff_ids_h;
|
src/util/oli/ri/lintfp.asm | olifink/qspread | 0 | 86310 | ;lint to fp 05/01-92 O.Fink
section utility
include win1_mac_oli
include win1_keys_qlv
xdef ut_lintfp ; long int to fp
;+++
; long integer to fp
;
; Entry Exit
; a1,a6 arithmetic stack pointer
;---
ut_lintfp subr d1/d4
move.l (a1,a6.l),d1
subq.w #2,a1
move.l d1,d4
clr.w 0(a6,a1.l)
tst.l d4
beq.s fp_null
move.w #$820,d2
fp_lp subq.w #1,d2
asl.l #1,d4
bvc.s fp_lp
roxr.l #1,d4
move.w d2,0(a6,a1.l)
fp_null move.l d4,2(a6,a1.l)
moveq #0,d0
subend
end
|
Transynther/x86/_processed/US/_st_zr_/i3-7100_9_0x84_notsx.log_22_50.asm | ljhsiun2/medusa | 9 | 88572 | .global s_prepare_buffers
s_prepare_buffers:
push %r12
push %r8
push %r9
push %rbx
push %rcx
push %rdi
push %rdx
push %rsi
lea addresses_normal_ht+0xa2aa, %rcx
nop
add $38086, %r8
movl $0x61626364, (%rcx)
nop
nop
nop
nop
nop
xor $10633, %r9
lea addresses_normal_ht+0x10b22, %rdi
clflush (%rdi)
nop
nop
nop
nop
xor $51575, %rbx
mov $0x6162636465666768, %rdx
movq %rdx, (%rdi)
nop
nop
add %r8, %r8
lea addresses_UC_ht+0x11722, %rbx
nop
and $51280, %rcx
mov $0x6162636465666768, %rdi
movq %rdi, %xmm5
and $0xffffffffffffffc0, %rbx
movntdq %xmm5, (%rbx)
nop
add %r8, %r8
lea addresses_WC_ht+0xcf80, %rsi
lea addresses_WC_ht+0xe5a2, %rdi
clflush (%rdi)
nop
nop
add $49157, %r8
mov $40, %rcx
rep movsw
nop
nop
nop
nop
nop
add $18785, %r12
pop %rsi
pop %rdx
pop %rdi
pop %rcx
pop %rbx
pop %r9
pop %r8
pop %r12
ret
.global s_faulty_load
s_faulty_load:
push %r12
push %r13
push %r15
push %r8
push %rax
push %rcx
push %rsi
// Store
mov $0x1845cf00000002a2, %rax
nop
nop
nop
nop
nop
xor $1433, %r8
mov $0x5152535455565758, %rcx
movq %rcx, %xmm0
movups %xmm0, (%rax)
nop
nop
add %r15, %r15
// Store
lea addresses_US+0x16802, %r15
nop
nop
nop
nop
xor %rax, %rax
movl $0x51525354, (%r15)
dec %rcx
// Store
lea addresses_UC+0xf322, %rsi
nop
nop
nop
sub $38276, %r12
mov $0x5152535455565758, %r15
movq %r15, (%rsi)
nop
nop
nop
nop
nop
sub %rcx, %rcx
// Store
lea addresses_WC+0x1a322, %rsi
nop
nop
nop
nop
nop
and $360, %r8
movw $0x5152, (%rsi)
nop
xor $54127, %r15
// Store
lea addresses_RW+0xc682, %r8
nop
nop
xor %rsi, %rsi
movb $0x51, (%r8)
nop
nop
nop
nop
nop
xor %r13, %r13
// Faulty Load
lea addresses_US+0x12f22, %r8
nop
inc %r12
vmovups (%r8), %ymm4
vextracti128 $1, %ymm4, %xmm4
vpextrq $1, %xmm4, %r13
lea oracles, %rax
and $0xff, %r13
shlq $12, %r13
mov (%rax,%r13,1), %r13
pop %rsi
pop %rcx
pop %rax
pop %r8
pop %r15
pop %r13
pop %r12
ret
/*
<gen_faulty_load>
[REF]
{'src': {'type': 'addresses_US', 'same': False, 'size': 1, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
{'dst': {'type': 'addresses_NC', 'same': False, 'size': 16, 'congruent': 7, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_US', 'same': False, 'size': 4, 'congruent': 5, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_UC', 'same': False, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_WC', 'same': False, 'size': 2, 'congruent': 8, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_RW', 'same': False, 'size': 1, 'congruent': 2, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
[Faulty Load]
{'src': {'type': 'addresses_US', 'same': True, 'size': 32, 'congruent': 0, 'NT': False, 'AVXalign': False}, 'OP': 'LOAD'}
<gen_prepare_buffer>
{'dst': {'type': 'addresses_normal_ht', 'same': False, 'size': 4, 'congruent': 3, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_normal_ht', 'same': True, 'size': 8, 'congruent': 10, 'NT': False, 'AVXalign': False}, 'OP': 'STOR'}
{'dst': {'type': 'addresses_UC_ht', 'same': False, 'size': 16, 'congruent': 11, 'NT': True, 'AVXalign': False}, 'OP': 'STOR'}
{'src': {'type': 'addresses_WC_ht', 'congruent': 1, 'same': False}, 'dst': {'type': 'addresses_WC_ht', 'congruent': 6, 'same': False}, 'OP': 'REPM'}
{'30': 10, '00': 12}
30 00 00 30 00 00 00 30 30 00 30 00 00 00 00 30 00 30 30 00 30 30
*/
|
demo/agda/FRP/JS/Demo/Hello.agda | agda/agda-frp-js | 63 | 9059 | <reponame>agda/agda-frp-js
open import FRP.JS.Behaviour using ( Beh ; [_] )
open import FRP.JS.DOM using ( DOM ; text )
open import FRP.JS.RSet using ( ⟦_⟧ )
module FRP.JS.Demo.Hello where
main : ∀ {w} → ⟦ Beh (DOM w) ⟧
main = text ["Hello, world."]
|
test/interaction/Issue4929.agda | andreas-roehler/agda | 0 | 10240 |
postulate
ANY : ∀{a}{A : Set a} → A
data Ty : Set where
_⇒_ : (a b : Ty) → Ty
data Tm : (b : Ty) → Set where
S : ∀{c a b} → Tm ((c ⇒ (a ⇒ b)) ⇒ ((c ⇒ a) ⇒ (c ⇒ b)))
_∙_ : ∀{a b} (t : Tm (a ⇒ b)) (u : Tm a) → Tm b
data _↦_ : ∀{a} (t t' : Tm a) → Set where
↦S : ∀{c a b} {t : Tm (c ⇒ (a ⇒ b))} {u : Tm (c ⇒ a)} {v : Tm c}
→ (((S ∙ t) ∙ u) ∙ v) ↦ ((t ∙ v) ∙ (u ∙ v))
↦r : ∀{a b} {u u' : Tm a} {t : Tm (a ⇒ b)}
→ (t ∙ u) ↦ (t ∙ u')
data SN {a} (t : Tm a) : Set where
acc : (h : ∀{t'} (r : t ↦ t') → SN t') → SN t
test : ∀{a b} {t : Tm (a ⇒ b)} {u : Tm a} → SN t → SN u → SN (t ∙ u)
test snt snu = acc λ{ (↦S) → ANY ; (↦r) → {!test snt ?!} }
-- Refine with (test snt)
-- or give (test snt ?)
-- An internal error has occurred. Please report this as a bug.
-- Location of the error: src/full/Agda/TypeChecking/Substitute.hs:456
|
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c87b17a.ada | best08618/asylo | 7 | 28664 | -- C87B17A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
-- this public release, the Government intends to confer upon all
-- recipients unlimited rights equal to those held by the Government.
-- These rights include rights to use, duplicate, release or disclose the
-- released technical data and computer software in whole or in part, in
-- any manner and for any purpose whatsoever, and to have or permit others
-- to do so.
--
-- DISCLAIMER
--
-- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
-- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
-- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
-- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
-- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
-- PARTICULAR PURPOSE OF SAID MATERIAL.
--*
-- CHECK THAT OVERLOADING RESOLUTION USES THE RULE THAT:
-- THE INITIALIZATION EXPRESSION FOR A DEFAULT DISCRIMINANT
-- IN A TYPE DECLARATION MUST MATCH THE DISCRIMINANT'S EXPLICIT
-- TYPEMARK.
--
-- THE THREE KINDS OF TYPE DECLARATIONS TESTED HERE ARE:
--
-- (A): RECORD TYPE.
-- (B): PRIVATE TYPE.
-- (C): INCOMPLETE RECORD TYPE.
-- TRH 18 JUNE 82
WITH REPORT; USE REPORT;
PROCEDURE C87B17A IS
TYPE WHOLE IS NEW INTEGER RANGE 0..INTEGER'LAST;
TYPE CITRUS IS (LEMON, LIME, ORANGE);
TYPE HUE IS (RED, ORANGE, YELLOW);
FUNCTION F1 (X, Y : INTEGER) RETURN INTEGER IS
BEGIN
RETURN -1;
END F1;
FUNCTION F1 (X, Y : WHOLE) RETURN WHOLE IS
BEGIN
RETURN 0;
END F1;
FUNCTION F1 (X, Y : INTEGER) RETURN HUE IS
BEGIN
RETURN ORANGE;
END F1;
FUNCTION F1 (X, Y : INTEGER) RETURN CITRUS IS
BEGIN
RETURN ORANGE;
END F1;
BEGIN
TEST ("C87B17A","OVERLOADED INITIALIZATION EXPRESSIONS" &
" IN DEFAULT DISCRIMINANTS");
DECLARE
FUNCTION "+" (X, Y : INTEGER) RETURN INTEGER
RENAMES F1;
FUNCTION "+" (X, Y : WHOLE) RETURN WHOLE
RENAMES F1;
FUNCTION "+" (X, Y : INTEGER) RETURN HUE
RENAMES F1;
FUNCTION "+" (X, Y : INTEGER) RETURN CITRUS
RENAMES F1;
TYPE REC1 (I1 : INTEGER := 0 + 0; H1 : HUE := F1 (0, 0) ) IS
RECORD
NULL;
END RECORD;
PACKAGE PVT IS
TYPE REC2 (H2 : HUE := ORANGE; W2 : WHOLE := 0 + 0 )
IS PRIVATE;
PRIVATE
TYPE REC2 (H2 : HUE := ORANGE; W2 : WHOLE := 0 + 0 ) IS
RECORD
NULL;
END RECORD;
END PVT;
USE PVT;
TYPE REC3 (C1 : CITRUS := ORANGE; W1 : WHOLE := "+" (0, 0));
TYPE LINK IS ACCESS REC3;
TYPE REC3 (C1 : CITRUS := ORANGE; W1 : WHOLE := "+" (0, 0)) IS
RECORD
NULL;
END RECORD;
R1 : REC1;
R2 : REC2;
R3 : REC3;
BEGIN
IF R1.I1 /= -1 OR HUE'POS (R1.H1) /= 1 THEN
FAILED ("(A): RESOLUTION INCORRECT FOR RECORD TYPES");
END IF;
IF HUE'POS (R2.H2) /= 1 OR R2.W2 /= 0 THEN
FAILED ("(B): RESOLUTION INCORRECT FOR PRIVATE TYPES");
END IF;
IF CITRUS'POS (R3.C1) /= 2 OR R3.W1 /= 0 THEN
FAILED ("(C): RESOLUTION INCORRECT FOR INCOMPLETE" &
" RECORD TYPES");
END IF;
END;
RESULT;
END C87B17A;
|
test/Succeed/Issue3063.agda | shlevy/agda | 1,989 | 2782 | <gh_stars>1000+
postulate
I : Set
U : I → Set
El : ∀ {i} → U i → Set
infixr 4 _,_
record Σ (A : Set) (B : A → Set) : Set where
constructor _,_
field
proj₁ : A
proj₂ : B proj₁
open Σ
∃ : ∀ {A : Set} → (A → Set) → Set
∃ = Σ _
mutual
infixl 5 _▻_
data Ctxt : Set where
_▻_ : (Γ : Ctxt) → Type Γ → Ctxt
Type : Ctxt → Set
Type Γ = ∃ λ i → Env Γ → U i
Env : Ctxt → Set
Env (Γ ▻ σ) = Σ (Env Γ) λ γ → El (proj₂ σ γ)
mutual
data Ctxt⁺ (Γ : Ctxt) : Set where
_▻_ : (Γ⁺ : Ctxt⁺ Γ) → Type (Γ ++ Γ⁺) → Ctxt⁺ Γ
infixl 5 _++_
_++_ : (Γ : Ctxt) → Ctxt⁺ Γ → Ctxt
Γ ++ (Γ⁺ ▻ σ) = (Γ ++ Γ⁺) ▻ σ
data P : (Γ : Ctxt) → Type Γ → Set where
c : ∀ {Γ σ τ} → P (Γ ▻ σ) τ
f : ∀ {Γ} → Ctxt⁺ Γ → Set₁
f {Γ} (Γ⁺ ▻ σ) = Set
where
g : ∀ τ → P (Γ ++ Γ⁺ ▻ σ) τ → Set₁
g _ c = Set
|
oeis/007/A007572.asm | neoneye/loda-programs | 11 | 247854 | ; A007572: Generalization of the golden ratio (expansion of (5-13x)/((1+x)(1-4x))).
; Submitted by <NAME>(s4)
; 5,2,26,86,362,1430,5738,22934,91754,366998,1468010,5872022,23488106,93952406,375809642,1503238550,6012954218,24051816854,96207267434,384829069718,1539316278890,6157265115542,24629060462186
mov $1,10
mov $3,1
lpb $0
sub $0,1
mov $2,$3
mul $2,4
mul $3,3
add $3,$1
mov $1,$2
lpe
mov $0,$1
div $0,2
|
programs/oeis/147/A147656.asm | karttu/loda | 1 | 2307 | ; A147656: The arithmetic mean of the n-th and (n+1)-st cubes, rounded down.
; 0,4,17,45,94,170,279,427,620,864,1165,1529,1962,2470,3059,3735,4504,5372,6345,7429,8630,9954,11407,12995,14724,16600,18629,20817,23170,25694,28395,31279,34352,37620,41089,44765,48654,52762,57095,61659,66460,71504,76797,82345,88154,94230,100579,107207,114120,121324,128825,136629,144742,153170,161919,170995,180404,190152,200245,210689,221490,232654,244187,256095,268384,281060,294129,307597,321470,335754,350455,365579,381132,397120,413549,430425,447754,465542,483795,502519,521720,541404,561577,582245,603414,625090,647279,669987,693220,716984,741285,766129,791522,817470,843979,871055,898704,926932,955745,985149,1015150,1045754,1076967,1108795,1141244,1174320,1208029,1242377,1277370,1313014,1349315,1386279,1423912,1462220,1501209,1540885,1581254,1622322,1664095,1706579,1749780,1793704,1838357,1883745,1929874,1976750,2024379,2072767,2121920,2171844,2222545,2274029,2326302,2379370,2433239,2487915,2543404,2599712,2656845,2714809,2773610,2833254,2893747,2955095,3017304,3080380,3144329,3209157,3274870,3341474,3408975,3477379,3546692,3616920,3688069,3760145,3833154,3907102,3981995,4057839,4134640,4212404,4291137,4370845,4451534,4533210,4615879,4699547,4784220,4869904,4956605,5044329,5133082,5222870,5313699,5405575,5498504,5592492,5687545,5783669,5880870,5979154,6078527,6178995,6280564,6383240,6487029,6591937,6697970,6805134,6913435,7022879,7133472,7245220,7358129,7472205,7587454,7703882,7821495,7940299,8060300,8181504,8303917,8427545,8552394,8678470,8805779,8934327,9064120,9195164,9327465,9461029,9595862,9731970,9869359,10008035,10148004,10289272,10431845,10575729,10720930,10867454,11015307,11164495,11315024,11466900,11620129,11774717,11930670,12087994,12246695,12406779,12568252,12731120,12895389,13061065,13228154,13396662,13566595,13737959,13910760,14085004,14260697,14437845,14616454,14796530,14978079,15161107,15345620,15531624
mul $0,2
add $0,1
mov $2,$0
add $2,$0
pow $0,2
add $0,3
mul $0,$2
mov $1,$0
div $1,16
|
HeartSMD/firmware/Assembler/akl-port.asm | datoffy/SolderingTutorial | 91 | 167163 | ; AntiKippenLights-Mini
;=======================
; ATTiny2313 @ 1 MHz (internal R/C)
; ported from AntiKippenLights and removed the random number generator
;
; original code by <NAME>
; -> https://wiki.blinkenarea.org/bin/view/Blinkenarea/AntiKippenLights
; (KippenLights special edition with PIC16C54, version 0.2, 2005-01-01)
;
; ported to AVR by <NAME>
; -> https://wiki.blinkenarea.org/bin/view/Blinkenarea/AntiKippenLights-Mini
;
; differences: removed random number generator, added on/off key
; This code is very chaotic because it's an 1:1 port from the PIC code and I
; didn't change many names or comments, so it's best if you just ignore them.
; Version 0.7, 2005-04-29
; Version 0.8, 2005-06-11
; * added on/off key function
; Version 0.9, 2009-11-13
; * added disable on/off-key function (bridge pins 9 (PD5) and 10 (GND))
; Version 0.9.1, 2014-12-06
; * improved on/off switch debouncing
; * improved default to off after reset
.include "../include/tn2313def.inc"
.def temp = R16
.def temp2 = R17
.def A_REG = R18
.def B_REG = R19
.def C_REG = R20
.def D_REG = R21
.def COUNT = R22
.def EFFECT = R23
.def VALUE = R24
.def ON = R25
.def w1 = R26
.def w2 = R27
.equ PIXELS = 0x60
;-------------------
.org $0000 ;reset vector
rjmp reset
.org PCIaddr ;pin change interrupt vector
rjmp on_off
;-------------------
reset:
ldi temp, LOW(RAMEND)
out SPL, temp
; ldi temp, 0xFF
; out DDRB, temp
; ldi temp, 0x00
; out PORTB, temp
ldi temp, 0x3F
out DDRB, temp
ldi temp, 0xC0
out PORTB, temp
ldi temp, 0x07
out DDRD, temp
ldi temp, 0xFF
out PORTD, temp
ldi temp, 0x80 ;disable analog comparator
out ACSR, temp
ldi temp, 1<<SM0 ;sleep mode = power down
out MCUCR, temp
ldi temp, 1<<PCIE ;pin change interrupt enabled
out GIMSK, temp
ldi temp, 0x80 ;pin change interrupt only on PB7
out PCMSK, temp
ldi ON, 1 ;default to on
sbis PIND, 5 ;don't enable push-button interrupt if pins 9 and 10 bridged
rjmp stay_on
ldi ON, 0 ;default to off
sei
ldi temp, 1<<SE | 1<<SM0 ;enable sleep and select power down mode
out MCUCR, temp
sleep
ldi temp, 1<<SM0 ;disable sleep
out MCUCR, temp
stay_on:
;make PB6-7 inputs with pullup and thus trigger a pin change IRQ
;(device will switch to power down mode)
; ldi temp, 0x3F
; out DDRB, temp
; ldi temp, 0xC0
; out PORTB, temp
rjmp MAIN
;-------------------------------------------------------------------------------
; switch on/off (sleep mode/normal mode) [pin change interrupt]
;-------------------------------------------------------------------------------
on_off:
push temp
in temp, SREG
push temp
;check if pin is low
sbic PINB, 7
rjmp on_off_return
;switch all LEDs off
ldi temp, 0xC0
out PORTB, temp
ldi temp, 0x7F
out PORTD, temp
;check if pin stays low for some time
ldi w1, 0x10
clr w2
on_off_delay:
sbic PINB, 7
rjmp on_off_return
dec w2
brne on_off_delay
dec w1
brne on_off_delay
;wait until the key is released
wait_key_release:
ldi w1, 0x40
clr w2
wait_key_release_delay:
sbis PINB, 7
rjmp wait_key_release
dec w2
brne wait_key_release_delay
dec w1
brne wait_key_release_delay
cpi ON, 0
breq switch_on
ldi ON, 0 ;switch off
ldi temp, 1<<PCIF ;clear pin-change interrupt (set when the key was released)
out EIFR, temp
sei ;re-enable interrupts so the device can be woken again
ldi temp, 1<<SE | 1<<SM0 ;enable sleep and select power down mode
out MCUCR, temp
sleep
ldi temp, 1<<SM0 ;disable sleep
out MCUCR, temp
rjmp on_off_return
switch_on: ;switch on
ldi ON, 1
on_off_return: ;return to main program
ldi temp, 0x20 ;clear pin-change interrupt (set when the key was released)
out EIFR, temp
pop temp
out SREG, temp
pop temp
reti
;-------------------------------------------------------------------------------
; set pixels
; INPUT: W brightness values to set pixels to
; MODIFIES: PIXELS
;-------------------------------------------------------------------------------
SETPIX:
ldi ZL, PIXELS
st Z+, temp
st Z+, temp
st Z+, temp
st Z+, temp
st Z+, temp
st Z+, temp
st Z+, temp
st Z+, temp
st Z+, temp
st Z+, temp
st Z+, temp
st Z+, temp
st Z+, temp
st Z+, temp
st Z+, temp
st Z+, temp
st Z+, temp
st Z+, temp
ret
;-------------------------------------------------------------------------------
; output a frame
; INPUT: PIXELS brightness values of pixels
; MODIFIES: PORTA, PORTB, A_REG, VALUE
;
;-------------------------------------------------------------------------------
OUTPUT:
ldi VALUE, 63
OUTPUT_FRAME_LOOP:
ldi ZL, PIXELS
; get bits for 1st 6 LEDs (31 cycles)
clr A_REG
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x01
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x02
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x04
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x08
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x10
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x20
ori A_REG, 0xC0
out PORTB, A_REG
cbi PORTD, 0
; get bits for 2nd 6 LEDs (31 cycles)
clr A_REG
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x01
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x02
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x04
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x08
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x10
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x20
ori A_REG, 0xC0
sbi PORTD, 0
out PORTB, A_REG
cbi PORTD, 1
; get bits for 3rd 6 LEDs (31 cycles)
clr A_REG
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x01
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x02
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x04
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x08
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x10
ld temp, Z+
cp temp, VALUE
brlo PC+2
ori A_REG, 0x20
ori A_REG, 0xC0
sbi PORTD, 1
out PORTB, A_REG
cbi PORTD, 2
; give 3rd 6 LEDs time to light (31 cycles)
ldi temp, 10
OUTPUT_STEP_WAIT:
dec temp
brne OUTPUT_STEP_WAIT
nop
; turn off LEDs
sbi PORTD, 2
; do an output step for every brightness value from 63 to 1
dec VALUE
breq PC+2
rjmp OUTPUT_FRAME_LOOP
ret
;-------------------------------------------------------------------------------
; main code
;-------------------------------------------------------------------------------
MAIN:
clr COUNT
ldi ZH, 0
MAIN_LOOP:
; randomize effect number every 16 effects
; movlw 0x0F
; andwf COUNT,W
; btfss STATUS,Z
; goto MAIN_NO_RANDOM
; movlw 0
; btfsc PORTA,3
; movlw 3
; addwf EFFECT
MAIN_NO_RANDOM:
inc COUNT
; show next effect
inc EFFECT
sbrc EFFECT, 2
rjmp MAIN_4
sbrc EFFECT, 1
rjmp MAIN_2
sbrc EFFECT, 0
rjmp FLICKER
rjmp RUNC
MAIN_2:
sbrc EFFECT, 0
rjmp BLINK
rjmp WORMCC
MAIN_4:
sbrc EFFECT, 1
rjmp MAIN_6
sbrc EFFECT, 0
rjmp WOBBLE
rjmp RUNCC
MAIN_6:
sbrc EFFECT, 0
rjmp GLOW
rjmp WORMC
;-------------------------------------------------------------------------------
; blinking heart
; MODIFIES: PORTA, PORTB, A_REG, B_REG, C_REG, VALUE, PIXELS
;-------------------------------------------------------------------------------
BLINK:
; blink 3 times
ldi C_REG, 3
BLINK_LOOP:
; turn all pixels on
ldi temp, 63
rcall SETPIX
; output 50 frames
ldi B_REG, 50
BLINK_ON:
rcall OUTPUT
dec B_REG
brne BLINK_ON
; turn all pixels off
ldi temp, 0
rcall SETPIX
; output 50 frames
ldi B_REG, 50
BLINK_OFF:
rcall OUTPUT
dec B_REG
brne BLINK_OFF
; blink 3 times
dec C_REG
brne BLINK_LOOP
; continue with main loop
rjmp MAIN_LOOP
;-------------------------------------------------------------------------------
; glowing heart
; MODIFIES: PORTA, PORTB, A_REG, B_REG, C_REG, VALUE, PIXELS
;-------------------------------------------------------------------------------
GLOW:
; glow 3 times
ldi C_REG, 3
GLOW_LOOP:
; increase glowing
ldi B_REG, 0
GLOW_INC:
; set all pixels
mov temp, B_REG
rcall SETPIX
; output 2 frames
rcall OUTPUT
rcall OUTPUT
; increase glowing
inc B_REG
cpi B_REG, 63
brne GLOW_INC
; decrease glowing
ldi B_REG, 63
GLOW_DEC:
; set all pixels
mov temp, B_REG
rcall SETPIX
; output 2 frames
rcall OUTPUT
rcall OUTPUT
; decrease glowing
dec B_REG
brne GLOW_DEC
; glow 3 times
dec C_REG
brne GLOW_LOOP
; continue with main loop
rjmp MAIN_LOOP
;-------------------------------------------------------------------------------
; flickering heart
; MODIFIES: PORTA, PORTB, A_REG, B_REG, C_REG, VALUE, PIXELS
;-------------------------------------------------------------------------------
FLICKER:
; flicker 10 times
ldi C_REG, 10
FLICKER_LOOP:
; turn odd pixels on
ldi ZL, PIXELS
ldi temp, 63
ldi temp2, 0
st Z+, temp2
st Z+, temp
st Z+, temp2
st Z+, temp
st Z+, temp2
st Z+, temp
st Z+, temp2
st Z+, temp
st Z+, temp2
st Z+, temp
st Z+, temp2
st Z+, temp
st Z+, temp2
st Z+, temp
st Z+, temp2
st Z+, temp
st Z+, temp2
st Z+, temp
; output 15 frames
ldi B_REG, 15
FLICKER_ODD:
rcall OUTPUT
dec B_REG
brne FLICKER_ODD
; turn even pixels on
ldi ZL, PIXELS
ldi temp, 63
st Z+, temp
st Z+, temp2
st Z+, temp
st Z+, temp2
st Z+, temp
st Z+, temp2
st Z+, temp
st Z+, temp2
st Z+, temp
st Z+, temp2
st Z+, temp
st Z+, temp2
st Z+, temp
st Z+, temp2
st Z+, temp
st Z+, temp2
st Z+, temp
st Z+, temp2
; output 15 frames
ldi B_REG, 15
FLICKER_EVEN:
rcall OUTPUT
dec B_REG
brne FLICKER_EVEN
; flicker 10 times
dec C_REG
brne FLICKER_LOOP
; continue with main loop
rjmp MAIN_LOOP
;-------------------------------------------------------------------------------
; wobbling heart
; MODIFIES: PORTA, PORTB, A_REG, B_REG, C_REG, VALUE, PIXELS
;-------------------------------------------------------------------------------
WOBBLE:
; wobble 5 times
ldi D_REG, 5
WOBBLE_LOOP:
; forward
clr B_REG
ldi C_REG, 63
WOBBLE_FW:
; set all pixels
ldi ZL, PIXELS
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
; output 2 frames
rcall OUTPUT
rcall OUTPUT
; forward
inc B_REG
dec C_REG
brne WOBBLE_FW
; backward
ldi B_REG, 63
clr C_REG
WOBBLE_BW:
; set all pixels
ldi ZL, PIXELS
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
st Z+, B_REG
st Z+, C_REG
; output 2 frames
rcall OUTPUT
rcall OUTPUT
; backward
inc C_REG
dec B_REG
brne WOBBLE_BW
; wobble 5 times
dec D_REG
brne WOBBLE_LOOP
; continue with main loop
rjmp MAIN_LOOP
;-------------------------------------------------------------------------------
; running light - clockwise
; MODIFIES: PORTA, PORTB, A_REG, B_REG, C_REG, VALUE, PIXELS
;-------------------------------------------------------------------------------
RUNC:
; run 5 rounds
ldi D_REG, 5
RUNC_LOOP:
; turn on two pixels opposite to each other clockwise
clr C_REG
RUNC_STEP:
; turn all pixels off
ldi temp, 0
rcall SETPIX
; turn on C_REG-th and C_REG+9-th pixel
ldi ZL, PIXELS
add ZL, C_REG
ldi temp, 63
st Z, temp
subi ZL, -9
st Z, temp
; output 20 frames
ldi B_REG, 20
RUNC_OUT:
rcall OUTPUT
dec B_REG
brne RUNC_OUT
; turn on two pixels opposite to each other clockwise
inc C_REG
cpi C_REG, 9 ; skip if C_REG is 9
brne RUNC_STEP
; run 5 rounds
dec D_REG
brne RUNC_LOOP
; continue with main loop
rjmp MAIN_LOOP
;-------------------------------------------------------------------------------
; running light - couter-clockwise
; MODIFIES: PORTA, PORTB, A_REG, B_REG, C_REG, VALUE, PIXELS
;-------------------------------------------------------------------------------
RUNCC:
; run 5 rounds
ldi D_REG, 5
RUNCC_LOOP:
; turn on two pixels opposite to each other counter-clockwise
ldi C_REG, 8
RUNCC_STEP:
; turn all pixels off
ldi temp, 0
rcall SETPIX
; turn on C_REG-th and C_REG+9-th pixel
ldi ZL, PIXELS
add ZL, C_REG
ldi temp, 63
st Z, temp
subi ZL, -9
st Z, temp
; output 20 frames
ldi B_REG, 20
RUNCC_OUT:
rcall OUTPUT
dec B_REG
brne RUNCC_OUT
; turn on two pixels opposite to each other counter-clockwise
dec C_REG
cpi C_REG, 0xFF ; skip if C_REG is -1
brne RUNCC_STEP
; run 5 rounds
dec D_REG
brne RUNCC_LOOP
; continue with main loop
rjmp MAIN_LOOP
;-------------------------------------------------------------------------------
; running worm - clockwise
; MODIFIES: PORTA, PORTB, A_REG, B_REG, C_REG, VALUE, PIXELS
;-------------------------------------------------------------------------------
WORMC:
; turn all pixels off
ldi temp, 0
rcall SETPIX
; run 3 rounds
ldi D_REG, 3
WORMC_LOOP:
; let worm run one round clockwise
clr C_REG
WORMC_STEP:
; dim down every pixel
ldi ZL, PIXELS
ldi temp2, 18
WORMC_DIM:
ld temp, Z
lsr temp
st Z+, temp
dec temp2
brne WORMC_DIM
; turn on C_REG-th pixel
ldi ZL, PIXELS
add ZL, C_REG
ldi temp, 63
st Z, temp
; output 20 frames
ldi B_REG, 20
WORMC_OUT:
rcall OUTPUT
dec B_REG
brne WORMC_OUT
; let worm run one round clockwise
inc C_REG
cpi C_REG, 18 ; skip if C_REG is 18
brne WORMC_STEP
; run 3 rounds
dec D_REG
brne WORMC_LOOP
; continue with main loop
rjmp MAIN_LOOP
;-------------------------------------------------------------------------------
; running worm - counter-clockwise
; MODIFIES: PORTA, PORTB, A_REG, B_REG, C_REG, VALUE, PIXELS
;-------------------------------------------------------------------------------
WORMCC:
; turn all pixels off
ldi temp, 0
rcall SETPIX
; run 3 rounds
ldi D_REG, 3
WORMCC_LOOP:
; let worm run one round counter-clockwise
ldi C_REG, 17
WORMCC_STEP:
; dim down every pixel
ldi ZL, PIXELS
ldi temp2, 18
WORMCC_DIM:
ld temp, Z
lsr temp
st Z+, temp
dec temp2
brne WORMCC_DIM
; turn on C_REG-th pixel
ldi ZL, PIXELS
add ZL, C_REG
ldi temp, 63
st Z, temp
; output 20 frames
ldi B_REG, 20
WORMCC_OUT:
rcall OUTPUT
dec B_REG
brne WORMCC_OUT
; let worm run one round counter-clockwise
dec C_REG
cpi C_REG, 0xFF ; skip if C_REG is -1
brne WORMCC_STEP
; run 3 rounds
dec D_REG
brne WORMCC_LOOP
; continue with main loop
rjmp MAIN_LOOP
;===============================================================================
; end of file
;===============================================================================
|
programs/oeis/071/A071022.asm | karttu/loda | 1 | 101558 | <reponame>karttu/loda
; A071022: Triangle read by rows giving successive states of cellular automaton generated by "Rule 70" and by "Rule 198".
; 1,1,1,1,0,1,1,1,0,1,1,0,1,0,1,1,1,0,1,0,1,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1
cal $0,193592 ; Triangle read by rows having n-th row 1, n, n-1, n-2,..., 2, 1 for n>=0.
mod $0,2
mov $1,$0
|
tools/files/applib/contrib/ada/aplib.ads | nehalem501/gendev | 2,662 | 30455 | <gh_stars>1000+
--
-- aPLib compression library - the smaller the better :)
--
-- Ada binding for aplib.a
--
-- Copyright (c) 1998-2009 by <NAME> / Jibz
-- All Rights Reserved
--
-- http://www.ibsensoftware.com/
--
-- Ada binding by <NAME> - <EMAIL>, <EMAIL>
--
package aPLib is
-- Give the maximum "packed" size possible - it can be more than
-- the unpacked size in case of uncompressible data:
function Evaluate_max_packed_space( unpacked_size: Integer ) return Integer;
pragma Import(C, Evaluate_max_packed_space, "aP_max_packed_size");
-- Was, before v0.34 b4: (((unpacked_size * 9) / 8) + 16)
-- A template for packing data:
generic
type packed_data is private;
type unpacked_data is private;
with procedure Call_back( unpacked_bytes, packed_bytes: in integer;
continue : out boolean );
procedure Pack( source : in unpacked_data;
destination : out packed_data;
packed_length: out integer );
-- A template for unpacking data:
generic
type packed_data is private;
type unpacked_data is private;
procedure Depack( source : in packed_data;
destination: out unpacked_data );
-- Exceptions for errors that could occur:
pack_failed, unpack_failed: exception;
-- Just for information
function aP_workmem_size(inputsize: integer) return integer;
pragma Import(C, aP_workmem_size, "aP_workmem_size");
end aPLib;
|
oeis/116/A116847.asm | neoneye/loda-programs | 11 | 9819 | <filename>oeis/116/A116847.asm
; A116847: Number of permutations of length n which avoid the patterns 123, 51432.
; Submitted by <NAME>
; 1,2,5,14,41,119,336,924,2492,6636,17536,46137,121095,317434,831571,2177734,5702191,14929519,39087182,102332996,267912946,701407172,1836310110,4807524929,12586266701,32951277474,86267568321,225851430414,591286726197,1548008751831,4052739533356,10610209852732,27777890029800,72723460242124,190392490702556,498454011872089,1304969544920851,3416454622898234,8944394323782287,23416728348457766,61305790721600891,160500643816355567,420196140727477290,1100087778366088644,2880067194370801886
mov $3,1
lpb $0
sub $0,1
add $2,$5
add $3,$2
add $4,$3
add $1,$4
add $5,$2
add $5,1
lpe
mov $0,$1
add $0,1
|
src/natools-web-error_pages.adb | faelys/natools-web | 1 | 8608 | ------------------------------------------------------------------------------
-- Copyright (c) 2014-2019, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose with or without fee is hereby granted, provided that the above --
-- copyright notice and this permission notice appear in all copies. --
-- --
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES --
-- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF --
-- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR --
-- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES --
-- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN --
-- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF --
-- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. --
------------------------------------------------------------------------------
with Natools.S_Expressions.Atom_Ref_Constructors;
with Natools.S_Expressions.Caches;
with Natools.S_Expressions.Lockable;
with Natools.S_Expressions.Interpreter_Loop;
with Natools.Static_Maps.Web.Error_Pages;
with Natools.Web.Containers;
with Natools.Web.Fallback_Render;
package body Natools.Web.Error_Pages is
procedure Append
(Exchange : in out Sites.Exchange;
Context : in Error_Context;
Data : in S_Expressions.Atom);
procedure Default_Page
(Exchange : in out Sites.Exchange;
Context : in Error_Context);
procedure Execute
(Exchange : in out Sites.Exchange;
Context : in Error_Context;
Name : in S_Expressions.Atom;
Arguments : in out S_Expressions.Lockable.Descriptor'Class);
procedure Render is new S_Expressions.Interpreter_Loop
(Sites.Exchange, Error_Context, Execute, Append);
-------------------------
-- Error Page Renderer --
-------------------------
procedure Append
(Exchange : in out Sites.Exchange;
Context : in Error_Context;
Data : in S_Expressions.Atom)
is
pragma Unreferenced (Context);
begin
Exchange.Append (Data);
end Append;
procedure Default_Page
(Exchange : in out Sites.Exchange;
Context : in Error_Context)
is
begin
Exchange.Append (S_Expressions.To_Atom ("<html><head><title>Error "));
Exchange.Append (Context.Code);
Exchange.Append
(S_Expressions.To_Atom ("</title></head><body><h1>Error "));
Exchange.Append (Context.Code);
Exchange.Append (S_Expressions.To_Atom ("</h1><p>"));
Exchange.Append
(S_Expressions.To_Atom
(Natools.Static_Maps.Web.Error_Pages.To_Message
(S_Expressions.To_String (Context.Code))));
Exchange.Append (S_Expressions.To_Atom ("</p></body></html>"));
end Default_Page;
procedure Execute
(Exchange : in out Sites.Exchange;
Context : in Error_Context;
Name : in S_Expressions.Atom;
Arguments : in out S_Expressions.Lockable.Descriptor'Class)
is
procedure Re_Enter
(Exchange : in out Sites.Exchange;
Expression : in out S_Expressions.Lockable.Descriptor'Class);
procedure Re_Enter
(Exchange : in out Sites.Exchange;
Expression : in out S_Expressions.Lockable.Descriptor'Class) is
begin
Render (Expression, Exchange, Context);
end Re_Enter;
use Natools.Static_Maps.Web.Error_Pages;
begin
case To_Command (S_Expressions.To_String (Name)) is
when Unknown_Command =>
Fallback_Render
(Exchange, Name, Arguments,
"error page", Re_Enter'Access);
when Location =>
if not Context.Location.Is_Empty then
Exchange.Append (Context.Location.Query);
end if;
when Message =>
Exchange.Append
(S_Expressions.To_Atom (To_Message
(S_Expressions.To_String (Context.Code))));
when Path =>
Exchange.Append
(S_Expressions.To_Atom (Exchanges.Path (Exchange)));
when Status_Code =>
Exchange.Append (Context.Code);
end case;
end Execute;
-----------------------
-- Private Interface --
-----------------------
procedure Main_Render
(Exchange : in out Sites.Exchange;
Context : in Error_Context)
is
use type S_Expressions.Atom;
Expression : Containers.Optional_Expression;
begin
Expression := Exchange.Site.Get_Template
(S_Expressions.To_Atom ("error-page-") & Context.Code);
if Expression.Is_Empty then
Expression := Exchange.Site.Get_Template
(S_Expressions.To_Atom ("error-page"));
end if;
if Expression.Is_Empty then
Default_Page (Exchange, Context);
else
Render (Expression.Value, Exchange, Context);
end if;
end Main_Render;
----------------------
-- Public Interface --
----------------------
procedure Check_Method
(Exchange : in out Sites.Exchange;
Allowed_Set : in Exchanges.Method_Set;
Allowed : out Boolean) is
begin
Allowed := Exchanges.Is_In (Exchanges.Method (Exchange), Allowed_Set);
if not Allowed then
Method_Not_Allowed (Exchange, Allowed_Set);
end if;
end Check_Method;
procedure Check_Method
(Exchange : in out Sites.Exchange;
Allowed_Methods : in Exchanges.Method_Array;
Allowed : out Boolean) is
begin
Check_Method (Exchange, Exchanges.To_Set (Allowed_Methods), Allowed);
end Check_Method;
procedure Check_Method
(Exchange : in out Sites.Exchange;
Allowed_Method : in Exchanges.Known_Method;
Allowed : out Boolean) is
begin
Check_Method (Exchange, (1 => Allowed_Method), Allowed);
end Check_Method;
procedure Method_Not_Allowed
(Exchange : in out Sites.Exchange;
Allow : in Exchanges.Method_Set)
is
Context : constant Error_Context
:= (Code => S_Expressions.To_Atom ("405"),
Location => <>);
begin
Exchanges.Method_Not_Allowed (Exchange, Allow);
Main_Render (Exchange, Context);
end Method_Not_Allowed;
procedure Not_Found (Exchange : in out Sites.Exchange) is
Context : constant Error_Context
:= (Code => S_Expressions.To_Atom ("404"),
Location => <>);
begin
Exchanges.Not_Found (Exchange);
Main_Render (Exchange, Context);
end Not_Found;
procedure Permanent_Redirect
(Exchange : in out Sites.Exchange;
Location : in S_Expressions.Atom)
is
Context : constant Error_Context
:= (Code => S_Expressions.To_Atom ("301"),
Location => S_Expressions.Atom_Ref_Constructors.Create (Location));
begin
Exchange.Permanent_Redirect (Context.Location);
Main_Render (Exchange, Context);
end Permanent_Redirect;
procedure See_Other
(Exchange : in out Sites.Exchange;
Location : in S_Expressions.Atom)
is
Context : constant Error_Context
:= (Code => S_Expressions.To_Atom ("303"),
Location => S_Expressions.Atom_Ref_Constructors.Create (Location));
begin
Exchange.See_Other (Context.Location);
Main_Render (Exchange, Context);
end See_Other;
end Natools.Web.Error_Pages;
|
src/gnat/prj-env.ads | Letractively/ada-gen | 0 | 27809 | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- P R J . E N V --
-- --
-- S p e c --
-- --
-- Copyright (C) 2001-2010, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
-- ware Foundation; either version 3, or (at your option) any later ver- --
-- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
-- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
-- or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License --
-- for more details. You should have received a copy of the GNU General --
-- Public License distributed with GNAT; see file COPYING3. If not, go to --
-- http://www.gnu.org/licenses for a complete copy of the license. --
-- --
-- GNAT was originally developed by the GNAT team at New York University. --
-- Extensive contributions were provided by Ada Core Technologies Inc. --
-- --
------------------------------------------------------------------------------
-- This package implements services for Project-aware tools, mostly related
-- to the environment (configuration pragma files, path files, mapping files).
with GNAT.Dynamic_HTables;
with GNAT.OS_Lib;
package Prj.Env is
procedure Initialize (In_Tree : Project_Tree_Ref);
-- Initialize global components relative to environment variables
procedure Print_Sources (In_Tree : Project_Tree_Ref);
-- Output the list of sources, after Project files have been scanned
procedure Create_Mapping (In_Tree : Project_Tree_Ref);
-- Create in memory mapping from the sources of all the projects (in body
-- of package Fmap), so that Osint.Find_File will find the correct path
-- corresponding to a source.
procedure Create_Temp_File
(In_Tree : Project_Tree_Ref;
Path_FD : out File_Descriptor;
Path_Name : out Path_Name_Type;
File_Use : String);
-- Create temporary file, and fail with an error if it could not be created
procedure Create_Mapping_File
(Project : Project_Id;
Language : Name_Id;
In_Tree : Project_Tree_Ref;
Name : out Path_Name_Type);
-- Create a temporary mapping file for project Project. For each source or
-- template of Language in the Project, put the mapping of its file
-- name and path name in this file.
--
-- Implementation note: we pass a language name, not a language_index here,
-- since the latter would have to match exactly the index of that language
-- for the specified project, and that is not information available in
-- buildgpr.adb.
--
-- See fmap for a description of the format of the mapping file
procedure Create_Config_Pragmas_File
(For_Project : Project_Id;
In_Tree : Project_Tree_Ref);
-- If there needs to have SFN pragmas, either for non standard naming
-- schemes or for individual units.
procedure Create_New_Path_File
(In_Tree : Project_Tree_Ref;
Path_FD : out File_Descriptor;
Path_Name : out Path_Name_Type);
-- Create a new temporary path file. Get the file name in Path_Name.
function Ada_Include_Path
(Project : Project_Id;
In_Tree : Project_Tree_Ref;
Recursive : Boolean := False) return String;
-- Get the source search path of a Project file. If Recursive it True, get
-- all the source directories of the imported and modified project files
-- (recursively). If Recursive is False, just get the path for the source
-- directories of Project. Note: the resulting String may be empty if there
-- is no source directory in the project file.
function Ada_Objects_Path
(Project : Project_Id;
Including_Libraries : Boolean := True) return String_Access;
-- Get the ADA_OBJECTS_PATH of a Project file. For the first call, compute
-- it and cache it. When Including_Libraries is False, do not include the
-- object directories of the library projects, and do not cache the result.
procedure Set_Ada_Paths
(Project : Project_Id;
In_Tree : Project_Tree_Ref;
Including_Libraries : Boolean;
Include_Path : Boolean := True;
Objects_Path : Boolean := True);
-- Set the environment variables for additional project path files, after
-- creating the path files if necessary.
function File_Name_Of_Library_Unit_Body
(Name : String;
Project : Project_Id;
In_Tree : Project_Tree_Ref;
Main_Project_Only : Boolean := True;
Full_Path : Boolean := False) return String;
-- Returns the file name of a library unit, in canonical case. Name may or
-- may not have an extension (corresponding to the naming scheme of the
-- project). If there is no body with this name, but there is a spec, the
-- name of the spec is returned.
--
-- If Full_Path is False (the default), the simple file name is returned.
--
-- If Full_Path is True, the absolute path name is returned.
--
-- If neither a body nor a spec can be found, an empty string is returned.
-- If Main_Project_Only is True, the unit must be an immediate source of
-- Project. If it is False, it may be a source of one of its imported
-- projects.
function Project_Of
(Name : String;
Main_Project : Project_Id;
In_Tree : Project_Tree_Ref) return Project_Id;
-- Get the project of a source. The source file name may be truncated
-- (".adb" or ".ads" may be missing). If the source is in a project being
-- extended, return the ultimate extending project. If it is not a source
-- of any project, return No_Project.
procedure Get_Reference
(Source_File_Name : String;
In_Tree : Project_Tree_Ref;
Project : out Project_Id;
Path : out Path_Name_Type);
-- Returns the project of a source and its path in displayable form
generic
with procedure Action (Path : String);
procedure For_All_Source_Dirs
(Project : Project_Id;
In_Tree : Project_Tree_Ref);
-- Iterate through all the source directories of a project, including those
-- of imported or modified projects. Only returns those directories that
-- potentially contain Ada sources (ie ignore projects that have no Ada
-- sources
generic
with procedure Action (Path : String);
procedure For_All_Object_Dirs (Project : Project_Id);
-- Iterate through all the object directories of a project, including
-- those of imported or modified projects.
------------------
-- Project Path --
------------------
type Project_Search_Path is private;
-- An abstraction of the project path. This object provides subprograms to
-- search for projects on the path (and caches the results for more
-- efficiency).
procedure Free (Self : in out Project_Search_Path);
-- Free the memory used by Self
procedure Add_Directories
(Self : in out Project_Search_Path;
Path : String);
-- Add one or more directories to the path. Directories added with this
-- procedure are added in order after the current directory and before the
-- path given by the environment variable GPR_PROJECT_PATH. A value of "-"
-- will remove the default project directory from the project path.
--
-- Calls to this subprogram must be performed before the first call to
-- Find_Project below, or PATH will be added at the end of the search
-- path.
procedure Get_Path
(Self : in out Project_Search_Path;
Path : out String_Access);
-- Return the current value of the project path, either the value set
-- during elaboration of the package or, if procedure Set_Project_Path has
-- been called, the value set by the last call to Set_Project_Path.
-- The returned value must not be modified.
procedure Set_Path
(Self : in out Project_Search_Path; Path : String);
-- Override the value of the project path.
-- This also removes the implicit default search directories
procedure Find_Project
(Self : in out Project_Search_Path;
Project_File_Name : String;
Directory : String;
Path : out Namet.Path_Name_Type);
-- Search for a project with the given name either in Directory (which
-- often will be the directory contain the project we are currently parsing
-- and which we found a reference to another project), or in the project
-- path. Extra_Project_Path contains additional directories to search.
--
-- Project_File_Name can optionally contain directories, and the extension
-- (.gpr) for the file name is optional.
--
-- Returns No_Name if no such project was found
private
package Projects_Paths is new GNAT.Dynamic_HTables.Simple_HTable
(Header_Num => Header_Num,
Element => Path_Name_Type,
No_Element => No_Path,
Key => Name_Id,
Hash => Hash,
Equal => "=");
type Project_Search_Path is record
Path : GNAT.OS_Lib.String_Access;
-- As a special case, if the first character is '#:" or this variable is
-- unset, this means that the PATH has not been fully initialized yet
-- (although subprograms above will properly take care of that).
Cache : Projects_Paths.Instance;
end record;
end Prj.Env;
|
yo.asm | charlesap/nasm-uefi | 3 | 4358 | <reponame>charlesap/nasm-uefi
bits 64
org 0x200000
section .header
DOS:
dd 0x00005a4d
times 14 dd 0
dd 0x00000080
times 16 dd 0
PECOFF:
dd `PE\0\0` ; sig
dw 0x8664 ; type
dw 3 ; sections
dd 0x5cba52f6 ; timestamp
dq 0 ; * symbol table + # symbols
dw osize ; oheader size
dw 0x202e ; characteristics
OHEADER:
dd 0x0000020b ; oheader + 0000 linker sig
dd 4096 ;codesize ; code size
dd 8192 ;datasize ; data size
dd 0 ; uninitialized data size
dd 4096 ; * entry
dd 4096 ; * code base
dq 0x200000 ; * image base
dd 4096 ; section alignment
dd 4096 ; file alignment
dq 0 ; os maj, min, image maj, min
dq 0 ; subsys maj, min, reserved
dd 0x4000 ; image size
dd 4096 ; headers size
dd 0 ; checksum
dd 0x0040000A ; dll characteristics & subsystem
dq 0x10000 ; stack reserve size
dq 0x10000 ; stack commit size
dq 0x10000 ; heap reserve size
dq 0 ; heap reserve commit
dd 0 ; loader flags
dd 0x10 ; rva count
DIRS:
times 5 dq 0 ; unused
dd 0x004000 ; virtual address .reloc
dd 0 ; size .reloc
times 10 dq 0 ; unused
OEND:
osize equ OEND - OHEADER
SECTS:
.1:
dq `.text` ; name
dd 4096 ;codesize ; virtual size
dd 4096 ; virtual address
dd 4096 ; raw data size
dd 4096 ; * raw data
dq 0 ; * relocations, * line numbers
dd 0 ; # relocations, # line numbers
dd 0x60000020 ; characteristics
.2:
dq `.data`
dd 8192 ;datasize
dd 8192
dd 8192
dd 8192
dq 0
dd 0
dd 0xC0000040
.3:
dq `.reloc`
dd 0
dd 0 ;20480
dd 0
dd 0 ;20480
dq 0
dd 0
dd 0x02000040
times 4096 - ($-$$) db 0 ;align the text section on a 4096 byte boundary
section .text follows=.header
EFI_SUCCESS equ 0
EFI_SYSTEM_TABLE_SIGNATURE equ 0x5453595320494249
EFI_SYSTEM_TABLE_CONOUT equ 64
EFI_SYSTEM_TABLE_RUNTIMESERVICES equ 88
EFI_SYSTEM_TABLE_BOOTSERVICES equ 96
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL_RESET equ 0
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL_OUTPUTSTRING equ 8
EFI_BOOT_SERVICES_GETMEMORYMAP equ 56
EFI_BOOT_SERVICES_LOCATEHANDLE equ 176
EFI_BOOT_SERVICES_LOADIMAGE equ 200
EFI_BOOT_SERVICES_EXIT equ 216
EFI_BOOT_SERVICES_EXITBOOTSERVICES equ 232
EFI_BOOT_SERVICES_LOCATEPROTOCOL equ 320
EFI_RUNTIME_SERVICES_RESETSYSTEM equ 104
sub rsp, 6*8
mov [Handle], rcx
mov [SystemTable], rdx
mov rax, [SystemTable]
mov rax, [rax + EFI_SYSTEM_TABLE_BOOTSERVICES]
mov [BS], rax
mov rax, [SystemTable]
mov rax, [rax + EFI_SYSTEM_TABLE_RUNTIMESERVICES]
mov [RTS], rax
lea rdx, [herewego]
mov rcx, [SystemTable]
mov rcx, [rcx + EFI_SYSTEM_TABLE_CONOUT]
call [rcx + EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL_OUTPUTSTRING]
; get the memory map
mov qword [memmapsize], 4096
lea rcx, [memmapsize]
lea rdx, [memmap]
lea r8, [memmapkey]
lea r9, [memmapdescsize]
lea r10, [memmapdescver]
mov [STK],rsp
push r10
sub rsp, 4*8
mov rbx, [BS]
call [rbx + EFI_BOOT_SERVICES_GETMEMORYMAP]
add rsp, 4*8
pop r10
mov rsp, [STK]
cmp rax, EFI_SUCCESS
jne oops
; find the interface to GOP
mov rbx, [SystemTable]
mov rbx, [rbx + EFI_SYSTEM_TABLE_BOOTSERVICES]
mov rcx, _EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID
mov rdx, 0
lea r8, [Interface]
call [rbx + EFI_BOOT_SERVICES_LOCATEPROTOCOL]
cmp rax, EFI_SUCCESS
jne oops
mov rcx, [Interface]
mov rcx, [rcx + 0x18 ] ;EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE
mov rbx, [rcx + 0x18 ] ;EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE_FRAMEBUFFERBASE
mov [FB], rbx
mov rcx, [rcx + 0x20 ] ;EFI_GRAPHICS_OUTPUT_PROTOCOL_MODE_FRAMEBUFFERSIZE
mov [FBS], rcx
cmp rax, EFI_SUCCESS
jne oops
mov rbx, [FB]
push rax
push rcx
push rdx
call printhex
pop rdx
pop rcx
pop rax
mov rbx, [FBS]
push rax
push rcx
push rdx
call printhex
pop rdx
pop rcx
pop rax
; exit boot services
mov rcx, [Handle]
mov rdx, [memmapkey]
mov rbx, [SystemTable]
mov rbx, [rbx + EFI_SYSTEM_TABLE_BOOTSERVICES]
call [rbx + EFI_BOOT_SERVICES_EXITBOOTSERVICES]
cmp rax, EFI_SUCCESS
je g5
mov rbx, [memmapkey]
push rax
push rcx
push rdx
call printhex
pop rdx
pop rcx
pop rax
; repeat the call to get the memory map
mov qword [memmapsize], 4096
lea rcx, [memmapsize]
lea rdx, [memmap]
lea r8, [memmapkey]
lea r9, [memmapdescsize]
lea r10, [memmapdescver]
mov [STK],rsp
push r10
sub rsp, 4*8
mov rbx, [BS]
call [rbx + EFI_BOOT_SERVICES_GETMEMORYMAP]
add rsp, 4*8
pop r10
mov rsp, [STK]
cmp rax, EFI_SUCCESS
jne oops
mov rbx, [memmapkey]
push rax
push rcx
push rdx
call printhex
pop rdx
pop rcx
pop rax
; exit boot services again
mov rcx, [Handle]
mov rdx, [memmapkey]
xor r8, r8
mov rbx, [SystemTable]
mov rbx, [rbx + EFI_SYSTEM_TABLE_BOOTSERVICES]
call [rbx + EFI_BOOT_SERVICES_EXITBOOTSERVICES]
;cmp rax, EFI_SUCCESS
;je g5
;jmp oops
Z:
jmp Z
mov rcx, [FB]
mov rax, [FBS]
Q:
dec rax
mov byte[rcx+rax],255
jnz Q
W:
jmp W
g5:
mov rcx, 2 ;EfiResetShutdown
mov rdx, EFI_SUCCESS
mov rax, [SystemTable]
mov rax, [rax + EFI_SYSTEM_TABLE_RUNTIMESERVICES]
call [rax + EFI_RUNTIME_SERVICES_RESETSYSTEM]
oops:
lea rdx, [fail]
mov rcx, [SystemTable]
mov rcx, [rcx + EFI_SYSTEM_TABLE_CONOUT]
call [rcx + EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL_OUTPUTSTRING]
jmp $-1
printhex:
mov rbp, 16
.loop:
rol rbx, 4
mov rax, rbx
and rax, 0Fh
lea rcx, [_Hex]
mov rax, [rax + rcx]
mov byte [_Num], al
lea rdx, [_Num]
mov rcx, [SystemTable]
mov rcx, [rcx + EFI_SYSTEM_TABLE_CONOUT]
call [rcx + EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL_OUTPUTSTRING]
dec rbp
jnz .loop
lea rdx, [_Nl]
mov rcx, [SystemTable]
mov rcx, [rcx + EFI_SYSTEM_TABLE_CONOUT]
call [rcx + EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL_OUTPUTSTRING]
ret
times 8192-($-$$) db 0
codesize equ $ - $$
section .data follows=.text
Handle dq 0
SystemTable dq 0
Interface dq 0
BS dq 0
RTS dq 0
STK dq 0
FB dq 0
FBS dq 0
memmapsize dq 4096
memmapkey dq 0
memmapdescsize dq 48
memmapdescver dq 0
_EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID db 0xde, 0xa9, 0x42, 0x90, 0xdc, 0x23, 0x38, 0x4a
db 0x96, 0xfb, 0x7a, 0xde, 0xd0, 0x80, 0x51, 0x6a
fail db __utf16__ `fail.\r\n\0`
nok db __utf16__ `Not OK.\r\n\0`
yok db __utf16__ `OK.\r\n\0`
herewego db __utf16__ `here we go\r\n\0`
_Hex db '0123456789ABCDEF'
_Num dw 0,0
_Nl dw 13,10,0
times 4096-($-$$) db 0
memmap:
times 4096 db 0
datasize equ $ - $$
section .reloc follows=.data
|
SpriteVideo/demovideo.asm | peteri/stm8ldiscovery | 0 | 89125 | stm8/
.tab 0,8,16,60
#include "variables.inc"
#include "constants.inc"
#include "linerender.inc"
segment 'ram1'
videoticks.w ds.w 1
onscreen ds.b 1
temp ds.b 1
segment 'rom'
; Called every frame by the video code
; we just toggle an led and increment a counter for now.
.demo_video_frame.w
ldw y,videoticks
incw y
ldw videoticks,y
call display_video_ticks
ret
;======================================
;
; Main demo routine
;
;======================================
.demo_video.w
call clear_screen
call udg_copy
call display_welcome
call delay_1_sec
call display_charset
call delay_1_sec
call rolling_text_udg
call delay_1_sec
ret
;========================================
;
; Clear screen routine
;========================================
clear_screen
ld a,#$20
fill_screen
ldw y,#screen
ldw x,#{ScrHeight mult ScrWidth}
clear_screen_loop
ld (y),a
incw y
decw x
jrne clear_screen_loop
ret
;=========================================
; Display welcome message
;=========================================
display_welcome
ldw x,#welcome_msg1
call display_message
ldw x,#welcome_msg2
call display_message
ret
;=========================================
; Display charset
;=========================================
display_charset
ldw x,#char_set1
call display_message
ldw x,#char_set2
call display_message
ldw x,#char_set3
call display_message
ldw x,#char_set4
call display_message
ldw y,#{ScrWidth mult 8+21}
ldw x,#$00
display_left_edge
ld a,xl
add a,#$30
cp a,#$3a
jrult hex_digit
add a,#$7
hex_digit
ld (screen,y),a
ld a,#$B3
ld ({screen+1},y),a
ld a,yl
add a,#ScrWidth
ld yl,a
ld a,yh
adc a,#0
ld yh,a
incw x
cpw x,#$10
jrult display_left_edge
ldw x,#$00
char_loop
ld a,#ScrWidth
ld yl,a
ld a,xl
srl a
srl a
srl a
srl a
add a,#8
mul y,a
;On the right line now add our offset...
ld a,xl
and a,#$0f
add a,#23
ld temp,a
ld a,yl
add a,temp
ld yl,a
ld a,yh
adc a,#0
ld yh,a
ld a,xl
ld (screen,y),a
pushw x
ldw x,#5
call delay_x_frames
popw x
incw x
cpw x,#$100
jrult char_loop
ret
rolling_text_udg
ret
;=========================================
;
; Display message, called with x register
; pointing to message to display, message
; starts with y coord, x coord, messsage
; bytes terminated by a zero.
;
;=========================================
display_message
ld a,#ScrWidth
ld yl,a
ld a,(x)
incw x
mul y,a
ld a,yl
add a,(x)
incw x
ld yl,a
ld a,yh
adc a,#$0
ld yh,a
ld a,(x)
display_message_loop
incw x
ld (screen,y),a
incw y
ld a,(x)
jrne display_message_loop
ret
;=========================================
; Display number of video frames on screen
;=========================================
display_video_ticks
ret
;========================================
;
; Delay routines
;
;========================================
delay_1_sec
ldw x,#50
;
; delay for x frames
; destroys y.
;
delay_x_frames
ldw y,videoticks
wait_for_tick_change
cpw y,videoticks
jreq wait_for_tick_change
decw x
jrne delay_x_frames
ret
; 1234567890123456789012345678901234567890
welcome_msg1.w DC.B 0,0,"Welcome to the STM8",0
welcome_msg2.w DC.B 1,0,"PAL cheap video system",0
char_set1.w DC.B 3,0,"Comes with complete code",0
char_set2.w DC.B 4,0,"page 437 characters",0
char_set3.w DC.B 6,21,$20,$B3,"0123456789ABCDEF",0
char_set4.w DC.B 7,21,$C4,$C5
DC.B $C4,$C4,$C4,$C4,$C4,$C4,$C4,$C4
DC.B $C4,$C4,$C4,$C4,$C4,$C4,$C4,$C4,$00
udg_msg1.w DC.B 6,0,"32 user defined graphics",0
udg_msg2.w DC.B 7,0,"Time to scroll",0
end
|
Ada95/samples/sample-function_key_setting.ads | arc-aosp/external_libncurses | 35 | 14047 | <filename>Ada95/samples/sample-function_key_setting.ads
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- Sample.Function_Key_Setting --
-- --
-- S P E C --
-- --
------------------------------------------------------------------------------
-- Copyright (c) 1998 Free Software Foundation, Inc. --
-- --
-- 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, distribute with modifications, 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 ABOVE 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. --
-- --
-- Except as contained in this notice, the name(s) of the above copyright --
-- holders shall not be used in advertising or otherwise to promote the --
-- sale, use or other dealings in this Software without prior written --
-- authorization. --
------------------------------------------------------------------------------
-- Author: <NAME>, 1996
-- Version Control
-- $Revision: 1.9 $
-- Binding Version 01.00
------------------------------------------------------------------------------
with Terminal_Interface.Curses; use Terminal_Interface.Curses;
with Terminal_Interface.Curses.Panels; use Terminal_Interface.Curses.Panels;
-- This package implements a simple stack of function key label environments.
--
package Sample.Function_Key_Setting is
procedure Push_Environment (Key : in String;
Reset : in Boolean := True);
-- Push the definition of the current function keys on an internal
-- stack. If the reset flag is true, all labels are reset while
-- pushed, so the new environment can assume a tabula rasa.
-- The Key defines the new Help Context associated with the new
-- Environment. This saves also the currently active Notepad.
procedure Pop_Environment;
-- Pop the Definitions from the stack and make them the current ones.
-- This also restores the Help context and the previous Notepad.
procedure Initialize (Mode : Soft_Label_Key_Format := PC_Style;
Just : Label_Justification := Left);
-- Initialize the environment
function Context return String;
-- Return the current context identitfier
function Find_Context (Key : String) return Boolean;
-- Look for a context, return true if it is in the stack,
-- false otherwise.
procedure Notepad_To_Context (Pan : in Panel);
-- Add a panel representing a notepad to the current context.
Function_Key_Stack_Error : exception;
procedure Default_Labels;
-- Set the default labels used in all environments
function Notepad_Window return Window;
-- Return the current notepad window or Null_Window if there is none.
end Sample.Function_Key_Setting;
|
examples/src/syncpub.adb | sonneveld/adazmq | 0 | 7339 | -- Synchronized publisher
with Ada.Command_Line;
with Ada.Text_IO;
with GNAT.Formatted_String;
with ZMQ;
procedure SyncPub is
use type GNAT.Formatted_String.Formatted_String;
Subscribers_Expected : constant := 10; -- We wait for 10 subscribers
function Main return Ada.Command_Line.Exit_Status
is
begin
declare
Context : ZMQ.Context_Type := ZMQ.New_Context;
-- Socket to talk to clients
Publisher : constant ZMQ.Socket_Type'Class := Context.New_Socket (ZMQ.ZMQ_PUB);
-- Socket to receive signals
Sync_Service : constant ZMQ.Socket_Type'Class := Context.New_Socket (ZMQ.ZMQ_REP);
begin
Publisher.Set_Sock_Opt (ZMQ.ZMQ_SNDHWM, Integer (1100000));
Publisher.Bind ("tcp://*:5561");
Sync_Service.Bind ("tcp://*:5562");
-- Get synchronization from subscribers
Ada.Text_IO.Put_Line ("Waiting for subscribers");
for Subscribers in 1 .. Subscribers_Expected loop
-- - wait for synchronization request
declare
Unused_Msg : String := Sync_Service.Recv;
begin
null;
end;
-- - send synchronization reply
Sync_Service.Send ("");
end loop;
-- Now broadcast exactly 1M updates followed by END
Ada.Text_IO.Put_Line ("Broadcasting messages");
for Update_Nbr in 1 .. 1000000 loop
Publisher.Send ("Rhubarb");
end loop;
Publisher.Send ("END");
Publisher.Close;
Sync_Service.Close;
Context.Term;
end;
return 0;
end Main;
begin
Ada.Command_Line.Set_Exit_Status (Main);
end SyncPub;
|
non_regression/other_x64_macosx_10.o.asm | LRGH/plasmasm | 1 | 178091 | <reponame>LRGH/plasmasm
.section __TEXT,__text,regular,pure_instructions
.align 4, 0x90
.globl _main
_main:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $40, %rsp
leaq _handler(%rip), %rbx
movq %rbx, -24(%rbp)
movl $0, -12(%rbp)
movl $0, -16(%rbp)
leaq -24(%rbp), %rsi
movl $6, %edi
xorl %edx, %edx
call _sigaction
L00000032:
testl %eax, %eax
jne L0000013A
L0000003A:
movl $6, %edi
call _raise
L00000044:
testl %eax, %eax
jne L00000163
L0000004C:
movl $20, -12(%rbp)
leaq -24(%rbp), %rsi
leaq -40(%rbp), %rdx
movl $6, %edi
call _sigaction
L00000065:
testl %eax, %eax
jne L0000018C
L0000006D:
testb $127, -28(%rbp)
jne L000001B5
L00000077:
cmpq %rbx, -40(%rbp)
jne L000001DE
L00000081:
movl $6, %edi
call _raise
L0000008B:
testl %eax, %eax
jne L00000207
L00000093:
movq $0, -24(%rbp)
leaq -24(%rbp), %rsi
leaq -40(%rbp), %rdx
movl $6, %edi
call _sigaction
L000000AD:
testl %eax, %eax
jne L00000230
L000000B5:
testb $64, -28(%rbp)
jne L00000259
L000000BF:
cmpq $0, -40(%rbp)
jne L00000282
L000000CA:
movq $1, -24(%rbp)
leaq -24(%rbp), %rsi
movl $6, %edi
xorl %edx, %edx
call _sigaction
L000000E2:
testl %eax, %eax
jne L000002AB
L000000EA:
movl $6, %edi
call _raise
L000000F4:
testl %eax, %eax
jne L000002D4
L000000FC:
leaq -40(%rbp), %rdx
movl $6, %edi
xorl %esi, %esi
call _sigaction
L0000010C:
testl %eax, %eax
jne L000002FA
L00000114:
cmpq $1, -40(%rbp)
jne L00000320
L0000011F:
movl $6, %edi
call _raise
L00000129:
testl %eax, %eax
jne L00000346
L00000131:
xorl %eax, %eax
addq $40, %rsp
popq %rbx
popq %rbp
ret
L0000013A:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str3(%rip), %r9
movl $98, %ecx
jmp L0000036A
L00000163:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str4(%rip), %r9
movl $99, %ecx
jmp L0000036A
L0000018C:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str5(%rip), %r9
movl $102, %ecx
jmp L0000036A
L000001B5:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str6(%rip), %r9
movl $103, %ecx
jmp L0000036A
L000001DE:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str7(%rip), %r9
movl $104, %ecx
jmp L0000036A
L00000207:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str4(%rip), %r9
movl $105, %ecx
jmp L0000036A
L00000230:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str5(%rip), %r9
movl $108, %ecx
jmp L0000036A
L00000259:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str8(%rip), %r9
movl $109, %ecx
jmp L0000036A
L00000282:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str9(%rip), %r9
movl $111, %ecx
jmp L0000036A
L000002AB:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str3(%rip), %r9
movl $115, %ecx
jmp L0000036A
L000002D4:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str4(%rip), %r9
movl $116, %ecx
jmp L0000036A
L000002FA:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str10(%rip), %r9
movl $117, %ecx
jmp L0000036A
L00000320:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str11(%rip), %r9
movl $118, %ecx
jmp L0000036A
L00000346:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str4(%rip), %r9
movl $119, %ecx
L0000036A:
xorl %eax, %eax
movq %rsi, %rdi
movq %r8, %rsi
movq %r9, %r8
call _fprintf
L0000037A:
movq (%rbx), %rax
movq %rax, %rdi
call _rpl_fflush
L00000385:
call _abort
L0000038A:
.align 4, 0x90
# ----------------------
_handler:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $24, %rsp
cmpl $6, %edi
jne L00000431
L000003A2:
leaq -24(%rbp), %rdx
movl $6, %edi
xorl %esi, %esi
call _sigaction
L000003B2:
testl %eax, %eax
jne L0000045A
L000003BA:
movl -12(%rbp), %eax
testb $64, %al
jne L00000483
L000003C5:
movl _handler.entry_count(%rip), %ecx
leal 1(%rcx), %edx
movl %edx, _handler.entry_count(%rip)
cmpl $1, %ecx
jne L00000409
L000003D9:
cmpq $0, -24(%rbp)
je L0000042A
L000003E0:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str17(%rip), %r9
movl $81, %ecx
jmp L00000519
L00000409:
testl %ecx, %ecx
jne L000004A9
L00000411:
testb $4, %al
jne L000004CF
L00000419:
leaq _handler(%rip), %rax
cmpq %rax, -24(%rbp)
jne L000004F5
L0000042A:
addq $24, %rsp
popq %rbx
popq %rbp
ret
L00000431:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str12(%rip), %r9
movl $67, %ecx
jmp L00000519
L0000045A:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str13(%rip), %r9
movl $68, %ecx
jmp L00000519
L00000483:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str14(%rip), %r9
movl $69, %ecx
jmp L00000519
L000004A9:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str18(%rip), %r9
movl $85, %ecx
jmp L00000519
L000004CF:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str15(%rip), %r9
movl $73, %ecx
jmp L00000519
L000004F5:
movq ___stderrp@GOTPCREL(%rip), %rbx
movq (%rbx), %rsi
leaq L_.str(%rip), %r8
leaq L_.str1(%rip), %rdx
leaq L_.str16(%rip), %r9
movl $74, %ecx
L00000519:
xorl %eax, %eax
movq %rsi, %rdi
movq %r8, %rsi
movq %r9, %r8
call _fprintf
L00000529:
movq (%rbx), %rax
movq %rax, %rdi
call _rpl_fflush
L00000534:
call _abort
# ----------------------
.section __TEXT,__cstring,cstring_literals
L_.str:
.string "%s:%d: assertion '%s' failed\n"
L_.str1:
.string "gnulib-tests/test-sigaction.c"
L_.str3:
.string "sigaction (SIGABRT, &sa, NULL) == 0"
L_.str4:
.string "raise (SIGABRT) == 0"
L_.str5:
.string "sigaction (SIGABRT, &sa, &old_sa) == 0"
L_.str6:
.string "(old_sa.sa_flags & MASK_SA_FLAGS) == 0"
L_.str7:
.string "old_sa.sa_handler == handler"
L_.str8:
.string "(old_sa.sa_flags & SA_SIGINFO) == 0"
L_.str9:
.string "old_sa.sa_handler == SIG_DFL"
L_.str10:
.string "sigaction (SIGABRT, NULL, &old_sa) == 0"
L_.str11:
.string "old_sa.sa_handler == SIG_IGN"
L_.str12:
.string "sig == SIGABRT"
L_.str13:
.string "sigaction (SIGABRT, NULL, &sa) == 0"
L_.str14:
.string "(sa.sa_flags & SA_SIGINFO) == 0"
L_.str15:
.string "(sa.sa_flags & SA_RESETHAND) == 0"
L_.str16:
.string "sa.sa_handler == handler"
L_.str17:
.string "sa.sa_handler == SIG_DFL"
L_.str18:
.string "0"
# ----------------------
.zerofill __DATA,__bss,_handler.entry_count,4,2
# ----------------------
.subsections_via_symbols
|
src/sparknacl-stream.ads | yannickmoy/SPARKNaCl | 76 | 17168 | with SPARKNaCl.Core; use SPARKNaCl.Core;
package SPARKNaCl.Stream
with Pure,
SPARK_Mode => On
is
-- Distinct from Bytes_32, but both inherit Equal,
-- Random_Bytes, and Sanitize primitive operations.
type HSalsa20_Nonce is new Bytes_24;
type Salsa20_Nonce is new Bytes_8;
--------------------------------------------------------
-- Secret key encryption (not authenticated)
--------------------------------------------------------
procedure HSalsa20 (C : out Byte_Seq; -- Output stream
N : in HSalsa20_Nonce; -- Nonce
K : in Salsa20_Key) -- Key
with Global => null,
Pre => C'First = 0;
procedure HSalsa20_Xor (C : out Byte_Seq; -- Output ciphertext
M : in Byte_Seq; -- Input message
N : in HSalsa20_Nonce; -- Nonce
K : in Salsa20_Key) -- Key
with Global => null,
Pre => M'First = 0 and
C'First = 0 and
C'Last = M'Last;
procedure Salsa20 (C : out Byte_Seq; -- Output stream
N : in Salsa20_Nonce; -- Nonce
K : in Salsa20_Key) -- Key
with Global => null,
Pre => C'First = 0;
procedure Salsa20_Xor (C : out Byte_Seq; -- Output stream
M : in Byte_Seq; -- Input message
N : in Salsa20_Nonce; -- Nonce
K : in Salsa20_Key) -- Key
with Global => null,
Pre => M'First = 0 and
C'First = 0 and
C'Last = M'Last;
end SPARKNaCl.Stream;
|
programs/oeis/141/A141685.asm | jmorken/loda | 1 | 91781 | ; A141685: a(1) = 1, a(n) = Sum_{k=1..n} (k mod 3) * a(n-k) for n >= 2.
; 1,1,3,5,12,25,54,116,249,535,1149,2468,5301,11386,24456,52529,112827,242341,520524,1118033,2401422,5158012,11078889,23796335,51112125,109783684,235804269,506483762,1087875984,2336647777,5018883507,10780055045,23154469836,49733463433,106822458150,229443854852,492822234585,1058532402439,2273620726461,4883507765924,10489281621285,22529917879594,48391988888088,103941106268561,223255001924331,479529203349541,1029980313466764,2212293722090177,4751783552373246
mov $31,$0
mov $33,2
lpb $33
mov $0,$31
sub $33,1
add $0,$33
sub $0,1
mov $27,$0
mov $29,2
lpb $29
clr $0,27
mov $0,$27
sub $29,1
add $0,$29
sub $0,1
add $3,$0
mul $3,2
cal $3,77868 ; Expansion of (1-x)^(-1)/(1-x-x^3).
mov $1,$3
mov $30,$29
lpb $30
mov $28,$1
sub $30,1
lpe
lpe
lpb $27
mov $27,0
sub $28,$1
lpe
mov $1,$28
mov $34,$33
lpb $34
mov $32,$1
sub $34,1
lpe
lpe
lpb $31
mov $31,0
sub $32,$1
lpe
mov $1,$32
|
forktest.asm | Tookerton21/Xv6_OS | 0 | 100125 | <reponame>Tookerton21/Xv6_OS
_forktest: file format elf32-i386
Disassembly of section .text:
00000000 <printf>:
#define N 1000
void
printf(int fd, char *s, ...)
{
0: 55 push %ebp
1: 89 e5 mov %esp,%ebp
3: 83 ec 08 sub $0x8,%esp
write(fd, s, strlen(s));
6: 83 ec 0c sub $0xc,%esp
9: ff 75 0c pushl 0xc(%ebp)
c: e8 97 01 00 00 call 1a8 <strlen>
11: 83 c4 10 add $0x10,%esp
14: 83 ec 04 sub $0x4,%esp
17: 50 push %eax
18: ff 75 0c pushl 0xc(%ebp)
1b: ff 75 08 pushl 0x8(%ebp)
1e: e8 ac 03 00 00 call 3cf <write>
23: 83 c4 10 add $0x10,%esp
}
26: 90 nop
27: c9 leave
28: c3 ret
00000029 <forktest>:
void
forktest(void)
{
29: 55 push %ebp
2a: 89 e5 mov %esp,%ebp
2c: 83 ec 18 sub $0x18,%esp
int n, pid;
printf(1, "fork test\n");
2f: 83 ec 08 sub $0x8,%esp
32: 68 90 04 00 00 push $0x490
37: 6a 01 push $0x1
39: e8 c2 ff ff ff call 0 <printf>
3e: 83 c4 10 add $0x10,%esp
for(n=0; n<N; n++){
41: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
48: eb 1d jmp 67 <forktest+0x3e>
pid = fork();
4a: e8 58 03 00 00 call 3a7 <fork>
4f: 89 45 f0 mov %eax,-0x10(%ebp)
if(pid < 0)
52: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
56: 78 1a js 72 <forktest+0x49>
break;
if(pid == 0)
58: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
5c: 75 05 jne 63 <forktest+0x3a>
exit();
5e: e8 4c 03 00 00 call 3af <exit>
{
int n, pid;
printf(1, "fork test\n");
for(n=0; n<N; n++){
63: 83 45 f4 01 addl $0x1,-0xc(%ebp)
67: 81 7d f4 e7 03 00 00 cmpl $0x3e7,-0xc(%ebp)
6e: 7e da jle 4a <forktest+0x21>
70: eb 01 jmp 73 <forktest+0x4a>
pid = fork();
if(pid < 0)
break;
72: 90 nop
if(pid == 0)
exit();
}
if(n == N){
73: 81 7d f4 e8 03 00 00 cmpl $0x3e8,-0xc(%ebp)
7a: 75 40 jne bc <forktest+0x93>
printf(1, "fork claimed to work N times!\n", N);
7c: 83 ec 04 sub $0x4,%esp
7f: 68 e8 03 00 00 push $0x3e8
84: 68 9c 04 00 00 push $0x49c
89: 6a 01 push $0x1
8b: e8 70 ff ff ff call 0 <printf>
90: 83 c4 10 add $0x10,%esp
exit();
93: e8 17 03 00 00 call 3af <exit>
}
for(; n > 0; n--){
if(wait() < 0){
98: e8 1a 03 00 00 call 3b7 <wait>
9d: 85 c0 test %eax,%eax
9f: 79 17 jns b8 <forktest+0x8f>
printf(1, "wait stopped early\n");
a1: 83 ec 08 sub $0x8,%esp
a4: 68 bb 04 00 00 push $0x4bb
a9: 6a 01 push $0x1
ab: e8 50 ff ff ff call 0 <printf>
b0: 83 c4 10 add $0x10,%esp
exit();
b3: e8 f7 02 00 00 call 3af <exit>
if(n == N){
printf(1, "fork claimed to work N times!\n", N);
exit();
}
for(; n > 0; n--){
b8: 83 6d f4 01 subl $0x1,-0xc(%ebp)
bc: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
c0: 7f d6 jg 98 <forktest+0x6f>
printf(1, "wait stopped early\n");
exit();
}
}
if(wait() != -1){
c2: e8 f0 02 00 00 call 3b7 <wait>
c7: 83 f8 ff cmp $0xffffffff,%eax
ca: 74 17 je e3 <forktest+0xba>
printf(1, "wait got too many\n");
cc: 83 ec 08 sub $0x8,%esp
cf: 68 cf 04 00 00 push $0x4cf
d4: 6a 01 push $0x1
d6: e8 25 ff ff ff call 0 <printf>
db: 83 c4 10 add $0x10,%esp
exit();
de: e8 cc 02 00 00 call 3af <exit>
}
printf(1, "fork test OK\n");
e3: 83 ec 08 sub $0x8,%esp
e6: 68 e2 04 00 00 push $0x4e2
eb: 6a 01 push $0x1
ed: e8 0e ff ff ff call 0 <printf>
f2: 83 c4 10 add $0x10,%esp
}
f5: 90 nop
f6: c9 leave
f7: c3 ret
000000f8 <main>:
int
main(void)
{
f8: 8d 4c 24 04 lea 0x4(%esp),%ecx
fc: 83 e4 f0 and $0xfffffff0,%esp
ff: ff 71 fc pushl -0x4(%ecx)
102: 55 push %ebp
103: 89 e5 mov %esp,%ebp
105: 51 push %ecx
106: 83 ec 04 sub $0x4,%esp
forktest();
109: e8 1b ff ff ff call 29 <forktest>
exit();
10e: e8 9c 02 00 00 call 3af <exit>
00000113 <stosb>:
"cc");
}
static inline void
stosb(void *addr, int data, int cnt)
{
113: 55 push %ebp
114: 89 e5 mov %esp,%ebp
116: 57 push %edi
117: 53 push %ebx
asm volatile("cld; rep stosb" :
118: 8b 4d 08 mov 0x8(%ebp),%ecx
11b: 8b 55 10 mov 0x10(%ebp),%edx
11e: 8b 45 0c mov 0xc(%ebp),%eax
121: 89 cb mov %ecx,%ebx
123: 89 df mov %ebx,%edi
125: 89 d1 mov %edx,%ecx
127: fc cld
128: f3 aa rep stos %al,%es:(%edi)
12a: 89 ca mov %ecx,%edx
12c: 89 fb mov %edi,%ebx
12e: 89 5d 08 mov %ebx,0x8(%ebp)
131: 89 55 10 mov %edx,0x10(%ebp)
"=D" (addr), "=c" (cnt) :
"0" (addr), "1" (cnt), "a" (data) :
"memory", "cc");
}
134: 90 nop
135: 5b pop %ebx
136: 5f pop %edi
137: 5d pop %ebp
138: c3 ret
00000139 <strcpy>:
#include "user.h"
#include "x86.h"
char*
strcpy(char *s, char *t)
{
139: 55 push %ebp
13a: 89 e5 mov %esp,%ebp
13c: 83 ec 10 sub $0x10,%esp
char *os;
os = s;
13f: 8b 45 08 mov 0x8(%ebp),%eax
142: 89 45 fc mov %eax,-0x4(%ebp)
while((*s++ = *t++) != 0)
145: 90 nop
146: 8b 45 08 mov 0x8(%ebp),%eax
149: 8d 50 01 lea 0x1(%eax),%edx
14c: 89 55 08 mov %edx,0x8(%ebp)
14f: 8b 55 0c mov 0xc(%ebp),%edx
152: 8d 4a 01 lea 0x1(%edx),%ecx
155: 89 4d 0c mov %ecx,0xc(%ebp)
158: 0f b6 12 movzbl (%edx),%edx
15b: 88 10 mov %dl,(%eax)
15d: 0f b6 00 movzbl (%eax),%eax
160: 84 c0 test %al,%al
162: 75 e2 jne 146 <strcpy+0xd>
;
return os;
164: 8b 45 fc mov -0x4(%ebp),%eax
}
167: c9 leave
168: c3 ret
00000169 <strcmp>:
int
strcmp(const char *p, const char *q)
{
169: 55 push %ebp
16a: 89 e5 mov %esp,%ebp
while(*p && *p == *q)
16c: eb 08 jmp 176 <strcmp+0xd>
p++, q++;
16e: 83 45 08 01 addl $0x1,0x8(%ebp)
172: 83 45 0c 01 addl $0x1,0xc(%ebp)
}
int
strcmp(const char *p, const char *q)
{
while(*p && *p == *q)
176: 8b 45 08 mov 0x8(%ebp),%eax
179: 0f b6 00 movzbl (%eax),%eax
17c: 84 c0 test %al,%al
17e: 74 10 je 190 <strcmp+0x27>
180: 8b 45 08 mov 0x8(%ebp),%eax
183: 0f b6 10 movzbl (%eax),%edx
186: 8b 45 0c mov 0xc(%ebp),%eax
189: 0f b6 00 movzbl (%eax),%eax
18c: 38 c2 cmp %al,%dl
18e: 74 de je 16e <strcmp+0x5>
p++, q++;
return (uchar)*p - (uchar)*q;
190: 8b 45 08 mov 0x8(%ebp),%eax
193: 0f b6 00 movzbl (%eax),%eax
196: 0f b6 d0 movzbl %al,%edx
199: 8b 45 0c mov 0xc(%ebp),%eax
19c: 0f b6 00 movzbl (%eax),%eax
19f: 0f b6 c0 movzbl %al,%eax
1a2: 29 c2 sub %eax,%edx
1a4: 89 d0 mov %edx,%eax
}
1a6: 5d pop %ebp
1a7: c3 ret
000001a8 <strlen>:
uint
strlen(char *s)
{
1a8: 55 push %ebp
1a9: 89 e5 mov %esp,%ebp
1ab: 83 ec 10 sub $0x10,%esp
int n;
for(n = 0; s[n]; n++)
1ae: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
1b5: eb 04 jmp 1bb <strlen+0x13>
1b7: 83 45 fc 01 addl $0x1,-0x4(%ebp)
1bb: 8b 55 fc mov -0x4(%ebp),%edx
1be: 8b 45 08 mov 0x8(%ebp),%eax
1c1: 01 d0 add %edx,%eax
1c3: 0f b6 00 movzbl (%eax),%eax
1c6: 84 c0 test %al,%al
1c8: 75 ed jne 1b7 <strlen+0xf>
;
return n;
1ca: 8b 45 fc mov -0x4(%ebp),%eax
}
1cd: c9 leave
1ce: c3 ret
000001cf <memset>:
void*
memset(void *dst, int c, uint n)
{
1cf: 55 push %ebp
1d0: 89 e5 mov %esp,%ebp
stosb(dst, c, n);
1d2: 8b 45 10 mov 0x10(%ebp),%eax
1d5: 50 push %eax
1d6: ff 75 0c pushl 0xc(%ebp)
1d9: ff 75 08 pushl 0x8(%ebp)
1dc: e8 32 ff ff ff call 113 <stosb>
1e1: 83 c4 0c add $0xc,%esp
return dst;
1e4: 8b 45 08 mov 0x8(%ebp),%eax
}
1e7: c9 leave
1e8: c3 ret
000001e9 <strchr>:
char*
strchr(const char *s, char c)
{
1e9: 55 push %ebp
1ea: 89 e5 mov %esp,%ebp
1ec: 83 ec 04 sub $0x4,%esp
1ef: 8b 45 0c mov 0xc(%ebp),%eax
1f2: 88 45 fc mov %al,-0x4(%ebp)
for(; *s; s++)
1f5: eb 14 jmp 20b <strchr+0x22>
if(*s == c)
1f7: 8b 45 08 mov 0x8(%ebp),%eax
1fa: 0f b6 00 movzbl (%eax),%eax
1fd: 3a 45 fc cmp -0x4(%ebp),%al
200: 75 05 jne 207 <strchr+0x1e>
return (char*)s;
202: 8b 45 08 mov 0x8(%ebp),%eax
205: eb 13 jmp 21a <strchr+0x31>
}
char*
strchr(const char *s, char c)
{
for(; *s; s++)
207: 83 45 08 01 addl $0x1,0x8(%ebp)
20b: 8b 45 08 mov 0x8(%ebp),%eax
20e: 0f b6 00 movzbl (%eax),%eax
211: 84 c0 test %al,%al
213: 75 e2 jne 1f7 <strchr+0xe>
if(*s == c)
return (char*)s;
return 0;
215: b8 00 00 00 00 mov $0x0,%eax
}
21a: c9 leave
21b: c3 ret
0000021c <gets>:
char*
gets(char *buf, int max)
{
21c: 55 push %ebp
21d: 89 e5 mov %esp,%ebp
21f: 83 ec 18 sub $0x18,%esp
int i, cc;
char c;
for(i=0; i+1 < max; ){
222: c7 45 f4 00 00 00 00 movl $0x0,-0xc(%ebp)
229: eb 42 jmp 26d <gets+0x51>
cc = read(0, &c, 1);
22b: 83 ec 04 sub $0x4,%esp
22e: 6a 01 push $0x1
230: 8d 45 ef lea -0x11(%ebp),%eax
233: 50 push %eax
234: 6a 00 push $0x0
236: e8 8c 01 00 00 call 3c7 <read>
23b: 83 c4 10 add $0x10,%esp
23e: 89 45 f0 mov %eax,-0x10(%ebp)
if(cc < 1)
241: 83 7d f0 00 cmpl $0x0,-0x10(%ebp)
245: 7e 33 jle 27a <gets+0x5e>
break;
buf[i++] = c;
247: 8b 45 f4 mov -0xc(%ebp),%eax
24a: 8d 50 01 lea 0x1(%eax),%edx
24d: 89 55 f4 mov %edx,-0xc(%ebp)
250: 89 c2 mov %eax,%edx
252: 8b 45 08 mov 0x8(%ebp),%eax
255: 01 c2 add %eax,%edx
257: 0f b6 45 ef movzbl -0x11(%ebp),%eax
25b: 88 02 mov %al,(%edx)
if(c == '\n' || c == '\r')
25d: 0f b6 45 ef movzbl -0x11(%ebp),%eax
261: 3c 0a cmp $0xa,%al
263: 74 16 je 27b <gets+0x5f>
265: 0f b6 45 ef movzbl -0x11(%ebp),%eax
269: 3c 0d cmp $0xd,%al
26b: 74 0e je 27b <gets+0x5f>
gets(char *buf, int max)
{
int i, cc;
char c;
for(i=0; i+1 < max; ){
26d: 8b 45 f4 mov -0xc(%ebp),%eax
270: 83 c0 01 add $0x1,%eax
273: 3b 45 0c cmp 0xc(%ebp),%eax
276: 7c b3 jl 22b <gets+0xf>
278: eb 01 jmp 27b <gets+0x5f>
cc = read(0, &c, 1);
if(cc < 1)
break;
27a: 90 nop
buf[i++] = c;
if(c == '\n' || c == '\r')
break;
}
buf[i] = '\0';
27b: 8b 55 f4 mov -0xc(%ebp),%edx
27e: 8b 45 08 mov 0x8(%ebp),%eax
281: 01 d0 add %edx,%eax
283: c6 00 00 movb $0x0,(%eax)
return buf;
286: 8b 45 08 mov 0x8(%ebp),%eax
}
289: c9 leave
28a: c3 ret
0000028b <stat>:
int
stat(char *n, struct stat *st)
{
28b: 55 push %ebp
28c: 89 e5 mov %esp,%ebp
28e: 83 ec 18 sub $0x18,%esp
int fd;
int r;
fd = open(n, O_RDONLY);
291: 83 ec 08 sub $0x8,%esp
294: 6a 00 push $0x0
296: ff 75 08 pushl 0x8(%ebp)
299: e8 51 01 00 00 call 3ef <open>
29e: 83 c4 10 add $0x10,%esp
2a1: 89 45 f4 mov %eax,-0xc(%ebp)
if(fd < 0)
2a4: 83 7d f4 00 cmpl $0x0,-0xc(%ebp)
2a8: 79 07 jns 2b1 <stat+0x26>
return -1;
2aa: b8 ff ff ff ff mov $0xffffffff,%eax
2af: eb 25 jmp 2d6 <stat+0x4b>
r = fstat(fd, st);
2b1: 83 ec 08 sub $0x8,%esp
2b4: ff 75 0c pushl 0xc(%ebp)
2b7: ff 75 f4 pushl -0xc(%ebp)
2ba: e8 48 01 00 00 call 407 <fstat>
2bf: 83 c4 10 add $0x10,%esp
2c2: 89 45 f0 mov %eax,-0x10(%ebp)
close(fd);
2c5: 83 ec 0c sub $0xc,%esp
2c8: ff 75 f4 pushl -0xc(%ebp)
2cb: e8 07 01 00 00 call 3d7 <close>
2d0: 83 c4 10 add $0x10,%esp
return r;
2d3: 8b 45 f0 mov -0x10(%ebp),%eax
}
2d6: c9 leave
2d7: c3 ret
000002d8 <atoi>:
// new atoi added 4/22/17 to be able to handle negative numbers
int
atoi(const char *s)
{
2d8: 55 push %ebp
2d9: 89 e5 mov %esp,%ebp
2db: 83 ec 10 sub $0x10,%esp
int n, sign;
n=0;
2de: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
while(*s==' ')s++;//Remove leading spaces
2e5: eb 04 jmp 2eb <atoi+0x13>
2e7: 83 45 08 01 addl $0x1,0x8(%ebp)
2eb: 8b 45 08 mov 0x8(%ebp),%eax
2ee: 0f b6 00 movzbl (%eax),%eax
2f1: 3c 20 cmp $0x20,%al
2f3: 74 f2 je 2e7 <atoi+0xf>
sign =(*s=='-')?-1 : 1;
2f5: 8b 45 08 mov 0x8(%ebp),%eax
2f8: 0f b6 00 movzbl (%eax),%eax
2fb: 3c 2d cmp $0x2d,%al
2fd: 75 07 jne 306 <atoi+0x2e>
2ff: b8 ff ff ff ff mov $0xffffffff,%eax
304: eb 05 jmp 30b <atoi+0x33>
306: b8 01 00 00 00 mov $0x1,%eax
30b: 89 45 f8 mov %eax,-0x8(%ebp)
if(*s=='+' || *s=='-')
30e: 8b 45 08 mov 0x8(%ebp),%eax
311: 0f b6 00 movzbl (%eax),%eax
314: 3c 2b cmp $0x2b,%al
316: 74 0a je 322 <atoi+0x4a>
318: 8b 45 08 mov 0x8(%ebp),%eax
31b: 0f b6 00 movzbl (%eax),%eax
31e: 3c 2d cmp $0x2d,%al
320: 75 2b jne 34d <atoi+0x75>
s++;
322: 83 45 08 01 addl $0x1,0x8(%ebp)
while('0' <= *s&&*s<='9')
326: eb 25 jmp 34d <atoi+0x75>
n = n*10 + *s++ - '0';
328: 8b 55 fc mov -0x4(%ebp),%edx
32b: 89 d0 mov %edx,%eax
32d: c1 e0 02 shl $0x2,%eax
330: 01 d0 add %edx,%eax
332: 01 c0 add %eax,%eax
334: 89 c1 mov %eax,%ecx
336: 8b 45 08 mov 0x8(%ebp),%eax
339: 8d 50 01 lea 0x1(%eax),%edx
33c: 89 55 08 mov %edx,0x8(%ebp)
33f: 0f b6 00 movzbl (%eax),%eax
342: 0f be c0 movsbl %al,%eax
345: 01 c8 add %ecx,%eax
347: 83 e8 30 sub $0x30,%eax
34a: 89 45 fc mov %eax,-0x4(%ebp)
n=0;
while(*s==' ')s++;//Remove leading spaces
sign =(*s=='-')?-1 : 1;
if(*s=='+' || *s=='-')
s++;
while('0' <= *s&&*s<='9')
34d: 8b 45 08 mov 0x8(%ebp),%eax
350: 0f b6 00 movzbl (%eax),%eax
353: 3c 2f cmp $0x2f,%al
355: 7e 0a jle 361 <atoi+0x89>
357: 8b 45 08 mov 0x8(%ebp),%eax
35a: 0f b6 00 movzbl (%eax),%eax
35d: 3c 39 cmp $0x39,%al
35f: 7e c7 jle 328 <atoi+0x50>
n = n*10 + *s++ - '0';
return sign*n;
361: 8b 45 f8 mov -0x8(%ebp),%eax
364: 0f af 45 fc imul -0x4(%ebp),%eax
}
368: c9 leave
369: c3 ret
0000036a <memmove>:
return n;
}
*/
void*
memmove(void *vdst, void *vsrc, int n)
{
36a: 55 push %ebp
36b: 89 e5 mov %esp,%ebp
36d: 83 ec 10 sub $0x10,%esp
char *dst, *src;
dst = vdst;
370: 8b 45 08 mov 0x8(%ebp),%eax
373: 89 45 fc mov %eax,-0x4(%ebp)
src = vsrc;
376: 8b 45 0c mov 0xc(%ebp),%eax
379: 89 45 f8 mov %eax,-0x8(%ebp)
while(n-- > 0)
37c: eb 17 jmp 395 <memmove+0x2b>
*dst++ = *src++;
37e: 8b 45 fc mov -0x4(%ebp),%eax
381: 8d 50 01 lea 0x1(%eax),%edx
384: 89 55 fc mov %edx,-0x4(%ebp)
387: 8b 55 f8 mov -0x8(%ebp),%edx
38a: 8d 4a 01 lea 0x1(%edx),%ecx
38d: 89 4d f8 mov %ecx,-0x8(%ebp)
390: 0f b6 12 movzbl (%edx),%edx
393: 88 10 mov %dl,(%eax)
{
char *dst, *src;
dst = vdst;
src = vsrc;
while(n-- > 0)
395: 8b 45 10 mov 0x10(%ebp),%eax
398: 8d 50 ff lea -0x1(%eax),%edx
39b: 89 55 10 mov %edx,0x10(%ebp)
39e: 85 c0 test %eax,%eax
3a0: 7f dc jg 37e <memmove+0x14>
*dst++ = *src++;
return vdst;
3a2: 8b 45 08 mov 0x8(%ebp),%eax
}
3a5: c9 leave
3a6: c3 ret
000003a7 <fork>:
name: \
movl $SYS_ ## name, %eax; \
int $T_SYSCALL; \
ret
SYSCALL(fork)
3a7: b8 01 00 00 00 mov $0x1,%eax
3ac: cd 40 int $0x40
3ae: c3 ret
000003af <exit>:
SYSCALL(exit)
3af: b8 02 00 00 00 mov $0x2,%eax
3b4: cd 40 int $0x40
3b6: c3 ret
000003b7 <wait>:
SYSCALL(wait)
3b7: b8 03 00 00 00 mov $0x3,%eax
3bc: cd 40 int $0x40
3be: c3 ret
000003bf <pipe>:
SYSCALL(pipe)
3bf: b8 04 00 00 00 mov $0x4,%eax
3c4: cd 40 int $0x40
3c6: c3 ret
000003c7 <read>:
SYSCALL(read)
3c7: b8 05 00 00 00 mov $0x5,%eax
3cc: cd 40 int $0x40
3ce: c3 ret
000003cf <write>:
SYSCALL(write)
3cf: b8 10 00 00 00 mov $0x10,%eax
3d4: cd 40 int $0x40
3d6: c3 ret
000003d7 <close>:
SYSCALL(close)
3d7: b8 15 00 00 00 mov $0x15,%eax
3dc: cd 40 int $0x40
3de: c3 ret
000003df <kill>:
SYSCALL(kill)
3df: b8 06 00 00 00 mov $0x6,%eax
3e4: cd 40 int $0x40
3e6: c3 ret
000003e7 <exec>:
SYSCALL(exec)
3e7: b8 07 00 00 00 mov $0x7,%eax
3ec: cd 40 int $0x40
3ee: c3 ret
000003ef <open>:
SYSCALL(open)
3ef: b8 0f 00 00 00 mov $0xf,%eax
3f4: cd 40 int $0x40
3f6: c3 ret
000003f7 <mknod>:
SYSCALL(mknod)
3f7: b8 11 00 00 00 mov $0x11,%eax
3fc: cd 40 int $0x40
3fe: c3 ret
000003ff <unlink>:
SYSCALL(unlink)
3ff: b8 12 00 00 00 mov $0x12,%eax
404: cd 40 int $0x40
406: c3 ret
00000407 <fstat>:
SYSCALL(fstat)
407: b8 08 00 00 00 mov $0x8,%eax
40c: cd 40 int $0x40
40e: c3 ret
0000040f <link>:
SYSCALL(link)
40f: b8 13 00 00 00 mov $0x13,%eax
414: cd 40 int $0x40
416: c3 ret
00000417 <mkdir>:
SYSCALL(mkdir)
417: b8 14 00 00 00 mov $0x14,%eax
41c: cd 40 int $0x40
41e: c3 ret
0000041f <chdir>:
SYSCALL(chdir)
41f: b8 09 00 00 00 mov $0x9,%eax
424: cd 40 int $0x40
426: c3 ret
00000427 <dup>:
SYSCALL(dup)
427: b8 0a 00 00 00 mov $0xa,%eax
42c: cd 40 int $0x40
42e: c3 ret
0000042f <getpid>:
SYSCALL(getpid)
42f: b8 0b 00 00 00 mov $0xb,%eax
434: cd 40 int $0x40
436: c3 ret
00000437 <sbrk>:
SYSCALL(sbrk)
437: b8 0c 00 00 00 mov $0xc,%eax
43c: cd 40 int $0x40
43e: c3 ret
0000043f <sleep>:
SYSCALL(sleep)
43f: b8 0d 00 00 00 mov $0xd,%eax
444: cd 40 int $0x40
446: c3 ret
00000447 <uptime>:
SYSCALL(uptime)
447: b8 0e 00 00 00 mov $0xe,%eax
44c: cd 40 int $0x40
44e: c3 ret
0000044f <halt>:
SYSCALL(halt)
44f: b8 16 00 00 00 mov $0x16,%eax
454: cd 40 int $0x40
456: c3 ret
00000457 <date>:
//Project additions
SYSCALL(date)
457: b8 17 00 00 00 mov $0x17,%eax
45c: cd 40 int $0x40
45e: c3 ret
0000045f <getuid>:
SYSCALL(getuid)
45f: b8 18 00 00 00 mov $0x18,%eax
464: cd 40 int $0x40
466: c3 ret
00000467 <getgid>:
SYSCALL(getgid)
467: b8 19 00 00 00 mov $0x19,%eax
46c: cd 40 int $0x40
46e: c3 ret
0000046f <getppid>:
SYSCALL(getppid)
46f: b8 1a 00 00 00 mov $0x1a,%eax
474: cd 40 int $0x40
476: c3 ret
00000477 <setuid>:
SYSCALL(setuid)
477: b8 1b 00 00 00 mov $0x1b,%eax
47c: cd 40 int $0x40
47e: c3 ret
0000047f <setgid>:
SYSCALL(setgid)
47f: b8 1c 00 00 00 mov $0x1c,%eax
484: cd 40 int $0x40
486: c3 ret
00000487 <getprocs>:
SYSCALL(getprocs)
487: b8 1d 00 00 00 mov $0x1d,%eax
48c: cd 40 int $0x40
48e: c3 ret
|
src/splash/splash_video_ram.asm | 1888games/golf | 1 | 172714 | <filename>src/splash/splash_video_ram.asm
; Top-hole Golf
; Copyright 2020-2021 <NAME>
!byte 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,3,147,3,5,188,203,149,140,69,4,9,69,3,200,8
!byte 3,3,3,230,110,6,6,19,3,3,6,3,3,3,6,3,3,3,3,3,3,3,3,3,5,5,3,3,181,203,5,94,56,5,78,69,84,197,52,8
!byte 3,3,3,227,6,227,230,6,3,3,6,3,3,3,230,3,3,3,3,3,3,3,3,3,3,3,3,11,203,3,3,3,56,9,149,94,14,227,158,200
!byte 3,3,3,3,230,230,230,19,19,230,230,19,230,22,6,230,22,3,3,3,3,3,3,3,3,3,3,203,12,3,3,3,56,3,11,188,227,227,233,137
!byte 3,3,3,230,230,6,6,230,230,3,6,6,6,110,230,230,110,3,3,3,3,3,3,3,3,3,203,188,3,3,3,3,60,195,11,12,3,59,201,152
!byte 3,3,3,110,230,19,97,6,3,22,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,203,203,3,3,3,3,3,60,3,11,203,3,11,251,200
!byte 3,3,230,230,3,6,6,3,6,230,22,193,28,12,3,3,3,3,3,4,228,100,14,3,203,203,3,3,3,3,3,3,131,195,11,11,227,59,243,200
!byte 3,3,230,6,6,22,230,22,230,230,6,3,26,162,110,230,110,3,3,228,4,54,1,161,171,230,14,3,3,3,3,14,131,60,11,11,3,12,57,200
!byte 14,6,6,227,227,230,3,230,230,6,3,193,35,2,38,235,3,35,227,14,14,174,234,1,14,54,3,99,3,110,110,3,60,5,11,227,14,91,201,8
!byte 230,12,54,230,6,54,3,99,99,99,12,236,54,38,6,182,190,186,2,2,2,226,46,42,58,54,54,6,52,3,54,70,140,5,91,107,86,91,9,8
!byte 3,6,230,12,12,6,6,230,12,12,3,54,206,14,6,14,6,98,46,162,58,38,70,6,54,54,6,54,100,70,70,86,88,181,91,203,203,12,184,9
!byte 5,5,5,5,5,5,5,5,5,5,5,5,229,108,235,11,11,107,14,5,110,14,14,14,14,14,14,5,14,14,14,9,8,9,201,107,182,182,140,9
!byte 5,5,5,5,5,5,5,5,5,5,5,5,5,14,6,14,6,235,11,5,5,5,5,5,5,5,5,5,5,5,13,137,8,9,89,11,11,149,201,9
!byte 5,5,5,5,5,5,5,5,5,5,5,5,5,30,15,6,9,6,185,5,5,5,5,5,5,5,5,5,5,217,137,218,168,123,91,89,149,203,201,9
!byte 5,5,5,5,5,5,5,5,5,5,5,5,5,31,15,111,9,9,9,5,5,5,5,5,5,5,5,5,5,152,152,10,154,151,185,11,9,200,8,9
!byte 5,5,5,5,5,5,5,5,5,5,5,5,5,15,8,15,9,9,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,197,201,8,168
!byte 5,5,5,5,5,5,5,5,5,5,5,5,5,15,15,15,9,8,185,5,5,5,5,5,5,5,5,5,5,5,5,10,218,152,133,165,200,138,184,10
!byte 121,120,5,5,5,5,5,5,5,5,5,5,5,5,8,159,248,251,155,5,5,5,5,5,5,5,5,5,5,5,215,157,137,152,181,157,217,157,189,169
!byte 133,137,5,5,5,5,5,5,5,5,5,5,5,133,15,8,149,251,11,5,5,5,9,9,12,197,5,5,5,5,5,13,157,215,5,5,5,5,5,5
!byte 5,9,9,5,5,5,5,5,5,5,5,5,15,8,245,5,181,11,11,5,5,5,9,5,5,201,5,5,5,5,5,5,5,5,5,5,5,5,5,5
!byte 5,5,9,9,9,9,5,5,5,5,5,191,88,245,8,5,191,11,5,5,5,9,217,9,5,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5
!byte 5,91,5,137,9,9,5,5,5,5,191,11,95,8,5,5,15,181,5,5,157,217,5,9,9,9,5,5,5,5,5,5,5,5,5,1,1,1,1,5
!byte 91,155,5,139,5,9,9,5,5,15,133,184,11,5,5,5,181,11,11,219,89,213,9,5,5,13,13,5,5,5,5,5,5,5,1,1,1,1,1,5
!byte 89,181,133,133,133,133,152,5,5,251,139,245,11,11,5,5,91,155,251,251,213,219,13,5,5,13,13,13,13,13,13,13,13,13,13,13,13,13,13,5
!byte 121,9,137,181,88,137,5,9,5,185,159,251,11,11,5,5,201,181,191,251,11,11,5,5,5,13,13,5,5,5,5,5,5,5,5,5,5,5,5,5
|
oeis/123/A123656.asm | neoneye/loda-programs | 11 | 105539 | <reponame>neoneye/loda-programs
; A123656: a(n) = 1 + n^4 + n^6.
; 3,81,811,4353,16251,47953,120051,266241,538003,1010001,1786203,3006721,4855371,7567953,11441251,16842753,24221091,34117201,47176203,64160001,85960603,113614161,148315731,191434753,244531251,309372753,387951931,482504961,595530603,729810001,888427203,1074790401,1292653891,1546140753,1839766251,2178461953,2567600571,3013021521,3521057203,4098560001,4752930003,5492143441,6324781851,7260061953,8307866251,9478774353,10784095011,12235898881,13847052003,15631250001,17603053003,19777921281,22172251611
add $0,1
pow $0,2
mov $1,$0
add $0,1
sub $2,$1
pow $2,2
mul $0,$2
add $0,1
|
4-high/gel/applet/tute/pong/1-basic_applet_window/launch_pong_tute.adb | charlie5/lace | 20 | 28616 | with
mmi.Window.setup,
mmi.Applet.gui_world,
mmi.Forge,
mmi.World,
mmi.Camera,
Physics;
pragma Unreferenced (mmi.Window.setup);
procedure launch_Pong_Tute
--
-- Basic pong game.
--
is
use mmi.Applet,
mmi.Applet.gui_world,
mmi.Math;
--- Applet
--
the_Applet : mmi.Applet.gui_world.view
:= mmi.Forge.new_gui_Applet (Named => "Pong",
window_Width => 800,
window_Height => 600,
space_Kind => physics.Box2d);
--- Controls
--
Cycle : Natural := 0;
begin
the_Applet.Camera.Site_is ((0.0, 0.0, 20.0));
--- Main loop.
--
while the_Applet.is_open
loop
Cycle := Cycle + 1;
the_Applet.World.evolve (by => 1.0 / 60.0); -- Advance the world by 1/60th of a second.
the_Applet.freshen; -- Handle any new events and update the screen.
end loop;
free (the_Applet);
end launch_Pong_Tute;
|
livelit-reasoning-principles.agda | hazelgrove/hazel-palette-agda | 4 | 4867 | <gh_stars>1-10
open import Nat
open import Prelude
open import List
open import core
open import contexts
open import typed-expansion
open import lemmas-freevars
module livelit-reasoning-principles where
record reasoning-principles (Φ : livelitctx)
(Γ : tctx)
(a : livelitname)
(dm : iexp)
(τsplice : typ)
(êsplice : uexp)
(eresult : eexp)
(τresult : typ) : Set where
field
π : livelitdef
domain : dom (Φ ₁) a
eexpanded : eexp
esplice : eexp
expanded-application-form : eresult == (eexpanded ·: τsplice ==> τresult) ∘ esplice
expansion-typing : (Γ ⊢ eresult => τresult) × (τresult == livelitdef.expansion-type π)
responsibility : Σ[ denc ∈ iexp ] (((livelitdef.expand π) ∘ dm) ⇓ denc × denc ↑ eexpanded)
splice-typing : Φ , Γ ⊢ êsplice ~~> esplice ⇐ τsplice × Γ ⊢ esplice <= τsplice
context-independence : free-vars (eexpanded ·: τsplice ==> τresult) == []
livelit-reasoning-principles : ∀{Φ Γ a dm τsplice psplice eresult τresult u} →
Φ , Γ ⊢ $ a ⟨ dm ⁏ (τsplice , psplice) :: [] ⟩[ u ] ~~> eresult ⇒ τresult →
reasoning-principles Φ Γ a dm τsplice psplice eresult τresult
livelit-reasoning-principles h@(SPEApLivelit {dm = dm} {π} {denc} {eexpanded} {esplice = esplice} x x₁ x₂ x₃ x₄ x₅ x₆ x₇) =
record
{ π = π
; domain = _ , x₂
; eexpanded = eexpanded
; esplice = esplice
; expanded-application-form = refl
; expansion-typing = typed-expansion-synth h , refl
; responsibility = denc , x₄ , x₅
; splice-typing = x₆ , typed-expansion-ana x₆
; context-independence = ∅∈l→l==[] (λ x → fv-lemma-ana refl x₇)
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.