Drop Olivetti XP7/XP9?

2006-12-30 Thread Samuel Thibault
Hi,

Found yet another hideous hack in i386/intel/pmap.c for the old olivetti
XP7/XP9.  Any objection to my dropping it?

Samuel


___
Bug-hurd mailing list
Bug-hurd@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-hurd


[PATCH] Support for alignment in the zone allocator

2006-12-30 Thread Richard Braun
Here is a patch that does it all. Any comments ?


2006-12-30  Richard Braun  <[EMAIL PROTECTED]>

Added alignment support in the zone allocator.

* kern/zalloc.c (ALIGN_SIZE_UP): New macro.
(zinit): New `align' parameter.
(zget_space): Likewise.
(zone_bootstrap): Updated call to zinit() with alignment of 0.
(zalloc): Updated call to zget_space() with the zone alignment.
* kern/zalloc.h (zone): New member `align'.
(zinit): Declaration updated as required.
* device/dev_lookup.c (dev_lookup_init): Updated call to zinit() with
alignment of 0.
* device/dev_pager.c (dev_pager_hash_init): Likewise.
(device_pager_init): Likewise.
* device/ds_routines.c (ds_init): Likewise.
(ds_trap_init): Likewise.
* device/net_io.c (net_io_init): Likewise.
* i386/i386/fpu.c (fpu_module_init): Likewise.
* i386/i386/pcb.c (pcb_module_init): Likewise.
* i386/intel/pmap.c (pmap_init): Likewise.
* ipc/ipc_init.c (ipc_bootstrap): Likewise.
* ipc/ipc_marequest.c (ipc_marequest_init): Likewise.
* kern/act.c (global_act_init): Likewise.
* kern/kalloc.c (kalloc_init): Likewise.
* kern/processor.c (pset_sys_init): Likewise.
* kern/task.c (task_init): Likewise.
* kern/thread.c (thread_init): Likewise.
* vm/vm_external.c (vm_external_module_initialize): Likewise.
* vm/vm_fault.c (vm_fault_init): Likewise.
* vm/vm_map.c (vm_map_init): Likewise.
* vm/vm_object.c (vm_object_bootstrap): Likewise.
* vm/vm_resident.c (vm_page_module_init): Likewise.

Index: device/dev_lookup.c
===
RCS file: /sources/hurd/gnumach/device/Attic/dev_lookup.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 dev_lookup.c
--- device/dev_lookup.c 25 Feb 1997 21:28:14 -  1.1.1.1
+++ device/dev_lookup.c 30 Dec 2006 10:42:23 -
@@ -401,7 +401,7 @@ dev_lookup_init()
 
simple_lock_init(&dev_port_lock);
 
-   dev_hdr_zone = zinit(sizeof(struct mach_device),
+   dev_hdr_zone = zinit(sizeof(struct mach_device), 0,
 sizeof(struct mach_device) * NDEVICES,
 PAGE_SIZE,
 FALSE,
Index: device/dev_pager.c
===
RCS file: /sources/hurd/gnumach/device/dev_pager.c,v
retrieving revision 1.3.2.5
diff -u -p -r1.3.2.5 dev_pager.c
--- device/dev_pager.c  10 Nov 2006 01:22:57 -  1.3.2.5
+++ device/dev_pager.c  30 Dec 2006 10:42:24 -
@@ -174,6 +174,7 @@ void dev_pager_hash_init(void)
size = sizeof(struct dev_pager_entry);
dev_pager_hash_zone = zinit(
size,
+   0,
size * 1000,
PAGE_SIZE,
FALSE,
@@ -727,6 +728,7 @@ void device_pager_init(void)
 */
size = sizeof(struct dev_pager);
dev_pager_zone = zinit(size,
+   0,
(vm_size_t) size * 1000,
PAGE_SIZE,
FALSE,
Index: device/ds_routines.c
===
RCS file: /sources/hurd/gnumach/device/Attic/ds_routines.c,v
retrieving revision 1.6.2.7
diff -u -p -r1.6.2.7 ds_routines.c
--- device/ds_routines.c11 Nov 2006 00:54:05 -  1.6.2.7
+++ device/ds_routines.c30 Dec 2006 10:42:24 -
@@ -1471,7 +1471,7 @@ void ds_init()
 */
device_io_map->wait_for_space = TRUE;
 
-   io_inband_zone = zinit(sizeof(io_buf_ptr_inband_t),
+   io_inband_zone = zinit(sizeof(io_buf_ptr_inband_t), 0,
1000 * sizeof(io_buf_ptr_inband_t),
10 * sizeof(io_buf_ptr_inband_t),
FALSE,
@@ -1519,7 +1519,7 @@ zone_t io_trap_zone;
 void
 ds_trap_init(void)
 {
-   io_trap_zone = zinit(IOTRAP_REQSIZE,
+   io_trap_zone = zinit(IOTRAP_REQSIZE, 0,
 256 * IOTRAP_REQSIZE,
 16 * IOTRAP_REQSIZE,
 FALSE,
Index: device/net_io.c
===
RCS file: /sources/hurd/gnumach/device/net_io.c,v
retrieving revision 1.2.2.11
diff -u -p -r1.2.2.11 net_io.c
--- device/net_io.c 13 Nov 2006 21:30:36 -  1.2.2.11
+++ device/net_io.c 30 Dec 2006 10:42:25 -
@@ -1494,6 +1494,7 @@ net_io_init()
 
size = sizeof(struct net_rcv_port);
net_rcv_zone = zinit(size,
+0,
 size * 1000,
 PAGE_SIZE,
 FALSE,
@@ -1501,6 +1502,7 @@ net_io_init()
 
size = sizeof(

Re: Drop Olivetti XP7/XP9?

2006-12-30 Thread Barry deFreese

Samuel Thibault wrote:

Hi,

Found yet another hideous hack in i386/intel/pmap.c for the old olivetti
XP7/XP9.  Any objection to my dropping it?

Samue

Not from me.. :-)

Thanks Samuel!

Barry


___
Bug-hurd mailing list
Bug-hurd@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-hurd


Re: [PATCH] Support for alignment in the zone allocator

2006-12-30 Thread Barry deFreese

Richard Braun wrote:

Here is a patch that does it all. Any comments ?


2006-12-30  Richard Braun  <[EMAIL PROTECTED]>

Added alignment support in the zone allocator.

* kern/zalloc.c (ALIGN_SIZE_UP): New macro.
(zinit): New `align' parameter.
(zget_space): Likewise.
(zone_bootstrap): Updated call to zinit() with alignment of 0.
(zalloc): Updated call to zget_space() with the zone alignment.
* kern/zalloc.h (zone): New member `align'.
(zinit): Declaration updated as required.
* device/dev_lookup.c (dev_lookup_init): Updated call to zinit() with
alignment of 0.
* device/dev_pager.c (dev_pager_hash_init): Likewise.
(device_pager_init): Likewise.
* device/ds_routines.c (ds_init): Likewise.
(ds_trap_init): Likewise.
* device/net_io.c (net_io_init): Likewise.
* i386/i386/fpu.c (fpu_module_init): Likewise.
* i386/i386/pcb.c (pcb_module_init): Likewise.
* i386/intel/pmap.c (pmap_init): Likewise.
* ipc/ipc_init.c (ipc_bootstrap): Likewise.
* ipc/ipc_marequest.c (ipc_marequest_init): Likewise.
* kern/act.c (global_act_init): Likewise.
* kern/kalloc.c (kalloc_init): Likewise.
* kern/processor.c (pset_sys_init): Likewise.
* kern/task.c (task_init): Likewise.
* kern/thread.c (thread_init): Likewise.
* vm/vm_external.c (vm_external_module_initialize): Likewise.
* vm/vm_fault.c (vm_fault_init): Likewise.
* vm/vm_map.c (vm_map_init): Likewise.
* vm/vm_object.c (vm_object_bootstrap): Likewise.
* vm/vm_resident.c (vm_page_module_init): Likewise.

Index: device/dev_lookup.c
===
RCS file: /sources/hurd/gnumach/device/Attic/dev_lookup.c,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 dev_lookup.c
--- device/dev_lookup.c 25 Feb 1997 21:28:14 -  1.1.1.1
+++ device/dev_lookup.c 30 Dec 2006 10:42:23 -
@@ -401,7 +401,7 @@ dev_lookup_init()
 
 	simple_lock_init(&dev_port_lock);
 
-	dev_hdr_zone = zinit(sizeof(struct mach_device),

+   dev_hdr_zone = zinit(sizeof(struct mach_device), 0,
 sizeof(struct mach_device) * NDEVICES,
 PAGE_SIZE,
 FALSE,
Index: device/dev_pager.c
===
RCS file: /sources/hurd/gnumach/device/dev_pager.c,v
retrieving revision 1.3.2.5
diff -u -p -r1.3.2.5 dev_pager.c
--- device/dev_pager.c  10 Nov 2006 01:22:57 -  1.3.2.5
+++ device/dev_pager.c  30 Dec 2006 10:42:24 -
@@ -174,6 +174,7 @@ void dev_pager_hash_init(void)
size = sizeof(struct dev_pager_entry);
dev_pager_hash_zone = zinit(
size,
+   0,
size * 1000,
PAGE_SIZE,
FALSE,
@@ -727,6 +728,7 @@ void device_pager_init(void)
 */
size = sizeof(struct dev_pager);
dev_pager_zone = zinit(size,
+   0,
(vm_size_t) size * 1000,
PAGE_SIZE,
FALSE,
Index: device/ds_routines.c
===
RCS file: /sources/hurd/gnumach/device/Attic/ds_routines.c,v
retrieving revision 1.6.2.7
diff -u -p -r1.6.2.7 ds_routines.c
--- device/ds_routines.c11 Nov 2006 00:54:05 -  1.6.2.7
+++ device/ds_routines.c30 Dec 2006 10:42:24 -
@@ -1471,7 +1471,7 @@ void ds_init()
 */
device_io_map->wait_for_space = TRUE;
 
-	io_inband_zone = zinit(sizeof(io_buf_ptr_inband_t),

+   io_inband_zone = zinit(sizeof(io_buf_ptr_inband_t), 0,
1000 * sizeof(io_buf_ptr_inband_t),
10 * sizeof(io_buf_ptr_inband_t),
FALSE,
@@ -1519,7 +1519,7 @@ zone_t io_trap_zone;
 void
 ds_trap_init(void)
 {
-   io_trap_zone = zinit(IOTRAP_REQSIZE,
+   io_trap_zone = zinit(IOTRAP_REQSIZE, 0,
 256 * IOTRAP_REQSIZE,
 16 * IOTRAP_REQSIZE,
 FALSE,
Index: device/net_io.c
===
RCS file: /sources/hurd/gnumach/device/net_io.c,v
retrieving revision 1.2.2.11
diff -u -p -r1.2.2.11 net_io.c
--- device/net_io.c 13 Nov 2006 21:30:36 -  1.2.2.11
+++ device/net_io.c 30 Dec 2006 10:42:25 -
@@ -1494,6 +1494,7 @@ net_io_init()
 
 	size = sizeof(struct net_rcv_port);

net_rcv_zone = zinit(size,
+0,
 size * 1000,
 PAGE_SIZE,
 FALSE,
@@ -1501,6 +1502,7 @@ net_io_init()
 
  	size = sizeof(str

Re: Drop Olivetti XP7/XP9?

2006-12-30 Thread Thomas Schwinge
On Sat, Dec 30, 2006 at 12:23:21PM +0100, Samuel Thibault wrote:
> Found yet another hideous hack in i386/intel/pmap.c for the old olivetti
> XP7/XP9.  Any objection to my dropping it?

It's already deprecated with ``#error might not work anymore'' (if we're
talking about the same thing), so, yes, go ahead.  Is this change worth
to be mentioned with a short note in the `DEVELOPMENT' file?


Regards,
 Thomas


signature.asc
Description: Digital signature
___
Bug-hurd mailing list
Bug-hurd@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-hurd