diff options
-rw-r--r-- | libdiskfs/boot-start.c | 2 | ||||
-rw-r--r-- | libdiskfs/console.c | 2 | ||||
-rw-r--r-- | libdiskfs/priv.h | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c index 725addaa..7d92aceb 100644 --- a/libdiskfs/boot-start.c +++ b/libdiskfs/boot-start.c @@ -67,7 +67,7 @@ get_console () /* Make sure we have the privileged ports. */ void -diskfs_boot_privports (void) +_diskfs_boot_privports (void) { assert (diskfs_boot_flags); if (_hurd_host_priv == MACH_PORT_NULL) diff --git a/libdiskfs/console.c b/libdiskfs/console.c index 8271b799..5c6dd4be 100644 --- a/libdiskfs/console.c +++ b/libdiskfs/console.c @@ -52,7 +52,7 @@ diskfs_console_stdio () mach_port_t dev, cons; error_t err; if (diskfs_boot_flags) - diskfs_boot_privports (); + _diskfs_boot_privports (); err = get_privileged_ports (NULL, &dev); assert_perror (err); err = device_open (dev, D_READ|D_WRITE, "console", &cons); diff --git a/libdiskfs/priv.h b/libdiskfs/priv.h index b5c9b98d..11cbe534 100644 --- a/libdiskfs/priv.h +++ b/libdiskfs/priv.h @@ -79,6 +79,9 @@ error_t _diskfs_rdwr_internal (struct node *np, char *data, off_t offset, and auth ports). */ void _diskfs_init_completed (void); +/* Called in a bootstrap filesystem only, to get the privileged ports. */ +void _diskfs_boot_privports (void); + /* Clean routine for control port. */ void _diskfs_control_clean (void *); |