polarfire-soc / polarfire-soc-documentation

PolarFire SoC Documentation
Other
37 stars 19 forks source link

What is "u mode" and "s mode"? #43

Closed plwalsh closed 2 years ago

plwalsh commented 2 years ago

The src/application/inc/common.h header file in every example contains an enum definition for COMMAND_TYPE. For example:

https://github.com/polarfire-soc/polarfire-soc-bare-metal-examples/blob/acdddf3a903aa7e7b82961559965466760fa74fd/driver-examples/mss/mpfs-hal/mpfs-hal-simple-demo/src/application/inc/common.h#L21-L26

What is meant by "start hart in u mode or s mode"? And are there any examples of using these commands?