mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
Kernel: Add a kernel boot parameter to force PIO mode
Also added an option in the run script to force PIO operation mode with the IDE controller. In addition, we're no longer limited to PIIX3 and PIIX4 chipsets for DMA
This commit is contained in:
parent
d76fb99403
commit
4fe2ee0221
5 changed files with 32 additions and 23 deletions
11
Kernel/run
11
Kernel/run
|
@ -51,13 +51,18 @@ elif [ "$1" = "qgrub" ]; then
|
|||
$SERENITY_PACKET_LOGGING_ARG \
|
||||
-netdev user,id=breh,hostfwd=tcp:127.0.0.1:8888-10.0.2.15:8888,hostfwd=tcp:127.0.0.1:8823-10.0.2.15:23 \
|
||||
-device e1000,netdev=breh
|
||||
elif [ "$1" = "qtext" ]; then
|
||||
# ./run: qemu with serenity in text mode
|
||||
elif [ "$1" = "qcmd" ]; then
|
||||
SERENITY_KERNEL_CMDLINE=""
|
||||
for (( i=2; i<=$#; i++)); do
|
||||
SERENITY_KERNEL_CMDLINE+="${!i} "
|
||||
done
|
||||
echo "Starting SerenityOS, Commandline: ${SERENITY_KERNEL_CMDLINE}"
|
||||
# ./run: qemu with serenity with custom commandline
|
||||
$SERENITY_QEMU_BIN \
|
||||
$SERENITY_COMMON_QEMU_ARGS \
|
||||
-device e1000 \
|
||||
-kernel kernel \
|
||||
-append "${SERENITY_KERNEL_CMDLINE} text_debug"
|
||||
-append "${SERENITY_KERNEL_CMDLINE}"
|
||||
else
|
||||
# ./run: qemu with user networking
|
||||
$SERENITY_QEMU_BIN \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue