aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/i386
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2009-12-07 16:00:59 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2009-12-07 16:00:59 +0000
commiteddb3f5b887eefacab2242f6836e832ec5703ebb (patch)
tree044414007ca949265b4f9394091fecb0e920d2cc /sys/boot/i386
parent22bf171313a94729a063c93230d4f708d5847797 (diff)
downloadsrc-eddb3f5b887eefacab2242f6836e832ec5703ebb.tar.gz
src-eddb3f5b887eefacab2242f6836e832ec5703ebb.zip
Various small whitespace and style fixes.
Notes
Notes: svn path=/head/; revision=200216
Diffstat (limited to 'sys/boot/i386')
-rw-r--r--sys/boot/i386/libi386/biosmem.c3
-rw-r--r--sys/boot/i386/libi386/libi386.h15
-rw-r--r--sys/boot/i386/loader/main.c3
3 files changed, 11 insertions, 10 deletions
diff --git a/sys/boot/i386/libi386/biosmem.c b/sys/boot/i386/libi386/biosmem.c
index 3c2205ed46c2..e62c1dd5dcd6 100644
--- a/sys/boot/i386/libi386/biosmem.c
+++ b/sys/boot/i386/libi386/biosmem.c
@@ -36,7 +36,7 @@ __FBSDID("$FreeBSD$");
#include "btxv86.h"
vm_offset_t memtop, memtop_copyin;
-u_int32_t bios_basemem, bios_extmem;
+uint32_t bios_basemem, bios_extmem;
static struct bios_smap smap;
@@ -98,4 +98,3 @@ bios_getmem(void)
memtop = memtop_copyin = 0x100000 + bios_extmem;
}
-
diff --git a/sys/boot/i386/libi386/libi386.h b/sys/boot/i386/libi386/libi386.h
index 4ac5cb569fb2..b3d144e76e0f 100644
--- a/sys/boot/i386/libi386/libi386.h
+++ b/sys/boot/i386/libi386/libi386.h
@@ -78,9 +78,9 @@ int bc_add(int biosdev); /* Register CD booted from. */
int bc_getdev(struct i386_devdesc *dev); /* return dev_t for (dev) */
int bc_bios2unit(int biosdev); /* xlate BIOS device -> bioscd unit */
int bc_unit2bios(int unit); /* xlate bioscd unit -> BIOS device */
-u_int32_t bd_getbigeom(int bunit); /* return geometry in bootinfo format */
-int bd_bios2unit(int biosdev); /* xlate BIOS device -> biosdisk unit */
-int bd_unit2bios(int unit); /* xlate biosdisk unit -> BIOS device */
+uint32_t bd_getbigeom(int bunit); /* return geometry in bootinfo format */
+int bd_bios2unit(int biosdev); /* xlate BIOS device -> biosdisk unit */
+int bd_unit2bios(int unit); /* xlate biosdisk unit -> BIOS device */
int bd_getdev(struct i386_devdesc *dev); /* return dev_t for (dev) */
ssize_t i386_copyin(const void *src, vm_offset_t dest, const size_t len);
@@ -92,12 +92,13 @@ void bios_addsmapdata(struct preloaded_file *);
void bios_getsmap(void);
void bios_getmem(void);
-extern u_int32_t bios_basemem; /* base memory in bytes */
-extern u_int32_t bios_extmem; /* extended memory in bytes */
+extern uint32_t bios_basemem; /* base memory in bytes */
+extern uint32_t bios_extmem; /* extended memory in bytes */
extern vm_offset_t memtop; /* last address of physical memory + 1 */
extern vm_offset_t memtop_copyin; /* memtop less heap size for the cases */
- /* when heap is at the top of extended memory */
- /* for other cases - just the same as memtop */
+ /* when heap is at the top of */
+ /* extended memory; for other cases */
+ /* just the same as memtop */
int biospci_find_devclass(uint32_t class, int index, uint32_t *locator);
int biospci_write_config(uint32_t locator, int offset, int width, uint32_t val);
diff --git a/sys/boot/i386/loader/main.c b/sys/boot/i386/loader/main.c
index 701dd3a12228..e40ea1ca0f0b 100644
--- a/sys/boot/i386/loader/main.c
+++ b/sys/boot/i386/loader/main.c
@@ -102,7 +102,8 @@ main(void)
*/
bios_getmem();
-#if defined(LOADER_BZIP2_SUPPORT) || defined(LOADER_FIREWIRE_SUPPORT) || defined(LOADER_GPT_SUPPORT) || defined(LOADER_ZFS_SUPPORT)
+#if defined(LOADER_BZIP2_SUPPORT) || defined(LOADER_FIREWIRE_SUPPORT) || \
+ defined(LOADER_GPT_SUPPORT) || defined(LOADER_ZFS_SUPPORT)
heap_top = PTOV(memtop_copyin);
memtop_copyin -= 0x300000;
heap_bottom = PTOV(memtop_copyin);