summaryrefslogtreecommitdiff
path: root/Kernel/run
diff options
context:
space:
mode:
authorsupercomputer7 <liavalb@gmail.com>2019-11-13 19:29:16 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-11-13 18:30:25 +0100
commit4fe2ee0221ee8bf457fe2b20b095b1b1af520b86 (patch)
tree550596d79feb8fbad18496764ed18717d256a2f3 /Kernel/run
parentd76fb9940305106367172f23eb3eb0b300180dfb (diff)
downloadserenity-4fe2ee0221ee8bf457fe2b20b095b1b1af520b86.zip
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
Diffstat (limited to 'Kernel/run')
-rwxr-xr-xKernel/run11
1 files changed, 8 insertions, 3 deletions
diff --git a/Kernel/run b/Kernel/run
index dc02ed80dc..a245b28f92 100755
--- a/Kernel/run
+++ b/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 \