diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-03-15 15:50:42 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2006-03-15 15:50:42 +0000 |
commit | 860f74a2778d736b78ebc544b8a868b1e4735955 (patch) | |
tree | 647e827dfcfeb532c691efdaf15346744a3eaf96 /sys/arch | |
parent | 947efc584e53209f8746e387cbb258e377499e86 (diff) |
remove dead macros
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/include/db_machdep.h | 21 | ||||
-rw-r--r-- | sys/arch/i386/include/db_machdep.h | 21 |
2 files changed, 2 insertions, 40 deletions
diff --git a/sys/arch/amd64/include/db_machdep.h b/sys/arch/amd64/include/db_machdep.h index 265b60c5922..3ddbe67c75e 100644 --- a/sys/arch/amd64/include/db_machdep.h +++ b/sys/arch/amd64/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.5 2005/11/13 17:51:53 fgsch Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.6 2006/03/15 15:50:41 mickey Exp $ */ /* $NetBSD: db_machdep.h,v 1.2 2003/04/29 17:06:04 scw Exp $ */ /* @@ -76,25 +76,6 @@ extern db_regs_t ddb_regs; /* register state */ #define inst_load(ins) 0 #define inst_store(ins) 0 -/* access capability and access macros */ - -#define DB_ACCESS_LEVEL 2 /* access any space */ -#define DB_CHECK_ACCESS(addr,size,task) \ - db_check_access(addr,size,task) -#define DB_PHYS_EQ(task1,addr1,task2,addr2) \ - db_phys_eq(task1,addr1,task2,addr2) -#define DB_VALID_KERN_ADDR(addr) \ - ((addr) >= VM_MIN_KERNEL_ADDRESS && \ - (addr) < VM_MAX_KERNEL_ADDRESS) -#define DB_VALID_ADDRESS(addr,user) \ - ((!(user) && DB_VALID_KERN_ADDR(addr)) || \ - ((user) && (addr) < VM_MAX_ADDRESS)) - -#if 0 -boolean_t db_check_access(vaddr_t, int, task_t); -boolean_t db_phys_eq(task_t, vaddr_t, task_t, vaddr_t); -#endif - /* macros for printing OS server dependent task name */ #define DB_TASK_NAME(task) db_task_name(task) diff --git a/sys/arch/i386/include/db_machdep.h b/sys/arch/i386/include/db_machdep.h index 20faad339cd..72aa400bd90 100644 --- a/sys/arch/i386/include/db_machdep.h +++ b/sys/arch/i386/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.15 2005/11/13 17:50:44 fgsch Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.16 2006/03/15 15:50:41 mickey Exp $ */ /* $NetBSD: db_machdep.h,v 1.9 1996/05/03 19:23:59 christos Exp $ */ /* @@ -73,25 +73,6 @@ db_regs_t ddb_regs; /* register state */ #define inst_load(ins) 0 #define inst_store(ins) 0 -/* access capability and access macros */ - -#define DB_ACCESS_LEVEL 2 /* access any space */ -#define DB_CHECK_ACCESS(addr,size,task) \ - db_check_access(addr,size,task) -#define DB_PHYS_EQ(task1,addr1,task2,addr2) \ - db_phys_eq(task1,addr1,task2,addr2) -#define DB_VALID_KERN_ADDR(addr) \ - ((addr) >= VM_MIN_KERNEL_ADDRESS && \ - (addr) < VM_MAX_KERNEL_ADDRESS) -#define DB_VALID_ADDRESS(addr,user) \ - ((!(user) && DB_VALID_KERN_ADDR(addr)) || \ - ((user) && (addr) < VM_MAX_ADDRESS)) - -#if 0 -boolean_t db_check_access(vaddr_t, int, task_t); -boolean_t db_phys_eq(task_t, vaddr_t, task_t, vaddr_t); -#endif - #define DB_MACHINE_COMMANDS /* macros for printing OS server dependent task name */ |