-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathbochs
More file actions
executable file
·23 lines (18 loc) · 742 Bytes
/
bochs
File metadata and controls
executable file
·23 lines (18 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#=================================================================================
# Copyright (C) Andrzej Adamczyk (at https://blackdev.org/). All rights reserved.
#=================================================================================
# default CPU count: 2
SMP="${1}"
if [ -z "${SMP}" ]; then SMP="2"; fi
# default Memory amount: 64 MiB
MEM="${2}"
if [ -z "${MEM}" ]; then MEM="64"; fi
# generate Bochs configuration file
cp -f tools/linux.bxrc build/linux.bxrc
sed -e "s|SMP|${SMP}|g" -i build/linux.bxrc
sed -e "s|MEM|${MEM}|g" -i build/linux.bxrc
# start Bochs Debugger with predefinied configuration file
/opt/bochs-dbg/bin/bochs -f build/linux.bxrc -q -rc tools/bochs.rc
# show debug output
cat serial.log