mirror of
https://github.com/drasko/codezero.git
synced 2026-01-15 20:33:16 +01:00
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:
@@ -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;
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
},
|
||||
};
|
||||
@@ -1,3 +0,0 @@
|
||||
fs0
|
||||
image_start 0x218000
|
||||
image_end 0x21B26C
|
||||
@@ -1,3 +0,0 @@
|
||||
inittask
|
||||
image_start 0x208000
|
||||
image_end 0x213260
|
||||
@@ -1,3 +0,0 @@
|
||||
mm0
|
||||
image_start 0x208000
|
||||
image_end 0x213140
|
||||
@@ -1,3 +0,0 @@
|
||||
romfs
|
||||
image_start 0x220000
|
||||
image_end 0x268800
|
||||
@@ -1,3 +0,0 @@
|
||||
roottask
|
||||
image_start 0x218000
|
||||
image_end 0x21B344
|
||||
@@ -1,3 +0,0 @@
|
||||
start
|
||||
image_start 0x100000
|
||||
image_end 0x205800
|
||||
@@ -1,3 +0,0 @@
|
||||
test0
|
||||
image_start 0x218000
|
||||
image_end 0x21AEDC
|
||||
@@ -1,3 +0,0 @@
|
||||
testtask
|
||||
image_start 0x220000
|
||||
image_end 0x223344
|
||||
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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(
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
@@ -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:
|
||||
|
||||
@@ -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;
|
||||
@@ -28,7 +28,7 @@ void main(void)
|
||||
wait_pager(0);
|
||||
|
||||
/* Check mmap/munmap */
|
||||
mmaptest();
|
||||
// mmaptest();
|
||||
|
||||
/* Check shmget/shmat/shmdt */
|
||||
shmtest();
|
||||
|
||||
@@ -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
1
tasks/test1/include/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
physical_base.lds
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user