Lines Matching refs:lowmem
65 // real mode code chunk, will be placed into lowmem buffer
538 void *lowmem = lowmem_buf;
577 printf("lowmem buffer too small: size %u, needed %u\n", lowmem_size, u + code_size);
581 memcpy(lowmem + REALMODE_BUF_SIZE, realmode_callback_start,
585 *(uint16_t *) (lowmem + REALMODE_BUF_SIZE) = REALMODE_BUF_SIZE;
586 *(uint16_t *) (lowmem + REALMODE_BUF_SIZE + 2) = (uint32_t) lowmem >> 4;
588 gfx_config.bootloader_seg = ((uint32_t) lowmem + REALMODE_BUF_SIZE) >> 4;
591 lowmem += u;
594 memcpy(lowmem, archive + file_start + code_start, code_size);
596 gfx_config.mem0_start = (uint32_t) lowmem + code_size;
597 gfx_config.mem0_end = (uint32_t) lowmem + lowmem_size;
609 gfx.code_seg = (uint32_t) lowmem >> 4;
612 gfx.jmp_table[u] = (gfx.code_seg << 16) + *(uint16_t *) (lowmem + 2 * u);