| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: kern_ksyms.c,v 1.48 2008/12/05 21:38:10 ad Exp $ */ | | 1 | /* $NetBSD: kern_ksyms.c,v 1.49 2009/01/01 19:10:17 pooka Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2008 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2008 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software developed for The NetBSD Foundation | | 7 | * This code is derived from software developed for The NetBSD Foundation |
8 | * by Andrew Doran. | | 8 | * by Andrew Doran. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -61,29 +61,29 @@ | | | @@ -61,29 +61,29 @@ |
61 | * | | 61 | * |
62 | * For each loaded module the symbol table info is kept track of by a | | 62 | * For each loaded module the symbol table info is kept track of by a |
63 | * struct, placed in a circular list. The first entry is the kernel | | 63 | * struct, placed in a circular list. The first entry is the kernel |
64 | * symbol table. | | 64 | * symbol table. |
65 | */ | | 65 | */ |
66 | | | 66 | |
67 | /* | | 67 | /* |
68 | * TODO: | | 68 | * TODO: |
69 | * | | 69 | * |
70 | * Add support for mmap, poll. | | 70 | * Add support for mmap, poll. |
71 | */ | | 71 | */ |
72 | | | 72 | |
73 | #include <sys/cdefs.h> | | 73 | #include <sys/cdefs.h> |
74 | __KERNEL_RCSID(0, "$NetBSD: kern_ksyms.c,v 1.48 2008/12/05 21:38:10 ad Exp $"); | | 74 | __KERNEL_RCSID(0, "$NetBSD: kern_ksyms.c,v 1.49 2009/01/01 19:10:17 pooka Exp $"); |
75 | | | 75 | |
76 | #ifdef _KERNEL | | 76 | #if defined(_KERNEL) && defined(_KERNEL_OPT) |
77 | #include "opt_ddb.h" | | 77 | #include "opt_ddb.h" |
78 | #include "opt_ddbparam.h" /* for SYMTAB_SPACE */ | | 78 | #include "opt_ddbparam.h" /* for SYMTAB_SPACE */ |
79 | #endif | | 79 | #endif |
80 | | | 80 | |
81 | #define _KSYMS_PRIVATE | | 81 | #define _KSYMS_PRIVATE |
82 | | | 82 | |
83 | #include <sys/param.h> | | 83 | #include <sys/param.h> |
84 | #include <sys/queue.h> | | 84 | #include <sys/queue.h> |
85 | #include <sys/exec.h> | | 85 | #include <sys/exec.h> |
86 | #include <sys/systm.h> | | 86 | #include <sys/systm.h> |
87 | #include <sys/conf.h> | | 87 | #include <sys/conf.h> |
88 | #include <sys/kmem.h> | | 88 | #include <sys/kmem.h> |
89 | #include <sys/proc.h> | | 89 | #include <sys/proc.h> |