jhb
21b6b26912
Overhaul the per-CPU support a bit:
...
- The MI portions of struct globaldata have been consolidated into a MI
struct pcpu. The MD per-CPU data are specified via a macro defined in
machine/pcpu.h. A macro was chosen over a struct mdpcpu so that the
interface would be cleaner (PCPU_GET(my_md_field) vs.
PCPU_GET(md.md_my_md_field)).
- All references to globaldata are changed to pcpu instead. In a UP kernel,
this data was stored as global variables which is where the original name
came from. In an SMP world this data is per-CPU and ideally private to each
CPU outside of the context of debuggers. This also included combining
machine/globaldata.h and machine/globals.h into machine/pcpu.h.
- The pointer to the thread using the FPU on i386 was renamed from
npxthread to fpcurthread to be identical with other architectures.
- Make the show pcpu ddb command MI with a MD callout to display MD
fields.
- The globaldata_register() function was renamed to pcpu_init() and now
init's MI fields of a struct pcpu in addition to registering it with
the internal array and list.
- A pcpu_destroy() function was added to remove a struct pcpu from the
internal array and list.
Tested on: alpha, i386
Reviewed by: peter, jake
2001-12-11 23:33:44 +00:00
..
2000-11-28 06:49:15 +00:00
2001-01-28 06:39:56 +00:00
2001-10-10 23:06:54 +00:00
2001-10-10 23:06:54 +00:00
2001-10-10 23:06:54 +00:00
2001-11-28 03:26:58 +00:00
2001-12-11 23:33:44 +00:00
2001-11-02 17:59:23 +00:00
2001-11-01 20:56:57 +00:00
2001-11-02 14:53:04 +00:00
2001-11-05 15:36:24 +00:00
2001-11-15 19:54:48 +00:00
2001-12-10 05:51:45 +00:00
2001-11-16 17:07:47 +00:00
2001-11-17 03:07:11 +00:00
2001-10-25 17:22:31 +00:00
2001-11-14 06:30:36 +00:00
2001-12-10 05:40:12 +00:00
2001-11-02 09:55:01 +00:00
2001-10-26 08:12:54 +00:00
2001-12-11 23:33:44 +00:00
2001-12-10 05:40:12 +00:00
2001-12-03 16:12:27 +00:00
2001-11-12 08:53:34 +00:00
2001-12-11 23:33:44 +00:00
2001-10-24 01:05:39 +00:00
2001-11-18 18:19:35 +00:00
2001-11-13 21:55:13 +00:00
2001-12-02 12:47:25 +00:00
2001-09-12 08:38:13 +00:00
2001-12-06 21:55:41 +00:00
2001-09-12 08:38:13 +00:00
2001-11-19 00:20:36 +00:00
2001-11-15 19:08:55 +00:00
2001-09-12 08:38:13 +00:00
2001-11-13 16:55:54 +00:00
2001-12-06 21:58:47 +00:00
2000-11-18 21:01:04 +00:00
2001-11-04 18:22:48 +00:00
2001-12-10 05:40:12 +00:00
2001-11-13 01:08:54 +00:00
2001-11-03 13:26:15 +00:00
2001-09-26 06:54:32 +00:00
2001-09-18 03:36:21 +00:00
2001-12-10 05:51:45 +00:00
2001-10-23 17:52:49 +00:00
2001-09-12 08:38:13 +00:00
2001-11-28 03:11:16 +00:00
2001-01-01 23:09:53 +00:00
2001-09-26 19:53:57 +00:00
2001-08-22 04:07:27 +00:00
2001-09-12 08:38:13 +00:00
2001-09-12 08:38:13 +00:00
2001-11-24 10:11:14 +00:00
2001-11-16 21:08:40 +00:00
2001-11-16 21:08:40 +00:00
2001-10-30 15:21:45 +00:00
2001-12-05 01:23:21 +00:00
2001-10-13 09:17:49 +00:00
2001-11-16 02:02:42 +00:00
2001-10-13 09:17:49 +00:00
2001-04-10 07:59:06 +00:00
2000-09-29 13:36:47 +00:00
2001-09-12 08:38:13 +00:00
2001-11-02 14:53:04 +00:00
2001-07-04 16:20:28 +00:00
2001-12-10 05:51:45 +00:00
2001-03-27 10:21:26 +00:00
2001-08-04 18:02:47 +00:00
2001-11-04 11:56:22 +00:00
2001-11-03 08:19:21 +00:00
2001-12-11 05:35:43 +00:00
2001-09-12 08:38:13 +00:00
2001-09-12 08:38:13 +00:00
2001-09-17 21:27:41 +00:00
2000-12-08 21:51:06 +00:00
2001-09-21 22:46:54 +00:00
2001-12-01 00:21:30 +00:00
2001-12-10 05:51:45 +00:00
2001-02-18 10:43:53 +00:00
2001-12-09 01:57:09 +00:00
2001-12-11 23:33:44 +00:00
2001-11-01 16:34:07 +00:00
2001-11-30 21:40:52 +00:00
2001-10-30 15:04:57 +00:00
2001-11-10 21:36:56 +00:00
2001-12-10 05:51:45 +00:00
2001-12-11 23:33:44 +00:00
2001-10-26 18:46:48 +00:00
2001-10-26 08:12:54 +00:00
2001-11-15 19:08:55 +00:00
2001-12-10 05:40:12 +00:00
2001-09-12 08:38:13 +00:00
2001-11-14 06:30:36 +00:00
2001-11-19 09:25:30 +00:00
2001-10-21 23:57:24 +00:00
2001-11-17 03:07:11 +00:00
2001-11-02 17:59:23 +00:00
2001-11-02 17:58:26 +00:00
2001-11-02 21:20:05 +00:00
2001-09-21 09:25:17 +00:00
2001-10-11 08:15:14 +00:00
2001-10-28 09:29:10 +00:00
2001-09-12 08:38:13 +00:00
2001-12-11 10:21:26 +00:00
2001-11-01 20:56:57 +00:00
2001-03-27 10:21:26 +00:00
2001-09-12 08:38:13 +00:00
2001-11-17 00:26:57 +00:00
2001-06-01 21:47:34 +00:00
2001-12-08 04:20:54 +00:00
2001-06-11 12:39:29 +00:00
2001-12-10 05:51:45 +00:00
2001-08-17 22:01:18 +00:00
2001-11-17 03:07:11 +00:00
2001-11-17 03:07:11 +00:00
2001-11-17 03:07:11 +00:00
2001-11-17 03:07:11 +00:00
2001-11-17 03:07:11 +00:00
2001-11-02 14:53:04 +00:00
2001-12-10 03:34:06 +00:00
2001-12-08 20:37:08 +00:00
2001-10-21 15:52:51 +00:00
2001-11-05 18:48:54 +00:00
2001-11-24 01:34:12 +00:00
2001-10-23 01:23:41 +00:00
2001-09-10 11:28:07 +00:00
2001-11-05 10:33:45 +00:00
2001-04-29 02:45:39 +00:00
2001-09-12 08:38:13 +00:00
2001-11-24 01:34:12 +00:00
2001-11-04 18:55:42 +00:00
2001-11-05 10:33:45 +00:00
2001-11-11 22:39:07 +00:00
2001-09-12 08:38:13 +00:00
2001-09-12 08:38:13 +00:00