From deefd138dddcc41c76c687ed6d7c5d7188f2454f Mon Sep 17 00:00:00 2001 From: Akash Shende Date: Sun, 18 Jan 2015 09:43:25 +0530 Subject: [PATCH] Fixed a spelling mistake and decorated CONTRIBUTING.md --- CONTRIBUTING.md | 14 +++++++------- linux-bootstrap-2.md | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c1d75e3..562680c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,19 +5,19 @@ If you want to contribute to the [linux-insides](https://github.com/0xAX/linux-i 1. Press fork button: -![fork](http://oi58.tinypic.com/jj2trm.jpg) + ![fork](http://oi58.tinypic.com/jj2trm.jpg) 2. Clone the repo from your account with: -``` -git clone git@github.com:your_github_username/linux-insides.git -``` + ``` + git clone git@github.com:your_github_username/linux-insides.git + ``` 3. Create branch with: -``` -git checkout -b "linux-bootstrap-1-fix" -``` + ``` + git checkout -b "linux-bootstrap-1-fix" + ``` 4. Make your changes. diff --git a/linux-bootstrap-2.md b/linux-bootstrap-2.md index bd039ac..fc044d2 100644 --- a/linux-bootstrap-2.md +++ b/linux-bootstrap-2.md @@ -170,7 +170,7 @@ Implementation of the `memcpy` is easy. At first, it pushes values from `si` and memcpy(&boot_params.hdr, &hdr, sizeof hdr); ``` -So `ax` will contain address of the `boot_params.hdr`, `dx` will contatin address of the `hdr` and `cx` will contatin size of the `hdr` in bytes. memcpy puts address of `boot_params.hdr` to the `di` register and address of `hdr` to `si` and saves size in stack. After this it shifts to the right on 2 size (or divide on 4) and copies from `si` to `di` by 4 bytes. After it we restore size of `hdr` again, align it by 4 bytes and copy rest of bytes from `si` to `di` by one byte (if there is rest). Restore `si` and `di` values from the stack in the end and after this copying finished. +So `ax` will contain address of the `boot_params.hdr`, `dx` will contain address of the `hdr` and `cx` will contain size of the `hdr` in bytes. memcpy puts address of `boot_params.hdr` to the `di` register and address of `hdr` to `si` and saves size in stack. After this it shifts to the right on 2 size (or divide on 4) and copies from `si` to `di` by 4 bytes. After it we restore size of `hdr` again, align it by 4 bytes and copy rest of bytes from `si` to `di` by one byte (if there is rest). Restore `si` and `di` values from the stack in the end and after this copying finished. Console initialization --------------------------------------------------------------------------------