[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 19/41] exec: Port to x86_64
From: |
Sergey Bugaev |
Subject: |
[PATCH 19/41] exec: Port to x86_64 |
Date: |
Tue, 9 May 2023 00:31:14 +0300 |
---
exec/elfcore.c | 6 +++---
exec/exec.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/exec/elfcore.c b/exec/elfcore.c
index 5f489a1e..ab6dc2ba 100644
--- a/exec/elfcore.c
+++ b/exec/elfcore.c
@@ -168,7 +168,7 @@ dump_core (task_t task, file_t file, off_t corelimit,
pid_t pid;
thread_t *threads;
- size_t nthreads, i;
+ mach_msg_type_number_t nthreads, i;
off_t notestart;
/* Helper macros for writing notes. */
@@ -432,7 +432,7 @@ dump_core (task_t task, file_t file, off_t corelimit,
task given the locations we now have. But we are lazy and have
the proc server do it for us. */
char *data = psinfo.data.pr_psargs;
- size_t datalen = sizeof psinfo.data.pr_psargs;
+ mach_msg_type_number_t datalen = sizeof psinfo.data.pr_psargs;
err = proc_getprocargs (procserver, pid, &data, &datalen);
if (err == 0)
{
@@ -531,7 +531,7 @@ dump_core (task_t task, file_t file, off_t corelimit,
do
{
pointer_t copied;
- size_t copy_count;
+ mach_msg_type_number_t copy_count;
err = vm_read (task, va, sz, &copied, ©_count);
if (err == 0)
{
diff --git a/exec/exec.c b/exec/exec.c
index 026acf03..8944167d 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -203,7 +203,7 @@ load_section (void *section, struct execdata *u, int interp)
first page boundary. */
vm_address_t overlap_page = trunc_page (addr);
vm_address_t ourpage = 0;
- vm_size_t size = 0;
+ mach_msg_type_number_t size = 0;
void *readaddr;
size_t readsize;
@@ -312,7 +312,7 @@ load_section (void *section, struct execdata *u, int interp)
/* Zero space in the section before the first page boundary. */
vm_address_t overlap_page = trunc_page (addr);
vm_address_t ourpage = 0;
- vm_size_t size = 0;
+ mach_msg_type_number_t size = 0;
u->error = vm_read (u->task, overlap_page, vm_page_size,
&ourpage, &size);
if (u->error)
--
2.40.1
- [PATCH 34/41] ext2fs: Port to x86_64, (continued)
- [PATCH 34/41] ext2fs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 33/41] fatfs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 21/41] sutils: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 27/41] boot: Port to x64_64, Sergey Bugaev, 2023/05/08
- [PATCH 37/41] console-client: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 30/41] startup: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 15/41] utils: Avoid warnings about prototype mismatch, Sergey Bugaev, 2023/05/08
- [PATCH 18/41] proc: Fix use-after-realloc, Sergey Bugaev, 2023/05/08
- [PATCH 31/41] mach-defpager: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 38/41] trans: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 19/41] exec: Port to x86_64,
Sergey Bugaev <=
- [PATCH 25/41] daemons: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 40/41] Disable Linux-based pfinet on x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 23/41] storeio: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 24/41] devnode: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 39/41] Look for mach_i386 in mach/machine/, Sergey Bugaev, 2023/05/08
- [PATCH 36/41] term: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 28/41] eth-multiplexer: Port to x86_64, Sergey Bugaev, 2023/05/08
- Re: [PATCH 00/41] The x86_64 port, Samuel Thibault, 2023/05/09