History log of /openbsd-current/sys/arch/alpha/include/_types.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.26 02-Jul-2023 cheloha

all platforms, kernel: remove __HAVE_CLOCKINTR symbol

Every platform made the clockintr switch at least six months ago.
The __HAVE_CLOCKINTR symbol is now redundant. Remove it.

Prompted by claudio@.

Link: https://marc.info/?l=openbsd-tech&m=168826181015032&w=2

"makes sense" mlarkin@


Revision tags: OPENBSD_7_3_BASE
# 1.25 10-Dec-2022 cheloha

alpha: switch to clockintr

- Add missing tick_nsec initialization to cpu_initclocks().
- Set stathz = hz, profhz = stathz; we don't have any control over the
interrupt clock on alpha so everything has the same frequency.
- Set schedhz = 16 to imitate current schedclock() dispatch frequency.

Bringup help from claudio@. Tested by miod@ (2-CPU DS25).

Link: https://marc.info/?l=openbsd-tech&m=166776333303245&w=2

ok mlarkin@


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.24 05-Mar-2018 deraadt

#define _MAX_PAGE_SHIFT in MD _types.h as the maximum pagesize an arch
needs (looking at you sgi, but others required this before). This is for
the circumstances we need pagesize known at compile time, not getpagesize()
runtime. Use it for malloc storage sizes, for shm, and to set pthread stack
default sizes. The stack sizes were a mess, and pushing them towards
page-aligned is healthy move (which will also be needed by the coming
stack register checker)
ok guenther kettenis, discussion with stefan


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.23 26-Sep-2015 guenther

lint is dead and C99 may be old enough to drive a car: delete LONGLONG
comments

ok millert@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.22 19-Mar-2014 guenther

It's safe to assumed 'signed' exists


Revision tags: OPENBSD_5_5_BASE
# 1.21 18-Dec-2013 deraadt

Provide MI symbol _STACKALIGNBYTES


Revision tags: OPENBSD_5_4_BASE
# 1.20 05-Jul-2013 guenther

Take II, this time without flubbing off_t: : move several internal
type definitions that are the same across all archs from
<machine/_types.h> to <sys/_types.h>

ok deraadt@ kettenis@ otto@


# 1.19 04-Jul-2013 otto

backout previous; off_t must be signed and there might be other C++ API
breakage lurking; ok kettenis@


# 1.18 04-Jul-2013 guenther

To ease future changes, move several internal type definitions that are
the same across all archs from <machine/_types.h> to <sys/_types.h>

ok deraadt@


# 1.17 02-Jun-2013 guenther

Hide members of __va_list in the implementation namespace

ok miod@


Revision tags: OPENBSD_5_3_BASE
# 1.16 05-Nov-2012 miod

unifdef -D __HAVE_TIMECOUNTER


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.15 08-Sep-2011 guenther

Provide namespace-safe alignment macros in <machine/_types.h>, with
compat names kept in <machine/param.h>. In <sys/socket.h>, pull
in <sys/_types.h> instead of the namespace polluting <machine/param.h>
and completely eliminate __CMSG_ALIGN, replaced by _ALIGN

ok deraadt@


# 1.14 08-Sep-2011 guenther

Make the INT_FAST*_{MIN,MAX} macros match the types they're defined to.
Since the underlying types of the int_fast types are set by machine/_types.h,
put internal macros in that same file and define the exposed
INT_FAST*_{MIN,MAX} macros from those.

ok millert@, kettenis@


Revision tags: OPENBSD_5_0_BASE
# 1.13 06-Jul-2011 matthew

Make alpha consistent with our other architectures by using "long
long" for __off_t. This is a C++ ABI bump, but martynas@ already
bumped libstdc++.

Discussed and requested by many on icb.


# 1.12 23-Mar-2011 pirofti

Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.

Discussed and okay drahn@. Okay deraadt@.


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.11 04-Nov-2009 kettenis

Get rid of __HAVE_GENERIC_SOFT_INTERRUPTS now that all our platforms support it.

ok jsing@, miod@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.10 21-Jul-2008 martynas

- add proper double_t and float_t definitions for each arch
- math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per
C99). remove from math.h, and add proper definitions in float.h
ok millert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.9 16-May-2007 art

The world of __HAVEs and __HAVE_NOTs is reducing. All architectures
have cpu_info now, so kill the option.

eyeballed by jsg@ and grange@


# 1.8 15-May-2007 art

Remove the MI implementation of mutexes and remove the __HAVE_MUTEX
option. Every architecture implements mutexes now.


# 1.7 15-May-2007 deraadt

oops; martin go see what you did here..


# 1.6 15-May-2007 deraadt

kill __HAVE_DEVICE_REGISTER by requiring all architectures to have a
device_register() function -- even if it does nothing. reduces the
cpp-based blather different between architectures
idea ok'd by miod; tested on all architectures (except a few miod will
need to cleanup because he has them)


# 1.5 05-May-2007 martin

simple single-processor only mutex implementation

ok miod@


# 1.4 23-Apr-2007 art

Switch alpha to timecounters.

We use rpcc for the clock. We don't try to get the frequency from the
hwrpb, since from experience we know that it's very unreliable and
can be several % off from the real frequency. Instead we calibrate
the timecounter frequency by using the clock device and count the
number of cycles between two second ticks of the clocks.

This is not perfect, but still much better than what we had before.
We'll have to add an i8254 clock for MP though.

miod@ ok


# 1.3 21-Apr-2007 martin

fix generic soft interrupts; improve establishing and disestablishing of
soft interrupts

from NetBSD, 'reads good art@', also tested by robert@


# 1.2 12-Apr-2007 martin

__HAVE_CPUINFO for alpha, with bits from netbsd

ok miod@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 06-Jan-2006 millert

Merge machine/ansi.h and machine/types.h into machine/_types.h and
rename the types using the __ protected namespace (e.g. __size_t).
Idea from FreeBSD.


# 1.25 10-Dec-2022 cheloha

alpha: switch to clockintr

- Add missing tick_nsec initialization to cpu_initclocks().
- Set stathz = hz, profhz = stathz; we don't have any control over the
interrupt clock on alpha so everything has the same frequency.
- Set schedhz = 16 to imitate current schedclock() dispatch frequency.

Bringup help from claudio@. Tested by miod@ (2-CPU DS25).

Link: https://marc.info/?l=openbsd-tech&m=166776333303245&w=2

ok mlarkin@


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE
# 1.24 05-Mar-2018 deraadt

#define _MAX_PAGE_SHIFT in MD _types.h as the maximum pagesize an arch
needs (looking at you sgi, but others required this before). This is for
the circumstances we need pagesize known at compile time, not getpagesize()
runtime. Use it for malloc storage sizes, for shm, and to set pthread stack
default sizes. The stack sizes were a mess, and pushing them towards
page-aligned is healthy move (which will also be needed by the coming
stack register checker)
ok guenther kettenis, discussion with stefan


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.23 26-Sep-2015 guenther

lint is dead and C99 may be old enough to drive a car: delete LONGLONG
comments

ok millert@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.22 19-Mar-2014 guenther

It's safe to assumed 'signed' exists


Revision tags: OPENBSD_5_5_BASE
# 1.21 18-Dec-2013 deraadt

Provide MI symbol _STACKALIGNBYTES


Revision tags: OPENBSD_5_4_BASE
# 1.20 05-Jul-2013 guenther

Take II, this time without flubbing off_t: : move several internal
type definitions that are the same across all archs from
<machine/_types.h> to <sys/_types.h>

ok deraadt@ kettenis@ otto@


# 1.19 04-Jul-2013 otto

backout previous; off_t must be signed and there might be other C++ API
breakage lurking; ok kettenis@


# 1.18 04-Jul-2013 guenther

To ease future changes, move several internal type definitions that are
the same across all archs from <machine/_types.h> to <sys/_types.h>

ok deraadt@


# 1.17 02-Jun-2013 guenther

Hide members of __va_list in the implementation namespace

ok miod@


Revision tags: OPENBSD_5_3_BASE
# 1.16 05-Nov-2012 miod

unifdef -D __HAVE_TIMECOUNTER


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.15 08-Sep-2011 guenther

Provide namespace-safe alignment macros in <machine/_types.h>, with
compat names kept in <machine/param.h>. In <sys/socket.h>, pull
in <sys/_types.h> instead of the namespace polluting <machine/param.h>
and completely eliminate __CMSG_ALIGN, replaced by _ALIGN

ok deraadt@


# 1.14 08-Sep-2011 guenther

Make the INT_FAST*_{MIN,MAX} macros match the types they're defined to.
Since the underlying types of the int_fast types are set by machine/_types.h,
put internal macros in that same file and define the exposed
INT_FAST*_{MIN,MAX} macros from those.

ok millert@, kettenis@


Revision tags: OPENBSD_5_0_BASE
# 1.13 06-Jul-2011 matthew

Make alpha consistent with our other architectures by using "long
long" for __off_t. This is a C++ ABI bump, but martynas@ already
bumped libstdc++.

Discussed and requested by many on icb.


# 1.12 23-Mar-2011 pirofti

Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.

Discussed and okay drahn@. Okay deraadt@.


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.11 04-Nov-2009 kettenis

Get rid of __HAVE_GENERIC_SOFT_INTERRUPTS now that all our platforms support it.

ok jsing@, miod@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.10 21-Jul-2008 martynas

- add proper double_t and float_t definitions for each arch
- math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per
C99). remove from math.h, and add proper definitions in float.h
ok millert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.9 16-May-2007 art

The world of __HAVEs and __HAVE_NOTs is reducing. All architectures
have cpu_info now, so kill the option.

eyeballed by jsg@ and grange@


# 1.8 15-May-2007 art

Remove the MI implementation of mutexes and remove the __HAVE_MUTEX
option. Every architecture implements mutexes now.


# 1.7 15-May-2007 deraadt

oops; martin go see what you did here..


# 1.6 15-May-2007 deraadt

kill __HAVE_DEVICE_REGISTER by requiring all architectures to have a
device_register() function -- even if it does nothing. reduces the
cpp-based blather different between architectures
idea ok'd by miod; tested on all architectures (except a few miod will
need to cleanup because he has them)


# 1.5 05-May-2007 martin

simple single-processor only mutex implementation

ok miod@


# 1.4 23-Apr-2007 art

Switch alpha to timecounters.

We use rpcc for the clock. We don't try to get the frequency from the
hwrpb, since from experience we know that it's very unreliable and
can be several % off from the real frequency. Instead we calibrate
the timecounter frequency by using the clock device and count the
number of cycles between two second ticks of the clocks.

This is not perfect, but still much better than what we had before.
We'll have to add an i8254 clock for MP though.

miod@ ok


# 1.3 21-Apr-2007 martin

fix generic soft interrupts; improve establishing and disestablishing of
soft interrupts

from NetBSD, 'reads good art@', also tested by robert@


# 1.2 12-Apr-2007 martin

__HAVE_CPUINFO for alpha, with bits from netbsd

ok miod@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 06-Jan-2006 millert

Merge machine/ansi.h and machine/types.h into machine/_types.h and
rename the types using the __ protected namespace (e.g. __size_t).
Idea from FreeBSD.


# 1.24 05-Mar-2018 deraadt

#define _MAX_PAGE_SHIFT in MD _types.h as the maximum pagesize an arch
needs (looking at you sgi, but others required this before). This is for
the circumstances we need pagesize known at compile time, not getpagesize()
runtime. Use it for malloc storage sizes, for shm, and to set pthread stack
default sizes. The stack sizes were a mess, and pushing them towards
page-aligned is healthy move (which will also be needed by the coming
stack register checker)
ok guenther kettenis, discussion with stefan


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.23 26-Sep-2015 guenther

lint is dead and C99 may be old enough to drive a car: delete LONGLONG
comments

ok millert@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.22 19-Mar-2014 guenther

It's safe to assumed 'signed' exists


Revision tags: OPENBSD_5_5_BASE
# 1.21 18-Dec-2013 deraadt

Provide MI symbol _STACKALIGNBYTES


Revision tags: OPENBSD_5_4_BASE
# 1.20 05-Jul-2013 guenther

Take II, this time without flubbing off_t: : move several internal
type definitions that are the same across all archs from
<machine/_types.h> to <sys/_types.h>

ok deraadt@ kettenis@ otto@


# 1.19 04-Jul-2013 otto

backout previous; off_t must be signed and there might be other C++ API
breakage lurking; ok kettenis@


# 1.18 04-Jul-2013 guenther

To ease future changes, move several internal type definitions that are
the same across all archs from <machine/_types.h> to <sys/_types.h>

ok deraadt@


# 1.17 02-Jun-2013 guenther

Hide members of __va_list in the implementation namespace

ok miod@


Revision tags: OPENBSD_5_3_BASE
# 1.16 05-Nov-2012 miod

unifdef -D __HAVE_TIMECOUNTER


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.15 08-Sep-2011 guenther

Provide namespace-safe alignment macros in <machine/_types.h>, with
compat names kept in <machine/param.h>. In <sys/socket.h>, pull
in <sys/_types.h> instead of the namespace polluting <machine/param.h>
and completely eliminate __CMSG_ALIGN, replaced by _ALIGN

ok deraadt@


# 1.14 08-Sep-2011 guenther

Make the INT_FAST*_{MIN,MAX} macros match the types they're defined to.
Since the underlying types of the int_fast types are set by machine/_types.h,
put internal macros in that same file and define the exposed
INT_FAST*_{MIN,MAX} macros from those.

ok millert@, kettenis@


Revision tags: OPENBSD_5_0_BASE
# 1.13 06-Jul-2011 matthew

Make alpha consistent with our other architectures by using "long
long" for __off_t. This is a C++ ABI bump, but martynas@ already
bumped libstdc++.

Discussed and requested by many on icb.


# 1.12 23-Mar-2011 pirofti

Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.

Discussed and okay drahn@. Okay deraadt@.


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.11 04-Nov-2009 kettenis

Get rid of __HAVE_GENERIC_SOFT_INTERRUPTS now that all our platforms support it.

ok jsing@, miod@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.10 21-Jul-2008 martynas

- add proper double_t and float_t definitions for each arch
- math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per
C99). remove from math.h, and add proper definitions in float.h
ok millert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.9 16-May-2007 art

The world of __HAVEs and __HAVE_NOTs is reducing. All architectures
have cpu_info now, so kill the option.

eyeballed by jsg@ and grange@


# 1.8 15-May-2007 art

Remove the MI implementation of mutexes and remove the __HAVE_MUTEX
option. Every architecture implements mutexes now.


# 1.7 15-May-2007 deraadt

oops; martin go see what you did here..


# 1.6 15-May-2007 deraadt

kill __HAVE_DEVICE_REGISTER by requiring all architectures to have a
device_register() function -- even if it does nothing. reduces the
cpp-based blather different between architectures
idea ok'd by miod; tested on all architectures (except a few miod will
need to cleanup because he has them)


# 1.5 05-May-2007 martin

simple single-processor only mutex implementation

ok miod@


# 1.4 23-Apr-2007 art

Switch alpha to timecounters.

We use rpcc for the clock. We don't try to get the frequency from the
hwrpb, since from experience we know that it's very unreliable and
can be several % off from the real frequency. Instead we calibrate
the timecounter frequency by using the clock device and count the
number of cycles between two second ticks of the clocks.

This is not perfect, but still much better than what we had before.
We'll have to add an i8254 clock for MP though.

miod@ ok


# 1.3 21-Apr-2007 martin

fix generic soft interrupts; improve establishing and disestablishing of
soft interrupts

from NetBSD, 'reads good art@', also tested by robert@


# 1.2 12-Apr-2007 martin

__HAVE_CPUINFO for alpha, with bits from netbsd

ok miod@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 06-Jan-2006 millert

Merge machine/ansi.h and machine/types.h into machine/_types.h and
rename the types using the __ protected namespace (e.g. __size_t).
Idea from FreeBSD.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.23 26-Sep-2015 guenther

lint is dead and C99 may be old enough to drive a car: delete LONGLONG
comments

ok millert@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.22 19-Mar-2014 guenther

It's safe to assumed 'signed' exists


Revision tags: OPENBSD_5_5_BASE
# 1.21 18-Dec-2013 deraadt

Provide MI symbol _STACKALIGNBYTES


Revision tags: OPENBSD_5_4_BASE
# 1.20 05-Jul-2013 guenther

Take II, this time without flubbing off_t: : move several internal
type definitions that are the same across all archs from
<machine/_types.h> to <sys/_types.h>

ok deraadt@ kettenis@ otto@


# 1.19 04-Jul-2013 otto

backout previous; off_t must be signed and there might be other C++ API
breakage lurking; ok kettenis@


# 1.18 04-Jul-2013 guenther

To ease future changes, move several internal type definitions that are
the same across all archs from <machine/_types.h> to <sys/_types.h>

ok deraadt@


# 1.17 02-Jun-2013 guenther

Hide members of __va_list in the implementation namespace

ok miod@


Revision tags: OPENBSD_5_3_BASE
# 1.16 05-Nov-2012 miod

unifdef -D __HAVE_TIMECOUNTER


Revision tags: OPENBSD_5_1_BASE OPENBSD_5_2_BASE
# 1.15 08-Sep-2011 guenther

Provide namespace-safe alignment macros in <machine/_types.h>, with
compat names kept in <machine/param.h>. In <sys/socket.h>, pull
in <sys/_types.h> instead of the namespace polluting <machine/param.h>
and completely eliminate __CMSG_ALIGN, replaced by _ALIGN

ok deraadt@


# 1.14 08-Sep-2011 guenther

Make the INT_FAST*_{MIN,MAX} macros match the types they're defined to.
Since the underlying types of the int_fast types are set by machine/_types.h,
put internal macros in that same file and define the exposed
INT_FAST*_{MIN,MAX} macros from those.

ok millert@, kettenis@


Revision tags: OPENBSD_5_0_BASE
# 1.13 06-Jul-2011 matthew

Make alpha consistent with our other architectures by using "long
long" for __off_t. This is a C++ ABI bump, but martynas@ already
bumped libstdc++.

Discussed and requested by many on icb.


# 1.12 23-Mar-2011 pirofti

Normalize sentinel. Use _MACHINE_*_H_ and _<ARCH>_*_H_ properly and consitently.

Discussed and okay drahn@. Okay deraadt@.


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
# 1.11 04-Nov-2009 kettenis

Get rid of __HAVE_GENERIC_SOFT_INTERRUPTS now that all our platforms support it.

ok jsing@, miod@


Revision tags: OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.10 21-Jul-2008 martynas

- add proper double_t and float_t definitions for each arch
- math.h shouldn't define FLT_EVAL_METHOD, but float.h should (per
C99). remove from math.h, and add proper definitions in float.h
ok millert@


Revision tags: OPENBSD_4_2_BASE OPENBSD_4_3_BASE
# 1.9 16-May-2007 art

The world of __HAVEs and __HAVE_NOTs is reducing. All architectures
have cpu_info now, so kill the option.

eyeballed by jsg@ and grange@


# 1.8 15-May-2007 art

Remove the MI implementation of mutexes and remove the __HAVE_MUTEX
option. Every architecture implements mutexes now.


# 1.7 15-May-2007 deraadt

oops; martin go see what you did here..


# 1.6 15-May-2007 deraadt

kill __HAVE_DEVICE_REGISTER by requiring all architectures to have a
device_register() function -- even if it does nothing. reduces the
cpp-based blather different between architectures
idea ok'd by miod; tested on all architectures (except a few miod will
need to cleanup because he has them)


# 1.5 05-May-2007 martin

simple single-processor only mutex implementation

ok miod@


# 1.4 23-Apr-2007 art

Switch alpha to timecounters.

We use rpcc for the clock. We don't try to get the frequency from the
hwrpb, since from experience we know that it's very unreliable and
can be several % off from the real frequency. Instead we calibrate
the timecounter frequency by using the clock device and count the
number of cycles between two second ticks of the clocks.

This is not perfect, but still much better than what we had before.
We'll have to add an i8254 clock for MP though.

miod@ ok


# 1.3 21-Apr-2007 martin

fix generic soft interrupts; improve establishing and disestablishing of
soft interrupts

from NetBSD, 'reads good art@', also tested by robert@


# 1.2 12-Apr-2007 martin

__HAVE_CPUINFO for alpha, with bits from netbsd

ok miod@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE
# 1.1 06-Jan-2006 millert

Merge machine/ansi.h and machine/types.h into machine/_types.h and
rename the types using the __ protected namespace (e.g. __size_t).
Idea from FreeBSD.