diff options
Diffstat (limited to 'usr/src/uts/sun4')
| -rw-r--r-- | usr/src/uts/sun4/io/px/px_fm.c | 1 | ||||
| -rw-r--r-- | usr/src/uts/sun4/ml/offsets.in | 30 | ||||
| -rw-r--r-- | usr/src/uts/sun4/os/machdep.c | 10 | ||||
| -rw-r--r-- | usr/src/uts/sun4/os/startup.c | 3 |
4 files changed, 28 insertions, 16 deletions
diff --git a/usr/src/uts/sun4/io/px/px_fm.c b/usr/src/uts/sun4/io/px/px_fm.c index fe958d56bd..9db9e7e50a 100644 --- a/usr/src/uts/sun4/io/px/px_fm.c +++ b/usr/src/uts/sun4/io/px/px_fm.c @@ -756,6 +756,7 @@ px_get_pfd(px_t *px_p) { } pfd_p->pe_severity_flags = 0; + pfd_p->pe_severity_mask = 0; pfd_p->pe_orig_severity_flags = 0; pfd_p->pe_valid = B_TRUE; diff --git a/usr/src/uts/sun4/ml/offsets.in b/usr/src/uts/sun4/ml/offsets.in index 4f6d19ba01..f5e4233a22 100644 --- a/usr/src/uts/sun4/ml/offsets.in +++ b/usr/src/uts/sun4/ml/offsets.in @@ -1,6 +1,7 @@ \ offsets.in: input file to produce assym.h using the stabs program \ Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. \ Copyright 2012 Garrett D'Amore <garett@damore.org>. All rights reserved. +\ Copyright 2019 Joyent, Inc. \ \ CDDL HEADER START \ @@ -24,44 +25,44 @@ \ \ \ Guidelines: -\ +\ \ A blank line is required between structure/union/intrinsic names. -\ +\ \ The general form is: -\ +\ \ name size_define [shift_define] \ member_name [offset_define] \ {blank line} -\ +\ \ If offset_define is not specified then the member_name is \ converted to all caps and used instead. If the size of an item is \ a power of two then an optional shift count may be output using \ shift_define as the name but only if shift_define was specified. -\ +\ \ Arrays cause stabs to automatically output the per-array-item increment \ in addition to the base address: -\ +\ \ foo FOO_SIZE \ array FOO_ARRAY -\ +\ \ results in: -\ +\ \ #define FOO_ARRAY 0x0 \ #define FOO_ARRAY_INCR 0x4 -\ +\ \ which allows \#define's to be used to specify array items: -\ +\ \ #define FOO_0 (FOO_ARRAY + (0 * FOO_ARRAY_INCR)) \ #define FOO_1 (FOO_ARRAY + (1 * FOO_ARRAY_INCR)) \ ... \ #define FOO_n (FOO_ARRAY + (n * FOO_ARRAY_INCR)) -\ +\ \ There are several examples below (search for _INCR). -\ +\ \ There is currently no manner in which to identify "anonymous" \ structures or unions so if they are to be used in assembly code \ they must be given names. -\ +\ \ When specifying the offsets of nested structures/unions each nested \ structure or union must be listed separately then use the \ "\#define" escapes to add the offsets from the base structure/union @@ -165,7 +166,6 @@ _kthread THREAD_SIZE _tu._ts._t_post_sys T_POST_SYS _tu._ts._t_trapret T_TRAPRET t_preempt_lk - t_kpri_req t_lockstat t_pil t_intr_start @@ -374,7 +374,7 @@ cpu CPUSIZE cpu_m.mpcb CPU_MPCB cpu_m.cpu_private CPU_PRIVATE cpu_m.cpu_mmu_idx CPU_MMU_IDX - cpu_m.cpu_mmu_ctxp CPU_MMU_CTXP + cpu_m.cpu_mmu_ctxp CPU_MMU_CTXP cpu_m.ptl1_state CPU_PTL1 cpu_core_t CPU_CORE_SIZE CPU_CORE_SHIFT diff --git a/usr/src/uts/sun4/os/machdep.c b/usr/src/uts/sun4/os/machdep.c index 556dbd71e1..970d5a4125 100644 --- a/usr/src/uts/sun4/os/machdep.c +++ b/usr/src/uts/sun4/os/machdep.c @@ -899,3 +899,13 @@ lbolt_softint_post(void) { setsoftint(lbolt_softint_inum); } + +void +thread_splitstack_run(caddr_t addr, void (*func)(void *), void *) +{ + panic("thread_splitstack() not supported on SPARC"); +} + +void +thread_splitstack_cleanup(void) +{} diff --git a/usr/src/uts/sun4/os/startup.c b/usr/src/uts/sun4/os/startup.c index 5a5dc05291..c8752a16ac 100644 --- a/usr/src/uts/sun4/os/startup.c +++ b/usr/src/uts/sun4/os/startup.c @@ -22,6 +22,7 @@ /* * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2016 by Delphix. All rights reserved. + * Copyright 2018 Joyent, Inc. * Copyright 2019 Peter Tribble. */ @@ -2037,7 +2038,7 @@ startup_vm(void) (void) seg_attach(&kas, segzio_base, mmu_ptob(segziosize), &kzioseg); - (void) segkmem_zio_create(&kzioseg); + (void) segkmem_create(&kzioseg); /* create zio area covering new segment */ segkmem_zio_init(segzio_base, mmu_ptob(segziosize)); |
