summaryrefslogtreecommitdiff
path: root/kernel/old/include/kmem.h
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-08 10:49:18 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-08 10:49:18 -0400
commitc8a1e0531d7ccdce5f76aec8a5b6147c686d3403 (patch)
tree2a68ab7da901a96fea975ca2ec02a9c77137686b /kernel/old/include/kmem.h
parenttty => term (diff)
downloadcomus-c8a1e0531d7ccdce5f76aec8a5b6147c686d3403.tar.gz
comus-c8a1e0531d7ccdce5f76aec8a5b6147c686d3403.tar.bz2
comus-c8a1e0531d7ccdce5f76aec8a5b6147c686d3403.zip
fix old checkout
Diffstat (limited to 'kernel/old/include/kmem.h')
-rw-r--r--kernel/old/include/kmem.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/kernel/old/include/kmem.h b/kernel/old/include/kmem.h
index 631f7ab..5a98765 100644
--- a/kernel/old/include/kmem.h
+++ b/kernel/old/include/kmem.h
@@ -28,8 +28,8 @@
// Slab and slice sizes, in bytes
-#define SZ_SLAB SZ_PAGE
-#define SZ_SLICE (SZ_SLAB >> 2)
+#define SZ_SLAB SZ_PAGE
+#define SZ_SLICE (SZ_SLAB >> 2)
// memory limits
//
@@ -37,8 +37,8 @@
// module will manage
//
// we won't map any memory below 1MB or above 1GB
-#define KM_LOW_CUTOFF NUM_1MB
-#define KM_HIGH_CUTOFF NUM_1GB
+#define KM_LOW_CUTOFF NUM_1MB
+#define KM_HIGH_CUTOFF NUM_1GB
#ifndef ASM_SRC
@@ -68,7 +68,7 @@
** Must be called before any other init routine that uses
** dynamic storage is called.
*/
-void km_init(void);
+void km_init( void );
/**
** Name: km_dump
@@ -81,7 +81,7 @@ void km_init(void);
** @param addrs Also dump page addresses
** @param both Also dump slice addresses
*/
-void km_dump(bool_t addrs, bool_t both);
+void km_dump( bool_t addrs, bool_t both );
/*
** Functions that manipulate free memory blocks.
@@ -95,7 +95,7 @@ void km_dump(bool_t addrs, bool_t both);
** @return a pointer to the beginning of the allocated page,
** or NULL if no memory is available
*/
-void *km_page_alloc(void);
+void *km_page_alloc( void );
/**
** Name: km_page_free
@@ -108,7 +108,7 @@ void *km_page_alloc(void);
**
** @param[in] block Pointer to the page to be returned to the free list
*/
-void km_page_free(void *block);
+void km_page_free( void *block );
/**
** Name: km_slice_alloc
@@ -119,7 +119,7 @@ void km_page_free(void *block);
**
** @return a pointer to the allocated slice
*/
-void *km_slice_alloc(void);
+void *km_slice_alloc( void );
/**
** Name: km_slice_free
@@ -131,7 +131,7 @@ void *km_slice_alloc(void);
**
** @param[in] block Pointer to the slice (1/4 page) to be freed
*/
-void km_slice_free(void *block);
+void km_slice_free( void *block );
#endif /* !ASM_SRC */