mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2024-10-27 20:34:19 +00:00
commit
622f6e75f5
@ -34,7 +34,7 @@ we implement the boot sequence for a different machine.
|
|||||||
There are more switches for the `CFLAGS` on the `Makefile`, since we will now
|
There are more switches for the `CFLAGS` on the `Makefile`, since we will now
|
||||||
start creating higher-level functions for our C library and we don't want
|
start creating higher-level functions for our C library and we don't want
|
||||||
the compiler to include any external code if we make a mistake with a declaration.
|
the compiler to include any external code if we make a mistake with a declaration.
|
||||||
We also added some flags to turn warnings into errors, since an apparantly minor mistake
|
We also added some flags to turn warnings into errors, since an apparently minor mistake
|
||||||
converting pointers can blow up later on. This also forced us to modify some misc pointer
|
converting pointers can blow up later on. This also forced us to modify some misc pointer
|
||||||
declarations in our code.
|
declarations in our code.
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ We add `-ffreestanding` when compiling `.o` files, which includes `kernel_entry
|
|||||||
Before, we disabled libgcc (not libc) through the use of `-nostdlib` and we didn't re-enable
|
Before, we disabled libgcc (not libc) through the use of `-nostdlib` and we didn't re-enable
|
||||||
it for linking. Since this is tricky, we'll delete `-nostdlib`
|
it for linking. Since this is tricky, we'll delete `-nostdlib`
|
||||||
|
|
||||||
`-nostdinc` was also pased to gcc, but we will need it for step 3, so let's delete it.
|
`-nostdinc` was also passed to gcc, but we will need it for step 3, so let's delete it.
|
||||||
|
|
||||||
|
|
||||||
2. kernel.c `main()` function
|
2. kernel.c `main()` function
|
||||||
|
Loading…
Reference in New Issue
Block a user