mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Merge pull request #56 from phil-opp/qemu-warning
Specify `raw` ISO format explicitely to avoid QEMU warning
This commit is contained in:
2
Makefile
2
Makefile
@@ -33,7 +33,7 @@ clean:
|
|||||||
@rm -rf build
|
@rm -rf build
|
||||||
|
|
||||||
run: $(iso)
|
run: $(iso)
|
||||||
@qemu-system-x86_64 -hda $(iso)
|
@qemu-system-x86_64 -drive format=raw,file=$(iso)
|
||||||
|
|
||||||
iso: $(iso)
|
iso: $(iso)
|
||||||
|
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ Now it's time to boot our OS. We will use [QEMU]:
|
|||||||
[QEMU]: https://en.wikipedia.org/wiki/QEMU
|
[QEMU]: https://en.wikipedia.org/wiki/QEMU
|
||||||
|
|
||||||
```
|
```
|
||||||
qemu-system-x86_64 -hda os.iso
|
qemu-system-x86_64 -drive format=raw,file=os.iso
|
||||||
```
|
```
|
||||||

|

|
||||||
|
|
||||||
@@ -263,7 +263,7 @@ clean:
|
|||||||
@rm -r build
|
@rm -r build
|
||||||
|
|
||||||
run: $(iso)
|
run: $(iso)
|
||||||
@qemu-system-x86_64 -hda $(iso)
|
@qemu-system-x86_64 -drive format=raw,file=$(iso)
|
||||||
|
|
||||||
iso: $(iso)
|
iso: $(iso)
|
||||||
|
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ Such a boot loop is most likely caused by some [CPU exception][exception table].
|
|||||||
[Triple Fault]: http://wiki.osdev.org/Triple_Fault
|
[Triple Fault]: http://wiki.osdev.org/Triple_Fault
|
||||||
|
|
||||||
```
|
```
|
||||||
> qemu-system-x86_64 -d int -no-reboot -hda build/os-x86_64.iso
|
> qemu-system-x86_64 -d int -no-reboot -drive format=raw,file=build/os-x86_64.iso
|
||||||
SMM: enter
|
SMM: enter
|
||||||
...
|
...
|
||||||
SMM: after RSM
|
SMM: after RSM
|
||||||
|
|||||||
Reference in New Issue
Block a user