소스 검색

Merge pull request #287 from ruthgrace/bootstrap_2_heap_init

fixed grammar in linux-bootstrap-2.md, Heap Initialization section
0xAX 9 년 전
부모
커밋
aefea69c9e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Booting/linux-bootstrap-2.md

+ 1 - 1
Booting/linux-bootstrap-2.md

@@ -331,7 +331,7 @@ Then there is the `heap_end` calculation:
 ```c
 	heap_end = (char *)((size_t)boot_params.hdr.heap_end_ptr + 0x200);
 ```
-which means `heap_end_ptr` or `_end` + `512`(`0x200h`). And at the last is checked that whether `heap_end` is greater than `stack_end`. If it is then `stack_end` is assigned to `heap_end` to make them equal.
+which means `heap_end_ptr` or `_end` + `512`(`0x200h`). The last check is whether `heap_end` is greater than `stack_end`. If it is then `stack_end` is assigned to `heap_end` to make them equal.
 
 Now the heap is initialized and we can use it using the `GET_HEAP` method. We will see how it is used, how to use it and how the it is implemented in the next posts.