|
|
1.1 root 1: /*
2: Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
3:
4: Governed by the TrueCrypt License 2.4 the full text of which is contained
5: in the file License.txt included in TrueCrypt binary and source code
6: distribution packages.
7: */
8:
1.1.1.2 ! root 9: // Total memory required (CODE + DATA + BSS + STACK + 0x100) in KBytes - determined from linker map.
! 10: #define TC__BOOT_MEMORY_REQUIRED 42
1.1 root 11:
12: // Windows Vista boot loader uses memory up to 8000:FFFF, disregarding the BIOS memory map and the amount
13: // of available memory at 0:0413. Therefore, the code has to be loaded at or above 9000:0000.
14:
15: // Modifying this value can introduce incompatibility with previous versions
16: #define TC__BOOT_LOADER_SEGMENT TC_HEX (9000)
17: #define TC__BOOT_LOADER_OFFSET TC_HEX (100) // COM executable offset
18:
19: #define TC__BOOT_LOADER_LOWMEM_SEGMENT TC_HEX (2000)
20: #define TC__BOOT_LOADER_BUFFER_SEGMENT TC_HEX (5000)
21:
22: #define TC__BOOT_LOADER_AREA_SECTOR_COUNT 63
23:
24: #define TC__BOOT_SECTOR_CONFIG_OFFSET 439 // Last byte reserved for boot loader
25:
26: #ifdef TC_ASM_PREPROCESS
27:
28: #define TC_HEX(N) 0##N##h
29:
30: TC_BOOT_MEMORY_REQUIRED = TC__BOOT_MEMORY_REQUIRED
31: TC_BOOT_LOADER_SEGMENT = TC__BOOT_LOADER_SEGMENT
32: TC_BOOT_LOADER_OFFSET = TC__BOOT_LOADER_OFFSET
33: TC_BOOT_LOADER_LOWMEM_SEGMENT = TC__BOOT_LOADER_LOWMEM_SEGMENT
34: TC_BOOT_LOADER_AREA_SECTOR_COUNT = TC__BOOT_LOADER_AREA_SECTOR_COUNT
35: TC_BOOT_SECTOR_CONFIG_OFFSET = TC__BOOT_SECTOR_CONFIG_OFFSET
36:
37: #else
38:
39: #define TC_HEX(N) 0x##N
40:
41: #define TC_BOOT_MEMORY_REQUIRED TC__BOOT_MEMORY_REQUIRED
42: #define TC_BOOT_LOADER_SEGMENT TC__BOOT_LOADER_SEGMENT
43: #define TC_BOOT_LOADER_OFFSET TC__BOOT_LOADER_OFFSET
44: #define TC_BOOT_LOADER_LOWMEM_SEGMENT TC__BOOT_LOADER_LOWMEM_SEGMENT
45: #define TC_BOOT_LOADER_BUFFER_SEGMENT TC__BOOT_LOADER_BUFFER_SEGMENT
46: #define TC_BOOT_LOADER_AREA_SECTOR_COUNT TC__BOOT_LOADER_AREA_SECTOR_COUNT
47: #define TC_BOOT_SECTOR_CONFIG_OFFSET TC__BOOT_SECTOR_CONFIG_OFFSET
48:
49: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.