bug-hurd
[Top][All Lists]
Advanced

[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, &copy_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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]