Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
ebd84c6f
Commit
ebd84c6f
authored
33 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Moved OS specific stuff into OS specific files. This file just contains
the OS generic stuff (interface definitons, etc).
parent
2c7fcae1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ldb/os.h
+28
-15
28 additions, 15 deletions
ldb/os.h
with
28 additions
and
15 deletions
ldb/os.h
+
28
−
15
View file @
ebd84c6f
/*
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/os.h,v 1.
1
199
0
/0
6/03 22:3
7:
5
0
ch
Exp $
* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/os.h,v 1.
2
199
1
/0
5/24 17:5
7:
4
0
wlott
Exp $
*
* OS-dependent header file.
*
* This is the Mach version.
* Common interface for os-dependent functions.
*
*/
#if !defined(_OS_H_INCLUDED_)
#include
<mach.h>
#include
"ldb.h"
#define _OS_H_INCLUDED_
#ifdef MACH
#include
"mach-os.h"
#else
#ifdef sun
#include
"sunos-os.h"
#endif
#endif
typedef
vm_address_t
os_vm_address_t
;
typedef
vm_size_t
os_vm_size_t
;
typedef
vm_offset_t
os_vm_offset_t
;
typedef
vm_prot_t
os_vm_prot_t
;
#define OS_VM_PROT_ALL (OS_VM_PROT_READ|OS_VM_PROT_WRITE|OS_VM_PROT_EXECUTE)
extern
os_vm_size_t
os_vm_page_size
;
extern
void
os_validate
();
extern
void
os_install_interrupt_handlers
();
extern
os_vm_address_t
os_allocate
(),
os_reallocate
();
void
os_deallocate
();
extern
os_vm_address_t
os_validate
();
extern
void
os_invalidate
();
extern
void
os_zero
();
extern
void
os_map
();
extern
os_vm_address_t
os_map
();
extern
void
os_flush_icache
();
extern
void
os_protect
();
extern
boolean
valid_addr
();
#define OS_VM_PROT_READ VM_PROT_READ
#define OS_VM_PROT_WRITE VM_PROT_WRITE
#define OS_VM_PROT_EXECUTE VM_PROT_EXECUTE
#define os_trunc_to_page(addr) \
(os_vm_address_t)((long)addr&~(os_vm_page_size-1))
#define os_round_up_to_page(addr) \
os_trunc_to_page(addr+(os_vm_page_size-1))
#define os_trunc_size_to_page(size) \
(os_vm_size_t)((long)size&~(os_vm_page_size-1))
#define os_round_up_size_to_page(size) \
os_trunc_size_to_page(size+(os_vm_page_size-1))
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment