Lines Matching +full:ecx +full:- +full:2000

2  * Copyright (c) 2000 John Baldwin
33 * separate PXE-aware client just to load the loader.
66 .set SEL_SCODE,0x18 # PM-32 code
67 .set SEL_SCODE16,0x20 # PM-16 code
93 andl $0xffff, %ecx # clear upper words
94 andl $0xffff, %ebx # of %ebx and %ecx
95 shll $4, %ecx # calculate the offset of
96 addl %ebx, %ecx # the PXENV+ struct and
97 pushl %ecx # save it on the stack
98 movw $welcome_msg, %si # %ds:(%si) -> welcome message
103 movw $bootinfo_msg, %si # %ds:(%si) -> boot args message
105 movw $MEM_ARG, %bx # %ds:(%bx) -> boot args
106 movw %bx, %di # %es:(%di) -> boot args
108 movw $(MEM_ARG_SIZE/4), %cx # Size of arguments in 32-bit
112 orb $KARGS_FLAGS_PXE, 0x8(%bx) # kargs->bootflags |=
114 popl 0xc(%bx) # kargs->pxeinfo = *PXENV+
144 movl end+AOUT_TEXT, %ecx # %ecx = length of the text
152 # instruction pre-fetch queue
159 addl $(MEM_PAGE_SIZE - 1), %edi # pad %edi out to a new page
160 andl $~(MEM_PAGE_SIZE - 1), %edi # for the data segment
161 movl end+AOUT_DATA, %ecx # size of the data segment
164 movl end+AOUT_BSS, %ecx # size of the bss
166 addb $3, %cl # round %ecx up to
167 shrl $2, %ecx # a multiple of 4
170 movl end+AOUT_ENTRY, %esi # %esi -> relocated loader
171 addl $MEM_BTX_OFFSET, %esi # %esi -> BTX in the loader
172 movl $MEM_BTX_ADDRESS, %edi # %edi -> where BTX needs to go
173 movzwl 0xa(%esi), %ecx # %ecx -> length of BTX
176 ljmp $SEL_SCODE16,$pm_16 # Jump to 16-bit PM
185 # instruction pre-fetch queue
195 movw $(btx_client_end-btx_client), %cx # length of btx client
220 * Display a null-terminated string
235 * legacy-free and simply doesn't have a keyboard controller.
259 btx_client: movl $(MEM_ARG_BTX-MEM_BTX_CLIENT+MEM_ARG_SIZE-4), %esi
260 # %ds:(%esi) -> end
262 movl $(MEM_ARG_SIZE/4), %ecx # Number of words to push
268 pushl MEM_ARG_BTX-MEM_BTX_CLIENT+MEM_ARG_SIZE # Entry point of
283 .word 0xffff,0x0,0x9a00,0xcf # SEL_SCODE (32-bit)
284 .word 0xffff,0x0,0x9a00,0x8f # SEL_SCODE16 (16-bit)
287 * Pseudo-descriptors.
289 gdtdesc: .word gdt.1-gdt-1 # Limit