PHIPS BLOG

  •  Home
  •  Get To Know Me
  •  Contact & Follow

Assembly

Programming & DevOps

Kernel/Boot: Cope with a Relocation by a Bootloader in 32-bit x86 Assembly Code

A kernel should be relocatable by bootloaders as this is the only guarantee that it doesn’t interfere with addresses already in use by the firmware. This is especially true for the legacy boot flow on x86, i.e., without UEFI. TL;DR Introduction There are multiple ways to make a kernel relocatable. Read more…

By Philipp Schuster, 2 months2022-12-07 ago
Code Snippet: Part of the QEMU Debugcon Driver written in Assembly
Programming & DevOps

The Probably Simplest x86 Driver Written in Assembly – Printing to QEMU’s debugcon-Device

This is an educational resource I wish I had when I started digging into low-level and operating systems during my early time of my studies at the university. However, dear past me, I got your back! Do you want to see a minimal way to communicate with (virtual) hardware and Read more…

By Philipp Schuster, 4 months2022-09-26 ago
Programming & DevOps

Rust: Calling Functions With Different Calling Conventions From Same File

The other day I had some fun with assembly and wanted to try to call assembly functions from Rust. Each compiler follows a certain calling convention, that specifies how parameters are passed between functions. The calling convention is part of an ABI, an application binary interface. There are two major Read more…

By Philipp Schuster, 2 years2021-07-26 ago
Programming & DevOps

Include Assembly Source Files In Rust Project (and Build with Cargo)

Update: Since Rust 1.59, the macros global_asm! and asm! are finally stable! I also updated the blog post a little but it is mostly in the state from back then. In this blog post, I show how you can create assembly files next to Rust files and compile everything by Read more…

By Philipp Schuster, 2 years2021-07-25 ago

Because this blog is a few years old and used to be a more or less personal german blog, old posts are in german. Newer posts are in english.

  • Impressum
  • Datenschutzerklärung
Hestia | Developed by ThemeIsle
Cookie Notice
We use cookies on our website to store your preferences and to create anonymous statistics about the usage of this site. You can control the tracking by Matomo Analytics here.

Datenschutzerklärung (Privacy)

Accept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
_pk_cvar12mUsed by Matomo for analysis of your visit on our website.
_pk_id12mUsed by Matomo for analysis of your visit on our website.
_pk_ref12mUsed by Matomo for analysis of your visit on our website.
_pk_ses12mUsed by Matomo for analysis of your visit on our website.
SAVE & ACCEPT