Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Apr 2008 01:13:07 GMT
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 140193 for review
Message-ID:  <200804180113.m3I1D7x9029033@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=140193

Change 140193 by marcel@marcel_cluster on 2008/04/18 01:12:33

	Add a size argument to ldr_alloc(), so that the API is
	more common and less implicit.

Affected files ...

.. //depot/projects/ia64/sys/boot/ia64/common/copy.c#6 edit
.. //depot/projects/ia64/sys/boot/ia64/common/libia64.h#6 edit
.. //depot/projects/ia64/sys/boot/ia64/efi/efimd.c#8 edit
.. //depot/projects/ia64/sys/boot/ia64/ski/skimd.c#4 edit

Differences ...

==== //depot/projects/ia64/sys/boot/ia64/common/copy.c#6 (text+ko) ====

@@ -73,7 +73,7 @@
 	ofs = va & IA64_LVM_PAGE_MASK;
 	pa = ia64_pgtbl[idx];
 	if (pa == 0) {
-		pa = ldr_alloc(va - ofs);
+		pa = ldr_alloc(va - ofs, IA64_LVM_PAGE_SIZE);
 		if (pa == 0) {
 			*len = 0;
 			return (NULL);

==== //depot/projects/ia64/sys/boot/ia64/common/libia64.h#6 (text+ko) ====

@@ -36,7 +36,7 @@
  * Portability functions provided by the loader
  * implementation specific to the platform.
  */
-extern uint64_t ldr_alloc(vm_offset_t);
+extern uint64_t ldr_alloc(vm_offset_t, vm_size_t);
 extern int ldr_bootinfo(struct bootinfo *, uint64_t *);
 extern int ldr_enter(const char *);
 

==== //depot/projects/ia64/sys/boot/ia64/efi/efimd.c#8 (text+ko) ====

@@ -48,7 +48,7 @@
 static UINTN mapkey;
 
 uint64_t
-ldr_alloc(vm_offset_t va)
+ldr_alloc(vm_offset_t va, vm_size_t sz)
 {
 
 	return (0);

==== //depot/projects/ia64/sys/boot/ia64/ski/skimd.c#4 (text+ko) ====

@@ -41,7 +41,7 @@
 extern void sal_stub_init(void);
 
 uint64_t
-ldr_alloc(vm_offset_t va)
+ldr_alloc(vm_offset_t va, vm_size_t sz __unused)
 {
 
 	if (va >= PHYS_SIZE)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804180113.m3I1D7x9029033>