Changes between 16 March 2010 - 6 April 2010

Mutex system call fixed for multiple contenders
Userspace irq support extended to keyboard/mouse.
Scheduler modified for real-time irq tasks
This commit is contained in:
Bahadir Balban
2010-04-06 19:47:12 +03:00
parent 1a62b92a8d
commit 403a038845
75 changed files with 1137 additions and 579 deletions

View File

@@ -23,12 +23,13 @@ from config.configuration import *
map_list = (['EB', 'ARM1136', 'realview-eb', 'arm1136'],
['EB', 'ARM11MPCORE', 'realview-eb-mpcore', 'arm11mpcore'],
['EB', 'CORTEXA8', 'realview-eb', 'cortex-a8'],
['EB', 'CORTEXA9', 'realview-pbx-a9', 'cortex-a9'],
['PB926', 'ARM926', 'versatilepb', 'arm926'],
['BEAGLE', 'CORTEXA8', 'beagle', 'cortex-a8'],
['PBA9', 'CORTEXA9', 'realview-pbx-a9', 'cortex-a9'],
['PBA8', 'CORTEXA8', 'realview-pb-a8', 'cortex-a8'])
data = \
data_up = \
'''
cd build
qemu-system-arm -s -S -kernel final.elf -nographic -M %s -cpu %s &
@@ -36,6 +37,14 @@ arm-none-insight ; pkill qemu-system-arm
cd ..
'''
data_smp = \
'''
cd build
qemu-system-arm -s -S -kernel final.elf -smp %d -nographic -M %s -cpu %s &
arm-none-insight ; pkill qemu-system-arm
cd ..
'''
def build_qemu_cmdline_script():
build_tools_folder = 'tools'
qemu_cmd_file = join(build_tools_folder, 'run-qemu-insight')
@@ -44,10 +53,14 @@ def build_qemu_cmdline_script():
config = configuration_retrieve()
cpu = config.cpu.upper()
platform = config.platform.upper()
smp = config.smp
ncpu = config.ncpu
# Find appropriate flags
for platform_type, cpu_type, mflag, cpuflag in map_list:
for platform_type, cpu_type, m_flag, cpu_flag in map_list:
if platform_type == platform and cpu_type == cpu:
mflag = m_flag
cpuflag = cpu_flag
break
if not mflag or not cpuflag:
@@ -57,9 +70,16 @@ def build_qemu_cmdline_script():
if os.path.exists(build_tools_folder) is False:
os.system("mkdir " + build_tools_folder)
# Special case for EB+A9(non-smp)
if platform == 'EB' and cpu == 'CORTEXA9' and smp == False:
mflag = 'realview-eb'
# Write run-qemu-insight file
with open(qemu_cmd_file, 'w+') as f:
f.write(data % (mflag, cpuflag))
if smp == False:
f.write(data_up % (mflag, cpuflag))
else:
f.write(data_smp % (ncpu, mflag, cpuflag))
os.system("chmod +x " + qemu_cmd_file)