Removed all ignorable files from git.

Previously python hex() would put an extra 'L' after printing out the
value and this would be trimmed in readelf.py. Now it doesn't seem to
do that so the lsd of the number was trimmed. This patch fixes that.
This commit is contained in:
Bahadir Balban
2008-01-14 12:23:40 +00:00
parent e2b791a3d8
commit 7a388f22b7
31 changed files with 20 additions and 178 deletions

View File

@@ -1,45 +0,0 @@
/* Automatically generated, don't edit */
/* Generated on: bahadir-desktop */
/* At: Sun, 13 Jan 2008 12:03:34 +0000 */
/* Linux version 2.6.22-14-generic (buildd@terranova) (gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Tue Dec 18 08:02:57 UTC 2007 */
/* L4 Project Kernel Configurator */
/* Main architecture */
#undef ARCH_TEST
#define ARCH_ARM 1
/* ARM Architecture Configuration */
/* ARM Processor Type */
#undef ARM_CPU_ARM920T
#define ARM_CPU_ARM926 1
#undef ARM_CPU_ARM925
/* ARM Architecture Family */
#define ARM_SUBARCH_V5 1
#undef ARM_SUBARCH_V6
/* ARM Platform Type */
#undef ARM_PLATFORM_EB
#undef ARM_PLATFORM_AB926
#define ARM_PLATFORM_PB926 1
/* Platform Drivers */
#define DRIVER_UART_PL011 1
#define DRIVER_TIMER_SP804 1
#define DRIVER_IRQCTRL_PL190 1
#undef DUMMY
/* That's all, folks! */
/* Symbols derived from this file by SConstruct\derive_symbols() */
#define __ARCH__ arm
#define __PLATFORM__ pb926
#define __SUBARCH__ v5

View File

@@ -1,17 +0,0 @@
/*
* The next free p_align'ed LMA base address
*
* p_align = 0x8000
*
* Recap from ELF spec: p_align: Loadable process segments must have
* congruent values for p_vaddr and p_offset, modulo the page size.
* This member gives the value to which the segments are aligned in
* memory and in the file. Values 0 and 1 mean that no alignment is
* required. Otherwise, p_align should be a positive, integral power
* of 2, and p_addr should equal p_offset, modulo p_align.
* This essentially means next available address must be aligned at
* p_align, rather than the page_size, which one (well, I) would
* normally expect.
*/
physical_base = 0x3000;

View File

@@ -1,23 +0,0 @@
struct bootdesc bootdesc = {
.desc_size = sizeof(struct bootdesc) + sizeof(struct svc_image) * 3,
.total_images = 3,
.images = {
[0] = {
.name = "mm0",
.phys_start = 0x208000,
.phys_end = 0x213140,
},
[1] = {
.name = "test0",
.phys_start = 0x218000,
.phys_end = 0x21aedc,
},
[2] = {
.name = "romfs",
.phys_start = 0x220000,
.phys_end = 0x268800,
},
},
};

View File

@@ -1,3 +0,0 @@
fs0
image_start 0x218000
image_end 0x21B26C

View File

@@ -1,3 +0,0 @@
inittask
image_start 0x208000
image_end 0x213260

View File

@@ -1,3 +0,0 @@
mm0
image_start 0x208000
image_end 0x213140

View File

@@ -1,3 +0,0 @@
romfs
image_start 0x220000
image_end 0x268800

View File

@@ -1,3 +0,0 @@
roottask
image_start 0x218000
image_end 0x21B344

View File

@@ -1,3 +0,0 @@
start
image_start 0x100000
image_end 0x205800

View File

@@ -1,3 +0,0 @@
test0
image_start 0x218000
image_end 0x21AEDC

View File

@@ -1,3 +0,0 @@
testtask
image_start 0x220000
image_end 0x223344

View File

@@ -12,7 +12,6 @@
#include INC_GLUE(memory.h)
#include INC_GLUE(memlayout.h)
#include INC_ARCH(bootdesc.h)
#include <vm_area.h>
struct initdata {
struct bootdesc *bootdesc;

View File

@@ -21,11 +21,6 @@ void wait_pager(l4id_t partner)
printf("Pager synced with us.\n");
}
void fs_request_handler(struct fs_request *fsreq)
{
}
void handle_fs_requests(void)
{
u32 mr[MR_UNUSED_TOTAL];

View File

@@ -8,7 +8,7 @@
#include <kdata.h>
#include <string.h>
#include INC_API(kip.h)
#include <kmalloc/kmalloc.h>
#include <task.h>
/* Kernel data acquired during initialisation */
struct initdata initdata;

View File

@@ -14,8 +14,6 @@ void wait_task(l4id_t partner)
void mount_root(void)
{
l4id_t blkdev_shmid;
/*
* We know the primary block device from compile-time.
* It is expected to have the root filesystem.
@@ -23,6 +21,5 @@ void mount_root(void)
wait_task(BLKDEV_TID);
/* Set up a shared memory area with the block device */
l4_receive_shm(
}

View File

@@ -12,6 +12,7 @@
#include INC_GLUE(memlayout.h)
#include INC_SUBARCH(mm.h)
#include <l4lib/arch/syscalls.h>
#include <l4lib/arch/syslib.h>
#include <l4/lib/list.h>
#include <kmalloc/kmalloc.h>
#include <mm/alloc_page.h>

View File

@@ -10,6 +10,7 @@
#include <l4/types.h>
#include <l4/lib/list.h>
#include <l4lib/arch/syscalls.h>
#include <l4lib/arch/syslib.h>
#include "alloc_page.h"
#include INC_GLUE(memory.h)
#include INC_SUBARCH(mm.h)

View File

@@ -1,17 +0,0 @@
/*
* The next free p_align'ed LMA base address
*
* p_align = 0x8000
*
* Recap from ELF spec: p_align: Loadable process segments must have
* congruent values for p_vaddr and p_offset, modulo the page size.
* This member gives the value to which the segments are aligned in
* memory and in the file. Values 0 and 1 mean that no alignment is
* required. Otherwise, p_align should be a positive, integral power
* of 2, and p_addr should equal p_offset, modulo p_align.
* This essentially means next available address must be aligned at
* p_align, rather than the page_size, which one (well, I) would
* normally expect.
*/
physical_base = 0x20800;

View File

@@ -87,12 +87,12 @@ void handle_requests(void)
}
case L4_IPC_TAG_MUNMAP: {
/* TODO: Use arg struct instead */
sys_munmap(sender, (void *)mr[0], (int)mr[1]);
// sys_munmap(sender, (void *)mr[0], (int)mr[1]);
break;
}
case L4_IPC_TAG_MSYNC: {
/* TODO: Use arg struct instead */
sys_msync(sender, (void *)mr[0], (int)mr[1], (int)mr[2]);
// sys_msync(sender, (void *)mr[0], (int)mr[1], (int)mr[2]);
break;
}
default:

View File

@@ -1,17 +0,0 @@
/*
* The next free p_align'ed LMA base address
*
* p_align = 0x8000
*
* Recap from ELF spec: p_align: Loadable process segments must have
* congruent values for p_vaddr and p_offset, modulo the page size.
* This member gives the value to which the segments are aligned in
* memory and in the file. Values 0 and 1 mean that no alignment is
* required. Otherwise, p_align should be a positive, integral power
* of 2, and p_addr should equal p_offset, modulo p_align.
* This essentially means next available address must be aligned at
* p_align, rather than the page_size, which one (well, I) would
* normally expect.
*/
physical_base = 0x3000;

View File

@@ -28,7 +28,7 @@ void main(void)
wait_pager(0);
/* Check mmap/munmap */
mmaptest();
// mmaptest();
/* Check shmget/shmat/shmdt */
shmtest();

View File

@@ -14,7 +14,7 @@ task_name = "test1"
# The root directory of the repository where this file resides:
project_root = "../.."
tools_root = join(project_root, "tools")
prev_image = join(project_root, "tasks/mm0/mm0.axf")
prev_image = join(project_root, "tasks/test0/test0.axf")
libs_path = join(project_root, "libs")
ld_script = "include/linker.lds"
physical_base_ld_script = "include/physical_base.lds"

1
tasks/test1/include/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
physical_base.lds

View File

@@ -1,17 +0,0 @@
/*
* The next free p_align'ed LMA base address
*
* p_align = 0x8000
*
* Recap from ELF spec: p_align: Loadable process segments must have
* congruent values for p_vaddr and p_offset, modulo the page size.
* This member gives the value to which the segments are aligned in
* memory and in the file. Values 0 and 1 mean that no alignment is
* required. Otherwise, p_align should be a positive, integral power
* of 2, and p_addr should equal p_offset, modulo p_align.
* This essentially means next available address must be aligned at
* p_align, rather than the page_size, which one (well, I) would
* normally expect.
*/
physical_base = 0x3000;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -80,8 +80,14 @@ def main():
if image_name[-4] == ".":
image_name = image_name[:-4]
print image_name
print "image_start " + hex(paddr_start)[:-1]
print "image_end " + hex(paddr_end)[:-1]
if hex(paddr_start)[-1] == "L":
print "image_start " + hex(paddr_start)[:-1]
else:
print "image_start " + hex(paddr_start)
if hex(paddr_end)[-1] == "L":
print "image_end " + hex(paddr_end)[:-1]
else:
print "image_end " + hex(paddr_end)
if options.ffpage:
paddr_max = 0
@@ -112,8 +118,10 @@ def main():
paddr_aligned = paddr_max & ~(p_align.value - 1)
if paddr_max & (p_align.value - 1):
paddr_aligned += p_align.value
print "physical_base = " + hex(paddr_aligned)[:-1] + ";"
if hex(paddr_aligned)[-1] == "L":
print "physical_base = " + hex(paddr_aligned)[:-1] + ";"
else:
print "physical_base = " + hex(paddr_aligned) + ";"
if __name__ == "__main__":