Changeset 11485dec in mainline
- Timestamp:
- 2005-07-26T19:58:32Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 117183b
- Parents:
- e2e56fa9
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/boot/memmap.S
re2e56fa9 r11485dec 49 49 movw %bx,%es 50 50 movw $e820table,%di 51 movb $E820_MAX_RECORDS, (e820counter)51 movb $E820_MAX_RECORDS,e820counter 52 52 e820loop: 53 53 movl $E820_SMAP,%edx # control sequence "SMAP" … … 68 68 movw %ax,%di 69 69 70 decb (e820counter)# buffer is full70 decb e820counter # buffer is full 71 71 jz e820end 72 72 … … 76 76 e820end: 77 77 movb $E820_MAX_RECORDS,%al 78 subb (e820counter),%al79 movb %al, (e820counter)# store # of valid entries in e820counter78 subb e820counter,%al 79 movb %al,e820counter # store # of valid entries in e820counter 80 80 81 81 jmp e801begin 82 82 83 83 e820err: 84 movb $0, (e820counter)84 movb $0,e820counter 85 85 86 86 # method e801 - get size of memory … … 110 110 andl $0xffff,%ecx 111 111 addl %ecx,%edx 112 addl $0x0400,%edx # add lower 1 MB - it s not countby e801 method113 movl %edx, (e801memorysize)112 addl $0x0400,%edx # add lower 1 MB - it's not included by e801 method 113 movl %edx,e801memorysize 114 114 e801end: 115 115 ret -
arch/ia32/src/mm/memory_init.c
re2e56fa9 r11485dec 32 32 size_t get_memory_size(void) 33 33 { 34 return e801memorysize ;34 return e801memorysize*1024; 35 35 } 36 36 -
src/main/main.c
re2e56fa9 r11485dec 136 136 137 137 smp_init(); 138 printf("config.memory_size=%dM\n", config.memory_size/(1024*1024)); 138 139 printf("config.cpu_count=%d\n", config.cpu_count); 139 140
Note:
See TracChangeset
for help on using the changeset viewer.